Fix endless loop in mbmemcasecoll.
[gnulib.git] / ChangeLog
1 2010-09-22  Pádraig Brady  <P@draigbrady.com>
2             Bruno Haible  <bruno@clisp.org>
3
4         Fix endless loop in mbmemcasecoll.
5         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
6         byte.
7         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
8
9 2010-09-22  Bruno Haible  <bruno@clisp.org>
10
11         Tests for module 'memcoll'.
12         * modules/memcoll-tests: New file.
13         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
14
15         memcoll, xmemcoll: Clarify size vs. length.
16         * modules/memcoll.c (memcoll0): Clarify specification.
17         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
18         passed to collate_error.
19
20 2010-09-22  Bruno Haible  <bruno@clisp.org>
21
22         Tests for module 'memcasecmp'.
23         * modules/memcasecmp-tests: New file.
24         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
25
26 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27
28         * lib/pthread.in.h: Add split double-inclusion guard, and include
29         system <pthread.h> if there is one.  Use @@-style as in other
30         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
31         pthread.h doesn't.
32         (pthread_mutexattr_destroy, pthread_mutexattr_init):
33         (pthread_mutexattr_settype, pthread_mutex_trylock):
34         New static inline functions, if there's no system <pthread.h>.
35         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
36         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
37         Approximate with mutexes if the system lacks spinlocks, as in
38         MacOS.
39         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
40         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
41         @@-style.  Check for spinlocks separately.
42         (gl_PTHREAD_DEFAULTS): New macro.
43         * modules/pthread: Redo to use a more typical style for in.h files.
44
45 2010-09-21  Eric Blake  <eblake@redhat.com>
46
47         net_if: enhance tests
48         * tests/test-net_if.c (main): Move signature checks earlier.
49         Print failures to stderr.
50         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
51         Document the bug that we do not yet fix.
52
53 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
54
55         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
56         about gnulib, not GSS.
57
58 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
59
60         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
61         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
62         for Emacs.
63         * build-aux/pmccabe2html: Make Makefile.am example code more
64         cut-and-paste friendly.
65
66 2010-09-21  Simon Josefsson  <simon@josefsson.org>
67
68         * tests/test-net_if.c: New file.
69         * modules/net_if-tests: New file.
70
71 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
72
73         pthread: add pthread_spin_destroy
74         * lib/pthread.in.h (pthread_spin_destroy): New function.
75
76 2010-09-19  Bruno Haible  <bruno@clisp.org>
77
78         gnulib-tool: Fix --help output.
79         * gnulib-tool (func_usage): Fix help message.
80         Reported by Reuben Thomas <rrt@sc3d.org>.
81
82 2010-09-18  Jim Meyering  <meyering@redhat.com>
83
84         maint.mk: avoid unexpanded \n in two diagnostics
85         * top/maint.mk (sc_prohibit_always_true_header_tests):
86         Don't use a literal \n in a halt=... assignment.  It would not be
87         expanded, and the two \n bytes would appear in the diagnostic output
88         rather than the desired newline.  Use halt=$$(printf ... instead.
89         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
90
91 2010-09-18  Bruno Haible  <bruno@clisp.org>
92
93         netinet_in: Doc tweak.
94         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
95         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
96
97 2010-09-18  Jim Meyering  <meyering@redhat.com>
98
99         init.sh: correct an outdated comment
100         * tests/init.sh (create_exe_shims_):  s/function/alias/
101
102         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
103         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
104         a file named "*.exe" is removed between the glob expansion and the
105         processing of that oddly named file.
106
107 2010-09-17  Eric Blake  <eblake@redhat.com>
108
109         mirbsd: add some more support
110         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
111         in BSD family.
112         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
113         devices as OpenBSD.
114         * m4/host-os.m4 (mirbsd): Add MirBSD.
115
116         tests: fix unportable assumption on sys/wait.h
117         * tests/test-sys_wait.c (main): Relax test.
118         * tests/test-stdlib.c (main): Likewise.
119
120         init.sh: accomodate directory with no .exes
121         * tests/init.sh: Accomodate directory containing only scripts.
122
123         tests: avoid compiler warning
124         * tests/test-stdlib.c (main): Use the variable.
125
126         fdutimens, fdutimensat: update signature, again
127         * lib/utimens.h (gl_futimens): Delete, and move signature...
128         (fdutimens): ...here.
129         (fdutimensat): Rearrange signature.
130         (lutimensat): Rename variable for clarity.
131         * lib/fdutimensat.c (fdutimensat): Update signature.
132         * lib/utimens.c (fdutimens): Likewise.
133         (gl_futimens): Delete.
134         (utimens, lutimens): Update callers.
135         * lib/futimens.c (futimens): Likewise.
136         * tests/test-fdutimensat.c: Likewise.
137         * tests/test-utimens.c: Likewise.
138         * tests/test-futimens.h: Update comment.
139         * NEWS: Mention this.
140         Suggested by Paul Eggert.
141
142 2010-09-17  Bruno Haible  <bruno@clisp.org>
143
144         Take over the maintenance of some older macros from Autoconf.
145         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
146         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
147         GNU Autoconf.
148         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
149         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
150
151 2010-09-17  Eric Blake  <eblake@redhat.com>
152
153         fdutimensat: drop atflag validation
154         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
155         with valid fd, to close a race scenario where futimens is
156         unsupported and FILE was replaced by a symlink.
157         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
158         accordingly.
159         Suggested by Paul Eggert.
160
161 2010-09-16  Bruno Haible  <bruno@clisp.org>
162
163         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
164         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
165
166 2010-09-16  Bruno Haible  <bruno@clisp.org>
167
168         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
169         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
170         login_tty exists.
171         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
172
173 2010-09-16  Bruno Haible  <bruno@clisp.org>
174
175         login_tty: Make the replacement code work on BSD systems.
176         * lib/login_tty.c: Include <sys/ioctl.h>.
177         (login_tty): Use ioctl TIOCSCTTY when available.
178         * modules/login_tty (Depends-on): Add sys_ioctl.
179         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
180
181 2010-09-16  Bruno Haible  <bruno@clisp.org>
182
183         login_tty: Stricter unit test.
184         * modules/login_tty-tests (Depends-on): Add tcgetsid.
185         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
186         and tcgetsid() after login_tty.
187         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
188
189 2010-09-16  Bruno Haible  <bruno@clisp.org>
190
191         New module 'tcgetsid'.
192         * lib/tcgetsid.c: New file.
193         * m4/tcgetsid.m4: New file.
194         * modules/tcgetsid: New file.
195         * modules/termios (Depends-on): Add c++defs, warn-on-use.
196         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
197         GNULIB_TCGETSID, HAVE_TCGETSID.
198         * lib/termios.in.h: Include <sys/types.h>.
199         (tcgetsid): New declaration.
200         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
201         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
202         * doc/posix-functions/tcgetsid.texi: Mention the new module.
203         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
204
205 2010-09-16  Bruno Haible  <bruno@clisp.org>
206
207         Tests for module 'termios'.
208         * modules/termios-c++-tests: New file.
209         * modules/termios-tests: New file.
210         * tests/test-termios-c++.cc: New file.
211         * tests/test-termios.c: New file.
212
213         New module 'termios'.
214         * modules/termios: New file.
215         * lib/termios.in.h: New file.
216         * m4/termios_h.m4: New file.
217         * doc/posix-headers/termios.texi: Mention the new module.
218
219 2010-09-16  Eric Blake  <eblake@redhat.com>
220
221         fdutimensat: add an atflag parameter
222         * lib/fdutimensat.c (fdutimensat): Add new parameter.
223         * lib/utimens.h (fdutimensat): Update prototype.
224         * tests/test-fdutimensat.c: Adjust test to match.
225         * NEWS: Document the change.
226         Suggested by Paul Eggert.
227
228 2010-09-16  Bruno Haible  <bruno@clisp.org>
229
230         Fix typos in comments.
231         * lib/striconveh.h: Fix typo in comment.
232         * lib/login_tty.c (login_tty): Likewise.
233
234 2010-09-15  Bruno Haible  <bruno@clisp.org>
235
236         stdlib: clarify MirBSD WEXITSTATUS bug
237         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
238         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
239
240 2010-09-15  Eric Blake  <eblake@redhat.com>
241
242         stdlib: work around MirBSD WEXITSTATUS bug
243         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
244         * modules/stdlib (Depends-on): Add sys_wait.
245         * tests/test-sys_wait.c (main): Enhance test.
246         * tests/test-stdlib.c (main): Likewise.
247         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
248
249         docs: mention MacOS issue with WEXITSTATUS(constant)
250         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
251         issue.
252         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
253
254         strnlen: add tests
255         * modules/strnlen-tests: New file.
256         * tests/test-strnlen.c: Likewise.
257
258 2010-09-14  Bruno Haible  <bruno@clisp.org>
259
260         unistr/base: Avoid link errors when module 'libunistring' is also used.
261         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
262         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
263         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
264         Declare also when HAVE_LIBUNISTRING is set.
265         Reported by Pádraig Brady <P@draigbrady.com>.
266
267 2010-09-14  Eric Blake  <eblake@redhat.com>
268
269         test-rawmemchr: make more robust
270         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
271         (Depends-on, configure.ac): Add needed prerequisites to use it.
272         * modules/memchr-tests (Files, Depends-on, configure.ac):
273         Likewise, to avoid implicit reliance on memchr module prereqs.
274         * tests/test-memchr.c (main): Ensure proper masking.
275         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
276         reads.
277
278         memchr: detect glibc Alpha bug
279         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
280         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
281         Alpha.
282         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
283         * tests/test-memchr.c (main): Enhance test.
284         Reported by Nelson H. F. Beebe.
285
286 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
287
288         fts, getcwd, glob: audit for dirfd returning -1
289         * lib/fts.c (opendir): Remove #define; no longer used.
290         (opendirat): New arg PDIR_FD.  All callers changed.
291         (fts_build, _opendir2): Use new opendirat to avoid the need for
292         dirfd, or for checking whether dirfd returns a negative value.
293         Don't use opendir; always use openat followed by fdopendir.
294         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
295         it.
296         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
297         returns -1 here.
298         * modules/fts (Depends-on): Remove dirfd.
299         * modules/getcwd (Depends-on): Likewise.
300
301 2010-09-13  Eric Blake  <eblake@redhat.com>
302
303         float: fix broken MirBSD header
304         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
305         * doc/posix-headers/float.texi (float.h): Document it.
306
307 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
308
309         fts: use O_NOFOLLOW to avoid race condition when opening a directory
310         * lib/fts.c (opendirat): New arg extra_flags.
311         (__opendir2): Use it to avoid following symlinks when opening
312         a directory, if symlinks are not supposed to be followed.  See
313         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
314
315         fdopendir: preserve argument fd before returning
316         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
317         (fdopendir_with_dup, fd_clone_opendir): New static functions.
318         (fdopendir): Use them, arranging for FD to be open to the same
319         directory that it was when it started.  (It might be temporarily
320         closed while fdopendir is running, so this not thread- or
321         signal-safe.)  Be careful to do the right thing even when file
322         descriptors are scarce and dup fails with errno == EMFILE.  See
323         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
324
325 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
326
327         regex: Pass the system regex if its only problem is 32-bit regoff_t.
328         * NEWS: Document change.
329         * m4/regex.m4: Disable test for regoff_t size.
330
331 2010-09-13  Jim Meyering  <meyering@redhat.com>
332
333         fts: don't operate on an invalid file descriptor after failed dup
334         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
335         negative file descriptor.
336
337 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
338
339         savedir: add streamsavedir, deprecate fdsavedir
340         * NEWS: Mention deprecation of fdsavedir.
341         * lib/savedir.c (streamsavedir): New extern function, whose name
342         ends in "savedir" to be consistent with the others.  This differs
343         from savedirstream in that it doesn't close its argument.  The
344         next version of GNU tar will use this instead of fdsavedir, to
345         avoid some race conditions and conserve file descriptors.
346         (savedirstream): Reimplement as a wrapper around streamsavedir.
347         (fdsavedir): Add a comment deprecating this function.  As far as
348         I know, only GNU tar used it, and GNU tar doesn't need it any more.
349         * lib/savedir.h (streamsavedir): New decl.
350         (fdsavedir): Add a comment deprecating this.
351
352 2010-09-10  Bruno Haible  <bruno@clisp.org>
353
354         langinfo: Fix last commit.
355         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
356         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
357         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
358
359 2010-09-10  Bruno Haible  <bruno@clisp.org>
360
361         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
362         * lib/progreloc.c (O_EXEC): Define fallback.
363
364 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
365
366         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
367         * NEWS: Document recent changes to fcntl-h.
368         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
369         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
370         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
371         Similarly for O_SEARCH; this last was already true, but not documented.
372         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
373         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
374         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
375         Likewise.
376         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
377         is zero, not whether it is defined.
378         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
379         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
380         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
381
382 2010-09-10  Bruno Haible  <bruno@clisp.org>
383
384         langinfo, nl_langinfo: Fix for IRIX 5.3.
385         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
386         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
387         HAVE_LANGINFO_YESEXPR.
388         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
389         HAVE_LANGINFO_YESEXPR.
390         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
391         HAVE_LANGINFO_T_FMT_AMPM is 0.
392         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
393         HAVE_LANGINFO_YESEXPR is 0.
394         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
395         NOEXPR.
396         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
397         * doc/posix-functions/nl_langinfo.texi: Likewise.
398         Reported by Eric Blake.
399
400 2010-09-10  Bruno Haible  <bruno@clisp.org>
401
402         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
403         * doc/glibc-functions/login_tty.texi: Mention the include file problem
404         on FreeBSD 8.0 and OpenBSD 4.6.
405         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
406         * m4/pty_h.m4 (gl_PTY_H): Likewise.
407         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
408         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
409         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
410         ac_includes_default.
411         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
412
413 2010-09-09  Eric Blake  <eblake@redhat.com>
414
415         strsignal: work around NetBSD bug
416         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
417         * lib/string.in.h (includes): Likewise.
418         * doc/posix-functions/strsignal.texi (strsignal): Document the
419         bug.
420         Reported by Nelson H. F. Beebe.
421
422         gnulib-tool: work with NetBSD /bin/sh
423         * gnulib-tool (func_cache_var, func_cache_lookup_module)
424         (func_get_description, func_get_comment, func_get_status)
425         (func_get_notice, func_get_applicability, func_get_filelist)
426         (func_get_dependencies, func_get_autoconf_early_snippet)
427         (func_get_autoconf_snippet, func_get_automake_snippet)
428         (func_get_include_directive, func_get_link_directive)
429         (func_get_license, func_get_maintainer, func_import): Avoid
430         shell syntax errors from parsing syntax extensions.
431
432 2010-09-09  Bruno Haible  <bruno@clisp.org>
433
434         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
435         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
436         a reliable way to determine whether the 'alias' command works.
437
438 2010-09-08  Jim Meyering  <meyering@redhat.com>
439
440         init.sh: penalize a set-x-impaired shell; don't disqualify it
441         * tests/init.sh: Too many shells corrupt application stderr when
442         you set -x, so we can't afford to disqualify them, since at least
443         on Irix-6.5, that would disqualify all bourne shells.
444         Instead, use a two-pass approach.
445         On the first pass, try to find a shell that meets the stricter
446         condition that set -x does not corrupt stderr.
447         If no shell meets the stricter condition, retest each candidate
448         shell, but without that extra condition.  Finally, when
449         VERBOSE=yes is requested and set -x might cause trouble, simply
450         issue a warning and refrain from enabling debug output.
451
452 2010-09-08  Eric Blake  <eblake@redhat.com>
453
454         unsetenv: fix OpenBSD bug
455         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
456         * doc/posix-functions/unsetenv.texi (unsetenv): Update
457         documentation.
458         Reported by Jim Meyering.
459
460         strtod: work around IRIX 6.5 bug
461         * lib/strtod.c (strtod): Reparse number on shorter string if
462         exponent parse was invalid.
463         * tests/test-strtod.c (main): Add check for "0x1p 2".
464         Reported by Tom G. Christensen.
465
466         getopt: optimize previous patch
467         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
468         empty variable.  Speed up awk script.
469         Reported by Paolo Bonzini.
470
471 2010-09-08  Jim Meyering  <meyering@redhat.com>
472
473         test.sh: disqualify shells for which set -x corrupts stderr
474         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
475         and OpenBSD 4.7.  They make it so with "set -x", environment settings
476         appear in stderr output.  For example, this command:
477             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
478         prints "P=1" on those two systems:
479
480 2010-09-08  Bruno Haible  <bruno@clisp.org>
481
482         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
483         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
484         commands, because some shells ignore redirections when there is an
485         error in the command lookup.
486         Reported by Eric Blake.
487
488 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
489
490         * lib/regex.h: Fix a mention of `regex_compile' (should be
491         `re_compile_pattern').
492         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
493         (re_set_registers): Correct name of parameter in comment.
494
495         * doc/regex.texi: Add documentation for missing syntax flags.
496         Remove commented-out documentation of defunct syntax option
497         RE_NO_EMPTY_ALTS.
498         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
499         Add documentation of re_set_registers.
500         Document trick to re-use a pattern buffer by setting fastmap manually.
501         Update documentation of struct re_pattern_buffer per public members.
502         Uncomment documentation of equivalence class operators and
503         collating symbol operators, since they are now implemented,
504         Explain leftmost-longest matching in relation to alternatives.
505         Tidy documentation of substring matching.
506         Remove POSIX documentation, which is done better in
507         glibc, and refer the reader there. Keep BSD API documentation, as
508         that is not readily available elsewhere.
509
510 2010-09-07  Eric Blake  <eblake@redhat.com>
511
512         getopt: handle POSIXLY_CORRECT set but not exported
513         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
514         export state of POSIXLY_CORRECT, due to bash set -o posix.
515         Reported by Dustin J. Mitchell.
516
517 2010-09-05  Bruno Haible  <bruno@clisp.org>
518
519         gnulib-tool: Highlight the changed options.
520         * gnulib-tool (func_usage): Display the --import, --add-import,
521         --remove-import explanations in bold font.
522
523 2010-09-06  Karl Berry  <karl@gnu.org>
524
525         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
526
527 2010-09-05  Bruno Haible  <bruno@clisp.org>
528
529         uniwidth/width: Update comment.
530         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
531         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
532
533 2010-09-05  Bruno Haible  <bruno@clisp.org>
534
535         isinf, isnan: Relax license.
536         * modules/isinf (License): Change from GPL to LGPL, with consent from
537         Ben Pfaff.
538         * modules/isnan (License): Likewise.
539         Requested by Ludovic Courtès.
540
541 2010-09-04  Bruno Haible  <bruno@clisp.org>
542
543         gnulib-tool: Help migration from --import to --add-import or --update.
544         * gnulib-tool: Emit a verbose error message when --import is used
545         without any module name.
546
547 2010-09-04  Bruno Haible  <bruno@clisp.org>
548
549         Update doc about gnulib-tool.
550         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
551         'gnulib-tool --update' in more detail.
552         Reported by Eric Blake.
553
554 2010-09-04  Bruno Haible  <bruno@clisp.org>
555
556         gnulib-tool: Change --import. New options --add/remove-import.
557         * gnulib-tool: New options --add-import, --remove-import.
558         (func_usage): Document them.
559         (have_associative): Define always.
560         (func_import): In import mode, don't merge the specified settings with
561         the cached settings. Implement remove-import mode.
562         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
563         Explain when to use them versus --import.
564         (Simple update): Use --add-import instead of --import.
565         * NEWS: Mention the change.
566
567 2010-09-04  Bruno Haible  <bruno@clisp.org>
568
569         * doc/gnulib-tool.texi (Initial import): Update paragraph about
570         separate gnulib.mk.
571
572 2010-09-04  Bruno Haible  <bruno@clisp.org>
573
574         gnulib-tool: Don't talk about CVS any more.
575         * gnulib-tool (func_usage, func_import): Write "version control"
576         instead of CVS.
577
578 2010-09-04  Jim Meyering  <meyering@redhat.com>
579
580         maint.mk: avoid obscure sc_copyright_check failure in coreutils
581         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
582         false positives (whose names may be ill-chosen) when searching
583         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
584         would cause a false-positive.
585
586         avoid coreutils "make distcheck" failure
587         Coreutils tests with an absolute build directory name that contains
588         a space.  Not quoting this directory name caused a failure.
589         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
590         * tests/test-vc-list-files-cvs.sh: Likewise.
591
592 2010-09-04  Bruno Haible  <bruno@clisp.org>
593
594         gnulib-tool: Avoid error when run in a package without Makefile.am.
595         * gnulib-tool: When collecting the m4dirs in a package that does not
596         have a Makefile.am, eliminate those directories that contain no
597         gnulib-cache.m4. Fix expression that counts these directories.
598
599 2010-09-04  Bruno Haible  <bruno@clisp.org>
600
601         update-copyright test: Improve output when perl is missing or too old.
602         * tests/test-update-copyright.sh: Move test of Perl version down after
603         the test whether Perl exists. Provide an explanation relating Perl's
604         error message to Automake's SKIP: message.
605
606 2010-09-04  Bruno Haible  <bruno@clisp.org>
607
608         Don't augment PATH in TESTS_ENVIRONMENT.
609         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
610         set abs_aux_dir instead of augmenting PATH.
611         * modules/vc-list-files-tests (Makefile.am): Likewise.
612         * tests/test-update-copyright.sh: Augment PATH here.
613         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
614         path_prepend_.
615         * tests/test-vc-list-files-git.sh: Likewise.
616
617 2010-09-04  Jim Meyering  <meyering@redhat.com>
618
619         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
620         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
621
622 2010-09-04  Bruno Haible  <bruno@clisp.org>
623
624         strdup: Fix compilation error in C++ mode.
625         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
626         the macro.
627
628 2010-09-04  Bruno Haible  <bruno@clisp.org>
629
630         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
631         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
632         macro into a function.
633         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
634
635 2010-09-04  Bruno Haible  <bruno@clisp.org>
636
637         Set PATH_SEPARATOR the same way autoconf does.
638         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
639         the value of PATH_SEPARATOR the same way autoconf-generated configure
640         scripts do.
641         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
642         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
643
644 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
645
646         Set PATH_SEPARATOR the same way autoconf does.
647         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
648         the same way autoconf-generated configure scripts do.
649         * posix-modules: Likewise.
650
651 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
652
653         hash: fix safe_hasher const typo
654         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
655         const; otherwise, there is a type error later.
656
657 2010-09-02  Jim Meyering  <meyering@redhat.com>
658
659         test-update-copyright.sh: require perl 5.8.0
660         * tests/test-update-copyright.sh: Require 5.8.0,
661         which Tom G. Christensen has confirmed is adequate,
662         while 5.6.1 is not.
663
664 2010-09-02  Eric Blake  <eblake@redhat.com>
665
666         tests: init.sh improvements for re-exec'ing with zsh
667         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
668         -vx through shell re-exec.
669         Reported by Tom G. Christensen.
670
671         wctype: fix typo in previous commit
672         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
673         Reported by Ludovic Courtès.
674
675 2010-09-02  Jim Meyering  <meyering@redhat.com>
676
677         test-update-copyright.sh: skip test if Perl is too old
678         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
679         Reported by Tom G. Christensen.
680
681 2010-09-02  Bruno Haible  <bruno@clisp.org>
682
683         wctype: Avoid compilation error on IRIX 6.5.30.
684         * lib/wctype.in.h (iswblank): Declare with a replacement if
685         REPLACE_ISWBLANK is set.
686         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
687         declared. Set REPLACE_ISWBLANK.
688         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
689         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
690         * doc/posix-headers/wctype.texi: Likewise.
691         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
692
693 2010-09-01  Bruno Haible  <bruno@clisp.org>
694
695         New module 'socketlib'.
696         * modules/socketlib: New file.
697         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
698         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
699         * modules/sockets (Depends-on): Add socketlib.
700         Suggested by Sam Steingold <sds@gnu.org>.
701
702 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
703
704         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
705
706         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
707         when one needs search access to a directory but not read access.
708         On systems where it is available, it works in some cases where
709         O_RDONLY does not, namely on directories that are searchable but
710         not readable, and which need only to be searchable.  If O_SEARCH
711         is not available, fall back to the traditional method of using
712         O_RDONLY.
713
714         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
715         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
716         when opening a directory that needs only to be searchable.
717         * lib/chdir-safer.c (chdir_no_follow): Likewise.
718         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
719         * lib/openat-proc.c (openat_proc_name): Likewise.
720         * lib/openat.c (openat_needs_fchdir): Likewise.
721         * lib/save-cwd.c (save_cwd): Likewise.
722         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
723
724 2010-08-28  Bruno Haible  <bruno@clisp.org>
725
726         New module 'host-cpu-c-abi'.
727         * modules/host-cpu-c-abi: New file.
728         * m4/host-cpu-c-abi.m4: New file, based on part of
729         clisp/src/m4/general.m4.
730         Requested by Sam Steingold <sds@gnu.org>.
731
732 2010-08-31  Eric Blake  <eblake@redhat.com>
733         and Jim Meyering  <meyering@redhat.com>
734
735         hash: factor, and guard against misbehaving hasher function
736         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
737         of table->hasher's return value.  Also protect against a hash value
738         so large that adding it to table->bucket results in a NULL pointer.
739         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
740         Use it in place of open-coded check-and-abort.
741
742 2010-08-30  Bruno Haible  <bruno@clisp.org>
743
744         hash: silence spurious clang warning
745         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
746         Reported by Eric Blake.
747
748 2010-08-30  Eric Blake  <eblake@redhat.com>
749
750         strstr, memmem, strcasestr: avoid leaked shell message
751         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
752         FreeBSD.
753         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
754         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
755
756         tests: silence clang warning
757         * tests/test-malloca.c (do_allocation): Avoid dead store.
758
759 2010-08-29  Bruno Haible  <bruno@clisp.org>
760
761         gettext: Fix recent mistake.
762         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
763
764 2010-08-29  Bruno Haible  <bruno@clisp.org>
765
766         selinux-h: Offer a --without-selinux option.
767         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
768         --without-selinux was specified, skip all tests and define
769         HAVE_SELINUX_SELINUX_H to 0.
770         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
771         set LIB_SELINUX to empty.
772         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
773         gl_LIBSELINUX. If --without-selinux was specified, replace
774         selinux/context.h.
775         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
776
777 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
778             Bruno Haible  <bruno@clisp.org>
779
780         Make the module 'realloc-gnu' work again on AIX and OSF/1.
781         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
782         of HAVE_REALLOC.
783         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
784         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
785         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
786         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
787
788 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
789             Bruno Haible  <bruno@clisp.org>
790
791         Make the module 'calloc-gnu' work again on AIX and OSF/1.
792         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
793         HAVE_CALLOC.
794         * lib/xmalloc.c: Update accordingly.
795         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
796         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
797         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
798
799 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
800             Bruno Haible  <bruno@clisp.org>
801
802         Make the module 'malloc-gnu' work again on AIX and OSF/1.
803         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
804         HAVE_MALLOC.
805         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
806         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
807         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
808
809 2010-08-29  Bruno Haible  <bruno@clisp.org>
810
811         Update modules list.
812         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
813         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
814         (String handling <string.h>): Add astrxfrm.
815         (File system functions): Add readlinkat.
816
817 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
818
819         Tests for module 'realloc-gnu'.
820         * modules/realloc-gnu-tests: New file.
821         * tests/test-realloc-gnu.c: New file.
822
823         Tests for module 'calloc-gnu'.
824         * modules/calloc-gnu-tests: New file.
825         * tests/test-calloc-gnu.c: New file.
826
827         Tests for module 'malloc-gnu'.
828         * modules/malloc-gnu-tests: New file.
829         * tests/test-malloc-gnu.c: New file.
830
831 2010-08-28  Bruno Haible  <bruno@clisp.org>
832
833         Rename module 'realloc' -> 'realloc-gnu'.
834         * modules/realloc-gnu: New file, copied from modules/realloc.
835         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
836         obsolete.
837         * modules/mgetgroups (Depends-on): Update.
838         * doc/posix-functions/realloc.texi: Update.
839         * NEWS: Mention the change.
840
841         Rename module 'calloc' -> 'calloc-gnu'.
842         * modules/calloc-gnu: New file, copied from modules/calloc.
843         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
844         obsolete.
845         * doc/posix-functions/calloc.texi: Update.
846         * NEWS: Mention the change.
847
848         Rename module 'malloc' -> 'malloc-gnu'.
849         * modules/malloc-gnu: New file, copied from modules/malloc.
850         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
851         obsolete.
852         * modules/argp (Depends-on): Update.
853         * modules/regex (Depends-on): Update.
854         * doc/posix-functions/malloc.texi: Update.
855         * NEWS: Mention the change.
856
857 2010-08-28  Eric Blake  <eblake@redhat.com>
858
859         pread, pwrite: add missing dependency
860         * modules/pread (Depends-on): Add extensions.
861         * modules/pwrite (Depends-on): Likewise.
862
863 2010-08-28  Bruno Haible  <bruno@clisp.org>
864
865         unistr/u*-strchr: Fix tests dependencies.
866         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
867         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
868         Reported by Ian Beckwith <ianb@erislabs.net>.
869
870 2010-08-28  Bruno Haible  <bruno@clisp.org>
871
872         read-file: Don't occupy too much unused memory.
873         * lib/read-file.c (fread_file): Shrink the buffer at the end.
874
875 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
876             Eric Blake  <eblake@redhat.com>
877             Bruno Haible  <bruno@clisp.org>
878
879         read-file: Avoid memory reallocations with regular files.
880         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
881         (fread_file): With regular files, use the remaining length as the
882         initial buffer size.  Check against overflow.
883         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
884         sys_stat.
885
886 2010-08-28  Bruno Haible  <bruno@clisp.org>
887
888         ftello: Relax license.
889         * modules/ftello (License): Relax to LGPLv2+.
890         Reported by Eric Blake.
891
892 2010-08-28  Bruno Haible  <bruno@clisp.org>
893
894         Avoid relocwrapper link errors due to gnulib replacement functions.
895         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
896         function.
897         Reported by Ben Pfaff <blp@cs.stanford.edu>.
898
899 2010-08-28  Bruno Haible  <bruno@clisp.org>
900
901         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
902         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
903         defined.
904         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
905         Suggested by Eric Blake.
906
907 2010-08-28  Bruno Haible  <bruno@clisp.org>
908
909         sys_socket, netdb: Ensure socklen_t gets defined.
910         * modules/sys_socket (Depends-on): Add socklen.
911         * modules/netdb (Depends-on): Likewise.
912         * modules/getaddrinfo (Depends-on): Remove socklen.
913         * modules/getsockopt (Depends-on): Likewise.
914         * modules/setsockopt (Depends-on): Likewise.
915         * tests/test-sys_socket.c: Check that socklen_t is defined.
916         * tests/test-netdb.c: Likewise.
917         * m4/socklen.m4: Update comments.
918         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
919
920 2010-08-27  Eric Blake  <eblake@redhat.com>
921
922         login_tty: add missing dependency
923         * modules/login_tty (Depends-on): Add pty.
924
925 2010-08-26  Eric Blake  <eblake@redhat.com>
926
927         lib-symbol-versions: fix m4 quoting
928         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
929         format for AC_LINK_IFELSE.
930
931         glob: fix compile test
932         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
933
934         btowc: fix missing file
935         * modules/btowc (Files): Also ship locale-fr.m4.
936
937         lseek: fix link test
938         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
939         AC_LINK_IFELSE.
940
941         include_next: silence autoconf 2.68 warning
942         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
943         AC_COMPILE_IFELSE as special.
944         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
945         autoconf < 2.68.
946
947         acl: fix compilation test
948         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
949         AC_COMPILE_IFELSE.
950
951 2010-08-26  Bruno Haible  <bruno@clisp.org>
952
953         Modernize AC_TRY_RUN invocations.
954         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
955         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
956         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
957         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
958         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
959         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
960         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
961         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
962         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
963         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
964         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
965         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
966         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
967         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
968         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
969         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
970         gl_MBRLEN_NUL_RETVAL): Likewise.
971         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
972         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
973         Likewise.
974         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
975         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
976         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
977         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
978         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
979         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
980         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
981         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
982         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
983         Likewise.
984         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
985         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
986         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
987         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
988         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
989         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
990         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
991         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
992         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
993         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
994
995 2010-08-26  Bruno Haible  <bruno@clisp.org>
996
997         Modernize AC_TRY_LINK invocations.
998         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
999         AC_TRY_LINK.
1000         * m4/argp.m4 (gl_ARGP): Likewise.
1001         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
1002         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
1003         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
1004         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
1005         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
1006         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
1007         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
1008         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
1009         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
1010         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
1011         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
1012         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
1013         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
1014         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
1015         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
1016         * m4/hostent.m4 (gl_HOSTENT): Likewise.
1017         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
1018         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
1019         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
1020         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
1021         Likewise.
1022         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
1023         Likewise.
1024         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
1025         Likewise.
1026         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
1027         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
1028         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
1029         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
1030         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
1031         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
1032         * m4/servent.m4 (gl_SERVENT): Likewise.
1033         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
1034         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
1035         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
1036         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
1037         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
1038         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
1039         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
1040         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
1041         * modules/tsearch-tests (configure.ac): Likewise.
1042
1043 2010-08-26  Bruno Haible  <bruno@clisp.org>
1044
1045         Modernize AC_TRY_COMPILE invocations.
1046         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
1047         AC_TRY_COMPILE.
1048         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
1049         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
1050         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
1051         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
1052         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
1053         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
1054         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
1055         * m4/lock.m4 (gl_LOCK): Likewise.
1056         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
1057         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
1058         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
1059         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
1060         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
1061         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
1062         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
1063         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
1064         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
1065         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
1066         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
1067         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
1068         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
1069         extraneous semicolon.
1070
1071 2010-08-26  Jim Meyering  <meyering@redhat.com>
1072
1073         stat-time: relax license LGPL
1074         * modules/stat-time (License): Change from GPL to LGPL,
1075         with consent from all contributors, for use in libguile.
1076         Requested by Ludovic Courtès.
1077
1078 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
1079
1080         poll: return immediately on POLLHUP.
1081         * lib/poll.c (poll): Always set timeout before wait_timeout is
1082         computed.
1083
1084 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1085
1086         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
1087         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
1088         rmdir ("dir/.//"), unlinkat.
1089
1090 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1091
1092         stdbool: avoid spurious failure with modern xlc
1093         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
1094
1095 2010-08-24  Bruno Haible  <bruno@clisp.org>
1096
1097         getloadavg: simplify code
1098         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
1099         gl_have_func. Update comments.
1100
1101 2010-08-24  Eric Blake  <eblake@redhat.com>
1102
1103         getloadavg: don't define SVR4 on cygwin
1104         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
1105         only define SVR4 when -lkvm is required.
1106         Reported by Yaakov Selkowitz.
1107
1108 2010-08-24  Bruno Haible  <bruno@clisp.org>
1109
1110         priv-set: fix comment
1111         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
1112
1113 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
1114
1115         priv-set: fix comments
1116         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
1117         to match code, as suggested by David Bartley in:
1118         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
1119
1120 2010-08-23  Eric Blake  <eblake@redhat.com>
1121
1122         stdbool: avoid rejecting clang
1123         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
1124         * tests/test-stdbool.c: Enable more tests if using the system
1125         <stdbool.h> instead of the gnulib replacement.
1126         (main): Move xlc bug test to a runtime test for all compilers.
1127         Reported by Anders Kaseorg.
1128
1129         argz: fix shell quoting issue
1130         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
1131         Reported by Charles Wilson.
1132
1133 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
1134             Erik Faye-Lund <kusmabite@gmail.com>
1135
1136         poll, select: handle ERROR_BROKEN_PIPE.
1137         * lib/poll.c (win32_compute_revents): Return POLLHUP when
1138         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
1139         * lib/select.c (win32_compute_revents): Do not mark a pipe
1140         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
1141
1142 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
1143
1144         fts: allow compilation with C++
1145         * lib/fts_.h: Specify extern "C" linkage with C++.
1146
1147 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1148
1149         Fix gnulib-tool sed script de-commentation for AIX sed.
1150         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
1151         sed.
1152
1153 2010-08-17  Eric Blake  <eblake@redhat.com>
1154
1155         test-stddef: test for (some) offsetof bugs
1156         * tests/test-stddef.c: Enhance test to ensure correct type of
1157         offsetof.
1158         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
1159         that we are not fixing at this time.
1160
1161 2010-08-15  Bruno Haible  <bruno@clisp.org>
1162
1163         stpncpy: Allow stpncpy to be defined as a macro.
1164         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
1165         if it's already correctly declared.
1166         * lib/string.in.h (stpncpy): Undefine before redefining.
1167         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
1168
1169 2010-08-14  Bruno Haible  <bruno@clisp.org>
1170
1171         Rename module 'memxfrm' to 'amemxfrm'.
1172         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
1173         (amemxfrm): Renamed from memxfrm.
1174         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
1175         (amemxfrm): Renamed from memxfrm.
1176         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
1177         * NEWS: Mention the change.
1178         * MODULES.html.sh (String handling <string.h>): Update.
1179         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
1180         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
1181         * lib/unicase/u16-casexfrm.c: Likewise.
1182         * lib/unicase/u32-casexfrm.c: Likewise.
1183         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
1184         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
1185         * lib/uninorm/u16-normxfrm.c: Likewise.
1186         * lib/uninorm/u32-normxfrm.c: Likewise.
1187         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
1188         memxfrm.
1189         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
1190         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
1191         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
1192         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
1193         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
1194         Suggested by Paul Eggert.
1195
1196 2010-08-14  Bruno Haible  <bruno@clisp.org>
1197
1198         Tests for module 'astrxfrm'.
1199         * modules/astrxfrm-tests: New file.
1200         * tests/test-astrxfrm.c: New file.
1201
1202         New module 'astrxfrm'.
1203         * lib/astrxfrm.h: New file.
1204         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
1205         * modules/astrxfrm: New file.
1206
1207 2010-08-14  Reuben Thomas <rrt@sc3d.org>
1208
1209         regex: Tweak doc.
1210         * doc/regex.texi (Overview): Don't mention regex.c.
1211         (GNU Regular Expression Compiling): Likewise.
1212         (Match-end-of-line Operator): Mention 'not_eol'.
1213
1214 2010-08-14  Brian Gough  <bjg@gnu.org>
1215             Bruno Haible  <bruno@clisp.org>
1216
1217         git-merge-changelog: add doc relating to use with bzr and hg.
1218         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
1219
1220 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
1221
1222         pthread: fix pthread.h creation for srcdir != builddir
1223         * modules/pthread (Makefile.am): Fix the rule to work also in a
1224         non-srcdir build.
1225
1226 2010-08-13  Karl Berry  <karl@gnu.org>
1227
1228         * doc/regex.texi (Predefined Syntaxes): @smallexample.
1229         * doc/posix-*/*: force line break before @url of POSIX
1230         specifications.
1231         Suggested by Werner Lemberg.
1232
1233 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
1234
1235         strtod: fix const diagnostic
1236         * lib/strtod.c (strtod): Don't assign const char * to char *,
1237         as this elicits a warning from GCC when warnings are enabled.
1238
1239 2010-08-10  Pádraig Brady <P@draigbrady.com>
1240         and Eric Blake  <eblake@redhat.com>
1241
1242         copy-acl: ignore ENOTSUP on HP-UX
1243         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
1244         so that it is available for HP-UX.
1245         * lib/copy-acl.c (qcopy_acl): Use it.
1246         Reported by Patrick M. Callahan.
1247
1248 2010-08-10  Eric Blake  <eblake@redhat.com>
1249
1250         open, chown: relax license
1251         * modules/open (License): Change to LGPLv2+, with consent by all
1252         authors, for use in augeas.
1253         * modules/chown (License): Likewise.
1254         * modules/lchown (Likewise): Likewise.
1255         Requested by Adam Stokes.
1256
1257 2010-08-09  Karl Berry  <karl@gnu.org>
1258
1259         * build-aux/ar-lib: new file, import from Automake.
1260         * config/srclist.txt: autocheck for updates.
1261
1262 2010-08-09  Eric Blake  <eblake@redhat.com>
1263
1264         readlinkat: adjust client modules
1265         * modules/areadlinkat (Depends-on): Use readlinkat, not
1266         symlinkat.
1267         * modules/areadlinkat-with-size (Depends-on): Likewise.
1268
1269         mknod: be more vocal about danger of running tests as root
1270         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
1271         root, since that is just asking for problems.
1272         Suggested by Bruno Haible, based on a report by Rainer Tammer.
1273
1274         readlinkat: split into its own module
1275         * modules/symlinkat: Split readlinkat...
1276         * modules/readlinkat: ...into separate module.
1277         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
1278         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
1279         * lib/symlinkat.c (readlinkat): Move...
1280         * lib/readlinkat.c: ...into new file.
1281         * modules/symlinkat-tests: Split readlinkat test...
1282         * modules/readlinkat-tests: ...into separate module.
1283         * tests/test-symlinkat.c: Split...
1284         * tests/test-readlinkat.c: ...into new file.
1285         * NEWS: Document the split.
1286         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
1287         * lib/unistd.in.h (readlinkat): Likewise.
1288         Suggested by Bruno Haible.
1289
1290 2010-08-08  Bruno Haible  <bruno@clisp.org>
1291
1292         memxfrm: Speed up.
1293         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
1294         that usually only one call to strxfrm is necessary for each string
1295         part.
1296         Reported by Paul Eggert <eggert@cs.ucla.edu>.
1297
1298 2010-08-07  Karl Berry  <karl@gnu.org>
1299
1300         * doc/posix-headers/limits.texi,
1301         * doc/posix-functions/malloc.texi,
1302         * doc/posix-functions/strsignal.texi: missing @item.
1303         * doc/ld-version-script.texi: spurious leading i.
1304         * doc/regex.texi (Interval Operators): no commas inside @var.
1305
1306 2010-08-01  Bruno Haible  <bruno@clisp.org>
1307
1308         Integrate the regex documentation.
1309         * doc/gnulib.texi: Define 'cn' index.
1310         (Regular expressions): New a chapter that includes regex.texi and
1311         regexprops-generic.texi.
1312         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
1313         syntax.
1314
1315         Whitespace cleanup.
1316         * doc/regex.texi: Remove trailing spaces.
1317
1318         Add regex documentation.
1319         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
1320         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
1321         Written by Kathy A. Hargreaves and Karl Berry.
1322
1323 2010-08-01  Bruno Haible  <bruno@clisp.org>
1324
1325         link: Update documentation.
1326         * doc/posix-functions/link.texi: Update regarding Solaris.
1327
1328 2010-07-31  Bruno Haible  <bruno@clisp.org>
1329
1330         Update modules list.
1331         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
1332         (String handling <string.h>): Add memcmp2, memxfrm.
1333         (Container data structures): Add xlist, xsublist, xoset.
1334         (Core language properties): Add alignof, unused-parameter.
1335         (Process control, Numeric conversion functions <stdlib.h>): Renamed
1336         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
1337         (Unibyte characters <ctype.h>): New section.
1338         (String handling <string.h>): New section.
1339         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
1340         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
1341         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
1342         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
1343         tan, tanh, tanl, y0, y1, yn.
1344         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
1345         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
1346         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
1347         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
1348         unlockpt, vdprintf, vdprintf-posix.
1349         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
1350         (File system functions): Add concat-filename, sys_file, sys_ioctl,
1351         xconcat-filename.
1352         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
1353         getdtablesize, pipe2, pipe2-safer.
1354         (Security): New section.
1355         (Networking functions): Add accept4.
1356         (Signal handling): Add sigpipe.
1357         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
1358         mbmemcasecoll.
1359         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
1360         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
1361         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
1362         pipe-filter-ii.
1363         (Misc): Add argp-version-etc, login_tty, parse-duration.
1364
1365 2010-07-31  Bruno Haible  <bruno@clisp.org>
1366
1367         Improve doc in MODULES.html.
1368         * modules/linkat (Description): Add the word "function".
1369         * modules/mkfifo (Description): Likewise.
1370         * modules/mknod (Description): Likewise.
1371         * modules/remove (Description): Likewise.
1372         * modules/renameat (Description): Likewise.
1373         * modules/stat (Description): Likewise.
1374         * modules/symlink (Description): Likewise.
1375         * modules/unlink (Description): Likewise.
1376
1377 2010-07-31  Bruno Haible  <bruno@clisp.org>
1378
1379         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
1380         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
1381         option --enable/disable-c++ instead of --enable/disable-cxx.
1382         * NEWS: Mention the change.
1383
1384 2010-07-31  Bruno Haible  <bruno@clisp.org>
1385
1386         readlink, areadlink: Relax test a bit.
1387         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
1388         alternative to ENOTDIR.
1389         * tests/test-areadlink.h (test_areadlink): Likewise.
1390         Reported by Rainer Tammer.
1391
1392 2010-07-31  Bruno Haible  <bruno@clisp.org>
1393
1394         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
1395         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
1396         character, perform the search using U_STRCHR.
1397         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
1398         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
1399         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
1400         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
1401         Suggested by Paolo Bonzini.
1402
1403 2010-07-31  Bruno Haible  <bruno@clisp.org>
1404
1405         unistr/u*-strstr: Fix dependencies.
1406         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
1407         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
1408         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
1409
1410 2010-07-31  Bruno Haible  <bruno@clisp.org>
1411
1412         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
1413         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
1414         the beginning of the loop.
1415         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
1416         cases in 'switch' statement.
1417
1418         unistr/u8-strchr: Fix several bugs.
1419         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
1420         the string. When not found, return NULL, not a pointer near the end.
1421
1422         More tests for unistr/u8-strchr.
1423         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
1424         that the function does not read past the first occurrence of the byte
1425         being searched.
1426         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
1427         * tests/unistr/test-u16-strchr.c (main): New function.
1428         * tests/unistr/test-u32-strchr.c (main): New function.
1429
1430 2010-07-31  Bruno Haible  <bruno@clisp.org>
1431
1432         posix-modules: Ignore backup files of documentation files.
1433         * posix-modules: grep only through files named *.texi.
1434
1435 2010-07-31  Bruno Haible  <bruno@clisp.org>
1436
1437         symlinkat: Fix documentation.
1438         * doc/posix-functions/readlinkat.texi: Fix module name.
1439
1440 2010-07-31  Bruno Haible  <bruno@clisp.org>
1441
1442         fchownat: Replace also when chown has the trailing slash bug.
1443         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
1444         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
1445         introduced on 2010-04-10.
1446         Reported by Rainer Tammer.
1447
1448 2010-07-31  Bruno Haible  <bruno@clisp.org>
1449
1450         linkat: Work around AIX 7.1 bug.
1451         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
1452         whether linkat handles trailing slash correctly. If not, replace linkat
1453         and define LINKAT_TRAILING_SLASH_BUG.
1454         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
1455         check whether (fd1,file1) points to a directory if file1 or file2 ends
1456         in a slash. Code taken from lib/link.c.
1457         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
1458         Reported by Rainer Tammer.
1459
1460 2010-07-31  Bruno Haible  <bruno@clisp.org>
1461
1462         Correctly determine whether pow is available in libc on AIX 7 with xlc.
1463         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
1464         This disables an xlc optimization that was causing wrong test results.
1465         Reported by Rainer Tammer.
1466
1467 2010-07-31  Bruno Haible  <bruno@clisp.org>
1468
1469         iconv: Work around AIX 6.1..7.1 bug.
1470         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
1471         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
1472         cross-compiling, guess no on all versions of AIX.
1473         Reported by Rainer Tammer.
1474
1475 2010-07-31  Bruno Haible  <bruno@clisp.org>
1476
1477         readlink: Relax test a bit.
1478         * tests/test-readlink.h (test_readlink): Allow different errno value
1479         when readlink is called with a file name that ends in / and refers to
1480         a file.
1481         Suggested by Eric Blake.
1482         Reported by Rainer Tammer.
1483
1484 2010-07-31  Bruno Haible  <bruno@clisp.org>
1485
1486         copysign: Does not require -lm on glibc systems.
1487         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
1488         gl_COMMON_DOUBLE_MATHFUNC.
1489         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
1490
1491 2010-07-31  Bruno Haible  <bruno@clisp.org>
1492
1493         duplocale: Work around AIX 7.1 bug.
1494         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
1495         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
1496         * lib/duplocale.c (rpl_duplocale): Update comment.
1497         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
1498         Reported by Rainer Tammer.
1499
1500 2010-07-30  Bruno Haible  <bruno@clisp.org>
1501
1502         dirfd: Avoid link error on AIX 7.1.
1503         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
1504         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
1505         exist, set REPLACE_DIRFD.
1506         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
1507         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
1508         * doc/posix-functions/dirfd.texi: Update.
1509         Reported by Rainer Tammer.
1510
1511 2010-07-30  Eric Blake  <eblake@redhat.com>
1512
1513         strtod: next round of AIX fixes
1514         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
1515         exponent.
1516         * tests/test-strtod.c (main): Enhance tests.
1517         * doc/posix-functions/strtod.texi (strtod): Document next bug.
1518         Reported by Rainer Tammer.
1519
1520         futimens: fix configure check
1521         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
1522         Reported by Bruno Haible.
1523
1524 2010-07-30  Bruno Haible  <bruno@clisp.org>
1525
1526         getline: Update regarding AIX.
1527         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
1528         Reported by Rainer Tammer.
1529
1530 2010-07-30  Bruno Haible  <bruno@clisp.org>
1531
1532         wcwidth: Drop replacement on AIX 7.
1533         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
1534         AIX 7.
1535         Reported by Rainer Tammer.
1536
1537 2010-07-30  Bruno Haible  <bruno@clisp.org>
1538
1539         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
1540         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
1541         a 'char *'.
1542         Reported by Rainer Tammer.
1543
1544 2010-07-30  Bruno Haible  <bruno@clisp.org>
1545
1546         unlink: Update regarding AIX.
1547         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
1548         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
1549         Reported by Rainer Tammer.
1550
1551 2010-07-30  Bruno Haible  <bruno@clisp.org>
1552
1553         symlink: Update regarding AIX.
1554         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
1555         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
1556         Reported by Rainer Tammer.
1557
1558 2010-07-30  Bruno Haible  <bruno@clisp.org>
1559
1560         strndup: Update regarding AIX.
1561         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
1562         AIX 7.
1563         Reported by Rainer Tammer.
1564
1565 2010-07-30  Bruno Haible  <bruno@clisp.org>
1566
1567         stat: Update regarding AIX.
1568         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
1569         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
1570         Reported by Rainer Tammer.
1571
1572 2010-07-30  Bruno Haible  <bruno@clisp.org>
1573
1574         truncl: Fix autoconf test.
1575         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
1576         whether truncl works.
1577         Reported by Rainer Tammer.
1578
1579 2010-07-30  Bruno Haible  <bruno@clisp.org>
1580
1581         round: Update regarding AIX.
1582         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
1583         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
1584         Reported by Rainer Tammer.
1585
1586 2010-07-30  Bruno Haible  <bruno@clisp.org>
1587
1588         rename: Update regarding AIX.
1589         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
1590         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
1591         Reported by Rainer Tammer.
1592
1593 2010-07-30  Bruno Haible  <bruno@clisp.org>
1594
1595         printf.m4: Update regarding AIX.
1596         * m4/printf.m4: Update comments regarding AIX.
1597         Reported by Rainer Tammer.
1598
1599 2010-07-30  Bruno Haible  <bruno@clisp.org>
1600
1601         iconv: Update regarding AIX.
1602         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
1603         AIX 7.
1604         Reported by Rainer Tammer.
1605
1606 2010-07-30  Bruno Haible  <bruno@clisp.org>
1607
1608         getopt: Update regarding AIX.
1609         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
1610         no on AIX.
1611         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
1612         Reported by Rainer Tammer.
1613
1614 2010-07-30  Bruno Haible  <bruno@clisp.org>
1615
1616         ldexpl; Update regarding AIX.
1617         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
1618         on AIX 7.
1619         Reported by Rainer Tammer.
1620
1621 2010-07-30  Bruno Haible  <bruno@clisp.org>
1622
1623         frexpl: Update regarding AIX.
1624         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
1625         on AIX 7.
1626         Reported by Rainer Tammer.
1627
1628 2010-07-30  Bruno Haible  <bruno@clisp.org>
1629
1630         open, fopen: Update regarding AIX.
1631         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
1632         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
1633         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
1634         * doc/posix-functions/fopen.texi: Likewise.
1635         Reported by Rainer Tammer.
1636
1637 2010-07-30  Bruno Haible  <bruno@clisp.org>
1638
1639         chown: Update doc regarding AIX.
1640         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
1641         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
1642         Reported by Rainer Tammer.
1643
1644 2010-07-30  Eric Blake  <eblake@redhat.com>
1645
1646         strtod: fix bug in replacement function on AIX
1647         * lib/strtod.c (strtod): Special case broken "0x" parse in
1648         underlying strtod.
1649         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
1650         * doc/posix-functions/strtod.texi (strtod): Likewise.
1651         Reported by Rainer Tammer.
1652
1653 2010-07-30  Bruno Haible  <bruno@clisp.org>
1654
1655         mbrlen: Fix cross-compilation guess for AIX.
1656         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
1657         guess. Leftover from 2008-12-22.
1658
1659 2010-07-30  Bruno Haible  <bruno@clisp.org>
1660
1661         mbrtowc: Fix cross-compilation guess for AIX.
1662         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
1663         guess. Leftover from 2008-12-21.
1664
1665 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
1666
1667         init.sh: work around trap limitation of some shells
1668         * tests/init.sh (setup_): Move exit trap outside of shell function.
1669
1670 2010-07-29  Eric Blake  <eblake@redhat.com>
1671
1672         strtod: aid debugging
1673         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
1674         understanding why strtod is rejected.
1675
1676 2010-07-28  Bruno Haible  <bruno@clisp.org>
1677
1678         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
1679         * lib/unistr/u8-chr.c: Include <string.h>.
1680         * tests/unistr/test-u8-chr.c: Likewise.
1681         * tests/unistr/test-u16-chr.c: Likewise.
1682         * tests/unistr/test-u32-chr.c: Likewise.
1683         * tests/unistr/test-u8-strchr.c: Likewise.
1684         * tests/unistr/test-u16-strchr.c: Likewise.
1685         * tests/unistr/test-u32-strchr.c: Likewise.
1686         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
1687         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
1688         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
1689         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
1690
1691 2010-07-28  Bruno Haible  <bruno@clisp.org>
1692
1693         Use spaces for indentation, not tabs.
1694         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
1695
1696 2010-07-27  Bruno Haible  <bruno@clisp.org>
1697
1698         mbspcasecmp: Fix function specification.
1699         * lib/string.in.h (mbspcasecmp): Fix specification comment.
1700         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
1701         Reported by Eric Blake <eblake@redhat.com>.
1702
1703 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
1704
1705         timespec: use cast and not conditional, as truncation isn't possible
1706         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
1707         instead of a conditional.  Comment about the situation in more detail.
1708         This undoes most of the 2009-10-29 patch.
1709
1710 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
1711
1712         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
1713         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
1714         * lib/unistr/u8-strchr.c: Likewise.
1715         * modules/unistr/u8-chr: Depend on memchr.
1716
1717         unistr/u*-strchr: add tests
1718         * modules/unistr/u8-strchr-tests: New file.
1719         * modules/unistr/u16-strchr-tests: New file.
1720         * modules/unistr/u32-strchr-tests: New file.
1721         * tests/unistr/test-strchr.h: New file.
1722         * tests/unistr/test-u8-strchr.c: New file.
1723         * tests/unistr/test-u16-strchr.c: New file.
1724         * tests/unistr/test-u32-strchr.c: New file.
1725
1726         unistr/u*-chr: test multibyte sequences more
1727         * tests/unistr/test-chr.h: Do complete testing of the characters in the
1728         test vector.
1729         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
1730         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
1731         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
1732
1733         unistr/u*-chr: test multibyte sequences
1734         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
1735
1736         unistr/u*-chr: prepare for multibyte tests
1737         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
1738         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
1739         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
1740         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
1741         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
1742         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
1743
1744 2010-07-18  Bruno Haible  <bruno@clisp.org>
1745
1746         unistr/u8-strchr: Optimize non-ASCII argument case.
1747         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
1748         because the first byte often matches anyway.
1749         Reported by Pádraig Brady <P@draigbrady.com>.
1750
1751 2010-07-15  Karl Berry  <karl@gnu.org>
1752
1753         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
1754
1755 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
1756
1757         getcwd: on Solaris, work better if ancestors are inaccessible
1758         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
1759         buffer and size, try again with a large buffer.  This works better
1760         on Solaris, since its getcwd succeeds even if the path to the root
1761         is inaccessible, and this is helpful in common cases such as .zfs
1762         hidden directories.  Problem reported by J Chapman Flack in
1763         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
1764         Use system getcwd if it's declared, not merely if it's partly
1765         working; use the partly-working test only to avoid needless effort
1766         if the system getcwd fails.
1767         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
1768         comment that was already obsolete and is now even more obsolete.
1769         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
1770         now might call strdup.
1771
1772 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
1773
1774         pthread: Add enough so that coreutils/src/sort.c compiles.
1775         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
1776         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
1777         gnulib. Include <sched.h> and <time.h>, as per POSIX.
1778         Include <sys/types.h>, in case it defines pthread_t.
1779         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
1780         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
1781         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
1782         (pthread_rwlockattr_t, pthread_spinlock_t):
1783         New typedefs, if HAVE_PTHREAD_T is not defined.
1784         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
1785         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
1786         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
1787         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
1788         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
1789         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
1790         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
1791         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
1792         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
1793         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
1794         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
1795         New macros.
1796         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
1797         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
1798         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
1799         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
1800         (pthread_spin_unlock): New dummy functions.
1801         (pthread_create): Return EAGAIN; don't set errno.
1802         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
1803         require AC_C_INLINE.
1804         * modules/pthread (Depends-on): Add sched, time.
1805         (pthread.h): Use AM_V_GEN.
1806
1807 2010-07-13  Bruno Haible  <bruno@clisp.org>
1808
1809         striconveh: Don't malloc memory if the result buffer is sufficient.
1810         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
1811         buffer if its size is sufficient.
1812         Reported by Ludovic Courtès <ludo@gnu.org>.
1813
1814 2010-07-13  Bruno Haible  <bruno@clisp.org>
1815
1816         strtod: Add safety check.
1817         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
1818
1819 2010-07-12  Bruno Haible  <bruno@clisp.org>
1820
1821         Unify tests that set gl_cv_func_ldexpl_no_libm.
1822         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
1823         gl_FUNC_LDEXPL.
1824         (gl_FUNC_LDEXPL): Invoke it.
1825         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
1826
1827 2010-07-12  Bruno Haible  <bruno@clisp.org>
1828
1829         Unify tests that set gl_cv_func_ldexp_no_libm.
1830         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
1831         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
1832         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
1833         (configure.ac): Simply invoke gl_FUNC_LDEXP.
1834         * modules/strtod (Files): Add m4/ldexp.m4.
1835
1836 2010-07-12  Bruno Haible  <bruno@clisp.org>
1837
1838         Unify tests that set gl_cv_func_frexpl_no_libm.
1839         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
1840         gl_FUNC_FREXPL_NO_LIBM.
1841         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
1842         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
1843
1844 2010-07-12  Bruno Haible  <bruno@clisp.org>
1845
1846         Unify tests that set gl_cv_func_frexp_no_libm.
1847         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
1848         gl_FUNC_FREXP_NO_LIBM.
1849         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
1850         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
1851
1852 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
1853
1854         memcoll: clarify sizes versus lengths, document better, and tweak perf
1855         * lib/memcoll.c (strcoll_loop, memcoll0):
1856         Improve quality of descriptive comments.  Name variables
1857         consistently as to whether they are lengths (which do not include
1858         terminating null) versus sizes (which do).
1859         * lib/xmemcoll.c (xmemcoll0): Likewise.
1860         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
1861         returned when s1size == 0; this is easier to compile and saves
1862         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
1863
1864 2010-07-12  Bruno Haible  <bruno@clisp.org>
1865
1866         Tests for module '_Exit'.
1867         * modules/_Exit-tests: New file.
1868         * tests/test-_Exit.sh: New file.
1869         * tests/test-_Exit.c: New file.
1870
1871         New module '_Exit'.
1872         * lib/stdlib.in.h (__attribute__): New macro.
1873         (_Exit): New declaration.
1874         * lib/_Exit.c: New file.
1875         * m4/_Exit.m4: New file.
1876         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
1877         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
1878         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
1879         * modules/_Exit: New file.
1880         * tests/test-stdlib-c++.cc (_Exit): Check signature.
1881         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
1882
1883 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
1884
1885         strtod: make it more-accurate typically, and don't require libm
1886         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
1887         Include limits.h.  Don't include string.h.
1888         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
1889         (locale_isspace): New function, so that no casts are needed to
1890         check whether *s is a space.
1891         (ldexp): Provide an unused dummy if not available.
1892         (scale_radix_exp, parse_number, underlying_strtod): New functions.
1893         (strtod): Use them.  This implementation prefers to use the
1894         underlying strtod if available, falling back on our own code
1895         only to fix known bugs.  This is more likely to produce an
1896         accurate result.  Also, it avoids the use of libm functions.
1897         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
1898         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
1899         was absent, but it caused a test failure with coreutils.
1900         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
1901         with libm.
1902         * modules/strtod (Makefile.am, Link): libm is no longer needed.
1903         * modules/strtod-tests (Makefile.am): Likewise.
1904
1905 2010-07-11  Pádraig Brady  <P@draigBrady.com>
1906             Bruno Haible  <bruno@clisp.org>
1907
1908         unistr/u8-strchr: Optimize ASCII argument case.
1909         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
1910
1911 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
1912
1913         (x)memcoll: minor tweaks
1914         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
1915         is after the type that it qualifies.
1916         (memcoll0): Likewise.
1917         * lib/memcoll.h (memcoll0): Likewise.
1918         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
1919         * lib/xmemcoll.h (xmemcoll0): Likewise.
1920         * lib/memcoll.c (memcoll0): Correct the comment.  This function
1921         differs from memcoll in that the NUL byte is part of the argument.
1922         Omit the abort-checks, as performance is a real issue here.  Plus,
1923         the checks were wrong anyway (an off-by-one error).  Omit local
1924         variable 'diff', as it's a bit clearer that way.
1925         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
1926         no longer needed.
1927
1928 2010-07-08  Chen Guo <chenguo4@yahoo.com>
1929
1930         (x)memcoll: speedup when input is known to be NUL delimited
1931         * lib/memcoll.c: Include stdlib.
1932         (memcoll0) New function.
1933         (strcoll_loop) New function, refactored for use in both memcoll
1934         and memcoll0.
1935         * lib/memcoll.h: Add prototype for memcoll0.
1936         * lib/xmemcoll.c: (xmemcoll0) New function.
1937         (collate_error) New function, refactored for use in both xmemcoll
1938         and xmemcoll0.
1939         * lib/xmemcoll.h: Add prototype for xmemcoll0.
1940         * m4/memcoll.m4: add inline invocation.
1941
1942 2010-07-06  Pádraig Brady  <P@draigBrady.com>
1943
1944         * build-aux/bootstrap: Remove any local translations
1945         from the translation project synchronization directory,
1946         so that local only translations are not distributed.
1947
1948 2010-07-04  Bruno Haible  <bruno@clisp.org>
1949
1950         fsusage: Clarify which code applies to which platforms.
1951         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
1952         platform.
1953         * lib/fsusage.c (get_fs_usage): Likewise.
1954
1955 2010-07-04  Bruno Haible  <bruno@clisp.org>
1956
1957         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
1958         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
1959         Reported by Martin Lambers <marlam@marlam.de>.
1960
1961 2010-07-04  Jim Meyering  <meyering@redhat.com>
1962
1963         hash: once again explicitly disallow insertion of NULL
1964         * lib/hash.c (hash_insert0): Reinstate just-removed test:
1965         inserting a NULL pointer cannot work with these functions.
1966         Add a comment with details.
1967         This reverts part of the 2010-07-01 commit, 5bef1a35
1968         "hash: extend module to deal with non-pointer keys".
1969
1970 2010-07-01  Bruno Haible  <bruno@clisp.org>
1971
1972         stdbool: Update doc.
1973         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
1974         Info from Christian Weisgerber <naddy@mips.inka.de>.
1975
1976 2010-07-01  Jim Meyering  <meyering@redhat.com>
1977
1978         hash: extend module to deal with non-pointer keys
1979         * lib/hash.c (hash_insert0): New interface, much like hash_insert
1980         but that allows insertion of non-pointer entries.
1981         Do not disallow an ENTRY value of NULL.
1982         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
1983         * lib/hash.h (hash_insert0): Declare.
1984
1985 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
1986
1987         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
1988         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
1989         not present (i.e. with autoconf 2.59 and when using gettextize, not
1990         gnulib), require AC_GNU_SOURCE instead.
1991
1992 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
1993
1994         idpriv-drop: Fix tests.
1995         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
1996         not to the test-idpriv-droptemp program.
1997
1998 2010-06-29  Bruno Haible  <bruno@clisp.org>
1999
2000         string: Fix syntax error with g++ 2.96.
2001         * lib/string.in.h (__pure__): Remove definition.
2002         (_GL_ATTRIBUTE_PURE): New macro.
2003         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
2004         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
2005         Reported by Christian Weisgerber <naddy@mips.inka.de>.
2006
2007 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
2008
2009         unitypes: Fix bug introduced on 2010-05-18.
2010         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
2011
2012 2010-06-22  Eric Blake  <eblake@redhat.com>
2013
2014         memmem: slight optimization
2015         * lib/str-two-way.h (critical_factorization): Update comments.
2016         Reduce work during factorization phase.
2017         Reported by Carlos Bueno <carlos@bueno.org>.
2018
2019 2010-06-21  Bruno Haible  <bruno@clisp.org>
2020
2021         Fix HAVE_CALLOC_POSIX misnomer.
2022         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
2023         !HAVE_CALLOC_POSIX.
2024         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
2025         HAVE_CALLOC_POSIX.
2026         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
2027         instead of HAVE_CALLOC_POSIX.
2028         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
2029         HAVE_CALLOC_POSIX.
2030
2031         Use modern idiom for calloc() replacement.
2032         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
2033         AC_FUNC_CALLOC.
2034         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
2035         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
2036         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
2037         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
2038         (gl_REPLACE_CALLOC): New macro.
2039
2040 2010-06-21  Bruno Haible  <bruno@clisp.org>
2041
2042         Fix HAVE_REALLOC_POSIX misnomer.
2043         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
2044         !HAVE_REALLOC_POSIX.
2045         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
2046         HAVE_REALLOC_POSIX.
2047         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
2048         instead of HAVE_REALLOC_POSIX.
2049         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
2050         HAVE_REALLOC_POSIX.
2051
2052         Use modern idiom for realloc() replacement.
2053         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
2054         AC_FUNC_REALLOC.
2055         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
2056         Autoconf's AC_FUNC_REALLOC.
2057         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
2058         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
2059         (gl_REPLACE_REALLOC): New macro.
2060         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
2061
2062 2010-06-21  Bruno Haible  <bruno@clisp.org>
2063
2064         Fix HAVE_MALLOC_POSIX misnomer.
2065         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
2066         !HAVE_MALLOC_POSIX.
2067         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
2068         HAVE_MALLOC_POSIX.
2069         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
2070         instead of HAVE_MALLOC_POSIX.
2071         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
2072         HAVE_MALLOC_POSIX.
2073
2074         Use modern idiom for malloc() replacement.
2075         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
2076         AC_FUNC_MALLOC.
2077         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
2078         Autoconf's AC_FUNC_MALLOC.
2079         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
2080         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
2081         (gl_REPLACE_MALLOC): New macro.
2082         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
2083
2084 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
2085
2086         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
2087         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
2088         This macro takes 3 arguments, not 4.
2089
2090 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
2091
2092         ipv6: fix detection under mingw
2093         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
2094         in6_addr.
2095
2096 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
2097
2098         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
2099         that strtod() works when cross-compiling to a glibc version known
2100         to work.
2101
2102 2010-06-15  Bruno Haible  <bruno@clisp.org>
2103
2104         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
2105
2106 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
2107
2108         select: Correct timeout.
2109         * lib/select.c (rpl_select): Compute wait_timeout correctly.
2110
2111 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
2112
2113         git-version-gen: init shell var to avoid env var influence
2114         * build-aux/git-version-gen (v): Init shell var to empty.
2115
2116 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
2117
2118         priv-set: Don't assume that priv.h exists merely because getppriv does.
2119         See Jan Andersen's bug report about AIX 5L in
2120         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
2121         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
2122         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
2123         * lib/priv-set.h: Likewise.
2124         * tests/test-priv-set.c: Likewise.
2125
2126 2010-06-13  Bruno Haible  <bruno@clisp.org>
2127
2128         relocatable: Make it easier to test whether to install wrappers.
2129         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
2130         RELOCATABLE_VIA_WRAPPER.
2131
2132 2010-06-13  Bruno Haible  <bruno@clisp.org>
2133
2134         gnulib-tool: Display specified modules and dependencies differently.
2135         * gnulib-tool (func_show_module_list): New function.
2136         (func_import, func_create_testdir): Invoke it.
2137         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
2138
2139 2010-06-13  Bruno Haible  <bruno@clisp.org>
2140
2141         gnulib-tool: Align code of func_import and func_create_testdir.
2142         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
2143         specified_modules.
2144
2145 2010-06-12  Jim Meyering  <meyering@redhat.com>
2146
2147         test-inttostr: avoid spurious failure on Solaris 9
2148         * tests/test-inttostr.c (main): Skip the test when snprintf fails
2149         to accept "%ju".  Reported by Bruno Haible.
2150
2151 2010-06-11  Jim Meyering  <meyering@redhat.com>
2152
2153         test-sys_socket: mark variables as used more readably
2154         * tests/test-sys_socket.c (main): Mark otherwise unused variables
2155         as "used" explicitly via (void) statement casts.  This is more
2156         readable than using them in an artificial return expression.
2157         Suggestion from Bruno Haible.
2158
2159 2010-06-11  Bruno Haible  <bruno@clisp.org>
2160
2161         Avoid some more warnings from "gcc -Wwrite-strings".
2162         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
2163         to 'const char *'.
2164         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
2165         * tests/test-c-strcasestr.c (main): Likewise.
2166         * tests/test-mbscasestr1.c (main): Likewise.
2167         * tests/test-mbscasestr2.c (main): Likewise.
2168         * tests/test-memmem.c (main): Likewise.
2169         * tests/test-strstr.c (main): Likewise.
2170         * tests/test-strcasestr.c (main): Likewise.
2171
2172 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2173
2174         init.sh: change framework_failure_ to fail with status 99, not 1
2175         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
2176         automake's parallel-tests rule that this is an unexpected failure,
2177         even if the test is listed in XFAIL_TESTS.
2178
2179 2010-06-11  Jim Meyering  <meyering@redhat.com>
2180
2181         test-inttostr: avoid warnings about 4-6KB literal strings
2182         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
2183         Include "macros.h", for its definition of ASSERT.
2184         (CK): s/assert/ASSERT/
2185         * modules/inttostr-tests (Files): Add macros.h.
2186
2187         init.sh: don't use $ME_ or skip_ before they are defined
2188         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
2189         their first uses.  Also hoist their companions: warn_, fail_,
2190         framework_failure_, $stderr_fileno.  Prompted by a patch from
2191         Stefano Lattarini.
2192
2193         test-sys_socket: avoid set-but-not-used warnings from gcc
2194         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
2195         avoid warning about set-but-not-used variables.
2196
2197         test-xvasprintf: avoid 'const' discard warnings
2198         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
2199         "const" when assigning from literal strings.
2200         (test_xasprintf): Add "void" in function argument list to placate
2201         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
2202
2203         tests: avoid compilation warnings in argmatch and exclude tests...
2204         in packages that define ARGMATCH_DIE_DECL, like coreutils.
2205         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
2206         Since it always exits, declare with the "noreturn" attribute.
2207         * tests/test-argmatch.c: Likewise.
2208
2209         tests: avoid 'const' discard warnings in mbsstr tests
2210         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
2211         * tests/test-mbsstr2.c (main): Likewise.
2212
2213         test-verify: avoid warning from gcc's -Wmissing-declarations
2214         * tests/test-verify.c (function): Declare to be static.
2215
2216         test-inttostr.c: include <string.h> for use of strcmp
2217         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
2218
2219         test-linkat: avoid failed assertion on "other" architectures
2220         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
2221         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
2222         sparc: https://bugs.launchpad.net/bugs/591968
2223
2224 2010-06-11  Jim Meyering  <meyering@redhat.com>
2225
2226         printf.m4: avoid autoconf's "Expanded Before Required" warning
2227         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
2228         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
2229         autoconf warning.
2230
2231 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
2232
2233         Replacement header templates are now named with ".in", not "_".
2234         * doc/gnulib-intro.texi: Correct.
2235
2236 2010-06-10  Jim Meyering  <meyering@redhat.com>
2237
2238         inttostr-tests: depend on snprintf, not snprintf-posix
2239         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
2240         snprintf-posix, to avoid this aclocal failure:
2241           missing file gnulib-tests/vasnprintf.c
2242           configure.ac:45: error: expected source file, required through \
2243           AC_LIBSOURCES, not found
2244
2245 2010-06-10  Jim Meyering  <meyering@redhat.com>
2246
2247         inttostr: add a new function, inttostr, and tests
2248         The namesake function was not available.  The existence of the
2249         template file, inttostr.c makes its addition nontrivial.
2250         * lib/anytostr.c: Rename from inttostr.c.
2251         (anytostr): Rename from inttostr.
2252         * lib/inttostr.c: New file.
2253         * modules/inttostr (Files): Add anytostr.c.
2254         (Makefile.am): Set lib_SOURCES instead of ...
2255         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
2256         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
2257         * lib/offtostr.c: Likewise.
2258         * lib/uinttostr.c: Likewise.
2259         * lib/umaxtostr.c: Likewise.
2260         * modules/inttostr-tests: New file.
2261         * tests/test-inttostr.c: New file.  Test these functions.
2262
2263 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
2264             Bruno Haible  <bruno@clisp.org>
2265
2266         Add "Extending Gnulib" chapter to manual.
2267         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
2268         chapter.
2269         (Extending Gnulib): New chapter.
2270         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
2271         chapter.
2272
2273 2010-06-09  Bruno Haible  <bruno@clisp.org>
2274
2275         Avoid relocwrapper link errors due to gnulib replacement functions.
2276         * lib/areadlink.c: Use the system's malloc, realloc functions.
2277         (areadlink): Set errno to ENOMEM explicitly.
2278         * modules/areadlink (Depends-on): Remove malloc-posix.
2279         Reported by Ben Pfaff <blp@cs.stanford.edu>.
2280
2281 2010-06-09  Bruno Haible  <bruno@clisp.org>
2282
2283         Avoid relocwrapper link errors due to gnulib replacement functions.
2284         * lib/canonicalize-lgpl.c: Use the system's malloc function.
2285         * lib/malloca.c: Likewise.
2286         * lib/relocatable.c: Likewise.
2287         * lib/progreloc.c: Use the system's malloc, sprintf functions.
2288         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
2289         * lib/setenv.c: Use the system's malloc, realloc functions.
2290         * lib/strerror.c: Use the system's sprintf function.
2291         Reported by Ben Pfaff <blp@cs.stanford.edu>.
2292
2293 2010-06-04  Bruno Haible  <bruno@clisp.org>
2294
2295         Prefer documented low-level autoconf macro names.
2296         * m4/lib-link.m4: Use m4_translit instead of translit.
2297         * m4/environ.m4: Likewise.
2298         * m4/mathfunc.m4: Likewise.
2299         * m4/onceonly.m4: Likewise.
2300         * m4/stdint.m4: Likewise.
2301         Suggested by Eric Blake.
2302
2303 2010-06-04  Martin Lambers  <marlam@marlam.de>
2304             Bruno Haible  <bruno@clisp.org>
2305
2306         havelib: Allow library names with '+' characters.
2307         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
2308         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
2309
2310 2010-06-09  Bruno Haible  <bruno@clisp.org>
2311
2312         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
2313         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
2314         realloc failed.
2315
2316 2010-06-08  Peter Simons  <simons@cryp.to>
2317
2318         maint.mk: make the news-check rule more configurable
2319         * top/maint.mk (news-check-lines-spec) New variable.
2320         (news-check): Use "sed -n 1,10p" in place of "head".
2321
2322 2010-06-07  Jim Meyering  <meyering@redhat.com>
2323
2324         do-release-commit-and-tag: fix typo in --help
2325         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
2326
2327         regex: avoid new dead-code warning with gcc-4.6.0
2328         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
2329         if-block containing a while-loop.  It's been unused for at least
2330         5 years.
2331
2332 2010-06-05  Bruno Haible  <bruno@clisp.org>
2333
2334         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
2335         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
2336
2337 2010-06-04  Bruno Haible  <bruno@clisp.org>
2338
2339         Update to GNU gettext 0.18.1.
2340         * modules/gettext (configure.ac): Require gettext infrastructure from
2341         version 0.18.1.
2342
2343 2010-06-03  Bruno Haible  <bruno@clisp.org>
2344
2345         Don't use AC_LIBOBJ with file names in subdirectories.
2346         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
2347         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
2348         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
2349         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
2350         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
2351         gl_LIBUNISTRING_LIBSOURCE.
2352         (Makefile.am): Augment lib_SOURCES here, conditionally.
2353         * NEWS: Drop requirement for Automake option 'subdir-objects'.
2354
2355 2010-06-03  Bruno Haible  <bruno@clisp.org>
2356
2357         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
2358         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
2359         expansion does not end with a newline.
2360         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
2361         unnecessary newline.
2362
2363 2010-06-03  Bruno Haible  <bruno@clisp.org>
2364
2365         Reduce dependencies.
2366         * tests/test-quotearg.h: New file, extracted from
2367         tests/test-quotearg.c.
2368         * tests/test-quotearg-simple.c: New file, extracted from
2369         tests/test-quotearg.c.
2370         * tests/test-quotearg.c: Don't include <ctype.h>.
2371         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
2372         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
2373         use_quote_double_quotes, use_quotearg_colon): Moved to
2374         tests/test-quotearg.h.
2375         (results_g, flag_results, custom_quotes, custom_results): Moved
2376         to tests/test-quotearg-simple.c.
2377         (main): Moved the part that does not depend on gettext to
2378         tests/test-quotearg-simple.c. Return 77 if the test cannot be
2379         performed.
2380         * modules/quotearg-simple: New file.
2381         * modules/quotearg-simple-tests: New file.
2382         * modules/quotearg (Depends-on): Add quotearg-simple.
2383         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
2384         (Files): Add tests/test-quotearg.h.
2385         Reported by Paolo Bonzini.
2386
2387 2010-06-03  Bruno Haible  <bruno@clisp.org>
2388
2389         Reduce dependencies.
2390         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
2391
2392 2010-06-03  Bruno Haible  <bruno@clisp.org>
2393
2394         time: Undefine more broken macros.
2395         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
2396         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
2397         Reported by Eric Blake.
2398
2399 2010-06-03  Bruno Haible  <bruno@clisp.org>
2400
2401         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
2402         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
2403         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
2404         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
2405         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
2406         Reported by Ludovic Courtès <ludo@gnu.org>.
2407
2408 2010-06-02  Eric Blake  <eblake@redhat.com>
2409
2410         time: work with mingw + pthreads-win32 library
2411         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
2412         if timespec is defined only in pthread.h.
2413         * modules/time (Makefile.am): Substitute it.
2414         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
2415         <pthread.h>, when needed.
2416         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
2417         from the library.
2418
2419 2010-05-31  Bruno Haible  <bruno@clisp.org>
2420
2421         Avoid expanding two macros in the wrong order.
2422         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
2423         gl_LIBUNISTRING if it is defined.
2424         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
2425         autoconf >= 2.64.
2426         Reported by Ludovic Courtès <ludo@gnu.org>.
2427
2428 2010-05-27  Jim Meyering  <meyering@redhat.com>
2429
2430         maint.mk: also prohibit "#undef" of always-defined symbols
2431         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
2432         Allow more than one space before the symbol name.
2433         (sc_prohibit_always-defined_macros): Use grep's -E, now that
2434         the regexp uses alternation.
2435
2436 2010-05-26  Eric Blake  <eblake@redhat.com>
2437
2438         maint.mk: avoid echo -e
2439         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
2440         Convert all uses of echo -* to printf.
2441         Reported by Matthias Bolte.
2442
2443 2010-05-25  Bruno Haible  <bruno@clisp.org>
2444
2445         Update to GNU gettext 0.18, part 2.
2446         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
2447         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
2448
2449 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2450
2451         Add missing include in test-pwrite.c.
2452         * tests/test-pwrite.c: Include string.h, for strcmp.
2453
2454 2010-05-24  Bruno Haible  <bruno@clisp.org>
2455
2456         * NEWS: Mention requirement for Automake option 'subdir-objects'.
2457
2458 2010-05-24  Bruno Haible  <bruno@clisp.org>
2459
2460         Don't use conversion with transliteration in u{8,16,32}_strcoll.
2461         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
2462         iconveh_error argument.
2463         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
2464         U_STRCONV_TO_LOCALE.
2465         * lib/unistr/u16-strcoll.c: Likewise.
2466         * lib/unistr/u32-strcoll.c: Likewise.
2467         * modules/unistr/u8-strcoll (Depends-on): Add
2468         uniconv/u8-strconv-to-enc, localcharset. Remove
2469         uniconv/u8-strconv-to-locale.
2470         (configure.ac): Bump version number.
2471         * modules/unistr/u16-strcoll (Depends-on): Add
2472         uniconv/u16-strconv-to-enc, localcharset. Remove
2473         uniconv/u16-strconv-to-locale.
2474         (configure.ac): Bump version number.
2475         * modules/unistr/u32-strcoll (Depends-on): Add
2476         uniconv/u32-strconv-to-enc, localcharset. Remove
2477         uniconv/u32-strconv-to-locale.
2478         (configure.ac): Bump version number.
2479
2480 2010-05-24  Bruno Haible  <bruno@clisp.org>
2481
2482         Avoid a test failure on NetBSD 5.0.
2483         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
2484         an iconv() bug.
2485
2486 2010-05-24  Bruno Haible  <bruno@clisp.org>
2487
2488         Adjust #include directive style.
2489         * modules/regex (Includes): Recommend to write <regex.h>.
2490
2491 2010-05-24  Bruno Haible  <bruno@clisp.org>
2492
2493         regex: Don't require alloca.
2494         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
2495         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
2496         only inside if (0).
2497
2498 2010-05-23  Jim Meyering  <meyering@redhat.com>
2499
2500         test-renameat.c: include <sys/stat.h>
2501         * tests/test-renameat.c: Include <sys/stat.h>; required for
2502         definition of S_IS* macros.
2503
2504 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
2505
2506         Update maintainer documentation for 'relocatable-prog' module.
2507         * doc/relocatable-maint.texi: Update.
2508         Comments by Bruno Haible.
2509
2510 2010-05-23  Bruno Haible  <bruno@clisp.org>
2511
2512         git-merge-changelog: Enable --split-merged-entry by default.
2513         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
2514         (usage): Don't mention this option any more.
2515         Reported by Ralf Wildenhues.
2516
2517 2010-05-23  Jim Meyering  <meyering@redhat.com>
2518
2519         test-pwrite: do not leave behind a test file named "out"
2520         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
2521         The trivial-looking use of init.sh is really necessary.
2522         It ensures that the temporary file, "out", is created in
2523         a temporary directory, and removed upon termination.
2524         * tests/test-pwrite.sh: Re-add file.
2525         * modules/pwrite-tests: Reference it.
2526
2527 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2528
2529         Fix output redirection buglet in init.sh.
2530         * tests/init.sh: Fix redirection of stderr.
2531
2532 2010-05-20  Simon Josefsson  <simon@josefsson.org>
2533
2534         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
2535
2536 2010-05-17  Simon Josefsson  <simon@josefsson.org>
2537
2538         * modules/valgrind-tests: New file.
2539         * m4/valgrind-tests.m4: New file.
2540         * doc/valgrind-tests.texi: New file.
2541         * doc/gnulib.texi (Running self-tests under valgrind): New
2542         section.
2543
2544 2010-05-19  Bruno Haible  <bruno@clisp.org>
2545
2546         Clean up dead code in recent commit.
2547         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
2548         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
2549         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
2550         Suggested by Paolo Bonzini.
2551
2552 2010-05-19  Bruno Haible  <bruno@clisp.org>
2553
2554         Avoid valgrind error reports from libunistring.
2555         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
2556         * modules/libunistring (Files): Add it.
2557         * modules/libunistring-optional (Files): Likewise.
2558
2559 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
2560             Bruno Haible  <bruno@clisp.org>
2561
2562         New module 'libunistring-optional'.
2563         * modules/libunistring-optional: New file.
2564         * m4/libunistring-base.m4: New file.
2565         * m4/libunistring-optional.m4: New file.
2566         * lib/unicase.in.h: Renamed from lib/unicase.h.
2567         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
2568         * lib/unictype.in.h: Renamed from lib/unictype.h.
2569         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
2570         * lib/uniname.in.h: Renamed from lib/uniname.h.
2571         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
2572         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
2573         * lib/unistr.in.h: Renamed from lib/unistr.h.
2574         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
2575         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
2576         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
2577         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
2578         gl_LIBUNISTRING. If the library was found, determine the installed
2579         version and set LIBUNISTRING_VERSION.
2580         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
2581         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
2582         handle a configuration option --with-included-libunistring.
2583         * modules/libunistring (Files): Add m4/absolute-header.m4.
2584         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
2585         Add m4/libunistring-base.m4.
2586         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2587         (Makefile.am): Build unicase.h from unicase.in.h.
2588         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
2589         Add m4/libunistring-base.m4.
2590         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2591         (Makefile.am): Build uniconv.h from uniconv.in.h.
2592         * modules/unictype/base (Files): Use unictype.in.h instead of
2593         unictype.h. Add m4/libunistring-base.m4.
2594         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2595         (Makefile.am): Build unictype.h from unictype.in.h.
2596         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
2597         Add m4/libunistring-base.m4.
2598         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2599         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
2600         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
2601         Add m4/libunistring-base.m4.
2602         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2603         (Makefile.am): Build uniname.h from uniname.in.h.
2604         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
2605         Add m4/libunistring-base.m4.
2606         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2607         (Makefile.am): Build uninorm.h from uninorm.in.h.
2608         * modules/unistdio/base (Files): Use unistdio.in.h instead of
2609         unistdio.h. Add m4/libunistring-base.m4.
2610         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2611         (Makefile.am): Build unistdio.h from unistdio.in.h.
2612         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
2613         Add m4/libunistring-base.m4.
2614         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2615         (Makefile.am): Build unistr.h from unistr.in.h.
2616         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
2617         Add m4/libunistring-base.m4.
2618         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2619         (Makefile.am): Build unitypes.h from unitypes.in.h.
2620         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
2621         Add m4/libunistring-base.m4.
2622         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2623         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
2624         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
2625         uniwidth.h. Add m4/libunistring-base.m4.
2626         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2627         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
2628         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
2629         instead of augmenting lib_SOURCES.
2630         * modules/unicase/empty-suffix-context: Likewise.
2631         * modules/unicase/locale-language: Likewise.
2632         * modules/unicase/tolower: Likewise.
2633         * modules/unicase/totitle: Likewise.
2634         * modules/unicase/toupper: Likewise.
2635         * modules/unicase/u8-casecmp: Likewise.
2636         * modules/unicase/u8-casecoll: Likewise.
2637         * modules/unicase/u8-casefold: Likewise.
2638         * modules/unicase/u8-casexfrm: Likewise.
2639         * modules/unicase/u8-ct-casefold: Likewise.
2640         * modules/unicase/u8-ct-tolower: Likewise.
2641         * modules/unicase/u8-ct-totitle: Likewise.
2642         * modules/unicase/u8-ct-toupper: Likewise.
2643         * modules/unicase/u8-is-cased: Likewise.
2644         * modules/unicase/u8-is-casefolded: Likewise.
2645         * modules/unicase/u8-is-lowercase: Likewise.
2646         * modules/unicase/u8-is-titlecase: Likewise.
2647         * modules/unicase/u8-is-uppercase: Likewise.
2648         * modules/unicase/u8-prefix-context: Likewise.
2649         * modules/unicase/u8-suffix-context: Likewise.
2650         * modules/unicase/u8-tolower: Likewise.
2651         * modules/unicase/u8-totitle: Likewise.
2652         * modules/unicase/u8-toupper: Likewise.
2653         * modules/unicase/u16-casecmp: Likewise.
2654         * modules/unicase/u16-casecoll: Likewise.
2655         * modules/unicase/u16-casefold: Likewise.
2656         * modules/unicase/u16-casexfrm: Likewise.
2657         * modules/unicase/u16-ct-casefold: Likewise.
2658         * modules/unicase/u16-ct-tolower: Likewise.
2659         * modules/unicase/u16-ct-totitle: Likewise.
2660         * modules/unicase/u16-ct-toupper: Likewise.
2661         * modules/unicase/u16-is-cased: Likewise.
2662         * modules/unicase/u16-is-casefolded: Likewise.
2663         * modules/unicase/u16-is-lowercase: Likewise.
2664         * modules/unicase/u16-is-titlecase: Likewise.
2665         * modules/unicase/u16-is-uppercase: Likewise.
2666         * modules/unicase/u16-prefix-context: Likewise.
2667         * modules/unicase/u16-suffix-context: Likewise.
2668         * modules/unicase/u16-tolower: Likewise.
2669         * modules/unicase/u16-totitle: Likewise.
2670         * modules/unicase/u16-toupper: Likewise.
2671         * modules/unicase/u32-casecmp: Likewise.
2672         * modules/unicase/u32-casecoll: Likewise.
2673         * modules/unicase/u32-casefold: Likewise.
2674         * modules/unicase/u32-casexfrm: Likewise.
2675         * modules/unicase/u32-ct-casefold: Likewise.
2676         * modules/unicase/u32-ct-tolower: Likewise.
2677         * modules/unicase/u32-ct-totitle: Likewise.
2678         * modules/unicase/u32-ct-toupper: Likewise.
2679         * modules/unicase/u32-is-cased: Likewise.
2680         * modules/unicase/u32-is-casefolded: Likewise.
2681         * modules/unicase/u32-is-lowercase: Likewise.
2682         * modules/unicase/u32-is-titlecase: Likewise.
2683         * modules/unicase/u32-is-uppercase: Likewise.
2684         * modules/unicase/u32-prefix-context: Likewise.
2685         * modules/unicase/u32-suffix-context: Likewise.
2686         * modules/unicase/u32-tolower: Likewise.
2687         * modules/unicase/u32-totitle: Likewise.
2688         * modules/unicase/u32-toupper: Likewise.
2689         * modules/unicase/ulc-casecmp: Likewise.
2690         * modules/unicase/ulc-casecoll: Likewise.
2691         * modules/unicase/ulc-casexfrm: Likewise.
2692         * modules/uniconv/u8-conv-from-enc: Likewise.
2693         * modules/uniconv/u8-conv-to-enc: Likewise.
2694         * modules/uniconv/u8-strconv-from-enc: Likewise.
2695         * modules/uniconv/u8-strconv-from-locale: Likewise.
2696         * modules/uniconv/u8-strconv-to-enc: Likewise.
2697         * modules/uniconv/u8-strconv-to-locale: Likewise.
2698         * modules/uniconv/u16-conv-from-enc: Likewise.
2699         * modules/uniconv/u16-conv-to-enc: Likewise.
2700         * modules/uniconv/u16-strconv-from-enc: Likewise.
2701         * modules/uniconv/u16-strconv-from-locale: Likewise.
2702         * modules/uniconv/u16-strconv-to-enc: Likewise.
2703         * modules/uniconv/u16-strconv-to-locale: Likewise.
2704         * modules/uniconv/u32-conv-from-enc: Likewise.
2705         * modules/uniconv/u32-conv-to-enc: Likewise.
2706         * modules/uniconv/u32-strconv-from-enc: Likewise.
2707         * modules/uniconv/u32-strconv-from-locale: Likewise.
2708         * modules/uniconv/u32-strconv-to-enc: Likewise.
2709         * modules/uniconv/u32-strconv-to-locale: Likewise.
2710         * modules/unictype/bidicategory-byname: Likewise.
2711         * modules/unictype/bidicategory-name: Likewise.
2712         * modules/unictype/bidicategory-of: Likewise.
2713         * modules/unictype/bidicategory-test: Likewise.
2714         * modules/unictype/block-list: Likewise.
2715         * modules/unictype/block-test: Likewise.
2716         * modules/unictype/category-C: Likewise.
2717         * modules/unictype/category-Cc: Likewise.
2718         * modules/unictype/category-Cf: Likewise.
2719         * modules/unictype/category-Cn: Likewise.
2720         * modules/unictype/category-Co: Likewise.
2721         * modules/unictype/category-Cs: Likewise.
2722         * modules/unictype/category-L: Likewise.
2723         * modules/unictype/category-Ll: Likewise.
2724         * modules/unictype/category-Lm: Likewise.
2725         * modules/unictype/category-Lo: Likewise.
2726         * modules/unictype/category-Lt: Likewise.
2727         * modules/unictype/category-Lu: Likewise.
2728         * modules/unictype/category-M: Likewise.
2729         * modules/unictype/category-Mc: Likewise.
2730         * modules/unictype/category-Me: Likewise.
2731         * modules/unictype/category-Mn: Likewise.
2732         * modules/unictype/category-N: Likewise.
2733         * modules/unictype/category-Nd: Likewise.
2734         * modules/unictype/category-Nl: Likewise.
2735         * modules/unictype/category-No: Likewise.
2736         * modules/unictype/category-P: Likewise.
2737         * modules/unictype/category-Pc: Likewise.
2738         * modules/unictype/category-Pd: Likewise.
2739         * modules/unictype/category-Pe: Likewise.
2740         * modules/unictype/category-Pf: Likewise.
2741         * modules/unictype/category-Pi: Likewise.
2742         * modules/unictype/category-Po: Likewise.
2743         * modules/unictype/category-Ps: Likewise.
2744         * modules/unictype/category-S: Likewise.
2745         * modules/unictype/category-Sc: Likewise.
2746         * modules/unictype/category-Sk: Likewise.
2747         * modules/unictype/category-Sm: Likewise.
2748         * modules/unictype/category-So: Likewise.
2749         * modules/unictype/category-Z: Likewise.
2750         * modules/unictype/category-Zl: Likewise.
2751         * modules/unictype/category-Zp: Likewise.
2752         * modules/unictype/category-Zs: Likewise.
2753         * modules/unictype/category-and: Likewise.
2754         * modules/unictype/category-and-not: Likewise.
2755         * modules/unictype/category-byname: Likewise.
2756         * modules/unictype/category-name: Likewise.
2757         * modules/unictype/category-none: Likewise.
2758         * modules/unictype/category-of: Likewise.
2759         * modules/unictype/category-or: Likewise.
2760         * modules/unictype/category-test: Likewise.
2761         * modules/unictype/combining-class: Likewise.
2762         * modules/unictype/ctype-alnum: Likewise.
2763         * modules/unictype/ctype-alpha: Likewise.
2764         * modules/unictype/ctype-blank: Likewise.
2765         * modules/unictype/ctype-cntrl: Likewise.
2766         * modules/unictype/ctype-digit: Likewise.
2767         * modules/unictype/ctype-graph: Likewise.
2768         * modules/unictype/ctype-lower: Likewise.
2769         * modules/unictype/ctype-print: Likewise.
2770         * modules/unictype/ctype-punct: Likewise.
2771         * modules/unictype/ctype-space: Likewise.
2772         * modules/unictype/ctype-upper: Likewise.
2773         * modules/unictype/ctype-xdigit: Likewise.
2774         * modules/unictype/decimal-digit: Likewise.
2775         * modules/unictype/digit: Likewise.
2776         * modules/unictype/mirror: Likewise.
2777         * modules/unictype/numeric: Likewise.
2778         * modules/unictype/property-alphabetic: Likewise.
2779         * modules/unictype/property-ascii-hex-digit: Likewise.
2780         * modules/unictype/property-bidi-arabic-digit: Likewise.
2781         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
2782         * modules/unictype/property-bidi-block-separator: Likewise.
2783         * modules/unictype/property-bidi-boundary-neutral: Likewise.
2784         * modules/unictype/property-bidi-common-separator: Likewise.
2785         * modules/unictype/property-bidi-control: Likewise.
2786         * modules/unictype/property-bidi-embedding-or-override: Likewise.
2787         * modules/unictype/property-bidi-eur-num-separator: Likewise.
2788         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
2789         * modules/unictype/property-bidi-european-digit: Likewise.
2790         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
2791         * modules/unictype/property-bidi-left-to-right: Likewise.
2792         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
2793         * modules/unictype/property-bidi-other-neutral: Likewise.
2794         * modules/unictype/property-bidi-pdf: Likewise.
2795         * modules/unictype/property-bidi-segment-separator: Likewise.
2796         * modules/unictype/property-bidi-whitespace: Likewise.
2797         * modules/unictype/property-byname: Likewise.
2798         * modules/unictype/property-combining: Likewise.
2799         * modules/unictype/property-composite: Likewise.
2800         * modules/unictype/property-currency-symbol: Likewise.
2801         * modules/unictype/property-dash: Likewise.
2802         * modules/unictype/property-decimal-digit: Likewise.
2803         * modules/unictype/property-default-ignorable-code-point: Likewise.
2804         * modules/unictype/property-deprecated: Likewise.
2805         * modules/unictype/property-diacritic: Likewise.
2806         * modules/unictype/property-extender: Likewise.
2807         * modules/unictype/property-format-control: Likewise.
2808         * modules/unictype/property-grapheme-base: Likewise.
2809         * modules/unictype/property-grapheme-extend: Likewise.
2810         * modules/unictype/property-grapheme-link: Likewise.
2811         * modules/unictype/property-hex-digit: Likewise.
2812         * modules/unictype/property-hyphen: Likewise.
2813         * modules/unictype/property-id-continue: Likewise.
2814         * modules/unictype/property-id-start: Likewise.
2815         * modules/unictype/property-ideographic: Likewise.
2816         * modules/unictype/property-ids-binary-operator: Likewise.
2817         * modules/unictype/property-ids-trinary-operator: Likewise.
2818         * modules/unictype/property-ignorable-control: Likewise.
2819         * modules/unictype/property-iso-control: Likewise.
2820         * modules/unictype/property-join-control: Likewise.
2821         * modules/unictype/property-left-of-pair: Likewise.
2822         * modules/unictype/property-line-separator: Likewise.
2823         * modules/unictype/property-logical-order-exception: Likewise.
2824         * modules/unictype/property-lowercase: Likewise.
2825         * modules/unictype/property-math: Likewise.
2826         * modules/unictype/property-non-break: Likewise.
2827         * modules/unictype/property-not-a-character: Likewise.
2828         * modules/unictype/property-numeric: Likewise.
2829         * modules/unictype/property-other-alphabetic: Likewise.
2830         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
2831         * modules/unictype/property-other-grapheme-extend: Likewise.
2832         * modules/unictype/property-other-id-continue: Likewise.
2833         * modules/unictype/property-other-id-start: Likewise.
2834         * modules/unictype/property-other-lowercase: Likewise.
2835         * modules/unictype/property-other-math: Likewise.
2836         * modules/unictype/property-other-uppercase: Likewise.
2837         * modules/unictype/property-paired-punctuation: Likewise.
2838         * modules/unictype/property-paragraph-separator: Likewise.
2839         * modules/unictype/property-pattern-syntax: Likewise.
2840         * modules/unictype/property-pattern-white-space: Likewise.
2841         * modules/unictype/property-private-use: Likewise.
2842         * modules/unictype/property-punctuation: Likewise.
2843         * modules/unictype/property-quotation-mark: Likewise.
2844         * modules/unictype/property-radical: Likewise.
2845         * modules/unictype/property-sentence-terminal: Likewise.
2846         * modules/unictype/property-soft-dotted: Likewise.
2847         * modules/unictype/property-space: Likewise.
2848         * modules/unictype/property-terminal-punctuation: Likewise.
2849         * modules/unictype/property-test: Likewise.
2850         * modules/unictype/property-titlecase: Likewise.
2851         * modules/unictype/property-unassigned-code-value: Likewise.
2852         * modules/unictype/property-unified-ideograph: Likewise.
2853         * modules/unictype/property-uppercase: Likewise.
2854         * modules/unictype/property-variation-selector: Likewise.
2855         * modules/unictype/property-white-space: Likewise.
2856         * modules/unictype/property-xid-continue: Likewise.
2857         * modules/unictype/property-xid-start: Likewise.
2858         * modules/unictype/property-zero-width: Likewise.
2859         * modules/unictype/scripts: Likewise.
2860         * modules/unictype/syntax-c-ident: Likewise.
2861         * modules/unictype/syntax-c-whitespace: Likewise.
2862         * modules/unictype/syntax-java-ident: Likewise.
2863         * modules/unictype/syntax-java-whitespace: Likewise.
2864         * modules/unilbrk/u8-possible-linebreaks: Likewise.
2865         * modules/unilbrk/u8-width-linebreaks: Likewise.
2866         * modules/unilbrk/u16-possible-linebreaks: Likewise.
2867         * modules/unilbrk/u16-width-linebreaks: Likewise.
2868         * modules/unilbrk/u32-possible-linebreaks: Likewise.
2869         * modules/unilbrk/u32-width-linebreaks: Likewise.
2870         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
2871         * modules/unilbrk/ulc-width-linebreaks: Likewise.
2872         * modules/uniname/uniname: Likewise.
2873         * modules/uninorm/canonical-decomposition: Likewise.
2874         * modules/uninorm/composition: Likewise.
2875         * modules/uninorm/decomposing-form: Likewise.
2876         * modules/uninorm/decomposition: Likewise.
2877         * modules/uninorm/filter: Likewise.
2878         * modules/uninorm/nfc: Likewise.
2879         * modules/uninorm/nfd: Likewise.
2880         * modules/uninorm/nfkc: Likewise.
2881         * modules/uninorm/nfkd: Likewise.
2882         * modules/uninorm/u8-normalize: Likewise.
2883         * modules/uninorm/u8-normcmp: Likewise.
2884         * modules/uninorm/u8-normcoll: Likewise.
2885         * modules/uninorm/u8-normxfrm: Likewise.
2886         * modules/uninorm/u16-normalize: Likewise.
2887         * modules/uninorm/u16-normcmp: Likewise.
2888         * modules/uninorm/u16-normcoll: Likewise.
2889         * modules/uninorm/u16-normxfrm: Likewise.
2890         * modules/uninorm/u32-normalize: Likewise.
2891         * modules/uninorm/u32-normcmp: Likewise.
2892         * modules/uninorm/u32-normcoll: Likewise.
2893         * modules/uninorm/u32-normxfrm: Likewise.
2894         * modules/unistdio/u8-asnprintf: Likewise.
2895         * modules/unistdio/u8-asprintf: Likewise.
2896         * modules/unistdio/u8-snprintf: Likewise.
2897         * modules/unistdio/u8-sprintf: Likewise.
2898         * modules/unistdio/u8-u8-asnprintf: Likewise.
2899         * modules/unistdio/u8-u8-asprintf: Likewise.
2900         * modules/unistdio/u8-u8-snprintf: Likewise.
2901         * modules/unistdio/u8-u8-sprintf: Likewise.
2902         * modules/unistdio/u8-u8-vasnprintf: Likewise.
2903         * modules/unistdio/u8-u8-vasprintf: Likewise.
2904         * modules/unistdio/u8-u8-vsnprintf: Likewise.
2905         * modules/unistdio/u8-u8-vsprintf: Likewise.
2906         * modules/unistdio/u8-vasnprintf: Likewise.
2907         * modules/unistdio/u8-vasprintf: Likewise.
2908         * modules/unistdio/u8-vsnprintf: Likewise.
2909         * modules/unistdio/u8-vsprintf: Likewise.
2910         * modules/unistdio/u16-asnprintf: Likewise.
2911         * modules/unistdio/u16-asprintf: Likewise.
2912         * modules/unistdio/u16-snprintf: Likewise.
2913         * modules/unistdio/u16-sprintf: Likewise.
2914         * modules/unistdio/u16-u16-asnprintf: Likewise.
2915         * modules/unistdio/u16-u16-asprintf: Likewise.
2916         * modules/unistdio/u16-u16-snprintf: Likewise.
2917         * modules/unistdio/u16-u16-sprintf: Likewise.
2918         * modules/unistdio/u16-u16-vasnprintf: Likewise.
2919         * modules/unistdio/u16-u16-vasprintf: Likewise.
2920         * modules/unistdio/u16-u16-vsnprintf: Likewise.
2921         * modules/unistdio/u16-u16-vsprintf: Likewise.
2922         * modules/unistdio/u16-vasnprintf: Likewise.
2923         * modules/unistdio/u16-vasprintf: Likewise.
2924         * modules/unistdio/u16-vsnprintf: Likewise.
2925         * modules/unistdio/u16-vsprintf: Likewise.
2926         * modules/unistdio/u32-asnprintf: Likewise.
2927         * modules/unistdio/u32-asprintf: Likewise.
2928         * modules/unistdio/u32-snprintf: Likewise.
2929         * modules/unistdio/u32-sprintf: Likewise.
2930         * modules/unistdio/u32-u32-asnprintf: Likewise.
2931         * modules/unistdio/u32-u32-asprintf: Likewise.
2932         * modules/unistdio/u32-u32-snprintf: Likewise.
2933         * modules/unistdio/u32-u32-sprintf: Likewise.
2934         * modules/unistdio/u32-u32-vasnprintf: Likewise.
2935         * modules/unistdio/u32-u32-vasprintf: Likewise.
2936         * modules/unistdio/u32-u32-vsnprintf: Likewise.
2937         * modules/unistdio/u32-u32-vsprintf: Likewise.
2938         * modules/unistdio/u32-vasnprintf: Likewise.
2939         * modules/unistdio/u32-vasprintf: Likewise.
2940         * modules/unistdio/u32-vsnprintf: Likewise.
2941         * modules/unistdio/u32-vsprintf: Likewise.
2942         * modules/unistdio/ulc-asnprintf: Likewise.
2943         * modules/unistdio/ulc-asprintf: Likewise.
2944         * modules/unistdio/ulc-fprintf: Likewise.
2945         * modules/unistdio/ulc-snprintf: Likewise.
2946         * modules/unistdio/ulc-sprintf: Likewise.
2947         * modules/unistdio/ulc-vasnprintf: Likewise.
2948         * modules/unistdio/ulc-vasprintf: Likewise.
2949         * modules/unistdio/ulc-vfprintf: Likewise.
2950         * modules/unistdio/ulc-vsnprintf: Likewise.
2951         * modules/unistdio/ulc-vsprintf: Likewise.
2952         * modules/unistr/u8-check: Likewise.
2953         * modules/unistr/u8-chr: Likewise.
2954         * modules/unistr/u8-cmp: Likewise.
2955         * modules/unistr/u8-cmp2: Likewise.
2956         * modules/unistr/u8-cpy: Likewise.
2957         * modules/unistr/u8-cpy-alloc: Likewise.
2958         * modules/unistr/u8-endswith: Likewise.
2959         * modules/unistr/u8-mblen: Likewise.
2960         * modules/unistr/u8-mbsnlen: Likewise.
2961         * modules/unistr/u8-mbtouc: Likewise.
2962         * modules/unistr/u8-mbtouc-unsafe: Likewise.
2963         * modules/unistr/u8-mbtoucr: Likewise.
2964         * modules/unistr/u8-move: Likewise.
2965         * modules/unistr/u8-next: Likewise.
2966         * modules/unistr/u8-prev: Likewise.
2967         * modules/unistr/u8-set: Likewise.
2968         * modules/unistr/u8-startswith: Likewise.
2969         * modules/unistr/u8-stpcpy: Likewise.
2970         * modules/unistr/u8-stpncpy: Likewise.
2971         * modules/unistr/u8-strcat: Likewise.
2972         * modules/unistr/u8-strchr: Likewise.
2973         * modules/unistr/u8-strcmp: Likewise.
2974         * modules/unistr/u8-strcoll: Likewise.
2975         * modules/unistr/u8-strcpy: Likewise.
2976         * modules/unistr/u8-strcspn: Likewise.
2977         * modules/unistr/u8-strdup: Likewise.
2978         * modules/unistr/u8-strlen: Likewise.
2979         * modules/unistr/u8-strmblen: Likewise.
2980         * modules/unistr/u8-strmbtouc: Likewise.
2981         * modules/unistr/u8-strncat: Likewise.
2982         * modules/unistr/u8-strncmp: Likewise.
2983         * modules/unistr/u8-strncpy: Likewise.
2984         * modules/unistr/u8-strnlen: Likewise.
2985         * modules/unistr/u8-strpbrk: Likewise.
2986         * modules/unistr/u8-strrchr: Likewise.
2987         * modules/unistr/u8-strspn: Likewise.
2988         * modules/unistr/u8-strstr: Likewise.
2989         * modules/unistr/u8-strtok: Likewise.
2990         * modules/unistr/u8-to-u16: Likewise.
2991         * modules/unistr/u8-to-u32: Likewise.
2992         * modules/unistr/u8-uctomb: Likewise.
2993         * modules/unistr/u16-check: Likewise.
2994         * modules/unistr/u16-chr: Likewise.
2995         * modules/unistr/u16-cmp: Likewise.
2996         * modules/unistr/u16-cmp2: Likewise.
2997         * modules/unistr/u16-cpy: Likewise.
2998         * modules/unistr/u16-cpy-alloc: Likewise.
2999         * modules/unistr/u16-endswith: Likewise.
3000         * modules/unistr/u16-mblen: Likewise.
3001         * modules/unistr/u16-mbsnlen: Likewise.
3002         * modules/unistr/u16-mbtouc: Likewise.
3003         * modules/unistr/u16-mbtouc-unsafe: Likewise.
3004         * modules/unistr/u16-mbtoucr: Likewise.
3005         * modules/unistr/u16-move: Likewise.
3006         * modules/unistr/u16-next: Likewise.
3007         * modules/unistr/u16-prev: Likewise.
3008         * modules/unistr/u16-set: Likewise.
3009         * modules/unistr/u16-startswith: Likewise.
3010         * modules/unistr/u16-stpcpy: Likewise.
3011         * modules/unistr/u16-stpncpy: Likewise.
3012         * modules/unistr/u16-strcat: Likewise.
3013         * modules/unistr/u16-strchr: Likewise.
3014         * modules/unistr/u16-strcmp: Likewise.
3015         * modules/unistr/u16-strcoll: Likewise.
3016         * modules/unistr/u16-strcpy: Likewise.
3017         * modules/unistr/u16-strcspn: Likewise.
3018         * modules/unistr/u16-strdup: Likewise.
3019         * modules/unistr/u16-strlen: Likewise.
3020         * modules/unistr/u16-strmblen: Likewise.
3021         * modules/unistr/u16-strmbtouc: Likewise.
3022         * modules/unistr/u16-strncat: Likewise.
3023         * modules/unistr/u16-strncmp: Likewise.
3024         * modules/unistr/u16-strncpy: Likewise.
3025         * modules/unistr/u16-strnlen: Likewise.
3026         * modules/unistr/u16-strpbrk: Likewise.
3027         * modules/unistr/u16-strrchr: Likewise.
3028         * modules/unistr/u16-strspn: Likewise.
3029         * modules/unistr/u16-strstr: Likewise.
3030         * modules/unistr/u16-strtok: Likewise.
3031         * modules/unistr/u16-to-u32: Likewise.
3032         * modules/unistr/u16-to-u8: Likewise.
3033         * modules/unistr/u16-uctomb: Likewise.
3034         * modules/unistr/u32-check: Likewise.
3035         * modules/unistr/u32-chr: Likewise.
3036         * modules/unistr/u32-cmp: Likewise.
3037         * modules/unistr/u32-cmp2: Likewise.
3038         * modules/unistr/u32-cpy: Likewise.
3039         * modules/unistr/u32-cpy-alloc: Likewise.
3040         * modules/unistr/u32-endswith: Likewise.
3041         * modules/unistr/u32-mblen: Likewise.
3042         * modules/unistr/u32-mbsnlen: Likewise.
3043         * modules/unistr/u32-mbtouc: Likewise.
3044         * modules/unistr/u32-mbtouc-unsafe: Likewise.
3045         * modules/unistr/u32-mbtoucr: Likewise.
3046         * modules/unistr/u32-move: Likewise.
3047         * modules/unistr/u32-next: Likewise.
3048         * modules/unistr/u32-prev: Likewise.
3049         * modules/unistr/u32-set: Likewise.
3050         * modules/unistr/u32-startswith: Likewise.
3051         * modules/unistr/u32-stpcpy: Likewise.
3052         * modules/unistr/u32-stpncpy: Likewise.
3053         * modules/unistr/u32-strcat: Likewise.
3054         * modules/unistr/u32-strchr: Likewise.
3055         * modules/unistr/u32-strcmp: Likewise.
3056         * modules/unistr/u32-strcoll: Likewise.
3057         * modules/unistr/u32-strcpy: Likewise.
3058         * modules/unistr/u32-strcspn: Likewise.
3059         * modules/unistr/u32-strdup: Likewise.
3060         * modules/unistr/u32-strlen: Likewise.
3061         * modules/unistr/u32-strmblen: Likewise.
3062         * modules/unistr/u32-strmbtouc: Likewise.
3063         * modules/unistr/u32-strncat: Likewise.
3064         * modules/unistr/u32-strncmp: Likewise.
3065         * modules/unistr/u32-strncpy: Likewise.
3066         * modules/unistr/u32-strnlen: Likewise.
3067         * modules/unistr/u32-strpbrk: Likewise.
3068         * modules/unistr/u32-strrchr: Likewise.
3069         * modules/unistr/u32-strspn: Likewise.
3070         * modules/unistr/u32-strstr: Likewise.
3071         * modules/unistr/u32-strtok: Likewise.
3072         * modules/unistr/u32-to-u16: Likewise.
3073         * modules/unistr/u32-to-u8: Likewise.
3074         * modules/unistr/u32-uctomb: Likewise.
3075         * modules/uniwbrk/u8-wordbreaks: Likewise.
3076         * modules/uniwbrk/u16-wordbreaks: Likewise.
3077         * modules/uniwbrk/u32-wordbreaks: Likewise.
3078         * modules/uniwbrk/ulc-wordbreaks: Likewise.
3079         * modules/uniwbrk/wordbreak-property: Likewise.
3080         * modules/uniwidth/u8-strwidth: Likewise.
3081         * modules/uniwidth/u8-width: Likewise.
3082         * modules/uniwidth/u16-strwidth: Likewise.
3083         * modules/uniwidth/u16-width: Likewise.
3084         * modules/uniwidth/u32-strwidth: Likewise.
3085         * modules/uniwidth/u32-width: Likewise.
3086         * modules/uniwidth/width: Likewise.
3087         * modules/unicase/cased-tests (Makefile.am): Link all test programs
3088         with $(LIBUNISTRING).
3089         * modules/unicase/ignorable-tests: Likewise.
3090         * modules/unicase/locale-language-tests: Likewise.
3091         * modules/unicase/tolower-tests: Likewise.
3092         * modules/unicase/totitle-tests: Likewise.
3093         * modules/unicase/toupper-tests: Likewise.
3094         * modules/unicase/u8-casecmp-tests: Likewise.
3095         * modules/unicase/u8-casecoll-tests: Likewise.
3096         * modules/unicase/u8-casefold-tests: Likewise.
3097         * modules/unicase/u8-is-cased-tests: Likewise.
3098         * modules/unicase/u8-is-casefolded-tests: Likewise.
3099         * modules/unicase/u8-is-lowercase-tests: Likewise.
3100         * modules/unicase/u8-is-titlecase-tests: Likewise.
3101         * modules/unicase/u8-is-uppercase-tests: Likewise.
3102         * modules/unicase/u8-tolower-tests: Likewise.
3103         * modules/unicase/u8-totitle-tests: Likewise.
3104         * modules/unicase/u8-toupper-tests: Likewise.
3105         * modules/unicase/u16-casecmp-tests: Likewise.
3106         * modules/unicase/u16-casecoll-tests: Likewise.
3107         * modules/unicase/u16-casefold-tests: Likewise.
3108         * modules/unicase/u16-is-cased-tests: Likewise.
3109         * modules/unicase/u16-is-casefolded-tests: Likewise.
3110         * modules/unicase/u16-is-lowercase-tests: Likewise.
3111         * modules/unicase/u16-is-titlecase-tests: Likewise.
3112         * modules/unicase/u16-is-uppercase-tests: Likewise.
3113         * modules/unicase/u16-tolower-tests: Likewise.
3114         * modules/unicase/u16-totitle-tests: Likewise.
3115         * modules/unicase/u16-toupper-tests: Likewise.
3116         * modules/unicase/u32-casecmp-tests: Likewise.
3117         * modules/unicase/u32-casecoll-tests: Likewise.
3118         * modules/unicase/u32-casefold-tests: Likewise.
3119         * modules/unicase/u32-is-cased-tests: Likewise.
3120         * modules/unicase/u32-is-casefolded-tests: Likewise.
3121         * modules/unicase/u32-is-lowercase-tests: Likewise.
3122         * modules/unicase/u32-is-titlecase-tests: Likewise.
3123         * modules/unicase/u32-is-uppercase-tests: Likewise.
3124         * modules/unicase/u32-tolower-tests: Likewise.
3125         * modules/unicase/u32-totitle-tests: Likewise.
3126         * modules/unicase/u32-toupper-tests: Likewise.
3127         * modules/unicase/ulc-casecmp-tests: Likewise.
3128         * modules/unicase/ulc-casecoll-tests: Likewise.
3129         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
3130         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
3131         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
3132         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
3133         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
3134         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
3135         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
3136         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
3137         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
3138         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
3139         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
3140         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
3141         * modules/unictype/bidicategory-byname-tests: Likewise.
3142         * modules/unictype/bidicategory-name-tests: Likewise.
3143         * modules/unictype/bidicategory-of-tests: Likewise.
3144         * modules/unictype/bidicategory-test-tests: Likewise.
3145         * modules/unictype/block-list-tests: Likewise.
3146         * modules/unictype/block-of-tests: Likewise.
3147         * modules/unictype/block-test-tests: Likewise.
3148         * modules/unictype/category-C-tests: Likewise.
3149         * modules/unictype/category-Cc-tests: Likewise.
3150         * modules/unictype/category-Cf-tests: Likewise.
3151         * modules/unictype/category-Cn-tests: Likewise.
3152         * modules/unictype/category-Co-tests: Likewise.
3153         * modules/unictype/category-Cs-tests: Likewise.
3154         * modules/unictype/category-L-tests: Likewise.
3155         * modules/unictype/category-Ll-tests: Likewise.
3156         * modules/unictype/category-Lm-tests: Likewise.
3157         * modules/unictype/category-Lo-tests: Likewise.
3158         * modules/unictype/category-Lt-tests: Likewise.
3159         * modules/unictype/category-Lu-tests: Likewise.
3160         * modules/unictype/category-M-tests: Likewise.
3161         * modules/unictype/category-Mc-tests: Likewise.
3162         * modules/unictype/category-Me-tests: Likewise.
3163         * modules/unictype/category-Mn-tests: Likewise.
3164         * modules/unictype/category-N-tests: Likewise.
3165         * modules/unictype/category-Nd-tests: Likewise.
3166         * modules/unictype/category-Nl-tests: Likewise.
3167         * modules/unictype/category-No-tests: Likewise.
3168         * modules/unictype/category-P-tests: Likewise.
3169         * modules/unictype/category-Pc-tests: Likewise.
3170         * modules/unictype/category-Pd-tests: Likewise.
3171         * modules/unictype/category-Pe-tests: Likewise.
3172         * modules/unictype/category-Pf-tests: Likewise.
3173         * modules/unictype/category-Pi-tests: Likewise.
3174         * modules/unictype/category-Po-tests: Likewise.
3175         * modules/unictype/category-Ps-tests: Likewise.
3176         * modules/unictype/category-S-tests: Likewise.
3177         * modules/unictype/category-Sc-tests: Likewise.
3178         * modules/unictype/category-Sk-tests: Likewise.
3179         * modules/unictype/category-Sm-tests: Likewise.
3180         * modules/unictype/category-So-tests: Likewise.
3181         * modules/unictype/category-Z-tests: Likewise.
3182         * modules/unictype/category-Zl-tests: Likewise.
3183         * modules/unictype/category-Zp-tests: Likewise.
3184         * modules/unictype/category-Zs-tests: Likewise.
3185         * modules/unictype/category-and-not-tests: Likewise.
3186         * modules/unictype/category-and-tests: Likewise.
3187         * modules/unictype/category-byname-tests: Likewise.
3188         * modules/unictype/category-name-tests: Likewise.
3189         * modules/unictype/category-none-tests: Likewise.
3190         * modules/unictype/category-of-tests: Likewise.
3191         * modules/unictype/category-or-tests: Likewise.
3192         * modules/unictype/category-test-withtable-tests: Likewise.
3193         * modules/unictype/combining-class-tests: Likewise.
3194         * modules/unictype/ctype-alnum-tests: Likewise.
3195         * modules/unictype/ctype-alpha-tests: Likewise.
3196         * modules/unictype/ctype-blank-tests: Likewise.
3197         * modules/unictype/ctype-cntrl-tests: Likewise.
3198         * modules/unictype/ctype-digit-tests: Likewise.
3199         * modules/unictype/ctype-graph-tests: Likewise.
3200         * modules/unictype/ctype-lower-tests: Likewise.
3201         * modules/unictype/ctype-print-tests: Likewise.
3202         * modules/unictype/ctype-punct-tests: Likewise.
3203         * modules/unictype/ctype-space-tests: Likewise.
3204         * modules/unictype/ctype-upper-tests: Likewise.
3205         * modules/unictype/ctype-xdigit-tests: Likewise.
3206         * modules/unictype/decimal-digit-tests: Likewise.
3207         * modules/unictype/digit-tests: Likewise.
3208         * modules/unictype/mirror-tests: Likewise.
3209         * modules/unictype/numeric-tests: Likewise.
3210         * modules/unictype/property-alphabetic-tests: Likewise.
3211         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
3212         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
3213         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
3214         * modules/unictype/property-bidi-block-separator-tests: Likewise.
3215         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
3216         * modules/unictype/property-bidi-common-separator-tests: Likewise.
3217         * modules/unictype/property-bidi-control-tests: Likewise.
3218         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
3219         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
3220         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
3221         * modules/unictype/property-bidi-european-digit-tests: Likewise.
3222         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
3223         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
3224         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
3225         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
3226         * modules/unictype/property-bidi-pdf-tests: Likewise.
3227         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
3228         * modules/unictype/property-bidi-whitespace-tests: Likewise.
3229         * modules/unictype/property-byname-tests: Likewise.
3230         * modules/unictype/property-combining-tests: Likewise.
3231         * modules/unictype/property-composite-tests: Likewise.
3232         * modules/unictype/property-currency-symbol-tests: Likewise.
3233         * modules/unictype/property-dash-tests: Likewise.
3234         * modules/unictype/property-decimal-digit-tests: Likewise.
3235         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
3236         * modules/unictype/property-deprecated-tests: Likewise.
3237         * modules/unictype/property-diacritic-tests: Likewise.
3238         * modules/unictype/property-extender-tests: Likewise.
3239         * modules/unictype/property-format-control-tests: Likewise.
3240         * modules/unictype/property-grapheme-base-tests: Likewise.
3241         * modules/unictype/property-grapheme-extend-tests: Likewise.
3242         * modules/unictype/property-grapheme-link-tests: Likewise.
3243         * modules/unictype/property-hex-digit-tests: Likewise.
3244         * modules/unictype/property-hyphen-tests: Likewise.
3245         * modules/unictype/property-id-continue-tests: Likewise.
3246         * modules/unictype/property-id-start-tests: Likewise.
3247         * modules/unictype/property-ideographic-tests: Likewise.
3248         * modules/unictype/property-ids-binary-operator-tests: Likewise.
3249         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
3250         * modules/unictype/property-ignorable-control-tests: Likewise.
3251         * modules/unictype/property-iso-control-tests: Likewise.
3252         * modules/unictype/property-join-control-tests: Likewise.
3253         * modules/unictype/property-left-of-pair-tests: Likewise.
3254         * modules/unictype/property-line-separator-tests: Likewise.
3255         * modules/unictype/property-logical-order-exception-tests: Likewise.
3256         * modules/unictype/property-lowercase-tests: Likewise.
3257         * modules/unictype/property-math-tests: Likewise.
3258         * modules/unictype/property-non-break-tests: Likewise.
3259         * modules/unictype/property-not-a-character-tests: Likewise.
3260         * modules/unictype/property-numeric-tests: Likewise.
3261         * modules/unictype/property-other-alphabetic-tests: Likewise.
3262         * modules/unictype/property-other-default-ignorable-code-point-tests:
3263         Likewise.
3264         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
3265         * modules/unictype/property-other-id-continue-tests: Likewise.
3266         * modules/unictype/property-other-id-start-tests: Likewise.
3267         * modules/unictype/property-other-lowercase-tests: Likewise.
3268         * modules/unictype/property-other-math-tests: Likewise.
3269         * modules/unictype/property-other-uppercase-tests: Likewise.
3270         * modules/unictype/property-paired-punctuation-tests: Likewise.
3271         * modules/unictype/property-paragraph-separator-tests: Likewise.
3272         * modules/unictype/property-pattern-syntax-tests: Likewise.
3273         * modules/unictype/property-pattern-white-space-tests: Likewise.
3274         * modules/unictype/property-private-use-tests: Likewise.
3275         * modules/unictype/property-punctuation-tests: Likewise.
3276         * modules/unictype/property-quotation-mark-tests: Likewise.
3277         * modules/unictype/property-radical-tests: Likewise.
3278         * modules/unictype/property-sentence-terminal-tests: Likewise.
3279         * modules/unictype/property-soft-dotted-tests: Likewise.
3280         * modules/unictype/property-space-tests: Likewise.
3281         * modules/unictype/property-terminal-punctuation-tests: Likewise.
3282         * modules/unictype/property-test-tests: Likewise.
3283         * modules/unictype/property-titlecase-tests: Likewise.
3284         * modules/unictype/property-unassigned-code-value-tests: Likewise.
3285         * modules/unictype/property-unified-ideograph-tests: Likewise.
3286         * modules/unictype/property-uppercase-tests: Likewise.
3287         * modules/unictype/property-variation-selector-tests: Likewise.
3288         * modules/unictype/property-white-space-tests: Likewise.
3289         * modules/unictype/property-xid-continue-tests: Likewise.
3290         * modules/unictype/property-xid-start-tests: Likewise.
3291         * modules/unictype/property-zero-width-tests: Likewise.
3292         * modules/unictype/scripts-tests: Likewise.
3293         * modules/unictype/syntax-c-ident-tests: Likewise.
3294         * modules/unictype/syntax-c-whitespace-tests: Likewise.
3295         * modules/unictype/syntax-java-ident-tests: Likewise.
3296         * modules/unictype/syntax-java-whitespace-tests: Likewise.
3297         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
3298         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
3299         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
3300         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
3301         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
3302         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
3303         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
3304         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
3305         * modules/uniname/uniname-tests: Likewise.
3306         * modules/uninorm/canonical-decomposition-tests: Likewise.
3307         * modules/uninorm/compat-decomposition-tests: Likewise.
3308         * modules/uninorm/composition-tests: Likewise.
3309         * modules/uninorm/decomposing-form-tests: Likewise.
3310         * modules/uninorm/decomposition-tests: Likewise.
3311         * modules/uninorm/filter-tests: Likewise.
3312         * modules/uninorm/nfc-tests: Likewise.
3313         * modules/uninorm/nfd-tests: Likewise.
3314         * modules/uninorm/nfkc-tests: Likewise.
3315         * modules/uninorm/nfkd-tests: Likewise.
3316         * modules/uninorm/u8-normcmp-tests: Likewise.
3317         * modules/uninorm/u8-normcoll-tests: Likewise.
3318         * modules/uninorm/u16-normcmp-tests: Likewise.
3319         * modules/uninorm/u16-normcoll-tests: Likewise.
3320         * modules/uninorm/u32-normcmp-tests: Likewise.
3321         * modules/uninorm/u32-normcoll-tests: Likewise.
3322         * modules/unistdio/u8-asnprintf-tests: Likewise.
3323         * modules/unistdio/u8-vasnprintf-tests: Likewise.
3324         * modules/unistdio/u8-vasprintf-tests: Likewise.
3325         * modules/unistdio/u8-vsnprintf-tests: Likewise.
3326         * modules/unistdio/u8-vsprintf-tests: Likewise.
3327         * modules/unistdio/u16-asnprintf-tests: Likewise.
3328         * modules/unistdio/u16-vasnprintf-tests: Likewise.
3329         * modules/unistdio/u16-vasprintf-tests: Likewise.
3330         * modules/unistdio/u16-vsnprintf-tests: Likewise.
3331         * modules/unistdio/u16-vsprintf-tests: Likewise.
3332         * modules/unistdio/u32-asnprintf-tests: Likewise.
3333         * modules/unistdio/u32-vasnprintf-tests: Likewise.
3334         * modules/unistdio/u32-vasprintf-tests: Likewise.
3335         * modules/unistdio/u32-vsnprintf-tests: Likewise.
3336         * modules/unistdio/u32-vsprintf-tests: Likewise.
3337         * modules/unistdio/ulc-asnprintf-tests: Likewise.
3338         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
3339         * modules/unistdio/ulc-vasprintf-tests: Likewise.
3340         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
3341         * modules/unistdio/ulc-vsprintf-tests: Likewise.
3342         * modules/unistr/u8-check-tests: Likewise.
3343         * modules/unistr/u8-chr-tests: Likewise.
3344         * modules/unistr/u8-cmp-tests: Likewise.
3345         * modules/unistr/u8-cmp2-tests: Likewise.
3346         * modules/unistr/u8-cpy-alloc-tests: Likewise.
3347         * modules/unistr/u8-cpy-tests: Likewise.
3348         * modules/unistr/u8-mblen-tests: Likewise.
3349         * modules/unistr/u8-mbsnlen-tests: Likewise.
3350         * modules/unistr/u8-mbtouc-tests: Likewise.
3351         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
3352         * modules/unistr/u8-mbtoucr-tests: Likewise.
3353         * modules/unistr/u8-move-tests: Likewise.
3354         * modules/unistr/u8-next-tests: Likewise.
3355         * modules/unistr/u8-prev-tests: Likewise.
3356         * modules/unistr/u8-set-tests: Likewise.
3357         * modules/unistr/u8-stpcpy-tests: Likewise.
3358         * modules/unistr/u8-stpncpy-tests: Likewise.
3359         * modules/unistr/u8-strcat-tests: Likewise.
3360         * modules/unistr/u8-strcmp-tests: Likewise.
3361         * modules/unistr/u8-strcoll-tests: Likewise.
3362         * modules/unistr/u8-strcpy-tests: Likewise.
3363         * modules/unistr/u8-strdup-tests: Likewise.
3364         * modules/unistr/u8-strlen-tests: Likewise.
3365         * modules/unistr/u8-strmblen-tests: Likewise.
3366         * modules/unistr/u8-strmbtouc-tests: Likewise.
3367         * modules/unistr/u8-strncat-tests: Likewise.
3368         * modules/unistr/u8-strncmp-tests: Likewise.
3369         * modules/unistr/u8-strncpy-tests: Likewise.
3370         * modules/unistr/u8-strnlen-tests: Likewise.
3371         * modules/unistr/u8-to-u16-tests: Likewise.
3372         * modules/unistr/u8-to-u32-tests: Likewise.
3373         * modules/unistr/u8-uctomb-tests: Likewise.
3374         * modules/unistr/u16-check-tests: Likewise.
3375         * modules/unistr/u16-chr-tests: Likewise.
3376         * modules/unistr/u16-cmp-tests: Likewise.
3377         * modules/unistr/u16-cmp2-tests: Likewise.
3378         * modules/unistr/u16-cpy-alloc-tests: Likewise.
3379         * modules/unistr/u16-cpy-tests: Likewise.
3380         * modules/unistr/u16-mblen-tests: Likewise.
3381         * modules/unistr/u16-mbsnlen-tests: Likewise.
3382         * modules/unistr/u16-mbtouc-tests: Likewise.
3383         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
3384         * modules/unistr/u16-mbtoucr-tests: Likewise.
3385         * modules/unistr/u16-move-tests: Likewise.
3386         * modules/unistr/u16-next-tests: Likewise.
3387         * modules/unistr/u16-prev-tests: Likewise.
3388         * modules/unistr/u16-set-tests: Likewise.
3389         * modules/unistr/u16-stpcpy-tests: Likewise.
3390         * modules/unistr/u16-stpncpy-tests: Likewise.
3391         * modules/unistr/u16-strcat-tests: Likewise.
3392         * modules/unistr/u16-strcmp-tests: Likewise.
3393         * modules/unistr/u16-strcoll-tests: Likewise.
3394         * modules/unistr/u16-strcpy-tests: Likewise.
3395         * modules/unistr/u16-strdup-tests: Likewise.
3396         * modules/unistr/u16-strlen-tests: Likewise.
3397         * modules/unistr/u16-strmblen-tests: Likewise.
3398         * modules/unistr/u16-strmbtouc-tests: Likewise.
3399         * modules/unistr/u16-strncat-tests: Likewise.
3400         * modules/unistr/u16-strncmp-tests: Likewise.
3401         * modules/unistr/u16-strncpy-tests: Likewise.
3402         * modules/unistr/u16-strnlen-tests: Likewise.
3403         * modules/unistr/u16-to-u32-tests: Likewise.
3404         * modules/unistr/u16-to-u8-tests: Likewise.
3405         * modules/unistr/u16-uctomb-tests: Likewise.
3406         * modules/unistr/u32-check-tests: Likewise.
3407         * modules/unistr/u32-chr-tests: Likewise.
3408         * modules/unistr/u32-cmp-tests: Likewise.
3409         * modules/unistr/u32-cmp2-tests: Likewise.
3410         * modules/unistr/u32-cpy-alloc-tests: Likewise.
3411         * modules/unistr/u32-cpy-tests: Likewise.
3412         * modules/unistr/u32-mblen-tests: Likewise.
3413         * modules/unistr/u32-mbsnlen-tests: Likewise.
3414         * modules/unistr/u32-mbtouc-tests: Likewise.
3415         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
3416         * modules/unistr/u32-mbtoucr-tests: Likewise.
3417         * modules/unistr/u32-move-tests: Likewise.
3418         * modules/unistr/u32-next-tests: Likewise.
3419         * modules/unistr/u32-prev-tests: Likewise.
3420         * modules/unistr/u32-set-tests: Likewise.
3421         * modules/unistr/u32-stpcpy-tests: Likewise.
3422         * modules/unistr/u32-stpncpy-tests: Likewise.
3423         * modules/unistr/u32-strcat-tests: Likewise.
3424         * modules/unistr/u32-strcmp-tests: Likewise.
3425         * modules/unistr/u32-strcoll-tests: Likewise.
3426         * modules/unistr/u32-strcpy-tests: Likewise.
3427         * modules/unistr/u32-strdup-tests: Likewise.
3428         * modules/unistr/u32-strlen-tests: Likewise.
3429         * modules/unistr/u32-strmblen-tests: Likewise.
3430         * modules/unistr/u32-strmbtouc-tests: Likewise.
3431         * modules/unistr/u32-strncat-tests: Likewise.
3432         * modules/unistr/u32-strncmp-tests: Likewise.
3433         * modules/unistr/u32-strncpy-tests: Likewise.
3434         * modules/unistr/u32-strnlen-tests: Likewise.
3435         * modules/unistr/u32-to-u16-tests: Likewise.
3436         * modules/unistr/u32-to-u8-tests: Likewise.
3437         * modules/unistr/u32-uctomb-tests: Likewise.
3438         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
3439         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
3440         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
3441         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
3442         * modules/uniwidth/u8-strwidth-tests: Likewise.
3443         * modules/uniwidth/u8-width-tests: Likewise.
3444         * modules/uniwidth/u16-strwidth-tests: Likewise.
3445         * modules/uniwidth/u16-width-tests: Likewise.
3446         * modules/uniwidth/u32-strwidth-tests: Likewise.
3447         * modules/uniwidth/u32-width-tests: Likewise.
3448         * modules/uniwidth/width-tests: Likewise.
3449
3450 2010-05-18  Richard Jones  <rjones@redhat.com>
3451
3452         doc: users.txt: list hivex
3453         * users.txt: Add hivex.
3454
3455 2010-05-18  Richard Jones  <rjones@redhat.com>
3456
3457         doc: users.txt: list febootstrap
3458         * users.txt: Add febootstrap.
3459
3460 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
3461
3462         bootstrap: fix an error when gnulib is not used as a git submodule
3463         * build-aux/bootstrap (gnulib_path): If its length is zero then
3464         assign "gnulib" to it.
3465         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
3466
3467 2010-05-16  Bruno Haible  <bruno@clisp.org>
3468
3469         Avoid autoconf warnings about AM_ICONV.
3470         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
3471         2.64.
3472
3473 2010-05-16  Bruno Haible  <bruno@clisp.org>
3474
3475         absolute-header: Make the macro usable in more situations.
3476         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
3477         from gl_ABSOLUTE_HEADER.
3478         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
3479
3480 2010-05-16  James Youngman  <jay@gnu.org>
3481
3482         doc: update users.txt
3483         * users.txt: Add CSSC.
3484
3485 2010-05-16  Jim Meyering  <meyering@redhat.com>
3486
3487         init.sh: fix an error in the previous change; add more comments
3488         * tests/init.sh: Compare exit code in loop against 9, not 2.
3489         Patch by Bruno Haible.
3490         Make the two tests more similar by adding an empty "then" clause.
3491         Add comments.
3492
3493         init.sh: avoid unnecessary shell re-exec
3494         * tests/init.sh: Improve the re-exec-required check to first test the
3495         current shell.  If it passes the test, do not search for a shell that
3496         does pass, and do not re-exec.  This test is particularly contorted to
3497         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
3498         of $(...) evokes a syntax error and causes immediate shell exit with
3499         status 2.  Bruno Haible reported that the re-exec made it impossible
3500         to single-step through any init.sh-using script.
3501
3502 2010-05-16  Bruno Haible  <bruno@clisp.org>
3503
3504         Fix collision between gnulib's and libintl's printf replacements.
3505         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
3506         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
3507         (printf): When using GNU C, map the __printf__ function to rpl_printf
3508         via __asm__. When not using GNU C, define rpl_printf instead of
3509         __printf__.
3510         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
3511         commit.
3512         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
3513         commit.
3514         * m4/asm-underscore.m4: New file.
3515         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
3516         * modules/stdio (Files): Add m4/asm-underscore.m4.
3517         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
3518         Reported by Ben Pfaff.
3519
3520 2010-05-16  Bruno Haible  <bruno@clisp.org>
3521
3522         verify: Avoid skipping the test on openSUSE 11.0.
3523         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
3524
3525 2010-05-13  Bruno Haible  <bruno@clisp.org>
3526
3527         Avoid useless warnings from G++.
3528         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
3529         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
3530         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
3531
3532 2010-05-11  Jim Meyering  <meyering@redhat.com>
3533
3534         maint.mk: tweak preceding change
3535         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
3536         regexps tighter by anchoring at EOL, and make the new group "shy"
3537         for slightly decreased overhead.
3538
3539 2010-05-11  Eric Blake  <eblake@redhat.com>
3540
3541         maint.mk: gnulib doesn't guarantee NSIG
3542         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
3543
3544 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
3545
3546         test-pwrite.c: Remove unused variable declaration.
3547         * tests/test-pwrite.c (main): Remove read_buf declaration.
3548
3549         Remove useless test-pwrite.sh file.
3550         * tests/test-pwrite.sh: Delete file.
3551         * modules/pwrite-tests: Remove references.
3552         Reported by Bruno Haible.
3553
3554 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
3555
3556         init.sh: fix a typo
3557         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
3558
3559 2010-05-10  Jim Meyering  <meyering@redhat.com>
3560
3561         maint.mk: avoid using a temporary file in the always-defined-macros check
3562         * top/maint.mk (.re-defmac): Remove rule.
3563         (gl_trap_): Remove definition.
3564         (sc_prohibit_always-defined_macros): Rewrite not to create and
3565         depend on a temporary file.  Instead, depend on GNU grep's ability
3566         to read a list of regular expressions from stdin when given "-f -".
3567
3568 2010-05-09  Bruno Haible  <bruno@clisp.org>
3569
3570         Update to GNU gettext 0.18, part 1.
3571         * m4/gettext.m4: Update to GNU gettext 0.18.
3572         * m4/intl.m4: Likewise.
3573         * m4/po.m4: Likewise.
3574         * modules/gettext (Files): Add m4/fcntl-o.m4.
3575         (configure.ac): Require gettext infrastructure from version 0.18.
3576
3577 2010-05-09  Jim Meyering  <meyering@redhat.com>
3578
3579         init.sh: enable MALLOC_PERTURB_
3580         * tests/init.sh: Enable glibc's malloc-perturbing option.
3581
3582         maint.mk: improve sc_cross_check_PATH_usage_in_tests
3583         With my recent change in init.sh from the two-line form:
3584             -#   : ${srcdir=.}
3585             -#   . "$srcdir/init.sh"; path_prepend_ .
3586             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
3587         I noticed that using the one-line form would cause this test
3588         to fail with a false-positive, or to stop working altogether,
3589         depending on whether help-version changed or all the tests did.
3590         * top/maint.mk (_hv_regex): Remove this definition.
3591         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
3592         (_hv_regex_strong): Use a stronger regex to check for conformance.
3593         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
3594         Give a separate diagnostic for lack of conforming use.
3595
3596         maint.mk: prohibit definition of symbols defined by gnulib
3597         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
3598         definition of symbols defined by gnulib.
3599
3600 2010-05-09  Bruno Haible  <bruno@clisp.org>
3601
3602         acl: Avoid test failure on Cygwin-hosted mingw.
3603         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
3604
3605 2010-05-09  Bruno Haible  <bruno@clisp.org>
3606
3607         error: Use system's fcntl function.
3608         * lib/error.c (fcntl): Undefine.
3609
3610 2010-05-09  Jim Meyering  <meyering@redhat.com>
3611
3612         verify: adjust formatting to be more consistent
3613         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
3614         argument-list '('s, and after one comma.
3615
3616 2010-05-09  Bruno Haible  <bruno@clisp.org>
3617
3618         error: More reliable output on mingw.
3619         * lib/error.c: Include <windows.h>.
3620         (is_open): New function.
3621         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
3622         defined.
3623
3624 2010-05-09  Bruno Haible  <bruno@clisp.org>
3625
3626         vasnprintf: Fix syntax errors in libintl build on mingw.
3627         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
3628         pad_ourselves and prec_ourselves after use.
3629
3630 2010-05-08  Bruno Haible  <bruno@clisp.org>
3631
3632         * lib/config.charset: Update comments for Cygwin 1.7.
3633         * lib/localcharset.c: Likewise.
3634
3635 2010-05-07  Jim Meyering  <meyering@redhat.com>
3636
3637         init.sh: improve comments
3638         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
3639         . "${srcdir=.}/init.sh"; path_prepend_ .
3640         Add a note about path_prepend_ and the alternative of using
3641         TESTS_ENVIRONMENT.
3642
3643 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
3644
3645         exclude: Unescape hashed patterns in wildcard mode.
3646         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
3647         to the hash list.
3648         * tests/test-exclude8.sh: New test case.
3649         * modules/exclude-tests: Add new test.
3650
3651 2010-05-05  Eric Blake  <eblake@redhat.com>
3652
3653         verify: automate tests
3654         * modules/verify-tests: New module.
3655         * tests/test-verify.sh: New file.
3656         * tests/test-verify.c: Guard each negative test with a unique id.
3657         Also avoid warning about unused left hand of comma expressions.
3658
3659 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3660
3661         Further improvements to verify.h, suggested by Eric Blake.
3662         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
3663         the GL_* versions, to avoid collision with OpenGL.
3664         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
3665         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
3666         than testing merely whether it's defined.
3667
3668         Modify verify.h to pacify gcc -Wredundant_decls.
3669         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
3670         These use the prefix "GL_" since they're likely to be useful elsewhere.
3671         We may need to break them out into a different .h file.
3672         (__COUNTER__): Define to 0 if the compiler doesn't support it.
3673         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
3674         of verify_function__.
3675
3676 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
3677
3678         Tests for module pwrite.
3679         * modules/pwrite-tests: New file.
3680         * tests/test-pwrite.sh: New file.
3681         * tests/test-pwrite.c: New file.
3682
3683         New module pwrite.
3684         * lib/unistd.in.h (pwrite): New declaration.
3685         * lib/pwrite.c: New file, from glibc with modifications.
3686         * m4/pwrite.m4: New file.
3687         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
3688         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
3689         REPLACE_PWRITE.
3690         * modules/pwrite: New file.
3691         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
3692         REPLACE_PWRITE.
3693         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
3694         * doc/posix-functions/pwrite.texi: Mention the new module.
3695
3696 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
3697
3698         pread: Update documentation.
3699         * doc/posix-functions/pread.texi: Mention the 'pread' module.
3700
3701 2010-05-04  Eric Blake  <eblake@redhat.com>
3702
3703         docs: update cygwin progress
3704         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
3705         this bug.
3706         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
3707         Added in cygwin 1.7.2.
3708         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
3709         Likewise.
3710         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
3711         Likewise.
3712         * doc/glibc-functions/dup3.texi (dup3): Likewise.
3713         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
3714         * doc/glibc-functions/accept4.texi (accept4): Likewise.
3715         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
3716         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
3717         Mention nproc module.
3718         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
3719         bug in cygwin 1.7.5 addition.
3720         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
3721         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
3722         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
3723         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
3724         1.7.5.
3725         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
3726         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
3727         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
3728         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
3729         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
3730         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
3731         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
3732         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
3733         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
3734         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
3735         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
3736         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
3737         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
3738         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
3739         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
3740         Likewise.
3741         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
3742         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
3743         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
3744         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
3745         Likewise.
3746         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
3747         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
3748         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
3749         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
3750         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
3751         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
3752         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
3753         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
3754         Likewise.
3755         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
3756         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
3757         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
3758         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
3759         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
3760         Likewise.
3761         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
3762         Likewise.
3763         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
3764         Likewise.
3765         * doc/glibc-functions/xdrrec_endofrecord.texi
3766         (xdrrec_endofrecord): Likewise.
3767         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
3768         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
3769         Likewise.
3770         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
3771         Likewise.
3772
3773 2010-05-04  Jim Meyering  <meyering@redhat.com>
3774
3775         gendocs.sh: make its "-s FILE" option more useful
3776         * build-aux/gendocs.sh: When honoring the -s FILE option, update
3777         $PACKAGE to reflect the probably-different basename of "FILE".
3778
3779 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
3780
3781         bootstrap: don't ignore download_po_files failure
3782         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
3783         failure.
3784
3785 2010-05-03  Jim Meyering  <meyering@redhat.com>
3786
3787         maint.mk: allow to pass options to gendocs.sh
3788         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
3789         (gendocs_options_): New overridable variable.
3790
3791         gnu-web-doc-update: don't ignore configure or build failure
3792         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
3793
3794         announce-gen: backslash-escape '@'s in --help output
3795         * build-aux/announce-gen: Fix syntax errors.
3796
3797         maint.mk, announce-gen: allow project-specific announcement mail headers
3798         * top/maint.mk (translation_project_): Define default.
3799         (announcement_Cc_, announcement_mail_headers_): Likewise.
3800         (announcement): Invoke announce-gen with new --mail-headers option.
3801         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
3802
3803         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
3804         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
3805         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
3806         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
3807         line in the "err2" output file when running "make check" in verbose
3808         mode (i.e., with set -x enabled).
3809
3810 2010-05-03  Bruno Haible  <bruno@clisp.org>
3811
3812         wctob: Fix for weird platforms.
3813         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
3814         argument value.
3815
3816 2010-05-03  Jim Meyering  <meyering@redhat.com>
3817
3818         maint.mk: prohibit unwarranted use of <strings.h>
3819         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
3820         strings.h in a file that does not also use strcasecmp, strncasecmp,
3821         ffs or ffsll.
3822
3823         maint.mk: remove obsolete comments
3824         * top/maint.mk: Remove stale, commented-out rules.
3825
3826 2010-05-02  Bruno Haible  <bruno@clisp.org>
3827
3828         wcwidth: Declare also when it's aliased.
3829         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
3830         macro.
3831
3832 2010-05-02  Bruno Haible  <bruno@clisp.org>
3833
3834         Fix regression from 2010-04-25.
3835         * gnulib-tool (func_modules_transitive_closure): Check the status of
3836         all modules, not only of the tests that are of the form foo-tests where
3837         foo is a module.
3838
3839 2010-05-02  Bruno Haible  <bruno@clisp.org>
3840
3841         wctob: Work around nasty Cygwin 1.7.2 bug.
3842         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
3843         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
3844
3845 2010-05-01  Bruno Haible  <bruno@clisp.org>
3846
3847         fpurge: Sharper test.
3848         * tests/test-fpurge.c (main): Add one more ftell check.
3849         * modules/fpurge-tests (Depends-on): Add ftell.
3850         Suggested by Eric Blake.
3851
3852 2010-05-01  Bruno Haible  <bruno@clisp.org>
3853
3854         ftello: Another test.
3855         * tests/test-ftello3.c: New file.
3856         * modules/ftello-tests (Files): Add it.
3857         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
3858         MOSTLYCLEANFILES.
3859
3860         ftell: Another test.
3861         * tests/test-ftell3.c: New file.
3862         * modules/ftell-tests (Files): Add it.
3863         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
3864         MOSTLYCLEANFILES.
3865
3866 2010-05-01  Bruno Haible  <bruno@clisp.org>
3867
3868         ftell, ftello: Work around Solaris bug.
3869         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
3870         * lib/ftello.c: Include stdio-impl.h.
3871         (ftello): On Solaris, when _IOWRT is set, compute the result without
3872         looking at _IOREAD.
3873         * modules/ftello (Files): Add lib/stdio-impl.h.
3874         * doc/posix-functions/ftell.texi: Mention Solaris bug.
3875         * doc/posix-functions/ftello.texi: Likewise.
3876         Reported by Eric Blake.
3877
3878 2010-05-01  Bruno Haible  <bruno@clisp.org>
3879
3880         freading: Adapt to special meaning of _IOREAD flag on Solaris.
3881         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
3882         the _IOWRT flag is also set.
3883
3884 2010-05-01  Bruno Haible  <bruno@clisp.org>
3885
3886         Fix doc about a HP-UX stdio bug.
3887         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
3888         * doc/posix-functions/ftello.texi: Likewise.
3889
3890 2010-05-01  Bruno Haible  <bruno@clisp.org>
3891
3892         lseek test: Fix failure on Solaris.
3893         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
3894         output.
3895
3896 2010-04-30  Jim Meyering  <meyering@redhat.com>
3897
3898         bootstrap: don't ignore failure to generate po*/Makevars
3899         * build-aux/bootstrap (with_gettext): Don't ignore failure
3900         to create po/Makevars or runtime-po/Makevars.
3901
3902 2010-04-29  Eric Blake  <eblake@redhat.com>
3903
3904         headers: relax license to LGPLv2+
3905         * modules/fcntl-h (License): Relax license.
3906         * modules/getopt-posix (License): Likewise.
3907         * modules/locale (License): Likewise.
3908         * modules/math (License): Likewise.
3909         * modules/pty (License): Likewise.
3910         * modules/sched (License): Likewise.
3911         * modules/search (License): Likewise.
3912         * modules/spawn (License): Likewise.
3913         * modules/stdarg (License): Likewise.
3914         * modules/sysexits (License): Likewise.
3915
3916 2010-04-29  Jim Meyering  <meyering@redhat.com>
3917
3918         inttypes: relax license to LGPLv2+
3919         * modules/inttypes (License): Relax license.
3920
3921 2010-04-29  Simon Josefsson  <simon@josefsson.org>
3922
3923         * top/maint.mk (indent): Run twice to produce idempotent results.
3924
3925 2010-04-28  Bruno Haible  <bruno@clisp.org>
3926
3927         getdate: Generate getdate.c in the source directory.
3928         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
3929         MOSTLYCLEANFILES.
3930         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
3931
3932 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
3933
3934         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
3935         is not declared as a const *; avoid warnings in that case.
3936
3937 2010-04-28  Eric Blake  <eblake@redhat.com>
3938
3939         canonicalize-lgpl: avoid compiler warning
3940         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
3941         declaration' / 'extraneous semicolon' warning with some compilers.
3942         Reported by Andreas Gruenbacher.
3943
3944 2010-04-28  Jim Meyering  <meyering@redhat.com>
3945
3946         init.sh: ensure a more reliable exit status when exiting via trap
3947         * tests/init.sh (setup_): Don't rely on $? in signal handler.
3948         Inspired by patches from Dmitry V. Levin.
3949         Also trap on signal 3 (SIGQUIT).
3950
3951 2010-04-27  Bruno Haible  <bruno@clisp.org>
3952
3953         Update doc about utimes().
3954         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
3955         'utimens' module.
3956         Reported by Andreas Gruenbacher <agruen@suse.de>.
3957
3958 2010-04-27  Eric Blake  <eblake@redhat.com>
3959
3960         full-read, full-write: relax license
3961         * modules/full-read (License): Drop to LGPLv2+.
3962         * modules/full-write (License): Likewise.
3963         * modules/safe-read (License): Likewise.
3964         * modules/safe-write (License): Likewise.
3965
3966         pthread: mention library for linking
3967         * modules/pthread (Link): Mention $(LIB_PTHREAD).
3968
3969 2010-04-27  Jim Meyering  <meyering@redhat.com>
3970
3971         maint.mk: fix a bug introduced in last change
3972         * top/maint.mk (gl_assured_headers_): Now that all names are on
3973         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
3974         is not anchored to end of word, it should be adequate.
3975
3976         maint.mk: avoid side-effect in latest syntax-check
3977         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
3978         to run commands via $(shell...), and hence to incur cost only when
3979         the new rule is actually run.
3980
3981         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
3982         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
3983         and use that to create a regexp used to detect all #if HAVE_..._H uses.
3984         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
3985         (gl_assured_headers_, az_, AZ_): Define.
3986         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
3987
3988 2010-04-26  Jim Meyering  <jim@meyering.net>
3989             Bruno Haible  <bruno@clisp.org>
3990
3991         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
3992         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
3993         Prompted by an exchange with Gilles Espinasse.
3994
3995 2010-04-26  Jim Meyering  <meyering@redhat.com>
3996
3997         git-version-gen: aesthetic tweak
3998         * build-aux/git-version-gen: Use "$nl" rather than a literal,
3999         so that the command remains on a single line.
4000
4001 2010-04-26  Eric Blake  <eblake@redhat.com>
4002
4003         git-version-gen: allow use on EBCDIC hosts
4004         * build-aux/git-version-gen (dirty): Use literal rather than tying
4005         ourselves to ascii.
4006         Reported by Steve Goetze.
4007
4008 2010-04-25  Bruno Haible  <bruno@clisp.org>
4009
4010         netdb: Add support for GNULIB_POSIXCHECK.
4011         * lib/netdb.in.h: Include warn-on-use.h.
4012         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
4013         functions are used when GNULIB_POSIXCHECK is defined and the
4014         getaddrinfo module is not in use.
4015         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
4016         freeaddrinfo, gai_strerror, getnameinfo are declared.
4017         * modules/netdb (Depends-on): Add warn-on-use.
4018         (Makefile.am): Include warn-on-use.h in netdb.h.
4019
4020 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
4021
4022         build: avoid "make check" failure without .git/ directory
4023         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
4024         there is no .git/ directory.
4025
4026 2010-04-25  Bruno Haible  <bruno@clisp.org>
4027
4028         ptsname: Fix misuse of ttyname_r.
4029         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
4030         of errno.
4031
4032 2010-04-25  Bruno Haible  <bruno@clisp.org>
4033
4034         ttyname_r: Make it work on Solaris 10.
4035         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
4036         if the system function has the POSIX declaration. Test whether the
4037         function fails if the buffer is less than 128 bytes large.
4038         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
4039         system's ttyname_r function. Provide a reasonably large buffer.
4040         * modules/ttyname_r (Depends-on): Add extensions.
4041         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
4042
4043 2010-04-25  Bruno Haible  <bruno@clisp.org>
4044
4045         Use the 'extensions' module for some more functions on Solaris.
4046         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
4047         module.
4048         * doc/posix-functions/ctime_r.texi: Likewise.
4049         * doc/posix-functions/getgrgid_r.texi: Likewise.
4050         * doc/posix-functions/getgrnam_r.texi: Likewise.
4051         * doc/posix-functions/getpwnam_r.texi: Likewise.
4052         * doc/posix-functions/getpwuid_r.texi: Likewise.
4053         * doc/posix-functions/readdir_r.texi: Likewise.
4054         * doc/posix-functions/sigwait.texi: Likewise.
4055         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
4056         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
4057
4058 2010-04-25  Bruno Haible  <bruno@clisp.org>
4059
4060         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
4061         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
4062         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
4063         * lib/ttyname_r.c: Include <limits.h>.
4064         (ttyname_r): Define using the system's ttyname_r function, if it exists
4065         and not on Solaris.
4066         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
4067         set.
4068         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
4069         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
4070         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
4071         Reported by Simon Josefsson.
4072
4073 2010-04-25  Bruno Haible  <bruno@clisp.org>
4074
4075         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
4076         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
4077         * doc/posix-functions/ctime_r.texi: Likewise.
4078         * doc/posix-functions/getgrgid_r.texi: Likewise.
4079         * doc/posix-functions/getgrnam_r.texi: Likewise.
4080         * doc/posix-functions/getlogin_r.texi: Likewise.
4081         * doc/posix-functions/getpwnam_r.texi: Likewise.
4082         * doc/posix-functions/getpwuid_r.texi: Likewise.
4083         * doc/posix-functions/readdir_r.texi: Likewise.
4084         * doc/posix-functions/sigwait.texi: Likewise.
4085         * doc/posix-functions/ttyname_r.texi: Likewise.
4086         Reported by Simon Josefsson.
4087
4088 2010-04-25  Bruno Haible  <bruno@clisp.org>
4089
4090         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
4091         * gnulib-tool (func_usage): Document that --with-*-tests options apply
4092         also to --create-testdir.
4093         (func_acceptable): Don't consider the status of *-tests modules here.
4094         (func_modules_transitive_closure): Consider it here, before including a
4095         test module.
4096         (func_import, func_create_testdir): Set inc_all_direct_tests,
4097         inc_all_indirect_tests.
4098         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
4099         --create-testdir and --create-megatestdir.
4100
4101 2010-04-25  Bruno Haible  <bruno@clisp.org>
4102
4103         gnulib-tool: Add --without-*-tests options.
4104         * gnulib-tool (func_usage): Document the --without-*-tests options.
4105         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
4106         excl_unportable_tests): New variables.
4107         Fail if they are specified with --import or --update.
4108         (func_acceptable): Respect the excl_*_tests variables.
4109         (func_import): Set the excl_*_tests variables to empty.
4110
4111 2010-04-25  Simon Josefsson  <simon@josefsson.org>
4112             Bruno Haible  <bruno@clisp.org>
4113
4114         Work around a MacOS X 10.4 bug with openpty.
4115         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
4116         * tests/test-openpty.c (main): Close the master side explicitly.
4117
4118 2010-04-25  Bruno Haible  <bruno@clisp.org>
4119
4120         strnlen: Fix a C++ test error on MacOS X and Solaris.
4121         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
4122         the function is not declared.
4123         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
4124         Simon Josefsson.
4125
4126 2010-04-24  Bruno Haible  <bruno@clisp.org>
4127
4128         Avoid a gcc warning.
4129         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
4130         of correct type for %08lx directive.
4131         Reported by Eric Blake.
4132
4133 2010-04-24  Bruno Haible  <bruno@clisp.org>
4134
4135         vasnprintf: Correct errno value in case of out-of-memory.
4136         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
4137         or sprintf. Use the errno value from SNPRINTF or sprintf.
4138         Reported by Ian Beckwith <ianb@erislabs.net>.
4139
4140 2010-04-24  Bruno Haible  <bruno@clisp.org>
4141
4142         ansi-c++-opt: Find correct compiler when cross-compiling.
4143         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
4144         AC_CHECK_PROGS.
4145         Reported by Simon Josefsson.
4146
4147 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
4148
4149         vc-list-files: Add support for subversion
4150         * build-aux/vc-list-files: Use "svn list" to generate the list of
4151         files controlled by subversion.
4152
4153 2010-04-23  Jim Meyering  <meyering@redhat.com>
4154
4155         vc-list-files tests: convert to use init.sh
4156         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
4157         path_prepend_.
4158         Use Exit, not exit.
4159         Use skip_ rather than open coding it.
4160         Remove trap set-up and compare definitions.
4161         * tests/test-vc-list-files-git.sh: Likewise.
4162         * modules/vc-list-files-tests (Files): Add tests/init.sh.
4163
4164 2010-04-22  Simon Josefsson  <simon@josefsson.org>
4165
4166         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
4167         backup files.
4168
4169 2010-04-21  Simon Josefsson  <simon@josefsson.org>
4170
4171         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
4172
4173 2010-04-20  Eric Blake  <eblake@redhat.com>
4174
4175         tests: be robust to ignored SIGPIPE
4176         * tests/test-select-in.sh: Consume all output.
4177         * tests/test-lseek.sh: Check correct exit status, while avoiding
4178         EPIPE.
4179
4180 2010-04-20  Simon Josefsson  <simon@josefsson.org>
4181             Bruno Haible  <bruno@clisp.org>
4182
4183         visibility: Don't use -fvisibility if it leads to a warning.
4184         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
4185         yes, don't pretend that visibility works if it leads to a warning.
4186         Reported by Mike Gran <spk121@yahoo.com>.
4187
4188 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
4189
4190         * build-aux/bootstrap: Use "git -h" for testing for supported options
4191         instead of "git --help".  The short-form option only shows a summary,
4192         and doesn't layout the full man page.  Grep for the full option name
4193         in the summary, too.
4194
4195 2010-04-19  Bruno Haible  <bruno@clisp.org>
4196
4197         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
4198         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
4199         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
4200         mention of RELOCATABLE_STRIP.
4201         Reported by Sylvain Beucler <beuc@beuc.net>.
4202
4203 2010-04-19  Bruno Haible  <bruno@clisp.org>
4204
4205         * lib/diffseq.h: Fix typo in comment.
4206         Reported by Eric Blake.
4207
4208 2010-04-19  Bruno Haible  <bruno@clisp.org>
4209
4210         ioctl: Move autoconf macro to a .m4 file.
4211         * m4/ioctl.m4: New file, extracted from modules/ioctl.
4212         * modules/ioctl (Files): Add it.
4213         (configure.ac): Simply invoke gl_FUNC_IOCTL.
4214         Reported by Ian Beckwith <ianb@erislabs.net>.
4215
4216 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
4217             Bruno Haible  <bruno@clisp.org>
4218
4219         diffseq: Accommodate use-case with abstract arrays.
4220         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
4221         is not defined.
4222         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
4223         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
4224
4225 2010-04-18  Bruno Haible  <bruno@clisp.org>
4226
4227         * doc/posix-headers/stdbool.texi: More precise wording.
4228
4229 2010-04-17  Jim Meyering  <meyering@redhat.com>
4230
4231         maint.mk: use gnu-style indentation in an embedded perl script
4232         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
4233         Rename variable: s/two/last_two_bytes/
4234
4235 2010-04-16  Eric Blake  <eblake@redhat.com>
4236
4237         test-stdbool: skip test that fails with Solaris CC
4238         * tests/test-stdbool.c (f): Skip test that causes compilation
4239         error under buggy C++ compiler.
4240         * lib/stdbool.in.h: Document the limitation.
4241         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
4242
4243         setenv: allow compilation with C++
4244         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
4245         register keyword.
4246
4247         stdint: allow test to pass with C++
4248         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
4249
4250         getopt: allow compilation with C++
4251         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
4252         struct.
4253         * lib/getopt.c (_getopt_internal_r): Use correct type.
4254         Reported by Dagobert Michelson, via Joel E. Denny.
4255
4256 2010-04-16  Bruno Haible  <bruno@clisp.org>
4257
4258         Override netdb.h always.
4259         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
4260         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
4261         Reported by Ludovic Courtès <ludo@gnu.org>.
4262
4263 2010-04-15  Bruno Haible  <bruno@clisp.org>
4264
4265         openpty: Fix mistake from 2010-03-21.
4266         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
4267         Reported by Simon Josefsson.
4268
4269 2010-04-15  Eric Blake  <eblake@redhat.com>
4270
4271         test-forkpty: fix expected signature
4272         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
4273         Reported by Simon Josefsson.
4274
4275 2010-04-15  Jim Meyering  <meyering@redhat.com>
4276
4277         maint.mk: texinfo_suffix_re_: correct the default regexp
4278         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
4279
4280         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
4281         make it configurable via texinfo_suffix_re_.
4282
4283 2010-04-14  Eric Blake  <eblake@redhat.com>
4284
4285         strtok_r: relax license to LGPLv2+
4286         * modules/strtok_r (License): Relax license.
4287         Reported by Matthias Bolte.
4288
4289 2010-04-14  Simon Josefsson  <simon@josefsson.org>
4290
4291         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
4292         version 1.4.4 by default instead of requiring the libgcrypt
4293         version used during build.  This makes it possible to use the
4294         application with older but still binary compatible libgcrypt
4295         versions.
4296
4297 2010-04-13  Eric Blake  <eblake@redhat.com>
4298
4299         getopt-gnu: match recent glibc fixes and posix ruling
4300         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
4301         '+' handling, when requesting extensions.
4302         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
4303         'W;' handling.
4304         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
4305         * doc/posix-functions/getopt.texi (getopt): Document this.
4306         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
4307         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4308         Likewise.
4309
4310         getopt: merge bug fixes from glibc
4311         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
4312         diagnostics.  Honor '+:' correctly.  Reject ';'.
4313
4314         getopt-posix: detect MacOS bug
4315         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
4316         optind when missing a required argument.
4317         * doc/posix-functions/getopt.texi (getopt): Document the bug.
4318         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
4319         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4320         Likewise.
4321
4322         getopt-posix: avoid spurious failure on Solaris
4323         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
4324         an indicator that setting optind=1 is sufficient for reset.
4325
4326         getopt-posix: avoid spurious failure on FreeBSD
4327         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
4328         in POSIX mode, since the m4 test uses it.
4329
4330         gnulib-tool: silence warning on BSD sh
4331         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
4332
4333 2010-04-13  Jim Meyering  <meyering@redhat.com>
4334
4335         doc: users.txt: GNU patch now uses gnulib
4336         * users.txt: Add patch.
4337
4338 2010-04-12  Jim Meyering  <meyering@redhat.com>
4339
4340         maint.mk: generate more concise timing data for syntax-check rules
4341         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
4342         " done" from each line that reports a syntax-check test duration.
4343
4344 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
4345
4346         git-version-gen: use "git update-index..." rather than "git status"
4347         * build-aux/git-version-gen: Use git update-index --refresh, not
4348         "git status".  With some versions of git, "git status" would fail
4349         to update the index and result in an unwarranted "-dirty" suffix.
4350
4351 2010-04-11  Jim Meyering  <meyering@redhat.com>
4352
4353         openat: correct formatting (no semantic change)
4354         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
4355         Suggested by Bruno Haible.
4356
4357 2010-04-11  Bruno Haible  <bruno@clisp.org>
4358
4359         Stricter declaration checking in testdirs.
4360         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
4361         If for_tests is true, augment AM_CPPFLAGS to define
4362         GNULIB_STRICT_CHECKING.
4363         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
4364         GNULIB_STRICT_CHECKING is defined, verify that the function is
4365         declared.
4366
4367 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
4368             Bruno Haible  <bruno@clisp.org>
4369
4370         libunistring: Improve configure output.
4371         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
4372         Don't say "consider installing GNU libunistring" when checking again
4373         with libiconv.
4374
4375 2010-04-11  Bruno Haible  <bruno@clisp.org>
4376
4377         libunistring: Correct value of $LTLIBUNISTRING.
4378         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
4379         correct the value of $LTLIBUNISTRING.
4380
4381 2010-04-11  Bruno Haible  <bruno@clisp.org>
4382
4383         havelib: Add static libraries to LIBS in the right order.
4384         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
4385         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
4386
4387 2010-04-11  Bruno Haible  <bruno@clisp.org>
4388
4389         libunistring: Detect libunistring also when it depends on libiconv.
4390         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
4391         the second AC_LIB_HAVE_LINKFLAGS invocation.
4392
4393 2010-04-11  James Youngman  <jay@gnu.org>
4394
4395         close-stream: declare local scalars to be "const"
4396         * lib/close-stream.c (close_stream): Make boolean variables const
4397         to document the fact that we set but do not change them.
4398
4399 2010-04-11  Bruno Haible  <bruno@clisp.org>
4400
4401         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
4402
4403 2010-04-11  Jim Meyering  <meyering@redhat.com>
4404
4405         maint.mk: don't include dist-check.mk
4406         * top/maint.mk: Remove bogus include directive.
4407
4408         maint.mk: improve empty-line-at-EOF check
4409         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
4410         solution, rather than tail+Perl-based one.  The latter would read
4411         a few kilobytes from the end of each file, and did not handle empty
4412         files properly.
4413
4414         maint.mk: print the elapsed time for each syntax-check rule
4415         * top/maint.mk (sc_m_rules_): Save start time in a file.
4416         (sc_z_rules_): New rules: remove temp file and print elapsed time.
4417         (local-check): Interpose the .z rules
4418
4419 2010-04-11  Jim Meyering  <meyering@redhat.com>
4420
4421         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
4422         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
4423         empty file with one that ends in an empty line.
4424
4425 2010-04-10  Bruno Haible  <bruno@clisp.org>
4426
4427         mkdir: Make it work on mingw64.
4428         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
4429         * lib/mkdir.c: Update comment.
4430         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
4431
4432 2010-04-10  Bruno Haible  <bruno@clisp.org>
4433
4434         Don't override improved macro from newer autoconf.
4435         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
4436         autoconf >= 2.62.
4437         Reported by Joel E. Denny <jdenny@clemson.edu>.
4438
4439 2010-04-10  Jim Meyering  <meyering@redhat.com>
4440
4441         maint.mk: new syntax-check rule: prohibit empty lines at end of file
4442         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
4443
4444         maint.mk: correct a diagnostic
4445         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
4446         in diagnostic; now use $prohibit.
4447
4448 2010-04-10  Bruno Haible  <address@hidden>
4449
4450         fchownat: Fix a C++ test error on Solaris 8.
4451         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
4452         the function does not exist.
4453
4454 2010-04-10  Bruno Haible  <bruno@clisp.org>
4455
4456         vasnprintf: Add more tests.
4457         * tests/test-vasnprintf-posix.c: Include <errno.h>.
4458         (test_function): Test converting an invalid wide string.
4459
4460         vasnprintf: Correct handling of unconvertible wide string arguments.
4461         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
4462         VASNPRINTF.
4463         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
4464         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
4465         smaller than the expected maximum need for the directive. Set errno to
4466         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
4467         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
4468         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
4469         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
4470         * modules/vasnprintf (Files): Add m4/printf.m4.
4471         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4472
4473 2010-04-10  Bruno Haible  <bruno@clisp.org>
4474
4475         vasnprintf: Fix crash in %ls directive.
4476         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
4477         string is passed as argument to %ls, with no precision and no width.
4478         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4479
4480 2010-04-10  Bruno Haible  <bruno@clisp.org>
4481
4482         vasnprintf: Fix multiple test failures on mingw.
4483         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
4484         _snprintf, or snwprintf, not _snwprintf.
4485
4486 2010-04-10  Bruno Haible  <bruno@clisp.org>
4487
4488         write: Fix a C++ test error on mingw.
4489         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
4490
4491 2010-04-10  Bruno Haible  <bruno@clisp.org>
4492
4493         vasnprintf test: Reduce code duplication.
4494         * tests/test-vasnprintf.c (test_function): New function, extracted from
4495         test_vasnprintf.
4496         (test_vasnprintf, test_asnprintf): Invoke it.
4497
4498 2010-04-10  Bruno Haible  <bruno@clisp.org>
4499
4500         strnlen: Fix warning in C++ mode on MacOS X.
4501         * lib/string.in.h (strnlen): Use the modern idiom.
4502         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
4503         defining strnlen as a macro already in <config.h>.
4504         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
4505         REPLACE_STRNLEN.
4506         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
4507         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4508
4509 2010-04-08  James Youngman  <jay@gnu.org>
4510
4511         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
4512         the example.
4513
4514 2010-04-09  Jim Meyering  <meyering@redhat.com>
4515
4516         maint.mk: print better diagnostic when there is no $(_hv_file)
4517         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
4518         announce that when $(_hv_file) (aka help-version) does not exist.
4519
4520         init.sh: run tr in the "C" locale to avoid multibyte interpretation
4521         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
4522         not try to interpret its random input bytes.  Jarno Rajahalme reported
4523         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
4524         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
4525         (mktempd_): Likewise, just in case.
4526
4527         ftruncate: add two years to projected module removal date: 2012
4528         * m4/ftruncate.m4: Adjust comments.
4529
4530         ftruncate: mark module as obsolete; even MinGW provides it, now
4531         * modules/ftruncate (Status): Obsolete.
4532         (Notice): Say that.
4533         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
4534         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
4535
4536 2010-04-08  Bruno Haible  <bruno@clisp.org>
4537
4538         Fix side effects from tests-related modules.
4539         * modules/dprintf-posix (Comment): New section.
4540         * modules/fprintf-posix (Comment): Likewise.
4541         * modules/obstack-printf-posix (Comment): Likewise.
4542         * modules/printf-posix (Comment): Likewise.
4543         * modules/snprintf-posix (Comment): Likewise.
4544         * modules/sprintf-posix (Comment): Likewise.
4545         * modules/vasnprintf-posix (Comment): Likewise.
4546         * modules/vasprintf-posix (Comment): Likewise.
4547         * modules/vdprintf-posix (Comment): Likewise.
4548         * modules/vfprintf-posix (Comment): Likewise.
4549         * modules/vprintf-posix (Comment): Likewise.
4550         * modules/vsnprintf-posix (Comment): Likewise.
4551         * modules/vsprintf-posix (Comment): Likewise.
4552         * modules/xprintf-posix (Comment): Likewise.
4553         * modules/xvasprintf-posix (Comment): Likewise.
4554         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
4555         * modules/floorf-tests (Depends-on): Likewise.
4556         * modules/round-tests (Depends-on): Likewise.
4557         * modules/roundf-tests (Depends-on): Likewise.
4558         * modules/trunc-tests (Depends-on): Likewise.
4559         * modules/truncf-tests (Depends-on): Likewise.
4560         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
4561         'fprintf-posix' module is not present.
4562         * tests/test-floorf2.c (check): Likewise.
4563         * tests/test-trunc2.c (check): Likewise.
4564         * tests/test-truncf2.c (check): Likewise.
4565         * tests/test-round2.c (equal): Likewise.
4566         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4567
4568 2010-04-07  Karl Berry  <karl@gnu.org>
4569
4570         * config/srclist.txt,
4571         * config/srclistvars.sh,
4572         * config/srclist-update: doc fixes.
4573
4574 2010-04-07  Jim Meyering  <meyering@redhat.com>
4575
4576         maint.mk: add a PATH crosschecking syntax-check rule
4577         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
4578         Useful if you use a test like the one in help-version (coreutils,
4579         diffutils, grep, gzip) that ensures $(VERSION) matches what is
4580         printed by prog --version.
4581
4582 2010-04-06  Bruno Haible  <bruno@clisp.org>
4583
4584         Fix link error on mingw.
4585         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
4586         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
4587
4588 2010-04-06  Bruno Haible  <bruno@clisp.org>
4589
4590         Assume rmdir exists.
4591         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
4592
4593 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
4594
4595         doc: update users.txt
4596         * users.txt: Add gcal.
4597
4598 2010-04-06  Jim Meyering  <meyering@redhat.com>
4599
4600         init.sh: simply unset TMPDIR rather than risking env -i
4601         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
4602         although it probably works fine on all Unix-based systems, some
4603         systems (Cygwin?) cannot tolerate a totally cleared environment.
4604         Suggestion from Eric Blake.
4605
4606 2010-04-06  Jim Meyering  <meyering@redhat.com>
4607
4608         init.sh: portability fix: use env's POSIX-specified -i option not -u
4609         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
4610         than unportable env -u.  Solaris 5.11's env lacks support for -u.
4611
4612 2010-04-05  Bruno Haible  <bruno@clisp.org>
4613
4614         btowc: Work around Cygwin 1.7.2 bug.
4615         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
4616         does not map NUL to 0.
4617         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
4618
4619 2010-04-05  Bruno Haible  <bruno@clisp.org>
4620
4621         Make the multithread modules work on Cygwin 1.7.2.
4622         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
4623         imported symbols can be declared weak, so that it returns "no" on
4624         Cygwin 1.7.2.
4625
4626 2010-04-05  Bruno Haible  <bruno@clisp.org>
4627
4628         Use the module 'strncat'.
4629         * modules/unistr/u8-strncat (Depends-on): Add strncat.
4630
4631         Tests for module 'strncat'.
4632         * modules/strncat-tests: New file.
4633         * tests/test-strncat.c: New file.
4634
4635         New module 'strncat'.
4636         * lib/string.in.h (strncat): New declaration.
4637         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
4638         * m4/strncat.m4: New file, based on m4/memchr.m4.
4639         * modules/strncat: New file.
4640         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
4641         is declared.
4642         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
4643         REPLACE_STRNCAT.
4644         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
4645         REPLACE_STRNCAT.
4646         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
4647         module.
4648         * tests/test-string-c++.cc: Check signature of strncat.
4649
4650 2010-04-05  Jim Meyering  <meyering@redhat.com>
4651
4652         xstrtoumax-tests: convert to use init.sh
4653         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
4654         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4655         Use Exit, not exit.
4656         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4657
4658         xstrtoimax-tests: convert to use init.sh
4659         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
4660         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4661         Use Exit, not exit.
4662         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4663
4664 2010-04-05  Bruno Haible  <bruno@clisp.org>
4665
4666         sys_socket: Avoid #define replacements in C++ mode.
4667         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
4668         warning to the function if possible, rather than #defining the symbol
4669         to a dysfunctional alias.
4670
4671 2010-04-05  Bruno Haible  <bruno@clisp.org>
4672
4673         fseeko: Fix C++ test error on mingw.
4674         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
4675         gl_FUNC_FSEEKO.
4676         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
4677         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
4678         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
4679         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
4680
4681 2010-04-05  Bruno Haible  <bruno@clisp.org>
4682
4683         duplocale: Improve test output.
4684         * tests/test-duplocale.c (main): Print reason for skipped test.
4685
4686 2010-04-05  Bruno Haible  <bruno@clisp.org>
4687
4688         Assume rmdir exists.
4689         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
4690         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
4691
4692 2010-04-05  Bruno Haible  <bruno@clisp.org>
4693
4694         Fix link error on Solaris 8 with cc.
4695         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
4696
4697 2010-04-05  Bruno Haible  <bruno@clisp.org>
4698
4699         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
4700         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
4701
4702 2010-04-05  Bruno Haible  <bruno@clisp.org>
4703
4704         vasprintf: Update documentation.
4705         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
4706
4707 2010-04-05  Bruno Haible  <bruno@clisp.org>
4708
4709         ptsname: Improve test.
4710         * tests/test-ptsname.c (main): Also try the various master names of BSD
4711         systems.
4712
4713 2010-04-05  Bruno Haible  <bruno@clisp.org>
4714
4715         memchr: Avoid a possible C++ test error.
4716         * lib/string.in.h (memchr): Provide declaration if function is missing.
4717         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
4718         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
4719         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
4720         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
4721
4722 2010-04-05  Bruno Haible  <bruno@clisp.org>
4723
4724         strtok_r: Improve idiom.
4725         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
4726         AC_LIBOBJ is used.
4727
4728 2010-04-05  Bruno Haible  <bruno@clisp.org>
4729
4730         strdup: Improve idiom.
4731         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
4732         AC_LIBOBJ is used.
4733         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
4734         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
4735         when AC_LIBOBJ is used.
4736
4737 2010-04-05  Bruno Haible  <bruno@clisp.org>
4738
4739         mbsinit, mbrtowc, wcrtomb: Improve idioms.
4740         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
4741         don't set REPLACE_MBSINIT to 1.
4742         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
4743         don't set REPLACE_MBRTOWC to 1.
4744         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
4745         exist, don't set REPLACE_MBSRTOWCS to 1.
4746         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
4747         exist, don't set REPLACE_MBSNRTOWCS to 1.
4748         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
4749         don't set REPLACE_WCRTOMB to 1.
4750         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
4751         exist, don't set REPLACE_WCSRTOMBS to 1.
4752         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
4753         exist, don't set REPLACE_WCSNRTOMBS to 1.
4754
4755 2010-04-05  Bruno Haible  <bruno@clisp.org>
4756
4757         ldexpl: Improve idiom.
4758         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
4759         make sure to set HAVE_DECL_LDEXPL to 0.
4760
4761 2010-04-05  Jim Meyering  <meyering@redhat.com>
4762
4763         xstrtol-tests: convert to use init.sh
4764         * modules/xstrtol-tests (Files): Add tests/init.sh.
4765         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4766         Use Exit, not exit.
4767         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4768
4769         atexit-tests: convert to use init.sh
4770         * modules/atexit-tests (Files): Add tests/init.sh.
4771         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4772         Use Exit, not exit.
4773         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4774
4775         init.sh: fix typo
4776         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
4777
4778         init.sh: make it easier for a test script to write to the tty, ...
4779         when using automake's parallel-tests mode.
4780         * tests/init.sh (stderr_fileno_): Define overridable variable.
4781         (warn_): New function, to use it.
4782         (fail_, skip_, framework_failure_): Use warn_.
4783
4784 2010-04-04  Bruno Haible  <bruno@clisp.org>
4785
4786         btowc: Avoid warning.
4787         * lib/btowc.c: Include <stdlib.h>.
4788         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
4789
4790 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
4791             Bruno Haible  <bruno@clisp.org>
4792
4793         wchar: Port to NetBSD 1.5.
4794         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
4795         * lib/wctype.in.h (WEOF): Likewise.
4796
4797 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
4798             Bruno Haible  <bruno@clisp.org>
4799
4800         Port extended stdio to NetBSD 1.5.
4801         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
4802         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
4803         older.
4804
4805 2010-04-04  Bruno Haible  <bruno@clisp.org>
4806
4807         string: Remove unused substitution.
4808         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
4809         HAVE_DECL_STRERROR.
4810         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
4811
4812 2010-04-04  Bruno Haible  <bruno@clisp.org>
4813
4814         strtod: Avoid a possible C++ test error.
4815         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
4816         set REPLACE_STRTOD.
4817
4818 2010-04-04  Bruno Haible  <bruno@clisp.org>
4819
4820         strerror: Update documentation.
4821         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
4822
4823 2010-04-04  Bruno Haible  <bruno@clisp.org>
4824
4825         stdio: Fix some C++ test errors on Solaris 8 with GCC.
4826         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
4827         _GL_CXXALIAS_SYS_CAST.
4828
4829 2010-04-04  Bruno Haible  <bruno@clisp.org>
4830
4831         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
4832         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
4833         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
4834         REPLACE_FREXPL to 1.
4835         * doc/posix-functions/frexpl.texi: Update documentation.
4836
4837 2010-04-04  Bruno Haible  <bruno@clisp.org>
4838
4839         math: Fix some C++ test errors on Solaris 8 and Cygwin.
4840         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
4841
4842 2010-04-04  Bruno Haible  <bruno@clisp.org>
4843
4844         Implement nanosleep for native Windows.
4845         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
4846
4847 2010-04-04  Bruno Haible  <bruno@clisp.org>
4848
4849         math: Fix some C++ test errors on Solaris 8.
4850         * lib/math.in.h (truncf, trunc): Use simpler idiom.
4851
4852 2010-04-04  Bruno Haible  <bruno@clisp.org>
4853
4854         math: Fix some C++ test errors on Cygwin.
4855         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
4856         truncl): Provide declaration if the system does not have it.
4857         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
4858         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
4859         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
4860         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
4861         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
4862         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
4863         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
4864         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
4865         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
4866         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
4867         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
4868         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
4869         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
4870         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
4871         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
4872         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
4873         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
4874         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
4875         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
4876         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
4877         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
4878         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
4879
4880 2010-04-04  Bruno Haible  <bruno@clisp.org>
4881
4882         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
4883         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
4884         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
4885         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
4886         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
4887         * m4/isinf.m4 (gl_ISINF): Likewise.
4888         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4889
4890 2010-04-04  Bruno Haible  <bruno@clisp.org>
4891
4892         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
4893         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4894
4895 2010-04-04  Bruno Haible  <bruno@clisp.org>
4896
4897         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
4898         * modules/tmpfile (configure.ac): Update.
4899
4900         tmpfile: Fix C++ test error on mingw.
4901         * lib/stdio.in.h (tmpfile): New declaration.
4902         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
4903         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
4904         * modules/tmpfile (Depends-on): Add stdio.
4905         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
4906         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
4907         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
4908         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
4909         REPLACE_TMPFILE.
4910         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
4911
4912 2010-04-04  Bruno Haible  <bruno@clisp.org>
4913
4914         ioctl: Fix C++ test error on mingw.
4915         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
4916         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
4917         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
4918
4919 2010-04-03  Bruno Haible  <bruno@clisp.org>
4920
4921         wcwidth: Fix C++ test error on mingw.
4922         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
4923         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
4924         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
4925
4926 2010-04-03  Bruno Haible  <bruno@clisp.org>
4927
4928         nanosleep: Fix C++ test error on mingw.
4929         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
4930         * lib/time.in.h (nanosleep): Use modern idiom.
4931         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
4932         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
4933         REPLACE_NANOSLEEP to 1.
4934         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
4935         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
4936
4937 2010-04-03  Bruno Haible  <bruno@clisp.org>
4938
4939         strptime: Fix C++ test error on mingw.
4940         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
4941         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
4942         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
4943         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
4944         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
4945         not REPLACE_STRPTIME.
4946         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
4947         REPLACE_STRPTIME.
4948
4949 2010-04-03  Bruno Haible  <bruno@clisp.org>
4950
4951         timegm: Fix C++ test error on mingw.
4952         * lib/time.in.h (timegm): Use modern idiom.
4953         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
4954         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
4955         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
4956         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
4957
4958 2010-04-03  Bruno Haible  <bruno@clisp.org>
4959
4960         timegm: Assume declaration if function exists.
4961         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
4962         if it exists. Don't clobber ac_cv_func_timegm.
4963
4964 2010-04-03  Bruno Haible  <bruno@clisp.org>
4965
4966         time_r: Fix C++ test error on mingw.
4967         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
4968         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
4969         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
4970         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
4971         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
4972
4973 2010-04-03  Bruno Haible  <bruno@clisp.org>
4974
4975         time_r: Minor updates.
4976         * modules/time_r (Description): Mention the provided functions.
4977         * lib/time_r.c: Don't include <string.h>.
4978         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
4979         * doc/posix-functions/localtime_r.texi: Likewise.
4980
4981 2010-04-03  Bruno Haible  <bruno@clisp.org>
4982
4983         time: Fix regression introduced on 2010-03-08.
4984         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
4985         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
4986
4987 2010-04-03  Jim Meyering  <meyering@redhat.com>
4988
4989         maint.mk: don't silently disable project-specific syntax-check rules
4990         * top/maint.mk (_prohibit_regexp): Define, to help people realize
4991         that they need to convert their project-specific syntax-check rules
4992         to use the new _sc_search_regexp.
4993
4994 2010-04-03  Bruno Haible  <bruno@clisp.org>
4995
4996         fchdir: Fix regression introduced on 2010-03-08.
4997         * lib/unistd.in.h (fchdir): Fix declaration.
4998         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
4999         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
5000         REPLACE_FCHDIR.
5001         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
5002         REPLACE_FCHDIR.
5003
5004 2010-04-03  Bruno Haible  <bruno@clisp.org>
5005
5006         getpagesize: Fix C++ test error on mingw.
5007         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
5008         system does not declare the function.
5009         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
5010         declared.
5011         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5012         HAVE_DECL_GETPAGESIZE.
5013         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
5014
5015 2010-04-03  Bruno Haible  <bruno@clisp.org>
5016
5017         stdio: Make C++ tests work on mingw.
5018         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
5019         does not declare the function.
5020
5021 2010-04-03  Bruno Haible  <bruno@clisp.org>
5022
5023         ftello: Fix C++ test error on mingw.
5024         * lib/stdio.in.h (ftello): Use modern idiom.
5025         * lib/ftello.c (ftello): Renamed from rpl_ftello.
5026         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
5027         is missing and that it needs to be replaced.
5028         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
5029         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
5030         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
5031
5032 2010-04-03  Bruno Haible  <bruno@clisp.org>
5033
5034         fseeko: Fix C++ test error on mingw.
5035         * lib/stdio.in.h (fseeko): Use modern idiom.
5036         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
5037         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
5038         is missing and that it needs to be replaced.
5039         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
5040         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
5041         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
5042
5043 2010-04-03  Bruno Haible  <bruno@clisp.org>
5044
5045         mkstemp: Fix C++ test error on mingw.
5046         * lib/stdlib.in.h (mkstemp): Use modern idiom.
5047         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
5048         function is missing and that it needs to be replaced.
5049         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
5050         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
5051
5052 2010-04-03  Bruno Haible  <bruno@clisp.org>
5053
5054         stpncpy: Fix C++ test error on mingw.
5055         * lib/string.in.h (stpncpy): Use modern idiom.
5056         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
5057         function is missing and that it needs to be replaced.
5058         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
5059         REPLACE_STPNCPY.
5060         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
5061
5062 2010-04-03  Bruno Haible  <bruno@clisp.org>
5063
5064         sys_stat: Fix C++ test error on mingw.
5065         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
5066         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
5067
5068 2010-04-03  Bruno Haible  <bruno@clisp.org>
5069
5070         pty: Update doc.
5071         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
5072
5073 2010-04-03  Bruno Haible  <bruno@clisp.org>
5074
5075         unistd: Fix C++ test error on mingw.
5076         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
5077
5078 2010-04-03  Bruno Haible  <bruno@clisp.org>
5079
5080         Update doc regarding mingw.
5081         * doc/glibc-functions/openpty.texi: Update regarding mingw.
5082         * doc/glibc-functions/login_tty.texi: Likewise.
5083         * doc/glibc-functions/forkpty.texi: Likewise.
5084
5085 2010-04-03  Bruno Haible  <bruno@clisp.org>
5086
5087         stdlib: Avoid compilation failure of c-strtold on mingw.
5088         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
5089
5090 2010-04-03  Bruno Haible  <bruno@clisp.org>
5091
5092         locale: Make C++ tests work on Cygwin and mingw.
5093         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
5094         cannot provide the function.
5095         Reported by Simon Josefsson.
5096
5097 2010-04-03  Bruno Haible  <bruno@clisp.org>
5098
5099         localename: Port to MacOS X 10.6.
5100         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
5101         memory layout of the locales in MacOS X 10.6 as well.
5102         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
5103
5104 2010-04-02  Bruno Haible  <bruno@clisp.org>
5105
5106         gnulib-tool: Ensure that long-running tests are executed last.
5107         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
5108         running tests after the one for the other tests.
5109
5110 2010-04-02  Bruno Haible  <bruno@clisp.org>
5111
5112         gnulib-tool: Ensure the tests in the main directory are executed first.
5113         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
5114         start with the current directory.
5115
5116 2010-04-02  Bruno Haible  <bruno@clisp.org>
5117
5118         Tests for module 'havelib', moved here from GNU gettext.
5119         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
5120         modifications.
5121         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
5122         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
5123         with modifications.
5124         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
5125         modifications.
5126         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
5127         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
5128         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
5129         with modifications.
5130         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
5131         with modifications.
5132         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
5133         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
5134         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
5135         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
5136         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
5137         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
5138         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
5139         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
5140         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
5141         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
5142         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
5143         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
5144         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
5145         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
5146         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
5147         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
5148         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
5149         with modifications.
5150         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
5151         with modifications.
5152         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
5153         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
5154         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
5155         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
5156         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
5157         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
5158         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
5159         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
5160         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
5161         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
5162         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
5163         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
5164         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
5165         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
5166         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
5167         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
5168         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
5169         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
5170         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
5171         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
5172         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
5173         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
5174         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
5175         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
5176         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
5177         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
5178         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
5179         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
5180         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
5181         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
5182         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
5183         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
5184         * tests/havelib/rpathx/rpathx.c: New file, from
5185         gettext/autoconf-lib-link.
5186         * tests/havelib/rpathx/Makefile.am: New file, from
5187         gettext/autoconf-lib-link.
5188         * tests/havelib/rpathx/configure.ac: New file, from
5189         gettext/autoconf-lib-link with modifications.
5190         * tests/havelib/rpathy/rpathy.c: New file, from
5191         gettext/autoconf-lib-link.
5192         * tests/havelib/rpathy/Makefile.am: New file, from
5193         gettext/autoconf-lib-link.
5194         * tests/havelib/rpathy/configure.ac: New file, from
5195         gettext/autoconf-lib-link with modifications.
5196         * tests/havelib/rpathz/rpathz.c: New file, from
5197         gettext/autoconf-lib-link.
5198         * tests/havelib/rpathz/Makefile.am: New file, from
5199         gettext/autoconf-lib-link.
5200         * tests/havelib/rpathz/configure.ac: New file, from
5201         gettext/autoconf-lib-link with modifications.
5202         * tests/havelib/rpathlx/usex.c: New file, from
5203         gettext/autoconf-lib-link.
5204         * tests/havelib/rpathlx/Makefile.am: New file, from
5205         gettext/autoconf-lib-link.
5206         * tests/havelib/rpathlx/configure.ac: New file, from
5207         gettext/autoconf-lib-link with modifications.
5208         * tests/havelib/rpathly/usey.c: New file, from
5209         gettext/autoconf-lib-link.
5210         * tests/havelib/rpathly/Makefile.am: New file, from
5211         gettext/autoconf-lib-link.
5212         * tests/havelib/rpathly/configure.ac: New file, from
5213         gettext/autoconf-lib-link with modifications.
5214         * tests/havelib/rpathlz/usez.c: New file, from
5215         gettext/autoconf-lib-link.
5216         * tests/havelib/rpathlz/Makefile.am: New file, from
5217         gettext/autoconf-lib-link.
5218         * tests/havelib/rpathlz/configure.ac: New file, from
5219         gettext/autoconf-lib-link with modifications.
5220         * tests/havelib/rpathlyx/usey.c: New file, from
5221         gettext/autoconf-lib-link.
5222         * tests/havelib/rpathlyx/Makefile.am: New file, from
5223         gettext/autoconf-lib-link.
5224         * tests/havelib/rpathlyx/configure.ac: New file, from
5225         gettext/autoconf-lib-link with modifications.
5226         * tests/havelib/rpathlzyx/usez.c: New file, from
5227         gettext/autoconf-lib-link.
5228         * tests/havelib/rpathlzyx/Makefile.am: New file, from
5229         gettext/autoconf-lib-link.
5230         * tests/havelib/rpathlzyx/configure.ac: New file, from
5231         gettext/autoconf-lib-link with modifications.
5232         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
5233         with modifications.
5234
5235 2010-04-02  Bruno Haible  <bruno@clisp.org>
5236
5237         gnulib-tool: Create distributed built sources also for the tests.
5238         * gnulib-tool (func_create_testdir): Also generate distributed built
5239         sources in the tests directory.
5240
5241 2010-04-02  Bruno Haible  <bruno@clisp.org>
5242
5243         gnulib-tool: Obey user's environment variables.
5244         * gnulib-tool (func_create_testdir): When creating built sources,
5245         respect the environment variables for autoconf, automake, etc. given by
5246         the user.
5247
5248 2010-04-02  Bruno Haible  <bruno@clisp.org>
5249
5250         gnulib-tool: Provide the value of --m4-base to modules.
5251         * gnulib-tool (func_import, func_create_testdir): Emit a definition
5252         of gl_m4_base.
5253
5254 2010-04-02  Eric Blake  <eblake@redhat.com>
5255
5256         maint.mk: fix some fallout
5257         * NEWS: Document the incompatible change, and its effect on cfg.mk.
5258         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
5259
5260 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
5261
5262         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
5263         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
5264         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
5265         (sc_cast_of_x_alloc_return_value): Likewise.
5266         (sc_cast_of_alloca_return_value): Likewise.
5267         (sc_space_tab): Likewise.
5268         (sc_prohibit_atoi_atof): Likewise.
5269         (sc_prohibit_magic_number_exit): Likewise.
5270         (sc_error_exit_success): Likewise.
5271         (sc_file_system): Likewise.
5272         (sc_prohibit_have_config_h): Likewise.
5273         (sc_require_config_h): Likewise.
5274         (sc_prohibit_HAVE_MBRTOWC): Likewise.
5275         (sc_obsolete_symbols): Likewise.
5276         (sc_changelog): Likewise.
5277         (sc_program_name): Likewise.
5278         (sc_the_the): Likewise.
5279         (sc_trailing_blank): Likewise.
5280         (sc_two_space_separator_in_usage): Likewise.
5281         (sc_useless_cpp_parens): Likewise.
5282         (sc_GPL_version): Likewise.
5283         (sc_GFDL_version): Likewise.
5284         (sc_texinfo_acronym): Likewise.
5285         (sc_prohibit_cvs_keyword): Likewise.
5286         (sc_prohibit_stat_st_blocks): Likewise.
5287         (sc_prohibit_S_IS_definition): Likewise.
5288         (sc_redundant_const): Likewise.
5289         (sc_makefile_TAB_only_indentation): Likewise.
5290         (sc_m4_quote_check): Likewise.
5291         (sc_makefile_path_separator_check): Likewise.
5292         (sc_copyright_check): Likewise.
5293         (sc_Wundef_boolean): Likewise.
5294         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
5295
5296         maint.mk: match 0 or more whitespace-before-function-call '('
5297         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
5298         that have zero or two-and-more spaces between the function name
5299         and the open parenthesis.
5300         (sc_error_message_warn_fatal): Likewise.
5301         (sc_error_message_uppercase): Likewise.
5302         (sc_error_message_period): Likewise.
5303
5304 2010-03-31  Eric Blake  <eblake@redhat.com>
5305
5306         maint.mk: check for [ as well as test
5307         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
5308         Based on a libvirt report by Matthias Bolte.
5309
5310         gnumakefile: don't squelch _version output
5311         * top/GNUmakefile (_version): Create one-shot dependency rather
5312         than using $(shell) when version must be regenerated.
5313         (_autoreconf): Run verbosely, by default.
5314
5315         sys_time: avoid compiler warnings
5316         * lib/sys_time.in.h (includes): Ensure gcc pragma is
5317         unconditional, fixing regression from 2010-03-29.
5318         Reported by Simon Josefsson.
5319
5320 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
5321
5322         maint.mk: s/_header_without_use/_sc_header_without_use/
5323         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
5324         (sc_prohibit_assert_without_use): Use the new name.
5325         (sc_prohibit_close_stream_without_use): Likewise.
5326         (sc_prohibit_getopt_without_use): Likewise.
5327         (sc_prohibit_quotearg_without_use): Likewise.
5328         (sc_prohibit_quote_without_use): Likewise.
5329         (sc_prohibit_long_options_without_use): Likewise.
5330         (sc_prohibit_inttostr_without_use): Likewise.
5331         (sc_prohibit_ignore_value_without_use): Likewise.
5332         (sc_prohibit_error_without_use): Likewise.
5333         (sc_prohibit_xalloc_without_use): Likewise.
5334         (sc_prohibit_hash_without_use): Likewise.
5335         (sc_prohibit_hash_pjw_without_use): Likewise.
5336         (sc_prohibit_safe_read_without_use): Likewise.
5337         (sc_prohibit_argmatch_without_use): Likewise.
5338         (sc_prohibit_canonicalize_without_use): Likewise.
5339         (sc_prohibit_root_dev_ino_without_use): Likewise.
5340         (sc_prohibit_openat_without_use): Likewise.
5341         (sc_prohibit_c_ctype_without_use): Likewise.
5342         (sc_prohibit_signal_without_use): Likewise.
5343         (sc_prohibit_intprops_without_use): Likewise.
5344
5345 2010-03-30  Eric Blake  <eblake@redhat.com>
5346
5347         maint: improve module indicators
5348         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
5349         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
5350         columns, and avoid extra macro expansion.
5351
5352         fdopendir: work around FreeBSD bug
5353         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
5354         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
5355         * modules/dirent (Makefile.am): Substitute it.
5356         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
5357         declaration.
5358         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
5359         fix.
5360         Reported by Christian Weisgerber <naddy@mips.inka.de>.
5361
5362 2010-03-29  Bruno Haible  <bruno@clisp.org>
5363
5364         Emit #pragma system_header after the inclusion guard, not before.
5365         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
5366         guard that spans the entire file, not before. This enables an
5367         optimization in GCC's preprocessor.
5368         * lib/ctype.in.h: Likewise.
5369         * lib/dirent.in.h: Likewise.
5370         * lib/errno.in.h: Likewise.
5371         * lib/float.in.h: Likewise.
5372         * lib/getopt.in.h: Likewise.
5373         * lib/iconv.in.h: Likewise.
5374         * lib/langinfo.in.h: Likewise.
5375         * lib/locale.in.h: Likewise.
5376         * lib/math.in.h: Likewise.
5377         * lib/netdb.in.h: Likewise.
5378         * lib/netinet_in.in.h: Likewise.
5379         * lib/pty.in.h: Likewise.
5380         * lib/sched.in.h: Likewise.
5381         * lib/se-selinux.in.h: Likewise.
5382         * lib/search.in.h: Likewise.
5383         * lib/spawn.in.h: Likewise.
5384         * lib/stdarg.in.h: Likewise.
5385         * lib/stdint.in.h: Likewise.
5386         * lib/string.in.h: Likewise.
5387         * lib/strings.in.h: Likewise.
5388         * lib/sys_file.in.h: Likewise.
5389         * lib/sys_ioctl.in.h: Likewise.
5390         * lib/sys_time.in.h: Likewise.
5391         * lib/sys_times.in.h: Likewise.
5392         * lib/sys_utsname.in.h: Likewise.
5393         * lib/sys_wait.in.h: Likewise.
5394         * lib/sysexits.in.h: Likewise.
5395         * lib/wctype.in.h: Likewise.
5396
5397 2010-03-28  James Youngman  <jay@gnu.org>
5398
5399         save-cwd: don't leak a file descriptor when the caller execs.
5400         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
5401         saved file descriptor.
5402         * modules/save-cwd (Depends-on): Depend on cloexec.
5403
5404 2010-03-29  Bruno Haible  <bruno@clisp.org>
5405
5406         Remove vestiges of fts-lgpl module.
5407         * lib/fts_.h: Assume GNULIB_FTS is 1.
5408         * lib/fts.c: Likewise.
5409         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
5410
5411 2010-03-28  Bruno Haible  <bruno@clisp.org>
5412
5413         Fix definition of tests witness macro.
5414         * gnulib-tool (func_import): Fix definition of witness macro.
5415
5416 2010-03-28  Bruno Haible  <bruno@clisp.org>
5417
5418         Fix ioctl's protoype on glibc systems.
5419         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
5420         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
5421         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
5422         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
5423         signature. If not, arrange to replace the ioctl function.
5424         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
5425         REPLACE_IOCTL.
5426         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
5427         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
5428         Reported by Ludovic Courtès <ludo@gnu.org>.
5429
5430 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
5431
5432         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
5433         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
5434         made it so grep -r --include=GLOB* ... did not work.
5435
5436 2010-03-26  Jim Meyering  <meyering@redhat.com>
5437             Eric Blake  <eblake@redhat.com>
5438
5439         maint.mk: prohibit use of test's -o and -a operators
5440         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
5441
5442 2010-03-28  Bruno Haible  <bruno@clisp.org>
5443
5444         Remove unused GNULIB_XYZ macro definitions.
5445         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
5446         invocation.
5447
5448 2010-03-28  Bruno Haible  <bruno@clisp.org>
5449
5450         Mark privileged tests modules.
5451         * modules/idpriv-drop-tests (Status): New section.
5452         * modules/idpriv-droptemp-tests (Status): New section.
5453
5454 2010-03-28  Bruno Haible  <bruno@clisp.org>
5455
5456         Split C++ tests into separate tests modules.
5457         * modules/dirent-c++-tests: New file, extracted from
5458         modules/dirent-tests.
5459         * modules/dirent-tests: Depend on it.
5460         * modules/fcntl-h-c++-tests: New file, extracted from
5461         modules/fcntl-h-tests.
5462         * modules/fcntl-h-tests: Depend on it.
5463         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
5464         * modules/glob-tests: Depend on it.
5465         * modules/iconv-h-c++-tests: New file, extracted from
5466         modules/iconv-h-tests.
5467         * modules/iconv-h-tests: Depend on it.
5468         * modules/langinfo-c++-tests: New file, extracted from
5469         modules/langinfo-tests.
5470         * modules/langinfo-tests: Depend on it.
5471         * modules/locale-c++-tests: New file, extracted from
5472         modules/locale-tests.
5473         * modules/locale-tests: Depend on it.
5474         * modules/math-c++-tests: New file, extracted from modules/math-tests.
5475         * modules/math-tests: Depend on it.
5476         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
5477         * modules/pty-tests: Depend on it.
5478         * modules/search-c++-tests: New file, extracted from
5479         modules/search-tests.
5480         * modules/search-tests: Depend on it.
5481         * modules/signal-c++-tests: New file, extracted from
5482         modules/signal-tests.
5483         * modules/signal-tests: Depend on it.
5484         * modules/spawn-c++-tests: New file, extracted from
5485         modules/spawn-tests.
5486         * modules/spawn-tests: Depend on it.
5487         * modules/stdio-c++-tests: New file, extracted from
5488         modules/stdio-tests.
5489         * modules/stdio-tests: Depend on it.
5490         * modules/stdlib-c++-tests: New file, extracted from
5491         modules/stdlib-tests.
5492         * modules/stdlib-tests: Depend on it.
5493         * modules/string-c++-tests: New file, extracted from
5494         modules/string-tests.
5495         * modules/string-tests: Depend on it.
5496         * modules/sys_ioctl-c++-tests: New file, extracted from
5497         modules/sys_ioctl-tests.
5498         * modules/sys_ioctl-tests: Depend on it.
5499         * modules/sys_select-c++-tests: New file, extracted from
5500         modules/sys_select-tests.
5501         * modules/sys_select-tests: Depend on it.
5502         * modules/sys_socket-c++-tests: New file, extracted from
5503         modules/sys_socket-tests.
5504         * modules/sys_socket-tests: Depend on it.
5505         * modules/sys_stat-c++-tests: New file, extracted from
5506         modules/sys_stat-tests.
5507         * modules/sys_stat-tests: Depend on it.
5508         * modules/sys_time-c++-tests: New file, extracted from
5509         modules/sys_time-tests.
5510         * modules/sys_time-tests: Depend on it.
5511         * modules/time-c++-tests: New file, extracted from modules/time-tests.
5512         * modules/time-tests: Depend on it.
5513         * modules/unistd-c++-tests: New file, extracted from
5514         modules/unistd-tests.
5515         * modules/unistd-tests: Depend on it.
5516         * modules/wchar-c++-tests: New file, extracted from
5517         modules/wchar-tests.
5518         * modules/wchar-tests: Depend on it.
5519         * modules/wctype-c++-tests: New file, extracted from
5520         modules/wctype-tests.
5521         * modules/wctype-tests: Depend on it.
5522         Reported by Simon Josefsson.
5523
5524 2010-03-28  Bruno Haible  <bruno@clisp.org>
5525
5526         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
5527         * gnulib-tool (func_exists_module): New function, extracted from
5528         func_verify_module.
5529         (func_verify_module): Use it.
5530         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
5531         'foo' only if 'foo' exists.
5532         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
5533         module.
5534
5535 2010-03-28  Bruno Haible  <bruno@clisp.org>
5536
5537         gnulib-tool: Add support for special categories of tests.
5538         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
5539         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
5540         (func_usage): Document them.
5541         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
5542         inc_unportable_tests, inc_all_tests): New variables.
5543         (func_acceptable): Consider these variables.
5544         (func_modules_transitive_closure): Make it work when the 'Status' field
5545         consists of multiple words.
5546         (func_import): Store and restore the values of inc_cxx_tests,
5547         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
5548         inc_all_tests in gnulib-comp.m4.
5549         (func_create_testdir): Set inc_all_tests to true.
5550         * doc/gnulib.texi (Extra tests modules): New section.
5551         Suggested by Jim Meyering.
5552
5553 2010-03-28  Bruno Haible  <bruno@clisp.org>
5554
5555         ansi-c++-opt: Allow turning off the C++ build by default.
5556         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
5557         gl_CXX_CHOICE_DEFAULT_NO is defined.
5558         Requested by Eric Blake.
5559
5560 2010-03-28  Bruno Haible  <bruno@clisp.org>
5561
5562         unistd: Avoid #define replacements in C++ mode.
5563         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
5564         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
5565         setsockopt, shutdown, select): In C++, attach a warning to the function
5566         if possible, rather than #defining the symbol to a dysfunctional alias.
5567         Reported by John W. Eaton <jwe@gnu.org>.
5568
5569 2010-03-28  Bruno Haible  <bruno@clisp.org>
5570
5571         Fix link errors on mingw.
5572         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
5573         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
5574         $(LIBSOCKET).
5575         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
5576         $(LIBSOCKET).
5577
5578 2010-03-28  Bruno Haible  <bruno@clisp.org>
5579             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5580
5581         lib-ignore: Determine different options for different compilers.
5582         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
5583         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
5584         Add comments.
5585         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
5586         * NEWS: Mention the change.
5587
5588 2010-03-27  Bruno Haible  <bruno@clisp.org>
5589
5590         Remove unused GNULIB_XYZ macro definitions.
5591         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
5592         * modules/fseek (configure.ac): Likewise.
5593         * modules/ioctl (configure.ac): Likewise.
5594         * modules/open (configure.ac): Likewise.
5595         * modules/stdlib-safer (configure.ac): Likewise.
5596
5597 2010-03-27  Bruno Haible  <bruno@clisp.org>
5598
5599         Add a remark about certain modules.
5600         * modules/malloc (Comment): New section.
5601         * modules/realloc (Comment): Likewise.
5602         * modules/sigpipe (Comment): Likewise.
5603
5604 2010-03-27  Bruno Haible  <bruno@clisp.org>
5605
5606         Resolve conflict between the two kinds of module indicators.
5607         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
5608         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
5609         * modules/canonicalize (configure.ac): Invoke
5610         gl_MODULE_INDICATOR_FOR_TESTS.
5611         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
5612         GNULIB_XYZ.
5613         * tests/test-dirent-c++.cc: Likewise.
5614         * tests/test-dirent-safer.c: Likewise.
5615         * tests/test-dup2.c: Likewise.
5616         * tests/test-fchdir.c: Likewise.
5617         * tests/test-fcntl-h-c++.cc: Likewise.
5618         * tests/test-getopt.c: Likewise.
5619         * tests/test-getopt.h: Likewise.
5620         * tests/test-langinfo-c++.cc: Likewise.
5621         * tests/test-locale-c++.cc: Likewise.
5622         * tests/test-math-c++.cc: Likewise.
5623         * tests/test-pty-c++.cc: Likewise.
5624         * tests/test-search-c++.cc: Likewise.
5625         * tests/test-signal-c++.cc: Likewise.
5626         * tests/test-spawn-c++.cc: Likewise.
5627         * tests/test-stdio-c++.cc: Likewise.
5628         * tests/test-stdlib-c++.cc: Likewise.
5629         * tests/test-string-c++.cc: Likewise.
5630         * tests/test-sys_ioctl-c++.cc: Likewise.
5631         * tests/test-sys_select-c++.cc: Likewise.
5632         * tests/test-sys_socket-c++.cc: Likewise.
5633         * tests/test-sys_stat-c++.cc: Likewise.
5634         * tests/test-sys_time-c++.cc: Likewise.
5635         * tests/test-time-c++.cc: Likewise.
5636         * tests/test-unistd-c++.cc: Likewise.
5637         * tests/test-wchar-c++.cc: Likewise.
5638         * tests/uninorm/test-u8-nfc.c: Likewise.
5639         * tests/uninorm/test-u8-nfd.c: Likewise.
5640         * tests/uninorm/test-u8-nfkc.c: Likewise.
5641         * tests/uninorm/test-u8-nfkd.c: Likewise.
5642         * tests/uninorm/test-u16-nfc.c: Likewise.
5643         * tests/uninorm/test-u16-nfd.c: Likewise.
5644         * tests/uninorm/test-u16-nfkc.c: Likewise.
5645         * tests/uninorm/test-u16-nfkd.c: Likewise.
5646         * tests/uninorm/test-u32-nfc.c: Likewise.
5647         * tests/uninorm/test-u32-nfc-big.c: Likewise.
5648         * tests/uninorm/test-u32-nfd.c: Likewise.
5649         * tests/uninorm/test-u32-nfd-big.c: Likewise.
5650         * tests/uninorm/test-u32-nfkc.c: Likewise.
5651         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
5652         * tests/uninorm/test-u32-nfkd.c: Likewise.
5653         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
5654         * tests/uninorm/test-u32-normalize-big.c: Likewise.
5655
5656 2010-03-27  Bruno Haible  <bruno@clisp.org>
5657
5658         Distinguish two kinds of module indicators.
5659         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
5660         gl_MODULE_INDICATOR.
5661         (gl_MODULE_INDICATOR): New macro.
5662         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
5663         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
5664         * m4/fcntl_h.m4 (gl_FCNTL_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/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
5669         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
5670         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
5671         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
5672         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
5673         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
5674         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
5675         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
5676         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
5677         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
5678         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
5679         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
5680         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
5681         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
5682         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
5683         * modules/cloexec (configure.ac): Likewise.
5684         * modules/getopt-gnu (configure.ac): Likewise.
5685         * modules/uninorm/u8-normalize (configure.ac): Likewise.
5686         * modules/uninorm/u16-normalize (configure.ac): Likewise.
5687         * modules/uninorm/u32-normalize (configure.ac): Likewise.
5688         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
5689
5690 2010-03-27  Bruno Haible  <bruno@clisp.org>
5691
5692         New module description field 'Comment'.
5693         * gnulib-tool: New option --extract-comment.
5694         (func_usage): Document it.
5695         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
5696         (func_get_comment): New function.
5697         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
5698
5699 2010-03-27  Bruno Haible  <bruno@clisp.org>
5700
5701         Addendum to 2010-02-07 commit.
5702         * gnulib-tool (func_usage): Document --extract-applicability option.
5703
5704 2010-03-27  Bruno Haible  <bruno@clisp.org>
5705
5706         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
5707         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
5708         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
5709         rather than link errors.
5710
5711 2010-03-27  Bruno Haible  <bruno@clisp.org>
5712
5713         Avoid side effects from tests-related modules on the compilation of lib.
5714         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
5715         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
5716         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
5717         parameter. Emit into AM_CPPFLAGS a definition of the designated C
5718         macro.
5719         (func_import): Define a witness macro. Assign it a value that depends
5720         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
5721         tests-related modules.
5722         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
5723         Reported by Jim Meyering.
5724
5725 2010-03-27  Bruno Haible  <bruno@clisp.org>
5726
5727         Factorize common .m4 code.
5728         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
5729         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
5730         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
5731         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
5732         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
5733         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
5734         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
5735         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
5736         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
5737         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
5738         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
5739         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
5740         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
5741         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
5742         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
5743         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
5744         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
5745         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
5746         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
5747         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
5748         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
5749         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
5750         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
5751         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
5752         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
5753         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
5754         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
5755         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
5756         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
5757         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
5758         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
5759         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
5760
5761 2010-03-27  Bruno Haible  <bruno@clisp.org>
5762
5763         Fix a compilation error on Cygwin with g++ >= 4.3.
5764         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
5765         if it is undefined or if we alias it to chmod.
5766         (lstat): Don't warn about the use of this function if it is undefined
5767         or if we alias it to stat.
5768         Reported by Simon Josefsson.
5769
5770 2010-03-27  Bruno Haible  <bruno@clisp.org>
5771
5772         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
5773         * modules/getlogin (configure.ac): Update.
5774
5775         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
5776         * modules/getlogin_r (configure.ac): Update.
5777
5778         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
5779         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
5780         * modules/inet_ntop (configure.ac): Update.
5781
5782         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
5783         * modules/inet_pton (configure.ac): Update.
5784
5785         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
5786         * modules/mbslen (configure.ac): Update.
5787
5788         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
5789         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
5790         * modules/forkpty (configure.ac): Update.
5791         * modules/openpty (configure.ac): Update.
5792
5793 2010-03-26  Simon Josefsson  <simon@josefsson.org>
5794
5795         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
5796         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
5797
5798 2010-03-25  Eric Blake  <eblake@redhat.com>
5799
5800         maint: use pragma consistently across replacement headers
5801         * lib/ctype.in.h (system_header): Hoist for consistent placement.
5802         * lib/dirent.in.h (system_header): Likewise.
5803         * lib/errno.in.h (system_header): Likewise.
5804         * lib/float.in.h (system_header): Likewise.
5805         * lib/getopt.in.h (system_header): Likewise.
5806         * lib/iconv.in.h (system_header): Likewise.
5807         * lib/inttypes.in.h (system_header): Likewise.
5808         * lib/langinfo.in.h (system_header): Likewise.
5809         * lib/locale.in.h (system_header): Likewise.
5810         * lib/math.in.h (system_header): Likewise.
5811         * lib/netdb.in.h (system_header): Likewise.
5812         * lib/netinet_in.in.h (system_header): Likewise.
5813         * lib/pty.in.h (system_header): Likewise.
5814         * lib/sched.in.h (system_header): Likewise.
5815         * lib/se-selinux.in.h (system_header): Likewise.
5816         * lib/search.in.h (system_header): Likewise.
5817         * lib/spawn.in.h (system_header): Likewise.
5818         * lib/stdarg.in.h (system_header): Likewise.
5819         * lib/stdint.in.h (system_header): Likewise.
5820         * lib/string.in.h (system_header): Likewise.
5821         * lib/strings.in.h (system_header): Likewise.
5822         * lib/sys_file.in.h (system_header): Likewise.
5823         * lib/sys_ioctl.in.h (system_header): Likewise.
5824         * lib/sys_socket.in.h (system_header): Likewise.
5825         * lib/sys_times.in.h (system_header): Likewise.
5826         * lib/sys_utsname.in.h (system_header): Likewise.
5827         * lib/sys_wait.in.h (system_header): Likewise.
5828         * lib/sysexits.in.h (system_header): Likewise.
5829         * lib/unistd.in.h (system_header): Likewise.
5830         * lib/wctype.in.h (system_header): Likewise.
5831
5832         arpa/inet: fix mingw compilation warning
5833         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
5834         Reported by Matthew Bolte.
5835
5836 2010-03-25  Bruno Haible  <bruno@clisp.org>
5837
5838         Avoid collision between gnulib wrapper and libintl wrapper.
5839         * lib/printf.c (printf): Don't define if a printf wrapper is already
5840         defined in intl/printf.c.
5841         Reported by Michel Boaventura <michel@michelboaventura.com>.
5842
5843 2010-03-25  Bruno Haible  <bruno@clisp.org>
5844
5845         Use ANSI C.
5846         * lib/readutmp.h (getutent): Provide ANSI C prototype.
5847
5848 2010-03-25  Bruno Haible  <bruno@clisp.org>
5849
5850         Minor formatting changes.
5851         * lib/acosl.c: Insert space before function argument list.
5852         * lib/argz.c: Likewise.
5853         * lib/asinl.c: Likewise.
5854         * lib/expl.c: Likewise.
5855         * lib/gen-uni-tables.c: Likewise.
5856         * lib/gettext.h: Likewise.
5857         * lib/glthread/lock.h: Likewise.
5858         * lib/tanl.c: Likewise.
5859         * lib/uniname/uniname.c: Likewise.
5860         * tests/test-idpriv-drop.c: Likewise.
5861         * tests/test-idpriv-droptemp.c: Likewise.
5862         * tests/test-lock.c: Likewise.
5863         * tests/test-tls.c: Likewise.
5864         * lib/argp-help.c: Insert space before function-like macro argument
5865         list.
5866         * lib/memcmp.c: Likewise.
5867         * tests/test-base64.c: Likewise.
5868         * lib/localename.c: Insert space before sizeof's argument list.
5869         * lib/safe-alloc.h: Likewise.
5870         * lib/file-set.h: Insert space before macro argument list.
5871         * tests/test-argp.c: Likewise.
5872         * lib/argp-namefrob.h: Insert space before function parameter list.
5873         * lib/getaddrinfo.c: Likewise.
5874         * lib/netdb.in.h: Likewise.
5875         * lib/parse-duration.h: Likewise.
5876         * lib/parse-duration.c: Likewise.
5877         * lib/poll.c: Likewise.
5878         * lib/select.c: Likewise.
5879         * lib/trim.h: Likewise.
5880         * tests/test-usleep.c: Likewise.
5881         * lib/ldexpl.c: Insert space before function parameter list and before
5882         function argument list.
5883         * lib/logl.c: Likewise.
5884         * lib/sqrtl.c: Likewise.
5885         * lib/trim.c: Likewise.
5886         * lib/cosl.c: Use GNU style indentation. Insert space before function
5887         argument list.
5888         * lib/sinl.c: Likewise.
5889         * lib/tsearch.c: Insert space after 'for'.
5890         Reported by Jim Meyering.
5891
5892 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
5893
5894         * maint.mk (sc_Wundef_boolean): Check for the presence of the
5895         config header before grepping, as it's not present before
5896         autoreconf/configure are run.  Reported by Simon Josefsson.
5897
5898 2010-03-23  Bruno Haible  <bruno@clisp.org>
5899
5900         pt_chown: Make it work with automake < 1.11.
5901         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
5902         Reported by Simon Josefsson.
5903
5904 2010-03-23  Bruno Haible  <bruno@clisp.org>
5905
5906         pt_chown: Don't depend on GPLed modules.
5907         * lib/pt_chown.c: Don't include idpriv.h.
5908         (main): Don't drop privileges.
5909         * modules/pt_chown (Depends-on): Remove idpriv-drop.
5910         Reported by Simon Josefsson.
5911
5912 2010-03-24  Simon Josefsson  <simon@josefsson.org>
5913
5914         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
5915         suggestions from karl@freefriends.org (Karl Berry).
5916
5917 2010-03-22  Eric Blake  <eblake@redhat.com>
5918
5919         gethostname: further tweaks
5920         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
5921         are overriding gethostname.
5922         Suggested by Bruno Haible.
5923
5924 2010-03-21  Bruno Haible  <bruno@clisp.org>
5925
5926         Fix comments.
5927         * lib/forkpty.c (rpl_forkpty): Fix comment.
5928         * lib/openpty.c (rpl_openpty): Likewise.
5929         Reported by Eric Blake.
5930
5931 2010-03-22  Eric Blake  <eblake@redhat.com>
5932
5933         gethostname: fix build on mingw
5934         * lib/unistd.in.h (includes): Work around fact that mingw
5935         <winsock2.h> re-includes <unistd.h>, by avoiding any
5936         redeclarations if we are being included by <winsock2.h>.
5937         Reported by Matthias Bolte.
5938
5939 2010-03-21  Bruno Haible  <bruno@clisp.org>
5940
5941         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
5942         * lib/forkpty.c (forkpty): New replacement function, from glibc with
5943         modifications.
5944         * lib/pty.in.h (forkpty): Update declaration. Add comments.
5945         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
5946         provide the replacement.
5947         * modules/forkpty (Depends-on): Add openpty, login_tty.
5948         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
5949         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
5950         * doc/glibc-functions/forkpty.texi: More supported platforms.
5951         * config/srclist.txt: Add forkpty.c (commented).
5952
5953 2010-03-21  Bruno Haible  <bruno@clisp.org>
5954
5955         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
5956         (Makefile.am): Verify that PTY_LIB is defined.
5957
5958         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
5959
5960 2010-03-21  Bruno Haible  <bruno@clisp.org>
5961
5962         Tests for module 'login_tty'.
5963         * modules/login_tty-tests: New file.
5964         * tests/test-login_tty.c: New file.
5965
5966         New module 'login_tty'.
5967         * lib/login_tty.c: New file.
5968         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
5969         * modules/login_tty: New file.
5970         * doc/glibc-functions/login_tty.texi: Mention the new module.
5971
5972 2010-03-21  Bruno Haible  <bruno@clisp.org>
5973
5974         login_tty: Documentation.
5975         * doc/glibc-functions/login_tty.texi: New file.
5976         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
5977
5978 2010-03-21  Bruno Haible  <bruno@clisp.org>
5979
5980         pty: Consistent macro naming.
5981         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
5982         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
5983         * modules/pty (configure.ac): Update.
5984
5985 2010-03-21  Bruno Haible  <bruno@clisp.org>
5986
5987         Tests for openpty: Make stricter.
5988         * tests/test-openpty.c (main): Add test of canonical processing and
5989         erase.
5990         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
5991
5992         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
5993         * lib/openpty.c (openpty): New replacement function.
5994         * lib/pty.in.h: Include <termios.h>.
5995         (openpty): Update declaration. Add comments.
5996         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
5997         is not declared, arrange to provide the replacement. Check for _getpty
5998         and posix_openpt.
5999         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
6000         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
6001         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
6002         * modules/pty-tests (test_pty_c___LDADD): New variable.
6003         * doc/glibc-functions/openpty.texi: More supported platforms.
6004
6005 2010-03-21  Bruno Haible  <bruno@clisp.org>
6006
6007         setenv: Tweaks.
6008         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
6009         the test program.
6010         * doc/posix-functions/setenv.texi: Update platforms list.
6011
6012 2010-03-21  Bruno Haible  <bruno@clisp.org>
6013
6014         New module 'unlockpt'.
6015         * lib/unlockpt.c: New file, from glibc with modifications.
6016         * m4/unlockpt.m4: New file.
6017         * modules/unlockpt: New file.
6018         * lib/stdlib.in.h (unlockpt): New declaration.
6019         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
6020         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
6021         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
6022         HAVE_UNLOCKPT.
6023         * doc/posix-functions/unlockpt.texi: Mention the new module.
6024         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
6025         * config/srclist.txt: Add unlockpt.c (commented).
6026
6027 2010-03-21  Jim Meyering  <meyering@redhat.com>
6028
6029         maint.mk: prohibit inclusion of "intprops.h" without use
6030         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
6031
6032 2010-03-21  Bruno Haible  <bruno@clisp.org>
6033
6034         New module 'grantpt'.
6035         * lib/grantpt.c: New file, from glibc with modifications.
6036         * m4/grantpt.m4: New file.
6037         * modules/grantpt: New file.
6038         * lib/stdlib.in.h (grantpt): New declaration.
6039         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
6040         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
6041         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
6042         HAVE_GRANTPT.
6043         * doc/posix-functions/grantpt.texi: Mention the new module.
6044         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
6045         * config/srclist.txt: Add grantpt.c (commented).
6046
6047 2010-03-21  Bruno Haible  <bruno@clisp.org>
6048
6049         New module 'pt_chown'.
6050         * lib/pt_chown.c: New file, from glibc with modifications.
6051         * lib/pty-private.h: New file, from glibc with modifications.
6052         * modules/pt_chown: New file.
6053         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
6054
6055 2010-03-21  Bruno Haible  <bruno@clisp.org>
6056
6057         Tests for module 'ptsname'.
6058         * modules/ptsname-tests: New file.
6059         * tests/test-ptsname.c: New file.
6060
6061         New module 'ptsname'.
6062         * lib/ptsname.c: New file, from glibc with modifications.
6063         * m4/ptsname.m4: New file.
6064         * modules/ptsname: New file.
6065         * lib/stdlib.in.h (ptsname): New declaration.
6066         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
6067         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
6068         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
6069         HAVE_PTSNAME.
6070         * doc/posix-functions/ptsname.texi: Mention the new module.
6071         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
6072         * config/srclist.txt: Add ptsname.c (commented).
6073
6074 2010-03-21  Bruno Haible  <bruno@clisp.org>
6075
6076         Tests for module 'ttyname_r'.
6077         * modules/ttyname_r-tests: New file.
6078         * tests/test-ttyname_r.c: New file.
6079
6080         New module 'ttyname_r'.
6081         * lib/ttyname_r.c: New file.
6082         * m4/ttyname_r.m4: New file.
6083         * modules/ttyname_r: New file.
6084         * lib/unistd.in.h (ttyname_r): New declaration.
6085         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
6086         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
6087         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
6088         HAVE_TTYNAME_R.
6089         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
6090         * doc/posix-functions/ttyname_r.texi: Mention the new module.
6091
6092 2010-03-20  Bruno Haible  <bruno@clisp.org>
6093
6094         signal: Undefine macro definitions in C++ mode.
6095         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
6096         sigfillset): Undefine macro definitions from the system header in C++
6097         mode.
6098         Reported by John W. Eaton <jwe@gnu.org>.
6099
6100 2010-03-20  Bruno Haible  <bruno@clisp.org>
6101
6102         Ensure no #include statements inside extern "C" { ... }.
6103         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
6104         contain #include statements.
6105         * lib/time.in.h: Likewise.
6106
6107 2010-03-20  Bruno Haible  <bruno@clisp.org>
6108
6109         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
6110         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
6111         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
6112         Reported by John W. Eaton <jwe@gnu.org>.
6113
6114 2010-03-20  Bruno Haible  <bruno@clisp.org>
6115
6116         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
6117         Reported by Jim Meyering.
6118
6119 2010-03-20  Bruno Haible  <bruno@clisp.org>
6120
6121         pipe: Set errno upon failure.
6122         * lib/pipe.h: Specify that when -1 is returned, errno is set.
6123         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
6124         errno value in error message.
6125
6126 2010-03-20  Bruno Haible  <bruno@clisp.org>
6127             Jim Meyering  <meyering@redhat.com>
6128
6129         lchown: Avoid "unused variable" warning.
6130         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
6131
6132 2010-03-20  Bruno Haible  <bruno@clisp.org>
6133
6134         Work around unlink() bug on MacOS X 10.5.6.
6135         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
6136         attempting to unlink a parent directory.
6137         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
6138         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
6139         activate for the replacement function.
6140         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
6141
6142 2010-03-20  Bruno Haible  <bruno@clisp.org>
6143
6144         Fix link errors on Solaris 8.
6145         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
6146         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
6147
6148 2010-03-19  Jim Meyering  <meyering@redhat.com>
6149
6150         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
6151         The _LIBC implementation of build_range_exp correctly honors the
6152         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
6153         However, the non-_LIBC implementation would ignore that syntax-bit
6154         flag and return REG_ERANGE unconditionally.
6155         This change makes it honor that flag.
6156         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
6157         Make two pointer parameters "const".
6158         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
6159         (parse_bracket_exp): Update caller.
6160
6161         regex.m4: correct the reversed range endpoint ([b-a]) test
6162         * m4/regex.m4: When requiring that [b-a] evoke failure,
6163         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
6164         test pass once again for x86-based systems.
6165
6166 2010-03-19  Bruno Haible  <bruno@clisp.org>
6167
6168         scandir: Fix link error on Solaris 8.
6169         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
6170         macros.
6171
6172 2010-03-19  Bruno Haible  <bruno@clisp.org>
6173
6174         getusershell: Fix documentation.
6175         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
6176         module.
6177         * doc/glibc-functions/setusershell.texi: Likewise.
6178
6179         getusershell: Provide declaration, missing on Solaris 9.
6180         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
6181         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
6182         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
6183         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
6184         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6185         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
6186         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
6187         HAVE_GETUSERSHELL.
6188         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
6189
6190 2010-03-19  Bruno Haible  <bruno@clisp.org>
6191
6192         wctype: Provide iswblank function.
6193         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
6194         exists and is fine.
6195         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
6196         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
6197         * tests/test-wctype.c (main): Re-enable the iswblank tests.
6198         * doc/posix-functions/iswblank.texi: Update.
6199
6200 2010-03-19  Bruno Haible  <bruno@clisp.org>
6201
6202         Tests of module 'pty' in C++ mode.
6203         * modules/pty-tests: New file.
6204         * tests/test-pty-c++.cc: New file.
6205         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
6206
6207 2010-03-19  Eric Blake  <eblake@redhat.com>
6208
6209         logb: fix documentation
6210         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
6211         1.5 declaration bug.
6212
6213         forkpty, openpty: prefer glibc's const-safe prototype
6214         * lib/forkpty.c (rpl_forkpty): New file.
6215         * lib/openpty.c (rpl_openpty): Likewise.
6216         * modules/forkpty (Files): Distribute it.
6217         * modules/openpty (Files): Likewise.
6218         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
6219         check...
6220         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
6221         replacement for for non-const BSD signature.
6222         * modules/pty (Makefile.am): Substitute witnesses.
6223         * lib/pty.in.h (forkpty, openpty): Declare replacements.
6224         * tests/test-forkpty.c: Update signature check.
6225         * tests/test-openpty.c: Likewise.
6226         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
6227         * doc/glibc-functions/openpty.texi (openpty): Likewise.
6228
6229         forkpty, openpty: split functions into new modules
6230         * modules/pty (Makefile.am): Substitute new witnesses.
6231         (Libraries): Move library detection...
6232         * modules/forkpty: ...into new module.
6233         * modules/openpty: Another new module.
6234         * modules/pty-tests: Rename and split...
6235         * modules/forkpty-tests: ...to this...
6236         * modules/openpty-tests: ...and this.
6237         * tests/test-pty.c: Rename and split...
6238         * tests/test-forkpty.c: ...to this...
6239         * tests/test-openpty.c: ...and this.
6240         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
6241         (gl_PTY): Split library searching...
6242         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
6243         (gl_FORKPTY, gl_OPENPTY): New macros.
6244         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
6245         * NEWS: Mention the split.
6246         * MODULES.html.sh (Misc): Document the modules.
6247         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
6248         * doc/glibc-functions/openpty.texi (openpty): Likewise.
6249
6250         pty: improve replacement header
6251         * lib/pty.in.h: New file.
6252         * modules/pty (Files): Ship it.
6253         (Makefile.am): Always build replacement.
6254         * m4/pty.m4: Rename...
6255         * m4/pty_h.m4: ...to this.
6256         (gl_PTY): Modernize setting of witness macros; update check of
6257         forkpty to take proper advantage of cache.
6258         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
6259
6260         getopt: avoid compiler warning
6261         * lib/getopt.c (attribute_hidden): Remove unused macro.
6262
6263 2010-03-18  Bruno Haible  <bruno@clisp.org>
6264
6265         Fix link errors on Solaris 8.
6266         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
6267         * modules/search-tests (test_search_c___LDADD): Likewise.
6268         * modules/signal-tests (test_signal_c___LDADD): Likewise.
6269         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
6270         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
6271         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
6272         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
6273         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
6274         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
6275
6276 2010-03-18  Bruno Haible  <bruno@clisp.org>
6277
6278         Fix bug introduced on 2010-03-14.
6279         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
6280         (gl_SPAWN_H): Require it.
6281         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
6282         Reported by Simon Josefsson.
6283
6284 2010-03-18  Bruno Haible  <bruno@clisp.org>
6285
6286         Fix typo introduced on 2009-12-31.
6287         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
6288         posix_spawn_file_actions_adddup2.
6289
6290 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
6291         and Eric Blake  <eblake@redhat.com>
6292
6293         test-vc-list-files-git: make more robust
6294         * tests/test-vc-list-files-git.sh: Unset problematic environment
6295         variables.  Chain commands together.
6296
6297 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
6298
6299         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
6300         `AC_CHECK_DECL' invocation.
6301
6302 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
6303
6304         * lib/inttostr.c (inttostr): Make sure the invocation of verify
6305         appears before executable statements. Suggested by Petr Sumbera
6306         <Petr.Sumbera@Sun.COM>.
6307
6308 2010-03-14  Bruno Haible  <bruno@clisp.org>
6309
6310         * tests/test-flock.c (test_exclusive): Comment out a test that causes
6311         portability problems. Instead use a simpler test.
6312         (main): Check that invalid arguments are rejected only on Linux.
6313
6314 2010-03-14  Bruno Haible  <bruno@clisp.org>
6315
6316         Fix bug introduced on 2009-12-31.
6317         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
6318         gl_PREREQ_SYS_H_WINSOCK2 always.
6319         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
6320         SYS_SOCKET_H variable.
6321         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
6322         Update comments.
6323         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
6324         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
6325         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
6326         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6327         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
6328
6329 2010-03-14  Bruno Haible  <bruno@clisp.org>
6330
6331         Fix values returned by sinl, cosl.
6332         * lib/trigl.h: Add specification comments.
6333         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
6334         that combines the values from the precomputed table with the values of
6335         the Chebyshev polynomials.
6336
6337 2010-03-14  Bruno Haible  <bruno@clisp.org>
6338
6339         Fix compilation error when modules 'posix_spawn[p]' are not used.
6340         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
6341         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
6342
6343 2010-03-14  Bruno Haible  <bruno@clisp.org>
6344
6345         Fix compilation error on mingw when module 'time_r' is not used.
6346         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
6347         is 1.
6348         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
6349         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
6350         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
6351         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
6352
6353 2010-03-14  Bruno Haible  <bruno@clisp.org>
6354
6355         Fix compilation error with Sun C.
6356         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
6357         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
6358         instead of GCC specific ULONG_LONG_MAX.
6359         * lib/xstrtoll.c: Likewise.
6360         * lib/xstrtoull.c: Likewise.
6361
6362 2010-03-13  Bruno Haible  <bruno@clisp.org>
6363
6364         Allow the user to disable C++ code and tests.
6365         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
6366         (gl_PROG_ANSI_CXX): Require it.
6367
6368 2010-03-13  Bruno Haible  <bruno@clisp.org>
6369
6370         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
6371         cases.
6372
6373 2010-03-13  Bruno Haible  <bruno@clisp.org>
6374
6375         Test that gnulib does not break the standard C++ headers.
6376         * tests/test-locale-c++2.cc: New file.
6377         * modules/locale-tests (Files): Add it.
6378         (Makefile.am): Compile it for test-locale-c++.
6379         * tests/test-math-c++2.cc: New file.
6380         * modules/math-tests (Files): Add it.
6381         (Makefile.am): Compile it for test-math-c++.
6382         * tests/test-signal-c++2.cc: New file.
6383         * modules/signal-tests (Files): Add it.
6384         (Makefile.am): Compile it for test-signal-c++.
6385         * tests/test-stdio-c++2.cc: New file.
6386         * modules/stdio-tests (Files): Add it.
6387         (Makefile.am): Compile it for test-stdio-c++.
6388         * tests/test-stdlib-c++2.cc: New file.
6389         * modules/stdlib-tests (Files): Add it.
6390         (Makefile.am): Compile it for test-stdlib-c++.
6391         * tests/test-string-c++2.cc: New file.
6392         * modules/string-tests (Files): Add it.
6393         (Makefile.am): Compile it for test-string-c++.
6394         * tests/test-time-c++2.cc: New file.
6395         * modules/time-tests (Files): Add it.
6396         (Makefile.am): Compile it for test-time-c++.
6397         Reported by John W. Eaton <jwe@gnu.org>.
6398
6399 2010-03-13  Bruno Haible  <bruno@clisp.org>
6400
6401         * gnulib-tool (func_usage): Clarify which options are available for
6402         --create-testdir and --create-megatestdir.
6403
6404 2010-03-13  Bruno Haible  <bruno@clisp.org>
6405
6406         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
6407         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
6408         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
6409         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
6410         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
6411         when appropriate.
6412         Reported by Jim Meyering.
6413
6414 2010-03-12  Simon Josefsson  <simon@josefsson.org>
6415
6416         * gnulib-tool (func_import): Explain origin of code.
6417
6418 2010-03-12  Bruno Haible  <bruno@clisp.org>
6419
6420         Fix problem with automake's definition of CXXLINK.
6421         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
6422         Reported by Simon Josefsson and Ludovic Courtès.
6423
6424 2010-03-12  Bruno Haible  <bruno@clisp.org>
6425
6426         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
6427         stable releases.
6428
6429 2010-03-11  Bruno Haible  <bruno@clisp.org>
6430
6431         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
6432         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
6433         whether the system provides one variant or multiple variants of the
6434         function.
6435         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
6436         C++ compilers.
6437         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
6438         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
6439         Reported by Jim Meyering.
6440
6441 2010-03-09  Simon Josefsson  <simon@josefsson.org>
6442
6443         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
6444
6445 2010-03-08  Bruno Haible  <bruno@clisp.org>
6446
6447         gnulib-tool: Add support for --libtool in --create-testdir.
6448         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
6449         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
6450
6451 2010-03-08  Eric Blake  <eblake@redhat.com>
6452
6453         gnulib-tool.texi: mention possibility of git submodule
6454         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
6455         submodules.
6456         * doc/.gitignore: Ignore another generated file.
6457
6458 2010-03-08  Karl Berry  <karl@gnu.org>
6459
6460         * doc/gnulib-tool.texi (VCS Issues): Mention third option
6461         of committing gnulib files while skipping others.
6462
6463 2010-03-07  Bruno Haible  <bruno@clisp.org>
6464
6465         Tests of module 'wctype' in C++ mode.
6466         * tests/test-wctype-c++.cc: New file.
6467         * modules/wctype-tests (Files): Add it and tests/signature.h.
6468         (Depends-on): Add ansi-c++-opt.
6469         (Makefile.am): Arrange to compile and run test-wctype-c++.
6470
6471         Tests of module 'wchar' in C++ mode.
6472         * tests/test-wchar-c++.cc: New file.
6473         * modules/wchar-tests (Files): Add it and tests/signature.h.
6474         (Depends-on): Add ansi-c++-opt.
6475         (Makefile.am): Arrange to compile and run test-wchar-c++.
6476         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
6477         gl_MODULE_INDICATOR.
6478
6479         Tests of module 'unistd' in C++ mode.
6480         * tests/test-unistd-c++.cc: New file.
6481         * modules/unistd-tests (Files): Add it and tests/signature.h.
6482         (Depends-on): Add ansi-c++-opt.
6483         (Makefile.am): Arrange to compile and run test-unistd-c++.
6484         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
6485         gl_MODULE_INDICATOR.
6486
6487         Tests of module 'time' in C++ mode.
6488         * tests/test-time-c++.cc: New file.
6489         * modules/time-tests (Files): Add it and tests/signature.h.
6490         (Depends-on): Add ansi-c++-opt.
6491         (Makefile.am): Arrange to compile and run test-time-c++.
6492         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
6493
6494         Tests of module 'sys_time' in C++ mode.
6495         * tests/test-sys_time-c++.cc: New file.
6496         * modules/sys_time-tests (Files): Add it and tests/signature.h.
6497         (Depends-on): Add ansi-c++-opt.
6498         (Makefile.am): Arrange to compile and run test-sys_time-c++.
6499         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
6500         gl_MODULE_INDICATOR.
6501
6502         Tests of module 'sys_stat' in C++ mode.
6503         * tests/test-sys_stat-c++.cc: New file.
6504         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
6505         (Depends-on): Add ansi-c++-opt.
6506         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
6507         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
6508         gl_MODULE_INDICATOR.
6509
6510         Tests of module 'sys_socket' in C++ mode.
6511         * tests/test-sys_socket-c++.cc: New file.
6512         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
6513         (Depends-on): Add ansi-c++-opt.
6514         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
6515         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
6516         gl_MODULE_INDICATOR.
6517
6518         Tests of module 'sys_select' in C++ mode.
6519         * tests/test-sys_select-c++.cc: New file.
6520         * modules/sys_select-tests (Files): Add it and tests/signature.h.
6521         (Depends-on): Add ansi-c++-opt.
6522         (Makefile.am): Arrange to compile and run test-sys_select-c++.
6523         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
6524         gl_MODULE_INDICATOR.
6525
6526         Tests of module 'sys_ioctl' in C++ mode.
6527         * tests/test-sys_ioctl-c++.cc: New file.
6528         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
6529         (Depends-on): Add ansi-c++-opt.
6530         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
6531         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
6532         gl_MODULE_INDICATOR.
6533
6534         Tests of module 'string' in C++ mode.
6535         * tests/test-string-c++.cc: New file.
6536         * modules/string-tests (Files): Add it and tests/signature.h.
6537         (Depends-on): Add ansi-c++-opt.
6538         (Makefile.am): Arrange to compile and run test-string-c++.
6539         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
6540         gl_MODULE_INDICATOR.
6541
6542         Tests of module 'stdlib' in C++ mode.
6543         * tests/test-stdlib-c++.cc: New file.
6544         * modules/stdlib-tests (Files): Add it and tests/signature.h.
6545         (Depends-on): Add ansi-c++-opt.
6546         (Makefile.am): Arrange to compile and run test-stdlib-c++.
6547         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
6548         gl_MODULE_INDICATOR.
6549
6550         Tests of module 'stdio' in C++ mode.
6551         * tests/test-stdio-c++.cc: New file.
6552         * modules/stdio-tests (Files): Add it and tests/signature.h.
6553         (Depends-on): Add ansi-c++-opt.
6554         (Makefile.am): Arrange to compile and run test-stdio-c++.
6555         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
6556         gl_MODULE_INDICATOR.
6557
6558         Tests of module 'spawn' in C++ mode.
6559         * tests/test-spawn-c++.cc: New file.
6560         * modules/spawn-tests (Files): Add it and tests/signature.h.
6561         (Depends-on): Add ansi-c++-opt.
6562         (Makefile.am): Arrange to compile and run test-spawn-c++.
6563         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
6564         gl_MODULE_INDICATOR.
6565
6566         Tests of module 'signal' in C++ mode.
6567         * tests/test-signal-c++.cc: New file.
6568         * modules/signal-tests (Files): Add it and tests/signature.h.
6569         (Depends-on): Add ansi-c++-opt.
6570         (Makefile.am): Arrange to compile and run test-signal-c++.
6571         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
6572         gl_MODULE_INDICATOR.
6573
6574         Tests of module 'search' in C++ mode.
6575         * tests/test-search-c++.cc: New file.
6576         * modules/search-tests (Files): Add it and tests/signature.h.
6577         (Depends-on): Add ansi-c++-opt.
6578         (Makefile.am): Arrange to compile and run test-search-c++.
6579         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
6580         gl_MODULE_INDICATOR.
6581
6582         Tests of module 'math' in C++ mode.
6583         * tests/test-math-c++.cc: New file.
6584         * modules/math-tests (Files): Add it and tests/signature.h.
6585         (Depends-on): Add ansi-c++-opt.
6586         (Makefile.am): Arrange to compile and run test-math-c++.
6587         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
6588
6589         Tests of module 'locale' in C++ mode.
6590         * tests/test-locale-c++.cc: New file.
6591         * modules/locale-tests (Files): Add it and tests/signature.h.
6592         (Depends-on): Add ansi-c++-opt.
6593         (Makefile.am): Arrange to compile and run test-locale-c++.
6594         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
6595         gl_MODULE_INDICATOR.
6596
6597         Tests of module 'langinfo' in C++ mode.
6598         * tests/test-langinfo-c++.cc: New file.
6599         * modules/langinfo-tests (Files): Add it and tests/signature.h.
6600         (Depends-on): Add ansi-c++-opt.
6601         (Makefile.am): Arrange to compile and run test-langinfo-c++.
6602         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
6603         gl_MODULE_INDICATOR.
6604
6605         Tests of module 'iconv-h' in C++ mode.
6606         * tests/test-iconv-h-c++.cc: New file.
6607         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
6608         (Depends-on): Add ansi-c++-opt.
6609         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
6610
6611         Tests of module 'glob' in C++ mode.
6612         * tests/test-glob-c++.cc: New file.
6613         * modules/glob-tests (Files): Add it.
6614         (Depends-on): Add ansi-c++-opt.
6615         (Makefile.am): Arrange to compile and run test-glob-c++.
6616
6617         Tests of module 'fcntl-h' in C++ mode.
6618         * tests/test-fcntl-h-c++.cc: New file.
6619         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
6620         (Depends-on): Add ansi-c++-opt.
6621         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
6622         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
6623         gl_MODULE_INDICATOR.
6624
6625         Tests of module 'dirent' in C++ mode.
6626         * tests/test-dirent-c++.cc: New file.
6627         * modules/dirent-tests (Files): Add it and tests/signature.h.
6628         (Depends-on): Add ansi-c++-opt.
6629         (Makefile.am): Arrange to compile and run test-dirent-c++.
6630         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
6631         gl_MODULE_INDICATOR.
6632
6633         New module 'ansi-c++-opt'.
6634         * modules/ansi-c++-opt: New file.
6635         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
6636
6637         Document C++ namespace mode.
6638         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
6639
6640         wctype: Avoid #define replacements in C++ mode.
6641         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
6642         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
6643         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
6644         In C++, define a namespaced alias symbol.
6645         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
6646         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
6647         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
6648         rule.
6649
6650         wchar: Avoid #define replacements in C++ mode.
6651         * lib/wchar.in.h: Include c++defs.h.
6652         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
6653         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
6654         symbol.
6655         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
6656         * modules/wchar (Depends-on): Add c++defs.
6657         (Makefile.am): Update wchar.h rule.
6658
6659         unistd: Avoid #define replacements in C++ mode.
6660         * lib/unistd.in.h: Include c++defs.h.
6661         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
6662         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
6663         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
6664         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
6665         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
6666         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
6667         symbol.
6668         (environ): Update.
6669         * modules/unistd (Depends-on): Add c++defs.
6670         (Makefile.am): Update unistd.h rule.
6671
6672         time: Avoid #define replacements in C++ mode.
6673         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
6674         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
6675         define a namespaced alias symbol.
6676         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
6677         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
6678         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
6679         * modules/time (Depends-on): Add c++defs, warn-on-use.
6680         (Makefile.am): Update time.h rule.
6681         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
6682         * modules/nanosleep (configure.ac): Likewise.
6683         * modules/strptime (configure.ac): Likewise.
6684         * modules/timegm (configure.ac): Likewise.
6685
6686         sys_time: Avoid #define replacements in C++ mode.
6687         * lib/sys_time.in.h: Include c++defs.h.
6688         (gettimeofday): In C++, define a namespaced alias symbol.
6689         * modules/sys_time (Depends-on): Add c++defs.
6690         (Makefile.am): Update sys/time.h rule.
6691
6692         sys_stat: Avoid #define replacements in C++ mode.
6693         * lib/sys_stat.in.h: Include c++defs.h.
6694         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
6695         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
6696         namespaced alias symbol.
6697         In C++, define a namespaced alias symbol.
6698         * modules/sys_stat (Depends-on): Add c++defs.
6699         (Makefile.am): Update sys/stat.h rule.
6700
6701         sys_socket: Avoid #define replacements in C++ mode.
6702         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
6703         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
6704         definitions also when the system has a <sys/socket.h>.
6705         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
6706         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
6707         In C++, define a namespaced alias symbol.
6708         * modules/sys_socket (Depends-on): Add c++defs.
6709         (Makefile.am): Update sys/socket.h rule.
6710
6711         sys_select: Avoid #define replacements in C++ mode.
6712         * lib/sys_select.in.h: Include c++defs.h. Enable the function
6713         definitions also when the system has a <sys/select.h>.
6714         (select): In C++, define a namespaced alias symbol.
6715         * modules/sys_select (Depends-on): Add c++defs.
6716         (Makefile.am): Update sys/select.h rule.
6717
6718         sys_ioctl: Avoid #define replacements in C++ mode.
6719         * lib/sys_ioctl.in.h: Include c++defs.h.
6720         (ioctl): In C++, define a namespaced alias symbol.
6721         * modules/sys_ioctl (Depends-on): Add c++defs.
6722         (Makefile.am): Update sys/ioctl.h rule.
6723
6724         string: Avoid #define replacements in C++ mode.
6725         * lib/string.in.h: Include c++defs.h.
6726         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
6727         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
6728         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
6729         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
6730         strsignal, strverscmp): In C++, define a namespaced alias symbol.
6731         * modules/string (Depends-on): Add c++defs.
6732         (Makefile.am): Update string.h rule.
6733
6734         stdlib: Avoid #define replacements in C++ mode.
6735         * lib/stdlib.in.h: Include c++defs.h.
6736         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
6737         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
6738         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
6739         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
6740         symbol.
6741         * modules/stdlib (Depends-on): Add c++defs.
6742         (Makefile.am): Update stdlib.h rule.
6743
6744         stdio: Avoid #define replacements in C++ mode.
6745         * lib/stdio.in.h: Include c++defs.h.
6746         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
6747         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
6748         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
6749         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
6750         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
6751         namespaced alias symbol.
6752         * modules/stdio (Depends-on): Add c++defs.
6753         (Makefile.am): Update stdio.h rule.
6754
6755         spawn: Avoid #define replacements in C++ mode.
6756         * lib/spawn.in.h: Include c++defs.h.
6757         (posix_spawn, posix_spawnp, posix_spawnattr_init,
6758         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
6759         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
6760         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
6761         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
6762         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
6763         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
6764         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
6765         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
6766         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
6767         In C++, define a namespaced alias symbol.
6768         * modules/spawn (Depends-on): Add c++defs.
6769         (Makefile.am): Update spawn.h rule.
6770
6771         signal: Avoid #define replacements in C++ mode.
6772         * lib/signal.in.h: Include c++defs.h.
6773         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
6774         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
6775         namespaced alias symbol.
6776         * modules/signal (Depends-on): Add c++defs.
6777         (Makefile.am): Update signal.h rule.
6778
6779         search: Avoid #define replacements in C++ mode.
6780         * lib/search.in.h: Include c++defs.h.
6781         (_gl_search_compar_fn, _gl_search_action_fn): New types.
6782         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
6783         symbol.
6784         * modules/search (Depends-on): Add c++defs.
6785         (Makefile.am): Update search.h rule.
6786
6787         math: Avoid #define replacements in C++ mode.
6788         * lib/math.in.h: Include c++defs.h.
6789         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
6790         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
6791         trunc, truncl): In C++, define a namespaced alias symbol.
6792         * modules/math (Depends-on): Add c++defs.
6793         (Makefile.am): Update math.h rule.
6794
6795         locale: Avoid #define replacements in C++ mode.
6796         * lib/locale.in.h: Include c++defs.h.
6797         (duplocale): In C++, define a namespaced alias symbol.
6798         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
6799         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
6800         * modules/locale (Depends-on): Add c++defs.
6801         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
6802
6803         langinfo: Avoid #define replacements in C++ mode.
6804         * lib/langinfo.in.h: Include c++defs.h.
6805         (nl_langinfo): In C++, define a namespaced alias symbol.
6806         * modules/langinfo (Depends-on): Add c++defs.
6807         (Makefile.am): Update langinfo.h rule.
6808
6809         iconv-h: Avoid #define replacements in C++ mode.
6810         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
6811         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
6812         symbol.
6813         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
6814         whenever iconv is present.
6815         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
6816         (Makefile.am): Update iconv.h rule.
6817
6818         glob: Avoid #define replacements in C++ mode.
6819         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
6820         (_gl_glob_errfunc_fn): New type.
6821         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
6822         symbol.
6823         * modules/glob (Depends-on): Add c++defs, warn-on-use.
6824         (Makefile.am): Update glob.h rule.
6825
6826         fcntl-h: Avoid #define replacements in C++ mode.
6827         * lib/fcntl.in.h: Include c++defs.h.
6828         (fcntl, open, openat): In C++, define a namespaced alias symbol.
6829         * modules/fcntl-h (Depends-on): Add c++defs.
6830         (Makefile.am): Update fcntl.h rule.
6831
6832         dirent: Avoid #define replacements in C++ mode.
6833         * lib/dirent.in.h: Include c++defs.h.
6834         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
6835         namespaced alias symbol.
6836         (dirfd): Update declaration.
6837         * modules/dirent (Depends-on): Add c++defs.
6838         (Makefile.am): Update dirent.h rule.
6839
6840         ctype: Make it usable in C++ code.
6841         * lib/ctype.in.h: Include c++defs.h.
6842         (isblank): Declare as extern "C".
6843         * modules/ctype (Depends-on): Add c++defs.
6844         (Makefile.am): Update ctype.h rule.
6845
6846         New module 'c++defs'.
6847         * modules/c++defs: New file.
6848         * build-aux/c++defs.h: New file.
6849         Reported by John W. Eaton <jwe@gnu.org>.
6850
6851 2010-03-07  Bruno Haible  <bruno@clisp.org>
6852
6853         logb: Provide missing declaration for Cygwin.
6854         * lib/math.in.h (logb): New declaration.
6855         * m4/logb.m4: New file.
6856         * modules/logb (Files): Add m4/logb.m4.
6857         (Depends-on): Add math.
6858         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
6859         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
6860         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
6861         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
6862         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
6863
6864 2010-03-07  Bruno Haible  <bruno@clisp.org>
6865
6866         Fix test-cond link error.
6867         * tests/test-cond.c: Include <stdio.h>.
6868
6869 2010-03-07  Bruno Haible  <bruno@clisp.org>
6870
6871         Fix test-dirent-safer link error.
6872         * modules/dirent-safer-tests (Makefile.am): Define
6873         test_dirent_safer_LDADD.
6874
6875 2010-03-07  Bruno Haible  <bruno@clisp.org>
6876
6877         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
6878         among default module list.
6879
6880 2010-03-07  Bruno Haible  <bruno@clisp.org>
6881
6882         Fix link error on platforms with GNU libiconv.
6883         * modules/unistr/u8-strcoll-tests (Makefile): Define
6884         test_u8_strcoll_LDADD.
6885         * modules/unistr/u16-strcoll-tests (Makefile): Define
6886         test_u16_strcoll_LDADD.
6887         * modules/unistr/u32-strcoll-tests (Makefile): Define
6888         test_u32_strcoll_LDADD.
6889
6890 2010-03-07  Bruno Haible  <bruno@clisp.org>
6891
6892         Use POSIX declarations for socket functions.
6893         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
6894         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
6895         rpl_sendto): Change declaration to match POSIX.
6896         * lib/connect.c (rpl_connect): Likewise.
6897         * lib/accept.c (rpl_accept): Likewise.
6898         * lib/bind.c (rpl_bind): Likewise.
6899         * lib/getpeername.c (rpl_getpeername): Likewise.
6900         * lib/getsockname.c (rpl_getsockname): Likewise.
6901         * lib/recv.c (rpl_recv): Likewise.
6902         * lib/send.c (rpl_send): Likewise.
6903         * lib/recvfrom.c (rpl_recvfrom): Likewise.
6904         * lib/sendto.c (rpl_sendto): Likewise.
6905
6906 2010-03-06  Bruno Haible  <bruno@clisp.org>
6907
6908         Clarify access, euidaccess, faccessat.
6909         * doc/posix-functions/faccessat.texi: Mention security problem under
6910         "Other problems", not "Portability problems".
6911         * doc/posix-functions/access.texi: Likewise. Mention a related security
6912         problem.
6913         * doc/glibc-functions/euidaccess.texi: Mention security problems.
6914         * lib/euidaccess.c: Add comments about platforms.
6915         * lib/unistd.in.h (access, euidaccess): Add warnings.
6916
6917 2010-03-07  Bruno Haible  <bruno@clisp.org>
6918
6919         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
6920         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
6921         (POSIX_SPAWN_SETSCHEDULER): Likewise.
6922         (POSIX_SPAWN_USEVFORK): Define in a way that works when
6923         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
6924         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
6925         declare when POSIX_SPAWN_SETSCHEDULER is zero.
6926         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
6927         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
6928         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
6929         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
6930         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
6931         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
6932         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
6933         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
6934         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
6935         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
6936         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
6937         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
6938         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
6939         Likewise.
6940         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
6941         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
6942         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
6943         Likewise.
6944         * tests/test-spawn.c (main): Make it work when
6945         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
6946
6947 2010-03-07  Bruno Haible  <bruno@clisp.org>
6948
6949         Fix incorrect Makefile.am generation in German locale.
6950         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6951         Execute sed command with character range in C locale.
6952
6953 2010-03-06  Bruno Haible  <bruno@clisp.org>
6954
6955         Tests for module 'iconv-h'.
6956         * modules/iconv-h-tests: New file.
6957         * tests/test-iconv-h.c: New file.
6958
6959         New module 'iconv-h'.
6960         * modules/iconv-h: New file.
6961         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
6962         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
6963         (configure.ac): Remove gl_ICONV_H.
6964         (Makefile.am): Remove rule for iconv.h.
6965
6966 2010-03-06  Bruno Haible  <bruno@clisp.org>
6967
6968         More consistent naming of *.m4 files.
6969         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
6970         * modules/wctype (Files): Update.
6971
6972         More consistent naming of *.m4 files.
6973         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
6974         * modules/wchar (Files): Update.
6975
6976 2010-03-06  Jim Meyering  <meyering@redhat.com>
6977
6978         euidaccess: relax license to LGPLv2+
6979         * modules/euidaccess (License): Relax to LGPLv2+.
6980
6981 2010-03-06  Bruno Haible  <bruno@clisp.org>
6982
6983         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
6984         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
6985         (Makefile.am): Augment lib_SOURCES instead.
6986
6987 2010-03-04  Jim Meyering  <meyering@redhat.com>
6988
6989         utime: remove obsolete module
6990         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
6991         unnecessary for years, and has been marked as obsolete for 10 months.
6992         * modules/utime: Remove file.
6993         * lib/utime.c: Remove file.
6994         * m4/utime.m4: Remove file.
6995         * m4/utimes-null.m4: Remove file.
6996         * doc/posix-functions/utime.texi (utime): Remove reference to
6997         the module.  Move the sole "fixed by gnulib" item into the
6998         "problems not fixed by Gnulib" list.
6999         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
7000
7001 2010-03-05  Simon Josefsson  <simon@josefsson.org>
7002
7003         * modules/exit (License): Relax license to LGPLv2+.
7004         (Status): Mark as obsolete.
7005         * NEWS: Mention deprecated 'exit' module.
7006         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
7007         of now obsolete 'exit'.
7008
7009 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7010
7011         fts-lgpl: remove unused module
7012         * modules/fts-lgpl: Remove.
7013         * MODULES.html.sh (func_all_modules): Adjust.
7014         * check-module (find_included_lib_files): Adjust.
7015         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
7016
7017 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
7018
7019         copy-acl: enhance Solaris ACL error handling
7020         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
7021         * lib/set-mode-acl.c (qset_acl): Likewise.
7022
7023 2010-03-02  Bruno Haible  <bruno@clisp.org>
7024
7025         spawn: Don't override the system defined values on FreeBSD 8.
7026         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
7027         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
7028         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
7029         if HAVE_POSIX_SPAWN is 1.
7030         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
7031
7032 2010-03-01  Bruno Haible  <bruno@clisp.org>
7033
7034         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
7035         regarding Automake.
7036
7037 2010-02-25  Bruno Haible  <bruno@clisp.org>
7038
7039         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
7040         * gnulib-tool: Define 'echo' as a function only before the ksh alias
7041         setting, not afterwards.
7042         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
7043
7044 2010-02-24  Eric Blake  <eblake@redhat.com>
7045
7046         bootstrap, git-version-gen: use timestamp
7047         * build-aux/git-version-gen (scriptversion): Force UTC.
7048         * build-aux/bootstrap (scriptversion): New variable.
7049
7050         bootstrap: allow older git
7051         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
7052         older than 1.6.4.  Requested by the libvirt project.
7053
7054 2010-02-23  Eric Blake  <eblake@redhat.com>
7055
7056         warn-on-use: work with old autoconf
7057         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
7058         AS_VAR semantics of autoconf 2.60.
7059         Reported by Bruno Haible.
7060
7061         bootstrap: improve some comments
7062         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
7063         clarification comments.
7064
7065         gettimeofday: provide correct function
7066         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
7067         when replacement is declared, otherwise provide gettimeofday.
7068         Reported by Michael Goffioul.
7069
7070 2010-02-23  Jim Meyering  <meyering@redhat.com>
7071
7072         lib-ignore: relax license to "unlimited", not LGPLv2+
7073         * modules/lib-ignore (License): Relax to "unlimited".
7074
7075 2010-02-23  Jim Meyering  <meyering@redhat.com>
7076
7077         lib-ignore: relax license to LGPLv2+
7078         * modules/lib-ignore (License): Relax to LGPLv2+.
7079
7080 2010-02-22  Eric Blake  <eblake@redhat.com>
7081
7082         lseek: avoid bash 3.2 broken pipe bug
7083         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
7084         warning from bash 3.2.
7085         Reported by Ben Pfaff, with analysis from Bruno Haible.
7086
7087         bootstrap: support non-FSF copyright holder
7088         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
7089         bootstrap.conf override of COPYRIGHT_HOLDER.
7090         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
7091
7092         bootstrap: interoperate with gettext 0.14.1
7093         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
7094
7095         bootstrap: allow for alternate submodule location
7096         * build-aux/bootstrap (gnulib_path): New variable; use instead of
7097         hardcoding submodule location.
7098         (gnulib_mk): Allow direct use of Makefile.am.
7099
7100         bootstrap: use GNULIB_SRCDIR to reduce disk usage
7101         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
7102         rather than reconfiguring where the submodule points.
7103
7104         gettimeofday: restore support for platforms that lack function
7105         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
7106         replacement if function is missing.
7107         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
7108         * modules/sys_time (Makefile.am): Substitute it.
7109         * lib/sys_time.in.h (gettimeofday): Check it.
7110         Reported by Michael Goffioul.
7111
7112 2010-02-21  Bruno Haible  <bruno@clisp.org>
7113
7114         * lib/stdio.in.h (obstack_printf): Fix typo.
7115
7116 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
7117
7118         vc-list-files: use bzr ls's -R option
7119         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
7120         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
7121
7122 2010-02-21  Jim Meyering  <meyering@redhat.com>
7123
7124         init.sh: fix EXEEXT shims to work also for names like test-prog
7125         * tests/init.sh: Re-exec a better shell, when needed.
7126         If the current shell lacks support for posix $(...), an init.sh-using
7127         test will now try to find a shell that supports that.  If EXEEXT is
7128         nonempty, we also require support for hyphen-in-alias-name and shell
7129         substitutions like ${var#glob}.  Failure to find such a shell results
7130         in a skipped test.
7131
7132 2010-02-21  Bruno Haible  <bruno@clisp.org>
7133
7134         Really work around around "broken pipe" error message from bash 3.2.
7135         * gnulib-tool (func_reset_sigpipe): Remove function.
7136         (echo): In bash 3.2, define to a function that uses printf.
7137         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
7138
7139 2010-02-20  Bruno Haible  <bruno@clisp.org>
7140
7141         Restore support for automake 1.9.6 with autoconf 2.61.
7142         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
7143         Reported by James Youngman <jay@gnu.org>.
7144
7145 2010-02-20  Bruno Haible  <bruno@clisp.org>
7146
7147         Improve *printf warning condition.
7148         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
7149         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
7150         and the function is overridden due to SIGPIPE emulation.
7151
7152 2010-02-20  Bruno Haible  <bruno@clisp.org>
7153
7154         * lib/stdio.in.h: Tweak comments.
7155
7156 2010-02-19  Bruno Haible  <bruno@clisp.org>
7157
7158         Make it easier to find modules. New gnulib-tool option '--find'.
7159         * gnulib-tool: New option --find.
7160         (func_usage): Document it.
7161         (func_sanitize_modulelist): New function, extracted from
7162         func_all_modules.
7163         (func_all_modules): Invoke it.
7164         * doc/gnulib-tool.texi (Which modules?): New node.
7165
7166 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
7167
7168         * lib/sys_select.in.h: Provide select replacement even if
7169         sys/select.h exists on a system, for Interix.
7170
7171 2010-02-18  Jim Meyering  <meyering@redhat.com>
7172
7173         init.sh: don't use $(...) just yet
7174         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
7175         to accommodate e.g., Solaris' /bin/sh.
7176
7177 2010-02-17  Bruno Haible  <bruno@clisp.org>
7178
7179         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
7180         Reported by Ludovic Courtès <ludo@gnu.org>.
7181
7182 2010-02-16  Simon Josefsson  <simon@josefsson.org>
7183
7184         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
7185         linking with -lintl.
7186
7187 2010-02-17  Simon Josefsson  <simon@josefsson.org>
7188
7189         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
7190         if not provided by the system's netdb.h.  Reported by
7191         ludo@gnu.org (Ludovic Courtès).
7192
7193 2010-02-15  Jim Meyering  <meyering@redhat.com>
7194
7195         init.sh: improve portability and efficiency
7196         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
7197         "dummy" in a for loop.
7198         Use '!', not '^' to select the complement of a character set used
7199         in a "case" statement.
7200         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
7201         Suggestions from Eric Blake.
7202
7203         init.sh: automatically accommodate programs with the .exe suffix
7204         Automatically arrange for an invocation of "prog" to execute the
7205         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
7206         may use the simpler "prog", yet still work when built on a system
7207         that requires specifying the added suffix.
7208         Do this by constructing a function named "prog" that invokes
7209         "prog.exe" for each .exe file in selected directories.
7210         * tests/init.sh (find_exe_basenames_): New function.
7211         (create_exe_shim_functions_): New function.
7212         (path_prepend_): Use it.
7213
7214         maint.mk: mark syntax-check sc_*.m rules as .PHONY
7215         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
7216         "make -t syntax-check" doesn't create a ton of sc_*.m files.
7217
7218 2010-02-14  Jim Meyering  <meyering@redhat.com>
7219
7220         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
7221         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
7222         (sc_prohibit_hash_pjw_without_use): New rule.
7223
7224         maint.mk: allow the default upload destination dir to be overridden
7225         * top/maint.mk (upload_dest_dir_): Define with a default that
7226         preserves the status quo.
7227         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
7228         Reported by Peter Simons.
7229
7230         maint.mk: prohibit inclusion of "hash.h" without_use
7231         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
7232
7233 2010-02-10  Jim Meyering  <meyering@redhat.com>
7234
7235         maint.mk: prohibit inclusion of "ignore-value.h" without_use
7236         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
7237
7238 2010-02-09  Eric Blake  <ebb9@byu.net>
7239         and Bruno Haible  <bruno@clisp.org>
7240
7241         obstack-printf-posix: ensure declaration
7242         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
7243         extracted from gl_FUNC_OBSTACK_PRINTF.
7244         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
7245         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
7246         Likewise.
7247         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
7248         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
7249         0.
7250
7251 2010-02-08  Bruno Haible  <bruno@clisp.org>
7252
7253         gnulib-tool: Fix typo in 2010-02-07 commit.
7254         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
7255         Reported by Eric Blake.
7256
7257 2010-02-07  Bruno Haible  <bruno@clisp.org>
7258
7259         gnulib-tool: Fix up caching patches.
7260         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
7261         option --no-cache. Use associative arrays when supported by the shell.
7262         (sed_comments): New variable.
7263         (modcache): Renamed from do_cache.
7264         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
7265         abbreviate unnecessarily.
7266         (have_associative): New variable.
7267         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
7268         way also for ksh and zsh.
7269         (func_init_sed_convert_to_cache_statements): New function, extracted
7270         from func_cache_lookup_module. Add support for associative arrays.
7271         Don't set the c_MODULE_cached variable here. Ignore all lines before
7272         the first field header. Remove only the final newline, not all trailing
7273         newlines. Support empty fields correctly. Limit the use of 'eval' to
7274         assignments.
7275         (func_get_description, func_get_status, func_get_notice,
7276         func_get_applicability, func_get_filelist, func_get_dependencies,
7277         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
7278         func_get_automake_snippet, func_get_include_directive,
7279         func_get_link_directive, func_get_license, func_get_maintainer):
7280         Update documentation. List the unoptimized code first. Add support for
7281         associative arrays. Limit the use of 'eval' to assignments.
7282         (func_get_applicability): Undo stylistic pessimisations.
7283         (func_get_automake_snippet, func_get_include_directive): Reduce code
7284         duplication.
7285         (func_modules_transitive_closure, func_modules_add_dummy,
7286         func_modules_notice, func_modules_to_filelist, func_add_file,
7287         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
7288         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
7289         func_create_testdir, func_create_megatestdir): Update documentation.
7290
7291 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7292
7293         * gnulib-tool (func_cache_lookup_module): Store the module name
7294         belonging to the cache variable; error out if two different
7295         module names map to the same cache variable name.
7296
7297 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7298
7299         gnulib-tool: Make caching optional.
7300         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
7301         Update matching short versions of --no-changelog.
7302         (func_usage): Update.
7303         (sed_extract_cache_prog): Renamed from ...
7304         (sed_extract_prog): ... this; revert to old extraction script.
7305         (func_get_description, func_get_status)
7306         (func_get_notice, func_get_applicability, func_get_filelist)
7307         (func_get_dependencies, func_get_autoconf_early_snippet)
7308         (func_get_autoconf_snippet, func_get_automake_snippet)
7309         (func_get_include_directive, func_get_link_directive)
7310         (func_get_license, func_get_maintainer): If $do_cache is false,
7311         use old, non-caching extraction scripts.
7312         Suggestion by Bruno Haible.
7313
7314 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7315
7316         gnulib-tool: cache module metainformation.
7317         * gnulib-tool (sed_extract_prog): Match newline before each
7318         header, and rewrite header to a shell variable suffix.
7319         (func_cache_var, func_cache_lookup_module): New functions,
7320         to turn a module name into a cache variable prefix, and to
7321         look up and cache module metainformation.
7322         (func_get_description, func_get_status)
7323         (func_get_notice, func_get_applicability, func_get_filelist)
7324         (func_get_dependencies, func_get_autoconf_early_snippet)
7325         (func_get_autoconf_snippet, func_get_automake_snippet)
7326         (func_get_include_directive, func_get_link_directive)
7327         (func_get_license, func_get_maintainer): Use
7328         func_cache_lookup_module.
7329
7330 2010-02-07  Bruno Haible  <bruno@clisp.org>
7331
7332         fnctl: Fix missing dependency.
7333         * modules/fcntl (Depends-on): Add getdtablesize.
7334         Reported by John W. Eaton <jwe@gnu.org>.
7335
7336 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
7337
7338         Argp: fix recognition of short alias options.
7339
7340         * lib/argp-parse.c (convert_options): Fix improper use of
7341         `|' between character values.
7342         * tests/test-argp.c (group1_option): New alias option
7343         --read (-r).
7344         (group1_parser): Special handling for 'r'.
7345         (test15): New test case.
7346         (test_fun): Add test15.
7347         * tests/test-argp-2.sh: Update expected --help and --usage
7348         outputs.
7349
7350 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
7351
7352         * tests/test-argp.c: Fix indentation.
7353
7354 2010-02-04  Eric Blake  <ebb9@byu.net>
7355
7356         gettimeofday: expose type of second argument
7357         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
7358         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
7359         * tests/test-gettimeofday.c: Use it to silence warning.
7360         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
7361         the issue.
7362
7363 2010-02-03  Jim Meyering  <meyering@redhat.com>
7364
7365         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
7366         * lib/regcomp.c (TYPE_SIGNED): Define.
7367         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
7368
7369         regcomp.c: avoid a new -Wshadow warning
7370         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
7371
7372 2010-02-01  Jim Meyering  <meyering@redhat.com>
7373
7374         removing useless parentheses in cpp #define directives
7375         For motivation, see commit c0221df4, "define STREQ(a,b)
7376         consistently, removing useless parentheses"
7377         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
7378         * lib/mountlist.c (MNT_IGNORE): Likewise.
7379         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
7380
7381 2010-02-01  Eric Blake  <ebb9@byu.net>
7382
7383         sys_time: use link-warning
7384         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
7385         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
7386         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
7387         * modules/sys_time (Depends-on): Add warn-on-use.
7388         (Makefile.am): Always build replacement.
7389         (configure.ac): Update substitutions.
7390         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
7391         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
7392         bother with SYS_TIME_H.
7393         * modules/gettimeofday (configure.ac): Declare indicator.
7394         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
7395         in use.
7396
7397         closein-tests: silence compiler warning
7398         * tests/test-closein.c (main): Ignore fread result.
7399         * modules/closein-tests (Depends-on): Add ignore-value.
7400
7401         tests: silence warning about system return
7402         * tests/test-areadlink-with-size.c (main): Ignore system result.
7403         * tests/test-areadlink.c (main): Likewise.
7404         * tests/test-areadlinkat-with-size.c (main): Likewise.
7405         * tests/test-areadlinkat.c (main): Likewise.
7406         * tests/test-canonicalize-lgpl.c (main): Likewise.
7407         * tests/test-canonicalize.c (main): Likewise.
7408         * tests/test-chown.c (main): Likewise.
7409         * tests/test-fchownat.c (main): Likewise.
7410         * tests/test-fdutimensat.c (main): Likewise.
7411         * tests/test-fstatat.c (main): Likewise.
7412         * tests/test-futimens.c (main): Likewise.
7413         * tests/test-lchown.c (main): Likewise.
7414         * tests/test-link.c (main): Likewise.
7415         * tests/test-linkat.c (main): Likewise.
7416         * tests/test-lstat.c (main): Likewise.
7417         * tests/test-mkdir.c (main): Likewise.
7418         * tests/test-mkdirat.c (main): Likewise.
7419         * tests/test-mkfifo.c (main): Likewise.
7420         * tests/test-mkfifoat.c (main): Likewise.
7421         * tests/test-mknod.c (main): Likewise.
7422         * tests/test-readlink.c (main): Likewise.
7423         * tests/test-remove.c (main): Likewise.
7424         * tests/test-rename.c (main): Likewise.
7425         * tests/test-renameat.c (main): Likewise.
7426         * tests/test-rmdir.c (main): Likewise.
7427         * tests/test-symlink.c (main): Likewise.
7428         * tests/test-symlinkat.c (main): Likewise.
7429         * tests/test-unlink.c (main): Likewise.
7430         * tests/test-unlinkat.c (main): Likewise.
7431         * tests/test-utimens.c (main): Likewise.
7432         * tests/test-utimensat.c (main): Likewise.
7433         * modules/areadlink-tests (Depends-on): Add ignore-value.
7434         * modules/areadlink-with-size-tests (Depends-on): Likewise.
7435         * modules/areadlinkat-tests (Depends-on): Likewise.
7436         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
7437         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
7438         * modules/canonicalize-tests (Depends-on): Likewise.
7439         * modules/chown-tests (Depends-on): Likewise.
7440         * modules/fdutimensat-tests (Depends-on): Likewise.
7441         * modules/futimens-tests (Depends-on): Likewise.
7442         * modules/lchown-tests (Depends-on): Likewise.
7443         * modules/link-tests (Depends-on): Likewise.
7444         * modules/linkat-tests (Depends-on): Likewise.
7445         * modules/lstat-tests (Depends-on): Likewise.
7446         * modules/mkdir-tests (Depends-on): Likewise.
7447         * modules/mkfifo-tests (Depends-on): Likewise.
7448         * modules/mkfifoat-tests (Depends-on): Likewise.
7449         * modules/mknod-tests (Depends-on): Likewise.
7450         * modules/openat-tests (Depends-on): Likewise.
7451         * modules/readlink-tests (Depends-on): Likewise.
7452         * modules/remove-tests (Depends-on): Likewise.
7453         * modules/rename-tests (Depends-on): Likewise.
7454         * modules/renameat-tests (Depends-on): Likewise.
7455         * modules/rmdir-tests (Depends-on): Likewise.
7456         * modules/symlink-tests (Depends-on): Likewise.
7457         * modules/symlinkat-tests (Depends-on): Likewise.
7458         * modules/unlink-tests (Depends-on): Likewise.
7459         * modules/utimens-tests (Depends-on): Likewise.
7460         * modules/utimensat-tests (Depends-on): Likewise.
7461
7462 2010-01-31  Bruno Haible  <bruno@clisp.org>
7463
7464         Perform the same test for many <math.h> functions.
7465         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
7466         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
7467         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
7468         of gl_MATHFUNC.
7469         * modules/acos (configure.ac): Likewise.
7470         * modules/asin (configure.ac): Likewise.
7471         * modules/atan (configure.ac): Likewise.
7472         * modules/atan2 (configure.ac): Likewise.
7473         * modules/cbrt (configure.ac): Likewise.
7474         * modules/copysign (configure.ac): Likewise.
7475         * modules/cos (configure.ac): Likewise.
7476         * modules/cosh (configure.ac): Likewise.
7477         * modules/erf (configure.ac): Likewise.
7478         * modules/erfc (configure.ac): Likewise.
7479         * modules/exp (configure.ac): Likewise.
7480         * modules/fmod (configure.ac): Likewise.
7481         * modules/hypot (configure.ac): Likewise.
7482         * modules/j0 (configure.ac): Likewise.
7483         * modules/j1 (configure.ac): Likewise.
7484         * modules/jn (configure.ac): Likewise.
7485         * modules/lgamma (configure.ac): Likewise.
7486         * modules/log (configure.ac): Likewise.
7487         * modules/log10 (configure.ac): Likewise.
7488         * modules/log1p (configure.ac): Likewise.
7489         * modules/pow (configure.ac): Likewise.
7490         * modules/remainder (configure.ac): Likewise.
7491         * modules/sin (configure.ac): Likewise.
7492         * modules/sinh (configure.ac): Likewise.
7493         * modules/tan (configure.ac): Likewise.
7494         * modules/tanh (configure.ac): Likewise.
7495         * modules/y0 (configure.ac): Likewise.
7496         * modules/y1 (configure.ac): Likewise.
7497         * modules/yn (configure.ac): Likewise.
7498         Suggested by Paolo Bonzini.
7499
7500 2010-01-31  Bruno Haible  <bruno@clisp.org>
7501
7502         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
7503
7504 2010-01-31  Bruno Haible  <bruno@clisp.org>
7505
7506         Work around getdelim() bug on FreeBSD 8.0.
7507         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
7508         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
7509         not work.
7510         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
7511         is 1.
7512         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
7513         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
7514         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
7515         a non-zero size.
7516         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
7517
7518 2010-01-31  Bruno Haible  <bruno@clisp.org>
7519
7520         Work around getline() bug on FreeBSD 8.0.
7521         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
7522         and a non-zero size.
7523         * tests/test-getline.c (main): Likewise.
7524         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
7525         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
7526
7527 2010-01-28  Eric Blake  <ebb9@byu.net>
7528
7529         regex: fix build failure
7530         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
7531         platforms.
7532
7533 2010-01-28  Jim Meyering  <meyering@redhat.com>
7534
7535         regex: do not ignore memory allocation failure
7536         * lib/regex_internal.c (create_cd_newstate): Detect
7537         re_node_set_init_copy failure.   Extracted from glibc commit
7538         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
7539
7540         regex: sync more white-space changes from libc
7541         * lib/regex_internal.c: White-space only changes.
7542         * lib/regexec.c: Likewise.
7543
7544         regex: add many uses of __attribute_warn_unused_result__
7545         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
7546         * lib/regexec.c: Likewise.
7547         Extracted from a messy glibc commit.
7548
7549         regcomp.c: spelling and merge-artifact from glibc
7550         * lib/regcomp.c: Merge remainder of glibc's
7551         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
7552
7553         regcomp.c: sync white-space changes from glibc
7554         * lib/regcomp.c: Merge to accommodate white space
7555         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
7556
7557         regcomp.c: do not ignore internal return values
7558         * lib/regcomp.c: Do not ignore internal return values.
7559         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
7560         but without its white-space changes and spelling fixes.
7561
7562         regex_internal.h: define __attribute_warn_unused_result__
7563         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
7564
7565         maint: add a syntax-check rule to check for vulnerable Makefile.in
7566         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
7567
7568 2010-01-27  Jim Meyering  <meyering@redhat.com>
7569
7570         ncftpput-ftp: clean up spaces
7571         * build-aux/ncftpput-ftp: Make Copyright line consistent.
7572         Remove trailing blanks.
7573
7574 2010-01-27  Simon Josefsson  <simon@josefsson.org>
7575
7576         * build-aux/git-version-gen: Fix copyright statement.
7577         * build-aux/gnupload: Likewise.
7578         * tests/test-arcfour.c: Likewise.
7579         * tests/test-arctwo.c: Likewise.
7580         * tests/test-count-one-bits.c: Likewise.
7581         * tests/test-crc.c: Likewise.
7582         * tests/test-des.c: Likewise.
7583         * tests/test-gc-arcfour.c: Likewise.
7584         * tests/test-gc-arctwo.c: Likewise.
7585         * tests/test-gc-des.c: Likewise.
7586         * tests/test-gc-hmac-md5.c: Likewise.
7587         * tests/test-gc-hmac-sha1.c: Likewise.
7588         * tests/test-gc-md2.c: Likewise.
7589         * tests/test-gc-md4.c: Likewise.
7590         * tests/test-gc-md5.c: Likewise.
7591         * tests/test-gc-pbkdf2-sha1.c: Likewise.
7592         * tests/test-gc-rijndael.c: Likewise.
7593         * tests/test-gc-sha1.c: Likewise.
7594         * tests/test-gc.c: Likewise.
7595         * tests/test-gethostname.c: Likewise.
7596         * tests/test-gettimeofday.c: Likewise.
7597         * tests/test-hash.c: Likewise.
7598         * tests/test-hmac-md5.c: Likewise.
7599         * tests/test-hmac-sha1.c: Likewise.
7600         * tests/test-md2.c: Likewise.
7601         * tests/test-md4.c: Likewise.
7602         * tests/test-md5.c: Likewise.
7603         * tests/test-memchr.c: Likewise.
7604         * tests/test-memchr2.c: Likewise.
7605         * tests/test-memcmp.c: Likewise.
7606         * tests/test-memmem.c: Likewise.
7607         * tests/test-memrchr.c: Likewise.
7608         * tests/test-rawmemchr.c: Likewise.
7609         * tests/test-read-file.c: Likewise.
7610         * tests/test-rijndael.c: Likewise.
7611         * tests/test-sockets.c: Likewise.
7612         * tests/test-strchrnul.c: Likewise.
7613         * tests/test-strstr.c: Likewise.
7614         * tests/test-strtod.c: Likewise.
7615         * build-aux/ncftpput-ftp: Likewise.
7616
7617 2010-01-26  Eric Blake  <ebb9@byu.net>
7618
7619         ignore-value: update recommended header name
7620         * modules/ignore-value (Include): Only use <> for headers that
7621         exist in glibc.
7622
7623 2010-01-26  Jim Meyering  <meyering@redhat.com>
7624
7625         test-userspec.c: avoid compiler warnings
7626         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
7627         and "initialization discards qualifiers..." warnings.
7628         Put the first "uid" in its own scope, and make char* members "const".
7629
7630 2010-01-25  Bruno Haible  <bruno@clisp.org>
7631
7632         gnulib-tool: Make warning diagnostics consistent.
7633         * gnulib-tool (func_warning): New function.
7634         Use it everywhere where gnulib-tool produces output to stderr and it is
7635         not a fatal error.
7636
7637 2010-01-25  Bruno Haible  <bruno@clisp.org>
7638
7639         Fix test dependencies.
7640         * modules/xstrtol-tests (Depends-on): Add inttypes.
7641         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
7642
7643 2010-01-25 Pádraig Brady <P@draigBrady.com>
7644
7645         syntax-check: detect incorrect boolean macro values in config.h
7646         * modules/maintainer-makefile (configure.ac): Parameterize the location
7647         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
7648         The logic is from Eric Blake and the location indicated by Jim Meyering.
7649         Note the more natural CONFIG_HEADER name is prohibited by automake
7650         for backwards compatibility reasons.
7651         * top/maint.mk (sc_Wundef_boolean): New rule.
7652
7653 2010-01-25  Jim Meyering  <meyering@redhat.com>
7654
7655         bootstrap: detect MacOS 10.6's shasum, too
7656         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
7657         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
7658
7659 2010-01-23  Jim Meyering  <meyering@redhat.com>
7660
7661         xstrtoll: new module
7662         * modules/xstrtoll: New file.
7663         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
7664         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
7665         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
7666         ./configure fails if you use this module and lack "long long".
7667         * modules/xstrtoll-tests: New module.
7668         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
7669         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
7670         new init.sh-based test framework.
7671
7672 2010-01-24  Bruno Haible  <bruno@clisp.org>
7673
7674         Tests for module 'yn'.
7675         * modules/yn-tests: New file.
7676         * tests/test-yn.c: New file.
7677
7678         Tests for module 'y1'.
7679         * modules/y1-tests: New file.
7680         * tests/test-y1.c: New file.
7681
7682         Tests for module 'y0'.
7683         * modules/y0-tests: New file.
7684         * tests/test-y0.c: New file.
7685
7686         Tests for module 'tanh'.
7687         * modules/tanh-tests: New file.
7688         * tests/test-tanh.c: New file.
7689
7690         Tests for module 'tan'.
7691         * modules/tan-tests: New file.
7692         * tests/test-tan.c: New file.
7693
7694         Tests for module 'sqrt'.
7695         * modules/sqrt-tests: New file.
7696         * tests/test-sqrt.c: New file.
7697
7698         Tests for module 'sinh'.
7699         * modules/sinh-tests: New file.
7700         * tests/test-sinh.c: New file.
7701
7702         Tests for module 'sin'.
7703         * modules/sin-tests: New file.
7704         * tests/test-sin.c: New file.
7705
7706         Tests for module 'rint'.
7707         * modules/rint-tests: New file.
7708         * tests/test-rint.c: New file.
7709
7710         Tests for module 'remainder'.
7711         * modules/remainder-tests: New file.
7712         * tests/test-remainder.c: New file.
7713
7714         Tests for module 'pow'.
7715         * modules/pow-tests: New file.
7716         * tests/test-pow.c: New file.
7717
7718         Tests for module 'nextafter'.
7719         * modules/nextafter-tests: New file.
7720         * tests/test-nextafter.c: New file.
7721
7722         Tests for module 'modf'.
7723         * modules/modf-tests: New file.
7724         * tests/test-modf.c: New file.
7725
7726         Tests for module 'logb'.
7727         * modules/logb-tests: New file.
7728         * tests/test-logb.c: New file.
7729
7730         Tests for module 'log1p'.
7731         * modules/log1p-tests: New file.
7732         * tests/test-log1p.c: New file.
7733
7734         Tests for module 'log10'.
7735         * modules/log10-tests: New file.
7736         * tests/test-log10.c: New file.
7737
7738         Tests for module 'log'.
7739         * modules/log-tests: New file.
7740         * tests/test-log.c: New file.
7741
7742         Tests for module 'lgamma'.
7743         * modules/lgamma-tests: New file.
7744         * tests/test-lgamma.c: New file.
7745
7746         Tests for module 'ldexp'.
7747         * modules/ldexp-tests: New file.
7748         * tests/test-ldexp.c: New file.
7749
7750         Tests for module 'jn'.
7751         * modules/jn-tests: New file.
7752         * tests/test-jn.c: New file.
7753
7754         Tests for module 'j1'.
7755         * modules/j1-tests: New file.
7756         * tests/test-j1.c: New file.
7757
7758         Tests for module 'j0'.
7759         * modules/j0-tests: New file.
7760         * tests/test-j0.c: New file.
7761
7762         Tests for module 'hypot'.
7763         * modules/hypot-tests: New file.
7764         * tests/test-hypot.c: New file.
7765
7766         Tests for module 'fmod'.
7767         * modules/fmod-tests: New file.
7768         * tests/test-fmod.c: New file.
7769
7770         Tests for module 'fabs'.
7771         * modules/fabs-tests: New file.
7772         * tests/test-fabs.c: New file.
7773
7774         Tests for module 'exp'.
7775         * modules/exp-tests: New file.
7776         * tests/test-exp.c: New file.
7777
7778         Tests for module 'erfc'.
7779         * modules/erfc-tests: New file.
7780         * tests/test-erfc.c: New file.
7781
7782         Tests for module 'erf'.
7783         * modules/erf-tests: New file.
7784         * tests/test-erf.c: New file.
7785
7786         Tests for module 'cosh'.
7787         * modules/cosh-tests: New file.
7788         * tests/test-cosh.c: New file.
7789
7790         Tests for module 'cos'.
7791         * modules/cos-tests: New file.
7792         * tests/test-cos.c: New file.
7793
7794         Tests for module 'copysign'.
7795         * modules/copysign-tests: New file.
7796         * tests/test-copysign.c: New file.
7797
7798         Tests for module 'cbrt'.
7799         * modules/cbrt-tests: New file.
7800         * tests/test-cbrt.c: New file.
7801
7802         Tests for module 'atan2'.
7803         * modules/atan2-tests: New file.
7804         * tests/test-atan2.c: New file.
7805
7806         Tests for module 'atan'.
7807         * modules/atan-tests: New file.
7808         * tests/test-atan.c: New file.
7809
7810         Tests for module 'asin'.
7811         * modules/asin-tests: New file.
7812         * tests/test-asin.c: New file.
7813
7814         Tests for module 'acos'.
7815         * modules/acos-tests: New file.
7816         * tests/test-acos.c: New file.
7817
7818 2010-01-24  Bruno Haible  <bruno@clisp.org>
7819
7820         Fix tests for common <math.h> functions.
7821         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
7822         code snippet that references the function pointer, rather than merely
7823         calling the function. Substitute the FUNC_LIBM variable.
7824         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
7825         * modules/acos (configure.ac): Likewise.
7826         * modules/asin (configure.ac): Likewise.
7827         * modules/atan (configure.ac): Likewise.
7828         * modules/atan2 (configure.ac): Likewise.
7829         * modules/cbrt (configure.ac): Likewise.
7830         * modules/copysign (configure.ac): Likewise.
7831         * modules/cos (configure.ac): Likewise.
7832         * modules/cosh (configure.ac): Likewise.
7833         * modules/erf (configure.ac): Likewise.
7834         * modules/erfc (configure.ac): Likewise.
7835         * modules/exp (configure.ac): Likewise.
7836         * modules/fabs (configure.ac): Likewise.
7837         * modules/fmod (configure.ac): Likewise.
7838         * modules/hypot (configure.ac): Likewise.
7839         * modules/j0 (configure.ac): Likewise.
7840         * modules/j1 (configure.ac): Likewise.
7841         * modules/jn (configure.ac): Likewise.
7842         * modules/ldexp (configure.ac): Likewise.
7843         * modules/lgamma (configure.ac): Likewise.
7844         * modules/log (configure.ac): Likewise.
7845         * modules/log10 (configure.ac): Likewise.
7846         * modules/log1p (configure.ac): Likewise.
7847         * modules/logb (configure.ac): Likewise.
7848         * modules/modf (configure.ac): Likewise.
7849         * modules/nextafter (configure.ac): Likewise.
7850         * modules/pow (configure.ac): Likewise.
7851         * modules/remainder (configure.ac): Likewise.
7852         * modules/rint (configure.ac): Likewise.
7853         * modules/sin (configure.ac): Likewise.
7854         * modules/sinh (configure.ac): Likewise.
7855         * modules/tan (configure.ac): Likewise.
7856         * modules/tanh (configure.ac): Likewise.
7857         * modules/y0 (configure.ac): Likewise.
7858         * modules/y1 (configure.ac): Likewise.
7859         * modules/yn (configure.ac): Likewise.
7860
7861 2010-01-24  Bruno Haible  <bruno@clisp.org>
7862
7863         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
7864         * tests/test-acosl.c (x): New variable.
7865         (main): Store argument in x and fetch it from x.
7866         * tests/test-asinl.c (x): New variable.
7867         (main): Store argument in x and fetch it from x.
7868         * tests/test-atanl.c (x): New variable.
7869         (main): Store argument in x and fetch it from x.
7870         * tests/test-cosl.c (x): New variable.
7871         (main): Store argument in x and fetch it from x.
7872         * tests/test-expl.c (x): New variable.
7873         (main): Store argument in x and fetch it from x.
7874         * tests/test-logl.c (x): New variable.
7875         (main): Store argument in x and fetch it from x.
7876         * tests/test-sinl.c (x): New variable.
7877         (main): Store argument in x and fetch it from x.
7878         * tests/test-sqrtl.c (x): New variable.
7879         (main): Store argument in x and fetch it from x.
7880         * tests/test-tanl.c (x): New variable.
7881         (main): Store argument in x and fetch it from x.
7882
7883 2010-01-24  Bruno Haible  <bruno@clisp.org>
7884
7885         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
7886         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
7887         assignments to the initial TESTS_ENVIRONMENT.
7888         * doc/gnulib.texi (Unit test modules): Document it.
7889         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
7890         TESTS_ENVIRONMENT.
7891         * modules/btowc-tests (Makefile.am): Likewise.
7892         * modules/c-stack-tests (Makefile.am): Likewise.
7893         * modules/c-strcase-tests (Makefile.am): Likewise.
7894         * modules/copy-file-tests (Makefile.am): Likewise.
7895         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
7896         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
7897         * modules/mbrtowc-tests (Makefile.am): Likewise.
7898         * modules/mbscasecmp-tests (Makefile.am): Likewise.
7899         * modules/mbscasestr-tests (Makefile.am): Likewise.
7900         * modules/mbschr-tests (Makefile.am): Likewise.
7901         * modules/mbscspn-tests (Makefile.am): Likewise.
7902         * modules/mbsinit-tests (Makefile.am): Likewise.
7903         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
7904         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
7905         * modules/mbspbrk-tests (Makefile.am): Likewise.
7906         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
7907         * modules/mbsrchr-tests (Makefile.am): Likewise.
7908         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
7909         * modules/mbsspn-tests (Makefile.am): Likewise.
7910         * modules/mbsstr-tests (Makefile.am): Likewise.
7911         * modules/nl_langinfo-tests (Makefile.am): Likewise.
7912         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
7913         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
7914         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
7915         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
7916         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
7917         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
7918         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
7919         * modules/wcrtomb-tests (Makefile.am): Likewise.
7920         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
7921         * modules/wcsrtombs-tests (Makefile.am): Likewise.
7922         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
7923         assignments from TESTS_ENVIRONMENT.
7924         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
7925         augmentation.
7926         * modules/argp-version-etc-tests (Makefile.am): Likewise.
7927         * modules/atexit-tests (Makefile.am): Likewise.
7928         * modules/binary-io-tests (Makefile.am): Likewise.
7929         * modules/closein-tests (Makefile.am): Likewise.
7930         * modules/dprintf-posix-tests (Makefile.am): Likewise.
7931         * modules/exclude-tests (Makefile.am): Likewise.
7932         * modules/fflush-tests (Makefile.am): Likewise.
7933         * modules/fpending-tests (Makefile.am): Likewise.
7934         * modules/fprintf-posix-tests (Makefile.am): Likewise.
7935         * modules/freadahead-tests (Makefile.am): Likewise.
7936         * modules/freadptr-tests (Makefile.am): Likewise.
7937         * modules/freadseek-tests (Makefile.am): Likewise.
7938         * modules/fseek-tests (Makefile.am): Likewise.
7939         * modules/fseeko-tests (Makefile.am): Likewise.
7940         * modules/ftell-tests (Makefile.am): Likewise.
7941         * modules/ftello-tests (Makefile.am): Likewise.
7942         * modules/idpriv-drop-tests (Makefile.am): Likewise.
7943         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
7944         * modules/lseek-tests (Makefile.am): Likewise.
7945         * modules/parse-duration-tests (Makefile.am): Likewise.
7946         * modules/perror-tests (Makefile.am): Likewise.
7947         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
7948         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
7949         * modules/pipe-tests (Makefile.am): Likewise.
7950         * modules/pread-tests (Makefile.am): Likewise.
7951         * modules/printf-posix-tests (Makefile.am): Likewise.
7952         * modules/select-tests (Makefile.am): Likewise.
7953         * modules/sigpipe-tests (Makefile.am): Likewise.
7954         * modules/tsearch-tests (Makefile.am): Likewise.
7955         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
7956         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
7957         * modules/uniname/uniname-tests (Makefile.am): Likewise.
7958         * modules/uniwidth/width-tests (Makefile.am): Likewise.
7959         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
7960         * modules/version-etc-tests (Makefile.am): Likewise.
7961         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
7962         * modules/vprintf-posix-tests (Makefile.am): Likewise.
7963         * modules/xalloc-die-tests (Makefile.am): Likewise.
7964         * modules/xprintf-posix-tests (Makefile.am): Likewise.
7965         * modules/xstrtoimax-tests (Makefile.am): Likewise.
7966         * modules/xstrtol-tests (Makefile.am): Likewise.
7967         * modules/xstrtoumax-tests (Makefile.am): Likewise.
7968         * modules/yesno-tests (Makefile.am): Likewise.
7969         Suggested by Jim Meyering.
7970
7971 2010-01-24  Bruno Haible  <bruno@clisp.org>
7972
7973         More documentation.
7974         * doc/gnulib.texi (Writing modules): New chapter.
7975         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
7976         the new chapter.
7977
7978 2010-01-24  Jim Meyering  <meyering@redhat.com>
7979
7980         maint.mk: do not prepend "./" after filtering
7981         * top/maint.mk (_prepend_srcdir_prefix): New variable
7982         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
7983         "./" when $(srcdir) is ".".
7984
7985         define STREQ(a,b) consistently, removing useless parentheses
7986         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
7987         since the only risk is that "a" or "b" contains an unparenthesized
7988         comma, but if either did that, STREQ would have 3 or more arguments.
7989         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
7990         * lib/fts.c (STREQ): Remove unnecessary parentheses.
7991         * lib/hash-triple.c (STREQ): Likewise.
7992         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
7993         * lib/getugroups.c (STREQ): Likewise.
7994
7995 2010-01-23  Jim Meyering  <meyering@redhat.com>
7996
7997         maint.mk: fix syntax-check in a non-srcdir build directory
7998         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
7999         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
8000
8001 2010-01-22  Jim Meyering  <meyering@redhat.com>
8002
8003         userspec: add unit tests
8004         * tests/test-userspec.c: New file.
8005         * modules/userspec-tests: Likewise.
8006
8007 2010-01-21  Jim Meyering  <meyering@redhat.com>
8008
8009         maint.mk: handle source file names containing "." robustly
8010         * top/maint.mk (_dot_escaped_srcdir): Define.
8011         (VC_LIST): Use it in LHS of sed substitution.
8012
8013 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
8014
8015         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
8016         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
8017         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
8018         from a non-srcdir build.
8019
8020 2010-01-20  Eric Blake  <ebb9@byu.net>
8021
8022         warn-on-use: use instead of link-warning
8023         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
8024         * modules/unistd (Depends-on, Makefile.am): Likewise.
8025         * modules/arpa_inet (Depends-on): Replace link-warning with
8026         warn-on-use.
8027         (Makefile.am): Update rules accordingly.
8028         * modules/ctype (Depends-on, Makefile.am): Likewise.
8029         * modules/dirent (Depends-on, Makefile.am): Likewise.
8030         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
8031         * modules/inttypes (Depends-on, Makefile.am): Likewise.
8032         * modules/langinfo (Depends-on, Makefile.am): Likewise.
8033         * modules/locale (Depends-on, Makefile.am): Likewise.
8034         * modules/math (Depends-on, Makefile.am): Likewise.
8035         * modules/search (Depends-on, Makefile.am): Likewise.
8036         * modules/signal (Depends-on, Makefile.am): Likewise.
8037         * modules/spawn (Depends-on, Makefile.am): Likewise.
8038         * modules/stdlib (Depends-on, Makefile.am): Likewise.
8039         * modules/string (Depends-on, Makefile.am): Likewise.
8040         * modules/strings (Depends-on, Makefile.am): Likewise.
8041         * modules/sys_file (Depends-on, Makefile.am): Likewise.
8042         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
8043         * modules/sys_select (Depends-on, Makefile.am): Likewise.
8044         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
8045         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
8046         * modules/sys_times (Depends-on, Makefile.am): Likewise.
8047         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
8048         * modules/wchar (Depends-on, Makefile.am): Likewise.
8049         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
8050         should be poisoned.
8051         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
8052         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
8053         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
8054         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
8055         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
8056         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
8057         * m4/math_h.m4 (gl_MATH_H): Likewise.
8058         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
8059         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
8060         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8061         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
8062         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
8063         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
8064         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
8065         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
8066         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
8067         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
8068         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
8069         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
8070         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
8071         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
8072         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8073         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
8074         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
8075         GL_LINK_WARNING.
8076         * lib/ctype.in.h: Likewise.
8077         * lib/dirent.in.h: Likewise.
8078         * lib/fcntl.in.h: Likewise.
8079         * lib/inttypes.in.h: Likewise.
8080         * lib/langinfo.in.h: Likewise.
8081         * lib/locale.in.h: Likewise.
8082         * lib/math.in.h: Likewise.
8083         * lib/search.in.h: Likewise.
8084         * lib/signal.in.h: Likewise.
8085         * lib/spawn.in.h: Likewise.
8086         * lib/stdio.in.h: Likewise.
8087         * lib/stdlib.in.h: Likewise.
8088         * lib/string.in.h: Likewise.
8089         * lib/strings.in.h: Likewise.
8090         * lib/sys_file.in.h: Likewise.
8091         * lib/sys_ioctl.in.h: Likewise.
8092         * lib/sys_select.in.h: Likewise.
8093         * lib/sys_socket.in.h: Likewise.
8094         * lib/sys_stat.in.h: Likewise.
8095         * lib/sys_times.in.h: Likewise.
8096         * lib/sys_utsname.in.h: Likewise.
8097         * lib/unistd.in.h: Likewise.
8098         * lib/wchar.in.h: Likewise.
8099
8100 2010-01-20  Bruno Haible  <bruno@clisp.org>
8101
8102         Avoid duplicate -lm.
8103         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
8104         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
8105         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
8106         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
8107         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
8108         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
8109         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
8110         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
8111         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
8112         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
8113         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
8114         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
8115         Reported by Paolo Bonzini.
8116
8117 2010-01-19  Bruno Haible  <bruno@clisp.org>
8118
8119         langinfo, nl_langinfo: Relicense under LGPLv2+.
8120         * modules/langinfo (License): Change to LGPLv2+.
8121         * modules/nl_langinfo (License): Likewise.
8122         Patch by David Lutterkort <lutter@redhat.com>.
8123
8124 2010-01-19  Bruno Haible  <bruno@clisp.org>
8125
8126         Avoid compilation error with cc on OSF/1 5.1.
8127         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
8128         statement, not before.
8129         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8130
8131 2010-01-18  Bruno Haible  <bruno@clisp.org>
8132
8133         Avoid a link error due to the __printf__ symbol.
8134         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
8135         and 2.6.x.
8136         (__format__, __printf__): Remove definitions.
8137         * lib/argp-fmtstream.h: Likewise.
8138         * lib/argp.h: Likewise.
8139         * lib/error.h: Likewise.
8140         * lib/vasnprintf.h: Likewise.
8141         * lib/xprintf.h: Likewise.
8142         * lib/xvasprintf.h: Likewise.
8143         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8144
8145 2010-01-18  Bruno Haible  <bruno@clisp.org>
8146
8147         Tests for module 'tanl'.
8148         * modules/tanl-tests: New file.
8149         * tests/test-tanl.c: New file.
8150
8151         Tests for module 'sqrtl'.
8152         * modules/sqrtl-tests: New file.
8153         * tests/test-sqrtl.c: New file.
8154
8155         Tests for module 'sinl'.
8156         * modules/sinl-tests: New file.
8157         * tests/test-sinl.c: New file.
8158
8159         Tests for module 'logl'.
8160         * modules/logl-tests: New file.
8161         * tests/test-logl.c: New file.
8162
8163         Tests for module 'expl'.
8164         * modules/expl-tests: New file.
8165         * tests/test-expl.c: New file.
8166
8167         Tests for module 'cosl'.
8168         * modules/cosl-tests: New file.
8169         * tests/test-cosl.c: New file.
8170
8171         Tests for module 'atanl'.
8172         * modules/atanl-tests: New file.
8173         * tests/test-atanl.c: New file.
8174
8175         Tests for module 'asinl'.
8176         * modules/asinl-tests: New file.
8177         * tests/test-asinl.c: New file.
8178
8179         Tests for module 'acosl'.
8180         * modules/acosl-tests: New file.
8181         * tests/test-acosl.c: New file.
8182
8183         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
8184         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
8185         tanl): Use the standard gnulib idiom.
8186         * lib/cosl.c: Don't include trigl.c and sincosl.c.
8187         * lib/sinl.c: Likewise.
8188         * lib/tanl.c: Don't include trigl.c.
8189         (kernel_tanl): Make static.
8190         * lib/sincosl.c: Include trigl.h first.
8191         * lib/trigl.c: Likewise.
8192         * m4/acosl.m4: New file.
8193         * m4/asinl.m4: New file.
8194         * m4/atanl.m4: New file.
8195         * m4/cosl.m4: New file.
8196         * m4/expl.m4: New file.
8197         * m4/logl.m4: New file.
8198         * m4/sinl.m4: New file.
8199         * m4/sqrtl.m4: New file.
8200         * m4/tanl.m4: New file.
8201         * m4/mathl.m4: Remove file.
8202         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
8203         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
8204         Don't initialize GNULIB_MATHL.
8205         * modules/acosl: New file.
8206         * modules/asinl: New file.
8207         * modules/atanl: New file.
8208         * modules/cosl: New file.
8209         * modules/expl: New file.
8210         * modules/logl: New file.
8211         * modules/sinl: New file.
8212         * modules/sqrtl: New file.
8213         * modules/tanl: New file.
8214         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
8215         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
8216         substitute GNULIB_MATHL.
8217         * modules/mathl: Rewritten.
8218         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
8219         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
8220         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
8221         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
8222         * doc/posix-functions/expl.texi: Mention the 'expl' module.
8223         * doc/posix-functions/logl.texi: Mention the 'logl' module.
8224         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
8225         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
8226         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
8227
8228 2010-01-18  Bruno Haible  <bruno@clisp.org>
8229
8230         sqrt: Make gl_FUNC_SQRT requirable.
8231         * m4/sqrt.m4: New file.
8232         * modules/sqrt (Files): Add it.
8233         (configure.ac): Invoke gl_FUNC_SQRT.
8234
8235 2010-01-18  Bruno Haible  <bruno@clisp.org>
8236
8237         New modules for common <math.h> functions.
8238         * m4/mathfunc.m4: New file.
8239         * modules/acos: New file.
8240         * modules/asin: New file.
8241         * modules/atan: New file.
8242         * modules/atan2: New file.
8243         * modules/cbrt: New file.
8244         * modules/copysign: New file.
8245         * modules/cos: New file.
8246         * modules/cosh: New file.
8247         * modules/erf: New file.
8248         * modules/erfc: New file.
8249         * modules/exp: New file.
8250         * modules/fabs: New file.
8251         * modules/fmod: New file.
8252         * modules/hypot: New file.
8253         * modules/j0: New file.
8254         * modules/j1: New file.
8255         * modules/jn: New file.
8256         * modules/ldexp: New file.
8257         * modules/lgamma: New file.
8258         * modules/log: New file.
8259         * modules/log10: New file.
8260         * modules/log1p: New file.
8261         * modules/logb: New file.
8262         * modules/modf: New file.
8263         * modules/nextafter: New file.
8264         * modules/pow: New file.
8265         * modules/remainder: New file.
8266         * modules/rint: New file.
8267         * modules/sin: New file.
8268         * modules/sinh: New file.
8269         * modules/sqrt: New file.
8270         * modules/tan: New file.
8271         * modules/tanh: New file.
8272         * modules/y0: New file.
8273         * modules/y1: New file.
8274         * modules/yn: New file.
8275         * doc/posix-functions/acos.texi: Mention the 'acos' module.
8276         * doc/posix-functions/asin.texi: Mention the 'asin' module.
8277         * doc/posix-functions/atan.texi: Mention the 'atan' module.
8278         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
8279         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
8280         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
8281         * doc/posix-functions/cos.texi: Mention the 'cos' module.
8282         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
8283         * doc/posix-functions/erf.texi: Mention the 'erf' module.
8284         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
8285         * doc/posix-functions/exp.texi: Mention the 'exp' module.
8286         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
8287         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
8288         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
8289         * doc/posix-functions/j0.texi: Mention the 'j0' module.
8290         * doc/posix-functions/j1.texi: Mention the 'j1' module.
8291         * doc/posix-functions/jn.texi: Mention the 'jn' module.
8292         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
8293         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
8294         * doc/posix-functions/log.texi: Mention the 'log' module.
8295         * doc/posix-functions/log10.texi: Mention the 'log10' module.
8296         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
8297         * doc/posix-functions/logb.texi: Mention the 'logb' module.
8298         * doc/posix-functions/modf.texi: Mention the 'modf' module.
8299         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
8300         * doc/posix-functions/pow.texi: Mention the 'pow' module.
8301         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
8302         * doc/posix-functions/rint.texi: Mention the 'rint' module.
8303         * doc/posix-functions/sin.texi: Mention the 'sin' module.
8304         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
8305         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
8306         * doc/posix-functions/tan.texi: Mention the 'tan' module.
8307         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
8308         * doc/posix-functions/y0.texi: Mention the 'y0' module.
8309         * doc/posix-functions/y1.texi: Mention the 'y1' module.
8310         * doc/posix-functions/yn.texi: Mention the 'yn' module.
8311
8312 2010-01-18  Jim Meyering  <meyering@redhat.com>
8313
8314         ignore-value: relax license to LGPLv2+
8315         * modules/ignore-value (License): Relax to LGPLv2+.
8316
8317         getdate: don't leak when TZ contains two or more '"'s
8318         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
8319         double quote in TZ after the first one.
8320
8321         readtokens: do not leak internal token_lengths buffer
8322         * lib/readtokens.c (readtokens): Free the local, lengths,
8323         when the supplied "token_lengths" parameter is NULL.
8324
8325 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8326
8327         Fix a couple of missing LIBTHREAD link failures on AIX.
8328         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
8329         $(LIBTHREAD).
8330         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
8331
8332         Link test-poll against INET_PTON_LIB.
8333         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
8334         for inet_pton on Solaris 10.
8335
8336 2010-01-17  Bruno Haible  <bruno@clisp.org>
8337
8338         unistdio/*-sprintf: Fix typo in module description.
8339         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
8340         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
8341         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
8342         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
8343         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
8344         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
8345         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
8346         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8347
8348 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8349
8350         gnulib-tool: fix filelist for AIX, HP-UX ksh.
8351         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
8352         variables in shell case patterns, for AIX and HP-UX ksh.
8353
8354         Split large sed scripts, for HP-UX sed.
8355         * modules/stdio: Split sed scripts around 50 sed commands,
8356         to avoid HP-UX limit of 99 commands, in the near future.
8357         * modules/string: Likewise.
8358         * modules/unistd: Likewise.
8359
8360         gnulib-tool: avoid writing in the current directory.
8361         * gnulib-tool (func_emit_lib_Makefile_am)
8362         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
8363         not in the current directory, so concurrent gnulib-tool
8364         instances do not interfere.
8365
8366 2010-01-16  Jim Meyering  <meyering@redhat.com>
8367
8368         doc: update users.txt
8369         * users.txt: Add grep.
8370         (diffutils, gzip): Update URLs.
8371
8372 2010-01-12  Bruno Haible  <bruno@clisp.org>
8373
8374         posix_spawn: Avoid test failure on Cygwin.
8375         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
8376         characters.
8377         Reported by Simon Josefsson.
8378
8379 2010-01-12  Bruno Haible  <bruno@clisp.org>
8380
8381         * tests/test-cond.c (main): When skipping the test, show the reason.
8382
8383 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8384
8385         * lib/striconv.c (str_cd_iconv): Avoid if before free.
8386
8387 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8388
8389         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
8390         VC_LIST_ALWAYS_EXCLUDE_REGEX.
8391
8392 2010-01-12  Eric Blake  <ebb9@byu.net>
8393
8394         build: guarantee AS_VAR_IF
8395         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
8396         (gl_AS_VAR_IF): Move...
8397         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
8398         Reported by Simon Josefsson.
8399
8400 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8401
8402         * lib/stdio.in.h: Fix typo.
8403
8404 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8405
8406         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
8407         libgpg-error.
8408
8409 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8410
8411         * tests/test-xalloc-die.sh: Use $EXEEXT.
8412
8413 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8414             Bruno Haible  <bruno@clisp.org>
8415
8416         getlogin, getlogin_r: Avoid test failure.
8417         * tests/test-getlogin.c: Include <stdio.h>.
8418         (main): Skip the test when the function fails because stdin is not a
8419         tty.
8420         * tests/test-getlogin_r.c: Include <stdio.h>.
8421         (main): Skip the test when the function fails because stdin is not a
8422         tty.
8423
8424 2010-01-11  Eric Blake  <ebb9@byu.net>
8425
8426         tests: avoid more large file warnings
8427         * tests/test-fflush.c: Avoid warning about ftell use.
8428         * tests/test-fseek.c: Avoid warning about fseek use.
8429
8430 2010-01-10  Bruno Haible  <bruno@clisp.org>
8431
8432         nproc: Work better on Linux when /proc and /sys are not mounted.
8433         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
8434         as lower bound when, on glibc/Linux systems,
8435         sysconf (_SC_NPROCESSORS_CONF) returns 1.
8436         Suggested by Pádraig Brady <P@draigbrady.com>.
8437         Reported by Dmitry V. Levin <ldv@altlinux.org>.
8438
8439         nproc: Refactor.
8440         * lib/nproc.c (num_processors_via_affinity_mask): New function,
8441         extracted from num_processors.
8442         (num_processors): Call it.
8443
8444 2010-01-11  Jim Meyering  <meyering@redhat.com>
8445
8446         utimecmp: avoid new warning from upcoming gcc-4.5.0
8447         * lib/utimecmp.c (BILLION): Define using #define rather than an
8448         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
8449
8450 2010-01-11  Eric Blake  <ebb9@byu.net>
8451
8452         math: add portability warnings for classification macros
8453         * modules/math (Depends-on): Add warn-on-use.
8454         (Makefile.am): Provide new substitutions.
8455         * m4/math_h.m4 (gl_MATH_H): Require inline.
8456         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
8457         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
8458         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
8459         implement warnings.
8460
8461         unistd: warn on use of environ without module
8462         * modules/unistd (Depends-on): Add warn-on-use.
8463         (Makefile.am): Provide new substitutions.
8464         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
8465         * lib/unistd.in.h (environ): Wrap with a warning helper function.
8466
8467         stdio: warn on suspicious uses
8468         * modules/stdio (Depends-on): Add warn-on-use.
8469         (Makefile.am): Provide new substitutions.
8470         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
8471         fseeko.
8472         * lib/stdio.in.h (gets): Always warn on use.
8473         (fseek, ftell): Adjust when warnings are issued, and honor
8474         _GL_NO_LARGE_FILES as a way to silence the warning.
8475         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
8476         any warning about large file offsets.
8477         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
8478         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
8479         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
8480         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
8481         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
8482         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
8483         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
8484         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
8485
8486         warn-on-use: new module
8487         * modules/warn-on-use: New file.
8488         * build-aux/warn-on-use.h: Likewise.
8489         * m4/warn-on-use.m4: Likewise.
8490         * MODULES.html.sh (Support for building): Mention it.
8491
8492 2010-01-10  Bruno Haible  <bruno@clisp.org>
8493
8494         Tests for module 'unistr/u32-strdup'.
8495         * modules/unistr/u32-strdup-tests: New file.
8496         * tests/unistr/test-u32-strdup.c: New file.
8497
8498         Tests for module 'unistr/u16-strdup'.
8499         * modules/unistr/u16-strdup-tests: New file.
8500         * tests/unistr/test-u16-strdup.c: New file.
8501
8502         Tests for module 'unistr/u8-strdup'.
8503         * modules/unistr/u8-strdup-tests: New file.
8504         * tests/unistr/test-u8-strdup.c: New file.
8505         * tests/unistr/test-strdup.h: New file.
8506
8507         Tests for module 'unistr/u32-strncmp'.
8508         * modules/unistr/u32-strncmp-tests: New file.
8509         * tests/unistr/test-u32-strncmp.c: New file.
8510
8511         Tests for module 'unistr/u16-strncmp'.
8512         * modules/unistr/u16-strncmp-tests: New file.
8513         * tests/unistr/test-u16-strncmp.c: New file.
8514
8515         Tests for module 'unistr/u8-strncmp'.
8516         * modules/unistr/u8-strncmp-tests: New file.
8517         * tests/unistr/test-u8-strncmp.c: New file.
8518         * tests/unistr/test-strncmp.h: New file.
8519
8520         Tests for module 'unistr/u32-strcoll'.
8521         * modules/unistr/u32-strcoll-tests: New file.
8522         * tests/unistr/test-u32-strcoll.c: New file.
8523
8524         Tests for module 'unistr/u16-strcoll'.
8525         * modules/unistr/u16-strcoll-tests: New file.
8526         * tests/unistr/test-u16-strcoll.c: New file.
8527
8528         Tests for module 'unistr/u8-strcoll'.
8529         * modules/unistr/u8-strcoll-tests: New file.
8530         * tests/unistr/test-u8-strcoll.c: New file.
8531
8532         Tests for module 'unistr/u32-strcmp'.
8533         * modules/unistr/u32-strcmp-tests: New file.
8534         * tests/unistr/test-u32-strcmp.c: New file.
8535         * tests/unistr/test-u32-strcmp.h: New file.
8536
8537         Tests for module 'unistr/u16-strcmp'.
8538         * modules/unistr/u16-strcmp-tests: New file.
8539         * tests/unistr/test-u16-strcmp.c: New file.
8540         * tests/unistr/test-u16-strcmp.h: New file.
8541
8542         Tests for module 'unistr/u8-strcmp'.
8543         * modules/unistr/u8-strcmp-tests: New file.
8544         * tests/unistr/test-u8-strcmp.c: New file.
8545         * tests/unistr/test-u8-strcmp.h: New file.
8546         * tests/unistr/test-strcmp.h: New file.
8547
8548         Tests for module 'unistr/u32-strncat'.
8549         * modules/unistr/u32-strncat-tests: New file.
8550         * tests/unistr/test-u32-strncat.c: New file.
8551
8552         Tests for module 'unistr/u16-strncat'.
8553         * modules/unistr/u16-strncat-tests: New file.
8554         * tests/unistr/test-u16-strncat.c: New file.
8555
8556         Tests for module 'unistr/u8-strncat'.
8557         * modules/unistr/u8-strncat-tests: New file.
8558         * tests/unistr/test-u8-strncat.c: New file.
8559         * tests/unistr/test-strncat.h: New file.
8560
8561         Tests for module 'unistr/u32-strcat'.
8562         * modules/unistr/u32-strcat-tests: New file.
8563         * tests/unistr/test-u32-strcat.c: New file.
8564
8565         Tests for module 'unistr/u16-strcat'.
8566         * modules/unistr/u16-strcat-tests: New file.
8567         * tests/unistr/test-u16-strcat.c: New file.
8568
8569         Tests for module 'unistr/u8-strcat'.
8570         * modules/unistr/u8-strcat-tests: New file.
8571         * tests/unistr/test-u8-strcat.c: New file.
8572         * tests/unistr/test-strcat.h: New file.
8573
8574         Tests for module 'unistr/u32-stpncpy'.
8575         * modules/unistr/u32-stpncpy-tests: New file.
8576         * tests/unistr/test-u32-stpncpy.c: New file.
8577
8578         Tests for module 'unistr/u16-stpncpy'.
8579         * modules/unistr/u16-stpncpy-tests: New file.
8580         * tests/unistr/test-u16-stpncpy.c: New file.
8581
8582         Tests for module 'unistr/u8-stpncpy'.
8583         * modules/unistr/u8-stpncpy-tests: New file.
8584         * tests/unistr/test-u8-stpncpy.c: New file.
8585         * tests/unistr/test-stpncpy.h: New file.
8586
8587         Tests for module 'unistr/u32-strncpy'.
8588         * modules/unistr/u32-strncpy-tests: New file.
8589         * tests/unistr/test-u32-strncpy.c: New file.
8590
8591         Tests for module 'unistr/u16-strncpy'.
8592         * modules/unistr/u16-strncpy-tests: New file.
8593         * tests/unistr/test-u16-strncpy.c: New file.
8594
8595         Tests for module 'unistr/u8-strncpy'.
8596         * modules/unistr/u8-strncpy-tests: New file.
8597         * tests/unistr/test-u8-strncpy.c: New file.
8598         * tests/unistr/test-strncpy.h: New file.
8599
8600         Tests for module 'unistr/u32-stpcpy'.
8601         * modules/unistr/u32-stpcpy-tests: New file.
8602         * tests/unistr/test-u32-stpcpy.c: New file.
8603
8604         Tests for module 'unistr/u16-stpcpy'.
8605         * modules/unistr/u16-stpcpy-tests: New file.
8606         * tests/unistr/test-u16-stpcpy.c: New file.
8607
8608         Tests for module 'unistr/u8-stpcpy'.
8609         * modules/unistr/u8-stpcpy-tests: New file.
8610         * tests/unistr/test-u8-stpcpy.c: New file.
8611         * tests/unistr/test-stpcpy.h: New file.
8612
8613         Tests for module 'unistr/u32-strcpy'.
8614         * modules/unistr/u32-strcpy-tests: New file.
8615         * tests/unistr/test-u32-strcpy.c: New file.
8616
8617         Tests for module 'unistr/u16-strcpy'.
8618         * modules/unistr/u16-strcpy-tests: New file.
8619         * tests/unistr/test-u16-strcpy.c: New file.
8620
8621         Tests for module 'unistr/u8-strcpy'.
8622         * modules/unistr/u8-strcpy-tests: New file.
8623         * tests/unistr/test-u8-strcpy.c: New file.
8624         * tests/unistr/test-strcpy.h: New file.
8625
8626         Tests for module 'unistr/u32-strnlen'.
8627         * modules/unistr/u32-strnlen-tests: New file.
8628         * tests/unistr/test-u32-strnlen.c: New file.
8629
8630         Tests for module 'unistr/u16-strnlen'.
8631         * modules/unistr/u16-strnlen-tests: New file.
8632         * tests/unistr/test-u16-strnlen.c: New file.
8633
8634         Tests for module 'unistr/u8-strnlen'.
8635         * modules/unistr/u8-strnlen-tests: New file.
8636         * tests/unistr/test-u8-strnlen.c: New file.
8637         * tests/unistr/test-strnlen.h: New file.
8638
8639         Tests for module 'unistr/u32-strlen'.
8640         * modules/unistr/u32-strlen-tests: New file.
8641         * tests/unistr/test-u32-strlen.c: New file.
8642
8643         Tests for module 'unistr/u16-strlen'.
8644         * modules/unistr/u16-strlen-tests: New file.
8645         * tests/unistr/test-u16-strlen.c: New file.
8646
8647         Tests for module 'unistr/u8-strlen'.
8648         * modules/unistr/u8-strlen-tests: New file.
8649         * tests/unistr/test-u8-strlen.c: New file.
8650
8651         Tests for module 'unistr/u32-prev'.
8652         * modules/unistr/u32-prev-tests: New file.
8653         * tests/unistr/test-u32-prev.c: New file.
8654
8655         Tests for module 'unistr/u16-prev'.
8656         * modules/unistr/u16-prev-tests: New file.
8657         * tests/unistr/test-u16-prev.c: New file.
8658
8659         Tests for module 'unistr/u8-prev'.
8660         * modules/unistr/u8-prev-tests: New file.
8661         * tests/unistr/test-u8-prev.c: New file.
8662
8663         Tests for module 'unistr/u32-next'.
8664         * modules/unistr/u32-next-tests: New file.
8665         * tests/unistr/test-u32-next.c: New file.
8666
8667         Tests for module 'unistr/u16-next'.
8668         * modules/unistr/u16-next-tests: New file.
8669         * tests/unistr/test-u16-next.c: New file.
8670
8671         Tests for module 'unistr/u8-next'.
8672         * modules/unistr/u8-next-tests: New file.
8673         * tests/unistr/test-u8-next.c: New file.
8674
8675         Tests for module 'unistr/u32-strmbtouc'.
8676         * modules/unistr/u32-strmbtouc-tests: New file.
8677         * tests/unistr/test-u32-strmbtouc.c: New file.
8678
8679         Tests for module 'unistr/u16-strmbtouc'.
8680         * modules/unistr/u16-strmbtouc-tests: New file.
8681         * tests/unistr/test-u16-strmbtouc.c: New file.
8682
8683         Tests for module 'unistr/u8-strmbtouc'.
8684         * modules/unistr/u8-strmbtouc-tests: New file.
8685         * tests/unistr/test-u8-strmbtouc.c: New file.
8686
8687         Tests for module 'unistr/u32-strmblen'.
8688         * modules/unistr/u32-strmblen-tests: New file.
8689         * tests/unistr/test-u32-strmblen.c: New file.
8690
8691         Tests for module 'unistr/u16-strmblen'.
8692         * modules/unistr/u16-strmblen-tests: New file.
8693         * tests/unistr/test-u16-strmblen.c: New file.
8694
8695         Tests for module 'unistr/u8-strmblen'.
8696         * modules/unistr/u8-strmblen-tests: New file.
8697         * tests/unistr/test-u8-strmblen.c: New file.
8698
8699         Tests for module 'unistr/u32-cpy-alloc'.
8700         * modules/unistr/u32-cpy-alloc-tests: New file.
8701         * tests/unistr/test-u32-cpy-alloc.c: New file.
8702
8703         Tests for module 'unistr/u16-cpy-alloc'.
8704         * modules/unistr/u16-cpy-alloc-tests: New file.
8705         * tests/unistr/test-u16-cpy-alloc.c: New file.
8706
8707         Tests for module 'unistr/u8-cpy-alloc'.
8708         * modules/unistr/u8-cpy-alloc-tests: New file.
8709         * tests/unistr/test-u8-cpy-alloc.c: New file.
8710         * tests/unistr/test-cpy-alloc.h: New file.
8711
8712         Tests for module 'unistr/u32-mbsnlen'.
8713         * modules/unistr/u32-mbsnlen-tests: New file.
8714         * tests/unistr/test-u32-mbsnlen.c: New file.
8715
8716         Tests for module 'unistr/u16-mbsnlen'.
8717         * modules/unistr/u16-mbsnlen-tests: New file.
8718         * tests/unistr/test-u16-mbsnlen.c: New file.
8719
8720         Tests for module 'unistr/u8-mbsnlen'.
8721         * modules/unistr/u8-mbsnlen-tests: New file.
8722         * tests/unistr/test-u8-mbsnlen.c: New file.
8723
8724         Tests for module 'unistr/u32-chr'.
8725         * modules/unistr/u32-chr-tests: New file.
8726         * tests/unistr/test-u32-chr.c: New file.
8727
8728         Tests for module 'unistr/u16-chr'.
8729         * modules/unistr/u16-chr-tests: New file.
8730         * tests/unistr/test-u16-chr.c: New file.
8731
8732         Tests for module 'unistr/u8-chr'.
8733         * modules/unistr/u8-chr-tests: New file.
8734         * tests/unistr/test-u8-chr.c: New file.
8735         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
8736
8737         Tests for module 'unistr/u32-cmp2'.
8738         * modules/unistr/u32-cmp2-tests: New file.
8739         * tests/unistr/test-u32-cmp2.c: New file.
8740
8741         Tests for module 'unistr/u16-cmp2'.
8742         * modules/unistr/u16-cmp2-tests: New file.
8743         * tests/unistr/test-u16-cmp2.c: New file.
8744
8745         Tests for module 'unistr/u8-cmp2'.
8746         * modules/unistr/u8-cmp2-tests: New file.
8747         * tests/unistr/test-u8-cmp2.c: New file.
8748         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
8749
8750         Tests for module 'unistr/u32-cmp'.
8751         * modules/unistr/u32-cmp-tests: New file.
8752         * tests/unistr/test-u32-cmp.c: New file.
8753
8754         Tests for module 'unistr/u16-cmp'.
8755         * modules/unistr/u16-cmp-tests: New file.
8756         * tests/unistr/test-u16-cmp.c: New file.
8757
8758         Tests for module 'unistr/u8-cmp'.
8759         * modules/unistr/u8-cmp-tests: New file.
8760         * tests/unistr/test-u8-cmp.c: New file.
8761         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
8762
8763         Tests for module 'unistr/u32-set'.
8764         * modules/unistr/u32-set-tests: New file.
8765         * tests/unistr/test-u32-set.c: New file.
8766
8767         Tests for module 'unistr/u16-set'.
8768         * modules/unistr/u16-set-tests: New file.
8769         * tests/unistr/test-u16-set.c: New file.
8770
8771         Tests for module 'unistr/u8-set'.
8772         * modules/unistr/u8-set-tests: New file.
8773         * tests/unistr/test-u8-set.c: New file.
8774         * tests/unistr/test-set.h: New file.
8775
8776         Tests for module 'unistr/u32-move'.
8777         * modules/unistr/u32-move-tests: New file.
8778         * tests/unistr/test-u32-move.c: New file.
8779
8780         Tests for module 'unistr/u16-move'.
8781         * modules/unistr/u16-move-tests: New file.
8782         * tests/unistr/test-u16-move.c: New file.
8783
8784         Tests for module 'unistr/u8-move'.
8785         * modules/unistr/u8-move-tests: New file.
8786         * tests/unistr/test-u8-move.c: New file.
8787         * tests/unistr/test-move.h: New file.
8788
8789         Tests for module 'unistr/u32-cpy'.
8790         * modules/unistr/u32-cpy-tests: New file.
8791         * tests/unistr/test-u32-cpy.c: New file.
8792
8793         Tests for module 'unistr/u16-cpy'.
8794         * modules/unistr/u16-cpy-tests: New file.
8795         * tests/unistr/test-u16-cpy.c: New file.
8796
8797         Tests for module 'unistr/u8-cpy'.
8798         * modules/unistr/u8-cpy-tests: New file.
8799         * tests/unistr/test-u8-cpy.c: New file.
8800         * tests/unistr/test-cpy.h: New file.
8801
8802 2010-01-09  Bruno Haible  <bruno@clisp.org>
8803
8804         Tests for module 'unistr/u32-uctomb'.
8805         * modules/unistr/u32-uctomb-tests: New file.
8806         * tests/unistr/test-u32-uctomb.c: New file.
8807
8808         Tests for module 'unistr/u16-uctomb'.
8809         * modules/unistr/u16-uctomb-tests: New file.
8810         * tests/unistr/test-u16-uctomb.c: New file.
8811
8812         Tests for module 'unistr/u8-uctomb'.
8813         * modules/unistr/u8-uctomb-tests: New file.
8814         * tests/unistr/test-u8-uctomb.c: New file.
8815
8816         Tests for module 'unistr/u32-mbtoucr'.
8817         * modules/unistr/u32-mbtoucr-tests: New file.
8818         * tests/unistr/test-u32-mbtoucr.c: New file.
8819
8820         Tests for module 'unistr/u16-mbtoucr'.
8821         * modules/unistr/u16-mbtoucr-tests: New file.
8822         * tests/unistr/test-u16-mbtoucr.c: New file.
8823
8824         Tests for module 'unistr/u8-mbtoucr'.
8825         * modules/unistr/u8-mbtoucr-tests: New file.
8826         * tests/unistr/test-u8-mbtoucr.c: New file.
8827
8828         Tests for module 'unistr/u32-mbtouc'.
8829         * modules/unistr/u32-mbtouc-tests: New file.
8830         * tests/unistr/test-u32-mbtouc.c: New file.
8831
8832         Tests for module 'unistr/u16-mbtouc'.
8833         * modules/unistr/u16-mbtouc-tests: New file.
8834         * tests/unistr/test-u16-mbtouc.c: New file.
8835
8836         Tests for module 'unistr/u8-mbtouc'.
8837         * modules/unistr/u8-mbtouc-tests: New file.
8838         * tests/unistr/test-u8-mbtouc.c: New file.
8839
8840         Tests for module 'unistr/u32-mbtouc-unsafe'.
8841         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
8842         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
8843         * tests/unistr/test-u32-mbtouc.h: New file.
8844
8845         Tests for module 'unistr/u16-mbtouc-unsafe'.
8846         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
8847         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
8848         * tests/unistr/test-u16-mbtouc.h: New file.
8849
8850         Tests for module 'unistr/u8-mbtouc-unsafe'.
8851         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
8852         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
8853         * tests/unistr/test-u8-mbtouc.h: New file.
8854
8855         Tests for module 'unistr/u32-mblen'.
8856         * modules/unistr/u32-mblen-tests: New file.
8857         * tests/unistr/test-u32-mblen.c: New file.
8858
8859         Tests for module 'unistr/u16-mblen'.
8860         * modules/unistr/u16-mblen-tests: New file.
8861         * tests/unistr/test-u16-mblen.c: New file.
8862
8863         Tests for module 'unistr/u8-mblen'.
8864         * modules/unistr/u8-mblen-tests: New file.
8865         * tests/unistr/test-u8-mblen.c: New file.
8866
8867         Tests for module 'unistr/u32-to-u16'.
8868         * modules/unistr/u32-to-u16-tests: New file.
8869         * tests/unistr/test-u32-to-u16.c: New file.
8870
8871         Tests for module 'unistr/u32-to-u8'.
8872         * modules/unistr/u32-to-u8-tests: New file.
8873         * tests/unistr/test-u32-to-u8.c: New file.
8874
8875         Tests for module 'unistr/u16-to-u32'.
8876         * modules/unistr/u16-to-u32-tests: New file.
8877         * tests/unistr/test-u16-to-u32.c: New file.
8878
8879         Tests for module 'unistr/u16-to-u8'.
8880         * modules/unistr/u16-to-u8-tests: New file.
8881         * tests/unistr/test-u16-to-u8.c: New file.
8882
8883         Tests for module 'unistr/u8-to-u32'.
8884         * modules/unistr/u8-to-u32-tests: New file.
8885         * tests/unistr/test-u8-to-u32.c: New file.
8886
8887         Tests for module 'unistr/u8-to-u16'.
8888         * modules/unistr/u8-to-u16-tests: New file.
8889         * tests/unistr/test-u8-to-u16.c: New file.
8890
8891         Tests for module 'unistr/u32-check'.
8892         * modules/unistr/u32-check-tests: New file.
8893         * tests/unistr/test-u32-check.c: New file.
8894
8895         Tests for module 'unistr/u16-check'.
8896         * modules/unistr/u16-check-tests: New file.
8897         * tests/unistr/test-u16-check.c: New file.
8898
8899         Tests for module 'unistr/u8-check'.
8900         * modules/unistr/u8-check-tests: New file.
8901         * tests/unistr/test-u8-check.c: New file.
8902
8903         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
8904         (category_equals): New function.
8905         (main): Add more tests.
8906         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
8907
8908         * tests/unictype/test-bidi_byname.c (main): Add more tests.
8909
8910 2010-01-10  Bruno Haible  <bruno@clisp.org>
8911
8912         unistr/u*-strcoll: Try harder to distinguish different strings.
8913         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
8914         compare s1 and s2 to see if they are different.
8915
8916 2010-01-10  Bruno Haible  <bruno@clisp.org>
8917
8918         unistr/u*-stpncpy: Fix the return value.
8919         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
8920         description of the return value consistent with stpncpy in glibc.
8921         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
8922         written non-NUL unit.
8923
8924 2010-01-10  Bruno Haible  <bruno@clisp.org>
8925
8926         unistr/u*-next: Add missing dependencies.
8927         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
8928         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
8929         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
8930
8931 2010-01-10  Bruno Haible  <bruno@clisp.org>
8932
8933         unistr/u8-mbsnlen: Fix return value for incomplete character.
8934         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
8935         u8_mblen.
8936         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
8937         Remove unistr/u8-mblen.
8938         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
8939         u16_mblen.
8940         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
8941         Remove unistr/u16-mblen.
8942
8943 2010-01-10  Bruno Haible  <bruno@clisp.org>
8944
8945         wchar: Fix compilation error when <wchar.h> is used from coreutils.
8946         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
8947         Reported by Brian Gough <bjg@gnu.org> and
8948         Chris Clayton <chris2553@googlemail.com> via
8949         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
8950
8951 2010-01-09  Bruno Haible  <bruno@clisp.org>
8952
8953         unistr/u16-to-u32: Reject invalid input.
8954         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
8955         u16_mbtouc.
8956         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
8957         Remove unistr/u16-mbtouc.
8958
8959         unistr/u16-to-u8: Reject invalid input.
8960         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
8961         u16_mbtouc.
8962         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
8963         Remove unistr/u16-mbtouc.
8964
8965         unistr/u8-to-u32: Reject invalid input.
8966         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
8967         u8_mbtouc.
8968         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
8969         Remove unistr/u8-mbtouc.
8970
8971         unistr/u8-to-u16: Reject invalid input.
8972         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
8973         u8_mbtouc.
8974         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
8975         Remove unistr/u8-mbtouc.
8976
8977 2010-01-09  Bruno Haible  <bruno@clisp.org>
8978
8979         Tests for module 'getlogin'.
8980         * modules/getlogin-tests: New file.
8981         * tests/test-getlogin.c: New file.
8982
8983         New module 'getlogin'.
8984         * lib/unistd.in.h (getlogin): New declaration.
8985         * lib/getlogin.c: New file.
8986         * m4/getlogin.m4: New file.
8987         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
8988         HAVE_GETLOGIN.
8989         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
8990         HAVE_GETLOGIN.
8991         * modules/getlogin: New file.
8992         * doc/posix-functions/getlogin.texi: Mention the new module.
8993         Reported by John W. Eaton <jwe@gnu.org>.
8994
8995 2010-01-09  Bruno Haible  <bruno@clisp.org>
8996
8997         getlogin_r: Support for native Windows.
8998         * lib/getlogin_r.c: Include <windows.h>
8999         (getlogin_r): Implement for native Windows.
9000         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
9001         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
9002         via John W. Eaton <jwe@gnu.org>.
9003
9004 2010-01-09  Bruno Haible  <bruno@clisp.org>
9005
9006         getlogin_r: Small fixes.
9007         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
9008         succeeds.
9009         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
9010         before testing whether getlogin_r is declared. No need to set
9011         HAVE_DECL_GETLOGIN_R to 1.
9012         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
9013
9014 2010-01-09  Bruno Haible  <bruno@clisp.org>
9015
9016         * lib/unistd.in.h (getlogin_r): Add comment.
9017
9018 2010-01-09  Bruno Haible  <bruno@clisp.org>
9019
9020         Tests for module 'getlogin_r'.
9021         * modules/getlogin_r-tests: New file.
9022         * tests/test-getlogin_r.c: New file.
9023
9024 2010-01-09  Jim Meyering  <meyering@redhat.com>
9025
9026         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
9027         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
9028         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
9029
9030 2010-01-08  Simon Josefsson  <simon@josefsson.org>
9031
9032         * lib/dup2.c (rpl_dup2): Improve comment.
9033
9034 2010-01-08  Eric Blake  <ebb9@byu.net>
9035
9036         maint.mk: allow packages to add makefile @@ exceptions
9037         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
9038         (sc_makefile_check): Rename...
9039         (sc_makefile_at_at_check): ...to this, and use hook.
9040
9041         dup2: work around mingw bug
9042         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
9043         Reported by Simon Josefsson.
9044
9045 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
9046
9047         glob: Fix C++ compilation.
9048         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
9049         C++.
9050
9051 2010-01-07  Bruno Haible  <bruno@clisp.org>
9052
9053         Fix indentation of wctype.in.h, broken since 2007-01-06.
9054         * lib/wctype.in.h: Fix indentation of preprocessor directives.
9055
9056 2010-01-07  Bruno Haible  <bruno@clisp.org>
9057
9058         mbslen: Avoid collision with system function.
9059         * lib/string.in.h [MirBSD]: Include <wchar.h>.
9060         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
9061         * m4/mbslen.m4: New file.
9062         * modules/mbslen (Files): Add it.
9063         (configure.ac): Invoke gl_MBSLEN.
9064         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
9065         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
9066         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
9067         via Ian Beckwith <ianb@erislabs.net>.
9068
9069 2010-01-07  Bruno Haible  <bruno@clisp.org>
9070
9071         dirent: Document the last fix.
9072         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
9073
9074 2010-01-07  Bruno Haible  <bruno@clisp.org>
9075
9076         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
9077         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
9078         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
9079         va_list are defined.
9080         * doc/posix-headers/stdio.texi: Document the bug of missing types.
9081         Reported by Eric Blake.
9082
9083 2010-01-07  Bruno Haible  <bruno@clisp.org>
9084
9085         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
9086         * modules/xlist (Depends-on): Add 'list',
9087         * modules/xoset (Depends-on): Add 'oset'.
9088         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9089
9090 2010-01-07  Bruno Haible  <bruno@clisp.org>
9091
9092         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
9093         * doc/posix-functions/strncasecmp.texi: Likewise.
9094
9095 2010-01-07  Bruno Haible  <bruno@clisp.org>
9096
9097         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
9098
9099 2010-01-07  John W. Eaton  <jwe@octave.org>
9100
9101         wctype: allow C++ use
9102         * lib/wctype.in.h: Add extern "C" block for C++.
9103
9104 2010-01-06  Eric Blake  <ebb9@byu.net>
9105
9106         maint.mk: detect incorrect GFDL usage
9107         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
9108
9109 2010-01-06  Jim Meyering  <meyering@redhat.com>
9110         and Eric Blake  <ebb9@byu.net>
9111
9112         maint.mk: ignore multi-line copyright in NEWS
9113         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
9114
9115 2010-01-06  Eric Blake  <ebb9@byu.net>
9116
9117         select: add missing dependency
9118         * modules/select-tests (Depends-on): Move sockets dependency...
9119         * modules/select (Depends-on): ...here.
9120         Reported by Ian Beckwith.
9121
9122         doc: regenerate INSTALL
9123         * doc/INSTALL: Reflect recent autoconf update.
9124         * doc/INSTALL.ISO: Likewise.
9125         * doc/INSTALL.UTF-8: Likewise.
9126
9127         pread: fix compilation on glibc
9128         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
9129         Reported by Ralf Wildenhues.
9130
9131         dirent: fix test failure
9132         * lib/dirent.in.h (includes): Guarantee ino_t.
9133         Reported by Ralf Wildenhues.
9134
9135 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
9136
9137         linkat, renameat: avoid bad free
9138         * lib/at-func2.c (at_func2): Fix typo.
9139         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
9140
9141 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9142
9143         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
9144         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
9145         to avoid failure of symlink test later.
9146
9147 2010-01-06  Eric Blake  <ebb9@byu.net>
9148
9149         stdio, unistd: guarantee ssize_t
9150         * lib/unistd.in.h (includes): Ensure that types required by POSIX
9151         2008 are exposed when needed.
9152         * lib/stdio.in.h (includes): Likewise.
9153         Reported by Ralf Wildenhues.
9154
9155 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
9156
9157         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
9158         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
9159         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
9160
9161 2010-01-06  Jim Meyering  <meyering@redhat.com>
9162
9163         readtokens: this module *does* require xalloc.h
9164         It uses only functions that were omitted by the old syntax-check rule.
9165         * lib/readtokens.c: Include "xalloc.h" once again.
9166         * modules/readtokens (Depends-on): Add xalloc.
9167         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
9168
9169 2010-01-05  Eric Blake  <ebb9@byu.net>
9170
9171         maint: support 'make announcement' from a VPATH build
9172         * top/maint.mk (announcement): Look for correct NEWS file.
9173
9174 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
9175
9176         utimens (fdutimens): ignore a negative FD, per contract
9177         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
9178         when we have a valid file descriptor.  Otherwise, using a brand
9179         new glibc (with just-patched futimens that now fails with EBADF)
9180         would cause this function to fail with ENOSYS.
9181         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
9182         See also http://bugzilla.redhat.com/552320.
9183
9184 2010-01-05  Eric Blake  <ebb9@byu.net>
9185
9186         strcase: document what it provides
9187         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
9188         gnulib module.
9189         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
9190         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
9191
9192 2010-01-05  Jim Meyering  <meyering@redhat.com>
9193
9194         maint: remove useless inclusions of "xalloc.h"
9195         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
9196         * lib/readtokens.c: Likewise.
9197         * lib/same.c: Likewise.
9198         * modules/getloadavg (Depends-on): Remove xalloc.
9199         * modules/readtokens: Likewise.
9200         * modules/same: Likewise.
9201
9202         maint.mk: include 4 more function names in alloca.h-checking regexp
9203         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
9204         regexp.  Before, we would give a false-positive (saying alloca.h
9205         is included unnecessarily) when the only uses involved omitted symbols.
9206
9207         xalloc.h: use consistent formatting
9208         * lib/xalloc.h: Move declarations to start in the first column.
9209
9210 2010-01-05  Eric Blake  <ebb9@byu.net>
9211
9212         mkdir: avoid xalloc
9213         * lib/mkdir.c (includes): Drop unused header.
9214         Reported by John W. Eaton.
9215
9216 2010-01-04  Jim Meyering  <meyering@redhat.com>
9217
9218         nl_langinfo: avoid configure-time syntax error
9219         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
9220         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
9221         the empty string.  Don't let that provoke a shell syntax error.
9222
9223         regcomp, regexec, fnmatch: avoid array bounds read error
9224         * lib/regcomp.c (build_equiv_class): From glibc:
9225         Use only the low 24 bits of a findidx return value as an index
9226         into the weights array.  Patch by Ulrich Drepper:
9227         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
9228         * lib/regexec.c (check_node_accept_bytes): Likewise.
9229         * lib/fnmatch_loop.c (FCT): Likewise.
9230
9231         regcomp: skip collseq lookup when there are no rules
9232         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
9233         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
9234
9235         regcomp: recognize ill-formed { } expressions
9236         * lib/regcomp.c (parse_dup_op): From glibc:
9237         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
9238
9239         regcomp: fix typo in comment
9240         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
9241         s/satisfy/satisfies/.
9242
9243         regcomp: sync from glibc: remove dead store
9244         * lib/regcomp.c (duplicate_node_closure): Remove useless
9245         search_duplicated_node call and dead store.
9246
9247         regcomp: sync from glibc; always use nl_langinfo
9248         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
9249         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
9250         * modules/regex (Depends-on): Add nl_langinfo.
9251
9252 2010-01-04  Eric Blake  <ebb9@byu.net>
9253
9254         fdopendir: fix configure test
9255         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
9256
9257 2010-01-01  Bruno Haible  <bruno@clisp.org>
9258
9259         wchar: Remove unused configure check.
9260         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
9261
9262 2010-01-01  Eric Blake  <ebb9@byu.net>
9263
9264         headers: make check of system header explicit
9265         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
9266         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
9267         ourselves.
9268         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
9269         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9270         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
9271         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
9272         internals.
9273         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
9274         missing.
9275         Suggested by Bruno Haible.
9276
9277 2010-01-01  Jim Meyering  <meyering@redhat.com>
9278
9279         ChangeLog: tweak to eliminate unnecessary copyright line
9280         * ChangeLog: Remove a copyright line that was mistakenly updated
9281         by today's update-copyright run.  Reported by Eric Blake.
9282
9283         test-update-copyright: don't let envvar setting cause test failure
9284         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
9285
9286 2010-01-01  Bruno Haible  <bruno@clisp.org>
9287
9288         localename: Avoid gcc warning.
9289         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
9290         function if it is not used.
9291
9292 2010-01-01  Jim Meyering  <meyering@redhat.com>
9293
9294         update nearly all FSF copyright year lists to include 2010
9295         Use the same procedure as for 2009, outlined in
9296         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
9297
9298         version-etc: set COPYRIGHT_YEAR to 2010
9299         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
9300
9301 2009-12-31  Eric Blake  <ebb9@byu.net>
9302
9303         doc: correct availability of cygwin 1.5.x getopt
9304         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
9305         variables.
9306         * doc/posix-functions/opterr.texi (opterr): Likewise.
9307         * doc/posix-functions/optind.texi (optind): Likewise.
9308         * doc/posix-functions/optopt.texi (optopt): Likewise.
9309         * doc/posix-functions/tzname.texi (tzname): Likewise.
9310
9311         openat: update maintainer
9312         * modules/openat (Maintainer): Add myself.
9313
9314         utimens: avoid shadowing warning
9315         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
9316         buffers into one, to avoid shadowing, as well as avoiding a
9317         redundant stat.
9318         Reported by Jim Meyering.
9319
9320         test-dup2: avoid compiler warning
9321         * tests/test-dup2.c (is_inheritable): Only define if used.
9322
9323 2010-01-01  Bruno Haible  <bruno@clisp.org>
9324
9325         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
9326         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
9327         defined, use wctomb instead of wcrtomb.
9328
9329 2010-01-01  Bruno Haible  <bruno@clisp.org>
9330
9331         iconv: Reject native Solaris iconv.
9332         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
9333         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
9334
9335 2009-12-31  Bruno Haible  <bruno@clisp.org>
9336
9337         * tests/test-signal.c (main): Remove test of 'SIG'.
9338
9339 2009-12-31  Bruno Haible  <bruno@clisp.org>
9340
9341         spawn: Fix incomplete fix.
9342         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
9343         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
9344         warnings for GNULIB_POSIXCHECK again.
9345         Reported by Eric Blake.
9346
9347 2009-12-31  Bruno Haible  <bruno@clisp.org>
9348
9349         Avoid namespace pollution on glibc systems.
9350         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
9351         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
9352         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
9353         glibc systems.
9354
9355 2009-12-31  Bruno Haible  <bruno@clisp.org>
9356
9357         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
9358         (gl_REPLACE_WCHAR_H): Turn into a no-op.
9359         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
9360         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
9361         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
9362         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
9363         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
9364
9365 2009-12-31  Bruno Haible  <bruno@clisp.org>
9366
9367         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
9368         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
9369         afterwards.
9370
9371 2009-12-31  Bruno Haible  <bruno@clisp.org>
9372
9373         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
9374         SYS_UTSNAME_H.
9375
9376 2009-12-31  Bruno Haible  <bruno@clisp.org>
9377
9378         spawn: Fix misapplied patch.
9379         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
9380         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
9381         warnings for GNULIB_POSIXCHECK.
9382
9383 2009-12-31  Bruno Haible  <bruno@clisp.org>
9384
9385         times: Update after sys_times changed.
9386         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
9387         * modules/times (Files): Add it.
9388         (configure.ac): Invoke gl_FUNC_TIMES.
9389
9390 2009-12-31  Bruno Haible  <bruno@clisp.org>
9391
9392         Use AC_C_INLINE where necessary.
9393         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
9394         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
9395         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
9396         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
9397         * m4/mbfile.m4 (gl_MBFILE): Likewise.
9398         * m4/mbiter.m4 (gl_MBITER): Likewise.
9399         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9400         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9401         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
9402         * modules/u64 (configure.ac): Likewise.
9403
9404 2009-12-31  Bruno Haible  <bruno@clisp.org>
9405
9406         Use AC_C_INLINE instead of module 'inline' where possible.
9407         * modules/inline (Description): Clarify purpose.
9408         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
9409         * modules/count-one-bits (Depends-on): Remove inline.
9410         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
9411         * modules/openat (Depends-on): Remove inline.
9412         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
9413         instead of depending on module 'inline'.
9414         * modules/filevercmp (Depends-on, configure.ac): Likewise.
9415         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
9416         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
9417         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
9418         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
9419         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
9420         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
9421         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
9422         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
9423         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
9424         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
9425         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
9426         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
9427         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
9428         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
9429         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
9430         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
9431         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
9432         Likewise.
9433         * modules/unictype/property-ascii-hex-digit (Depends-on,
9434         configure.ac): Likewise.
9435         * modules/unictype/property-bidi-arabic-digit (Depends-on,
9436         configure.ac): Likewise.
9437         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
9438         configure.ac): Likewise.
9439         * modules/unictype/property-bidi-block-separator (Depends-on,
9440         configure.ac): Likewise.
9441         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
9442         configure.ac): Likewise.
9443         * modules/unictype/property-bidi-common-separator (Depends-on,
9444         configure.ac): Likewise.
9445         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
9446         Likewise.
9447         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
9448         configure.ac): Likewise.
9449         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
9450         configure.ac): Likewise.
9451         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
9452         configure.ac): Likewise.
9453         * modules/unictype/property-bidi-european-digit (Depends-on,
9454         configure.ac): Likewise.
9455         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
9456         configure.ac): Likewise.
9457         * modules/unictype/property-bidi-left-to-right (Depends-on,
9458         configure.ac): Likewise.
9459         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
9460         configure.ac): Likewise.
9461         * modules/unictype/property-bidi-other-neutral (Depends-on,
9462         configure.ac): Likewise.
9463         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
9464         Likewise.
9465         * modules/unictype/property-bidi-segment-separator (Depends-on,
9466         configure.ac): Likewise.
9467         * modules/unictype/property-bidi-whitespace (Depends-on,
9468         configure.ac): Likewise.
9469         * modules/unictype/property-combining (Depends-on, configure.ac):
9470         Likewise.
9471         * modules/unictype/property-composite (Depends-on, configure.ac):
9472         Likewise.
9473         * modules/unictype/property-currency-symbol (Depends-on,
9474         configure.ac): Likewise.
9475         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
9476         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
9477         Likewise.
9478         * modules/unictype/property-default-ignorable-code-point (Depends-on,
9479         configure.ac): Likewise.
9480         * modules/unictype/property-deprecated (Depends-on, configure.ac):
9481         Likewise.
9482         * modules/unictype/property-diacritic (Depends-on, configure.ac):
9483         Likewise.
9484         * modules/unictype/property-extender (Depends-on, configure.ac):
9485         Likewise.
9486         * modules/unictype/property-format-control (Depends-on, configure.ac):
9487         Likewise.
9488         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
9489         Likewise.
9490         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
9491         Likewise.
9492         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
9493         Likewise.
9494         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
9495         Likewise.
9496         * modules/unictype/property-hyphen (Depends-on, configure.ac):
9497         Likewise.
9498         * modules/unictype/property-id-continue (Depends-on, configure.ac):
9499         Likewise.
9500         * modules/unictype/property-id-start (Depends-on, configure.ac):
9501         Likewise.
9502         * modules/unictype/property-ideographic (Depends-on, configure.ac):
9503         Likewise.
9504         * modules/unictype/property-ids-binary-operator (Depends-on,
9505         configure.ac): Likewise.
9506         * modules/unictype/property-ids-trinary-operator (Depends-on,
9507         configure.ac): Likewise.
9508         * modules/unictype/property-ignorable-control (Depends-on,
9509         configure.ac): Likewise.
9510         * modules/unictype/property-iso-control (Depends-on, configure.ac):
9511         Likewise.
9512         * modules/unictype/property-join-control (Depends-on, configure.ac):
9513         Likewise.
9514         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
9515         Likewise.
9516         * modules/unictype/property-line-separator (Depends-on, configure.ac):
9517         Likewise.
9518         * modules/unictype/property-logical-order-exception (Depends-on,
9519         configure.ac): Likewise.
9520         * modules/unictype/property-lowercase (Depends-on, configure.ac):
9521         Likewise.
9522         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
9523         * modules/unictype/property-non-break (Depends-on, configure.ac):
9524         Likewise.
9525         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
9526         Likewise.
9527         * modules/unictype/property-numeric (Depends-on, configure.ac):
9528         Likewise.
9529         * modules/unictype/property-other-alphabetic (Depends-on,
9530         configure.ac): Likewise.
9531         * modules/unictype/property-other-default-ignorable-code-point
9532         (Depends-on, configure.ac): Likewise.
9533         * modules/unictype/property-other-grapheme-extend (Depends-on,
9534         configure.ac): Likewise.
9535         * modules/unictype/property-other-id-continue (Depends-on,
9536         configure.ac): Likewise.
9537         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
9538         Likewise.
9539         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
9540         Likewise.
9541         * modules/unictype/property-other-math (Depends-on, configure.ac):
9542         Likewise.
9543         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
9544         Likewise.
9545         * modules/unictype/property-paired-punctuation (Depends-on,
9546         configure.ac): Likewise.
9547         * modules/unictype/property-paragraph-separator (Depends-on,
9548         configure.ac): Likewise.
9549         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
9550         Likewise.
9551         * modules/unictype/property-pattern-white-space (Depends-on,
9552         configure.ac): Likewise.
9553         * modules/unictype/property-private-use (Depends-on, configure.ac):
9554         Likewise.
9555         * modules/unictype/property-punctuation (Depends-on, configure.ac):
9556         Likewise.
9557         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
9558         Likewise.
9559         * modules/unictype/property-radical (Depends-on, configure.ac):
9560         Likewise.
9561         * modules/unictype/property-sentence-terminal (Depends-on,
9562         configure.ac): Likewise.
9563         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
9564         Likewise.
9565         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
9566         * modules/unictype/property-terminal-punctuation (Depends-on,
9567         configure.ac): Likewise.
9568         * modules/unictype/property-titlecase (Depends-on, configure.ac):
9569         Likewise.
9570         * modules/unictype/property-unassigned-code-value (Depends-on,
9571         configure.ac): Likewise.
9572         * modules/unictype/property-unified-ideograph (Depends-on,
9573         configure.ac): Likewise.
9574         * modules/unictype/property-uppercase (Depends-on, configure.ac):
9575         Likewise.
9576         * modules/unictype/property-variation-selector (Depends-on,
9577         configure.ac): Likewise.
9578         * modules/unictype/property-white-space (Depends-on, configure.ac):
9579         Likewise.
9580         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
9581         Likewise.
9582         * modules/unictype/property-xid-start (Depends-on, configure.ac):
9583         Likewise.
9584         * modules/unictype/property-zero-width (Depends-on, configure.ac):
9585         Likewise.
9586         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
9587         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
9588         Likewise.
9589
9590 2009-12-31  Bruno Haible  <bruno@clisp.org>
9591
9592         Remove unnecessary AC_C_INLINE invocation.
9593         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
9594         since 2009-08-21.
9595
9596 2009-12-31  Jim Meyering  <meyering@redhat.com>
9597
9598         maint.mk: don't require explicit gpg_key_ID in cfg.mk
9599         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
9600         With this change, we can all remove the gpg_key_ID = ... definition
9601         from our respective cfg.mk files.
9602
9603         maint.mk: create announcement template in ~/, not in /tmp
9604         * top/maint.mk (emit_upload_commands): Adjust.
9605         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
9606         Remove temporary file, .ci-msg.
9607
9608 2009-12-31  Eric Blake  <ebb9@byu.net>
9609
9610         link-warning: always build headers with link warnings
9611         * modules/arpa_inet (Makefile.am): Always build replacement
9612         header.
9613         * modules/ctype (Makefile.am): Likewise.
9614         * modules/dirent (Makefile.am): Likewise.
9615         * modules/inttypes (Makefile.am): Likewise.
9616         * modules/langinfo (Makefile.am): Likewise.
9617         * modules/locale (Makefile.am): Likewise.
9618         * modules/spawn (Makefile.am): Likewise.
9619         * modules/sys_file (Makefile.am): Likewise.
9620         * modules/sys_ioctl (Makefile.am): Likewise.
9621         * modules/sys_select (Makefile.am): Likewise.
9622         * modules/sys_socket (Makefile.am): Likewise.
9623         * modules/sys_times (Makefile.am): Likewise.
9624         * modules/sys_utsname (Makefile.am): Likewise.
9625         * modules/sys_wait (Makefile.am): Likewise.
9626         * modules/wchar (Makefile.am): Likewise.
9627         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
9628         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
9629         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
9630         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
9631         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
9632         Likewise.
9633         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
9634         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
9635         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
9636         Likewise.
9637         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
9638         Likewise.
9639         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
9640         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
9641         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
9642         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9643         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9644         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
9645         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
9646         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
9647         (gl_WCHAR_H_DEFAULTS): Likewise.
9648
9649 2009-12-31  Eric Blake  <ebb9@byu.net>
9650
9651         signal, spawn: use link warnings
9652         * lib/signal.in.h (sigset_t): Make unconditional.
9653         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
9654         (sigpending, sigprocmask, sigaction): Add link warnings.
9655         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
9656         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
9657         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
9658         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
9659         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
9660         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
9661         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
9662         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
9663         (posix_spawn_file_actions_destroy)
9664         (posix_spawn_file_actions_addopen)
9665         (posix_spawn_file_actions_addclose)
9666         (posix_spawn_file_actions_adddup2): Likewise.
9667         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
9668         * tests/test-signal.c (main): Enhance test.
9669
9670         spawn: improve wrapper support
9671         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
9672         (gl_SPAWN_H_DEFAULTS): New defaults.
9673         * modules/spawn (Makefile.am): Substitute them.
9674         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
9675         Only declare if missing or broken.
9676
9677         sys_times, sys_utsname: use include_next
9678         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
9679         header.
9680         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
9681         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
9682         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
9683         * modules/sys_times (Depends-on): Add include_next.
9684         (Makefile.am): Substitute additional values.
9685         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
9686         * lib/sys_times.in.h (includes): Include native header, if
9687         available.
9688         * lib/sys_utsname.in.h (includes): Likewise.
9689         * tests/test-sys_times.c (main): Enhance test.
9690
9691         fdutimensat: revert prior patch
9692         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
9693         utimens.h.
9694         Reported by Bruno Haible.
9695
9696 2009-12-30  Eric Blake  <ebb9@byu.net>
9697
9698         sys_wait: drop link-warning dependency
9699         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
9700         link-warning efforts.
9701         * lib/sys_wait.in.h: Likewise.
9702
9703         fdutimensat: remove bogus dependency
9704         * modules/fdutimensat (Depends-on): Drop inline.
9705
9706         unistd: fix typo
9707         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
9708
9709 2009-12-30  Bruno Haible  <bruno@clisp.org>
9710
9711         Fix compilation error with Solaris cc.
9712         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
9713         * lib/unicase/u16-is-invariant.c: Likewise.
9714         * lib/unicase/u32-is-invariant.c: Likewise.
9715         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
9716
9717 2009-12-30  Bruno Haible  <bruno@clisp.org>
9718
9719         Fix test crash.
9720         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
9721         locales.
9722         Reported by Simon Josefsson <simon@josefsson.org>.
9723
9724 2009-12-30  Bruno Haible  <bruno@clisp.org>
9725
9726         Fix compilation error on most platforms.
9727         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
9728         Reported by Simon Josefsson <simon@josefsson.org>
9729         and Nelson H. F. Beebe <beebe@math.utah.edu>.
9730
9731 2009-12-30  Eric Blake  <ebb9@byu.net>
9732
9733         futimens, utimensat: work around ntfs-3g bug
9734         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
9735         a ctime bug is present, and expand workaround to cover ntfs-3g.
9736         * lib/utimens.c (fdutimens, lutimens): Likewise.
9737         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
9738         (validate_timespec): Adjust return value.
9739         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
9740         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9741         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
9742
9743 2009-12-29  Eric Blake  <ebb9@byu.net>
9744
9745         link-warning: make usage consistent
9746         * modules/ctype (Depends-on): Add link-warning.
9747         (Makefile.am): Update rules accordingly.
9748         * modules/langinfo (Depends-on, Makefile.am): Likewise.
9749         * modules/locale (Depends-on, Makefile.am): Likewise.
9750         * modules/sys_file (Makefile.am): Likewise.
9751         * modules/getopt-posix (Makefile.am): Delete unused link warning
9752         efforts.
9753         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
9754         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
9755         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
9756         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
9757
9758         stdio: remove unused variables
9759         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
9760         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
9761         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
9762
9763         tests: test more substitute headers
9764         * modules/ctype-tests: New file.
9765         * modules/dirent-tests: Likewise.
9766         * modules/spawn-tests: Likewise.
9767         * modules/sys_file-tests: Likewise.
9768         * modules/sys_ioctl-tests: Likewise.
9769         * modules/sys_wait-tests: Likewise.
9770         * tests/test-ctype.c: Likewise.
9771         * tests/test-dirent.c: Likewise.
9772         * tests/test-spawn.c: Likewise.
9773         * tests/test-sys_file.c: Likewise.
9774         * tests/test-sys_ioctl.c: Likewise.
9775         * tests/test-sys_wait.c: Likewise.
9776         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
9777         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
9778         whether or not flock is in use.
9779
9780         tests: remove License section from module
9781         * modules/arpa_inet-tests: Remove unneeded section.
9782         * modules/byteswap-tests: Likewise.
9783         * modules/ceilf-tests: Likewise.
9784         * modules/ceill-tests: Likewise.
9785         * modules/crypto/des-tests: Likewise.
9786         * modules/crypto/gc-arcfour-tests: Likewise.
9787         * modules/crypto/gc-arctwo-tests: Likewise.
9788         * modules/crypto/gc-des-tests: Likewise.
9789         * modules/crypto/gc-hmac-md5-tests: Likewise.
9790         * modules/crypto/gc-hmac-sha1-tests: Likewise.
9791         * modules/crypto/gc-md2-tests: Likewise.
9792         * modules/crypto/gc-md4-tests: Likewise.
9793         * modules/crypto/gc-md5-tests: Likewise.
9794         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
9795         * modules/crypto/gc-rijndael-tests: Likewise.
9796         * modules/crypto/gc-sha1-tests: Likewise.
9797         * modules/crypto/gc-tests: Likewise.
9798         * modules/crypto/md2-tests: Likewise.
9799         * modules/crypto/md4-tests: Likewise.
9800         * modules/fcntl-h-tests: Likewise.
9801         * modules/floorf-tests: Likewise.
9802         * modules/floorl-tests: Likewise.
9803         * modules/frexp-nolibm-tests: Likewise.
9804         * modules/frexp-tests: Likewise.
9805         * modules/frexpl-nolibm-tests: Likewise.
9806         * modules/frexpl-tests: Likewise.
9807         * modules/getaddrinfo-tests: Likewise.
9808         * modules/inttypes-tests: Likewise.
9809         * modules/isfinite-tests: Likewise.
9810         * modules/isinf-tests: Likewise.
9811         * modules/ldexpl-tests: Likewise.
9812         * modules/locale-tests: Likewise.
9813         * modules/math-tests: Likewise.
9814         * modules/netdb-tests: Likewise.
9815         * modules/netinet_in-tests: Likewise.
9816         * modules/printf-frexp-tests: Likewise.
9817         * modules/printf-frexpl-tests: Likewise.
9818         * modules/priv-set-tests: Likewise.
9819         * modules/random_r-tests: Likewise.
9820         * modules/round-tests: Likewise.
9821         * modules/roundf-tests: Likewise.
9822         * modules/roundl-tests: Likewise.
9823         * modules/search-tests: Likewise.
9824         * modules/select-tests: Likewise.
9825         * modules/signal-tests: Likewise.
9826         * modules/stdbool-tests: Likewise.
9827         * modules/stddef-tests: Likewise.
9828         * modules/stdint-tests: Likewise.
9829         * modules/stdio-tests: Likewise.
9830         * modules/stdlib-tests: Likewise.
9831         * modules/string-tests: Likewise.
9832         * modules/strings-tests: Likewise.
9833         * modules/sys_select-tests: Likewise.
9834         * modules/sys_socket-tests: Likewise.
9835         * modules/sys_stat-tests: Likewise.
9836         * modules/sys_time-tests: Likewise.
9837         * modules/sys_utsname-tests: Likewise.
9838         * modules/sysexits-tests: Likewise.
9839         * modules/time-tests: Likewise.
9840         * modules/trunc-tests: Likewise.
9841         * modules/truncf-tests: Likewise.
9842         * modules/truncl-tests: Likewise.
9843         * modules/tsearch-tests: Likewise.
9844         * modules/unistd-tests: Likewise.
9845         * modules/wchar-tests: Likewise.
9846         * modules/wctype-tests: Likewise.
9847
9848         tests: fix license on several tests
9849         * tests/test-des.c: Update to GPLv3+.
9850         * tests/test-flock.c: Likewise.
9851         * tests/test-fsync.c: Likewise.
9852         * tests/test-futimens.h: Likewise.
9853         * tests/test-gc-arcfour.c: Likewise.
9854         * tests/test-gc-arctwo.c: Likewise.
9855         * tests/test-gc-des.c: Likewise.
9856         * tests/test-gc-hmac-md5.c: Likewise.
9857         * tests/test-gc-hmac-sha1.c: Likewise.
9858         * tests/test-gc-md2.c: Likewise.
9859         * tests/test-gc-md4.c: Likewise.
9860         * tests/test-gc-md5.c: Likewise.
9861         * tests/test-gc-pbkdf2-sha1.c: Likewise.
9862         * tests/test-gc-rijndael.c: Likewise.
9863         * tests/test-gc-sha1.c: Likewise.
9864         * tests/test-gc.c: Likewise.
9865         * tests/test-getcwd.c: Likewise.
9866         * tests/test-link.c: Likewise.
9867         * tests/test-link.h: Likewise.
9868         * tests/test-lutimens.h: Likewise.
9869         * tests/test-md2.c: Likewise.
9870         * tests/test-md4.c: Likewise.
9871         * tests/test-mkdir.h: Likewise.
9872         * tests/test-rename.c: Likewise.
9873         * tests/test-rename.h: Likewise.
9874         * tests/test-safe-alloc.c: Likewise.
9875         * tests/test-utimens-common.h: Likewise.
9876         * tests/test-utimens.h: Likewise.
9877
9878         maint: sync license texts
9879         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
9880         * doc/gpl-3.0.texi: Revert copyright year update.
9881         * doc/lgpl-3.0.texi: Likewise.
9882
9883 2009-12-29  Jim Meyering  <meyering@redhat.com>
9884
9885         update nearly all FSF copyright year lists to include 2009
9886         The files named by the following are exempted:
9887             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
9888               test -f "$dst" && { echo "$dst"; continue; }
9889               test -d "$dst" || continue
9890               echo "$dst"/$(basename "$src")
9891             done > exempt
9892             git ls-files tests/unictype >> exempt
9893         In the remaining files, convert to all-interval notation if
9894         - there is already at least one year interval like 2000-2003
9895         - the file is maintained by me
9896         - the file is in lib/uni*/, where that style already prevails
9897         Otherwise, use update-copyright's default.
9898
9899 2009-12-29  Simon Josefsson  <simon@josefsson.org>
9900         and Eric Blake  <ebb9@byu.net>
9901
9902         tests: don't require debug system() to pass
9903         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
9904         * tests/test-rmdir.h (test_rmdir_func): Likewise.
9905         * tests/test-unlink.h (test_unlink_func): Likewise.
9906         * tests/test-fstatat.c (main): ...into callers.
9907         * tests/test-lstat.c (main): Likewise.
9908         * tests/test-rmdir.c (main): Likewise.
9909         * tests/test-unlink.c (main): Likewise.
9910         * tests/test-unlinkat.c (main): Likewise.
9911         * tests/test-areadlink-with-size.c (main): Don't require a
9912         debug-only system call to pass, aiding cross-testing to mingw.
9913         * tests/test-areadlink.c (main): Likewise.
9914         * tests/test-areadlinkat-with-size.c (main): Likewise.
9915         * tests/test-areadlinkat.c (main): Likewise.
9916         * tests/test-canonicalize-lgpl.c (main): Likewise.
9917         * tests/test-canonicalize.c (main): Likewise.
9918         * tests/test-chown.c (main): Likewise.
9919         * tests/test-fchownat.c (main): Likewise.
9920         * tests/test-lchown.c (main): Likewise.
9921         * tests/test-fdutimensat.c (main): Likewise.
9922         * tests/test-futimens.c (main): Likewise.
9923         * tests/test-link.c (main): Likewise.
9924         * tests/test-linkat.c (main): Likewise.
9925         * tests/test-mkdir.c (main): Likewise.
9926         * tests/test-mkdirat.c (main): Likewise.
9927         * tests/test-mkfifo.c (main): Likewise.
9928         * tests/test-mkfifoat.c (main): Likewise.
9929         * tests/test-mknod.c (main): Likewise.
9930         * tests/test-readlink.c (main): Likewise.
9931         * tests/test-remove.c (main): Likewise.
9932         * tests/test-rename.c (main): Likewise.
9933         * tests/test-renameat.c (main): Likewise.
9934         * tests/test-symlink.c (main): Likewise.
9935         * tests/test-symlinkat.c (main): Likewise.
9936         * tests/test-utimens.c (main): Likewise.
9937         * tests/test-utimensat.c (main): Likewise.
9938
9939 2009-12-29  Simon Josefsson  <simon@josefsson.org>
9940
9941         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
9942         on $(UNUSED_PARAMETER_H) to avoid build failure.
9943
9944 2009-12-28  Jim Meyering  <meyering@redhat.com>
9945
9946         update-copyright: you may specify a max. line length other than 72
9947         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
9948
9949         maint: use consistent FSF copyright line syntax
9950         * lib/posixtm.c: Add missing comma in FSF copyright line.
9951         * lib/posixtm.h: Likewise.
9952         * lib/getugroups.c: Add missing ", Inc.".
9953
9954         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
9955         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
9956         FSF copyright line.  Remove trailing blanks.
9957
9958 2009-12-28  Eric Blake  <ebb9@byu.net>
9959
9960         test-dup2: reduce dependencies
9961         * modules/cloexec (Configure.ac): Set witness.
9962         * modules/dup2-tests (Depends-on): Drop cloexec.
9963         * tests/test-dup2.c (main): Skip portion of test if cloexec module
9964         not present.
9965         Suggested by Bruno Haible.
9966
9967 2009-12-26  Bruno Haible  <bruno@clisp.org>
9968
9969         Remove an unneeded dependency.
9970         * modules/fseterr (Depends-on): Remove dup2.
9971
9972 2009-12-26  Eric Blake  <ebb9@byu.net>
9973
9974         tests: use macros.h in more places
9975         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
9976         (ASSERT_STREAM): Provide default of stderr.
9977         * tests/test-dirent-safer.c: Include macros.h, using alternate
9978         stream for assertions.
9979         * tests/test-dup-safer.c: Likewise.
9980         * tests/test-freopen-safer.c: Likewise.
9981         * tests/test-getopt.c: Likewise.
9982         * tests/test-openat-safer.c: Likewise.
9983         * tests/test-pipe.c: Likewise.
9984         * tests/test-popen-safer.c: Likewise.
9985         * modules/dirent-safer-tests (Files): Include macros.h.
9986         * modules/unistd-safer-tests (Files): Likewise.
9987         * modules/freopen-safer-tests (Files): Likewise.
9988         * modules/getopt-posix-tests (Files): Likewise.
9989         * modules/openat-safer-tests (Files): Likewise.
9990         * modules/pipe-tests (Files): Likewise.
9991
9992 2009-12-26  Bruno Haible  <bruno@clisp.org>
9993
9994         javacomp: Portability fix.
9995         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
9996         that it also works on Solaris.
9997
9998 2009-12-26  Bruno Haible  <bruno@clisp.org>
9999
10000         localename: Fix storage allocation of gl_locale_name_thread's result.
10001         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
10002         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
10003         all platforms that have 'uselocale'.
10004         (gl_locale_name_thread_unsafe): New function, extracted from
10005         gl_locale_name_thread.
10006         (gl_locale_name_thread): Call struniq on all platforms that have
10007         'uselocale'.
10008         * tests/test-localename.c (test_locale_name_thread): Check that the
10009         resulting strings are permanently allocated.
10010         * modules/localename-tests (Depends-on): Add strdup.
10011
10012 2009-12-26  Bruno Haible  <bruno@clisp.org>
10013
10014         * tests/test-localename.c (categories): Fill in the strings.
10015
10016 2009-12-26  Jim Meyering  <meyering@redhat.com>
10017
10018         isdir: complete the removal of m4/isdir.m4
10019         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
10020
10021         isdir: clean up, since at least grep still uses it
10022         * lib/isdir.c: Include "isdir.h".
10023         (S_ISDIR): Remove now-unneeded definition.
10024         * modules/isdir (Files): Add lib/isdir.h.
10025         * lib/isdir.h: New file, with declaration.
10026         * m4/isdir.m4: Remove file -- unneeded.
10027
10028 2009-12-25  Bruno Haible  <bruno@clisp.org>
10029
10030         selinux-h: Make generated .h files standalone.
10031         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
10032         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
10033         * lib/se-selinux.in.h: Likewise.
10034         * modules/selinux-h (Depends-on): Add unused-parameter.
10035         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
10036         selinux/selinux.h and selinux/context.h.
10037         Suggested by Eric Blake.
10038
10039 2009-12-25  Bruno Haible  <bruno@clisp.org>
10040
10041         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
10042         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
10043         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
10044         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
10045         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
10046
10047 2009-12-24  Bruno Haible  <bruno@clisp.org>
10048
10049         openat: Fix warning.
10050         * lib/openat-proc.c: Include <unistd.h>.
10051
10052 2009-12-24  Bruno Haible  <bruno@clisp.org>
10053
10054         New module 'unused-parameter'.
10055         * build-aux/unused-parameter.h: New file, extracted from earlier
10056         gnulib-common.m4.
10057         * modules/unused-parameter: New file.
10058         * lib/unistr.h: Include unused-parameter.h.
10059         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
10060         _GL_UNUSED.
10061         * modules/unistr/base (Depends-on): Add unused-parameter.
10062
10063 2009-12-24  Bruno Haible  <bruno@clisp.org>
10064
10065         Add missing dependencies to 'extensions' module.
10066         * m4/extensions.m4: Add comment.
10067         * modules/accept4 (Depends-on): Add extensions.
10068         * modules/dup3 (Depends-on): Likewise.
10069         * modules/fcntl (Depends-on): Likewise.
10070         * modules/futimens (Depends-on): Likewise.
10071         * modules/mknod (Depends-on): Likewise.
10072         * modules/pipe2 (Depends-on): Likewise.
10073         * modules/stat-time (Depends-on): Likewise.
10074         * modules/strcasestr-simple (Depends-on): Likewise.
10075         * modules/strsignal (Depends-on): Likewise.
10076         * modules/utimensat (Depends-on): Likewise.
10077         * modules/localcharset (Depends-on): Likewise. Needed because of
10078         gl_FCNTL_O_FLAGS.
10079         * modules/wcrtomb (Depends-on): Likewise. Needed because of
10080         AC_TYPE_MBSTATE_T.
10081         * modules/wcsnrtombs (Depends-on): Likewise.
10082         * modules/wcsrtombs (Depends-on): Likewise.
10083
10084 2009-12-24  Bruno Haible  <bruno@clisp.org>
10085
10086         binary-io: Avoid gcc warning due to SET_BINARY.
10087         * lib/binary-io.h (SET_BINARY): Cast the result to void.
10088         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
10089
10090 2009-12-24  Bruno Haible  <bruno@clisp.org>
10091
10092         Avoid future namespace pollution on glibc systems.
10093         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
10094         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
10095         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
10096         glibc systems.
10097
10098 2009-12-24  Bruno Haible  <bruno@clisp.org>
10099
10100         Refactor common macros used in tests.
10101         * tests/macros.h: New file.
10102         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
10103         and/or <stdlib.h>, if appropriate.
10104         (ASSERT, SIZEOF): Remove macros.
10105         * tests/test-areadlink-with-size.c: Likewise.
10106         * tests/test-areadlinkat.c: Likewise.
10107         * tests/test-areadlinkat-with-size.c: Likewise.
10108         * tests/test-argmatch.c: Likewise.
10109         * tests/test-argv-iter.c: Likewise.
10110         * tests/test-array-mergesort.c: Likewise.
10111         * tests/test-array_list.c: Likewise.
10112         * tests/test-array_oset.c: Likewise.
10113         * tests/test-avltree_list.c: Likewise.
10114         * tests/test-avltree_oset.c: Likewise.
10115         * tests/test-avltreehash_list.c: Likewise.
10116         * tests/test-base64.c: Likewise.
10117         * tests/test-binary-io.c: Likewise.
10118         * tests/test-bitrotate.c: Likewise.
10119         * tests/test-btowc.c: Likewise.
10120         * tests/test-byteswap.c: Likewise.
10121         * tests/test-c-ctype.c: Likewise.
10122         * tests/test-c-stack.c: Likewise.
10123         * tests/test-c-strcasecmp.c: Likewise.
10124         * tests/test-c-strcasestr.c: Likewise.
10125         * tests/test-c-strncasecmp.c: Likewise.
10126         * tests/test-c-strstr.c: Likewise.
10127         * tests/test-canonicalize-lgpl.c: Likewise.
10128         * tests/test-canonicalize.c: Likewise.
10129         * tests/test-carray_list.c: Likewise.
10130         * tests/test-ceilf1.c: Likewise.
10131         * tests/test-ceilf2.c: Likewise.
10132         * tests/test-ceill.c: Likewise.
10133         * tests/test-chown.c: Likewise.
10134         * tests/test-cloexec.c: Likewise.
10135         * tests/test-copy-acl.c: Likewise.
10136         * tests/test-copy-file.c: Likewise.
10137         * tests/test-count-one-bits.c: Likewise.
10138         * tests/test-dprintf-posix.c: Likewise.
10139         * tests/test-dup2.c: Likewise.
10140         * tests/test-dup3.c: Likewise.
10141         * tests/test-duplocale.c: Likewise.
10142         * tests/test-fbufmode.c: Likewise.
10143         * tests/test-fchdir.c: Likewise.
10144         * tests/test-fchownat.c: Likewise.
10145         * tests/test-fcntl-safer.c: Likewise.
10146         * tests/test-fcntl.c: Likewise.
10147         * tests/test-fdopendir.c: Likewise.
10148         * tests/test-fdutimensat.c: Likewise.
10149         * tests/test-fflush2.c: Likewise.
10150         * tests/test-file-has-acl.c: Likewise.
10151         * tests/test-filevercmp.c: Likewise.
10152         * tests/test-flock.c: Likewise.
10153         * tests/test-floorf1.c: Likewise.
10154         * tests/test-floorf2.c: Likewise.
10155         * tests/test-floorl.c: Likewise.
10156         * tests/test-fnmatch.c: Likewise.
10157         * tests/test-fopen.h: Likewise.
10158         * tests/test-fpending.c: Likewise.
10159         * tests/test-fprintf-posix.c: Likewise.
10160         * tests/test-fpurge.c: Likewise.
10161         * tests/test-freadable.c: Likewise.
10162         * tests/test-freadahead.c: Likewise.
10163         * tests/test-freading.c: Likewise.
10164         * tests/test-freadptr.c: Likewise.
10165         * tests/test-freadptr2.c: Likewise.
10166         * tests/test-freadseek.c: Likewise.
10167         * tests/test-freopen.c: Likewise.
10168         * tests/test-frexp.c: Likewise.
10169         * tests/test-frexpl.c: Likewise.
10170         * tests/test-fseek.c: Likewise.
10171         * tests/test-fseeko.c: Likewise.
10172         * tests/test-fstatat.c: Likewise.
10173         * tests/test-fstrcmp.c: Likewise.
10174         * tests/test-fsync.c: Likewise.
10175         * tests/test-ftell.c: Likewise.
10176         * tests/test-ftello.c: Likewise.
10177         * tests/test-func.c: Likewise.
10178         * tests/test-futimens.c: Likewise.
10179         * tests/test-fwritable.c: Likewise.
10180         * tests/test-fwriting.c: Likewise.
10181         * tests/test-getcwd.c: Likewise.
10182         * tests/test-getdate.c: Likewise.
10183         * tests/test-getdelim.c: Likewise.
10184         * tests/test-getdtablesize.c: Likewise.
10185         * tests/test-getgroups.c: Likewise.
10186         * tests/test-getline.c: Likewise.
10187         * tests/test-getndelim2.c: Likewise.
10188         * tests/test-glob.c: Likewise.
10189         * tests/test-hash.c: Likewise.
10190         * tests/test-i-ring.c: Likewise.
10191         * tests/test-iconv-utf.c: Likewise.
10192         * tests/test-iconv.c: Likewise.
10193         * tests/test-idpriv-drop.c: Likewise.
10194         * tests/test-idpriv-droptemp.c: Likewise.
10195         * tests/test-inet_ntop.c: Likewise.
10196         * tests/test-inet_pton.c: Likewise.
10197         * tests/test-isblank.c: Likewise.
10198         * tests/test-isfinite.c: Likewise.
10199         * tests/test-isinf.c: Likewise.
10200         * tests/test-isnan.c: Likewise.
10201         * tests/test-isnand.h: Likewise.
10202         * tests/test-isnanf.h: Likewise.
10203         * tests/test-isnanl.h: Likewise.
10204         * tests/test-lchown.c: Likewise.
10205         * tests/test-ldexpl.c: Likewise.
10206         * tests/test-link.c: Likewise.
10207         * tests/test-linkat.c: Likewise.
10208         * tests/test-linked_list.c: Likewise.
10209         * tests/test-linkedhash_list.c: Likewise.
10210         * tests/test-localename.c: Likewise.
10211         * tests/test-lseek.c: Likewise.
10212         * tests/test-lstat.c: Likewise.
10213         * tests/test-mbmemcasecmp.c: Likewise.
10214         * tests/test-mbmemcasecoll.c: Likewise.
10215         * tests/test-mbrtowc.c: Likewise.
10216         * tests/test-mbscasecmp.c: Likewise.
10217         * tests/test-mbscasestr1.c: Likewise.
10218         * tests/test-mbscasestr2.c: Likewise.
10219         * tests/test-mbscasestr3.c: Likewise.
10220         * tests/test-mbscasestr4.c: Likewise.
10221         * tests/test-mbschr.c: Likewise.
10222         * tests/test-mbscspn.c: Likewise.
10223         * tests/test-mbsinit.c: Likewise.
10224         * tests/test-mbsncasecmp.c: Likewise.
10225         * tests/test-mbsnrtowcs.c: Likewise.
10226         * tests/test-mbspbrk.c: Likewise.
10227         * tests/test-mbspcasecmp.c: Likewise.
10228         * tests/test-mbsrchr.c: Likewise.
10229         * tests/test-mbsrtowcs.c: Likewise.
10230         * tests/test-mbsspn.c: Likewise.
10231         * tests/test-mbsstr1.c: Likewise.
10232         * tests/test-mbsstr2.c: Likewise.
10233         * tests/test-mbsstr3.c: Likewise.
10234         * tests/test-memchr.c: Likewise.
10235         * tests/test-memchr2.c: Likewise.
10236         * tests/test-memcmp.c: Likewise.
10237         * tests/test-memmem.c: Likewise.
10238         * tests/test-memrchr.c: Likewise.
10239         * tests/test-mkdir.c: Likewise.
10240         * tests/test-mkdirat.c: Likewise.
10241         * tests/test-mkfifo.c: Likewise.
10242         * tests/test-mkfifoat.c: Likewise.
10243         * tests/test-mknod.c: Likewise.
10244         * tests/test-nanosleep.c: Likewise.
10245         * tests/test-nl_langinfo.c: Likewise.
10246         * tests/test-obstack-printf.c: Likewise.
10247         * tests/test-open.c: Likewise.
10248         * tests/test-openat.c: Likewise.
10249         * tests/test-pipe-filter-gi1.c: Likewise.
10250         * tests/test-pipe-filter-gi2-main.c: Likewise.
10251         * tests/test-pipe-filter-ii1.c: Likewise.
10252         * tests/test-pipe-filter-ii2-main.c: Likewise.
10253         * tests/test-pipe2.c: Likewise.
10254         * tests/test-popen.h: Likewise.
10255         * tests/test-posixtm.c: Likewise.
10256         * tests/test-pread.c: Likewise.
10257         * tests/test-printf-frexp.c: Likewise.
10258         * tests/test-printf-frexpl.c: Likewise.
10259         * tests/test-printf-posix.c: Likewise.
10260         * tests/test-priv-set.c: Likewise.
10261         * tests/test-quotearg.c: Likewise.
10262         * tests/test-random_r.c: Likewise.
10263         * tests/test-rawmemchr.c: Likewise.
10264         * tests/test-rbtree_list.c: Likewise.
10265         * tests/test-rbtree_oset.c: Likewise.
10266         * tests/test-rbtreehash_list.c: Likewise.
10267         * tests/test-readlink.c: Likewise.
10268         * tests/test-remove.c: Likewise.
10269         * tests/test-rename.c: Likewise.
10270         * tests/test-renameat.c: Likewise.
10271         * tests/test-rmdir.c: Likewise.
10272         * tests/test-round1.c: Likewise.
10273         * tests/test-roundf1.c: Likewise.
10274         * tests/test-roundl.c: Likewise.
10275         * tests/test-safe-alloc.c: Likewise.
10276         * tests/test-sameacls.c: Likewise.
10277         * tests/test-set-mode-acl.c: Likewise.
10278         * tests/test-setenv.c: Likewise.
10279         * tests/test-sigaction.c: Likewise.
10280         * tests/test-signbit.c: Likewise.
10281         * tests/test-sleep.c: Likewise.
10282         * tests/test-snprintf-posix.c: Likewise.
10283         * tests/test-snprintf.c: Likewise.
10284         * tests/test-sprintf-posix.c: Likewise.
10285         * tests/test-stat-time.c: Likewise.
10286         * tests/test-stat.c: Likewise.
10287         * tests/test-strcasestr.c: Likewise.
10288         * tests/test-strchrnul.c: Likewise.
10289         * tests/test-strerror.c: Likewise.
10290         * tests/test-striconv.c: Likewise.
10291         * tests/test-striconveh.c: Likewise.
10292         * tests/test-striconveha.c: Likewise.
10293         * tests/test-strsignal.c: Likewise.
10294         * tests/test-strstr.c: Likewise.
10295         * tests/test-strtod.c: Likewise.
10296         * tests/test-strverscmp.c: Likewise.
10297         * tests/test-symlink.c: Likewise.
10298         * tests/test-symlinkat.c: Likewise.
10299         * tests/test-trunc1.c: Likewise.
10300         * tests/test-trunc2.c: Likewise.
10301         * tests/test-truncf1.c: Likewise.
10302         * tests/test-truncf2.c: Likewise.
10303         * tests/test-truncl.c: Likewise.
10304         * tests/test-uname.c: Likewise.
10305         * tests/test-unlink.c: Likewise.
10306         * tests/test-unlinkat.c: Likewise.
10307         * tests/test-unsetenv.c: Likewise.
10308         * tests/test-usleep.c: Likewise.
10309         * tests/test-utimens.c: Likewise.
10310         * tests/test-utimensat.c: Likewise.
10311         * tests/test-vasnprintf-posix.c: Likewise.
10312         * tests/test-vasnprintf-posix2.c: Likewise.
10313         * tests/test-vasnprintf.c: Likewise.
10314         * tests/test-vasprintf-posix.c: Likewise.
10315         * tests/test-vasprintf.c: Likewise.
10316         * tests/test-vdprintf-posix.c: Likewise.
10317         * tests/test-vfprintf-posix.c: Likewise.
10318         * tests/test-vprintf-posix.c: Likewise.
10319         * tests/test-vsnprintf-posix.c: Likewise.
10320         * tests/test-vsnprintf.c: Likewise.
10321         * tests/test-vsprintf-posix.c: Likewise.
10322         * tests/test-wcrtomb.c: Likewise.
10323         * tests/test-wcsnrtombs.c: Likewise.
10324         * tests/test-wcsrtombs.c: Likewise.
10325         * tests/test-wctype.c: Likewise.
10326         * tests/test-wcwidth.c: Likewise.
10327         * tests/test-xfprintf-posix.c: Likewise.
10328         * tests/test-xmemdup0.c: Likewise.
10329         * tests/test-xprintf-posix.c: Likewise.
10330         * tests/test-xvasprintf.c: Likewise.
10331         * tests/unicase/test-locale-language.c: Likewise.
10332         * tests/unicase/test-mapping-part1.h: Likewise.
10333         * tests/unicase/test-predicate-part1.h: Likewise.
10334         * tests/unicase/test-u8-casecmp.c: Likewise.
10335         * tests/unicase/test-u8-casecoll.c: Likewise.
10336         * tests/unicase/test-u8-casefold.c: Likewise.
10337         * tests/unicase/test-u8-is-cased.c: Likewise.
10338         * tests/unicase/test-u8-is-casefolded.c: Likewise.
10339         * tests/unicase/test-u8-is-lowercase.c: Likewise.
10340         * tests/unicase/test-u8-is-titlecase.c: Likewise.
10341         * tests/unicase/test-u8-is-uppercase.c: Likewise.
10342         * tests/unicase/test-u8-tolower.c: Likewise.
10343         * tests/unicase/test-u8-totitle.c: Likewise.
10344         * tests/unicase/test-u8-toupper.c: Likewise.
10345         * tests/unicase/test-u16-casecmp.c: Likewise.
10346         * tests/unicase/test-u16-casecoll.c: Likewise.
10347         * tests/unicase/test-u16-casefold.c: Likewise.
10348         * tests/unicase/test-u16-is-cased.c: Likewise.
10349         * tests/unicase/test-u16-is-casefolded.c: Likewise.
10350         * tests/unicase/test-u16-is-lowercase.c: Likewise.
10351         * tests/unicase/test-u16-is-titlecase.c: Likewise.
10352         * tests/unicase/test-u16-is-uppercase.c: Likewise.
10353         * tests/unicase/test-u16-tolower.c: Likewise.
10354         * tests/unicase/test-u16-totitle.c: Likewise.
10355         * tests/unicase/test-u16-toupper.c: Likewise.
10356         * tests/unicase/test-u32-casecmp.c: Likewise.
10357         * tests/unicase/test-u32-casecoll.c: Likewise.
10358         * tests/unicase/test-u32-casefold.c: Likewise.
10359         * tests/unicase/test-u32-is-cased.c: Likewise.
10360         * tests/unicase/test-u32-is-casefolded.c: Likewise.
10361         * tests/unicase/test-u32-is-lowercase.c: Likewise.
10362         * tests/unicase/test-u32-is-titlecase.c: Likewise.
10363         * tests/unicase/test-u32-is-uppercase.c: Likewise.
10364         * tests/unicase/test-u32-tolower.c: Likewise.
10365         * tests/unicase/test-u32-totitle.c: Likewise.
10366         * tests/unicase/test-u32-toupper.c: Likewise.
10367         * tests/unicase/test-ulc-casecmp.c: Likewise.
10368         * tests/unicase/test-ulc-casecoll.c: Likewise.
10369         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
10370         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
10371         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
10372         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
10373         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
10374         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
10375         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
10376         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
10377         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
10378         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
10379         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
10380         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
10381         * tests/unictype/test-bidi_byname.c: Likewise.
10382         * tests/unictype/test-bidi_name.c: Likewise.
10383         * tests/unictype/test-bidi_of.c: Likewise.
10384         * tests/unictype/test-bidi_test.c: Likewise.
10385         * tests/unictype/test-block_list.c: Likewise.
10386         * tests/unictype/test-block_of.c: Likewise.
10387         * tests/unictype/test-block_test.c: Likewise.
10388         * tests/unictype/test-categ_and.c: Likewise.
10389         * tests/unictype/test-categ_and_not.c: Likewise.
10390         * tests/unictype/test-categ_byname.c: Likewise.
10391         * tests/unictype/test-categ_name.c: Likewise.
10392         * tests/unictype/test-categ_none.c: Likewise.
10393         * tests/unictype/test-categ_of.c: Likewise.
10394         * tests/unictype/test-categ_or.c: Likewise.
10395         * tests/unictype/test-categ_test_withtable.c: Likewise.
10396         * tests/unictype/test-combining.c: Likewise.
10397         * tests/unictype/test-decdigit.c: Likewise.
10398         * tests/unictype/test-digit.c: Likewise.
10399         * tests/unictype/test-mirror.c: Likewise.
10400         * tests/unictype/test-numeric.c: Likewise.
10401         * tests/unictype/test-pr_byname.c: Likewise.
10402         * tests/unictype/test-pr_test.c: Likewise.
10403         * tests/unictype/test-predicate-part1.h: Likewise.
10404         * tests/unictype/test-scripts.c: Likewise.
10405         * tests/unictype/test-sy_c_ident.c: Likewise.
10406         * tests/unictype/test-sy_java_ident.c: Likewise.
10407         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
10408         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
10409         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
10410         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
10411         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
10412         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
10413         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
10414         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
10415         * tests/uninorm/test-canonical-decomposition.c: Likewise.
10416         * tests/uninorm/test-compat-decomposition.c: Likewise.
10417         * tests/uninorm/test-composition.c: Likewise.
10418         * tests/uninorm/test-decomposing-form.c: Likewise.
10419         * tests/uninorm/test-decomposition.c: Likewise.
10420         * tests/uninorm/test-u8-nfc.c: Likewise.
10421         * tests/uninorm/test-u8-nfd.c: Likewise.
10422         * tests/uninorm/test-u8-nfkc.c: Likewise.
10423         * tests/uninorm/test-u8-nfkd.c: Likewise.
10424         * tests/uninorm/test-u8-normcmp.c: Likewise.
10425         * tests/uninorm/test-u8-normcoll.c: Likewise.
10426         * tests/uninorm/test-u16-nfc.c: Likewise.
10427         * tests/uninorm/test-u16-nfd.c: Likewise.
10428         * tests/uninorm/test-u16-nfkc.c: Likewise.
10429         * tests/uninorm/test-u16-nfkd.c: Likewise.
10430         * tests/uninorm/test-u16-normcmp.c: Likewise.
10431         * tests/uninorm/test-u16-normcoll.c: Likewise.
10432         * tests/uninorm/test-u32-nfc.c: Likewise.
10433         * tests/uninorm/test-u32-nfd.c: Likewise.
10434         * tests/uninorm/test-u32-nfkc.c: Likewise.
10435         * tests/uninorm/test-u32-nfkd.c: Likewise.
10436         * tests/uninorm/test-u32-normalize-big.c: Likewise.
10437         * tests/uninorm/test-u32-normcmp.c: Likewise.
10438         * tests/uninorm/test-u32-normcoll.c: Likewise.
10439         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
10440         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
10441         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
10442         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
10443         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
10444         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
10445         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
10446         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
10447         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
10448         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
10449         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
10450         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
10451         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
10452         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
10453         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
10454         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
10455         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
10456         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
10457         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
10458         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
10459         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
10460         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
10461         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
10462         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
10463         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
10464         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
10465         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
10466         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
10467         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
10468         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
10469         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
10470         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
10471         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
10472         * tests/uniwidth/test-u8-strwidth.c: Likewise.
10473         * tests/uniwidth/test-u8-width.c: Likewise.
10474         * tests/uniwidth/test-u16-strwidth.c: Likewise.
10475         * tests/uniwidth/test-u16-width.c: Likewise.
10476         * tests/uniwidth/test-u32-strwidth.c: Likewise.
10477         * tests/uniwidth/test-u32-width.c: Likewise.
10478         * tests/uniwidth/test-uc_width.c: Likewise.
10479         * tests/uniwidth/test-uc_width2.c: Likewise.
10480         * modules/acl-tests (Files): Add tests/macros.h.
10481         * modules/areadlink-tests (Files): Likewise.
10482         * modules/areadlink-with-size-tests (Files): Likewise.
10483         * modules/areadlinkat-tests (Files): Likewise.
10484         * modules/areadlinkat-with-size-tests (Files): Likewise.
10485         * modules/argmatch-tests (Files): Likewise.
10486         * modules/argv-iter-tests (Files): Likewise.
10487         * modules/array-list-tests (Files): Likewise.
10488         * modules/array-mergesort-tests (Files): Likewise.
10489         * modules/array-oset-tests (Files): Likewise.
10490         * modules/avltree-list-tests (Files): Likewise.
10491         * modules/avltree-oset-tests (Files): Likewise.
10492         * modules/avltreehash-list-tests (Files): Likewise.
10493         * modules/base64-tests (Files): Likewise.
10494         * modules/binary-io-tests (Files): Likewise.
10495         * modules/bitrotate-tests (Files): Likewise.
10496         * modules/btowc-tests (Files): Likewise.
10497         * modules/byteswap-tests (Files): Likewise.
10498         * modules/c-ctype-tests (Files): Likewise.
10499         * modules/c-stack-tests (Files): Likewise.
10500         * modules/c-strcase-tests (Files): Likewise.
10501         * modules/c-strcasestr-tests (Files): Likewise.
10502         * modules/c-strstr-tests (Files): Likewise.
10503         * modules/canonicalize-lgpl-tests (Files): Likewise.
10504         * modules/canonicalize-tests (Files): Likewise.
10505         * modules/carray-list-tests (Files): Likewise.
10506         * modules/ceilf-tests (Files): Likewise.
10507         * modules/ceill-tests (Files): Likewise.
10508         * modules/chown-tests (Files): Likewise.
10509         * modules/cloexec-tests (Files): Likewise.
10510         * modules/copy-file-tests (Files): Likewise.
10511         * modules/count-one-bits-tests (Files): Likewise.
10512         * modules/dprintf-posix-tests (Files): Likewise.
10513         * modules/dup2-tests (Files): Likewise.
10514         * modules/dup3-tests (Files): Likewise.
10515         * modules/duplocale-tests (Files): Likewise.
10516         * modules/fbufmode-tests (Files): Likewise.
10517         * modules/fchdir-tests (Files): Likewise.
10518         * modules/fcntl-safer-tests (Files): Likewise.
10519         * modules/fcntl-tests (Files): Likewise.
10520         * modules/fdopendir-tests (Files): Likewise.
10521         * modules/fdutimensat-tests (Files): Likewise.
10522         * modules/fflush-tests (Files): Likewise.
10523         * modules/filevercmp-tests (Files): Likewise.
10524         * modules/flock-tests (Files): Likewise.
10525         * modules/floorf-tests (Files): Likewise.
10526         * modules/floorl-tests (Files): Likewise.
10527         * modules/fnmatch-tests (Files): Likewise.
10528         * modules/fopen-safer-tests (Files): Likewise.
10529         * modules/fopen-tests (Files): Likewise.
10530         * modules/fpending-tests (Files): Likewise.
10531         * modules/fprintf-posix-tests (Files): Likewise.
10532         * modules/fpurge-tests (Files): Likewise.
10533         * modules/freadable-tests (Files): Likewise.
10534         * modules/freadahead-tests (Files): Likewise.
10535         * modules/freading-tests (Files): Likewise.
10536         * modules/freadptr-tests (Files): Likewise.
10537         * modules/freadseek-tests (Files): Likewise.
10538         * modules/freopen-tests (Files): Likewise.
10539         * modules/frexp-nolibm-tests (Files): Likewise.
10540         * modules/frexp-tests (Files): Likewise.
10541         * modules/frexpl-nolibm-tests (Files): Likewise.
10542         * modules/frexpl-tests (Files): Likewise.
10543         * modules/fseek-tests (Files): Likewise.
10544         * modules/fseeko-tests (Files): Likewise.
10545         * modules/fstrcmp-tests (Files): Likewise.
10546         * modules/fsync-tests (Files): Likewise.
10547         * modules/ftell-tests (Files): Likewise.
10548         * modules/ftello-tests (Files): Likewise.
10549         * modules/func-tests (Files): Likewise.
10550         * modules/futimens-tests (Files): Likewise.
10551         * modules/fwritable-tests (Files): Likewise.
10552         * modules/fwriting-tests (Files): Likewise.
10553         * modules/getcwd-tests (Files): Likewise.
10554         * modules/getdate-tests (Files): Likewise.
10555         * modules/getdelim-tests (Files): Likewise.
10556         * modules/getdtablesize-tests (Files): Likewise.
10557         * modules/getgroups-tests (Files): Likewise.
10558         * modules/getline-tests (Files): Likewise.
10559         * modules/getndelim2-tests (Files): Likewise.
10560         * modules/glob-tests (Files): Likewise.
10561         * modules/hash-tests (Files): Likewise.
10562         * modules/i-ring-tests (Files): Likewise.
10563         * modules/iconv-tests (Files): Likewise.
10564         * modules/iconv_open-utf-tests (Files): Likewise.
10565         * modules/idpriv-drop-tests (Files): Likewise.
10566         * modules/idpriv-droptemp-tests (Files): Likewise.
10567         * modules/inet_ntop-tests (Files): Likewise.
10568         * modules/inet_pton-tests (Files): Likewise.
10569         * modules/isblank-tests (Files): Likewise.
10570         * modules/isfinite-tests (Files): Likewise.
10571         * modules/isinf-tests (Files): Likewise.
10572         * modules/isnan-tests (Files): Likewise.
10573         * modules/isnand-nolibm-tests (Files): Likewise.
10574         * modules/isnand-tests (Files): Likewise.
10575         * modules/isnanf-nolibm-tests (Files): Likewise.
10576         * modules/isnanf-tests (Files): Likewise.
10577         * modules/isnanl-nolibm-tests (Files): Likewise.
10578         * modules/isnanl-tests (Files): Likewise.
10579         * modules/lchown-tests (Files): Likewise.
10580         * modules/ldexpl-tests (Files): Likewise.
10581         * modules/link-tests (Files): Likewise.
10582         * modules/linkat-tests (Files): Likewise.
10583         * modules/linked-list-tests (Files): Likewise.
10584         * modules/linkedhash-list-tests (Files): Likewise.
10585         * modules/localename-tests (Files): Likewise.
10586         * modules/lseek-tests (Files): Likewise.
10587         * modules/lstat-tests (Files): Likewise.
10588         * modules/mbmemcasecmp-tests (Files): Likewise.
10589         * modules/mbmemcasecoll-tests (Files): Likewise.
10590         * modules/mbrtowc-tests (Files): Likewise.
10591         * modules/mbscasecmp-tests (Files): Likewise.
10592         * modules/mbscasestr-tests (Files): Likewise.
10593         * modules/mbschr-tests (Files): Likewise.
10594         * modules/mbscspn-tests (Files): Likewise.
10595         * modules/mbsinit-tests (Files): Likewise.
10596         * modules/mbsncasecmp-tests (Files): Likewise.
10597         * modules/mbsnrtowcs-tests (Files): Likewise.
10598         * modules/mbspbrk-tests (Files): Likewise.
10599         * modules/mbspcasecmp-tests (Files): Likewise.
10600         * modules/mbsrchr-tests (Files): Likewise.
10601         * modules/mbsrtowcs-tests (Files): Likewise.
10602         * modules/mbsspn-tests (Files): Likewise.
10603         * modules/mbsstr-tests (Files): Likewise.
10604         * modules/memchr-tests (Files): Likewise.
10605         * modules/memchr2-tests (Files): Likewise.
10606         * modules/memcmp-tests (Files): Likewise.
10607         * modules/memmem-tests (Files): Likewise.
10608         * modules/memrchr-tests (Files): Likewise.
10609         * modules/mkdir-tests (Files): Likewise.
10610         * modules/mkfifo-tests (Files): Likewise.
10611         * modules/mkfifoat-tests (Files): Likewise.
10612         * modules/mknod-tests (Files): Likewise.
10613         * modules/nanosleep-tests (Files): Likewise.
10614         * modules/nl_langinfo-tests (Files): Likewise.
10615         * modules/obstack-printf-tests (Files): Likewise.
10616         * modules/open-tests (Files): Likewise.
10617         * modules/openat-tests (Files): Likewise.
10618         * modules/pipe-filter-gi-tests (Files): Likewise.
10619         * modules/pipe-filter-ii-tests (Files): Likewise.
10620         * modules/pipe2-tests (Files): Likewise.
10621         * modules/popen-safer-tests (Files): Likewise.
10622         * modules/popen-tests (Files): Likewise.
10623         * modules/posixtm-tests (Files): Likewise.
10624         * modules/pread-tests (Files): Likewise.
10625         * modules/printf-frexp-tests (Files): Likewise.
10626         * modules/printf-frexpl-tests (Files): Likewise.
10627         * modules/printf-posix-tests (Files): Likewise.
10628         * modules/priv-set-tests (Files): Likewise.
10629         * modules/quotearg-tests (Files): Likewise.
10630         * modules/random_r-tests (Files): Likewise.
10631         * modules/rawmemchr-tests (Files): Likewise.
10632         * modules/rbtree-list-tests (Files): Likewise.
10633         * modules/rbtree-oset-tests (Files): Likewise.
10634         * modules/rbtreehash-list-tests (Files): Likewise.
10635         * modules/readlink-tests (Files): Likewise.
10636         * modules/remove-tests (Files): Likewise.
10637         * modules/rename-tests (Files): Likewise.
10638         * modules/renameat-tests (Files): Likewise.
10639         * modules/rmdir-tests (Files): Likewise.
10640         * modules/round-tests (Files): Likewise.
10641         * modules/roundf-tests (Files): Likewise.
10642         * modules/roundl-tests (Files): Likewise.
10643         * modules/safe-alloc-tests (Files): Likewise.
10644         * modules/setenv-tests (Files): Likewise.
10645         * modules/sigaction-tests (Files): Likewise.
10646         * modules/signbit-tests (Files): Likewise.
10647         * modules/sleep-tests (Files): Likewise.
10648         * modules/snprintf-posix-tests (Files): Likewise.
10649         * modules/snprintf-tests (Files): Likewise.
10650         * modules/sprintf-posix-tests (Files): Likewise.
10651         * modules/stat-tests (Files): Likewise.
10652         * modules/stat-time-tests (Files): Likewise.
10653         * modules/strcasestr-tests (Files): Likewise.
10654         * modules/strchrnul-tests (Files): Likewise.
10655         * modules/strerror-tests (Files): Likewise.
10656         * modules/striconv-tests (Files): Likewise.
10657         * modules/striconveh-tests (Files): Likewise.
10658         * modules/striconveha-tests (Files): Likewise.
10659         * modules/strsignal-tests (Files): Likewise.
10660         * modules/strstr-tests (Files): Likewise.
10661         * modules/strtod-tests (Files): Likewise.
10662         * modules/strverscmp-tests (Files): Likewise.
10663         * modules/symlink-tests (Files): Likewise.
10664         * modules/symlinkat-tests (Files): Likewise.
10665         * modules/trunc-tests (Files): Likewise.
10666         * modules/truncf-tests (Files): Likewise.
10667         * modules/truncl-tests (Files): Likewise.
10668         * modules/uname-tests (Files): Likewise.
10669         * modules/unicase/cased-tests (Files): Likewise.
10670         * modules/unicase/ignorable-tests (Files): Likewise.
10671         * modules/unicase/locale-language-tests (Files): Likewise.
10672         * modules/unicase/tolower-tests (Files): Likewise.
10673         * modules/unicase/totitle-tests (Files): Likewise.
10674         * modules/unicase/toupper-tests (Files): Likewise.
10675         * modules/unicase/u8-casecmp-tests (Files): Likewise.
10676         * modules/unicase/u8-casecoll-tests (Files): Likewise.
10677         * modules/unicase/u8-casefold-tests (Files): Likewise.
10678         * modules/unicase/u8-is-cased-tests (Files): Likewise.
10679         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
10680         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
10681         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
10682         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
10683         * modules/unicase/u8-tolower-tests (Files): Likewise.
10684         * modules/unicase/u8-totitle-tests (Files): Likewise.
10685         * modules/unicase/u8-toupper-tests (Files): Likewise.
10686         * modules/unicase/u16-casecmp-tests (Files): Likewise.
10687         * modules/unicase/u16-casecoll-tests (Files): Likewise.
10688         * modules/unicase/u16-casefold-tests (Files): Likewise.
10689         * modules/unicase/u16-is-cased-tests (Files): Likewise.
10690         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
10691         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
10692         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
10693         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
10694         * modules/unicase/u16-tolower-tests (Files): Likewise.
10695         * modules/unicase/u16-totitle-tests (Files): Likewise.
10696         * modules/unicase/u16-toupper-tests (Files): Likewise.
10697         * modules/unicase/u32-casecmp-tests (Files): Likewise.
10698         * modules/unicase/u32-casecoll-tests (Files): Likewise.
10699         * modules/unicase/u32-casefold-tests (Files): Likewise.
10700         * modules/unicase/u32-is-cased-tests (Files): Likewise.
10701         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
10702         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
10703         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
10704         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
10705         * modules/unicase/u32-tolower-tests (Files): Likewise.
10706         * modules/unicase/u32-totitle-tests (Files): Likewise.
10707         * modules/unicase/u32-toupper-tests (Files): Likewise.
10708         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
10709         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
10710         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
10711         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
10712         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
10713         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
10714         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
10715         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
10716         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
10717         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
10718         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
10719         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
10720         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
10721         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
10722         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
10723         * modules/unictype/bidicategory-name-tests (Files): Likewise.
10724         * modules/unictype/bidicategory-of-tests (Files): Likewise.
10725         * modules/unictype/bidicategory-test-tests (Files): Likewise.
10726         * modules/unictype/block-list-tests (Files): Likewise.
10727         * modules/unictype/block-of-tests (Files): Likewise.
10728         * modules/unictype/block-test-tests (Files): Likewise.
10729         * modules/unictype/category-C-tests (Files): Likewise.
10730         * modules/unictype/category-Cc-tests (Files): Likewise.
10731         * modules/unictype/category-Cf-tests (Files): Likewise.
10732         * modules/unictype/category-Cn-tests (Files): Likewise.
10733         * modules/unictype/category-Co-tests (Files): Likewise.
10734         * modules/unictype/category-Cs-tests (Files): Likewise.
10735         * modules/unictype/category-L-tests (Files): Likewise.
10736         * modules/unictype/category-Ll-tests (Files): Likewise.
10737         * modules/unictype/category-Lm-tests (Files): Likewise.
10738         * modules/unictype/category-Lo-tests (Files): Likewise.
10739         * modules/unictype/category-Lt-tests (Files): Likewise.
10740         * modules/unictype/category-Lu-tests (Files): Likewise.
10741         * modules/unictype/category-M-tests (Files): Likewise.
10742         * modules/unictype/category-Mc-tests (Files): Likewise.
10743         * modules/unictype/category-Me-tests (Files): Likewise.
10744         * modules/unictype/category-Mn-tests (Files): Likewise.
10745         * modules/unictype/category-N-tests (Files): Likewise.
10746         * modules/unictype/category-Nd-tests (Files): Likewise.
10747         * modules/unictype/category-Nl-tests (Files): Likewise.
10748         * modules/unictype/category-No-tests (Files): Likewise.
10749         * modules/unictype/category-P-tests (Files): Likewise.
10750         * modules/unictype/category-Pc-tests (Files): Likewise.
10751         * modules/unictype/category-Pd-tests (Files): Likewise.
10752         * modules/unictype/category-Pe-tests (Files): Likewise.
10753         * modules/unictype/category-Pf-tests (Files): Likewise.
10754         * modules/unictype/category-Pi-tests (Files): Likewise.
10755         * modules/unictype/category-Po-tests (Files): Likewise.
10756         * modules/unictype/category-Ps-tests (Files): Likewise.
10757         * modules/unictype/category-S-tests (Files): Likewise.
10758         * modules/unictype/category-Sc-tests (Files): Likewise.
10759         * modules/unictype/category-Sk-tests (Files): Likewise.
10760         * modules/unictype/category-Sm-tests (Files): Likewise.
10761         * modules/unictype/category-So-tests (Files): Likewise.
10762         * modules/unictype/category-Z-tests (Files): Likewise.
10763         * modules/unictype/category-Zl-tests (Files): Likewise.
10764         * modules/unictype/category-Zp-tests (Files): Likewise.
10765         * modules/unictype/category-Zs-tests (Files): Likewise.
10766         * modules/unictype/category-and-not-tests (Files): Likewise.
10767         * modules/unictype/category-and-tests (Files): Likewise.
10768         * modules/unictype/category-byname-tests (Files): Likewise.
10769         * modules/unictype/category-name-tests (Files): Likewise.
10770         * modules/unictype/category-none-tests (Files): Likewise.
10771         * modules/unictype/category-of-tests (Files): Likewise.
10772         * modules/unictype/category-or-tests (Files): Likewise.
10773         * modules/unictype/category-test-withtable-tests (Files): Likewise.
10774         * modules/unictype/combining-class-tests (Files): Likewise.
10775         * modules/unictype/ctype-alnum-tests (Files): Likewise.
10776         * modules/unictype/ctype-alpha-tests (Files): Likewise.
10777         * modules/unictype/ctype-blank-tests (Files): Likewise.
10778         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
10779         * modules/unictype/ctype-digit-tests (Files): Likewise.
10780         * modules/unictype/ctype-graph-tests (Files): Likewise.
10781         * modules/unictype/ctype-lower-tests (Files): Likewise.
10782         * modules/unictype/ctype-print-tests (Files): Likewise.
10783         * modules/unictype/ctype-punct-tests (Files): Likewise.
10784         * modules/unictype/ctype-space-tests (Files): Likewise.
10785         * modules/unictype/ctype-upper-tests (Files): Likewise.
10786         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
10787         * modules/unictype/decimal-digit-tests (Files): Likewise.
10788         * modules/unictype/digit-tests (Files): Likewise.
10789         * modules/unictype/mirror-tests (Files): Likewise.
10790         * modules/unictype/numeric-tests (Files): Likewise.
10791         * modules/unictype/property-alphabetic-tests (Files): Likewise.
10792         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
10793         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
10794         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
10795         Likewise.
10796         * modules/unictype/property-bidi-block-separator-tests (Files):
10797         Likewise.
10798         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
10799         Likewise.
10800         * modules/unictype/property-bidi-common-separator-tests (Files):
10801         Likewise.
10802         * modules/unictype/property-bidi-control-tests (Files): Likewise.
10803         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
10804         Likewise.
10805         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
10806         Likewise.
10807         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
10808         Likewise.
10809         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
10810         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
10811         Likewise.
10812         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
10813         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
10814         Likewise.
10815         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
10816         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
10817         * modules/unictype/property-bidi-segment-separator-tests (Files):
10818         Likewise.
10819         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
10820         * modules/unictype/property-byname-tests (Files): Likewise.
10821         * modules/unictype/property-combining-tests (Files): Likewise.
10822         * modules/unictype/property-composite-tests (Files): Likewise.
10823         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
10824         * modules/unictype/property-dash-tests (Files): Likewise.
10825         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
10826         * modules/unictype/property-default-ignorable-code-point-tests (Files):
10827         Likewise.
10828         * modules/unictype/property-deprecated-tests (Files): Likewise.
10829         * modules/unictype/property-diacritic-tests (Files): Likewise.
10830         * modules/unictype/property-extender-tests (Files): Likewise.
10831         * modules/unictype/property-format-control-tests (Files): Likewise.
10832         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
10833         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
10834         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
10835         * modules/unictype/property-hex-digit-tests (Files): Likewise.
10836         * modules/unictype/property-hyphen-tests (Files): Likewise.
10837         * modules/unictype/property-id-continue-tests (Files): Likewise.
10838         * modules/unictype/property-id-start-tests (Files): Likewise.
10839         * modules/unictype/property-ideographic-tests (Files): Likewise.
10840         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
10841         * modules/unictype/property-ids-trinary-operator-tests (Files):
10842         Likewise.
10843         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
10844         * modules/unictype/property-iso-control-tests (Files): Likewise.
10845         * modules/unictype/property-join-control-tests (Files): Likewise.
10846         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
10847         * modules/unictype/property-line-separator-tests (Files): Likewise.
10848         * modules/unictype/property-logical-order-exception-tests (Files):
10849         Likewise.
10850         * modules/unictype/property-lowercase-tests (Files): Likewise.
10851         * modules/unictype/property-math-tests (Files): Likewise.
10852         * modules/unictype/property-non-break-tests (Files): Likewise.
10853         * modules/unictype/property-not-a-character-tests (Files): Likewise.
10854         * modules/unictype/property-numeric-tests (Files): Likewise.
10855         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
10856         * modules/unictype/property-other-default-ignorable-code-point-tests
10857         (Files): Likewise.
10858         * modules/unictype/property-other-grapheme-extend-tests (Files):
10859         Likewise.
10860         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
10861         * modules/unictype/property-other-id-start-tests (Files): Likewise.
10862         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
10863         * modules/unictype/property-other-math-tests (Files): Likewise.
10864         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
10865         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
10866         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
10867         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
10868         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
10869         * modules/unictype/property-private-use-tests (Files): Likewise.
10870         * modules/unictype/property-punctuation-tests (Files): Likewise.
10871         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
10872         * modules/unictype/property-radical-tests (Files): Likewise.
10873         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
10874         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
10875         * modules/unictype/property-space-tests (Files): Likewise.
10876         * modules/unictype/property-terminal-punctuation-tests (Files):
10877         Likewise.
10878         * modules/unictype/property-test-tests (Files): Likewise.
10879         * modules/unictype/property-titlecase-tests (Files): Likewise.
10880         * modules/unictype/property-unassigned-code-value-tests (Files):
10881         Likewise.
10882         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
10883         * modules/unictype/property-uppercase-tests (Files): Likewise.
10884         * modules/unictype/property-variation-selector-tests (Files): Likewise.
10885         * modules/unictype/property-white-space-tests (Files): Likewise.
10886         * modules/unictype/property-xid-continue-tests (Files): Likewise.
10887         * modules/unictype/property-xid-start-tests (Files): Likewise.
10888         * modules/unictype/property-zero-width-tests (Files): Likewise.
10889         * modules/unictype/scripts-tests (Files): Likewise.
10890         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
10891         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
10892         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
10893         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
10894         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
10895         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
10896         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
10897         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
10898         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
10899         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
10900         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
10901         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
10902         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
10903         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
10904         * modules/uninorm/composition-tests (Files): Likewise.
10905         * modules/uninorm/decomposing-form-tests (Files): Likewise.
10906         * modules/uninorm/decomposition-tests (Files): Likewise.
10907         * modules/uninorm/filter-tests (Files): Likewise.
10908         * modules/uninorm/nfc-tests (Files): Likewise.
10909         * modules/uninorm/nfd-tests (Files): Likewise.
10910         * modules/uninorm/nfkc-tests (Files): Likewise.
10911         * modules/uninorm/nfkd-tests (Files): Likewise.
10912         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
10913         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
10914         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
10915         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
10916         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
10917         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
10918         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
10919         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
10920         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
10921         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
10922         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
10923         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
10924         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
10925         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
10926         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
10927         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
10928         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
10929         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
10930         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
10931         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
10932         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
10933         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
10934         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
10935         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
10936         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
10937         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
10938         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
10939         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
10940         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
10941         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
10942         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
10943         * modules/uniwidth/u8-width-tests (Files): Likewise.
10944         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
10945         * modules/uniwidth/u16-width-tests (Files): Likewise.
10946         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
10947         * modules/uniwidth/u32-width-tests (Files): Likewise.
10948         * modules/uniwidth/width-tests (Files): Likewise.
10949         * modules/unlink-tests (Files): Likewise.
10950         * modules/unsetenv-tests (Files): Likewise.
10951         * modules/usleep-tests (Files): Likewise.
10952         * modules/utimens-tests (Files): Likewise.
10953         * modules/utimensat-tests (Files): Likewise.
10954         * modules/vasnprintf-posix-tests (Files): Likewise.
10955         * modules/vasnprintf-tests (Files): Likewise.
10956         * modules/vasprintf-posix-tests (Files): Likewise.
10957         * modules/vasprintf-tests (Files): Likewise.
10958         * modules/vdprintf-posix-tests (Files): Likewise.
10959         * modules/vfprintf-posix-tests (Files): Likewise.
10960         * modules/vprintf-posix-tests (Files): Likewise.
10961         * modules/vsnprintf-posix-tests (Files): Likewise.
10962         * modules/vsnprintf-tests (Files): Likewise.
10963         * modules/vsprintf-posix-tests (Files): Likewise.
10964         * modules/wcrtomb-tests (Files): Likewise.
10965         * modules/wcsnrtombs-tests (Files): Likewise.
10966         * modules/wcsrtombs-tests (Files): Likewise.
10967         * modules/wctype-tests (Files): Likewise.
10968         * modules/wcwidth-tests (Files): Likewise.
10969         * modules/xmemdup0-tests (Files): Likewise.
10970         * modules/xprintf-posix-tests (Files): Likewise.
10971         * modules/xvasprintf-tests (Files): Likewise.
10972
10973 2009-12-24  Eric Blake  <ebb9@byu.net>
10974
10975         test-nanosleep: fix typo
10976         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
10977         patch.
10978         Reported by Bruno Haible.
10979
10980 2009-12-24  Bruno Haible  <bruno@clisp.org>
10981
10982         Reduce namespace pollution on glibc systems.
10983         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
10984         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
10985         systems.
10986         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
10987         <getopt.h> on glibc systems.
10988         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
10989         systems.
10990         * lib/fcntl.c: Include <unistd.h> here instead.
10991
10992 2009-12-24  Bruno Haible  <bruno@clisp.org>
10993
10994         * lib/stdlib.in.h (includes): Fix typo in today's commit.
10995
10996 2009-12-24  Eric Blake  <ebb9@byu.net>
10997
10998         tests: add signature checks
10999         * tests/signature.h (SIGNATURE_CHECK): New file.
11000         * modules/atexit-tests (Files): Use it.
11001         * modules/btowc-tests (Files): Likewise.
11002         * modules/canonicalize-lgpl-tests (Files): Likewise.
11003         * modules/ceilf-tests (Files): Likewise.
11004         * modules/ceill-tests (Files): Likewise.
11005         * modules/chown-tests (Files): Likewise.
11006         * modules/dprintf-posix-tests (Files): Likewise.
11007         * modules/dup2-tests (Files): Likewise.
11008         * modules/dup3-tests (Files): Likewise.
11009         * modules/duplocale-tests (Files): Likewise.
11010         * modules/fchdir-tests (Files): Likewise.
11011         * modules/fcntl-tests (Files): Likewise.
11012         * modules/fdopendir-tests (Files): Likewise.
11013         * modules/fflush-tests (Files): Likewise.
11014         * modules/flock-tests (Files): Likewise.
11015         * modules/floorf-tests (Files): Likewise.
11016         * modules/floorl-tests (Files): Likewise.
11017         * modules/fnmatch-tests (Files): Likewise.
11018         * modules/fopen-tests (Files): Likewise.
11019         * modules/fprintf-posix-tests (Files): Likewise.
11020         * modules/freopen-tests (Files): Likewise.
11021         * modules/frexp-nolibm-tests (Files): Likewise.
11022         * modules/frexp-tests (Files): Likewise.
11023         * modules/frexpl-nolibm-tests (Files): Likewise.
11024         * modules/frexpl-tests (Files): Likewise.
11025         * modules/fseek-tests (Files): Likewise.
11026         * modules/fseeko-tests (Files): Likewise.
11027         * modules/fsync-tests (Files): Likewise.
11028         * modules/ftell-tests (Files): Likewise.
11029         * modules/ftello-tests (Files): Likewise.
11030         * modules/futimens-tests (Files): Likewise.
11031         * modules/getaddrinfo-tests (Files): Likewise.
11032         * modules/getcwd-tests (Files): Likewise.
11033         * modules/getdelim-tests (Files): Likewise.
11034         * modules/getdtablesize-tests (Files): Likewise.
11035         * modules/getgroups-tests (Files): Likewise.
11036         * modules/gethostname-tests (Files): Likewise.
11037         * modules/getline-tests (Files): Likewise.
11038         * modules/getopt-posix-tests (Files): Likewise.
11039         * modules/gettimeofday-tests (Files): Likewise.
11040         * modules/glob-tests (Files): Likewise.
11041         * modules/iconv-tests (Files): Likewise.
11042         * modules/inet_ntop-tests (Files): Likewise.
11043         * modules/inet_pton-tests (Files): Likewise.
11044         * modules/isblank-tests (Files): Likewise.
11045         * modules/lchown-tests (Files): Likewise.
11046         * modules/ldexpl-tests (Files): Likewise.
11047         * modules/link-tests (Files): Likewise.
11048         * modules/linkat-tests (Files): Likewise.
11049         * modules/lseek-tests (Files): Likewise.
11050         * modules/lstat-tests (Files): Likewise.
11051         * modules/mbrtowc-tests (Files): Likewise.
11052         * modules/mbsinit-tests (Files): Likewise.
11053         * modules/mbsnrtowcs-tests (Files): Likewise.
11054         * modules/mbsrtowcs-tests (Files): Likewise.
11055         * modules/memchr-tests (Files): Likewise.
11056         * modules/memcmp-tests (Files): Likewise.
11057         * modules/memmem-tests (Files): Likewise.
11058         * modules/memrchr-tests (Files): Likewise.
11059         * modules/mkdir-tests (Files): Likewise.
11060         * modules/mkfifo-tests (Files): Likewise.
11061         * modules/mkfifoat-tests (Files): Likewise.
11062         * modules/mknod-tests (Files): Likewise.
11063         * modules/nanosleep-tests (Files): Likewise.
11064         * modules/nl_langinfo-tests (Files): Likewise.
11065         * modules/obstack-printf-tests (Files): Likewise.
11066         * modules/open-tests (Files): Likewise.
11067         * modules/openat-tests (Files): Likewise.
11068         * modules/perror-tests (Files): Likewise.
11069         * modules/pipe2-tests (Files): Likewise.
11070         * modules/poll-tests (Files): Likewise.
11071         * modules/popen-tests (Files): Likewise.
11072         * modules/posix_spawn-tests (Files): Likewise.
11073         * modules/posix_spawnp-tests (Files): Likewise.
11074         * modules/pread-tests (Files): Likewise.
11075         * modules/printf-posix-tests (Files): Likewise.
11076         * modules/pty-tests (Files): Likewise.
11077         * modules/random_r-tests (Files): Likewise.
11078         * modules/rawmemchr-tests (Files): Likewise.
11079         * modules/readlink-tests (Files): Likewise.
11080         * modules/remove-tests (Files): Likewise.
11081         * modules/rename-tests (Files): Likewise.
11082         * modules/renameat-tests (Files): Likewise.
11083         * modules/rmdir-tests (Files): Likewise.
11084         * modules/round-tests (Files): Likewise.
11085         * modules/roundf-tests (Files): Likewise.
11086         * modules/roundl-tests (Files): Likewise.
11087         * modules/select-tests (Files): Likewise.
11088         * modules/setenv-tests (Files): Likewise.
11089         * modules/sigaction-tests (Files): Likewise.
11090         * modules/sleep-tests (Files): Likewise.
11091         * modules/snprintf-posix-tests (Files): Likewise.
11092         * modules/snprintf-tests (Files): Likewise.
11093         * modules/sprintf-posix-tests (Files): Likewise.
11094         * modules/stat-tests (Files): Likewise.
11095         * modules/strcasestr-tests (Files): Likewise.
11096         * modules/strchrnul-tests (Files): Likewise.
11097         * modules/strerror-tests (Files): Likewise.
11098         * modules/strsignal-tests (Files): Likewise.
11099         * modules/strstr-tests (Files): Likewise.
11100         * modules/strtod-tests (Files): Likewise.
11101         * modules/strverscmp-tests (Files): Likewise.
11102         * modules/symlink-tests (Files): Likewise.
11103         * modules/symlinkat-tests (Files): Likewise.
11104         * modules/times-tests (Files): Likewise.
11105         * modules/trunc-tests (Files): Likewise.
11106         * modules/truncf-tests (Files): Likewise.
11107         * modules/truncl-tests (Files): Likewise.
11108         * modules/tsearch-tests (Files): Likewise.
11109         * modules/uname-tests (Files): Likewise.
11110         * modules/unlink-tests (Files): Likewise.
11111         * modules/unsetenv-tests (Files): Likewise.
11112         * modules/usleep-tests (Files): Likewise.
11113         * modules/utimensat-tests (Files): Likewise.
11114         * modules/vasprintf-tests (Files): Likewise.
11115         * modules/vdprintf-posix-tests (Files): Likewise.
11116         * modules/vfprintf-posix-tests (Files): Likewise.
11117         * modules/vprintf-posix-tests (Files): Likewise.
11118         * modules/vsnprintf-posix-tests (Files): Likewise.
11119         * modules/vsnprintf-tests (Files): Likewise.
11120         * modules/vsprintf-posix-tests (Files): Likewise.
11121         * modules/wcrtomb-tests (Files): Likewise.
11122         * modules/wcsnrtombs-tests (Files): Likewise.
11123         * modules/wcsrtombs-tests (Files): Likewise.
11124         * modules/wcwidth-tests (Files): Likewise.
11125         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
11126         * tests/test-isinf.c (isinf): Likewise.
11127         * tests/test-isnan.c (isnan): Likewise.
11128         * tests/test-signbit.c (signbit): Likewise.
11129         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
11130         declaration, either as macro or with correct signature.
11131         (select): Ensure function under test is declared with correct
11132         signature in correct header.
11133         * tests/test-atexit.c (atexit): Likewise.
11134         * tests/test-btowc.c (btowc): Likewise.
11135         * tests/test-canonicalize-lgpl.c (realpath)
11136         (canonicalize_file_name): Likewise.
11137         * tests/test-ceilf1.c (ceilf): Likewise.
11138         * tests/test-ceill.c (ceill): Likewise.
11139         * tests/test-chown.c (chown): Likewise.
11140         * tests/test-dprintf-posix.c (dprintf): Likewise.
11141         * tests/test-dup2.c (dup2): Likewise.
11142         * tests/test-dup3.c (dup3): Likewise.
11143         * tests/test-duplocale.c (duplocale): Likewise.
11144         * tests/test-fchdir.c (fchdir): Likewise.
11145         * tests/test-fchownat.c (fchownat): Likewise.
11146         * tests/test-fcntl.c (fcntl): Likewise.
11147         * tests/test-fdopendir.c (fdopendir): Likewise.
11148         * tests/test-fflush.c (fflush): Likewise.
11149         * tests/test-flock.c (flock): Likewise.
11150         * tests/test-floorf1.c (floorf): Likewise.
11151         * tests/test-floorl.c (floorl): Likewise.
11152         * tests/test-fnmatch.c (fnmatch): Likewise.
11153         * tests/test-fopen.c (fopen): Likewise.
11154         * tests/test-fprintf-posix.c (fprintf): Likewise.
11155         * tests/test-freopen.c (freopen): Likewise.
11156         * tests/test-frexp.c (frexp): Likewise.
11157         * tests/test-frexpl.c (frexpl): Likewise.
11158         * tests/test-fseek.c (fseek): Likewise.
11159         * tests/test-fseeko.c (fseeko): Likewise.
11160         * tests/test-fstatat.c (fstatat): Likewise.
11161         * tests/test-fsync.c (fsync): Likewise.
11162         * tests/test-ftell.c (ftell): Likewise.
11163         * tests/test-ftello.c (ftello): Likewise.
11164         * tests/test-futimens.c (futimens): Likewise.
11165         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
11166         (gai_strerror): Likewise.
11167         * tests/test-getcwd.c (getcwd): Likewise.
11168         * tests/test-getdelim.c (getdelim): Likewise.
11169         * tests/test-getdtablesize.c (getdtablesize): Likewise.
11170         * tests/test-getgroups.c (getgroups): Likewise.
11171         * tests/test-gethostname.c (gethostname): Likewise.
11172         * tests/test-getline.c (getline): Likewise.
11173         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
11174         Likewise.
11175         * tests/test-gettimeofday.c (gettimeofday): Likewise.
11176         * tests/test-glob.c (glob, globfree): Likewise.
11177         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
11178         * tests/test-inet_ntop.c (inet_ntop): Likewise.
11179         * tests/test-inet_pton.c (inet_pton): Likewise.
11180         * tests/test-isblank.c (isblank): Likewise.
11181         * tests/test-lchown.c (lchown): Likewise.
11182         * tests/test-ldexpl.c (ldexpl): Likewise.
11183         * tests/test-link.c (link): Likewise.
11184         * tests/test-linkat.c (linkat): Likewise.
11185         * tests/test-lseek.c (lseek): Likewise.
11186         * tests/test-lstat.c (lstat): Likewise.
11187         * tests/test-mbrtowc.c (mbrtowc): Likewise.
11188         * tests/test-mbsinit.c (mbsinit): Likewise.
11189         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
11190         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
11191         * tests/test-memchr.c (memchr): Likewise.
11192         * tests/test-memcmp.c (memcmp): Likewise.
11193         * tests/test-memmem.c (memmem): Likewise.
11194         * tests/test-memrchr.c (memrchr): Likewise.
11195         * tests/test-mkdir.c (mkdir): Likewise.
11196         * tests/test-mkdirat.c (mkdirat): Likewise.
11197         * tests/test-mkfifo.c (mkfifo): Likewise.
11198         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
11199         * tests/test-mknod.c (mknod): Likewise.
11200         * tests/test-nanosleep.c (nanosleep): Likewise.
11201         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
11202         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
11203         Likewise.
11204         * tests/test-open.c (open): Likewise.
11205         * tests/test-openat.c (openat): Likewise.
11206         * tests/test-perror.c (perror): Likewise.
11207         * tests/test-pipe2.c (pipe2): Likewise.
11208         * tests/test-poll.c (poll): Likewise.
11209         * tests/test-popen.c (popen, pclose): Likewise.
11210         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
11211         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
11212         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
11213         (posix_spawn_file_actions_destroy)
11214         (posix_spawn_file_actions_addclose)
11215         (posix_spawn_file_actions_addopen)
11216         (posix_spawn_file_actions_adddup2): Likewise.
11217         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
11218         * tests/test-pread.c (pread): Likewise.
11219         * tests/test-printf-posix.c (printf): Likewise.
11220         * tests/test-pty.c (openpty, forkpty): Likewise.
11221         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
11222         (random_r): Likewise.
11223         * tests/test-rawmemchr.c (rawmemchr): Likewise.
11224         * tests/test-readlink.c (readlink): Likewise.
11225         * tests/test-remove.c (remove): Likewise.
11226         * tests/test-rename.c (rename): Likewise.
11227         * tests/test-renameat.c (renameat): Likewise.
11228         * tests/test-rmdir.c (rmdir): Likewise.
11229         * tests/test-round1.c (round): Likewise.
11230         * tests/test-roundf1.c (roundf): Likewise.
11231         * tests/test-roundl.c (roundl): Likewise.
11232         * tests/test-setenv.c (setenv): Likewise.
11233         * tests/test-sigaction.c (sigaction): Likewise.
11234         * tests/test-sleep.c (sleep): Likewise.
11235         * tests/test-snprintf.c (snprintf): Likewise.
11236         * tests/test-sprintf-posix.c (sprintf): Likewise.
11237         * tests/test-stat.c (stat): Likewise.
11238         * tests/test-stpncpy.c (stpncpy): Likewise.
11239         * tests/test-strcasestr.c (strcasestr): Likewise.
11240         * tests/test-strchrnul.c (strchrnul): Likewise.
11241         * tests/test-strerror.c (strerror): Likewise.
11242         * tests/test-strsignal.c (strsignal): Likewise.
11243         * tests/test-strstr.c (strstr): Likewise.
11244         * tests/test-strtod.c (strtod): Likewise.
11245         * tests/test-strverscmp.c (strverscmp): Likewise.
11246         * tests/test-symlink.c (symlink): Likewise.
11247         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
11248         * tests/test-times.c (times): Likewise.
11249         * tests/test-trunc1.c (trunc): Likewise.
11250         * tests/test-truncf1.c (truncf): Likewise.
11251         * tests/test-truncl.c (truncl): Likewise.
11252         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
11253         Likewise.
11254         * tests/test-uname.c (uname): Likewise.
11255         * tests/test-unlink.c (unlink): Likewise.
11256         * tests/test-unlinkat.c (unlinkat): Likewise.
11257         * tests/test-unsetenv.c (unsetenv): Likewise.
11258         * tests/test-usleep.c (usleep): Likewise.
11259         * tests/test-utimensat.c (utimensat): Likewise.
11260         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
11261         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
11262         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
11263         * tests/test-vprintf-posix.c (vprintf): Likewise.
11264         * tests/test-vsnprintf.c (vsnprintf): Likewise.
11265         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
11266         * tests/test-wcrtomb.c (wcrtomb): Likewise.
11267         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
11268         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
11269         * tests/test-wcwidth.c (wcwidth): Likewise.
11270
11271         build: pull in conditional headers during GNULIB_POSIXCHECK
11272         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
11273         definitions from any conditionally-included headers.
11274         * lib/stdlib.in.h (includes): Likewise.
11275         * lib/unistd.in.h (includes): Likewise.
11276
11277 2009-12-24  Bruno Haible  <bruno@clisp.org>
11278
11279         * tests/test-argv-iter.c: Include header file being tested immediately
11280         after config.h.
11281         * tests/test-base64.c: Likewise.
11282         * tests/test-flock.c: Likewise.
11283         * tests/test-fsync.c: Likewise.
11284         * tests/test-getdate.c: Likewise.
11285         * tests/test-getndelim2.c: Likewise.
11286         * tests/test-isfinite.c: Likewise.
11287         * tests/test-isinf.c: Likewise.
11288         * tests/test-strerror.c: Likewise.
11289         * tests/test-strsignal.c: Likewise.
11290
11291 2009-12-23  Eric Blake  <ebb9@byu.net>
11292
11293         unistd: work around cygwin bug
11294         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
11295         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
11296         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
11297
11298 2009-12-23  Bruno Haible  <bruno@clisp.org>
11299
11300         localename: More tests.
11301         * tests/test-localename.c (SIZEOF): New macro.
11302         (categories): New variable.
11303         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
11304         test_locale_name_default): Add test w.r.t. thread locale.
11305         (test_locale_name_thread): New function.
11306         (main): Invoke it.
11307
11308         localename: Make aware of thread locale.
11309         * lib/localename.h (gl_locale_name_thread): New declaration.
11310         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
11311         behaviour with respect to thread locale.
11312         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
11313         <langinfo.h>, glthread/lock.h.
11314         (SIZE_BITS): New macro.
11315         (string_hash): New function.
11316         (struct hash_node): New type.
11317         (HASH_TABLE_SIZE): New macro.
11318         (struniq_hash_table, struniq_lock): New variables.
11319         (struniq): New function.
11320         (gl_locale_name_thread): New function.
11321         (gl_locale_name): Invoke it.
11322         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
11323         * modules/localename (Depends-on): Add lock.
11324         Reported by Mike Gran <spk121@yahoo.com>.
11325
11326 2009-12-23  Eric Blake  <ebb9@byu.net>
11327
11328         va-args: new module
11329         * modules/va-args: New file.
11330         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
11331         * MODULES.html.sh (Core language properties): Mention it.
11332
11333         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
11334         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
11335         named alias for __attribute__((__unused__)).
11336         * lib/chown.c: Update client.
11337         * lib/fchmodat.c: Likewise.
11338         * lib/fts.c: Likewise.
11339         * lib/getdate.y: Likewise.
11340         * lib/getgroups.c: Likewise.
11341         * lib/getopt.c: Likewise.
11342         * lib/getugroups.c: Likewise.
11343         * lib/mkdir.c: Likewise.
11344         * lib/mkfifo.c: Likewise.
11345         * lib/mkfifoat.c: Likewise.
11346         * lib/mknod.c: Likewise.
11347         * lib/mknodat.c: Likewise.
11348         * lib/readlink.c: Likewise.
11349         * lib/se-context.in.h: Likewise.
11350         * lib/se-selinux.in.h: Likewise.
11351         * lib/sockets.c: Likewise.
11352         * lib/symlink.c: Likewise.
11353         * lib/symlinkat.c: Likewise.
11354         * lib/unicodeio.c: Likewise.
11355         * lib/unistr.h: Likewise.
11356         * tests/test-areadlink.c: Likewise.
11357         * tests/test-areadlinkat.c: Likewise.
11358         * tests/test-filenamecat.c: Likewise.
11359         * tests/test-fseeko.c: Likewise.
11360         * tests/test-ftello.c: Likewise.
11361         * tests/test-getdate.c: Likewise.
11362         * tests/test-getgroups.c: Likewise.
11363         * tests/test-gethostname.c: Likewise.
11364         * tests/test-quotearg.c: Likewise.
11365         * tests/test-version-etc.c: Likewise.
11366         * tests/test-xalloc-die.c: Likewise.
11367         * tests/test-xfprintf-posix.c: Likewise.
11368         * tests/test-xprintf-posix.c: Likewise.
11369         * tests/test-xvasprintf.c: Likewise.
11370
11371         tests: avoid compiler warnings
11372         * tests/test-fcntl.c (main): Delete unused parameters.
11373         * tests/test-freopen-safer.c (main): Likewise.
11374         * tests/test-xalloc-die.c (main): Mark unused parameters.
11375         * tests/test-fseeko.c (main): Likewise.
11376         * tests/test-ftello.c (main): Likewise.
11377         * tests/test-nanosleep.c (main): Avoid declaration warning.
11378         * tests/test-sleep.c (main): Likewise.
11379         * tests/test-unsetenv.c (main): Silence warning about string
11380         literal.
11381         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
11382
11383 2009-12-23  Bruno Haible  <bruno@clisp.org>
11384
11385         * tests/test-localename.c (test_locale_name): New function, extracted
11386         from main. Also test mixed situations.
11387         (test_locale_name_posix, test_locale_name_environ,
11388         test_locale_name_default): New functions.
11389         (main): Invoke them all.
11390         * modules/localename-tests (configure.ac): Test for newlocale.
11391
11392 2009-12-23  Bruno Haible  <bruno@clisp.org>
11393
11394         unistd: Ensure getcwd gets declared before being overridden.
11395         * lib/unistd.in.h: Conditionally include <io.h>.
11396
11397 2009-12-22  Bruno Haible  <bruno@clisp.org>
11398
11399         wchar: Diagnose broken combination of glibc and gcc versions and flags.
11400         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
11401         (gl_WCHAR_H): Invoke it.
11402         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
11403         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
11404         Reported by Karl Berry <karl@freefriends.org>.
11405
11406 2009-12-22  Eric Blake  <ebb9@byu.net>
11407
11408         math, unistd: avoid redundant includes
11409         * lib/math.in.h (isnan): No need to re-include <math.h>.
11410         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
11411
11412         getsubopt: work around cygwin bug
11413         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
11414         avoid conflicting with system getsubopt.
11415         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
11416         bug.
11417
11418         getopt: synchronize from glibc
11419         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
11420         parameter order.  Adjust all callers.
11421         (_getopt_internal_r, main): Adjust quoting in error messages.
11422         Drop considerations for outdated POSIX 1003.2 error message.
11423         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
11424         callers.
11425         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
11426
11427         test-getopt: test stderr behavior
11428         * modules/getopt-posix-tests (Depends-on): Add dup2.
11429         * tests/test-getopt.c (ASSERT): Avoid stderr.
11430         (main): Move stderr to a temporary file.
11431         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
11432         Instead, add parameter to inform caller if output occurred.
11433         (test_getopt): Adjust all existing tests to expect silence, and
11434         add new tests of leading ":".
11435         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
11436         glibc shortcomings with leading "-:" or "+:" in optstring.
11437         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11438         Likewise.
11439         * doc/posix-functions/getopt.texi (getopt): Likewise.
11440
11441         test-getopt: enhance test
11442         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
11443         supports optind=0.
11444         * tests/test-getopt.c (OPTIND_MIN): Move...
11445         * tests/test-getopt.h (OPTIND_MIN): ...here.
11446         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
11447         Require that optind=0 works, since modern BSD supports it in
11448         addition to optreset, and since coreutils expects it.
11449         (test_getopt_long_only): New test.
11450         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
11451         glibc shortcomings with 'W;', and enforcement of optind=0.
11452         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11453         Likewise.
11454
11455 2009-12-21  Bruno Haible  <bruno@clisp.org>
11456
11457         localename: Improvements for MacOS X and Cygwin.
11458         * lib/localename.h (gl_locale_name_environ): New declaration.
11459         * lib/localename.c (gl_locale_name_environ): New function, extracted from
11460         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
11461         (gl_locale_name_posix): Invoke it.
11462         (gl_locale_name_default): Add comments. Use Windows native API also on
11463         Cygwin.
11464
11465 2009-12-21  Bruno Haible  <bruno@clisp.org>
11466
11467         Update list of Win32 locale ids.
11468         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
11469         (LANG_SAMI): Renamed from LANG_SAAMI.
11470         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
11471         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
11472         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
11473         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
11474         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
11475         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
11476         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
11477         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
11478         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
11479         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
11480         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
11481         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
11482         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
11483         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
11484         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
11485         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
11486         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
11487         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
11488         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
11489         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
11490         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
11491         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
11492         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
11493         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
11494         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
11495         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
11496         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
11497         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
11498         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
11499         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
11500         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
11501         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
11502         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
11503         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
11504         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
11505         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
11506         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
11507         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
11508         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
11509         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
11510         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
11511         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
11512         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
11513         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
11514         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
11515         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
11516         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
11517         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
11518         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
11519         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
11520         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
11521         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
11522         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
11523         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
11524         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
11525         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
11526         Add more languages and countries for Sami, Sorbian. Add more countries
11527         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
11528         for Pashto. Change country for Syriac, Tswana.
11529
11530 2009-12-21  Eric Blake  <ebb9@byu.net>
11531
11532         test-utimens: avoid spurious failure
11533         * tests/test-chown.h (nap): Factor...
11534         * tests/nap.h: ...into new file.
11535         * tests/test-lchown.h (nap): Avoid duplication.
11536         * tests/test-utimens-common.h (nap): Use shared implementation,
11537         necessary on file systems with 1-second resolution.
11538         * modules/chown-tests (Files): Include new file.
11539         * modules/fdutimensat-tests (Files): Likewise.
11540         * modules/futimens-tests (Files): Likewise.
11541         * modules/lchown-tests (Files): Likewise.
11542         * modules/openat-tests (Files): Likewise.
11543         * modules/utimens-tests (Files): Likewise.
11544         * modules/utimensat-tests (Files): Likewise.
11545
11546 2009-12-19  Eric Blake  <ebb9@byu.net>
11547
11548         futimens, utimensat: work around Linux bug
11549         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
11550         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
11551         * lib/utimensat.c (rpl_utimensat): Work around it.
11552         * lib/futimens.c (rpl_futimens): Adjust comment.
11553
11554         utimens: work around Linux ctime bug
11555         * lib/utimens.c (detect_ctime_bug): New helper function.
11556         (update_timespec): Differentiate between workaround needed for
11557         this bug vs. what is needed for systems that lack utimensat.
11558         (fdutimens, lutimens): Work around bug.
11559
11560         utimens: check for ctime update
11561         * tests/test-utimens-common.h (check_ctime): Define.
11562         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
11563         * tests/test-futimens.h (test_futimens): Likewise.
11564         * tests/test-lutimens.h (test_lutimens): Likewise.
11565         * doc/posix-functions/futimens.texi (futimens): Document the bug.
11566         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
11567
11568 2009-12-19  Bruno Haible  <bruno@clisp.org>
11569
11570         dprintf-posix: Check against memory leak fixed on 2009-12-15.
11571         * tests/test-dprintf-posix2.sh: New file.
11572         * tests/test-dprintf-posix2.c: New file.
11573         * modules/dprintf-posix-tests (Files): Add them.
11574         (configure.ac): Check for getrlimit and setrlimit.
11575         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
11576
11577 2009-12-19  Bruno Haible  <bruno@clisp.org>
11578
11579         fprintf-posix: Check against memory leak fixed on 2009-12-15.
11580         * tests/test-fprintf-posix3.sh: New file.
11581         * tests/test-fprintf-posix3.c: New file.
11582         * modules/fprintf-posix-tests (Files): Add them.
11583         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
11584
11585 2009-12-19  Eric Blake  <ebb9@byu.net>
11586
11587         dirfd: fix prototype
11588         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
11589         * lib/dirfd.c (dirfd): Likewise.
11590
11591         canonicalize: reduce memory usage
11592         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
11593         allocation to size.
11594         Reported by Solar Designer <solar@openwall.com>.
11595
11596 2009-12-19  Bruno Haible  <bruno@clisp.org>
11597
11598         New module attribute 'Applicability'.
11599         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
11600         * gnulib-tool: New option --extract-applicability.
11601         (func_usage): Document it.
11602         (sed_extract_prog): Recognize it.
11603         (func_get_applicability): New function.
11604         (func_import): Generalize handling of 'link-warning' module.
11605         * modules/link-warning (Applicability): New section.
11606         * modules/arg-nonnull (Applicability): New section.
11607         Repoted by Simon Josefsson <simon@josefsson.org>.
11608
11609 2009-12-19  Bruno Haible  <bruno@clisp.org>
11610
11611         fflush: tweak
11612         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
11613         * lib/fseeko.c (rpl_fseeko): Likewise.
11614
11615 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
11616
11617         * lib/gl_list.h: Fix typo in comment.
11618
11619 2009-12-16  Eric Blake  <ebb9@byu.net>
11620
11621         fcntl: use to simplify other modules
11622         * modules/cloexec (Depends-on): Add fcntl.
11623         * modules/fchdir (Depends-on): Likewise.
11624         * modules/fd-safer-flag (Depends-on): Likewise.
11625         * modules/unistd-safer (Depends-on): Likewise.
11626         * modules/dup3 (configure.ac): Set module indicator.
11627         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
11628         missing.
11629         * lib/fchdir.c (_gl_register_dup): Fix comment.
11630         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
11631         * lib/dup-safer.c (dup_safer): Likewise.
11632         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
11633         * lib/dup3.c (dup3): Likewise.
11634         * tests/test-fchdir.c (main): Enhance test.
11635         Fixes a dup_cloexec bug reported by Ondřej Vašík.
11636
11637         fcntl: port portions of fcntl to mingw
11638         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
11639         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
11640         replacement for mingw.
11641         * modules/fcntl (Description): Update.
11642         (Depends-on): Add dup2.
11643         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
11644         * modules/fcntl-h (Makefile.am): Substitute it.
11645         * lib/fcntl.in.h (fcntl): Update declaration.
11646         (F_DUPFD, F_GETFD): New macros, when needed.
11647         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
11648         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
11649         * tests/test-fcntl.c (check_flags, main): Enhance test for items
11650         we now guarantee.
11651
11652         fcntl: work around cygwin bug in F_DUPFD
11653         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
11654         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
11655         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
11656         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
11657         * doc/posix-functions/fcntl.texi (fcntl): Document it.
11658
11659         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
11660         * modules/fcntl (Files): List new files.
11661         (configure.ac): Run a test.
11662         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
11663         * lib/fcntl.c (rpl_fcntl): Likewise.
11664         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
11665         (gl_FCNTL_H): Always replace fcntl.h.
11666         * modules/fcntl-h (Makefile.am): Substitute witnesses.
11667         * lib/fcntl.in.h (fcntl): Declare replacement.
11668         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
11669         needed, plus a witness.
11670         * doc/posix-functions/fcntl.texi (fcntl): Document this.
11671         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
11672         * tests/test-fcntl.c: New file.
11673         * modules/fcntl-tests: Likewise.
11674
11675         binary-io: avoid potential compilation warning
11676         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
11677         directives.
11678
11679         fflush: avoid compilation error on NetBSD
11680         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
11681         between off_t and fpos_t, since the latter is sometimes a struct.
11682         * lib/fseeko.c (rpl_fseeko): Likewise.
11683         Reported by Alexander Nasonov <alnsn@yandex.ru>.
11684
11685 2009-12-15  Eric Blake  <ebb9@byu.net>
11686
11687         fcntl-h, stdio, sys_ioctl: fix declarations
11688         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
11689         function must not take arguments.
11690         * lib/sys_ioctl.in.h (ioctl): Likewise.
11691         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
11692         (open): Add a link warning.
11693
11694 2009-12-15  Jim Meyering  <meyering@redhat.com>
11695
11696         areadlink, areadlink-with-size: relax license to LGPLv2+
11697         * modules/areadlink (License): Relax to LGPLv2+.
11698         * modules/areadlink-with-size (License): Likewise.
11699
11700 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
11701             Bruno Haible  <bruno@clisp.org>
11702
11703         *printf: Fix memory leak.
11704         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
11705         * lib/vfprintf.c (vfprintf): Likewise.
11706         * lib/dprintf.c (dprintf): Likewise.
11707         * lib/vdprintf.c (vdprintf): Likewise.
11708
11709 2009-12-14  Eric Blake  <ebb9@byu.net>
11710
11711         accept4: adjust module dependencies
11712         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
11713
11714         utimens: one more try at avoiding compiler warning
11715         * lib/utimens.c (lutimens): Lower scope of result.
11716
11717 2009-12-13  Bruno Haible  <bruno@clisp.org>
11718
11719         Move the malloc checking from module 'list' to new module 'xlist'.
11720         * modules/xlist: New file.
11721         * lib/gl_xlist.h: New file.
11722         * lib/gl_xlist.c: New file.
11723         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
11724         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
11725         gl_list_add_last, gl_list_add_before, gl_list_add_after,
11726         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
11727         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
11728         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
11729         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
11730         gl_sortedlist_nx_add): New declarations.
11731         (struct gl_list_implementation): Rename and change methods accordingly.
11732         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
11733         (gl_list_nx_create): Renamed from gl_list_create.
11734         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
11735         (gl_list_nx_set_at): Renamed from gl_list_set_at.
11736         (gl_list_nx_add_first): Renamed from gl_list_add_first.
11737         (gl_list_nx_add_last): Renamed from gl_list_add_last.
11738         (gl_list_nx_add_before): Renamed from gl_list_add_before.
11739         (gl_list_nx_add_after): Renamed from gl_list_add_after.
11740         (gl_list_nx_add_at): Renamed from gl_list_add_at.
11741         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
11742         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
11743         gl_list_create_empty.
11744         (gl_list_nx_create): Renamed from gl_list_create.
11745         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
11746         (gl_list_nx_set_at): Renamed from gl_list_set_at.
11747         (gl_list_nx_add_first): Renamed from gl_list_add_first.
11748         (gl_list_nx_add_last): Renamed from gl_list_add_last.
11749         (gl_list_nx_add_before): Renamed from gl_list_add_before.
11750         (gl_list_nx_add_after): Renamed from gl_list_add_after.
11751         (gl_list_nx_add_at): Renamed from gl_list_add_at.
11752         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
11753         * lib/gl_array_list.c: Don't include xalloc.h.
11754         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
11755         NULL upon out-of-memory.
11756         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
11757         out-of-memory.
11758         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
11759         Change return type to 'int'.
11760         (gl_array_nx_set_at): Renamed from gl_array_set_at.
11761         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
11762         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
11763         upon out-of-memory.
11764         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
11765         upon out-of-memory.
11766         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
11767         upon out-of-memory.
11768         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
11769         upon out-of-memory.
11770         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
11771         out-of-memory.
11772         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
11773         Update.
11774         (gl_array_list_implementation): Update.
11775         * lib/gl_carray_list.c: Don't include xalloc.h.
11776         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
11777         Return NULL upon out-of-memory.
11778         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
11779         out-of-memory.
11780         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
11781         Change return type to 'int'.
11782         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
11783         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
11784         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
11785         upon out-of-memory.
11786         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
11787         upon out-of-memory.
11788         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
11789         out-of-memory.
11790         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
11791         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
11792         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
11793         Update.
11794         (gl_carray_list_implementation): Update.
11795         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
11796         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
11797         gl_linked_create_empty. Return NULL upon out-of-memory.
11798         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
11799         out-of-memory.
11800         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
11801         Change return type to 'int'. Return -1 upon out-of-memory.
11802         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
11803         out-of-memory.
11804         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
11805         upon out-of-memory.
11806         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
11807         upon out-of-memory.
11808         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
11809         NULL upon out-of-memory.
11810         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
11811         upon out-of-memory.
11812         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
11813         out-of-memory.
11814         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
11815         Update.
11816         * lib/gl_linked_list.c: Don't include xalloc.h.
11817         (gl_linked_list_implementation): Update.
11818         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
11819         (add_to_bucket): Change return type to 'int'.
11820         (gl_linkedhash_list_implementation): Update.
11821         * lib/gl_anytree_list1.h (free_subtree): New function.
11822         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
11823         gl_tree_create_empty. Return NULL upon out-of-memory.
11824         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
11825         Change return type to 'int'. Return -1 upon out-of-memory.
11826         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
11827         out-of-memory.
11828         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
11829         (gl_tree_remove_node): New function, moved here from
11830         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
11831         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
11832         Update.
11833         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
11834         malloc, not xmalloc. Return NULL upon out-of-memory.
11835         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
11836         out-of-memory.
11837         (gl_tree_remove_node_from_tree): New function, extracted from
11838         gl_tree_remove_node.
11839         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
11840         upon out-of-memory.
11841         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
11842         out-of-memory.
11843         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
11844         upon out-of-memory.
11845         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
11846         upon out-of-memory.
11847         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
11848         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
11849         not xmalloc. Return NULL upon out-of-memory.
11850         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
11851         out-of-memory.
11852         (gl_tree_remove_node_from_tree): New function, extracted from
11853         gl_tree_remove_node.
11854         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
11855         upon out-of-memory.
11856         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
11857         out-of-memory.
11858         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
11859         upon out-of-memory.
11860         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
11861         upon out-of-memory.
11862         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
11863         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
11864         gl_anytree_list1.h before gl_anyavltree_list2.h.
11865         (gl_avltree_list_implementation): Update.
11866         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
11867         gl_anytree_list1.h before gl_anyavltree_list2.h.
11868         (gl_rbtree_list_implementation): Update.
11869         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
11870         Change return type to 'int'. Return -1 upon out-of-memory. Use
11871         __builtin_expect.
11872         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
11873         (gl_avltreehash_list_implementation): Update.
11874         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
11875         (gl_rbtreehash_list_implementation): Update.
11876         * modules/array-list (Depends-on): Remove xalloc.
11877         * modules/carray-list (Depends-on): Likewise.
11878         * modules/linked-list (Depends-on): Likewise.
11879         * modules/linkedhash-list (Depends-on): Likewise.
11880         * modules/avltree-list (Depends-on): Likewise.
11881         * modules/rbtree-list (Depends-on): Likewise.
11882         * modules/avltreehash-list (Depends-on): Likewise.
11883         * modules/rbtreehash-list (Depends-on): Likewise.
11884
11885         * modules/xsublist: New file.
11886         * lib/gl_xsublist.h: New file.
11887         * lib/gl_xsublist.c: New file.
11888         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
11889         (gl_sublist_nx_create): New declaration.
11890         * lib/gl_sublist.c: Don't include xalloc.h.
11891         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
11892         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
11893         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
11894         Change return type to 'int'. Return -1 upon out-of-memory.
11895         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
11896         upon out-of-memory.
11897         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
11898         NULL upon out-of-memory.
11899         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
11900         upon out-of-memory.
11901         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
11902         NULL upon out-of-memory.
11903         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
11904         NULL upon out-of-memory.
11905         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
11906         upon out-of-memory.
11907         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
11908         (gl_sublist_list_implementation): Update.
11909         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
11910         upon out-of-memory.
11911         * modules/sublist (Depends-on): Remove xalloc.
11912
11913         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
11914         * tests/test-carray_list.c: Likewise.
11915         * tests/test-linked_list.c: Likewise.
11916         * tests/test-linkedhash_list.c: Likewise.
11917         * tests/test-avltree_list.c: Likewise.
11918         * tests/test-rbtree_list.c: Likewise.
11919         * tests/test-avltreehash_list.c: Likewise.
11920         * tests/test-rbtreehash_list.c: Likewise.
11921         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
11922         * modules/carray-list-tests (Makefile.am): Likewise.
11923         * modules/linked-list-tests (Makefile.am): Likewise.
11924         * modules/linkedhash-list-tests (Makefile.am): Likewise.
11925         * modules/avltree-list-tests (Makefile.am): Likewise.
11926         * modules/rbtree-list-tests (Makefile.am): Likewise.
11927         * modules/avltreehash-list-tests (Makefile.am): Likewise.
11928         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
11929
11930         * NEWS: Mention the changes.
11931
11932         * lib/clean-temp.c: Include gl_xlist.h.
11933         * modules/clean-temp (Depends-on): Add xlist.
11934
11935         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
11936         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
11937
11938         * tests/test-array_oset.c: Include gl_xlist.h.
11939         * modules/array-oset-tests (Depends-on): Add xlist.
11940
11941         Reported by José E. Marchesi <jemarch@gnu.org>.
11942
11943 2009-12-13  Bruno Haible  <bruno@clisp.org>
11944
11945         Move the malloc checking from module 'oset' to new module 'xoset'.
11946         * modules/xoset: New file.
11947         * lib/gl_xoset.h: New file.
11948         * lib/gl_xoset.c: New file.
11949         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
11950         declarations.
11951         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
11952         (struct gl_oset_implementation): Rename and change methods accordingly.
11953         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
11954         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
11955         'int'. Mark as __warn_unused_result__.
11956         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
11957         gl_oset_create_empty.
11958         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
11959         'int'.
11960         * lib/gl_array_oset.c: Don't include xalloc.h.
11961         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
11962         malloc, not xmalloc.
11963         (grow): Change return type to 'int'. Don't call xalloc_die.
11964         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
11965         to 'int'.
11966         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
11967         'int'.
11968         (gl_array_oset_implementation): Update.
11969         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
11970         gl_tree_create_empty.
11971         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
11972         'int'.
11973         * lib/gl_avltree_oset.c: Don't include xalloc.h.
11974         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
11975         xmalloc.
11976         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
11977         not xmalloc.
11978         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
11979         xmalloc.
11980         (gl_avltree_oset_implementation): Update.
11981         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
11982         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
11983         xmalloc.
11984         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
11985         not xmalloc.
11986         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
11987         xmalloc.
11988         (gl_rbtree_oset_implementation): Update.
11989         * modules/array-oset (Depends-on): Remove xalloc.
11990         * modules/avltree-oset (Depends-on): Likewise.
11991         * modules/rbtree-oset (Depends-on): Likewise.
11992         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
11993         * tests/test-avltree_oset.c: Likewise.
11994         * tests/test-rbtree_oset.c: Likewise.
11995         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
11996         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
11997         * modules/rbtree-oset-tests (Makefile.am): Likewise.
11998         * NEWS: Mention the change.
11999
12000 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
12001
12002         maint.mk: allow a project to override release-prep commands
12003         * top/maint.mk (alpha, beta, stable): Move release-preparatory
12004         commands into a new rule.
12005         (release-prep): New rule.
12006         (release-prep-hook): New overridable variable.
12007
12008 2009-12-13  Bruno Haible  <bruno@clisp.org>
12009
12010         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
12011
12012 2009-12-13  Jim Meyering  <meyering@redhat.com>
12013
12014         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
12015         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
12016
12017 2009-12-12  Bruno Haible  <bruno@clisp.org>
12018
12019         duplocale: Tweak.
12020         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
12021
12022 2009-12-12  Karl Berry  <karl@gnu.org>
12023
12024         * config/srclist.txt (strtoll.c): tab changes, no more sync.
12025
12026 2009-12-12  Bruno Haible  <bruno@clisp.org>
12027
12028         * m4/po.m4: Undo incorrect untabification.
12029
12030 2009-12-12  Bruno Haible  <bruno@clisp.org>
12031
12032         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
12033         * modules/c-strtod (Depends-on): Add locale.
12034         * modules/c-strtold (Depends-on): Likewise.
12035
12036 2009-12-12  Bruno Haible  <bruno@clisp.org>
12037
12038         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
12039
12040 2009-12-11  Eric Blake  <ebb9@byu.net>
12041
12042         setenv: relax requirement in light of POSIX ruling
12043         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
12044         not NULL.
12045         * tests/test-setenv.c (main): Relax test.
12046         * tests/test-unsetenv.c (main): Likewise.
12047         * doc/posix-functions/setenv.texi (setenv): Document this.
12048         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
12049
12050 2009-12-11  Bruno Haible  <bruno@clisp.org>
12051
12052         New module 'fd-safer-flag'.
12053         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
12054         * lib/dup-safer.c (dup_safer_flag): Remove function.
12055         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
12056         * lib/fd-safer.c (fd_safer_flag): Remove function.
12057         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
12058         * modules/cloexec (configure.ac): Drop indicator macro.
12059         * modules/fd-safer-flag: New file.
12060         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
12061         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
12062         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
12063
12064 2009-12-11  Bruno Haible  <bruno@clisp.org>
12065
12066         Tests for module 'nl_langinfo'.
12067         * modules/nl_langinfo-tests: New file.
12068         * tests/test-nl_langinfo.sh: New file.
12069         * tests/test-nl_langinfo.c: New file.
12070
12071         New module 'nl_langinfo'.
12072         * lib/nl_langinfo.c: New file.
12073         * m4/nl_langinfo.m4: New file.
12074         * modules/nl_langinfo: New file.
12075         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
12076
12077 2009-12-11  Bruno Haible  <bruno@clisp.org>
12078
12079         Tests for module 'langinfo'.
12080         * modules/langinfo-tests: New file.
12081         * tests/test-langinfo.c: New file.
12082
12083         New module 'langinfo'.
12084         * lib/langinfo.in.h: New file.
12085         * m4/langinfo_h.m4: New file.
12086         * modules/langinfo: New file.
12087         * doc/posix-headers/langinfo.texi: Mention the new module.
12088
12089 2009-12-11  Bruno Haible  <bruno@clisp.org>
12090
12091         * lib/config.charset: Untabify.
12092
12093 2009-12-11  Bruno Haible  <bruno@clisp.org>
12094
12095         * modules/unistd-safer (configure.ac): Drop indicator macro.
12096
12097 2009-12-11  Bruno Haible  <bruno@clisp.org>
12098
12099         Move pipe2-safer code to its own file.
12100         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
12101         * lib/pipe-safer.c (pipe2_safer): Remove function.
12102         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
12103         (Makefile.am): Add it to lib_SOURCES.
12104
12105 2009-12-10  Bruno Haible  <bruno@clisp.org>
12106
12107         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
12108
12109 2009-12-10  Bruno Haible  <bruno@clisp.org>
12110
12111         Declare which arguments expect non-NULL values, for GCC and clang.
12112         * build-aux/arg-nonnull.h: New file.
12113         * modules/arg-nonnull: New file.
12114         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
12115         (inet_ntop, inet_pton): Use it.
12116         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
12117         (closedir, dirfd, opendir, scandir, alphasort): Use it.
12118         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
12119         (open, openat): Use it.
12120         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
12121         (fnmatch): Use it.
12122         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
12123         (getopt, getopt_long, getopt_long_only): Use it.
12124         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
12125         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
12126         Use it.
12127         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
12128         (iconv_open): Use it.
12129         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
12130         (strtoimax, strtoumax): Use it.
12131         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
12132         (duplocale): Use it.
12133         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
12134         (frexp, frexpl): Use it.
12135         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
12136         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
12137         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
12138         (tsearch, tfind, tdelete, twalk): Use it.
12139         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
12140         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
12141         sigpending): Use it.
12142         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
12143         (posix_spawn, posix_spawnp, posix_spawnattr_init,
12144         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
12145         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
12146         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
12147         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
12148         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
12149         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
12150         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
12151         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
12152         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
12153         Use it.
12154         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
12155         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
12156         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
12157         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
12158         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
12159         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
12160         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
12161         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
12162         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
12163         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
12164         strtoull, unsetenv): Use it.
12165         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
12166         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
12167         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
12168         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
12169         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
12170         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
12171         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
12172         (strcasecmp, strncasecmp): Use it.
12173         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
12174         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
12175         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
12176         rpl_setsockopt): Use it.
12177         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
12178         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
12179         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
12180         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
12181         (gettimeofday): Use it.
12182         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
12183         (times): Use it.
12184         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
12185         (uname): Use it.
12186         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
12187         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
12188         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
12189         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
12190         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
12191         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
12192         unlinkat, write): Use it.
12193         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
12194         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
12195         * lib/argv-iter.h: Include arg-nonnull.h.
12196         (_ATTRIBUTE_NONNULL_): Remove macro.
12197         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
12198         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
12199         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
12200         optimization.
12201         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
12202         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
12203         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
12204         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
12205         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
12206         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
12207         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
12208         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
12209         * modules/arpa_inet (Depends-on): Add arg-nonnull.
12210         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
12211         * modules/dirent (Depends-on): Add arg-nonnull.
12212         (Makefile.am): Insert arg-nonnull.h into dirent.h.
12213         * modules/fcntl-h (Depends-on): Add arg-nonnull.
12214         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
12215         * modules/fnmatch (Depends-on): Add arg-nonnull.
12216         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
12217         * modules/getopt-posix (Depends-on): Add arg-nonnull.
12218         (Makefile.am): Insert arg-nonnull.h into getopt.h.
12219         * modules/glob (Depends-on): Add arg-nonnull.
12220         (Makefile.am): Insert arg-nonnull.h into glob.h.
12221         * modules/iconv_open (Depends-on): Add arg-nonnull.
12222         (Makefile.am): Insert arg-nonnull.h into iconv.h.
12223         * modules/inttypes (Depends-on): Add arg-nonnull.
12224         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
12225         * modules/locale (Depends-on): Add arg-nonnull.
12226         (Makefile.am): Insert arg-nonnull.h into locale.h.
12227         * modules/math (Depends-on): Add arg-nonnull.
12228         (Makefile.am): Insert arg-nonnull.h into math.h.
12229         * modules/netdb (Depends-on): Add arg-nonnull.
12230         (Makefile.am): Insert arg-nonnull.h into netdb.h.
12231         * modules/search (Depends-on): Add arg-nonnull.
12232         (Makefile.am): Insert arg-nonnull.h into search.h.
12233         * modules/signal (Depends-on): Add arg-nonnull.
12234         (Makefile.am): Insert arg-nonnull.h into signal.h.
12235         * modules/spawn (Depends-on): Add arg-nonnull.
12236         (Makefile.am): Insert arg-nonnull.h into spawn.h.
12237         * modules/stdio (Depends-on): Add arg-nonnull.
12238         (Makefile.am): Insert arg-nonnull.h into stdio.h.
12239         * modules/stdlib (Depends-on): Add arg-nonnull.
12240         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
12241         * modules/string (Depends-on): Add arg-nonnull.
12242         (Makefile.am): Insert arg-nonnull.h into string.h.
12243         * modules/strings (Depends-on): Add arg-nonnull.
12244         (Makefile.am): Insert arg-nonnull.h into strings.h.
12245         * modules/sys_socket (Depends-on): Add arg-nonnull.
12246         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
12247         * modules/sys_stat (Depends-on): Add arg-nonnull.
12248         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
12249         * modules/sys_time (Depends-on): Add arg-nonnull.
12250         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
12251         * modules/sys_times (Depends-on): Add arg-nonnull.
12252         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
12253         * modules/sys_utsname (Depends-on): Add arg-nonnull.
12254         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
12255         * modules/time (Depends-on): Add arg-nonnull.
12256         (Makefile.am): Insert arg-nonnull.h into time.h.
12257         * modules/unistd (Depends-on): Add arg-nonnull.
12258         (Makefile.am): Insert arg-nonnull.h into unistd.h.
12259         * modules/wchar (Depends-on): Add arg-nonnull.
12260         (Makefile.am): Insert arg-nonnull.h into wchar.h.
12261         * modules/argv-iter (Depends-on): Add arg-nonnull.
12262         * tests/test-canonicalize.c (null_ptr): New function.
12263         (main): Use it.
12264         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
12265         (main): Use it.
12266         * tests/test-memmem.c (null_ptr): New function.
12267         (main): Use it.
12268         Reported by Jim Meyering.
12269
12270 2009-12-10  Bruno Haible  <bruno@clisp.org>
12271
12272         Use spaces for indentation, not tabs.
12273         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
12274         * m4/*.m4: Untabify.
12275         * build-aux/*.h: Untabify.
12276         * tests/**/*.[hc]: Untabify.
12277         * README: New section "Indent with spaces, not TABs", based on
12278         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
12279         * NEWS: Mention the change.
12280
12281 2009-12-10  Bruno Haible  <bruno@clisp.org>
12282
12283         pty test: Fix link error.
12284         * modules/pty-tests (Makefile.am): Add the default LDADD value to
12285         test_pty_LDADD.
12286
12287 2009-12-07  Simon Josefsson  <simon@josefsson.org>
12288
12289         * modules/pty: New file.
12290         * modules/pty-tests: New file.
12291         * m4/pty.m4: New file.
12292         * tests/test-pty.c: New file.
12293         * doc/glibc-headers/pty.texi: Modified.
12294         * doc/glibc-functions/forkpty.texi: Modified.
12295         * doc/glibc-functions/openpty.texi: Modified.
12296
12297 2009-12-10  Bruno Haible  <bruno@clisp.org>
12298
12299         Avoid syntax error in C++ mode.
12300         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
12301
12302 2009-12-10  Bruno Haible  <bruno@clisp.org>
12303
12304         Use sed with option -e.
12305         * gnulib-tool (func_version, func_emit_copyright_notice,
12306         func_emit_initmacro_end, func_import, func_create_testdir): Pass
12307         option -e to sed.
12308         * modules/link-warning (Makefile.am): Likewise.
12309
12310 2009-12-10  Jim Meyering  <meyering@redhat.com>
12311
12312         mgetgroups: do not write bytes beyond end of malloc'd buffer
12313         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
12314         username, we call getgroups with a one-element-shorter buffer,
12315         but still told it the length was original, max_n_groups.
12316
12317 2009-12-09  Eric Blake  <ebb9@byu.net>
12318
12319         cloexec: relax license
12320         * modules/cloexec (Maintainer): Add myself.
12321         (License): Use LGPL, not GPL.
12322
12323         link-warning: optimize generation
12324         * modules/link-warning (Makefile.am): Reduce process usage.
12325
12326 2009-12-09  Bruno Haible  <bruno@clisp.org>
12327
12328         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
12329         workaround was added on 2009-11-17.
12330
12331 2009-12-09  Jim Meyering  <meyering@redhat.com>
12332             Bruno Haible  <bruno@clisp.org>
12333
12334         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
12335         * modules/link-warning (Makefile.am): Make the comment-removing sed
12336         command more robust in the face of bootstrap-prepended comment lines.
12337
12338 2009-12-09  Bruno Haible  <bruno@clisp.org>
12339
12340         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
12341         most one group.
12342
12343 2009-12-09  Simon Josefsson <simon@josefsson.org>
12344             Bruno Haible  <bruno@clisp.org>
12345
12346         * build-aux/link-warning.h: Add copyright notice.
12347         * modules/link-warning (Makefile.am): Generate link-warning.h from
12348         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
12349         * NEWS: Mention change in link-warning module.
12350         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
12351         * modules/dirent (Makefile.am): Add dependency to dirent.h.
12352         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
12353         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
12354         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
12355         * modules/math (Makefile.am): Add dependency to math.h.
12356         * modules/search (Makefile.am): Add dependency to search.h.
12357         * modules/signal (Makefile.am): Add dependency to signal.h.
12358         * modules/spawn (Makefile.am): Add dependency to spawn.h.
12359         * modules/stdio (Makefile.am): Add dependency to stdio.h.
12360         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
12361         * modules/string (Makefile.am): Add dependency to string.h.
12362         * modules/strings (Makefile.am): Add dependency to strings.h.
12363         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
12364         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
12365         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
12366         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
12367         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
12368         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
12369         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
12370         * modules/unistd (Makefile.am): Add dependency to unistd.h.
12371         * modules/wchar (Makefile.am): Add dependency to wchar.h.
12372
12373 2009-12-09  Bruno Haible  <bruno@clisp.org>
12374
12375         fchdir: Optimize away rpl_fstat when possible.
12376         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
12377         REPLACE_OPEN_DIRECTORY.
12378         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
12379
12380 2009-12-09  Bruno Haible  <bruno@clisp.org>
12381
12382         * lib/fchdir.c: Update comment.
12383
12384 2009-12-09  Bruno Haible  <bruno@clisp.org>
12385
12386         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
12387
12388 2009-12-08  Eric Blake  <ebb9@byu.net>
12389
12390         fchdir: avoid memory leak on re-registration.
12391         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
12392
12393 2009-12-08  Jim Meyering  <meyering@redhat.com>
12394
12395         init.sh: avoid Solaris 10 /bin/sh portability problem
12396         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
12397         sourced script:
12398           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
12399           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
12400           bar
12401         tests/init.sh relied on that, accepting a --set-path=DIR argument,
12402         and two tests used that idiom.
12403         * tests/init.sh: Update suggested usage comments.
12404         (path_prepend_): New function, to be used in place
12405         of the --src-path=DIR option.
12406         (setup_): Move PATH-prepending code into path_prepend_.
12407         * tests/test-pread.sh: Adapt to new usage.
12408         * tests/test-xalloc-die.sh: Likewise.
12409
12410 2009-12-08  Simon Josefsson  <simon@josefsson.org>
12411
12412         * doc/gnulib.texi (Glibc pty.h): Add.
12413         * doc/glibc-functions/forkpty.texi: Add.
12414         * doc/glibc-functions/openpty.texi: Add.
12415         Suggested by Bruno Haible.
12416
12417 2009-12-08  Eric Blake  <ebb9@byu.net>
12418
12419         fchdir: fix logic bugs
12420         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
12421         * tests/test-fchdir.c (main): Enhance test.
12422         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
12423         is in use.
12424
12425         dup2: fix logic bugs
12426         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
12427         REPLACE_DUP2 to decide when rpl_dup2 is needed.
12428         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
12429         exists.
12430         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
12431
12432 2009-12-07  Eric Blake  <ebb9@byu.net>
12433
12434         unlink: fix m4 detection
12435         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
12436
12437         unistd-safer: add unit test
12438         * modules/unistd-safer-tests: New file.
12439         * tests/test-dup-safer.c: Likewise.
12440         * tests/test-cloexec.c (setmode): Avoid compiler warning.
12441         * tests/test-dup2.c (setmode): Likewise.
12442         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
12443
12444         cloexec: preserve text vs. binary across dup_cloexec
12445         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
12446         mode.
12447         * modules/dup2-tests (Depends-on): Add binary-io.
12448         * modules/cloexec-tests (Depends-on): Likewise.
12449         * tests/test-dup2.c (setmode, is_mode): New helpers.
12450         (main): Add tests that translation mode is preserved.
12451         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
12452         Reported by Bruno Haible.
12453
12454         mgetgroups: reduce duplicate listings
12455         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
12456         resulting array.
12457         * tests/test-chown.h (test_chown): Simplify client.
12458         * tests/test-lchown.h (test_lchown): Likewise.
12459
12460 2009-12-06  Bruno Haible  <bruno@clisp.org>
12461
12462         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
12463         value.
12464
12465 2009-12-06  Bruno Haible  <bruno@clisp.org>
12466
12467         * lib/progname.c: Include stdio.h, stdlib.h.
12468         (set_program_name): Reject a NULL argument.
12469
12470 2009-12-05  Eric Blake  <ebb9@byu.net>
12471
12472         pipe2-safer: new module
12473         * modules/pipe2-safer: New file.
12474         * lib/unistd-safer.h (pipe2_safer): New prototype.
12475         * lib/unistd--.h (pipe2): New wrapper.
12476         * lib/pipe-safer.c (pipe2_safer): New function.
12477         * modules/pipe (Depends-on): Add pipe2-safer.
12478         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
12479
12480         stdlib-safer: preserve cloexec flag for mkostemp[s]
12481         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
12482         fd_safer_flag.
12483
12484         unistd-safer: allow preservation of cloexec status via flag
12485         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
12486         prototypes.
12487         * lib/dup-safer.c (dup_safer_flag): New function.
12488         * lib/fd-safer.c (fd_safer_flag): Likewise.
12489         * modules/cloexec (configure.ac): Set witness.
12490
12491         test-dup2: enhance test
12492         * modules/dup2-tests (Depends-on): Add cloexec.
12493         * tests/test-dup2.c (main): Enhance test.
12494
12495         cloexec: add dup_cloexec
12496         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
12497         header and comments.
12498         * lib/cloexec.c (set_cloexec_flag): Add comments.
12499         (dup_cloexec): New function, with mingw implementation borrowed
12500         from...
12501         * lib/w32spawn.h (dup_noinherit): ...here.
12502         * modules/execute (Depends-on): Add cloexec.
12503         * modules/pipe (Depends-on): Likewise.
12504         * modules/cloexec (Depends-on): Add dup2.
12505         * modules/cloexec-tests (Files): New file.
12506         * tests/test-cloexec.c: Likewise.
12507
12508         test-xalloc-die: fix test for mingw
12509         * modules/xalloc-die-tests (Files): Add tests/init.sh.
12510         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
12511         directory and .exe suffix off argv[0] output.
12512
12513         test-fseeko: fix test for mingw
12514         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
12515         than undefining fseek, so test will pass on mingw.
12516
12517 2009-12-05  Bruno Haible  <bruno@clisp.org>
12518
12519         * lib/progname.h (set_program_name): Clarify specification.
12520         * lib/progname.c (set_program_name): Likewise.
12521         Reported by Jim Meyering.
12522
12523 2009-12-05  Jim Meyering  <meyering@redhat.com>
12524
12525         maint.mk: backslash-escape parens in default regexp
12526         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
12527         backslash-escape the literal parentheses.
12528
12529         maint.mk: news-date-check: use grep -E
12530         * top/maint.mk (today): Define a Make variable, not a...
12531         (news-date-check): ...shell variable.
12532         (news-date-regexp): Use the Make variable.
12533         Use grep's -E option.  Change the failing diagnostic to mention
12534         the variable, $(news-date-regexp).
12535
12536 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
12537
12538         maintainer-makefile: allow customization of NEWS entry format
12539         * top/maint.mk (news-date-regexp): New overridable variable.
12540         (news-date-check): Use it.
12541
12542 2009-12-04  Eric Blake  <ebb9@byu.net>
12543
12544         mgetgroups: add xgetgroups, and avoid ENOSYS failures
12545         * lib/mgetgroups.h (xgetgroups): New prototype.
12546         * lib/mgetgroups.c (xgetgroups): New wrapper.
12547         (mgetgroups): Handle ENOSYS.
12548         * modules/mgetgroups (Depends-on): Add realloc.
12549         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
12550
12551         mgetgroups: avoid argument promotion issues with -1
12552         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
12553         for invalid gid_t.
12554         * tests/test-chown.h (getegid, test_chown): Likewise.
12555         * tests/test-lchown.h (getegid, test_lchown): Likewise.
12556
12557 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
12558
12559         exclude: Fix header file problems.
12560         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
12561
12562 2009-12-01  Jim Meyering  <meyering@redhat.com>
12563
12564         fts: fts_open: do not let an empty string cause immediate failure
12565         This is required in support of GNU rm, for which the command
12566         "rm A '' B" must process and remove both A and B, in spite of
12567         the empty string argument.
12568         * lib/fts.c (fts_open): Do not let the presence of an empty string
12569         cause fts_open to fail immediately.  Most fts-using tools must be
12570         able to process all arguments, in order, and can be expected to
12571         diagnose such arguments themselves.
12572
12573 2009-11-30  Eric Blake  <ebb9@byu.net>
12574
12575         utimens: fix compilation error
12576         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
12577         Declare variable at right scope.
12578
12579 2009-11-29  Jim Meyering  <meyering@redhat.com>
12580
12581         bootstrap: handle perl-5.11's changed --version output
12582         * build-aux/bootstrap (get_version): Handle perl separately,
12583         since perl-5.11's --version output is different.
12584
12585 2009-11-28  Jim Meyering  <meyering@redhat.com>
12586
12587         userspec: depend on the inttostr module, too
12588         * modules/userspec (Depends-on): Add inttostr.
12589
12590         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
12591         * lib/userspec.c (parse_with_separator): Do not accept a user ID
12592         number of MAXUID when it evaluates to (uid_t) -1.
12593         Likewise for group ID.  Reported by Matt McCutchen in
12594         <http://savannah.gnu.org/bugs/?28113>
12595
12596         userspec: reformat to use spaces, not TABs
12597         * lib/userspec.c: Expand TABs to spaces.
12598         Add Emacs' "indent-tabs-mode: nil" hint.
12599
12600 2009-11-27  Eric Blake  <ebb9@byu.net>
12601
12602         getopt-gnu: flush out another BSD bug
12603         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
12604         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
12605         flush out BSD bug.
12606         * tests/test-getopt.h (test_getopt): End lists with NULL.
12607         * tests/test-getopt_long.h (test_getopt_long): Likewise.
12608         (test_getopt_long_posix): Enhance test.
12609         * modules/getopt-posix-tests (Depends-on): Add stdbool.
12610         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
12611         getopt-gnu.
12612         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12613         Likewise.
12614
12615 2009-11-27  Simon Josefsson  <simon@josefsson.org>
12616
12617         * modules/idpriv-droptemp-tests (Notice): Fix text.
12618
12619 2009-11-27  Jim Meyering  <meyering@redhat.com>
12620
12621         test-xalloc-die: avoid spurious failure due to libtool argv difference
12622         In a libtool-enabled project, this test would fail due to a difference
12623         in the emitted program name, e.g.,
12624         -test-xalloc-die: memory exhausted
12625         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
12626         Use program to avoid that.
12627         * modules/xalloc-die-tests (Depends-on): Add progname.
12628         * tests/test-xalloc-die.c: Include progname.h".
12629         (program_name): Remove decl.
12630         (main): Call set_program_name.
12631         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
12632
12633 2009-11-26  Richard Jones  <rjones@redhat.com>
12634
12635         w32sock: leave win32 error in place.
12636         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
12637
12638 2009-11-26  Eric Blake  <ebb9@byu.net>
12639
12640         init.sh: suggest to use skip_ and fail_ functions in comments
12641         * tests/init.sh: Add a sentence.
12642
12643 2009-11-25  Bruno Haible  <bruno@clisp.org>
12644
12645         init.sh: add documentation in comments
12646         * tests/init.sh: Add some developer and user documentation.
12647
12648 2009-11-26  Jim Meyering  <meyering@redhat.com>
12649
12650         init.sh: accommodate even those who specify bogus srcdir manually
12651         * tests/init.sh: Normally, srcdir is guaranteed by automake and
12652         configure-time tests to be sanitized, so that there is no need to
12653         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
12654         (with no double quotes) suffices.  However, since tests may be
12655         invoked manually, and since you may explicitly set srcdir to the
12656         name of a directory containing spaces, do quote its uses here.
12657         * tests/test-pread.sh: Likewise.
12658         Suggested by Bruno Haible.
12659
12660         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
12661         * tests/test-pread.sh: Write no data into the pipe, because
12662         test-pread actually reads none.  This avoids a diagnostic,
12663         "bash: echo: write error: Broken pipe", that arises in the unusual
12664         event something is ignoring SIGPIPE, and might be interpreted
12665         as some sort of failure.  Reported by Bruno Haible.
12666
12667 2009-11-25  Jim Meyering  <meyering@redhat.com>
12668
12669         test-pread: cover failure with ESPIPE and EINVAL
12670         * tests/test-pread.c (main): Test for failure, too.
12671         * tests/test-pread.sh: Invoke with stdin on a pipe.
12672         Suggested by Eric Blake.
12673
12674         pread: improvement and fix
12675         * modules/pread (Depends-on): Depend on lseek, for portability to
12676         e.g., mingw.  Suggested by Eric Blake.
12677         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
12678
12679         unistd.in.h: correct declaration of pread
12680         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
12681         Reported by Richard W.M. Jones.
12682
12683         test-pread.sh: distribute the test script
12684         * modules/pread-tests (Files): Include test-pread.sh.
12685
12686         test-pread.sh: clean up
12687         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
12688         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
12689         That is unnecessary, since it's always ".".
12690         Suggestion from Eric Blake.
12691
12692         test-pread.sh: make executable
12693         * tests/test-pread.sh: Set executable bit.
12694         Reported by Eric Blake.
12695
12696         correct typo in test-pread.sh
12697         * tests/test-pread.sh: Add #! line.
12698
12699         test pread
12700         * tests/test-pread.c: New file.
12701         * tests/test-pread.sh: Likewise.
12702         * modules/pread-tests: Likewise.
12703
12704         pread: new module
12705         * modules/pread: New file.
12706         * lib/unistd.in.h (pread): Define/declare.
12707         * lib/pread.c (pread): New file.
12708         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
12709         * modules/unistd (Makefile.am): Substitute witnesses.
12710         * doc/posix-functions/pread.texi (pread): Update.
12711         * MODULES.html.sh: Add pread.
12712
12713 2009-11-25  Jim Meyering  <meyering@redhat.com>
12714
12715         tests/init.sh: new file to be used via most *.sh tests
12716         * tests/init.sh: New file.
12717
12718 2009-11-25  Eric Blake  <ebb9@byu.net>
12719
12720         utimens: work around older Linux failure with symlinks
12721         * lib/utimens.c (lutimensat_works_really): New variable.
12722         (fdutimens, lutimens): Use it to manage kernels that support
12723         nanosecond times on files, but not on symlinks.
12724         Reported by Ondřej Vašík.
12725
12726         utimes: fix configure grammar
12727         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
12728
12729 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
12730
12731         regex: Fix fastmap for multibyte character ranges.
12732         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
12733         characters when a multibyte character range is included.
12734
12735 2009-11-22  Andy Wingo  <wingo@pobox.com>
12736
12737         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
12738         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
12739
12740 2009-11-24  Bruno Haible  <bruno@clisp.org>
12741
12742         doc: Most *_l functions exist in MacOS X 10.5.
12743         * doc/posix-functions/duplocale.texi: Update platforms list.
12744         * doc/posix-functions/freelocale.texi: Likewise.
12745         * doc/posix-functions/newlocale.texi: Likewise.
12746         * doc/posix-functions/uselocale.texi: Likewise.
12747         * doc/posix-functions/isalnum_l.texi: Likewise.
12748         * doc/posix-functions/isalpha_l.texi: Likewise.
12749         * doc/posix-functions/isblank_l.texi: Likewise.
12750         * doc/posix-functions/iscntrl_l.texi: Likewise.
12751         * doc/posix-functions/isdigit_l.texi: Likewise.
12752         * doc/posix-functions/isgraph_l.texi: Likewise.
12753         * doc/posix-functions/islower_l.texi: Likewise.
12754         * doc/posix-functions/isprint_l.texi: Likewise.
12755         * doc/posix-functions/ispunct_l.texi: Likewise.
12756         * doc/posix-functions/isspace_l.texi: Likewise.
12757         * doc/posix-functions/isupper_l.texi: Likewise.
12758         * doc/posix-functions/iswalnum_l.texi: Likewise.
12759         * doc/posix-functions/iswalpha_l.texi: Likewise.
12760         * doc/posix-functions/iswblank_l.texi: Likewise.
12761         * doc/posix-functions/iswcntrl_l.texi: Likewise.
12762         * doc/posix-functions/iswctype_l.texi: Likewise.
12763         * doc/posix-functions/iswdigit_l.texi: Likewise.
12764         * doc/posix-functions/iswgraph_l.texi: Likewise.
12765         * doc/posix-functions/iswlower_l.texi: Likewise.
12766         * doc/posix-functions/iswprint_l.texi: Likewise.
12767         * doc/posix-functions/iswpunct_l.texi: Likewise.
12768         * doc/posix-functions/iswspace_l.texi: Likewise.
12769         * doc/posix-functions/iswupper_l.texi: Likewise.
12770         * doc/posix-functions/iswxdigit_l.texi: Likewise.
12771         * doc/posix-functions/isxdigit_l.texi: Likewise.
12772         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
12773         * doc/posix-functions/strcasecmp_l.texi: Likewise.
12774         * doc/posix-functions/strcoll_l.texi: Likewise.
12775         * doc/posix-functions/strfmon_l.texi: Likewise.
12776         * doc/posix-functions/strftime_l.texi: Likewise.
12777         * doc/posix-functions/strncasecmp_l.texi: Likewise.
12778         * doc/posix-functions/strxfrm_l.texi: Likewise.
12779         * doc/posix-functions/tolower_l.texi: Likewise.
12780         * doc/posix-functions/toupper_l.texi: Likewise.
12781         * doc/posix-functions/towctrans_l.texi: Likewise.
12782         * doc/posix-functions/towlower_l.texi: Likewise.
12783         * doc/posix-functions/towupper_l.texi: Likewise.
12784         * doc/posix-functions/wcscoll_l.texi: Likewise.
12785         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
12786         * doc/posix-functions/wctrans_l.texi: Likewise.
12787         * doc/posix-functions/wctype_l.texi: Likewise.
12788         * doc/glibc-functions/strptime_l.texi: Likewise.
12789         * doc/glibc-functions/strtod_l.texi: Likewise.
12790         * doc/glibc-functions/strtof_l.texi: Likewise.
12791         * doc/glibc-functions/strtol_l.texi: Likewise.
12792         * doc/glibc-functions/strtold_l.texi: Likewise.
12793         * doc/glibc-functions/strtoll_l.texi: Likewise.
12794         * doc/glibc-functions/strtoul_l.texi: Likewise.
12795         * doc/glibc-functions/strtoull_l.texi: Likewise.
12796         * doc/glibc-functions/wcsftime_l.texi: Likewise.
12797         * doc/glibc-functions/wcstod_l.texi: Likewise.
12798         * doc/glibc-functions/wcstof_l.texi: Likewise.
12799         * doc/glibc-functions/wcstol_l.texi: Likewise.
12800         * doc/glibc-functions/wcstold_l.texi: Likewise.
12801         * doc/glibc-functions/wcstoll_l.texi: Likewise.
12802         * doc/glibc-functions/wcstoul_l.texi: Likewise.
12803         * doc/glibc-functions/wcstoull_l.texi: Likewise.
12804
12805 2009-11-24  Bruno Haible  <bruno@clisp.org>
12806
12807         duplocale: Fix logic bug.
12808         * lib/duplocale.c: Don't include <langinfo.h>.
12809         (_NL_LOCALE_NAME): Remove macro.
12810         (rpl_duplocale): Use setlocale instead of nl_langinfo.
12811         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
12812
12813 2009-11-23  Jim Meyering  <meyering@redhat.com>
12814
12815         test-update-copyright: don't hard-code /usr/bin/perl
12816         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
12817         perl to print the current year.  Gilles Espinasse reported that
12818         the replaced use of perl was hard-coded as /usr/bin/perl.
12819
12820 2009-11-23  Bruno Haible  <bruno@clisp.org>
12821
12822         duplocale: Add support for glibc 2.3.x.
12823         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
12824
12825 2009-11-22  Bruno Haible  <bruno@clisp.org>
12826
12827         vasnprintf: Tiny optimization.
12828         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
12829         MacOS X.
12830
12831 2009-11-22  Bruno Haible  <bruno@clisp.org>
12832
12833         Tests for module 'duplocale'.
12834         * modules/duplocale-tests: New file.
12835         * tests/test-duplocale.c: New file.
12836
12837         New module 'duplocale'.
12838         * m4/duplocale.m4: New file.
12839         * lib/locale.in.h (duplocale): New declaration.
12840         * lib/duplocale.c: New file.
12841         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
12842         gl_LOCALE_H_DEFAULTS): New macros.
12843         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
12844         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
12845         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
12846         REPLACE_DUPLOCALE.
12847         * modules/duplocale: New file.
12848         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
12849
12850 2009-11-22  Bruno Haible  <bruno@clisp.org>
12851
12852         * modules/locale-tests (configure.ac): Test for newlocale function.
12853         * tests/test-locale.c: When the system has extended locale functions,
12854         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
12855
12856         locale: Make locale_t available when possible.
12857         * lib/locale.in.h: Include <xlocale.h> when it exists.
12858         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
12859         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
12860         * modules/locale (Depends-on): Add extensions.
12861         (Makefile.am): Also substitute HAVE_XLOCALE_H.
12862         * doc/posix-headers/locale.texi: Document the problem with locale_t.
12863
12864 2009-11-22  Bruno Haible  <bruno@clisp.org>
12865
12866         Add comments.
12867         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
12868         invocation.
12869         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
12870         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12871         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
12872
12873 2009-11-22  Bruno Haible  <bruno@clisp.org>
12874
12875         error: account for the possibility of freopen (stdout).
12876         * lib/error.c: Include <unistd.h>.
12877         (flush_stdout): New function, extracted from error and error_at_line.
12878         Determine stdout's fd dynamically.
12879         (error, error_at_line): Invoke flush_stdout.
12880         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
12881         * modules/error (Depends-on): Add unistd.
12882
12883 2009-11-22  Bruno Haible  <bruno@clisp.org>
12884
12885         diffseq: Add comment.
12886         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
12887
12888 2009-11-22  Jim Meyering  <meyering@redhat.com>
12889
12890         c-stack: avoid defining an unused static function
12891         * lib/c-stack.c (find_stack_direction): Do not define this function
12892         when it will not be used.
12893
12894         diffseq: avoid spurious gcc warnings
12895         * lib/diffseq.h (IF_LINT2): Define.
12896         (compareseq): Use it to initialize two members of "part".
12897         This avoids two used-uninitialized warnings.
12898
12899 2009-11-21  Jim Meyering  <meyering@redhat.com>
12900
12901         c-stack: avoid "ignoring return value of `write'" warning
12902         * lib/c-stack.c: Include "ignore-value.h".
12903         (die): Explicitly ignore each write return value.
12904         * modules/c-stack (Depends-on): Add ignore-value.
12905
12906 2009-11-21  Bruno Haible  <bruno@clisp.org>
12907
12908         diffseq: reduce scope of variable 'best'.
12909         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
12910         variable, earlier used for two different purposes.
12911
12912 2009-11-21  Jim Meyering  <meyering@redhat.com>
12913
12914         diffseq: remove useless assignment to "best"
12915         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
12916         assignment.  At that point "best" is already guaranteed to be zero.
12917
12918 2009-11-20  Eric Blake  <ebb9@byu.net>
12919
12920         build: mention ftp redirector in release announcements
12921         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
12922         values that used to come from cfg.mk; mention FTP redirect URL.
12923         * build-aux/announce-gen: Mention the mirror list.
12924         Suggested by Karl Berry.
12925
12926         nanosleep: improve port to mingw
12927         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
12928         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
12929         LIB_NANOSLEEP, but only when needed.
12930         * modules/select (Link): Document LIBSOCKET.
12931         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
12932         enough.
12933
12934         nanosleep: work around cygwin bug
12935         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
12936         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
12937         bug.
12938         (getnow): Delete, not needed.
12939         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
12940         LIB_CLOCK_GETTIME.
12941         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
12942         clock-time, gettime.
12943         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
12944         bug.
12945         * modules/nanosleep-tests: New test.
12946         * tests/test-nanosleep.c: New file.
12947
12948         sleep: work around cygwin bug
12949         * lib/sleep.c (rpl_sleep): Work around the bug.
12950         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
12951         (gl_PREREQ_SLEEP): Delete unused macro.
12952         * modules/sleep (Depends-on): Add verify.
12953         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
12954         * modules/unistd (Makefile.am): Substitute witness.
12955         * lib/unistd.in.h (sleep): Update prototype.
12956         * doc/posix-functions/sleep.texi (sleep): Document the bug.
12957         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
12958         * modules/sleep-tests (Depends-on): Check for alarm.
12959
12960 2009-11-20  Jim Meyering  <meyering@redhat.com>
12961
12962         maint.mk: improve sc_prohibit_magic_number_exit
12963         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
12964         so it does not match uses like System.exit(1).
12965         Add comments showing how to correct all offenders.
12966
12967 2009-11-19  Eric Blake  <ebb9@byu.net>
12968
12969         xalloc-die-tests: add missing library
12970         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
12971
12972         test-xvasprintf: silence compiler warnings
12973         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
12974         empty string from gcc.
12975
12976 2009-11-19  Jim Meyering  <meyering@redhat.com>
12977
12978         xfreopen: new module, from coreutils
12979         * modules/xfreopen: New module.
12980         * lib/xfreopen.c: New file.
12981         * lib/xfreopen.h: New file.
12982         * MODULES.html.sh (File stream based Input/Output"): Add it.
12983
12984 2009-11-19  Eric Blake  <ebb9@byu.net>
12985
12986         manywarnings: depend on warnings
12987         * modules/manywarnings (Depends-on): Add warnings.
12988
12989         build: avoid compiler warnings
12990         * lib/select.c (rpl_select): Delete unused variable.
12991         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
12992
12993 2009-11-18  Eric Blake  <ebb9@byu.net>
12994
12995         tests: avoid false negative with --with-packager
12996         * tests/test-version-etc.sh: Discard packager information.
12997         * tests/test-argp-version-etc-1.sh: Likewise.
12998         Reported by Mike Frysinger.
12999
13000         utimens: fix regression on Solaris
13001         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
13002         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
13003         can only change fd timestamps via futimesat.  Instead, use an
13004         additional witness macro to avoid BSD bug.
13005         Reported by Jim Meyering.
13006
13007 2009-11-17  Eric Blake  <ebb9@byu.net>
13008
13009         usleep: use it to simplify tests
13010         * modules/stat-time-tests (Depends-on): Add usleep.
13011         (configure.ac): Drop usleep check.
13012         * modules/chown-tests (Depends-on, configure.ac): Likewise.
13013         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
13014         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
13015         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
13016         * modules/openat-tests (Depends-on, configure.ac): Likewise.
13017         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
13018         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
13019         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
13020         Likewise.
13021         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
13022         * tests/test-lchown.h (nap): Likewise.
13023         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
13024         * tests/test-stat-time.c (nap): Likewise.
13025         * tests/test-utimens-common.h (nap): Update comments.
13026
13027         usleep: new module
13028         * modules/usleep: New file.
13029         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
13030         * lib/usleep.c (usleep): Likewise.
13031         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
13032         * modules/unistd (Makefile.am): Substitute witnesses.
13033         * lib/unistd.in.h (usleep): Add declaration.
13034         * doc/pastposix-functions/usleep.texi (usleep): Document this.
13035         * MODULES.html.sh (Date and time): Likewise.
13036         * modules/usleep-tests (Depends-on): New test.
13037         * tests/test-usleep.c: New file.
13038
13039         chown: work around OpenBSD bug
13040         * lib/chown.c (rpl_chown): Work around the bug.
13041         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
13042         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
13043         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
13044         * modules/chown (Depends-on): Add stdbool.
13045         * modules/lchown (Depends-on): Likewise.
13046         * doc/posix-functions/chown.texi (chown): Document the bug.
13047         * doc/posix-functions/lchown.texi (lchown): Likewise.
13048         * tests/test-lchown.h (test_chown): Relax test.
13049
13050         mkstemp: avoid conflict with C++ keyword template
13051         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
13052         * lib/mkostemp.c (mkostemp): Likewise.
13053         * lib/mkostemps.c (mkostemps): Likewise.
13054         * lib/mkstemp.c (mkstemp): Likewise.
13055         * lib/mkstemps.c (mkstemps): Likewise.
13056
13057         xalloc-die-tests: optimize
13058         * tests/test-xalloc-die.sh: Reduce number of processes.
13059
13060 2009-11-17  Simon Josefsson  <simon@josefsson.org>
13061
13062         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
13063         patch from ludo@gnu.org (Ludovic Courtès).
13064
13065 2009-11-17  Jim Meyering  <meyering@redhat.com>
13066
13067         version-etc: use proper license string
13068         * modules/version-etc (License): Use LGPL, not LGPLv3+.
13069         * modules/version-etc-fsf: Likewise.
13070
13071 2009-11-17  Simon Josefsson  <simon@josefsson.org>
13072
13073         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
13074         printed to stdout.  Deal with EOL differences.
13075
13076 2009-11-17  Eric Blake  <ebb9@byu.net>
13077
13078         unsetenv: work around Solaris bug
13079         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
13080         * lib/unsetenv.c (rpl_unsetenv): Work around it.
13081         Reported by Jim Meyering.
13082
13083         vasnprintf: avoid compiler warnings
13084         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
13085         variables.
13086         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
13087
13088 2009-11-17  Simon Josefsson  <simon@josefsson.org>
13089
13090         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
13091         settings since xalloc-die is no longer the self test,
13092         xalloc-die.sh is.
13093
13094 2009-11-17  Jim Meyering  <meyering@redhat.com>
13095
13096         test-xalloc-die.sh: make the code agree with the commit log
13097         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
13098         at the end, just in case you happen to have a test-xalloc-die
13099         program in some other PATH directory.
13100
13101         test-xalloc-die.sh: fix a portability bug
13102         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
13103         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
13104         Otherwise, argv[0] (as often seen in diagnostics) would be too
13105         system-dependent, sometimes with, and sometimes without the leading "./".
13106
13107         version-etc-fsf: relax license to LGPLv3+
13108         * modules/version-etc-fsf (License): Relax license.
13109
13110 2009-11-16  Eric Blake  <ebb9@byu.net>
13111
13112         xalloc-die-tests: avoid printing null pointer
13113         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
13114         shell script.
13115         * tests/test-xalloc-die.c (program_name): Declare.
13116         * tests/test-xalloc-die.sh (tmpfiles): New file.
13117
13118         setenv, unsetenv: work around various bugs
13119         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
13120         (setenv) [HAVE_SETENV]: Work around bugs.
13121         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
13122         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
13123         for bugs.
13124         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
13125         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
13126         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
13127         * modules/stdlib (Makefile.am): Update substitutions.
13128         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
13129         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
13130         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
13131         * modules/setenv-tests: New test.
13132         * modules/unsetenv-tests: Likewise.
13133         * tests/test-setenv.c: New file.
13134         * tests/test-unsetenv.c: Likewise.
13135
13136 2009-11-16  Jim Meyering  <meyering@redhat.com>
13137
13138         version-etc: relax license to LGPLv3+
13139         * modules/version-etc (License): Relax license.
13140
13141         better AC_REQUIRE expanded-before-required-warning avoidance
13142         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
13143         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
13144         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
13145         which is no longer needed.
13146
13147 2009-11-16  Eric Blake  <ebb9@byu.net>
13148
13149         test-freading: clean up temporary file
13150         * tests/test-freading.c (main): Remove file on success, and use
13151         ASSERT more liberally.
13152         Reported by Jim Meyering.
13153
13154 2009-11-16  Jim Meyering  <meyering@redhat.com>
13155
13156         avoid new AC_REQUIRE expanded-before-required warnings
13157         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
13158         merely using it.
13159         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
13160         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
13161
13162 2009-11-15  Simon Josefsson  <simon@josefsson.org>
13163
13164         * tests/test-xalloc-die.c: New file.
13165         * modules/xalloc-die-tests: New file.
13166         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
13167         XFAIL_TESTS so it can be appended by modules.
13168
13169 2009-11-15  Simon Josefsson  <simon@josefsson.org>
13170
13171         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
13172         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
13173
13174 2009-11-14  Eric Blake  <ebb9@byu.net>
13175
13176         fnmatch: avoid compiler warning
13177         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
13178         to silence compiler warning about mismatch signedness in ?:.
13179         Reported by Robert Millan.
13180
13181         intprops: add double-inclusion guard
13182         * lib/intprops.h: Allow idempotent includes.
13183         Suggested by Bruce Korb.
13184
13185         openat: detect Solaris fchownat bug
13186         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
13187         penalizing glibc chownat when only lchownat is broken.
13188         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
13189         trailing slash bugs.
13190         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
13191         * modules/openat-tests (Files): Include more files.
13192         (Depends-on): Add mgetgroups, sleep, stat-time.
13193         (configure.ac): Add additional checks.
13194         (Makefile.am): Build new test.
13195         * tests/test-fchownat.c: New file.
13196
13197         lchown: detect Solaris and FreeBSD bug
13198         * lib/lchown.c (rpl_lchown): Work around bug.
13199         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
13200         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13201         * modules/unistd (Makefile.am): Populate it.
13202         * lib/unistd.in.h (lchown): Update declaration.
13203         * doc/posix-functions/lchown.texi (lchown): Document the bug.
13204         * modules/lchown-tests: New file.
13205         * tests/test-lchown.h (test_lchown): Likewise.
13206         * tests/test-lchown.c (main): Likewise.
13207
13208         chown: detect Solaris and FreeBSD bug
13209         * lib/chown.c (rpl_chown): Work around bug.
13210         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
13211         (gl_PREREQ_CHOWN): Delete.
13212         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13213         * modules/unistd (Makefile.am): Populate it.
13214         * lib/unistd.in.h (chown): Update declaration.
13215         * lib/lchown.c (chown): Update client.
13216         * modules/lchown (Depends-on): Add lstat.
13217         * doc/posix-functions/chown.texi (chown): Document the bug.
13218         * doc/posix-functions/getgroups.texi (getgroups): Document
13219         getgroups pitfall.
13220         * modules/chown-tests: New file.
13221         * tests/test-chown.h (test_chown): Likewise.
13222         * tests/test-chown.c (main): Likewise.
13223
13224 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
13225
13226         gnulib-tool: correctly detect absence of m4 directories
13227         * gnulib-tool: Avoid extra newline on data passed to wc -l.
13228
13229 2009-11-14  Jim Meyering  <meyering@redhat.com>
13230
13231         maint.mk: Prohibit inclusion of "xalloc.h" without use.
13232         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
13233
13234 2009-11-14  John W. Eaton  <jwe@gnu.org>
13235
13236         strftime.h: wrap funtion declaration in extern "C" block
13237         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
13238
13239 2009-11-13  Eric Blake  <ebb9@byu.net>
13240
13241         getgroups: avoid compiler warning
13242         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
13243
13244         getgroups: work around FreeBSD bug
13245         * lib/getgroups.c (rpl_getgroups): Work around the bug.
13246         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
13247         * doc/posix-functions/getgroups.texi (getgroups): Document it.
13248         * tests/test-getgroups.c (main): Fix buffer overrun.
13249
13250         getgroups: avoid compilation failure
13251         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
13252         * modules/getgroups (Depends-on): Add stdint.
13253
13254 2009-11-13  Jim Meyering  <meyering@redhat.com>
13255
13256         test-getgroups: avoid compilation failure
13257         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
13258
13259 2009-11-13  Eric Blake  <ebb9@byu.net>
13260
13261         mgetgroups: new module, taken from coreutils
13262         * modules/mgetgroups: New file.
13263         * lib/mgetgroups.h: Likewise.
13264         * lib/mgetgroups.c (mgetgroups): Likewise.
13265         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
13266         * MODULES.html.sh (Users and groups): Mention it.
13267
13268         getgroups: don't expose GETGROUPS_T to user
13269         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
13270         an element at a time if GETGROUPS_T is wrong size.
13271         * lib/getugroups.h (getugroups): Change signature.
13272         * lib/unistd.in.h (getgroups): Likewise.
13273         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
13274         signature needs fixing.
13275         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
13276         AC_TYPE_GETGROUPS.
13277         * modules/group-member (Depends-on): Add getgroups.
13278         * lib/group-member.c (group_info, get_group_info): Use gid_t.
13279         (group_member): Rely on getgroups replacement.
13280         * lib/getugroups.c (getugroups): Use gid_t.
13281         * tests/test-getgroups.c (main): Likewise.
13282         * NEWS: Mention the signature change.
13283         * doc/posix-functions/getgroups.texi (getgroups): Mention the
13284         problem with signature.
13285         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
13286         GETGROUPS_T is still useful for setgroups.
13287
13288         getgroups, getugroups: provide stubs for mingw
13289         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
13290         * lib/getugroups.c (getugroups): Likewise.
13291         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
13292         function.  Modernize replacement scheme.
13293         (gl_PREREQ_GETGROUPS): Delete.
13294         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
13295         * modules/getgroups (configure.ac): Declare witness.
13296         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
13297         * modules/unistd (Depends-on): Substitute witness.
13298         * lib/unistd.in.h (getgroups): Declare replacement.
13299
13300         getgroups: avoid calling exit
13301         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
13302         drop xalloc.
13303         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
13304         dependencies.
13305         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
13306         exiting, in the rare case of malloc failure.
13307
13308         getgroups: fix logic error
13309         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
13310         has more than 20 groups.
13311         * modules/getgroups-tests: New test.
13312         * tests/test-getgroups.c: New file.
13313
13314 2009-11-13  Simon Josefsson  <simon@josefsson.org>
13315
13316         * tests/test-base64.c: Improve.
13317
13318 2009-11-13  Simon Josefsson  <simon@josefsson.org>
13319
13320         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
13321         Blake <ebb9@byu.net>.
13322
13323 2009-11-13  Simon Josefsson  <simon@josefsson.org>
13324
13325         * tests/test-xvasprintf.c: Add %s%s related checks.
13326
13327 2009-11-12  Eric Blake  <ebb9@byu.net>
13328
13329         version-etc: match standards.texi style
13330         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
13331         and use <> only for URLs.
13332
13333 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
13334
13335         fts: do not fail on a submount during traversal
13336         * lib/fts.c (fts_build): Read the stat info again after opening
13337         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
13338         Original report at http://bugzilla.redhat.com/501848.
13339
13340 2009-11-12  Jim Meyering  <meyering@redhat.com>
13341
13342         bootstrap: sync from coreutils
13343         * build-aux/bootstrap (bootstrap_epilogue): New function.
13344         Use git_modules_config in one more place.  This make bootstrap's
13345         --gnulib-srcdir option more useful for testing.
13346
13347         bootstrap: generalize autoheader check
13348         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
13349         AC_CONFIG_HEADERS.
13350
13351 2009-11-11  Eric Blake  <ebb9@byu.net>
13352
13353         mkfifoat: use new modules for Solaris and BSD bugs
13354         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
13355         * lib/mkfifoat.c (mknodat): Split...
13356         * lib/mknodat.c (mknodat): ...into new file.
13357         * modules/mkfifoat (Files): Ship new file.
13358         (Depends-on): Add mkfifo, mknod.
13359         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
13360         (Depends-on): Add symlink.
13361         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
13362         redundant with test_mkfifo.h.
13363         (do_mkfifoat, do_mknodat): New helpers.
13364
13365         mknod: new module
13366         * modules/mknod: New file.
13367         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
13368         * lib/mknod.c (mknod): Likewise.
13369         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
13370         defaults.
13371         * modules/sys_stat (Makefile.am): Substitute them.
13372         * lib/sys_stat.in.h (mknod): Declare replacement.
13373         * MODULES.html.sh (Support for systems lacking POSIX:2008):
13374         Document it.
13375         * doc/posix-functions/mknod.texi (mknod): Likewise.
13376         * modules/mknod-tests: New test.
13377         * tests/test-mknod.c: Likewise.
13378
13379         mkfifo: new module
13380         * modules/mkfifo: New file.
13381         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
13382         * lib/mkfifo.c (mkfifo): Likewise.
13383         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
13384         defaults.
13385         * modules/sys_stat (Makefile.am): Substitute them.
13386         * lib/sys_stat.in.h (mkfifo): Declare replacement.
13387         * MODULES.html.sh (Support for systems lacking POSIX:2008):
13388         Document it.
13389         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
13390         * modules/mkfifo-tests: New test.
13391         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
13392         from test-mkfifoat.c.
13393         * tests/test-mkfifo.c: New file.
13394
13395         readlink: detect FreeBSD bug
13396         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
13397         slash on symlink.
13398         * doc/posix-functions/readlink.texi (readlink): Document the bug.
13399         * tests/test-readlink.h (test_readlink): Enhance test.
13400
13401         symlink: detect FreeBSD bug
13402         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
13403         slash on symlink.
13404         * doc/posix-functions/symlink.texi (symlink): Document the bug.
13405         * tests/test-symlink.h (test_symlink): Enhance test.
13406
13407 2009-11-10  Eric Blake  <ebb9@byu.net>
13408
13409         link: detect FreeBSD bug
13410         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
13411         symlink.
13412         * doc/posix-functions/link.texi (link): Document the bug.
13413         * tests/test-link.h (test_link): Enhance test.
13414         * tests/test-linkat.c (main): Update caller.
13415
13416         unlink, remove: detect FreeBSD bug
13417         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
13418         slash on symlink.
13419         * doc/posix-functions/unlink.texi (unlink): Document the bug.
13420         * doc/posix-functions/remove.texi (remove): Likewise.
13421         * tests/test-unlink.h (test_unlink): Enhance test.
13422         * tests/test-remove.c (main): Likewise.
13423
13424 2009-11-09  Eric Blake  <ebb9@byu.net>
13425
13426         rename: detect FreeBSD bug
13427         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
13428         slash on symlink.
13429         * modules/renameat-tests (Depends-on): Add filenamecat.
13430         * tests/test-rename.h (test_rename): Allow one more errno.
13431         * tests/test-renameat.c (main): Likewise.
13432         * doc/posix-functions/rename.texi (rename): Document the bug.
13433
13434         open: detect FreeBSD bug
13435         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
13436         symlink.
13437         * doc/posix-functions/open.texi (open): Document the bug.
13438         * doc/posix-functions/utimes.texi (utimes): Likewise.
13439         * tests/test-open.h (test_open): Add parameters, and test symlink
13440         handling.
13441         * tests/test-open.c (main): Adjust caller.
13442         * tests/test-fcntl-safer.c (main): Likewise.
13443         * modules/open-tests (Depends-on): Add stdbool, symlink.
13444         * modules/fcntl-safer-tests (Depends-on): Likewise.
13445         * tests/test-openat.c (main): Add test-open tests.
13446
13447         stat: detect FreeBSD bug
13448         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
13449         symlink.
13450         * doc/posix-functions/stat.texi (stat): Document the bug.
13451         * tests/test-stat.h (test_stat_func): Add argument.
13452         * tests/test-stat.c (main): Adjust caller.
13453         * tests/test-fstatat.c (main): Likewise.
13454         * modules/stat-tests (Depends-on): Add stdbool, symlink.
13455         Reported by Jim Meyering.
13456
13457 2009-11-09  James Youngman  <jay@gnu.org>
13458
13459         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
13460         * lib/strftime.c: Correct placement of #include "ignore-value.h".
13461
13462 2009-11-08  Jim Meyering  <meyering@redhat.com>
13463
13464         utimens: remove invalid futimesat call
13465         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
13466         It used the file descriptor of the target file as the DIR_FD
13467         parameter and NULL as the file name.  That caused failure with
13468         errno == EFAULT on FreeBSD-8.0-rc2
13469
13470 2009-11-07  Eric Blake  <ebb9@byu.net>
13471
13472         fflush, freadseek: use fseeko, not fseek
13473         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
13474         (clear_ungetc_buffer): Avoid potential problems on large files.
13475         * lib/freadseek.c (freadseek): Likewise.
13476         * modules/freadseek (Depends-on): Add fseeko.
13477         * modules/fseek (configure.ac): Set a witness.
13478         * tests/test-fflush.c (main): Use fseeko.
13479         * tests/test-fpurge.c (fseek): Disable link warning.
13480         * tests/test-freadable.c (fseek): Likewise.
13481         * tests/test-freading.c (fseek): Likewise.
13482         * tests/test-fseeko.c (fseek): Likewise.
13483         * tests/test-ftell.c (fseek): Likewise.
13484         * tests/test-ftello.c (fseek): Likewise.
13485         * tests/test-fwritable.c (fseek): Likewise.
13486         * tests/test-fwriting.c (fseek): Likewise.
13487
13488 2009-11-06  Simon Josefsson  <simon@josefsson.org>
13489
13490         * modules/memchr (Depends-on): Drop getpagesize dependency.
13491
13492 2009-11-06  Simon Josefsson  <simon@josefsson.org>
13493
13494         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
13495         Reported by Ludovic Courtès.
13496         * build-aux/pmccabe2html: Improve example usage.
13497         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
13498
13499 2009-11-06  Jim Meyering  <meyering@redhat.com>
13500
13501         do-release-commit-and-tag: New module.
13502         Automate the release-commit and tag process.
13503         * build-aux/do-release-commit-and-tag: New script, from coreutils.
13504         * modules/do-release-commit-and-tag: New file.
13505         * MODULES.html.sh (Support for maintaining and releasing): Add it.
13506
13507 2009-11-06  Simon Josefsson  <simon@josefsson.org>
13508
13509         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
13510         because test-select.c uses inet_pton.
13511
13512 2009-11-06  Simon Josefsson  <simon@josefsson.org>
13513
13514         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
13515         GETADDRINFO_LIB.  Bump serial number.
13516         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
13517         Suggested by Eric Blake <ebb9@byu.net>.
13518
13519 2009-11-05  Eric Blake  <ebb9@byu.net>
13520
13521         strtod: detect darwin bug
13522         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
13523         Reported by Leo Davis.
13524
13525         freopen-safer: new module
13526         * modules/freopen-safer: New module.
13527         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
13528         * lib/freopen-safer.c (freopen_safer): New file.
13529         * lib/stdio-safer.h (freopen_safer): New declaration.
13530         * lib/stdio--.h (freopen): New override.
13531         * MODULES.html.sh (File stream based Input/Output): Mention it.
13532         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
13533         freopen-safer module.
13534         * doc/posix-functions/stderr.texi (stderr): Likewise.
13535         * doc/posix-functions/stdin.texi (stdin): Likewise.
13536         * doc/posix-functions/stdout.texi (stdout): Likewise.
13537         * modules/freopen-safer-tests: New test.
13538         * tests/test-reopen-safer.c: New file.
13539
13540 2009-11-05  Jim Meyering  <meyering@redhat.com>
13541
13542         maint.mk: Prohibit inclusion of "close-stream.h" without use.
13543         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
13544
13545 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13546
13547         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
13548
13549 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13550
13551         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
13552
13553 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13554
13555         Fix link error.
13556         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
13557         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
13558
13559 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13560
13561         * tests/test-func.c: Also test value of __func__.
13562
13563 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13564
13565         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
13566         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
13567
13568 2009-11-05  Bruno Haible  <bruno@clisp.org>
13569
13570         Fix link error.
13571         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
13572         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
13573         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
13574
13575 2009-11-05  Bruno Haible  <bruno@clisp.org>
13576
13577         Tests for module 'inet_pton'.
13578         * modules/inet_pton-tests: New file.
13579         * tests/test-inet_pton.c: New file.
13580
13581 2009-11-05  Bruno Haible  <bruno@clisp.org>
13582
13583         Tests for module 'inet_ntop'.
13584         * modules/inet_ntop-tests: New file.
13585         * tests/test-inet_ntop.c: New file.
13586
13587 2009-11-04  Eric Blake  <ebb9@byu.net>
13588
13589         stdlib-safer: wrap all mkstemp variants
13590         * modules/mkostemp (configure.ac): Set witness.
13591         * modules/mkostemps (configure.ac): Likewise.
13592         * modules/mkstemps (configure.ac): Likewise.
13593         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
13594         (mkstemps_safer): Wrap more functions.
13595         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
13596         wrapping.
13597         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
13598         (mkstemps_safer): Implement the wrappers.
13599
13600         mkstemps, mkostemps: new modules
13601         * modules/mkostemps: New module.
13602         * modules/mkstemps: Likewise.
13603         * lib/mkostemps.c (mkostemps): New file.
13604         * lib/mkstemps.c (mkstemps): Likewise.
13605         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
13606         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
13607         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
13608         * modules/stdlib (Makefile.am): Substitute them.
13609         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
13610         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
13611         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
13612         * doc/gnulib.texi (Glibc stdlib.h): Include them.
13613         * MODULES.html.sh (File system functions): Mention them.
13614
13615         tempname: resync from glibc
13616         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
13617         same values for __GT_FILE as glibc.  Abort even when assertions
13618         are disabled.
13619         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
13620         match its value otherwise.  Allow idempotent inclusion.
13621         * lib/mkdtemp.c (mkdtemp): Adjust caller.
13622         * lib/mkostemp.c (mkostemp): Likewise.
13623         * lib/mkstemp.c (mkstemp): Likewise.
13624         * lib/tmpfile.c (tmpfile): Likewise.
13625         * NEWS: Document this.
13626
13627         utimens: fix use of futimens on older Linux
13628         * lib/utimens.c (fdutimens): Use updated, rather than original,
13629         timespec to avoid bug in older Linux kernel.
13630         Reported by Simon Josefsson.
13631
13632 2009-11-04  Bruno Haible  <bruno@clisp.org>
13633
13634         Make num_processors more flexible and consistent.
13635         * lib/nproc.h (enum nproc_query): New type.
13636         (num_processors): Add a 'query' argument.
13637         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
13638         (num_processors): Add a 'query' argument. Test the value of the
13639         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
13640         mingw, count the number of CPUs available for the current process.
13641         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
13642         Check for sched_getaffinity and sched_getaffinity_np.
13643         * modules/nproc (Depends-on): Add c-ctype, extensions.
13644         * NEWS: Mention the change.
13645
13646 2009-11-03  Bruno Haible  <bruno@clisp.org>
13647
13648         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
13649
13650 2009-11-03  Jim Meyering  <meyering@redhat.com>
13651
13652         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
13653         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
13654         if it is defined.
13655
13656 2009-11-02  Eric Blake  <ebb9@byu.net>
13657
13658         mktime, timegm: share common declaration
13659         * lib/mktime-internal.h: New file.
13660         * lib/mktime.c: Use it rather than open-coding a declaration.
13661         * lib/timegm.c: Likewise.
13662         * modules/mktime (Files): Ship it.
13663         * modules/timegm (Files): Likewise.
13664         Suggested by Bruno Haible.
13665
13666         test-update-copyright: update test to match script changes
13667         * tests/test-update-copyright.sh: Avoid hard-coding perl
13668         location.  Don't update *.bak created by earlier runs.
13669
13670 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
13671             Simon Josefsson  <simon@josefsson.org>
13672             Bruno Haible  <bruno@clisp.org>
13673
13674         Fix link error on Solaris 8.
13675         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
13676         also in libnsl. Define also INET_PTON_LIB.
13677         * modules/inet_pton (Link): New section.
13678
13679 2009-11-02  Simon Josefsson  <simon@josefsson.org>
13680             Bruno Haible  <bruno@clisp.org>
13681
13682         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
13683         * modules/inet_ntop (Link): New section.
13684         Reported by Boyan Kasarov <bkasarov@gmail.com>.
13685
13686 2009-11-02  Eric Blake  <ebb9@byu.net>
13687
13688         maint: avoid compiler warnings in m4 macros
13689         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
13690         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
13691
13692 2009-11-02  Simon Josefsson  <simon@josefsson.org>
13693
13694         * m4/pmccabe2html.m4: Remove file.
13695         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
13696         function.  Change maintainer.
13697         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
13698         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
13699         Courtès).
13700
13701 2009-10-31  Eric Blake  <ebb9@byu.net>
13702
13703         fseeko: fix m4 regression
13704         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
13705         regression from 2009-10-27.
13706         Reported by Ralf Wildenhues.
13707
13708 2009-10-31  Jim Meyering  <meyering@redhat.com>
13709
13710         inttostr: aesthetics and improved (compile-time) safety
13711         Define inttype_is_signed rather than inttype_is_unsigned,
13712         since the sole use is via "#if inttype_is_signed".
13713         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
13714         inttype_is_unsigned.
13715         * lib/offtostr.c (inttype_is_signed): Likewise.
13716         * lib/uinttostr.c (inttype_is_signed): Likewise.
13717         * lib/umaxtostr.c (inttype_is_signed): Likewise.
13718         * lib/inttostr.c (inttostr): Use verify to cross-check the
13719         inttype_is_signed value and the signedness of the actual type.
13720         * modules/inttostr (Depends-on): Add verify.
13721
13722 2009-10-30  Eric Blake  <ebb9@byu.net>
13723
13724         build: avoid compiler warnings
13725         * lib/fchmodat.c (lchmod): Mark unused variables.
13726         * lib/getopt.c (_getopt_initialize): Likewise.
13727         * lib/mktime.c (__mktime_internal): Provide prototype.
13728         * lib/inttostr.c (inttostr): Avoid compiler warning even with
13729         older gcc that do not understand #pragma GCC diagnostic.
13730         * lib/uinttostr.c (inttype_is_unsigned): Define.
13731         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
13732
13733 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
13734
13735         stat: fix compilation on AIX
13736         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
13737         only see struct stat64.
13738
13739 2009-10-30  Eric Blake  <ebb9@byu.net>
13740
13741         exclude: make more robust
13742         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
13743         rather than masking a coding bug.
13744         Suggested by Bruno Haible.
13745
13746 2009-10-30  Jim Meyering  <meyering@redhat.com>
13747
13748         perl scripts: remove #!/usr/bin/perl in favor of more portable...
13749         Rather than putting #!/usr/bin/perl on the first line,
13750         start with a variant of what's recommended by "man perlrun" that
13751         invokes the first "perl" program from your shell's search path.
13752         * build-aux/gitlog-to-changelog: Replace #!... as above.
13753         Add a "Local Variables" perl mode setting.
13754         Prompted by a patch from Ludovic Courtès.
13755         Improved by Eric Blake.
13756         * build-aux/useless-if-before-free: Likewise.
13757         * build-aux/announce-gen: Likewise.
13758         * build-aux/update-copyright: Likewise.
13759
13760 2009-10-29  Eric Blake  <ebb9@byu.net>
13761
13762         filenamecat-lgpl: adjust clients
13763         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
13764         filenamecat.
13765         * modules/renameat (Depends-on): Likewise.
13766
13767         filenamecat: split into filenamecat-lgpl
13768         * modules/filenamecat-lgpl: New module.
13769         * modules/filenamecat (Files): Move library-safe files into
13770         filenamecat-lgpl.
13771         (Depends-on): Add filenamecat-lgpl.
13772         (configure.ac): Declare witness.
13773         * lib/filenamecat.h (file_name_concat): Only declare when using
13774         GPL module.
13775         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
13776         Move...
13777         * lib/filenamecat-lgpl.c: ...into new file.
13778         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
13779         (gl_FILE_NAME_CONCAT): Use it.
13780         * MODULES.html.sh (File system functions): Mention new module.
13781
13782         argp: avoid memory leak
13783         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
13784         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
13785         base_name, since the latter malloc()s and can call exit().
13786         Leak introduced 2006-07-03.
13787
13788         dirname-lgpl: adjust clients that don't need full dirname
13789         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
13790         * modules/filenamecat (Depends-on): Likewise.
13791         * modules/linkat (Depends-on): Likewise.
13792         * modules/mkancesdirs (Depends-on): Likewise.
13793         * modules/mkdir (Depends-on): Likewise.
13794         * modules/openat (Depends-on): Likewise.
13795         * modules/savewd (Depends-on): Likewise.
13796         * modules/rename (Depends-on): Likewise.
13797         (License): Relax license.
13798         * modules/mkdir-tests (Depends-on): Drop progname.
13799         (Makefile.am): Delete unneeded LDADD.
13800         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
13801
13802         dirname: split into dirname-lgpl
13803         * modules/dirname-lgpl: New module.
13804         * modules/dirname (Files): Move library-safe files into
13805         dirname-lgpl.
13806         (Depends-on): Add dirname-lgpl.
13807         (configure.ac): Declare witness.
13808         * modules/double-slash-root (License): Relax license.
13809         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
13810         module.
13811         * lib/dirname.c (dir_len, mdir_name): Move...
13812         * lib/dirname-lgpl.c: ...into new file.
13813         * lib/basename.c (last_component, base_len): Move...
13814         * lib/basename-lgpl.c: ...into new file.
13815         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
13816         (gl_DIRNAME): Use it.
13817         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
13818         Mention new module.
13819         * modules/dirname-tests (Depends-on): Add progname.
13820         * tests/test-dirname.c (program_name): Delete.
13821
13822         mkdir: make safe for libraries
13823         * modules/mkdir (Depends-on): Drop xalloc.
13824         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
13825         exit.
13826
13827         tests: avoid some compiler warnings
13828         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
13829         literals.
13830         * tests/test-memchr.c (main): Avoid type mismatch.
13831         * tests/test-arpa_inet.c (main): Avoid unused parameters.
13832         * tests/test-base64.c (main): Likewise.
13833         * tests/test-getdelim.c (main): Likewise.
13834         * tests/test-gethostname.c (main): Likewise.
13835         * tests/test-getline.c (main): Likewise.
13836         * tests/test-netinet_in.c (main): Likewise.
13837         * tests/test-select.c (open_server_socket, main): Likewise.
13838         * tests/test-select-stdin.c (main): Likewise.
13839         * tests/test-sockets.c (main): Likewise.
13840         * tests/test-strsignal.c (main): Likewise.
13841         * tests/test-sys_select.c (main): Likewise.
13842         * tests/test-sys_socket.c (main): Likewise.
13843         * tests/test-u64.c (main): Likewise.
13844         * tests/test-xfprintf-posix.c (main): Likewise.
13845         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
13846
13847         sockets: avoid compiler warning
13848         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
13849
13850         maint: detect usage(1) and other suspicious exits
13851         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
13852
13853 2009-10-29  Jim Meyering  <meyering@redhat.com>
13854
13855         timespec: long-to-int truncation could make timespec_cmp malfunction
13856         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
13857         a multiple of 2^32 nanoseconds as no difference.
13858
13859 2009-10-28  Jim Meyering  <meyering@redhat.com>
13860
13861         fprintftime: wrap macro code argument in "do {...} while(0)"
13862         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
13863         cpy macro must be a statement that can be followed by a semicolon.
13864         Now that the else clause contains a comment and is hence longer
13865         than one line, I require curly braces.  That in turn requires
13866         that we wrap this code block in the standard do...while(0).
13867
13868         fprintftime: remove stray semicolon from previous change
13869         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
13870
13871         fprintftime: avoid a warning about ignored fwrite return value
13872         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
13873         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
13874         that is unsafe.
13875         * modules/fprintftime (Depends-on): Add ignore-value.
13876
13877         exclude: avoid an unwarranted warning
13878         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
13879
13880 2009-10-27  Eric Blake  <ebb9@byu.net>
13881
13882         fseek: avoid compilation failure when fflush is replaced
13883         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
13884         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
13885         module is in use.
13886         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
13887         module is not in use; since REPLACE_FSEEK worked otherwise.
13888         (GNULIB_FTELLO): Likewise for ftell.
13889         Reported by Ian Beckwith and others.
13890
13891 2009-10-27  Bruno Haible  <bruno@clisp.org>
13892
13893         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
13894         Reported by Jim Meyering.
13895
13896 2009-10-27  Jim Meyering  <jim@meyering.net>
13897             Bruno Haible  <bruno@clisp.org>
13898
13899         Avoid warning despite dropping the return value of fwrite.
13900         * lib/unicodeio.c: Include ignore-value.h.
13901         (fwrite_success_callback): Explicitly ignore fwrite's return value.
13902         * modules/unicodeio (Depends-on): Add ignore-value.
13903
13904 2009-10-26  Eric Blake  <ebb9@byu.net>
13905
13906         areadlinkat: fix fallback path
13907         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
13908         pointer and zero.
13909
13910 2009-10-22  Pádraig Brady  <P@draigBrady.com>
13911
13912         Use a better IO block size for modern systems
13913         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
13914         * lib/md2.c: Likewise.
13915         * lib/md4.c: Likewise.
13916         * lib/md5.c: Likewise.
13917         * lib/sha1.c: Likewise.
13918         * lib/sha256.c: Likewise.
13919         * lib/sha512.c: Likewise.
13920
13921 2009-10-22  Eric Blake  <ebb9@byu.net>
13922
13923         tests: avoid several compiler warnings
13924         * tests/test-getcwd.c (main): Avoid buffer underflow.
13925         * tests/test-getdate.c (main): String literals are not safe with
13926         putenv, so use setenv.  Declare unused argument.
13927         * modules/getdate-tests (Depends-on): Add setenv.
13928         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
13929         problems with string literals in char *.
13930         * tests/test-hash.c (main): Avoid shadowing declaration.
13931         (insert_new): Treat string literals as char const *.
13932         * tests/test-getopt.h (test_getopt): Likewise.
13933         (getopt_loop): Alter types to minimize casting elsewhere.
13934         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
13935         (test_getopt_long_posix): Likewise.
13936         (do_getopt_long): Add wrapper to minimize casting.
13937         * tests/test-atexit.c (clear_temp_file): Use void.
13938         * tests/test-areadlink-with-size.c (main): Declare unused
13939         arguments.
13940         * tests/test-areadlink.c (main): Likewise.
13941         * tests/test-areadlinkat-with-size.c (main): Likewise.
13942         * tests/test-areadlinkat.c (main): Likewise.
13943         * tests/test-canonicalize-lgpl.c (main): Likewise.
13944         * tests/test-canonicalize.c (main): Likewise.
13945         * tests/test-dirent-safer.c (main): Likewise.
13946         * tests/test-dirname.c (main): Likewise.
13947         * tests/test-dup2.c (main): Likewise.
13948         * tests/test-fchdir.c (main): Likewise.
13949         * tests/test-fcntl-h.c (main): Likewise.
13950         * tests/test-fcntl-safer.c (main): Likewise.
13951         * tests/test-fdopendir.c (main): Likewise.
13952         * tests/test-fdutimensat.c (main): Likewise.
13953         * tests/test-fflush.c (main): Likewise.
13954         * tests/test-filenamecat.c (main): Likewise.
13955         * tests/test-filevercmp.c (main): Likewise.
13956         * tests/test-fopen-safer.c (main): Likewise.
13957         * tests/test-fopen.c (main): Likewise.
13958         * tests/test-fpending.c (main): Likewise.
13959         * tests/test-fpurge.c (main): Likewise.
13960         * tests/test-freading.c (main): Likewise.
13961         * tests/test-fstatat.c (main): Likewise.
13962         * tests/test-fsync.c (main): Likewise.
13963         * tests/test-futimens.c (main): Likewise.
13964         * tests/test-getndelim2.c (main): Likewise.
13965         * tests/test-gettimeofday.c (main): Likewise.
13966         * tests/test-getopt.c (main): Likewise.
13967         * tests/test-i-ring.c (main): Likewise.
13968         * tests/test-inttypes.c (main): Likewise.
13969         * tests/test-link.c (main): Likewise.
13970         * tests/test-lstat.c (main): Likewise.
13971         * tests/test-math.c (main): Likewise.
13972         * tests/test-md5.c (main): Likewise.
13973         * tests/test-memchr2.c (main): Likewise.
13974         * tests/test-memrchr.c (main): Likewise.
13975         * tests/test-mkdir.c (main): Likewise.
13976         * tests/test-mkdirat.c (main): Likewise.
13977         * tests/test-mkfifoat.c (main): Likewise.
13978         * tests/test-open.c (main): Likewise.
13979         * tests/test-openat-safer.c (main): Likewise.
13980         * tests/test-openat.c (main): Likewise.
13981         * tests/test-quotearg.c (main): Likewise.
13982         * tests/test-rawmemchr.c (main): Likewise.
13983         * tests/test-readlink.c (main): Likewise.
13984         * tests/test-remove.c (main): Likewise.
13985         * tests/test-rename.c (main): Likewise.
13986         * tests/test-renameat.c (main): Likewise.
13987         * tests/test-rmdir.c (main): Likewise.
13988         * tests/test-sha1.c (main): Likewise.
13989         * tests/test-signal.c (main): Likewise.
13990         * tests/test-sigaction.c (main): Likewise.
13991         * tests/test-stat.c (main): Likewise.
13992         * tests/test-stat-time.c (main): Likewise.
13993         * tests/test-stddef.c (main): Likewise.
13994         * tests/test-stdint.c (main): Likewise.
13995         * tests/test-stdio.c (main): Likewise.
13996         * tests/test-stdlib.c (main): Likewise.
13997         * tests/test-strchrnul.c (main): Likewise.
13998         * tests/test-strerror.c (main): Likewise.
13999         * tests/test-string.c (main): Likewise.
14000         * tests/test-strtod.c (main): Likewise.
14001         * tests/test-strverscmp.c (main): Likewise.
14002         * tests/test-symlink.c (main): Likewise.
14003         * tests/test-symlinkat.c (main): Likewise.
14004         * tests/test-sys_stat.c (main): Likewise.
14005         * tests/test-sys_time.c (main): Likewise.
14006         * tests/test-time.c (main): Likewise.
14007         * tests/test-unistd.c (main): Likewise.
14008         * tests/test-unlink.c (main): Likewise.
14009         * tests/test-unlinkat.c (main): Likewise.
14010         * tests/test-utimens.c (main): Likewise.
14011         * tests/test-utimensat.c (main): Likewise.
14012         * tests/test-version-etc.c (main): Likewise.
14013         * tests/test-wchar.c (main): Likewise.
14014         * tests/test-wctype.c (main): Likewise.
14015         * tests/test-xprintf-posix.c (main): Likewise.
14016         * tests/test-posixtm.c (main): Likewise.
14017         (STREQ): Delete unused macro.
14018         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
14019         shadowed variables.
14020         * tests/test-memchr.c (main): Likewise.
14021
14022 2009-10-21  Eric Blake  <ebb9@byu.net>
14023
14024         areadlinkat: avoid failure on older glibc
14025         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
14026         rather than mis-comparing 0 against FUNC_RESULT of char*.
14027
14028 2009-10-21  Bruno Haible  <bruno@clisp.org>
14029
14030         * modules/stpncpy (License): Relicense under LGPLv2+.
14031         Reported by David Lutterkort <lutter@redhat.com>.
14032
14033 2009-10-20  Eric Blake  <ebb9@byu.net>
14034
14035         utimensat: work around Solaris 9 bug
14036         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
14037         has trailing slash bugs.
14038         * tests/test-lutimens.h (test_lutimens): Enhance test.
14039         * tests/test-utimens.h (test_utimens): Likewise.
14040         * doc/posix-functions/utime.texi (utime): Enhance documentation.
14041         * doc/posix-functions/utimes.texi (utimes): Likewise.
14042         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
14043         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
14044         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
14045         * doc/posix-functions/futimens.texi (futimens): Likewise.
14046
14047         fdutimensat: new module
14048         * modules/fdutimensat: New file.
14049         * lib/fdutimensat.c (fdutimensat): Likewise.
14050         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
14051         * MODULES.html.sh (File system functions): Mention module.
14052         * modules/fdutimensat-tests: New test.
14053         * tests/test-fdutimensat.c: Likewise.
14054
14055         doc: regenerate INSTALL
14056         * doc/INSTALL: Reflect recent autoconf update.
14057         * doc/INSTALL.ISO: Likewise.
14058         * doc/INSTALL.UTF-8: Likewise.
14059
14060 2009-10-20  Pádraig Brady  <P@draigBrady.com>
14061
14062         acl: warn if ACL support is not detected
14063         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
14064
14065 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
14066
14067         * lib/nproc.h: Add extern "C" block for C++.
14068
14069 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
14070             Bruno Haible  <bruno@clisp.org>
14071
14072         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
14073         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
14074         * doc/posix-functions/isalpha.texi: Likewise.
14075         * doc/posix-functions/isblank.texi: Likewise.
14076         * doc/posix-functions/iscntrl.texi: Likewise.
14077         * doc/posix-functions/isdigit.texi: Likewise.
14078         * doc/posix-functions/isgraph.texi: Likewise.
14079         * doc/posix-functions/islower.texi: Likewise.
14080         * doc/posix-functions/isprint.texi: Likewise.
14081         * doc/posix-functions/ispunct.texi: Likewise.
14082         * doc/posix-functions/isspace.texi: Likewise.
14083         * doc/posix-functions/isupper.texi: Likewise.
14084         * doc/posix-functions/isxdigit.texi: Likewise.
14085
14086 2009-10-18  Bruno Haible  <bruno@clisp.org>
14087
14088         Tests for module 'isblank'.
14089         * modules/isblank-tests: New file.
14090         * tests/test-isblank.c: New file.
14091
14092         New module 'isblank'.
14093         * lib/isblank.c: New file.
14094         * m4/isblank.m4: New file.
14095         * modules/isblank: New file.
14096         * doc/posix-functions/isblank.texi: Mention the new module.
14097
14098 2009-10-18  Bruno Haible  <bruno@clisp.org>
14099
14100         New module 'ctype'.
14101         * lib/ctype.in.h: New file.
14102         * m4/ctype.m4: New file.
14103         * modules/ctype: New file.
14104         * doc/posix-headers/ctype.texi: Mention the new module.
14105
14106 2009-10-18  Jim Meyering  <meyering@redhat.com>
14107
14108         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
14109         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
14110         right after its initialization, rather than farther down.
14111         Keeping these in close proximity makes it easier to ensure
14112         that each such variable is initialized.  E.g.,
14113
14114             LIB_CLOCK_GETTIME=
14115             AC_SUBST([LIB_CLOCK_GETTIME])
14116
14117         This change also increments these serial numbers.
14118         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
14119         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
14120         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14121
14122 2009-10-18  Bruno Haible  <bruno@clisp.org>
14123
14124         Don't let environment variables perturb build.
14125         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
14126         (gl_PREREQ_GETHRXTIME): ... not here.
14127
14128 2009-10-18  Bruno Haible  <bruno@clisp.org>
14129
14130         Avoid symlink attack in localcharset module.
14131         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
14132         (O_NOFOLLOW): Define fallback.
14133         (get_charset_aliases): Don't open the file if it is a symbolic link.
14134         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
14135         gl_FCNTL_H.
14136         (gl_FCNTL_H): Require it.
14137         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
14138         * modules/localcharset (Files): Add m4/fcntl_h.m4.
14139         Reported by Fergal Glynn <fglynn@veracode.com>.
14140
14141 2009-10-18  Bruno Haible  <bruno@clisp.org>
14142
14143         Implement nproc for mingw.
14144         * lib/nproc.c: Include <windows.h>
14145         (num_processors): On native Windows platforms, try GetSystemInfo.
14146
14147 2009-10-18  Bruno Haible  <bruno@clisp.org>
14148
14149         Implement nproc for IRIX.
14150         * lib/nproc.c: Include <sys/sysmp.h>.
14151         (num_processors): On IRIX systems, try sysmp.
14152         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
14153
14154 2009-10-18  Bruno Haible  <bruno@clisp.org>
14155
14156         Implement nproc for HP-UX.
14157         * lib/nproc.c: Include <sys/pstat.h>
14158         (num_processors): On HP-UX systems, try pstat_getdynamic.
14159         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
14160         pstat_getdynamic.
14161
14162 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
14163             Bruno Haible  <bruno@clisp.org>
14164
14165         Implement nproc for NetBSD, OpenBSD.
14166         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
14167         (ARRAY_SIZE): New macro.
14168         (num_processors): On BSD systems, try sysctl of HW_NCPU.
14169         * m4/nproc.m4: New file.
14170         * modules/nproc (Files): Add m4/nproc.m4.
14171         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
14172         (Makefile.am): Instead, augment lib_SOURCES.
14173
14174 2009-10-18  Bruno Haible  <bruno@clisp.org>
14175
14176         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
14177         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
14178         sys/param.h.
14179
14180 2009-10-16  Eric Blake  <ebb9@byu.net>
14181
14182         utimensat: new module
14183         * modules/utimensat: New file.
14184         * lib/utimensat.c (utimensat): Likewise.
14185         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
14186         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
14187         so we can work around Linux bugs.
14188         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
14189         * modules/sys_stat (Makefile.am): Substitute them.
14190         * lib/sys_stat.in.h (utimensat): Declare it.
14191         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14192         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
14193         * modules/utimensat-tests: New test.
14194         * tests/test-utimensat.c: Likewise.
14195
14196         utimens: let lutimens work on non-symlinks
14197         * lib/utimens.c (lutimens): Fall back to utimens rather than
14198         failing with ENOSYS, when file is not a symlink.
14199         (utimens): Reduce redirection.
14200         * tests/test-lutimens.h (test_lutimens): Update test to cover
14201         non-symlinks.
14202         * tests/test-utimens.h (test_utimens): Update test to cover
14203         symlinks.
14204         * tests/test-utimens.c (main): Update caller.
14205
14206         utimens: cache whether utimensat syscall works
14207         * lib/utimens.c (utimensat_works_really): New cache variable.
14208         (fdutimens, lutimens): Use it to avoid failing syscall.
14209
14210         test-stat-time, test-utimens: improve portability
14211         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
14212         ext4 on alpha, and for cygwin.
14213         * tests/test-utimens-common.h: New file.
14214         (nap): Factor delays into single function.
14215         * tests/test-lutimens.h (test_lutimens): Use new header.
14216         * tests/test-futimens.h (test_futimens): Likewise.
14217         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
14218         timestamps to occur from same machine, as was done previously for
14219         test_utimens.
14220         * modules/utimens-tests (Files): Ship new file.
14221         * modules/futimens-tests (Files): Likewise.
14222         Reported in part by Jim Meyering.
14223
14224         sys_stat: sort replacement declarations
14225         * lib/sys_stat.in.h: Sort declarations.
14226         * lib/futimens.c (futimens): Fix typo.
14227
14228 2009-10-15  Jim Meyering  <meyering@redhat.com>
14229
14230         don't let environment settings perturb build
14231         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
14232         could cause a configure-time and/or build-time malfunction.
14233         Typically, a configure-time function-in-library test is performed
14234         via code like this:
14235
14236           LIB_VAR=
14237           AC_SUBST([LIB_VAR])
14238           prefix_saved_LIBS=$LIBS
14239             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
14240                        [test "$ac_cv_search_FUNC" = "none required" ||
14241                         LIB_VAR=$ac_cv_search_FUNC])
14242           LIBS=$prefix_saved_LIBS
14243
14244         However, in each of the files affected by this change, the LIB_VAR=
14245         initialization was omitted.  Thus, when set in the environment, its
14246         value would propagate into generated Makefiles when FUNC is not found
14247         in LIB_NAME.
14248         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
14249         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
14250         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14251
14252 2009-10-14  Eric Blake  <ebb9@byu.net>
14253
14254         fchdir: avoid infinite recursion in mingw
14255         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
14256         recursing.
14257
14258         test-stat-time: port to mingw
14259         * tests/test-stat-time.c (force_unlink): Return a value.
14260         (test_ctime) [W32]: Fix compilation error.
14261         (nap): Don't call usleep with too large an argument.  Use
14262         force_unlink.
14263         * doc/pastposix-functions/usleep.texi (usleep): Document the
14264         portability issue.
14265
14266 2009-10-13  Jim Meyering  <meyering@redhat.com>
14267
14268         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
14269         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
14270         * modules/pipe-filter-ii: Likewise.
14271         * modules/sys_socket-tests: Likewise.
14272         * modules/tsearch-tests: Likewise.
14273         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
14274         (check): Depend on it.
14275
14276 2009-10-12  Eric Blake  <ebb9@byu.net>
14277
14278         utimens-tests: port to NFS file systems
14279         * tests/test-utimens.h (test_utimens): Refactor utimecmp
14280         comparisons to avoid spurious failures from timestamp drift
14281         between NFS machines.
14282
14283 2009-10-12  Eric Blake  <ebb9@byu.net>
14284
14285         stat-time-tests: minor cleanups
14286         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
14287         * tests/test-stat-time.c (nap): Separate assignment from call.
14288         Suggested by Paolo Bonzini and Bruno Haible.
14289
14290         sys_stat: guarantee struct timespec
14291         * lib/sys_stat.in.h (includes): Always include <time.h>
14292         * modules/sys_stat (Depends-on): Add time.
14293         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
14294         mode_t permission values.
14295         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
14296         get at subsecond timestamps.
14297
14298 2009-10-10  Eric Blake  <ebb9@byu.net>
14299
14300         futimens: new module
14301         * modules/futimens: New file.
14302         * lib/futimens.c (futimens): Likewise.
14303         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
14304         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
14305         we can work around Linux bugs.
14306         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
14307         * modules/sys_stat (Makefile.am): Substitute them.
14308         * lib/sys_stat.in.h (futimens): Declare it.
14309         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14310         * doc/posix-functions/futimens.texi (futimens): Likewise.
14311         * modules/futimens-tests: New test.
14312         * tests/test-futimens.c: Likewise.
14313
14314         utimens: introduce fdutimens
14315         * lib/utimens.h (fdutimens): New prototype.
14316         * lib/utimens.c (gl_futimens): Move guts...
14317         (fdutimens): ...to new interface.
14318         * tests/test-utimens.c (do_fdutimens): Use it.
14319
14320         utimens: add UTIME_NOW and UTIME_OMIT support
14321         * lib/utimens.c (validate_timespec, update_timespec): New helper
14322         functions.
14323         (gl_futimens, lutimens): Use them.
14324         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
14325         stdbool, sys_stat.
14326         (Link): Mention resulting library dependency.
14327         * modules/utimecmp (Link): Likewise.
14328         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
14329         (Makefile.am): Pick up library dependency.
14330         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
14331         definition.
14332         * tests/test-sys_stat.c: Test the definitions.
14333         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
14334         * NEWS: Document library dependency.
14335
14336         utimecmp: support symlink timestamps
14337         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
14338         hashing when possible.  Use pathconf when available.
14339         (SYSCALL_RESOLUTION): Recognize tighter resolution.
14340         * modules/utimecmp (Depends-on): Add lstat.
14341
14342         utimens: add lutimens interface
14343         * lib/utimens.c (lutimens): New function.
14344         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
14345         * lib/utimens.h (lutimens): Declare new interface.
14346         * tests/test-utimens.c (main): Enhance test.
14347         * tests/test-lutimens.h (test_lutimens): New file.
14348         * modules/utimens-tests (Files): Distribute it.
14349         (Depends-on): Add symlink.
14350         (configure.ac): Check for usleep.
14351
14352         utimens: validate futimens usage
14353         * lib/utimens.c (gl_futimens): Require valid fd up front, using
14354         fewer syscalls on failure later on.  Avoid compiler warning on
14355         mingw.
14356         * modules/utimens (Depends-on): Add dup2.
14357
14358         utimens: add test
14359         * modules/utimens-tests: New test.
14360         * tests/test-utimens.h: New file.
14361         * tests/test-futimens.h: Likewise.
14362         * tests/test-utimens.c: Likewise.
14363
14364         doc: mention timestamp portability issues
14365         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
14366         instead.
14367         * doc/posix-functions/utime.texi (utime): Likewise.
14368         * doc/posix-functions/utimes.texi (utimes): Likewise.
14369         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
14370         instead.
14371         * doc/posix-functions/futimens.texi (futimens): Mention utimens
14372         module.
14373         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
14374         Mention weakness with symlink timestamps.
14375         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
14376         to utimensat/futimens instead.
14377         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
14378
14379         test-dup2: enhance test
14380         * tests/test-dup2.c (main): Also check AT_FDCWD.
14381
14382         test-stat-time: avoid more spurious failures
14383         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
14384         xfs; and avoid race if the two timestamps cross quantization edge.
14385
14386         relocatable: prefer 'file system' over 'filesystem'
14387         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
14388         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
14389         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
14390         * doc/relocatable.texi (Enabling Relocatability): Likewise.
14391         * lib/relocatable.c (compute_curr_prefix): Likewise.
14392
14393 2009-10-10  Jim Meyering  <meyering@redhat.com>
14394
14395         stat-time-tests: check for the usleep function
14396         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
14397
14398 2009-10-10  Bruno Haible  <bruno@clisp.org>
14399
14400         * modules/xnanosleep: Put the Link section after the Include section.
14401
14402 2009-10-09  Eric Blake  <ebb9@byu.net>
14403
14404         dup2: work around FreeBSD 6.1 bug
14405         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
14406         * doc/posix-functions/dup2.texi (dup2): Document it.
14407         Reported by Nelson H. F. Beebe and Jim Meyering.
14408
14409         test-stat-time: port to buggy NFS clients
14410         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
14411         (test_ctime): Also skip test if mtime and ctime are skewed.
14412
14413         maint: prefer 'file system' over 'filesystem'
14414         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
14415         * doc/posix-functions/lstat.texi (lstat): Likewise.
14416         * lib/file-has-acl.c (file_has_acl): Likewise.
14417         * lib/fwriteerror.c [TEST]: Likewise.
14418         * tests/test-areadlink.h (test_areadlink): Likewise.
14419         * tests/test-areadlinkat-with-size.c (main): Likewise.
14420         * tests/test-areadlinkat.c (main): Likewise.
14421         * tests/test-canonicalize-lgpl.c (main): Likewise.
14422         * tests/test-canonicalize.c (main): Likewise.
14423         * tests/test-fstatat.c (main): Likewise.
14424         * tests/test-linkat.c (main): Likewise.
14425         * tests/test-lstat.h (test_lstat_func): Likewise.
14426         * tests/test-mkdir.h (test_mkdir): Likewise.
14427         * tests/test-readlink.h (test_readlink): Likewise.
14428         * tests/test-remove.c (main): Likewise.
14429         * tests/test-rename.h (test_rename): Likewise.
14430         * tests/test-renameat.c (main): Likewise.
14431         * tests/test-rmdir.h (test_rmdir_func): Likewise.
14432         * tests/test-symlink.h (test_symlink): Likewise.
14433         * tests/test-symlinkat.c (main): Likewise.
14434         * tests/test-unlink.h (test_unlink_func): Likewise.
14435         * tests/test-unlinkat.c (main): Likewise.
14436
14437         maint: make realtime library usage explicit
14438         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
14439         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
14440         * modules/settime (Link): Likewise.
14441         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
14442
14443         test-stat-time: speed up execution
14444         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
14445         warning on mingw.
14446         (nap): New helper function.
14447         (prepare_test): Use it to reduce sleep time.
14448         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
14449         execution.
14450         * modules/stat-time-tests (configure.ac): Check for usleep.
14451
14452 2009-10-09  Jim Meyering  <meyering@redhat.com>
14453
14454         selinux-h: always use getfilecon wrappers
14455         * lib/getfilecon.c: New file.
14456         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
14457         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
14458         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
14459         (fgetfilecon): Provide a stub.
14460         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
14461         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
14462         file unconditionally.
14463         When <selinux/selinux.h> is found, arrange to use wrappers.
14464         * modules/selinux-h (Files): Add getfilecon.c.
14465         (Makefile.am): Substitute include-next-related bits
14466         into the now-always-generated selinux/selinux.h file.
14467         * doc/glibc-functions/lgetfilecon.texi: New file.
14468         * doc/glibc-functions/fgetfilecon.texi: New file.
14469         * doc/glibc-functions/getfilecon.texi: New file.
14470         * doc/glibc-functions/getfilecon-desc.texi: New file.
14471         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
14472         which to pull in the new files.
14473         * MODULES.html.sh (Misc): Add selinux-h.
14474
14475 2009-10-08  Jim Meyering  <meyering@redhat.com>
14476
14477         unistd: fix comment typo
14478         * lib/unistd.in.h (euidaccess): Fix a comment typo.
14479
14480 2009-10-08  Eric Blake  <ebb9@byu.net>
14481
14482         areadlink: use SIZE_MAX consistently
14483         * modules/areadlink (Depends-on): Add stdint.
14484         * modules/areadlink-with-size (Depends-on): Likewise.
14485         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
14486         gives NULL; drop sys/types, since unistd gives size_t; and add
14487         stdint for SIZE_MAX.
14488         (SIZE_MAX): Rely on headers.
14489         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
14490         and add stdint.
14491         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
14492         (SIZE_MAX): Likewise.
14493         (INITIAL_BUF_SIZE): Turn into enum.
14494         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
14495
14496 2009-10-08  Jim Meyering  <meyering@redhat.com>
14497
14498         areadlinkat: avoid compilation failure
14499         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
14500         Fix typo in comment.
14501
14502 2009-10-07  Eric Blake  <ebb9@byu.net>
14503
14504         areadlinkat-with-size: new module
14505         * modules/areadlinkat-with-size: New module.
14506         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
14507         * lib/areadlink.h (areadlinkat): Declare it.
14508         * MODULES.html.sh (File system functions): Mention it.
14509         * modules/areadlinkat-with-size-tests: New test.
14510         * tests/test-areadlinkat-with-size.c: New file.
14511
14512         xreadlinkat: new module
14513         * modules/xreadlinkat: New module.
14514         * lib/xreadlinkat.c (xreadlinkat): New file.
14515         * lib/xreadlink.h (xreadlinkat): Declare it.
14516         * MODULES.html.sh (File system functions): Mention it.
14517
14518         areadlinkat: new module
14519         * lib/at-func.c (FUNC_FAIL): New define.
14520         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
14521         * modules/areadlinkat: New module.
14522         * lib/linkat.c (areadlinkat): Move...
14523         * lib/areadlinkat.c (areadlinkat): ...to new file.
14524         * lib/areadlink.h (areadlinkat): Declare it.
14525         * modules/linkat (Depends-on): Add areadlinkat.
14526         * MODULES.html.sh (File system functions): Mention it.
14527         * modules/areadlinkat-tests: New test.
14528         * tests/test-areadlinkat.c: New file.
14529
14530         areadlink, areadlink-with-size: add tests
14531         * modules/areadlink-tests: New test.
14532         * modules/areadlink-with-size-tests: Likewise.
14533         * tests/test-areadlink.h: New file.
14534         * tests/test-areadlink.c: Likewise.
14535         * tests/test-areadlink-with-size.c: Likewise.
14536
14537         maint: minor cleanups
14538         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
14539         _UNUSED_PARAMETER_ instead.
14540         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
14541         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
14542         * modules/linkat-tests (Files): Distribute test-link.h.
14543
14544         openat, utimens: whitespace cleanup
14545         * lib/openat.c: Prefer space throughout, rather than mix of 8
14546         spaces vs. tabs.
14547         * lib/at-func.c: Likewise.
14548         * lib/utimens.c: Likewise.
14549
14550         openat: avoid using wrong fd
14551         * lib/openat.c (openat_permissive): Reject user's fd if saving the
14552         working directory chooses same fd.
14553         * lib/at-func.c (AT_FUNC_NAME): Likewise.
14554
14555         mkdir, mkdirat: fix cygwin 1.5.x bug
14556         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
14557         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
14558         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
14559         bug.
14560         (gl_PREREQ_MKDIR): Delete unused macro.
14561         * modules/mkdir (Files): Track file rename.
14562         (configure.ac): Update macro name.
14563         * modules/openat (Depends-on): Add mkdir.
14564         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
14565
14566         mkdir, mkdirat: add tests
14567         * modules/mkdir-tests: New test.
14568         * tests/test-mkdir.h: New file.
14569         * tests/test-mkdir.c: Likewise.
14570         * tests/test-mkdirat.c: Likewise.
14571         * modules/openat-tests (Files): Add new files.
14572         (Makefile.am): Run new test.
14573
14574 2009-10-06  Eric Blake  <ebb9@byu.net>
14575
14576         doc: tweak *at function documentation
14577         * doc/posix-functions/faccessat.texi (faccessat): Mention
14578         known issue with replacement.
14579         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
14580         * doc/posix-functions/linkat.texi (linkat): Likewise.
14581         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
14582         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
14583         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
14584         * doc/posix-functions/renameat.texi (renameat): Likewise.
14585         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
14586
14587         openat: fix GNU/Hurd bug in unlinkat
14588         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
14589         broken.
14590         * doc/posix-functions/unlink.texi (unlink): Document this.
14591         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
14592
14593         fdopendir: fix GNU/Hurd bug
14594         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
14595         allowing non-directory fds.
14596         * lib/fdopendir.c (rpl_fdopendir): Work around it.
14597         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
14598         * modules/dirent (Makefile.am): Substitute it.
14599         * lib/dirent.in.h (fdopendir): Declare replacement.
14600         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
14601         * tests/test-fdopendir.c (main): Test something other than
14602         /dev/null, since on Hurd that behaves like a directory.
14603
14604         test-symlink: port to GNU/Hurd
14605         * tests/test-symlink.h (test_symlink): Relax expected errno.
14606
14607         doc: tweak more cygwin information
14608         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
14609         now compatible with glibc.
14610         * doc/posix-functions/getopt.texi (getopt): Likewise.
14611
14612         getopt-gnu: add another test
14613         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
14614         guarantee behavior relied on by m4.
14615         * tests/test-getopt.c (main): Use it.
14616         * modules/getopt-posix-tests (Depends-on): Add setenv.
14617         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
14618
14619         getopt: fix compilation on darwin
14620         * lib/getopt.in.h (includes): Leave breadcrumbs during system
14621         include.
14622         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
14623         Reported by Ludovic Courtès.
14624
14625 2009-10-06  Bruno Haible  <bruno@clisp.org>
14626
14627         * modules/size_max (Description): Discourage its use.
14628         Reported by Simon Josefsson.
14629
14630 2009-10-06  Jim Meyering  <meyering@redhat.com>
14631
14632         linkat: avoid compilation failure
14633         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
14634
14635 2009-10-05  Eric Blake  <ebb9@byu.net>
14636
14637         linkat: support Linux 2.6.17
14638         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
14639         linkat on Linux, but allow cache variable override.
14640         * lib/linkat.c (rpl_linkat): Define override.
14641         * modules/linkat (Depends-on): Add symlinkat.
14642         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
14643         * modules/unistd (Makefile.am): Substitute it.
14644         * lib/unistd.in.h (linkat): Declare replacement.
14645         Reported by Pádraig Brady.
14646
14647         quotearg: port test to systems with C.UTF-8 locale
14648         * tests/test-quotearg.c (struct result_strings): Add another
14649         member, differentiating between C.ASCII and C.UTF-8 handling.
14650         (compare_strings): Add parameter.
14651         (main): Adjust all callers.
14652
14653         getopt: avoid clash with FreeBSD _getopt_internal
14654         * lib/getopt.in.h (_getopt_internal): Override the name.
14655         * lib/getopt_int.h (includes): Pick up any overrides.
14656         Reported by Reuben Thomas.
14657
14658         hash: allow C89 compilation
14659         * lib/hash.c (check_tuning): Move declaration before statement.
14660         Reported by Reuben Thomas.
14661
14662 2009-10-05  Karl Berry  <karl@gnu.org>
14663
14664         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
14665
14666 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
14667             Bruno Haible  <bruno@clisp.org>
14668
14669         * lib/uname.c (uname): Use a table-driven algorithm to compute
14670         Windows NT versions.
14671
14672 2009-10-04  Bruno Haible  <bruno@clisp.org>
14673
14674         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
14675         program_invocation_short_name.
14676         * modules/progname (configure.ac): Test for presence of
14677         program_invocation_short_name.
14678         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
14679
14680 2009-10-04  Bruno Haible  <bruno@clisp.org>
14681
14682         * lib/progname.c (set_program_name): Fix comment.
14683         Reported by Jim Meyering.
14684
14685 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
14686             Bruno Haible  <bruno@clisp.org>
14687
14688         * lib/uname.c: Include <string.h>.
14689         (uname): Do only one call to GetVersionEx in the common case.
14690
14691 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
14692             Bruno Haible  <bruno@clisp.org>
14693
14694         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
14695         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
14696         (uname): Add support for Windows CE and various non-x86 CPU types.
14697
14698 2009-10-03  Bruno Haible  <bruno@clisp.org>
14699
14700         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
14701         invocation to tests/configure.ac.
14702         Reported by Ian Beckwith <ianb@erislabs.net>.
14703
14704 2009-10-02  Eric Blake  <ebb9@byu.net>
14705
14706         fchdir: avoid compiler warning
14707         * lib/fchdir.c (canonicalize_file_name)
14708         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
14709
14710         test-open: support mingw errno values
14711         * tests/test-open.h (test_open): Relax test.
14712         * tests/test-fopen.h (test_fopen): Likewise.
14713         * tests/test-openat-safer.c (main): Likewise.
14714
14715         open: fix opening directory on mingw
14716         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
14717
14718         test-open: on GNU/Hurd, /dev/null is a directory
14719         * tests/test-fopen.h (main): Rename...
14720         (test_fopen): ...to this.  Use a guaranteed non-directory when
14721         confirming open behavior on trailing slash.
14722         * tests/test-openat-safer.c (main): Likewise.
14723         * tests/test-open.h (main): Likewise....
14724         (test_open): ...to this.
14725         * tests/test-fopen.c (main): Adjust caller.
14726         * tests/test-fopen-safer.c (main): Likewise.
14727         * tests/test-open.c (main): Likewise.
14728         * tests/test-fcntl-safer.c (main): Likewise.
14729         Reported by Samuel Thibault.
14730
14731         rename, fchdir: don't ignore chdir failure
14732         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
14733         * lib/rename.c (rpl_rename) [W32]: Likewise.
14734         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
14735         an empty destination directory if source cannot be renamed,
14736         although there is still possibility for failure.
14737         * doc/posix-functions/rename.texi (rename): Document the race.
14738         Reported by Jim Meyering.
14739
14740         maint: cleanup whitespace in recent commits
14741         * lib/rename.c (rpl_rename): Remove tabs.
14742         * tests/test-link.h (test_link): Likewise.
14743         * lib/fchdir.c (get_name): Likewise.
14744         Reported by Jim Meyering.
14745
14746 2009-10-02  Ben Pfaff  <blp@gnu.org>
14747
14748         relocatable-prog-wrapper: Add missing dependency on
14749         double-slash-root.
14750         * modules/relocatable-prog-wrapper: Add dependency.
14751         Reported by Ian Beckwith <ianb@erislabs.net>.
14752
14753 2009-10-02  Eric Blake  <ebb9@byu.net>
14754
14755         renameat: fix Solaris bugs
14756         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
14757         needed fixing.
14758         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
14759         * modules/stdio (Makefile.am): Substitute it.
14760         * lib/stdio.in.h (renameat): Declare replacement.
14761         * lib/renameat.c (rpl_renameat): Implement fix.
14762
14763         renameat: new module
14764         * modules/renameat: New file.
14765         * lib/renameat.c (renameat): Likewise.
14766         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
14767         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
14768         * modules/stdio (Makefile.am): Substitute them.
14769         * lib/stdio.in.h (renameat): Declare it.
14770         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14771         * doc/posix-functions/renameat.texi (renameat): Likewise.
14772         * modules/renameat-tests: New test.
14773         * tests/test-renameat.c: Likewise.
14774
14775         rename: fix mingw bugs
14776         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
14777         directory overwrite bugs.
14778
14779         rename: fix another cygwin 1.5 bug
14780         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
14781         checks.
14782         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
14783         unnecessary cygwin workarounds.  Also work around bug with moving
14784         full directory onto an empty one.
14785         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
14786
14787         rename-dest-slash: merge into rename module
14788         * modules/rename-dest-slash (Status): Mark obsolete.
14789         (Depends-on): Add rename.
14790         (Files): Let rename do it all.
14791         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
14792         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
14793         * m4/rename-dest-slash.m4: ...so this file can be deleted.
14794         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
14795         * lib/rename.c (rpl_rename): Update comments.
14796
14797         rename: fix cygwin 1.5.x bugs
14798         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
14799         * lib/rename.c (rpl_rename): Work around them.
14800         * modules/rename (Depends-on): Add same-inode.
14801
14802         rename: fix Solaris 10 bug
14803         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
14804         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
14805         was the only bug.
14806
14807         rename: fix Solaris 9 bug
14808         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
14809         on non-directory.  Avoid calling exit.
14810         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
14811         strdup.
14812         * modules/rename-tests (Depends-on): Drop lstat.
14813         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
14814         (gl_PREREQ_RENAME): Delete unused macro.
14815
14816         rename-dest-slash: fix NetBSD bug
14817         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
14818         links.
14819         * modules/rename-dest-slash (Depends-on): Add same-inode.
14820
14821         rename-tests: new test, exposes several platform bugs
14822         * modules/rename-tests: New file.
14823         * tests/test-rename.h: Likewise.
14824         * tests/test-rename.c: Likewise.
14825         * doc/posix-functions/rename.texi (rename): Improve documentation,
14826         including bugs that will eventually be fixed in gnulib.
14827
14828 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
14829
14830         * lib/uname.c: Include <stdlib.h>
14831         (uname): Assume version info is available.
14832
14833 2009-10-02  Jim Meyering  <meyering@redhat.com>
14834
14835         gnu-web-doc-update: correct --help output
14836         * build-aux/gnu-web-doc-update: Make --help output relevant.
14837
14838         gnu-web-doc-update: add standard options
14839         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
14840
14841         gnu-web-doc-update: New module.
14842         Use this script to automatically update the on-line web documentation
14843         for your GNU project at http://www.gnu.org/software/$pkg/manual/
14844         * modules/gnu-web-doc-update: New file, from coreutils.
14845         * build-aux/gnu-web-doc-update: New script.
14846
14847 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
14848
14849         link: LoadLibrary is not needed.
14850         * lib/link.c: Use GetModuleHandle.
14851
14852 2009-10-01  Eric Blake  <ebb9@byu.net>
14853
14854         getopt: bump serial number
14855         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
14856         change.
14857
14858         tests: tighten link, rmdir, and remove tests
14859         * tests/test-link.h (includes): No need to use <config.h> here.
14860         Clean up if directory hard link was created, otherwise test for
14861         trailing '.'.
14862         * tests/test-linkat.c (main): Simplify.
14863         * tests/test-remove.c (main): Enhance test for trailing '.'.
14864         * tests/test-rmdir.h (test_rmdir_func): Likewise.
14865
14866 2009-10-01  Jim Meyering  <meyering@redhat.com>
14867
14868         maint.mk: requiring "make major" was annoying, for a "minor" release.
14869         What is intended is "stable", to contrast with alpha and beta,
14870         so require "make stable", not "make major".
14871         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
14872         (get_tool_versions): Likewise.
14873         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
14874
14875 2009-09-30  Ben Pfaff  <blp@gnu.org>
14876
14877         Fix broken build of replacement for Windows tmpfile().
14878         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
14879         flags argument added along with the 'mkostemp' module.
14880
14881 2009-09-28  Bruno Haible  <bruno@clisp.org>
14882
14883         Avoid identifier clash with POSIX function 'remove' defined as a macro.
14884         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
14885         to 'remove_elt'.
14886         (gl_list_remove): Update.
14887         * lib/gl_list.c (gl_list_remove): Update.
14888         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
14889         to 'remove_elt'.
14890         (gl_oset_remove): Update.
14891         * lib/gl_list.c (gl_oset_remove): Update.
14892         Reported by Eric Blake.
14893
14894 2009-09-28  Eric Blake  <ebb9@byu.net>
14895
14896         doc: mention yet more cygwin 1.7 status
14897         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
14898         cygwin.
14899         * doc/glibc-functions/execvpe.texi (execvpe): New file.
14900         * doc/gnulib.texi (Glibc unistd.h): Mention it.
14901
14902         argp: fix test failure
14903         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
14904         that are not upper-case.  Pass correct range to tolower.
14905
14906 2009-09-27  Jim Meyering  <meyering@redhat.com>
14907
14908         test-yesno: work around sparc-dash here-document infelicity
14909         Without this change, the literal \177 byte in a here document
14910         would make dash 0.5.5.1-3 access uninitialized memory.
14911         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
14912         Instead, use a marker, "@", and filter through tr to create the desired
14913         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
14914
14915 2009-09-27  Bruno Haible  <bruno@clisp.org>
14916
14917         Disable untested support for new flavours of ACLs on AIX.
14918         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
14919         progress.
14920         * lib/set-mode-acl.c (qset_acl): Likewise.
14921
14922 2008-12-07  Bruno Haible  <bruno@clisp.org>
14923
14924         Add support for new flavours of ACLs on AIX. (Untested.)
14925         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
14926         (file_has_acl): Add support for newer AIX.
14927         * lib/set-mode-acl.c (qset_acl): Likewise.
14928         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
14929         Rainer Tammer <tammer@tammer.net>.
14930
14931 2009-09-26  Eric Blake  <ebb9@byu.net>
14932
14933         argp: fix compilation of getopt
14934         * lib/getopt.in.h (includes): Use different guard than glibc.
14935         Reported by Sergey Poznyakoff.
14936
14937         doc: mention more cygwin 1.7 status
14938         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
14939         bug.
14940         * doc/posix-functions/execl.texi (execl): Likewise.
14941         * doc/posix-functions/execle.texi (execle): Likewise.
14942         * doc/posix-functions/execlp.texi (execlp): Likewise.
14943         * doc/posix-functions/execv.texi (execv): Likewise.
14944         * doc/posix-functions/execve.texi (execve): Likewise.
14945         * doc/posix-functions/execvp.texi (execvp): Likewise.
14946         * doc/glibc-functions/canonicalize_file_name.texi
14947         (canonicalize_file_name): Cygwin 1.7 now provides this.
14948         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
14949         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
14950         on AT_SYMLINK_NOFOLLOW.
14951
14952 2009-09-24  Eric Blake  <ebb9@byu.net>
14953
14954         test-linkat: make test more robust
14955         * tests/test-linkat.c (main): Avoid collision with EEXIST.
14956
14957         getopt: fix inclusion guards for cygwin
14958         * modules/getopt-posix (Depends-on): Add include-next.
14959         (Makefile.am): Substitute more items in replacement header.
14960         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
14961         <getopt.h>.
14962         * lib/getopt.in.h (includes): Use split inclusion guard, and
14963         prefer <getopt.h> over include <unistd.h> when one is present.
14964         (option): Also override name of 'struct option'.
14965
14966         same-inode: revert prior change; it is not yet ready
14967         * NEWS: Undo mention of this change.
14968         * lib/same-inode.h (same-inode.h): Undo tri-state change.
14969         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
14970         * lib/cycle-check.c (cycle_check): Likewise.
14971         * lib/same.c (same_name): Likewise.
14972         * lib/at-func2.c (at_func2): Likewise.
14973
14974 2009-09-23  Eric Blake  <ebb9@byu.net>
14975
14976         linkat: new module
14977         * modules/linkat: New file.
14978         * lib/at-func2.c (at_func2): Likewise.
14979         * lib/linkat.c (linkat): Likewise.
14980         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
14981         * lib/openat-priv.h (at_func2): Add declaration.
14982         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
14983         * modules/unistd (Makefile.am): Substitute them.
14984         * lib/unistd.in.h (linkat): Declare it.
14985         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14986         * doc/posix-functions/linkat.texi (linkat): Likewise.
14987         * doc/posix-functions/link.texi (link): Tweak wording.
14988         * tests/test-link.c (main): Move guts...
14989         * tests/test-link.h (test_link): ...into new file.
14990         * modules/linkat-tests: New test.
14991         * tests/test-linkat.c: Likewise.
14992         * modules/link-tests (Files): Ship new file.
14993         (Depends-on): Add stdbool.
14994
14995         dirname: add library-safe mdir_name
14996         * lib/dirname.h (mdir_name): New prototype.
14997         * lib/dirname.c (dir_name): Move guts...
14998         (mdir_name): ...to new function that avoids xalloc_die.
14999
15000         fchdir: another mingw fix
15001         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
15002         * lib/fchdir.c (get_name): New helper method; skips canonicalize
15003         on mingw (where it has not yet been ported), and make it optional
15004         elsewhere.
15005         (_gl_register_fd): Use it.
15006
15007         same-inode: make SAME_INODE tri-state, to port to mingw
15008         * NEWS: Mention this change.
15009         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
15010         st_ino always being 0.
15011         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
15012         * lib/cycle-check.c (cycle_check): Likewise.
15013         * lib/same.c (same_name): Likewise.
15014
15015         lstat: avoid mingw compilation error
15016         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
15017         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
15018         lstat ourselves.
15019         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
15020         was adequate.
15021         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
15022         the checks for lstat.
15023         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
15024
15025         link: fix test failure on Solaris 9
15026         * lib/link.c (rpl_link): Don't assume link will catch bogus
15027         trailing slash on source.
15028
15029         test-symlinkat: enhance test
15030         * tests/test-readlink.c (main): Move guts...
15031         * tests/test-readlink.h (test_readlink): ...into new file.
15032         * tests/test-symlink.c (main): Move guts...
15033         * tests/test-symlink.h (test_symlink): ...into new file.
15034         * tests/test-symlinkat.c (main): Use new files for further
15035         coverage.
15036         (do_symlink, do_readlink): New helper functions.
15037         * modules/symlink-tests (Files): Ship new file.
15038         (Depends-on): Add stdbool.
15039         * modules/readlink-tests (Files): Ship new file.
15040         (Depends-on): Add stdbool.
15041         * modules/symlinkat-tests (Files): Use new files.
15042
15043 2009-09-23  Eric Blake  <ebb9@byu.net>
15044
15045         readlink: document portability issue with symlink length
15046         * doc/posix-functions/lstat.texi (lstat): Mention that some file
15047         systems have bogus st_size on symlinks, and mention the
15048         areadlink-with-size module.
15049         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
15050         * doc/posix-functions/readlink.texi (readlink): Mention the
15051         areadlink module, and ERANGE failure.
15052         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
15053         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
15054
15055         readlink: fix Solaris 9 bug with trailing slash
15056         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
15057         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
15058         * doc/posix-functions/readlink.texi (readlink): Document this.
15059         * modules/readlink-tests: New test.
15060         * tests/test-readlink.c: Likewise.
15061
15062         readlink: fix cygwin 1.5.x bug with return type
15063         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
15064         * lib/unistd.in.h (readlink): Use ssize_t.
15065         * lib/readlink.c (readlink): Likewise.
15066         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15067         * modules/unistd (Makefile.am): Substitute it.
15068         * lib/unistd.in.h (readlink): Declare replacement.
15069         * doc/posix-functions/readlink.texi (readlink): Document this.
15070
15071         symlink: use throughout gnulib
15072         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
15073         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
15074         symlink is not used.
15075         * modules/symlinkat (Depends-on): Add symlink.
15076         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
15077         * modules/canonicalize-tests (Depends-on): Likewise.
15078         * modules/lstat-tests (Depends-on): Likewise.
15079         * modules/openat-tests (Depends-on): Likewise.
15080         * modules/remove-tests (Depends-on): Likewise.
15081         * modules/rmdir-tests (Depends-on): Likewise.
15082         * modules/unlink-tests (Depends-on): Likewise.
15083         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
15084         * tests/test-canonicalize.c (symlink): Likewise.
15085         * tests/test-fstatat.c (symlink): Likewise.
15086         * tests/test-lstat.c (symlink): Likewise.
15087         * tests/test-remove.c (symlink): Likewise.
15088         * tests/test-rmdir.c (symlink): Likewise.
15089         * tests/test-unlink.c (symlink): Likewise.
15090         * tests/test-unlinkat.c (symlink): Likewise.
15091
15092         symlink: new module, for Solaris 9 bug
15093         * modules/symlink: New file.
15094         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
15095         * lib/symlink.c: Likewise.
15096         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
15097         * modules/unistd (Makefile.am): Substitute them.
15098         * lib/unistd.in.h (symlink): Declare replacement.
15099         * MODULES.html.sh (File system functions): Mention it.
15100         * doc/posix-functions/symlink.texi (symlink): Likewise.
15101         * modules/symlink-tests: New test.
15102         * tests/test-symlink.c: Likewise.
15103
15104 2009-09-23  Bruno Haible  <bruno@clisp.org>
15105
15106         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
15107         when needed.
15108         Test case: gnulib-tool --import --with-tests atexit inttypes.
15109         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
15110
15111 2009-09-23  Bruno Haible  <bruno@clisp.org>
15112
15113         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
15114         subcommand, not in a subshell.
15115
15116 2009-09-22  Eric Blake  <ebb9@byu.net>
15117
15118         unistd: sort replacement declarations
15119         * lib/unistd.in.h: Sort declarations.
15120
15121         open, openat: minor optimization
15122         * lib/open.c (open): If open succeeded, len is non-zero.
15123         * lib/openat.c (rpl_openat): Likewise.
15124
15125         link-follow: ensure correct result
15126         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
15127         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
15128         distinguish between possible failures.
15129
15130 2009-09-21  Eric Blake  <ebb9@byu.net>
15131
15132         fts: avoid compiler warning
15133         * lib/fts.c (dirent_inode_sort_may_be_useful)
15134         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
15135
15136 2009-09-19  Bruno Haible  <bruno@clisp.org>
15137
15138         * lib/progreloc.c (canonicalize_file_name): New declaration.
15139
15140 2009-09-19  Eric Blake  <ebb9@byu.net>
15141
15142         link: fix quoting
15143         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
15144
15145         openat: fix openat bugs on Solaris 9
15146         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
15147         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
15148         * modules/openat (Depends-on): Add open.
15149         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
15150         * modules/fcntl-h (Makefile.am): Substitute it.
15151         * lib/fcntl.in.h (openat): Declare replacement.
15152         * doc/posix-functions/openat.texi (openat): Document this.
15153
15154         openat: move fstatat and unlinkat into correct files
15155         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
15156         compiled.
15157         * lib/openat.c (fstatat, unlinkat): Move...
15158         * lib/fstatat.c (fstatat): ...into correct files.
15159         * lib/unlinkat.c (unlinkat): Likewise.
15160
15161         openat: fix unlinkat bugs on Solaris 9
15162         * lib/unlinkat.c (unlinkat): New file.
15163         * modules/openat (Depends-on): Add unlink.
15164         (Files): Distribute it.
15165         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
15166         trailing slash behavior is broken.
15167         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15168         * modules/unistd (Makefile.am): Substitute it.
15169         * lib/unistd.in.h (unlinkat): Declare replacement.
15170         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
15171
15172         openat: fix fstatat bugs on Solaris 9
15173         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
15174         stat.
15175         * doc/posix-functions/fstatat.texi (fstatat): Document this.
15176
15177         test-unlinkat: enhance test, to expose Solaris 9 bug
15178         * tests/test-unlink.c (main): Factor guts...
15179         * tests/test-unlink.h (test_rmdir_func): ...into new file.
15180         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
15181         * tests/test-rmdir.c (main): Adjust caller.
15182         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
15183         (unlinker): New helper function.
15184         (rmdirat): Enhance check.
15185         * modules/rmdir-tests (Depends-on): Add stdbool.
15186         * modules/unlink-tests (Depends-on): Likewise.
15187         (Files): Add test-unlink.h.
15188         * modules/openat-tests (Files): Likewise.
15189         (Depends-on): Add unlinkdir.
15190
15191         test-fstatat: new test, to expose Solaris 9 bugs
15192         * tests/test-stat.c (main): Factor guts...
15193         * tests/test-stat.h (test_stat_func): ...into new file.
15194         * tests/test-lstat.c (main): Factor guts...
15195         * tests/test-lstat.h (test_lstat_func): ...into new file.
15196         * tests/test-fstatat.c: New file.
15197         * modules/stat-tests (Files): Add test-stat.h.
15198         * modules/lstat-tests (Files): Add test-lstat.h.
15199         (Depends-on): Add stdbool.
15200         * modules/openat-tests (Depends-on): Add pathmax.
15201         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
15202         (Makefile.am): Run new test.
15203
15204         remove: new module, for mingw and Solaris 9 bugs
15205         * modules/remove: New file.
15206         * lib/remove.c: Likewise.
15207         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
15208         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
15209         * modules/stdio (Makefile.am): Use them.
15210         * lib/stdio.in.h (remove): Declare replacement.
15211         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15212         * doc/posix-functions/remove.texi (remove): Likewise.
15213         * modules/remove-tests: New test.
15214         * tests/test-remove.c: Likewise.
15215
15216         unlink: new module, for Solaris 9 bug
15217         * modules/unlink: New file.
15218         * lib/unlink.c: Likewise.
15219         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
15220         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
15221         * modules/unistd (Makefile.am): Use them.
15222         * lib/unistd.in.h (stat): Declare replacement.
15223         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15224         * doc/posix-functions/unlink.texi (unlink): Likewise.
15225         * modules/unlink-tests: New test.
15226         * tests/test-unlink.c: Likewise.
15227
15228         lstat: fix Solaris 9 bug
15229         * lib/lstat.c (lstat): Also check for trailing slash on
15230         non-symlink, non-directories.  Use stat module to simplify logic.
15231         * doc/posix-functions/lstat.texi (lstat): Document it.
15232         * modules/lstat-tests (Depends-on): Add errno, same-inode.
15233         (configure.ac): Check for symlink.
15234         * tests/test-lstat.c (main): Add more tests.
15235
15236         stat: add as dependency to other modules
15237         * modules/chown (Depends-on): Add stat.
15238         * modules/euidaccess (Depends-on): Likewise.
15239         * modules/fchdir (Depends-on): Likewise.
15240         * modules/isdir (Depends-on): Likewise.
15241         * modules/link (Depends-on): Likewise.
15242         * modules/lstat (Depends-on): Likewise.
15243         * modules/mkdir-p (Depends-on): Likewise.
15244         * modules/modechange (Depends-on): Likewise.
15245         * modules/open (Depends-on): Likewise.
15246         * modules/readlink (Depends-on): Likewise.
15247         * modules/same (Depends-on): Likewise.
15248
15249         stat: fix Solaris 9 bug
15250         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
15251         slash.
15252         * lib/stat.c (rpl_stat): Work around it.
15253         * doc/posix-functions/stat.texi (stat): Update documentation.
15254
15255         stat: new module, for mingw bug
15256         * modules/stat: New file.
15257         * lib/stat.c: Likewise.
15258         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
15259         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
15260         * modules/sys_stat (Makefile.am): Use them.
15261         * lib/sys_stat.in.h (stat): Declare replacement.
15262         * lib/openat.c (fstatat): Deal with lstat and stat being function
15263         macros.
15264         * modules/openat (Depends-on): Add inline.
15265         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15266         * doc/posix-functions/stat.texi (stat): Likewise.
15267         * modules/stat-tests: New test.
15268         * tests/test-stat.c: Likewise.
15269
15270 2009-09-19  Jim Meyering  <meyering@redhat.com>
15271
15272         syntax-check: detect unnecessary inclusion of canonicalize.h
15273         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
15274
15275 2009-09-19  Eric Blake  <ebb9@byu.net>
15276
15277         canonicalize-lgpl: adjust clients to use correct header
15278         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
15279         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
15280         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
15281         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
15282         * lib/progreloc.c (includes): Likewise.
15283
15284 2009-09-19  Jim Meyering  <meyering@redhat.com>
15285
15286         test-posixtm.c: correct a comment
15287         * tests/test-posixtm.c: Correct first-line comment.
15288         Spotted by Eric Blake.
15289
15290 2009-09-16  Jim Meyering  <meyering@redhat.com>
15291
15292         posixtm-tests: make T const-correct; add a test case
15293         * tests/test-posixtm.c (T): Declare const.
15294         Add a test for -(2^31+1).
15295         Remove useless can-succeed-only-in-2002 test.
15296
15297         posixtm-tests: adjust the sole failing test
15298         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
15299         expected output matches what mktime now produces.  Cross-checked via
15300         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
15301
15302         posixtm: move #ifdef'd tests into a new module
15303         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
15304         * tests/test-posixtm.c: ... this new file.
15305         * modules/posixtm-tests: New module.
15306
15307 2009-09-19  Eric Blake  <ebb9@byu.net>
15308
15309         openat: simplify use of at-func.c
15310         * lib/at-func.c (includes): Include prerequisites here, to
15311         simplify requirements on client files.
15312         * lib/openat-priv.h: Add double-inclusion guard.
15313         * lib/faccessat.c (includes): Simplify.
15314         * lib/fchmodat.c (includes): Likewise.
15315         * lib/fchownat.c (includes): Likewise.
15316         * lib/mkdirat.c (includes): Likewise.
15317         * lib/mkfifoat.c (includes): Likewise.
15318         * lib/symlinkat.c (includes): Likewise.
15319
15320         openat: allow return of fd 0
15321         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
15322         * modules/save-cwd (Depends-on): Replace fcntl-safer with
15323         unistd-safer.
15324         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
15325         <fcntl.h>; this module does not leak fds.
15326         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
15327         must be allowed to return 0, leaving openat_safer to add the
15328         safety.
15329         (openat_permissive): Avoid writing to just-opened fd 2 if
15330         restoring the current directory fails.
15331         * lib/openat-die.c (openat_restore_fail): Add comment.
15332         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
15333         (save_cwd): Guarantee safe fd, but without use of open_safer.
15334         * tests/test-openat.c: New test.
15335         * modules/openat-tests (Files, Makefile.am): Distribute and build
15336         new file.
15337
15338         relocatable-prog-wrapper: fix build
15339         * modules/relocatable-prog-wrapper (Files): Update name of
15340         canonicalize m4 file, broken on 2009-09-17.
15341         Reported by emad hajjar <aleppos@hotmail.com>.
15342
15343 2009-09-19  Bruno Haible  <bruno@clisp.org>
15344
15345         * lib/safe-alloc.h: Use the standard header with GPL copyright.
15346         * lib/safe-alloc.c: Likewise.
15347         Reported by Ian Beckwith <ianb@erislabs.net>.
15348
15349 2009-09-18  Bruno Haible  <bruno@clisp.org>
15350
15351         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
15352         Reported by <erobles@sensacd.com.mx>.
15353
15354 2009-09-17  Eric Blake  <ebb9@byu.net>
15355
15356         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
15357         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
15358         slashes when checking if last component is missing.
15359         * tests/test-canonicalize.c (main): Test this.
15360
15361         canonicalize, canonicalize-lgpl: honor // if distinct from /
15362         * modules/canonicalize (Files): Add double-slash-root.m4.
15363         * modules/canonicalize-lgpl (Files): Likewise.
15364         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
15365         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
15366         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
15367         fallback definition.
15368         (canonicalize_filename_mode): Use it to protect //.
15369         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
15370         (__realpath): Likewise.
15371         * tests/test-canonicalize.c (main): Test this.
15372         * tests/test-canonicalize-lgpl.c (main): Likewise.
15373         * modules/canonicalize-tests (Depends-on): Add same-inode.
15374         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
15375
15376         canonicalize-lgpl: fix glibc bug with trailing slash
15377         * m4/canonicalize-lgpl.m4: Move contents...
15378         * m4/canonicalize.m4: ...here.
15379         (gl_CANONICALIZE_LGPL): Factor realpath check...
15380         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
15381         glibc 2.3.5 bug, fixed 2005-04-27.
15382         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
15383         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
15384         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
15385         * modules/canonicalize-lgpl (Files): Manage file rename.
15386         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
15387         * modules/stdlib (Makefile.am): Substitute witness.
15388         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
15389         is needed.
15390         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
15391         replacement is required.
15392         * lib/canonicalize.c (canonicalize_file_name): Likewise.
15393         * doc/glibc-functions/canonicalize_file_name.texi
15394         (canonicalize_file_name): Document this.
15395         * doc/posix-functions/realpath.texi (realpath): Likewise.
15396
15397         canonicalize-lgpl: reject non-directory with trailing slash
15398         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
15399         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
15400         catches failures in glibc 2.3.5.
15401         * tests/test-canonicalize.c (main): Likewise.
15402
15403         canonicalize-lgpl: use native realpath if it works
15404         * lib/canonicalize-lgpl.c (realpath): Guard with
15405         FUNC_REALPATH_WORKS.
15406         * lib/stdlib.in.h (realpath): Make declaration optional based on
15407         HAVE_REALPATH.
15408         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
15409         native realpath works.
15410         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
15411         * modules/stdlib (Makefile.am): Substitute witness.
15412
15413         canonicalize, canonicalize-lgpl: use <stdlib.h>
15414         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
15415         (Include): Mention <stdlib.h>.
15416         (configure.ac): Mention functions we provide.
15417         * modules/canonicalize (configure.ac): Likewise.
15418         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
15419         realpath if canonicalize_file_name is missing.
15420         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
15421         * modules/stdlib (Makefile.am): Substitute witnesses.
15422         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
15423         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
15424         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
15425         * NEWS: Document this.
15426         * doc/glibc-functions/canonicalize_file_name.texi
15427         (canonicalize_file_name): Likewise.
15428         * doc/posix-functions/realpath.texi (realpath): Likewise.
15429         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
15430
15431         test-canonicalize: consolidate into single C program
15432         * tests/test-canonicalize.sh: Delete; move setup into...
15433         * tests/test-canonicalize.c (main): ...the program, making it
15434         easier to run in debugger.  Add some tests.
15435         * modules/canonicalize-tests (Files): Remove unused file.
15436         (Depends-on): Add progname.
15437         (configure.ac, Makefile.am): Simplify.
15438
15439         test-canonicalize-lgpl: consolidate into single C program
15440         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
15441         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
15442         easier to run in debugger.  Add some tests.
15443         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
15444         (configure.ac, Makefile.am): Simplify.
15445
15446         canonicalize: avoid resolvepath
15447         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
15448         unnecessary checks.
15449         * lib/canonicalize.c (includes): Simplify.
15450         (canonicalize_file_name): Drop resolvepath implementation.
15451         * modules/canonicalize (Depends-on): Drop filenamecat.
15452
15453         canonicalize: don't lose errno
15454         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
15455         over calls to free.
15456
15457         canonicalize: simplify errno handling
15458         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
15459         assignment.
15460
15461         canonicalize, canonicalize-lgpl: update module dependencies
15462         * modules/canonicalize (Depends-on): Add extensions, lstat,
15463         pathmax, stdlib.
15464         (Files): Drop pathmax.h.
15465         (configure.ac): Adjust macro name.
15466         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
15467         lstat, stdlib, sys_stat.
15468         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
15469         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
15470         extensions.
15471         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
15472         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
15473         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
15474         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
15475         declaration, if available.
15476         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
15477         we can rely on the readlink module.
15478         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
15479         (includes): Use <unistd.h> unconditionally.
15480
15481 2009-09-17  Eric Blake  <ebb9@byu.net>
15482
15483         maint: make Include sections of modules consistent
15484         * modules/alloca: Use only header name; no need to list #include.
15485         * modules/alloca-opt: Likewise.
15486         * modules/arpa_inet: Likewise.
15487         * modules/canon-host: Likewise.
15488         * modules/configmake: Likewise.
15489         * modules/dirent: Likewise.
15490         * modules/eealloc: Likewise.
15491         * modules/environ: Likewise.
15492         * modules/fchdir: Likewise.
15493         * modules/fcntl: Likewise.
15494         * modules/fcntl-h: Likewise.
15495         * modules/gethrxtime: Likewise.
15496         * modules/gettime: Likewise.
15497         * modules/ignore-value: Likewise.
15498         * modules/inet_ntop: Likewise.
15499         * modules/inet_pton: Likewise.
15500         * modules/inttypes: Likewise.
15501         * modules/isnand-nolibm: Likewise.
15502         * modules/isnanf-nolibm: Likewise.
15503         * modules/mbchar: Likewise.
15504         * modules/mbfile: Likewise.
15505         * modules/mbiter: Likewise.
15506         * modules/mbuiter: Likewise.
15507         * modules/netdb: Likewise.
15508         * modules/netinet_in: Likewise.
15509         * modules/nproc: Likewise.
15510         * modules/pagealign_alloc: Likewise.
15511         * modules/poll: Likewise.
15512         * modules/printf-frexp: Likewise.
15513         * modules/pthread: Likewise.
15514         * modules/putenv: Likewise.
15515         * modules/random_r: Likewise.
15516         * modules/relocatable-prog: Likewise.
15517         * modules/search: Likewise.
15518         * modules/select: Likewise.
15519         * modules/selinux-h: Likewise.
15520         * modules/settime: Likewise.
15521         * modules/signal: Likewise.
15522         * modules/size_max: Likewise.
15523         * modules/socklen: Likewise.
15524         * modules/ssize_t: Likewise.
15525         * modules/stdarg: Likewise.
15526         * modules/stdbool: Likewise.
15527         * modules/stddef: Likewise.
15528         * modules/stdint: Likewise.
15529         * modules/stdio: Likewise.
15530         * modules/stdlib: Likewise.
15531         * modules/string: Likewise.
15532         * modules/strings: Likewise.
15533         * modules/sys_file: Likewise.
15534         * modules/sys_ioctl: Likewise.
15535         * modules/sys_select: Likewise.
15536         * modules/sys_socket: Likewise.
15537         * modules/sys_stat: Likewise.
15538         * modules/sys_time: Likewise.
15539         * modules/sys_times: Likewise.
15540         * modules/sys_utsname: Likewise.
15541         * modules/sys_wait: Likewise.
15542         * modules/sysexits: Likewise.
15543         * modules/time: Likewise.
15544         * modules/times: Likewise.
15545         * modules/tmpfile: Likewise.
15546         * modules/trim: Likewise.
15547         * modules/unistd: Likewise.
15548         * modules/wchar: Likewise.
15549         * modules/wctype: Likewise.
15550
15551 2009-09-17  Bruno Haible  <bruno@clisp.org>
15552
15553         Make getdate.y compile on QNX and NetBSD 5 / i386.
15554         * m4/getdate.m4 (gl_GETDATE): Conditionally define
15555         TIME_T_FITS_IN_LONG_INT.
15556         * lib/getdate.y (long_time_t): New type.
15557         (relative_time): Change type of 'seconds' field to long_time_t.
15558         (get_date): Update types of local variables. Check against overflow
15559         during conversion from long_time_t to time_t.
15560         Reported by Matt Kraai <kraai@ftbfs.org>
15561         and Hasso Tepper <hasso@netbsd.org>.
15562
15563 2009-09-17  Bruno Haible  <bruno@clisp.org>
15564
15565         * modules/COPYING: Update copyright years.
15566         * modules/README: Likeiwse.
15567         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
15568         Reported by Ian Beckwith <ianb@erislabs.net>.
15569
15570 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
15571
15572         * users.txt: Update references for gnuit package.
15573
15574 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
15575
15576         * m4/getdelim.m4: Fix typo in copyright line.
15577
15578 2009-09-17  Bruno Haible  <bruno@clisp.org>
15579
15580         * lib/atoll.c: Use the standard header with GPL copyright.
15581         * lib/argz.in.h: Likewise.
15582         * lib/glob.c: Likewise.
15583         * lib/glob-libc.h: Likewise.
15584         * lib/random_r.c: Likewise.
15585         * lib/siglist.h: Likewise.
15586         * lib/strsignal.c: Likewise.
15587         Reported by Ian Beckwith <ianb@erislabs.net>.
15588
15589 2009-09-17  Eric Blake  <ebb9@byu.net>
15590
15591         rmdir: ensure correct dependency order
15592         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
15593
15594 2009-09-17  Bruno Haible  <bruno@clisp.org>
15595
15596         Disable assertion that fails on NetBSD 5 / i386.
15597         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
15598         Reported by Sam Steingold <sds@gnu.org>
15599         and Hasso Tepper <hasso@netbsd.org>.
15600
15601 2009-09-16  Eric Blake  <ebb9@byu.net>
15602
15603         unlinkdir: port to mingw
15604         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
15605         on which no one can unlink a directory.
15606
15607         stdlib: sort witness names
15608         * modules/stdlib (Makefile.am): Sort replacements.
15609         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
15610         * lib/stdlib.in.h: Likewise.
15611
15612         parse-duration-tests: avoid link failure
15613         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
15614         LIBINTL.
15615         Reported by Tom G. Christensen.
15616
15617         openat-tests: ensure unlinkat behaves like rmdir
15618         * tests/test-rmdir.c (main): Factor guts...
15619         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
15620         * modules/rmdir-tests (Files): Ship new file.
15621         * modules/openat-tests: New test.
15622         * tests/test-unlinkat.c: Likewise.
15623
15624         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
15625         * modules/rmdir-errno (Status, Notice): Now obsolete.
15626
15627         rmdir: work around cygwin 1.5.x and mingw bugs
15628         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
15629         * lib/rmdir.c (rmdir): Work around it.
15630         * modules/rmdir (Status, Notice): No longer obsolete.
15631         (Files): Add dos.m4.
15632         (Depends-on): Add unistd.
15633         (configure.ac): Set witnesses.
15634         (License): Relax to LGPLv2+.
15635         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
15636         * modules/unistd (Makefile.am): Substitute witnesses.
15637         * lib/unistd.in.h (rmdir): Declare replacement.
15638         * doc/posix-functions/rmdir.texi (rmdir): Document this.
15639         * modules/rmdir-tests: New tests.
15640         * tests/test-rmdir.c: Likewise.
15641
15642 2009-09-15  Eric Blake  <ebb9@byu.net>
15643
15644         fchdir: improve use of replacement functions
15645         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
15646         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
15647         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
15648         REPLACE_CLOSEDIR.
15649         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
15650         * modules/sys_stat (Makefile.am): Substitute correct witness.
15651         * modules/dirent (Makefile.am): Likewise.
15652         * modules/unistd (Makefile.am): Likewise.
15653         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
15654         * lib/unistd.in.h (dup): Likewise.
15655         * lib/sys_stat.in.h (fstat): Likewise.
15656
15657         maint: ignore gnulib-tool temp files
15658         * .gitignore: Ignore files created during gnulib-tool --test.
15659
15660 2009-09-13  Jim Meyering  <meyering@redhat.com>
15661
15662         posixtm: don't reject a time that specify "60" as the number of seconds
15663         * lib/posixtm.c (posixtime): The code to reject invalid dates
15664         would also reject a time specified with the .60 suffix.
15665         But POSIX allows that, in order to accommodate leap seconds.
15666         So don't reject it.
15667         (main): Adjust tests accordingly.
15668         * modules/posixtm (Depends-on): Add stpcpy.
15669
15670 2009-09-11  Jim Meyering  <meyering@redhat.com>
15671
15672         announce-gen: include [$release_type] in emitted Subject:
15673         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
15674         e.g., [stable] in the emitted Subject: line.
15675
15676 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15677
15678         Remove obsolete macros from several modules.
15679         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
15680         obsolete Autoconf macros with their modern counterparts.
15681         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
15682         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
15683         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
15684         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
15685         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
15686         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
15687         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
15688         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
15689         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
15690         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
15691         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15692         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15693         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
15694         * m4/sockets.m4 (gl_SOCKETS): Likewise.
15695         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
15696         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
15697         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
15698         * m4/time_r.m4 (gl_TIME_R): Likewise.
15699         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
15700         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
15701         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
15702
15703         Fix copyright header in build-aux scripts.
15704         * build-aux/git-version-gen: Fix copyright header to match GPLv3
15705         recommendation.
15706         * build-aux/ncftpput-ftp: Likewise.
15707         * build-aux/update-copyright: Likewise.
15708
15709 2009-09-09  Eric Blake  <ebb9@byu.net>
15710
15711         test-link: allow Linux choice of errno
15712         * tests/test-link.c (main): Relax test for alternate error.
15713
15714         strndup: fix improper m4 caching
15715         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
15716         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
15717         (gl_PREREQ_STRNDUP): Delete.
15718         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
15719         * modules/string (Makefile.am): Substitute it.
15720         * lib/string.in.h (strndup): Modernize prototype.
15721
15722         getcwd: port to mingw
15723         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
15724         different from the POSIX assumptions made throughout the getcwd
15725         module; fortunately, the mingw getcwd does not need replacement.
15726         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
15727         * modules/getcwd-tests: New test.
15728         * tests/test-getcwd.c: Likewise.
15729
15730         link: fix platform bugs
15731         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
15732         * lib/link.c (link): Work around them.  Fix related mingw bug.
15733         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
15734         * modules/unistd (Makefile.am): Substitute it.
15735         * lib/unistd.in.h (link): Declare replacement.
15736         * doc/posix-functions/link.texi (link): Document this.
15737         * modules/link (Depends-on): Add strdup-posix, sys_stat.
15738
15739         test-link: consolidate into single C program, test more cases
15740         * tests/test-link.sh: Delete.
15741         * tests/test-link.c: Test more error conditions.  Exposes bugs on
15742         at least Cygwin and Solaris.
15743         * modules/link-tests (Files): Remove unused file.
15744         (Depends-on): Add errno, sys_stat.
15745         (Makefile.am): Simplify.
15746
15747 2009-09-08  Bruno Haible  <bruno@clisp.org>
15748
15749         Work around towlower, towupper bug on mingw.
15750         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
15751         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
15752         * doc/posix-functions/towlower.texi: Mention the mingw bug.
15753         * doc/posix-functions/towupper.texi: Likewise.
15754         Reported by Eric Blake.
15755
15756 2009-09-08  Jim Meyering  <meyering@redhat.com>
15757
15758         build: don't try to run autoheader if we don't use it
15759         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
15760         is not used in configure.ac.
15761
15762 2009-09-08  Eric Blake  <ebb9@byu.net>
15763
15764         euidaccess: fix compilation error
15765         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
15766
15767         rawmemchr: relax license
15768         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
15769         okay.
15770         Reported by Jim Meyering.
15771
15772         mkfifoat: new module
15773         * modules/mkfifoat: New file.
15774         * lib/mkfifoat.c: Likewise.
15775         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
15776         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
15777         * modules/sys_stat (Makefile.am): Use them.
15778         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
15779         * MODULES.html.sh (File system functions): Mention module.
15780         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
15781         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
15782         * modules/mkfifoat-tests: New test.
15783         * tests/test-mkfifoat.c: Likewise.
15784
15785         strchrnul: relax license
15786         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
15787         okay.
15788         Reported by Jim Meyering.
15789
15790 2009-09-08  Eric Blake  <ebb9@byu.net>
15791
15792         fstatat: fix compilation on Solaris
15793         * lib/fstatat.c (includes): Add fcntl.h.
15794         Reported by Pádraig Brady.
15795
15796 2009-09-07  Eric Blake  <ebb9@byu.net>
15797
15798         rename: modernize replacement
15799         * modules/rename (Depends-on): Add stdio.
15800         (configure.ac): Declare witness.
15801         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
15802         stdio take care of replacement.
15803         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
15804         * modules/stdio (Makefile.am): Substitute them.
15805         * lib/stdio.in.h (rename): Declare replacement.
15806         * lib/rename.c (includes): Allow cross-compilation to non-windows
15807         machines.
15808         * doc/posix-functions/rename.texi (rename): Improve
15809         documentation.
15810
15811         stdio: sort witness names
15812         * modules/stdio (Makefile.am): Sort replacements.
15813         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
15814         * lib/stdio.in.h: Likewise.
15815
15816         getcwd: minor cleanups
15817         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
15818         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
15819
15820         openat: provide more convenience names
15821         * modules/faccessat (configure.ac): Add C witness.
15822         * lib/unistd.in.h (readlinkat): Fix typo.
15823         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
15824         convenience wrappers.
15825         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
15826         wrappers in syntax checks.
15827
15828 2009-09-06  Eric Blake  <ebb9@byu.net>
15829
15830         doc: fix comments in recent patches
15831         * lib/faccessat.c: Mention correct function.
15832         * lib/fchmodat.c: Likewise.
15833         * lib/fchownat.c: Likewise.
15834         * lib/symlinkat.c: Likewise.
15835         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
15836         constants.
15837
15838         faccessat, symlinkat: continue cleanup of previous patch
15839         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
15840         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
15841         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
15842         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
15843         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
15844         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
15845         set.
15846
15847 2009-09-06  Bruno Haible  <bruno@clisp.org>
15848
15849         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
15850         (fstatat): Declare if GNULIB_FSTATAT is set.
15851         (mkdirat): Declare if GNULIB_MKDIRAT is set.
15852         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
15853         (unlinkat): Declare if GNULIB_UNLINKAT is set.
15854         * modules/fcntl-h (Files): Remove m4/openat.m4.
15855         * modules/sys_stat (Files): Remove m4/openat.m4.
15856         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
15857         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
15858         * modules/unistd (Files): Remove m4/openat.m4.
15859         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
15860         GNULIB_OPENAT.
15861         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
15862         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
15863         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
15864         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
15865         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
15866         gl_OPENAT_DEFAULTS.
15867         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
15868         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
15869         Don't require gl_OPENAT_DEFAULTS.
15870         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
15871         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
15872         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
15873         (gl_OPENAT_DEFAULTS): Remove macro.
15874
15875 2009-09-06  Bruno Haible  <bruno@clisp.org>
15876
15877         * modules/openat (configure.ac): Remove unneeded witness.
15878
15879 2009-09-06  Bruno Haible  <bruno@clisp.org>
15880
15881         Set errno to ENOSYS when a function is entirely unsupported.
15882         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
15883         EOPNOTSUPP.
15884         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
15885         * modules/chown (Depends-on): Remove errno.
15886
15887 2009-09-06  Bruno Haible  <bruno@clisp.org>
15888
15889         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
15890
15891 2009-09-06  Bruno Haible  <bruno@clisp.org>
15892
15893         * lib/sys_stat.in.h: Fix preprocessor command indentation.
15894
15895 2009-09-06  Ben Pfaff  <blp@gnu.org>
15896             Bruno Haible  <bruno@clisp.org>
15897
15898         Work around a glibc bug in strtok_r.
15899         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
15900         Undefine if UNDEFINE_STRTOK_R is set.
15901         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
15902         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15903         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
15904         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
15905         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
15906         UNDEFINE_STRTOK_R.
15907         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
15908
15909 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
15910
15911         exclude: minor fix
15912         * lib/exclude.c: Include wctype.h
15913
15914 2009-09-06  Akim Demaille  <demaille@gostai.com>
15915
15916         bootstrap: improve error message
15917         * build-aux/bootstrap (find_tool): Upon failure, report the list
15918         of candidates.
15919         Honor the initial value of the envvar.
15920
15921 2009-09-05  Eric Blake  <ebb9@byu.net>
15922
15923         symlinkat: new module
15924         * modules/symlinkat: New file.
15925         * lib/symlinkat.c: Likewise.
15926         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
15927         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
15928         * modules/unistd (Makefile.am): Use them.
15929         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
15930         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
15931         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
15932         * MODULES.html.sh (File system functions): Mention module.
15933         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
15934         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
15935         * modules/symlinkat-tests: New test.
15936         * tests/test-symlinkat.c: Likewise.
15937
15938         test-openat-safer: add more checks
15939         * tests/test-openat-safer.c (main): Check more code paths.
15940
15941 2009-09-05  Jim Meyering  <meyering@redhat.com>
15942
15943         syntax-check: detect unnecessary inclusion of openat.h
15944         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
15945
15946 2009-09-05  Bruno Haible  <bruno@clisp.org>
15947
15948         Support towlower, towupper.
15949         * doc/posix-functions/towlower.texi: Mention module wctype.
15950         * doc/posix-functions/towupper.texi: Likewise.
15951         * lib/wctype.in.h (towlower, towupper): New functions.
15952         * tests/test-wctype.c: Include stdio.h, stdlib.h.
15953         (ASSERT): New macro.
15954         (e): New variable.
15955         (main): Test also towlower, towupper. Test WEOF argument.
15956         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15957
15958 2009-09-05  Bruno Haible  <bruno@clisp.org>
15959
15960         Fix conversion behaviour when the input is invalid.
15961         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
15962         mark occurring in first pass of indirect conversion.
15963         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
15964         input.
15965         Found by clang's static analyzer.
15966
15967 2009-09-05  Bruno Haible  <bruno@clisp.org>
15968
15969         * tests/test-striconveh.c (main): Test indirect conversion on platforms
15970         where direct conversion is possible.
15971
15972 2009-09-04  Eric Blake  <ebb9@byu.net>
15973
15974         openat: fail with ENOENT on empty name
15975         * lib/openat-proc.c (openat_proc_name): Special-case the empty
15976         buffer.
15977
15978         link-follow: fix logic bug in prior patch
15979         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
15980         reversed sense of yes and no in prior patch.  Avoid confusing
15981         compilation failure with desired semantics.
15982
15983         link-follow: accomodate mingw and cross-compilation
15984         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
15985         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
15986         cross-compilation results to -1, to make linkat easier to
15987         implement when cross-compiling.  Trivially support mingw.
15988         * modules/link-follow (configure.ac): Call new name.
15989         * NEWS: Mention this.
15990
15991 2009-09-03  Eric Blake  <ebb9@byu.net>
15992
15993         faccessat: compile replacement
15994         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
15995         needed.
15996
15997         fts: fix compilation error
15998         * lib/fts.c (includes): Re-add "openat.h", for
15999         openat_needs_fchdir.
16000
16001         faccessat: new module
16002         * modules/faccessat: New file.
16003         * lib/faccessat.c: Likewise.
16004         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
16005         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
16006         * modules/unistd (Makefile.am): Use it.
16007         * lib/unistd.in.h (faccessat): Declare it.
16008         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
16009         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
16010         * MODULES.html.sh (File system functions): Mention it.
16011         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
16012         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
16013
16014         euidaccess: prefer POSIX over non-standard implementation
16015         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
16016         * lib/euidaccess.c (euidaccess): Use it if available.
16017
16018         openat: make template easier to use
16019         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
16020         AT_FUNC_F2 to be undefined.
16021         (VALIDATE_FLAG): New macro; use it to reject bad flags.
16022         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
16023         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
16024         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
16025         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
16026         Likewise.
16027         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
16028         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
16029         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
16030         Likewise.
16031
16032         openat: declare in POSIX headers
16033         * NEWS: Mention this.
16034         * modules/openat (configure.ac): Declare witnesses.
16035         (Depends-on): Add fcntl-h, sys_stat, unistd.
16036         (Include): Mention correct headers.
16037         * modules/fcntl-h (Depends-on): Add link-warning.
16038         (Files): Add openat.m4.
16039         (Makefile.am): Substitute witnesses.
16040         * modules/sys_stat (Files, Makefile.am): Likewise.
16041         * modules/unistd (Files, Makefile.am): Likewise.
16042         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
16043         (gl_OPENAT_DEFAULTS): New macro.
16044         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
16045         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
16046         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
16047         (SYS_STAT_H): Remove unused variable.
16048         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
16049         * lib/fcntl--.h (includes): Remove unneeded header.
16050         * lib/openat-safer.c (includes): Likewise.
16051         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
16052         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
16053         appropriate headers.
16054         (__OPENAT_PREFIX): Delete.
16055         * lib/fcntl.in.h (openat): Provide declaration.
16056         (AT_FDCWD): Fix Solaris bug.
16057         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
16058         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
16059         * lib/fchmodat.c (includes):  Adjust to find declaration.
16060         * lib/fchownat.c (includes): Likewise.
16061         * lib/mkdirat.c (includes): Likewise.
16062         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
16063         still visible.
16064
16065 2009-09-02  Eric Blake  <ebb9@byu.net>
16066
16067         errno: use consistently
16068         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
16069         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
16070         * lib/canonicalize.c (ELOOP): Likewise.
16071         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
16072         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
16073         * lib/lchown.c (EOPNOTSUPP): Likewise.
16074         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
16075         * lib/savewd.c (ESTALE): Likewise.
16076         * lib/settime.c (ENOSYS): Likewise.
16077         * lib/utimens.c (ENOSYS): Likewise.
16078         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
16079         * lib/chdir-safer.c (ELOOP): Likewise.
16080         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
16081         * modules/c-stack (Depends-on): Add errno.
16082         * modules/canonicalize (Depends-on): Likewise.
16083         * modules/chdir-safer (Depends-on): Likewise.
16084         * modules/fdopendir (Depends-on): Likewise.
16085         * modules/inet_ntop (Depends-on): Likewise.
16086         * modules/inet_pton (Depends-on): Likewise.
16087         * modules/lchown (Depends-on): Likewise.
16088         * modules/openat (Depends-on): Likewise.
16089         * modules/savewd (Depends-on): Likewise.
16090         * modules/settime (Depends-on): Likewise.
16091         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
16092
16093         fts: avoid leaking fds
16094         * modules/fts (Depends-on): Add cloexec.
16095         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
16096         flag.
16097
16098         fts: make directory fds more robust
16099         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
16100         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
16101
16102         backupfile, chdir-long, fts, savedir: make safer
16103         * lib/backupfile.c (includes): Use "dirent--.h", since
16104         numbered_backup can write to stderr during readdir.
16105         * lib/savedir.c (includes): Likewise.
16106         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
16107         emulation can write to stderr on failure.
16108         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
16109         * lib/getcwd.c: Document why opendir_safer is unused.
16110         * lib/glob.c: Likewise.
16111         * lib/scandir.c: Likewise.
16112         * lib/openat-proc.c: Likewise, for open_safer.
16113         * modules/backupfile (Depends-on): Add dirent-safer.
16114         * modules/savedir (Depends-on): Likewise.
16115         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
16116         * modules/chdir-long (Depends-on): Add openat-safer.
16117
16118         openat-safer: new module
16119         * modules/openat-safer: New file.
16120         * lib/openat-safer.c: Likewise.
16121         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
16122         * lib/fcntl-safer.h (openat_safer): Declare.
16123         * lib/fcntl--.h (openat): Override.
16124         * MODULES.html.sh (File descriptor based I/O): Mention it.
16125         * lib/openat.h: Add double-inclusion guards.
16126         * lib/openat.c (includes): Only include "fcntl-safer.h", not
16127         "fcntl--.h", so we can implement openat.
16128         * modules/openat-safer-tests: New test.
16129         * tests/test-openat-safer.c: New file.
16130
16131         dirent-safer: new module
16132         * modules/dirent-safer: New file.
16133         * lib/dirent--.h: Likewise.
16134         * lib/dirent-safer.h: Likewise.
16135         * lib/opendir-safer.c: Likewise.
16136         * m4/dirent-safer.m4: Likewise.
16137         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
16138         * modules/dirent-safer-tests: New test.
16139         * tests/test-dirent-safer.c: New file.
16140         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
16141
16142         fdopendir: optimize on mingw
16143         * lib/unistd.in.h (_gl_directory_name): New prototype.
16144         * lib/fchdir.c (_gl_directory_name): Implement it.
16145         (fchdir): Use it to simplify implementation.
16146         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
16147         fchdir, when available, to avoid calling [f]chdir().
16148
16149         fdopendir: split into its own module
16150         * lib/openat.c (fdopendir): Move...
16151         * lib/fdopendir.c: ...into new file.
16152         * modules/fdopendir: New module.
16153         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
16154         * modules/openat (Depends-on): Add fdopendir.
16155         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
16156         fdopendir here.
16157         * modules/savedir (Depends-on): Only need fdopendir, not full
16158         openat.
16159         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
16160         * lib/openat.h (fdopendir): Drop prototype.
16161         * lib/dirent.in.h (fdopendir): Provide prototype.
16162         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
16163         * modules/dirent (Makefile.am): Substitute them.
16164         * MODULES.html.sh (File system functions): Mention it.
16165         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
16166         * modules/fdopendir-tests: New file.
16167         * tests/test-fdopendir.c: Likewise.
16168
16169         fchdir: use more consistent macro convention
16170         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
16171         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
16172         REPLACE_FCHDIR, rather than relying on config.h macros.
16173         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
16174         inside a single make-time REPLACE_FCHDIR block, rather than using
16175         the config.h FCHDIR_REPLACEMENT.
16176         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
16177         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
16178         Manage fstat replacement.
16179         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
16180         REPLACE_FCHDIR.
16181         * modules/sys_stat (Files): Add m4/unistd_h.m4.
16182         (Makefile.am): Substitute REPLACE_FCHDIR.
16183         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
16184         FCHDIR_REPLACEMENT.
16185         * lib/dup-safer.c (dup_safer): Likewise.
16186         * lib/dup2.c (rpl_dup2): Likewise.
16187         * lib/dup3.c (rpl_dup3): Likewise.
16188         * lib/open.c (rpl_open): Likewise.
16189
16190         fchdir: simplify error handling, and support dup3
16191         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
16192         stdbool, malloc-posix, realloc-posix.
16193         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
16194         (ensure_dirs_slot): Return false on allocation failure.
16195         (rpl_dup2): Delete.
16196         (_gl_register_dup): New function.
16197         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
16198         (_gl_register_fd): Close fd on allocation failure.
16199         * lib/fcntl.in.h (_gl_register_fd): Update signature.
16200         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
16201         prototype.
16202         (rpl_dup2_fchdir): Delete prototype.
16203         * lib/open.c (open): Update caller.
16204         * lib/dup2.c (dup2): Track fchdir metadata.
16205         * lib/dup3.c (dup3): Likewise.
16206         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
16207         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
16208
16209 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16210
16211         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
16212         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
16213         don't pass arguments to AC_OUTPUT.
16214
16215 2009-09-02  Bruno Haible  <bruno@clisp.org>
16216
16217         * modules/mkdtemp (License): Relicense under LGPLv2+.
16218         Reported by Paolo Bonzini.
16219
16220 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16221
16222         Replace uses of obsolete autoconf macros in Jim's modules.
16223         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
16224         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
16225         can evoke a warning from autoconf when run with -Wobsolete
16226         enabled.  They were declared obsolete for good reasons (see
16227         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
16228         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
16229         should not continue using the deprecated macros.
16230         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
16231         obsolete Autoconf macros with modern counterparts.
16232         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
16233         * m4/dos.m4 (gl_AC_DOS): Likewise.
16234         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
16235         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
16236         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
16237         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
16238         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
16239         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
16240         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
16241         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
16242         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
16243         Likewise.
16244         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
16245         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
16246         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
16247         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
16248         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
16249         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
16250
16251 2009-09-01  Eric Blake  <ebb9@byu.net>
16252
16253         fchdir: fix off-by-one bug in previous patch
16254         * lib/fchdir.c (rpl_fstat): Use correct bounds.
16255         (_gl_unregister_fd): Delete useless if.
16256
16257 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
16258
16259         maint.mk: sort the list of syntax-check rules
16260         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
16261         easier to get a sense of progress when the rules are run sequentially
16262         and take a long time.
16263
16264 2009-09-01  Simon Josefsson  <simon@josefsson.org>
16265
16266         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
16267         * modules/netinet_in: Likewise.
16268         * modules/sys_file: Likewise.
16269         * modules/sys_ioctl: Likewise.
16270         * modules/sys_select: Likewise.
16271         * modules/sys_socket: Likewise.
16272         * modules/sys_stat: Likewise.
16273         * modules/sys_time: Likewise.
16274         * modules/sys_times: Likewise.
16275         * modules/sys_utsname: Likewise.
16276         * modules/sys_wait: Likewise.
16277
16278 2009-09-01  Jim Meyering  <meyering@redhat.com>
16279
16280         fts: help ensure that return values are not ignored
16281         * lib/fts_.h (__GNUC_PREREQ): Define.
16282         (__attribute_warn_unused_result__): Define.
16283         (fts_children, fts_close, fts_open, fts_read): Declare with
16284         __attribute_warn_unused_result__.
16285
16286         fts: fts_close now fails also when closing a dir file descriptor fails
16287         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
16288         and propagate to caller, along with errno.
16289
16290         announce-gen: correct formatting in --help output
16291         * build-aux/announce-gen (usage): Move the one-line description in
16292         --help output "up", to where it belongs, just after Usage:.
16293
16294 2009-08-31  Eric Blake  <ebb9@byu.net>
16295
16296         fchdir: port to mingw
16297         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
16298         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
16299         opened, then use a substitute.
16300         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
16301         replacement.
16302         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
16303         (_gl_register_fd): No need to check stat if open already filters
16304         all directories.
16305         (fchdir): Fix error condition to match POSIX.
16306         * modules/fchdir (Depends-on): Add sys_stat.
16307         * doc/posix-functions/open.texi (open): Document the limitation.
16308         * modules/fchdir-tests: New file.
16309         * tests/test-fchdir.c: Likewise.
16310
16311         canonicalize: allow cross-testing from cygwin to mingw
16312         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
16313         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
16314         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
16315         Likewise.
16316         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
16317         target does not support symlinks.
16318         * tests/test-canonicalize-lgpl.sh: Likewise.
16319
16320         chown: avoid compilation warning on mingw
16321         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
16322         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
16323         mingw.
16324         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
16325         * modules/chown (Depends-on): Add errno.
16326
16327 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
16328
16329         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
16330         command.
16331
16332 2009-08-31  Jim Meyering  <meyering@redhat.com>
16333
16334         canonicalize: remove useless initialization
16335         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
16336         initialization of local, "end".
16337
16338 2009-08-30  Bruno Haible  <bruno@clisp.org>
16339
16340         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
16341         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
16342         ENOSYS.
16343
16344 2009-08-30  Bruno Haible  <bruno@clisp.org>
16345
16346         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
16347         /usr/xpg4/bin/tr when it exists.
16348         * tests/test-pipe-filter-gi1.sh: Likewise.
16349
16350 2009-08-30  Bruno Haible  <bruno@clisp.org>
16351
16352         Work around deficient /usr/bin/id program on Solaris.
16353         * tests/test-file-has-acl.sh (ID): New variable.
16354         * tests/test-set-mode-acl.sh (ID): Likewise.
16355         * tests/test-copy-acl.sh (ID): Likewise.
16356         * tests/test-copy-file.sh (ID): Likewise.
16357
16358 2009-08-30  Bruno Haible  <bruno@clisp.org>
16359
16360         New module 'xstriconveh'.
16361         * lib/xstriconveh.h: New file.
16362         * lib/xstriconveh.c: New file.
16363         * modules/xstriconveh: New file.
16364
16365 2009-08-30  Bruno Haible  <bruno@clisp.org>
16366
16367         Make it easier to use mem_cd_iconveh.
16368         * lib/striconveh.h (iconveh_t): New type.
16369         (iconveh_open, iconveh_close): New declarations.
16370         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
16371         with a single 'const iconveh_t *' argument.
16372         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
16373         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
16374         with a single 'const iconveh_t *' argument.
16375         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
16376         * tests/test-striconveh.c (main): Update.
16377         * NEWS: Mention the change.
16378
16379 2009-08-30  Bruno Haible  <bruno@clisp.org>
16380
16381         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
16382         problem.
16383
16384 2009-08-30  Bruno Haible  <bruno@clisp.org>
16385
16386         Work around iconv_open problem on Solaris.
16387         * lib/iconv_open-solaris.gperf: New file.
16388         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
16389         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
16390         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
16391         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
16392         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
16393         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
16394
16395 2009-08-29  Jim Meyering  <meyering@redhat.com>
16396
16397         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
16398         * top/maint.mk (cvs-check): Remove target; it was just an alias
16399         to the better-named vc-diff-check.
16400         (maintainer-distcheck): Remove rule.  It was used only from
16401         the (alpha/beta/major) target, and all of its commands but one
16402         were coreutils-specific.
16403         (vc-dist): Remove rule.
16404         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
16405         Run vc-diff-check, not vc-dist.
16406         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
16407
16408 2009-08-27  Bruno Haible  <bruno@clisp.org>
16409
16410         * tests/test-bitrotate.c (main): Remove test that uses a shift count
16411         of 0.
16412
16413 2009-08-27  Bruno Haible  <bruno@clisp.org>
16414
16415         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
16416         compilers.
16417         * doc/func.texi: Document the SunPRO C bug.
16418
16419 2009-08-27  Bruno Haible  <bruno@clisp.org>
16420
16421         Fix link error on Solaris.
16422         * tests/test-parse-duration.c (xstrdup): Remove function.
16423
16424 2009-08-26  Pádraig Brady  <P@draigbrady.com>
16425
16426         ignore-value: handle pointer types, too
16427         * lib/ignore-value.h (__attribute__): Remove definition.
16428         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
16429         of a more concise and more-often effective "(void) i" statement.
16430         (ignore_ptr): New function to suppress warnings from functions that
16431         return pointers, and to make it explicit that one function doesn't
16432         handle all cases.
16433
16434 2009-08-25  Bruno Haible  <bruno@clisp.org>
16435
16436         dup2: work around a Linux bug.
16437         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
16438         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
16439         * doc/posix-functions/dup2.texi: Mention the Linux bug.
16440         Reported by Simon Josefsson.
16441
16442 2009-08-25  Jim Meyering  <meyering@redhat.com>
16443
16444         libguestfs uses gnulib
16445         * users.txt: Add libguestfs.
16446
16447 2009-08-24  Eric Blake  <ebb9@byu.net>
16448
16449         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
16450         * lib/pipe2.c (includes): Add binary-io.h.
16451         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
16452
16453 2009-08-24  Bruno Haible  <bruno@clisp.org>
16454
16455         Tolerate declared but missing accept4 syscall.
16456         * lib/accept4.c (accept4): Invoke original accept4 function first, if
16457         available.
16458         * lib/sys_socket.in.h (accept4): If the function is already present,
16459         override it.
16460         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
16461         * modules/accept4 (Makefile.am): Compile accept4.c always.
16462         Reported by Paolo Bonzini and Eric Blake.
16463
16464 2009-08-23  Bruno Haible  <bruno@clisp.org>
16465
16466         New module 'accept4'.
16467         * lib/sys_socket.in.h (accept4): New declaration.
16468         * lib/accept4.c: New file.
16469         * m4/accept4.m4: New file.
16470         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
16471         GNULIB_ACCEPT4, HAVE_ACCEPT4.
16472         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
16473         HAVE_ACCEPT4.
16474         * modules/accept4: New file.
16475         * doc/glibc-functions/accept4.texi: Mention the new module.
16476
16477 2009-08-24  Jim Meyering  <meyering@redhat.com>
16478
16479         progname: also set global program_invocation_name, when possible
16480         Before this change, a libtool-enabled program that calls glibc's
16481         error function would report the program name as
16482         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
16483         * modules/progname (configure.ac): Check for a declaration of
16484         program_invocation_name.
16485         * lib/progname.c:  Include <errno.h>.
16486         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
16487         Set program_invocation_name.
16488
16489 2009-08-23  Bruno Haible  <bruno@clisp.org>
16490
16491         * lib/dup3.c: Include <string.h>.
16492
16493 2009-08-23  Bruno Haible  <bruno@clisp.org>
16494
16495         * lib/dup3.c (dup3): Test only once whether the system actually exists.
16496         * lib/pipe2.c (pipe2): Likewise.
16497         Suggested by Eric Blake.
16498
16499 2009-08-23  Bruno Haible  <bruno@clisp.org>
16500
16501         Tolerate declared but missing dup3 syscall.
16502         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
16503         * lib/unistd.in.h (dup3): If the function is already present,
16504         override it.
16505         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
16506         * modules/dup3 (Makefile.am): Compile dup3.c always.
16507         Reported by Paolo Bonzini.
16508
16509 2009-08-23  Bruno Haible  <bruno@clisp.org>
16510
16511         Tolerate declared but missing pipe2 syscall.
16512         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
16513         available.
16514         * lib/unistd.in.h (pipe2): If the function is already present,
16515         override it.
16516         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
16517         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
16518         Reported by Paolo Bonzini.
16519
16520 2009-08-23  Bruno Haible  <bruno@clisp.org>
16521
16522         * lib/pipe2.c (pipe2): Move #ifs inside function.
16523
16524 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
16525
16526         quotearg: document limitations of quote_these_too
16527         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
16528         those limitations are created.
16529         * lib/quotearg.h (set_char_quoting): Document that digits and
16530         letters that are special after backslash are not permitted.
16531         (quotearg_char): Cross-reference set_char_quoting documentation.
16532
16533 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
16534
16535         quotearg: implement custom_quoting_style
16536         * lib/quotearg.c: (struct quoting_options): Add left_quote and
16537         right_quote fields.
16538         (set_custom_quoting): New public function.
16539         (quotearg_buffer_restyled): Add left_quote and right_quote
16540         arguments, handle them very much like locale quoting, and update
16541         all uses.
16542         (quotearg_n_custom): New public function.
16543         (quotearg_n_custom_mem): New public function.
16544         (quotearg_custom): New public function.
16545         (quotearg_custom_mem): New public function.
16546         * lib/quotearg.h: Prototype and document new public functions.
16547         (enum quoting_style): For escape_quoting_style and
16548         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
16549         ignored even though they're otherwise like c_quoting_style.
16550         Add custom_quoting_style member and document with comparison to
16551         clocale_quoting_style.
16552         * tests/test-quotearg.c (custom_quotes): New array.
16553         (custom_results): New array.
16554         (main): Extend to test custom quoting.
16555
16556 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
16557
16558         quotearg: fix right quote escaping when it's in quote_these_too
16559         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
16560         quote, be sure to prepend only one backslash.
16561         * tests/test-quotearg.c (use_quote_double_quotes): New function.
16562         (main): Test it.
16563
16564 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
16565
16566         quotearg-tests: test escaping of embedded locale quotes
16567         * tests/test-quotearg.c (struct result_strings): Add member for
16568         new input.
16569         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
16570         (inputs): Add new input.
16571         (results_g): Add expected results.
16572         (flag_results): Likewise.
16573         (locale_results): Likewise.
16574         (compare_strings): Check those.
16575
16576 2009-08-23  Bruno Haible  <bruno@clisp.org>
16577
16578         Tests for module 'dup3'.
16579         * modules/dup3-tests: New file.
16580         * tests/test-dup3.c: New file.
16581
16582         New module 'dup3'.
16583         * lib/unistd.in.h (dup3): New declaration.
16584         * lib/dup3.c: New file.
16585         * m4/dup3.m4: New file.
16586         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
16587         HAVE_DUP3.
16588         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
16589         * modules/dup3: New file.
16590         * doc/glibc-functions/dup3.texi: Mention the new module.
16591
16592 2009-08-23  Bruno Haible  <bruno@clisp.org>
16593
16594         Tweak the dup2 test.
16595         * tests/test-dup2.c (main): Create the test file empty. Verify that an
16596         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
16597         the test file is still empty. Fix argument order of lseek.
16598
16599 2009-08-23  Bruno Haible  <bruno@clisp.org>
16600
16601         Avoid test link errors when the modules getopt-gnu, gettext are used.
16602         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
16603         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16604
16605 2009-08-23  Bruno Haible  <bruno@clisp.org>
16606
16607         Fix getdtablesize() on mingw.
16608         * lib/getdtablesize.c (getdtablesize): Implement differently.
16609         * lib/unistd.in.h (getdtablesize): Improve comment.
16610
16611 2009-08-23  Bruno Haible  <bruno@clisp.org>
16612
16613         New module 'mkostemp'.
16614         Based on Ulrich Drepper's 2007-08-10 change in glibc.
16615         * lib/stdlib.in.h (mksotemp): New declaration.
16616         * lib/mkostemp.c: New file, from glibc with modifications.
16617         * lib/tempname.h (GT_FILE): Remove outdated comment.
16618         (gen_tempname): Add flags argument.
16619         * lib/tempname.c (__GT_BIGFILE): Remove macro.
16620         (__GT_FILE): Map to 1.
16621         (small_open, large_open): Remove macros.
16622         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
16623         * lib/mkstemp.c (mkstemp): Update.
16624         * lib/mkdtemp.c (mkdtemp): Likewise.
16625         * m4/mkostemp.m4: New file.
16626         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
16627         HAVE_MKOSTEMP.
16628         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
16629         HAVE_MKOSTEMP.
16630         * modules/mkostemp: New file, based on modules/mkstemp.
16631         * doc/glibc-functions/mkostemp.texi: Mention the new module.
16632         * NEWS: Mention the change.
16633
16634 2009-08-23  Bruno Haible  <bruno@clisp.org>
16635
16636         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
16637         Reported by Eric Blake.
16638
16639 2009-08-23  Bruno Haible  <bruno@clisp.org>
16640
16641         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
16642         Reported by Eric Blake.
16643
16644 2009-08-23  Bruno Haible  <bruno@clisp.org>
16645
16646         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
16647         * modules/pipe2 (Depends-on): Likewise.
16648
16649 2009-08-23  Eric Blake  <ebb9@byu.net>
16650
16651         fcntl-h: add O_TTY_INIT support
16652         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
16653         * tests/test-fcntl-h.c (o): Test it.
16654         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
16655
16656         fcntl-h: rename from fcntl, in preparation for fcntl(2)
16657         * modules/fcntl: Move <fcntl.h> header replacement...
16658         * modules/fcntl-h: ...to new name, so as not to collide with
16659         like-named function.
16660         * tests/test-fcntl.c: Rename...
16661         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
16662         * modules/fcntl-tests: Rename...
16663         * modules/fcntl-h-tests: ...to this.  Update test file name.
16664         * modules/chdir-long (Depends-on): Update clients.
16665         * modules/chdir-safer (Depends-on): Likewise.
16666         * modules/fcntl-safer (Depends-on): Likewise.
16667         * modules/fts (Depends-on): Likewise.
16668         * modules/mkancesdirs (Depends-on): Likewise.
16669         * modules/mkdir-p (Depends-on): Likewise.
16670         * modules/open (Depends-on): Likewise.
16671         * modules/savewd (Depends-on): Likewise.
16672         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
16673         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
16674
16675 2009-08-22  Bruno Haible  <bruno@clisp.org>
16676
16677         * modules/binary-io (License): Relicense under LGPL.
16678         * modules/pipe2 (License): Likewise.
16679
16680 2009-08-22  Bruno Haible  <bruno@clisp.org>
16681
16682         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
16683         return value.
16684         * lib/pipe-filter-gi.c (filter_init): Likewise.
16685         Reported by Eric Blake.
16686
16687 2009-08-22  Bruno Haible  <bruno@clisp.org>
16688
16689         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
16690         * modules/pipe (Depends-on): Add pipe2.
16691
16692 2009-08-22  Bruno Haible  <bruno@clisp.org>
16693
16694         Tests for module 'pipe2'.
16695         * modules/pipe2-tests: New file.
16696         * tests/test-pipe2.c: New file.
16697
16698         New module 'pipe2'.
16699         * lib/unistd.in.h (pipe2): New declaration.
16700         * lib/pipe2.c: New file.
16701         * m4/pipe2.m4: New file.
16702         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
16703         HAVE_PIPE2.
16704         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
16705         * modules/pipe2: New file.
16706         * doc/glibc-functions/pipe2.texi: Mention the new module.
16707
16708 2009-08-22  Bruno Haible  <bruno@clisp.org>
16709
16710         Reference some new glibc functions.
16711         * doc/glibc-functions/accept4.texi: New file.
16712         * doc/glibc-functions/dup3.texi: New file.
16713         * doc/glibc-functions/mkostemp.texi: New file.
16714         * doc/glibc-functions/pipe2.texi: New file.
16715         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
16716         (Glibc sys/socket.h): Refer to accept4.
16717         (Glibc unistd.h): Refer to dup3, pipe2.
16718         Reported by Eric Blake.
16719
16720 2009-08-22  Jim Meyering  <meyering@redhat.com>
16721             Bruno Haible  <bruno@clisp.org>
16722
16723         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
16724         This makes it so packages using automake-1.11's silent-rules option
16725         can print e.g., a single "GEN    configmake.h" line, rather than
16726         the 30+ statements that perform the job.  If you want to see the
16727         actual commands, you can still run "make V=1".
16728         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
16729         so that make output is abbreviated when those variables are defined
16730         appropriately.
16731         * modules/argz: Likewise.
16732         * modules/arpa_inet: Likewise.
16733         * modules/byteswap: Likewise.
16734         * modules/configmake: Likewise.
16735         * modules/dirent: Likewise.
16736         * modules/errno: Likewise.
16737         * modules/fcntl: Likewise.
16738         * modules/float: Likewise.
16739         * modules/fnmatch: Likewise.
16740         * modules/getopt-posix: Likewise.
16741         * modules/glob: Likewise.
16742         * modules/iconv_open: Likewise.
16743         * modules/inttypes: Likewise.
16744         * modules/localcharset: Likewise.
16745         * modules/locale: Likewise.
16746         * modules/math: Likewise.
16747         * modules/netdb: Likewise.
16748         * modules/netinet_in: Likewise.
16749         * modules/poll: Likewise.
16750         * modules/posix_spawnp-tests: Likewise.
16751         * modules/sched: Likewise.
16752         * modules/search: Likewise.
16753         * modules/selinux-h: Likewise.
16754         * modules/signal: Likewise.
16755         * modules/spawn: Likewise.
16756         * modules/stdarg: Likewise.
16757         * modules/stdbool: Likewise.
16758         * modules/stddef: Likewise.
16759         * modules/stdint: Likewise.
16760         * modules/stdio: Likewise.
16761         * modules/stdlib: Likewise.
16762         * modules/string: Likewise.
16763         * modules/strings: Likewise.
16764         * modules/sys_file: Likewise.
16765         * modules/sys_ioctl: Likewise.
16766         * modules/sys_select: Likewise.
16767         * modules/sys_socket: Likewise.
16768         * modules/sys_stat: Likewise.
16769         * modules/sys_time: Likewise.
16770         * modules/sys_times: Likewise.
16771         * modules/sys_utsname: Likewise.
16772         * modules/sys_wait: Likewise.
16773         * modules/sysexits: Likewise.
16774         * modules/time: Likewise.
16775         * modules/unistd: Likewise.
16776         * modules/wchar: Likewise.
16777         * modules/wctype: Likewise.
16778
16779 2009-08-22  Jim Meyering  <meyering@redhat.com>
16780
16781         announce-gen: detect write failure
16782         * build-aux/announce-gen: Add Coda at end.
16783         Remove equivalent-but-more-verbose block at top.
16784
16785 2009-08-19  Akim Demaille  <demaille@gostai.com>
16786
16787         bootstrap: --help to stdout.
16788         * bootstrap (usage): Don't send --help to stderr.
16789         Use a here doc instead of a long string.
16790
16791 2009-08-21  Eric Blake  <ebb9@byu.net>
16792
16793         test-popen-safer: split from test-popen
16794         * tests/test-popen.c (main): Move...
16795         * tests/test-popen.h: ...into new file.
16796         * tests/test-popen-safer2.c: New file.
16797         * modules/popen-tests (Files): Add test-popen.h.
16798         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
16799         Suggested by Bruno Haible.
16800
16801         test-fcntl-safer: split from test-open
16802         * tests/test-open.c (main): Move...
16803         * tests/test-open.h: ...into new file.
16804         * tests/test-fcntl-safer.c: New file.
16805         * modules/open-tests (Files): Add test-open.h.
16806         * modules/fcntl-safer-tests: New file.
16807         Suggested by Bruno Haible.
16808
16809         test-fopen-safer: split from test-fopen
16810         * tests/test-fopen.c (main): Move...
16811         * tests/test-fopen.h: ...into new file.
16812         * tests/test-fopen-safer.c: New file.
16813         * modules/fopen-tests (Files): Add test-fopen.h.
16814         * modules/fopen-safer-tests: New file.
16815         Suggested by Bruno Haible.
16816
16817 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
16818
16819         popen-safer: test O_CLOEXEC at run-time.
16820         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
16821
16822 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
16823
16824         fcntl: move more flags to the header
16825         * lib/cloexec.c: Do not define FD_CLOEXEC here.
16826         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
16827         * lib/fcntl.in.h: Do both things here.
16828
16829 2009-08-21  Jim Meyering  <meyering@redhat.com>
16830
16831         consistently remove $@-t before redirecting to it
16832         * modules/argz: Remove $@-t and $@ before redirecting to the former.
16833         * modules/alloca-opt: Likewise.
16834         * modules/byteswap: Likewise.
16835         * modules/fnmatch: Likewise.
16836         * modules/getopt-posix: Likewise.
16837         * modules/glob: Likewise.
16838         * modules/poll: Likewise.
16839         * modules/posix_spawnp-tests: Likewise.
16840         * modules/sys_socket: Likewise.
16841         * modules/sysexits: Likewise.
16842
16843 2009-08-21  Eric Blake  <ebb9@byu.net>
16844
16845         popen: simplify access to original popen
16846         * lib/popen.c (rpl_popen): No need to worry about popen being a
16847         macro.
16848         Reported by Bruno Haible.
16849
16850 2009-08-20  Eric Blake  <ebb9@byu.net>
16851
16852         build: avoid some compiler warnings
16853         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
16854         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
16855         type.
16856         (new_exclude_segment, excluded_file_pattern_p)
16857         (excluded_file_name_p): Reduce scope.
16858         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
16859         old-style declaration.
16860
16861 2009-08-20  Simon Josefsson  <simon@josefsson.org>
16862
16863         * tests/test-exclude1.sh: Handle Windows EOL.
16864         * tests/test-exclude2.sh: Likewise.
16865         * tests/test-exclude3.sh: Likewise.
16866         * tests/test-exclude4.sh: Likewise.
16867         * tests/test-exclude5.sh: Likewise.
16868         * tests/test-exclude6.sh: Likewise.
16869         * tests/test-exclude7.sh: Likewise.
16870
16871 2009-08-19  Akim Demaille  <demaille@gostai.com>
16872
16873         bootstrap: find sha1sum when named gsha1sum.
16874         * bootstrap (find_tool): New.
16875         ($SHA1SUM): New.
16876         Use it.
16877
16878 2009-08-20  Jim Meyering  <meyering@redhat.com>
16879
16880         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
16881         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
16882         expression that converts "." in a file name to "\." in the resulting
16883         regexp.  Start with a dummy statement, so that prior shell variable
16884         definitions are expanded portably.  Reported by Simon Josefsson.
16885
16886 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
16887
16888         Fix polling for writeability of a screen buffer.
16889         * lib/poll.c: Distinguish input and screen buffers for the
16890         Win32 implementation.
16891         * lib/select.c: Likewise.
16892
16893 2009-08-19  Eric Blake  <ebb9@byu.net>
16894
16895         popen-safer: prevent popen from clobbering std descriptors
16896         * modules/popen-safer: New file.
16897         * lib/popen-safer.c: Likewise.
16898         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
16899         * lib/stdio--.h (popen): Provide override.
16900         * lib/stdio-safer.h (popen_safer): Provide declaration.
16901         * tests/test-popen.c (includes): Partially test this.
16902         * modules/popen-safer-tests: New file, for more tests.
16903         * tests/test-popen-safer.c: Likewise.
16904         * MODULES.html.sh (file stream based Input/Output): Mention it.
16905
16906         tests: test some of the *-safer modules
16907         * modules/fopen-safer (Depends-on): Add fopen.
16908         * modules/fcntl-safer (Depends-on): Add fcntl.
16909         * modules/stdlib-safer (Depends-on): Add stdlib.
16910         (configure.ac): Set indicator.
16911         * modules/unistd-safer (configure.ac): Likewise.
16912         * modules/tmpfile-safer (configure.ac): Likewise.
16913         (Depends-on): Add tmpfile.
16914         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
16915         active.
16916         * tests/test-fopen.c (includes): Test safer versions when they are
16917         in use.
16918         * tests/test-open.c (includes): Likewise.
16919
16920         popen: fix cygwin 1.5 bug when stdin closed
16921         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
16922         * modules/popen: New file.
16923         * modules/popen-tests: Likewise.
16924         * tests/test-popen.c: Likewise.
16925         * m4/popen.m4: Likewise.
16926         * lib/popen.c: Likewise.
16927         * lib/stdio.in.h (popen): New declaration.
16928         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
16929         * modules/stdio (Makefile.am): Likewise.
16930         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
16931
16932 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
16933
16934         maint.mk: give full control over update-copyright exclusions
16935         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
16936         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
16937         (update-copyright): Don't force inclusion of top-level
16938         ChangeLog.  Don't force exclusion of all COPYING files, but make
16939         them the default exclusion instead.
16940
16941 2009-08-16  Bruno Haible  <bruno@clisp.org>
16942
16943         Fix test failures on Solaris 10.
16944         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
16945         tests when Solaris iconv() is used.
16946         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
16947         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
16948         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
16949         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
16950         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
16951
16952 2009-08-16  Bruno Haible  <bruno@clisp.org>
16953
16954         Fix test failures on Solaris 10.
16955         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
16956         'tr' program and pass it as first argument.
16957         * tests/test-pipe-filter-gi1.sh: Likewise.
16958         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
16959         program as first argument.
16960         * tests/test-pipe-filter-gi1.c (main): Likewise.
16961
16962 2009-08-16  Eric Blake  <ebb9@byu.net>
16963
16964         fpurge: fix previous commits
16965         * modules/fpurge (Makefile.am): Make replacement conditional,
16966         partially reverting 2007-04-29 change; missed in previous
16967         attempt.
16968         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
16969         is missing.
16970
16971 2009-08-16  Bruno Haible  <bruno@clisp.org>
16972
16973         Clarify fpurge's effect on the file position.
16974         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
16975         * tests/test-fpurge.c (main): Make a second pass for checking the file
16976         position.
16977
16978 2009-08-16  Bruno Haible  <bruno@clisp.org>
16979
16980         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
16981         declaration of fpurge is missing.
16982         * tests/test-fpurge.c (main): Check that the file has not more contents
16983         than expected. Close the file before removing it.
16984
16985 2009-08-15  Eric Blake  <ebb9@byu.net>
16986
16987         fpurge: don't wrap working cygwin implementation
16988         * lib/fpurge.c (fpurge): Fix comment typo.
16989         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
16990         1.7 to avoid replacement.
16991         * tests/test-fpurge.c (main): Enhance test.
16992
16993 2009-08-15  Eric Blake  <ebb9@byu.net>
16994         and Jim Meyering  <meyering@redhat.com>
16995
16996         test-update-copyright: skip if perl is insufficient
16997         * tests/test-update-copyright.sh: Failure to run maintainer tool
16998         should not cause testsuite failure on cygwin 1.5.
16999
17000 2009-08-14  Eric Blake  <ebb9@byu.net>
17001
17002         doc: mention more functions added in cygwin 1.7.0
17003         * doc/posix-headers/limits.texi (limits.h): Update for recent
17004         cygwin additions.
17005         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
17006         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
17007         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
17008         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
17009         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
17010
17011 2009-08-14  Eric Blake  <ebb9@byu.net>
17012
17013         maint.mk: simplify update-copyright rule
17014         * top/maint.mk (update-copyright-local): Delete, and document how
17015         to do it in cfg.mk instead.
17016         (update-copyright-exclude-regexp): Delete, and document how to do
17017         it in .x-update-copyright instead.
17018         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
17019         exclude ChangeLog.
17020
17021 2009-08-14  Bruno Haible  <bruno@clisp.org>
17022
17023         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
17024
17025 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
17026
17027         maint.mk: support update-copyright-env
17028         * top/maint.mk (update-copyright-env): Define place-holder.
17029         (update-copyright): Expand $(update-copyright-env) before
17030         invoking update-copyright.
17031
17032 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
17033
17034         update-copyright: implement forced reformatting
17035         * build-aux/update-copyright: Implement and document
17036         UPDATE_COPYRIGHT_FORCE.
17037         * tests/test-update-copyright.sh: Test it.
17038
17039 2009-08-14  Eric Blake  <ebb9@byu.net>
17040         and Bruno Haible  <bruno@clisp.org>
17041
17042         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
17043         * tests/test-locale.c: Revert previous patch related to NULL.
17044         * tests/test-stdio.c: Likewise.
17045         * tests/test-stdlib.c: Likewise.
17046         * tests/test-string.c: Likewise.
17047         * tests/test-unistd.c: Likewise.
17048         * modules/time-tests (Depends-on): Add verify.
17049         * modules/wchar-tests (Depends-on): Likewise.
17050         * tests/test-time.c: Test for NULL compliance.
17051         * tests/test-wchar.c: Likewise.
17052         * modules/locale (Depends-on): Add stddef.
17053         * modules/stdio (Depends-on): Likewise.
17054         * modules/stdlib (Depends-on): Likewise.
17055         * modules/string (Depends-on): Likewise.
17056         * modules/time (Depends-on): Likewise.
17057         * modules/unistd (Depends-on): Likewise.
17058         * modules/wchar (Depends-on): Likewise.
17059         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
17060         * lib/stdlib.in.h (includes): Likewise.
17061         * lib/string.in.h (includes): Likewise.
17062         * lib/time.in.h (includes): Likewise.
17063         * lib/unistd.in.h (includes): Likewise.
17064         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
17065         replaced.
17066         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
17067         * m4/stddef_h.m4: New file.
17068         * modules/stddef: Likewise.
17069         * lib/stddef.in.h: Likewise.
17070         * modules/stddef-tests: Likewise.
17071         * tests/test-stddef.c: Likewise.
17072         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
17073         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
17074         * doc/posix-headers/locale.texi (locale.h): Likewise.
17075         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
17076         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
17077         * doc/posix-headers/string.texi (string.h): Likewise.
17078         * doc/posix-headers/time.texi (time.h): Likewise.
17079         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
17080         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
17081
17082 2009-08-14  Eric Blake  <ebb9@byu.net>
17083
17084         doc: improve git diff of texinfo files
17085         * .gitattributes: Add rule for *.texi files, with hint on how to
17086         use it.
17087         Copied from m4, and based on a report by Bruno Haible.
17088
17089 2009-08-14  Bruno Haible  <bruno@clisp.org>
17090
17091         Disable multithread support by default on Cygwin 1.5.x for real.
17092         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
17093
17094 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
17095
17096         update-copyright: much ado about intervals
17097         * build-aux/update-copyright: Implement and document
17098         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
17099         of copyright year intervals.
17100         Also, document UPDATE_COPYRIGHT_YEAR.
17101         * tests/test-update-copyright.sh: Test it.
17102
17103         update-copyright: convert 2-digit to 4-digit years
17104         * build-aux/update-copyright: Implement and document.
17105         * tests/test-update-copyright.sh: Update.
17106
17107 2009-08-14  Jim Meyering  <meyering@redhat.com>
17108
17109         test-exclude: avoid coreutils "make check" failure
17110         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
17111         just as in test-argmatch.c.
17112
17113 2009-08-13  Eric Blake  <ebb9@byu.net>
17114
17115         test-dup2: fix bad assumption
17116         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
17117         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
17118
17119         test-version-etc: fix CRLF portability issue
17120         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
17121         recognize \r.
17122         * tests/test-argp-version-etc-1.sh: Likewise.
17123
17124         getopt: update client modules
17125         * modules/argp (Depends-on): Use getopt-gnu.
17126         * modules/git-merge-changelog (Depends-on): Likewise.
17127         * modules/long-options (Depends-on): Likewise.
17128         * modules/xstrtol (Depends-on): Likewise.
17129
17130 2009-08-13  Simon Josefsson  <simon@josefsson.org>
17131
17132         * tests/test-version-etc.sh: Don't fail on different
17133         project/version.  Don't fail on CRLF differences.  Rewrite to use
17134         multiple -e instead of multiple sed forks, suggested by Eric Blake
17135         <ebb9@byu.net>.
17136         * tests/test-argp-version-etc-1.sh: Likewise.
17137
17138 2009-08-13  Simon Josefsson  <simon@josefsson.org>
17139
17140         * tests/test-version-etc.sh: Don't fail on different
17141         project/version.
17142
17143 2009-08-12  Bruno Haible  <bruno@clisp.org>
17144
17145         Tests for modules 'getopt-posix', 'getopt-gnu'.
17146         * modules/getopt-posix-tests: New file.
17147         * tests/test-getopt.c: New file.
17148         * tests/test-getopt.h: New file.
17149         * tests/test-getopt_long.h: New file.
17150
17151         New modules 'getopt-posix', 'getopt-gnu'.
17152         * modules/getopt-gnu: New file, renamed from modules/getopt.
17153         * modules/getopt-posix: New file.
17154         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
17155         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
17156         (gl_GETOPT): Remove macro.
17157         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
17158         Disable the test against BSD systems that declare optreset. Test
17159         against mingw bug. Test against lack of support of optional arguments
17160         on many platforms.
17161         * doc/glibc-headers/getopt.texi: Update module name and list of
17162         relevant platforms.
17163         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
17164         'getopt-gnu' and more portability problems.
17165         * NEWS: Mention the changes.
17166
17167 2009-08-12  Bruno Haible  <bruno@clisp.org>
17168
17169         Ensure that optarg etc. get declared by <unistd.h>.
17170         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
17171         AC_USE_SYSTEM_EXTENSIONS.
17172         * modules/getopt (Depends-on): Add 'extensions'.
17173
17174 2009-08-12  Bruno Haible  <bruno@clisp.org>
17175
17176         Avoid test link errors.
17177         * modules/pipe-filter-ii-tests (Makefile.am): Define
17178         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
17179         * modules/pipe-filter-gi-tests (Makefile.am): Define
17180         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
17181         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17182
17183 2009-08-12  Bruno Haible  <bruno@clisp.org>
17184
17185         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
17186         gl_GETOPT_SUBSTITUTE before.
17187         (gl_GETOPT): Use it.
17188         * m4/argp.m4 (gl_ARGP): Update.
17189         Reported by Sergey Poznyakoff.
17190
17191         * m4/getopt.m4: Reorder macros.
17192         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
17193         (gl_GETOPT_SUBSTITUTE): Remove macro.
17194
17195 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
17196
17197         Minor improvement in gitlog-to-changelog
17198
17199         * build-aux/gitlog-to-changelog: New option `--format' makes
17200         output format string configurable.
17201
17202 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
17203
17204         Optimize exclude: use hash tables for non-wildcard patterns.
17205
17206         * lib/exclude.c: Include hash.h and mbuiter.h
17207         (struct exclude_pattern, exclude_segment): New data types.
17208         (struct exclude): Rewrite.
17209         (fnmatch_pattern_has_wildcards): New function.
17210         (new_exclude_segment, free_exclude_segment): New functions.
17211         (excluded_file_pattern_p, excluded_file_name_p): New functions.
17212         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
17213         * lib/exclude.h (is_fnmatch_pattern): New prototype.
17214         * modules/exclude: Depend on hash and mbuiter.
17215
17216         * modules/exclude-tests: New file.
17217         * tests/test-exclude.c: New file.
17218         * tests/test-exclude1.sh: New file.
17219         * tests/test-exclude2.sh: New file.
17220         * tests/test-exclude3.sh: New file.
17221         * tests/test-exclude4.sh: New file.
17222         * tests/test-exclude5.sh: New file.
17223         * tests/test-exclude6.sh: New file.
17224         * tests/test-exclude7.sh: New file.
17225
17226 2009-08-12  Bruno Haible  <bruno@clisp.org>
17227
17228         Ensure that getopt() gets declared by <unistd.h>.
17229         * lib/unistd.in.h: Conditionally include getopt.h.
17230         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
17231         Set GNULIB_UNISTD_H_GETOPT.
17232         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17233         GNULIB_UNISTD_H_GETOPT.
17234         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
17235
17236 2009-08-12  Bruno Haible  <bruno@clisp.org>
17237
17238         Clarify logic.
17239         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
17240         gl_replace_getopt instead of GETOPT_H.
17241
17242 2009-08-12  Bruno Haible  <bruno@clisp.org>
17243
17244         * m4/getopt.m4: Add comments.
17245
17246 2009-08-12  Bruno Haible  <bruno@clisp.org>
17247
17248         Disable multithread support by default on Cygwin 1.5.x.
17249         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
17250         set gl_use_threads=no if not specified otherwise.
17251
17252 2009-08-11  Bruno Haible  <bruno@clisp.org>
17253
17254         Avoid compilation error on NetBSD 5.0.
17255         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
17256         * tests/test-stdio.c: Likewise.
17257         * tests/test-stdlib.c: Likewise.
17258         * tests/test-string.c: Likewise.
17259         * tests/test-unistd.c: Likewise.
17260         Reported by Greg Troxel <gdt@ir.bbn.com>
17261         at <https://savannah.gnu.org/support/?106973>.
17262
17263 2009-08-11  Bruno Haible  <bruno@clisp.org>
17264
17265         * modules/dup2-tests (Depends-on): Remove close.
17266
17267         Undo 2009-07-19 commit.
17268         * modules/acl-tests (Depends-on): Remove close.
17269         * modules/binary-io-tests (Depends-on): Likewise.
17270         * modules/closein-tests (Depends-on): Likewise.
17271         * modules/flock-tests (Depends-on): Likewise.
17272         * modules/fsync-tests (Depends-on): Likewise.
17273         * modules/lseek-tests (Depends-on): Likewise.
17274         * modules/pipe-tests (Depends-on): Likewise.
17275         * modules/posix_spawn-tests (Depends-on): Likewise.
17276         * modules/posix_spawnp-tests (Depends-on): Likewise.
17277         * modules/stat-time-tests (Depends-on): Likewise.
17278         * modules/yesno-tests (Depends-on): Likewise.
17279
17280 2009-08-10  Bruno Haible  <bruno@clisp.org>
17281
17282         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
17283
17284 2009-08-10  Bruno Haible  <bruno@clisp.org>
17285
17286         Fix a gcc warning.
17287         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
17288
17289 2009-08-10  Bruno Haible  <bruno@clisp.org>
17290
17291         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
17292         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
17293         not only the first time.
17294         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
17295         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
17296         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
17297         is 1, not only the the first time.
17298
17299 2009-08-10  Bruno Haible  <bruno@clisp.org>
17300
17301         Make it possible to use module 'gethostname' without module 'close'.
17302         * lib/unistd.in.h (close): Evoke a link error only if
17303         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
17304         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17305         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17306         * modules/unistd (Makefile.am): Substitute
17307         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17308         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
17309         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
17310         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
17311         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17312         * modules/sys_ioctl (Makefile.am): Substitute
17313         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17314         * modules/socket (configure.ac): On native Windows, set
17315         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
17316         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17317         Reported by Sam Steingold <sds@gnu.org>.
17318
17319 2009-08-10  Bruno Haible  <bruno@clisp.org>
17320
17321         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
17322         * modules/ioctl (configure.ac): Likewise.
17323
17324 2009-08-10  Bruno Haible  <bruno@clisp.org>
17325
17326         Avoid collision between gnulib wrapper and libintl wrapper.
17327         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
17328         already defined in intl/printf.c.
17329         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
17330         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
17331
17332 2009-08-09  Bruno Haible  <bruno@clisp.org>
17333
17334         Make <sys/select.h> really self-contained, also on Solaris 10.
17335         * lib/sys_select.in.h: Include <string.h>.
17336         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
17337         Solaris 10 problem.
17338         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
17339         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
17340         Reported by Jim Meyering.
17341
17342 2009-08-09  Bruno Haible  <bruno@clisp.org>
17343
17344         Avoid warnings from 'aclocal' that are due to a use of macro name
17345         AM_XGETTEXT_OPTION that is not defined in automake.
17346         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
17347         automake.
17348         * modules/error (configure.ac): Likewise.
17349         * modules/propername (configure.ac): Likewise.
17350         * modules/vasprintf (configure.ac): Likewise.
17351         * modules/verror (configure.ac): Likewise.
17352         * modules/xprintf (configure.ac): Likewise.
17353         * modules/xvasprintf (configure.ac): Likewise.
17354
17355 2009-08-08  Bruno Haible  <bruno@clisp.org>
17356
17357         Avoid compilation error in C++ mode.
17358         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
17359         Reported by Sam Steingold <sds@gnu.org>.
17360
17361 2009-08-08  Bruno Haible  <bruno@clisp.org>
17362
17363         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
17364         for the various Unix platforms.
17365         * doc/posix-headers/limits.texi: Update platforms list regarding
17366         HOST_NAME_MAX.
17367         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17368
17369 2009-08-07  Jim Meyering  <meyering@redhat.com>
17370
17371         selinux-at: fix typo in a comment
17372         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
17373         Spotted by Paolo Bonzini.
17374
17375         selinux-at: remove redundant m4 code, add documentation
17376         * modules/selinux-at (configure.ac): Remove redundant code.
17377         LIB_SELINUX is already set via the dependent module, selinux-h.
17378         (Include): Add quotes around selinux-at.h.
17379         * lib/selinux-at.h: Add documentation.
17380         Reported by Bruno Haible in
17381         http://marc.info/?l=gnulib-bug&m=124958988300749
17382
17383 2009-08-07  Bruno Haible  <bruno@clisp.org>
17384
17385         Avoid link error on MacOS X 10.3 and 10.4.
17386         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
17387         on non-ELF systems.
17388         * lib/argp-pv.c (argp_program_version): Likewise.
17389         Reported by Simon Josefsson.
17390
17391 2009-08-07  Simon Josefsson  <simon@josefsson.org>
17392
17393         * tests/test-version-etc.sh: Use $EXEEXT.
17394
17395 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
17396
17397         update-copyright: update documentation to point to maint.mk
17398         * build-aux/update-copyright: Here.
17399
17400 2009-08-06  Jim Meyering  <meyering@redhat.com>
17401
17402         maint.mk: support update-copyright-local
17403         * top/maint.mk (update-copyright-local): Define place-holder.
17404         (update-copyright): Depend on $(update-copyright-local).
17405
17406 2009-08-06  Jim Meyering  <meyering@redhat.com>
17407
17408         selinux-at: new module
17409         Initially written for coreutils, this module will soon be
17410         used by findutils, too.
17411         * MODULES.html.sh [Misc]: Add selinux-at.
17412         * lib/selinux-at.h: New file, from coreutils.
17413         * lib/selinux-at.c: Likewise.
17414         * modules/selinux-at: Likewise.
17415         (License): Change from LGPL to GPL, since it depends
17416         on the GPL'd openat module.
17417
17418         doc: update README
17419         * README: Remove references to cogito.
17420         Remove cvs-repo-updating instructions from 2007.
17421         Don't imply that CVS is better if you have limited disk space.
17422
17423 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17424
17425         update-copyright: support C-style comments
17426         * build-aux/update-copyright: Implement and document.
17427         * tests/test-update-copyright.sh: Test.
17428
17429 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17430
17431         update-copyright: support omitted "(C)"
17432         * build-aux/update-copyright: Implement and document.  Also,
17433         allow variable whitespace before "(C)".
17434         * tests/test-update-copyright.sh: Test.
17435
17436 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17437
17438         update-copyright: don't trip on non-FSF copyright statements
17439         * build-aux/update-copyright: Fix so that the first correctly
17440         formatted FSF copyright statement is recognized no matter what
17441         appears before it.  Update documentation.
17442         * tests/test-update-copyright.sh: Test that.
17443
17444 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17445
17446         update-copyright: clean up code a little
17447         * build-aux/update-copyright: Append "_re" to the name of any
17448         variable holding a regular expression.
17449         Replace "old" and "new" with "stmt" in variable names.
17450         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
17451         handled correctly.
17452         Format code more consistently.
17453
17454 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17455
17456         update-copyright-tests: improve portability
17457         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
17458         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
17459
17460 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
17461
17462         update-copyright: support @copyright{} and &copy;
17463         * build-aux/update-copyright: Implement and document.
17464         * tests/test-update-copyright.sh: Test.
17465
17466 2009-08-04  Jim Meyering  <meyering@redhat.com>
17467
17468         update-copyright-tests: correctly test EOL=\r\n handling
17469         * tests/test-update-copyright.sh: Put \r at the end of some lines
17470         for the dos-eol tests.  Based on a patch by Joel E. Denny.
17471
17472         maint.mk: make update-copyright exclusion list more configurable
17473         * top/maint.mk (update-copyright): Default to excluding COPYING,
17474         but allow an override, in case someone does want to update that file.
17475
17476         maint.mk: don't update copyright date in COPYING
17477         * top/maint.mk (update-copyright): Exclude COPYING.
17478
17479         maint.mk: add a copyright-updating rule
17480         * top/maint.mk (update-copyright): New rule.
17481         Derived from coreutils/Makefile.am.
17482
17483         update-copyright: rename some variables
17484         * build-aux/update-copyright: Rename a few variables for clarity.
17485         Tweak syntax.  List Joel E. Denny as coauthor.
17486
17487 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
17488
17489         update-copyright: fix bug for 2-digit last year and add tests
17490         * build-aux/update-copyright: Fix bug.
17491         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
17492         specified.
17493         * modules/update-copyright-tests: New
17494         * tests/test-update-copyright.sh: New.
17495
17496 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
17497
17498         update-copyright: handle leading tabs in line prefix
17499         * build-aux/update-copyright: Count leading tabs as 8 spaces
17500         when computing margin.  This helps with the formatting of
17501         ChangeLogs, for example.
17502         Fix documentation a little.
17503
17504 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
17505
17506         update-copyright: support EOL=\r\n
17507         * build-aux/update-copyright: Implement that.
17508
17509 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
17510
17511         update-copyright: automatically format copyright statements
17512         * build-aux/update-copyright: Implement that.
17513         Also, be a little more predictable and safer by always failing
17514         when the full copyright format is not perfectly recognized as an
17515         unbroken whole.  Discussed at
17516         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
17517         Rewrite documentation.
17518
17519 2009-08-03  Bruno Haible  <bruno@clisp.org>
17520
17521         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
17522
17523 2009-08-02  Bruno Haible  <bruno@clisp.org>
17524
17525         Tests for module 'uname'.
17526         * modules/uname-tests: New file.
17527         * tests/test-uname.c: New file.
17528
17529         New module 'uname'.
17530         * lib/uname.c: New file.
17531         * m4/uname.m4: New file.
17532         * modules/uname: New file.
17533         * doc/posix-functions/uname.texi: Mention the new module.
17534
17535 2009-08-02  Bruno Haible  <bruno@clisp.org>
17536
17537         Tests for module 'sys_utsname'.
17538         * modules/sys_utsname-tests: New file.
17539         * tests/test-sys_utsname.c: New file.
17540
17541         New module 'sys_utsname'.
17542         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
17543         * m4/sys_utsname_h.m4: New file.
17544         * modules/sys_utsname: New file.
17545         * doc/posix-headers/sys_utsname.texi: Mention the new module.
17546
17547 2009-08-02  Bruno Haible  <bruno@clisp.org>
17548
17549         Implicitly initialize the sockets library.
17550         * lib/gethostname.c: Include sockets.h.
17551         (rpl_gethostname): Invoke gl_sockets_startup.
17552         * lib/socket.c: Include sockets.h.
17553         (rpl_socket): Invoke gl_sockets_startup.
17554         * modules/gethostname (Depends-on): Add sockets.
17555         * modules/socket (Depends-on): Likewise.
17556         * tests/test-poll.c: Don't include sockets.h.
17557         (main): Don't invoke gl_sockets_startup.
17558         * tests/test-select.c: Don't include sockets.h.
17559         (main): Don't invoke gl_sockets_startup.
17560
17561 2009-08-02  Bruno Haible  <bruno@clisp.org>
17562
17563         Allow multiple calls to gl_sockets_startup.
17564         * lib/sockets.c (initialized_sockets_version): New variable.
17565         (gl_sockets_startup): Do nothing if already called for this or a higher
17566         version.
17567         (gl_sockets_cleanup): Reset initialized_sockets_version.
17568
17569 2009-08-03  Simon Josefsson  <simon@josefsson.org>
17570
17571         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
17572         different project/version.
17573
17574 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
17575             Bruno Haible  <bruno@clisp.org>
17576
17577         Tests for module 'pipe-filter-gi'.
17578         * modules/pipe-filter-gi-tests: New file.
17579         * tests/test-pipe-filter-gi1.sh: New file.
17580         * tests/test-pipe-filter-gi1.c: New file.
17581         * tests/test-pipe-filter-gi2.sh: New file.
17582         * tests/test-pipe-filter-gi2-main.c: New file.
17583         * tests/test-pipe-filter-gi2-child.c: New file.
17584
17585         New module 'pipe-filter-gi'.
17586         * lib/pipe-filter-gi.c: New file.
17587         * modules/pipe-filter-gi: New file.
17588
17589 2009-08-02  Bruno Haible  <bruno@clisp.org>
17590             Paolo Bonzini  <bonzini@gnu.org>
17591
17592         Tests for module 'pipe-filter-ii'.
17593         * modules/pipe-filter-ii-tests: New file.
17594         * tests/test-pipe-filter-ii1.sh: New file.
17595         * tests/test-pipe-filter-ii1.c: New file.
17596         * tests/test-pipe-filter-ii2.sh: New file.
17597         * tests/test-pipe-filter-ii2-main.c: New file.
17598         * tests/test-pipe-filter-ii2-child.c: New file.
17599
17600         New module 'pipe-filter-ii'.
17601         * lib/pipe-filter.h: New file.
17602         * lib/pipe-filter-ii.c: New file.
17603         * lib/pipe-filter-aux.h: New file.
17604         * modules/pipe-filter-ii: New file.
17605
17606 2009-08-02  Simon Josefsson  <simon@josefsson.org>
17607
17608         * lib/gc-libgcrypt.c: Change copyright to FSF.
17609         * lib/gc-gnulib.c: Likewise.
17610
17611 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
17612
17613         * lib/gethostname.c: Include limits.h.
17614
17615 2009-08-02  Simon Josefsson  <simon@josefsson.org>
17616             Bruno Haible  <bruno@clisp.org>
17617
17618         Ensure HOST_NAME_MAX as part of the gethostname module.
17619         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
17620         define also HOST_NAME_MAX.
17621         * tests/test-gethostname.c: Include <limits.h>.
17622         (main): Check also HOST_NAME_MAX.
17623         * doc/posix-headers/limits.texi: Document the mingw problem.
17624
17625 2009-08-02  Bruno Haible  <bruno@clisp.org>
17626
17627         * lib/gethostname.c (gethostname): Fix handling of large len argument.
17628         Add comments.
17629
17630 2009-03-31  Simon Josefsson  <simon@josefsson.org>
17631
17632         * lib/gethostname.c: Add Windows wrapper.
17633         * m4/gethostname.m4: Look for gethostname in -lws2_32.
17634         * modules/gethostname: Depend on sys_socket & errno, for also
17635         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
17636         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
17637
17638 2009-07-31  Jim Meyering  <meyering@redhat.com>
17639
17640         getloadavg: fix symbol name in comment
17641         * lib/getloadavg.c: Correct a typo I introduced when adding
17642         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
17643         Matt Kraai spotted the problem.
17644
17645 2009-07-29  Matt Kraai  <mkraai@beckman.com>
17646
17647         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
17648         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
17649         code also if ! defined N_NAME_POINTER.
17650         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
17651         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
17652         but the n_name member is a 12-byte array.
17653
17654 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
17655
17656         update-copyright: generalize comment handling
17657         * build-aux/update-copyright: Handle copyright statements
17658         within more comment styles.
17659         Document usage.
17660         Report any file with an external copyright holder or parse failure.
17661
17662 2009-07-29  Jim Meyering  <meyering@redhat.com>
17663
17664         mktime: correct setting of REPLACE_MKTIME
17665         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
17666
17667         update-copyright: new module
17668         * modules/update-copyright: New file.
17669         * build-aux/update-copyright: New file.
17670         * MODULES.html.sh (maint+release support): Add update-copyright.
17671
17672 2009-07-27  Bruno Haible  <bruno@clisp.org>
17673
17674         Fix compilation error when <ctime> is used and mktime is replaced.
17675         * lib/time.in.h (mktime): New declaration.
17676         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
17677         REPLACE_MKTIME instead of defining mktime in config.h.
17678         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
17679         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
17680         Reported by Ross McFarland <rwmcfa1@neces.com>.
17681
17682 2009-07-27  Bruno Haible  <bruno@clisp.org>
17683
17684         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
17685         Reported by Matt Kraai <mkraai@beckman.com>.
17686
17687 2009-07-25  Jim Meyering  <meyering@redhat.com>
17688
17689         maint.mk: avoid warnings about missing files
17690         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
17691         diagnostic when .prev-version does not exist.
17692         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
17693         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
17694         nonexistent cfg.mk.
17695         Suggestions from Simon Josefsson.
17696
17697 2009-07-25  Bruno Haible  <bruno@clisp.org>
17698
17699         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
17700         defined as macros. Needed on QNX 6.4.1.
17701         Reported by Matt Kraai <mkraai@beckman.com>.
17702
17703 2009-07-23  Jim Meyering  <meyering@redhat.com>
17704
17705         maint.mk: invoke "make dist" with a working value of XZ_OPT
17706         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
17707
17708 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
17709
17710         Make fseeko.c compile on QNX.
17711         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
17712
17713 2009-07-22  Peter Simons  <simons@cryp.to>
17714
17715         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
17716         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
17717         * lib/md4.h: Likewise.
17718         * lib/md5.h: Likewise.
17719         * lib/sha1.h: Likewise.
17720         * lib/sha256.h: Likewise.
17721         * lib/sha512.h: Likewise.
17722
17723         tests-sha1: don't assign literal string to 'char *' variable
17724         * tests/test-sha1.c (main): Declare locals with "const" to match
17725         attributes of the right hand side.
17726
17727 2009-07-21  Eric Blake  <ebb9@byu.net>
17728
17729         dup2: fix more mingw problems
17730         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
17731         fd to itself.
17732         * doc/posix-functions/dup2.texi (dup2): Document the bug.
17733         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
17734         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
17735         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
17736         care of mingw bugs.
17737
17738 2009-07-21  Jim Meyering  <meyering@redhat.com>
17739
17740         vc-list-files: avoid failure when /bin/sh is dash
17741         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
17742         On some Debian based systems, /bin/sh is a symlink to dash, and running
17743         this command would omit the "/" following each 'tests' prefix:
17744           dash -x build-aux/vc-list-files -C . tests
17745         That is because bash and dash work differently:
17746           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
17747           bash ok
17748           dash odd
17749
17750 2009-07-21  Eric Blake  <ebb9@byu.net>
17751
17752         dup2-tests: test previous patch
17753         * modules/dup2-tests: New file.
17754         * tests/test-dup2.c: Likewise.
17755         * tests/test-open.c (main): Avoid unspecified behavior.
17756         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
17757         test.
17758
17759         dup2: work around mingw and cygwin 1.5 bug
17760         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
17761         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17762         * modules/unistd (Makefile.am): Substitute it.
17763         * lib/unistd.in.h (dup2): Declare the replacement.
17764         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
17765         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
17766         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
17767         * modules/execute (Depends-on): Add dup2.
17768         * modules/fseterr (Depends-on): Likewise.
17769         * modules/pipe (Depends-on): Likewise.
17770         * modules/posix_spawn-internal (Depends-on): Likewise.
17771
17772 2009-07-21  Bruno Haible  <bruno@clisp.org>
17773
17774         * modules/.gitattributes: New file.
17775
17776 2009-07-20  Bruno Haible  <bruno@clisp.org>
17777
17778         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
17779         (main): Use it.
17780
17781 2009-07-20  Eric Blake  <ebb9@byu.net>
17782
17783         test-pipe: make a bit more robust.
17784         * tests/test-pipe.c (myerr): Allow error messages regardless of
17785         what we do to stderr.
17786         (test_pipe): Rearrange to avoid deadlock.
17787         (child_main): Try a larger read, to ensure we avoided deadlock.
17788         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
17789         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
17790         if misused.
17791
17792 2009-07-19  Jim Meyering  <meyering@redhat.com>
17793
17794         fts: avoid false-positive cycle-detection
17795         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
17796         for each new command line argument.
17797
17798 2009-07-19  Bruno Haible  <bruno@clisp.org>
17799
17800         Fix build error on mingw with the modules sys_select and unistd.
17801         * modules/acl-tests (Depends-on): Add close.
17802         * modules/binary-io-tests (Depends-on): Likewise.
17803         * modules/closein-tests (Depends-on): Likewise.
17804         * modules/flock-tests (Depends-on): Likewise.
17805         * modules/fsync-tests (Depends-on): Likewise.
17806         * modules/lseek-tests (Depends-on): Likewise.
17807         * modules/pipe-tests (Depends-on): Likewise.
17808         * modules/posix_spawn-tests (Depends-on): Likewise.
17809         * modules/posix_spawnp-tests (Depends-on): Likewise.
17810         * modules/stat-time-tests (Depends-on): Likewise.
17811         * modules/yesno-tests (Depends-on): Likewise.
17812
17813 2009-07-19  Bruno Haible  <bruno@clisp.org>
17814
17815         Unify conditionals.
17816         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
17817         macros, not at the compiler macros.
17818         * lib/pipe.c: Likewise.
17819         * lib/execute.c: Likewise.
17820         * lib/spawni.c: Likewise.
17821
17822 2009-07-19  Bruno Haible  <bruno@clisp.org>
17823
17824         Fix handling of closed stdin/stdout/stderr on mingw.
17825         * lib/w32spawn.h: Include unistd.h.
17826         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
17827         file descriptor with O_NOINHERIT flag.
17828         (fd_safer_noinherit): New function, based on fd-safer.c.
17829         (dup_safer_noinherit): New function, based on dup-safer.c.
17830         (undup_safer_noinherit): New function.
17831         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
17832         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
17833         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
17834         instead of fd_safer.
17835         * tests/test-pipe.c: Include <windows.h>.
17836         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
17837
17838         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
17839         from main.
17840         (test_pipe): Pass an extra argument for disambiguation.
17841         (main): Invoke parent_main or child_main.
17842
17843         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
17844         consistently.
17845
17846 2009-07-18  Eric Blake  <ebb9@byu.net>
17847
17848         test-pipe: fix mingw build
17849         * tests/test-pipe.c (main): Avoid fcntl on mingw.
17850
17851 2009-07-18  Bruno Haible  <bruno@clisp.org>
17852
17853         * modules/pipe-tests (Makefile.am): Fix typo.
17854
17855 2009-07-18  Eric Blake  <ebb9@byu.net>
17856
17857         error: fix mingw build
17858         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
17859         Reported by Bruno Haible.
17860
17861         error: avoid undefined use of stdout
17862         * lib/error.c (error, error_at_line): Check that fd 1 is open
17863         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
17864         is handling faults and the close_stdout module wants to report the
17865         detection of closed stdout as an error.
17866
17867 2009-07-17  Eric Blake  <ebb9@byu.net>
17868
17869         pipe: be robust in face of closed fds
17870         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
17871         should cause child to misbehave.
17872         * modules/pipe-tests: New module.
17873         * tests/test-pipe.c: New file.
17874         * tests/test-pipe.sh: New file.
17875         Reported by Akim Demaille.
17876
17877 2009-07-14  Bruno Haible  <bruno@clisp.org>
17878
17879         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
17880         Reported by anonymous kc.
17881
17882 2009-07-07  Jim Meyering  <meyering@redhat.com>
17883
17884         maint.mk: don't look for translatable strings in *.m4 or *.mk
17885         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
17886         when searching for translatable strings.
17887
17888 2009-07-05  Jim Meyering  <meyering@redhat.com>
17889
17890         remove superfluous parentheses in STREQ definition
17891         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
17892         * lib/getugroups.c (STREQ): Likewise.
17893         * lib/fnmatch.c (STREQ): Likewise.
17894         Spotted by Bruno Haible.
17895
17896 2009-07-04  Jim Meyering  <meyering@redhat.com>
17897
17898         argv-iter: new module
17899         * MODULES.html.sh: Add argv-iter.
17900         * lib/argv-iter.c, lib/argv-iter.h: New files.
17901         * modules/argv-iter: New file.
17902         * modules/argv-iter-tests: New file.
17903         * tests/test-argv-iter.c: Test it.
17904
17905 2009-07-04  Bruno Haible  <bruno@clisp.org>
17906
17907         Fix assertion.
17908         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
17909         contains more exact copies of a given entry than file2, leave the extra
17910         copies unpaired rather than aborting.
17911         Reported by Eric Blake.
17912
17913 2009-07-02  Bruno Haible  <bruno@clisp.org>
17914
17915         Speedup git-merge-changelog for git cherry-pick.
17916         * lib/git-merge-changelog.c (struct entries_mapping): New type.
17917         (entries_mapping_get): New function, extracted from compute_mapping.
17918         (entries_mapping_reverse_get): New function.
17919         (compute_mapping): Add a 'full' argument. Return the result in a
17920         'struct entries_mapping'.
17921         (main): Update. Access the mappings through entries_mapping_get.
17922         Reported by Eric Blake.
17923
17924 2009-07-02  Bruno Haible  <bruno@clisp.org>
17925
17926         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
17927         best_i.
17928
17929 2009-07-02  Bruno Haible  <bruno@clisp.org>
17930
17931         Speed up approximate search for matching ChangeLog entries.
17932         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
17933         argument. Call fstrcmp_bounded instead of fstrcmp.
17934         (compute_mapping, try_split_merged_entry, main): Update callers.
17935
17936 2009-07-02  Bruno Haible  <bruno@clisp.org>
17937
17938         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
17939
17940 2009-06-30  Bruno Haible  <bruno@clisp.org>
17941
17942         Reduce the number of uc_is_cased calls.
17943         * lib/unicase.h (casing_suffix_context_t): Add
17944         'first_char_except_ignorable' field.
17945         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
17946         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
17947         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
17948         Update initializer.
17949         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
17950         case-ignorable characters.
17951         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
17952         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
17953         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
17954         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
17955         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
17956
17957 2009-06-30  Bruno Haible  <bruno@clisp.org>
17958
17959         Tests for module 'unicase/ignorable'.
17960         * modules/unicase/ignorable-tests: New file.
17961         * tests/unicase/test-ignorable.c: New file, generated by
17962         gen-uni-tables.
17963
17964         Tests for module 'unicase/cased'.
17965         * modules/unicase/cased-tests: New file.
17966         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
17967         * tests/unicase/test-predicate-part1.h: New file, derived from
17968         tests/unictype/test-predicate-part1.h.
17969         * tests/unicase/test-predicate-part2.h: New file, same as
17970         tests/unictype/test-predicate-part2.h.
17971
17972         Fix evaluation of "Before C" condition of FINAL_SIGMA.
17973         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
17974         (output_casing_properties): New function.
17975         (main): Call it.
17976         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
17977         * lib/unicase/cased.c: Include unictype/bitmap.h.
17978         (uc_is_cased): Define through a bitmap lookup.
17979         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
17980         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
17981         (uc_is_case_ignorable): Define through a bitmap lookup.
17982         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
17983         lib/unictype/bitmap.h.
17984         (Depends-on): Add inline. Clean up.
17985         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
17986         lib/unictype/bitmap.h.
17987         (Depends-on): Add inline. Clean up.
17988         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
17989         recognition.
17990         * tests/unicase/test-u16-tolower.c (main): Likewise.
17991         * tests/unicase/test-u32-tolower.c (main): Likewise.
17992
17993 2009-06-30  Bruno Haible  <bruno@clisp.org>
17994
17995         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
17996         * lib/unicase/u16-casemap.c: Likewise.
17997         * lib/unicase/u32-casemap.c: Likewise.
17998
17999 2009-06-29  Bruno Haible  <bruno@clisp.org>
18000
18001         Define u32_casefold as a wrapper around u32_ct_casefold.
18002         * lib/unicase/u32-casefold.c: Update.
18003         * modules/unicase/u32-casefold (Depends-on): Add
18004         unicase/u32-ct-casefold, unicase/empty-prefix-context,
18005         unicase/empty-suffix-context. Clean up.
18006
18007         Define u16_casefold as a wrapper around u16_ct_casefold.
18008         * lib/unicase/u16-casefold.c: Update.
18009         * modules/unicase/u16-casefold (Depends-on): Add
18010         unicase/u16-ct-casefold, unicase/empty-prefix-context,
18011         unicase/empty-suffix-context. Clean up.
18012
18013         Define u8_casefold as a wrapper around u8_ct_casefold.
18014         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
18015         * lib/unicase/u8-casefold.c: Update.
18016         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
18017         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
18018
18019         Define u32_totitle as a wrapper around u32_ct_totitle.
18020         * lib/unicase/u32-totitle.c: Update.
18021         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
18022         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
18023
18024         Define u16_totitle as a wrapper around u16_ct_totitle.
18025         * lib/unicase/u16-totitle.c: Update.
18026         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
18027         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
18028
18029         Define u8_totitle as a wrapper around u8_ct_totitle.
18030         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
18031         functions.
18032         (FUNC): Delegate to U_CT_TOTITLE.
18033         * lib/unicase/u8-totitle.c: Update.
18034         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
18035         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
18036
18037         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
18038         invocation.
18039         * modules/unicase/u32-tolower (Depends-on): Add
18040         unicase/empty-prefix-context, unicase/empty-suffix-context.
18041
18042         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
18043         invocation.
18044         * modules/unicase/u16-tolower (Depends-on): Add
18045         unicase/empty-prefix-context, unicase/empty-suffix-context.
18046
18047         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
18048         * modules/unicase/u8-tolower (Depends-on): Add
18049         unicase/empty-prefix-context, unicase/empty-suffix-context.
18050
18051         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
18052         invocation.
18053         * modules/unicase/u32-toupper (Depends-on): Add
18054         unicase/empty-prefix-context, unicase/empty-suffix-context.
18055
18056         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
18057         invocation.
18058         * modules/unicase/u16-toupper (Depends-on): Add
18059         unicase/empty-prefix-context, unicase/empty-suffix-context.
18060
18061         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
18062         * modules/unicase/u8-toupper (Depends-on): Add
18063         unicase/empty-prefix-context, unicase/empty-suffix-context.
18064
18065         New module 'unicase/u32-ct-casefold'.
18066         * lib/unicase/u32-ct-casefold.c: New file.
18067         * modules/unicase/u32-ct-casefold: New file.
18068
18069         New module 'unicase/u16-ct-casefold'.
18070         * lib/unicase/u16-ct-casefold.c: New file.
18071         * modules/unicase/u16-ct-casefold: New file.
18072
18073         New module 'unicase/u8-ct-casefold'.
18074         * lib/unicase/u8-ct-casefold.c: New file.
18075         * lib/unicase/u-ct-casefold.h: New file, derived from
18076         lib/unicase/u-casefold.h.
18077         * modules/unicase/u8-ct-casefold: New file.
18078
18079         New module 'unicase/u32-ct-totitle'.
18080         * lib/unicase/u32-ct-totitle.c: New file.
18081         * modules/unicase/u32-ct-totitle: New file.
18082
18083         New module 'unicase/u16-ct-totitle'.
18084         * lib/unicase/u16-ct-totitle.c: New file.
18085         * modules/unicase/u16-ct-totitle: New file.
18086
18087         New module 'unicase/u8-ct-totitle'.
18088         * lib/unicase/u8-ct-totitle.c: New file.
18089         * lib/unicase/u-ct-totitle.h: New file, derived from
18090         lib/unicase/u-totitle.h.
18091         * modules/unicase/u8-ct-totitle: New file.
18092
18093         New module 'unicase/u32-ct-tolower'.
18094         * lib/unicase/u32-ct-tolower.c: New file.
18095         * modules/unicase/u32-ct-tolower: New file.
18096
18097         New module 'unicase/u16-ct-tolower'.
18098         * lib/unicase/u16-ct-tolower.c: New file.
18099         * modules/unicase/u16-ct-tolower: New file.
18100
18101         New module 'unicase/u8-ct-tolower'.
18102         * lib/unicase/u8-ct-tolower.c: New file.
18103         * modules/unicase/u8-ct-tolower: New file.
18104
18105         New module 'unicase/u32-ct-toupper'.
18106         * lib/unicase/u32-ct-toupper.c: New file.
18107         * modules/unicase/u32-ct-toupper: New file.
18108
18109         New module 'unicase/u16-ct-toupper'.
18110         * lib/unicase/u16-ct-toupper.c: New file.
18111         * modules/unicase/u16-ct-toupper: New file.
18112
18113         New module 'unicase/u8-ct-toupper'.
18114         * lib/unicase/u8-ct-toupper.c: New file.
18115         * modules/unicase/u8-ct-toupper: New file.
18116
18117         Add context arguments to u*_casemap functions.
18118         * lib/unicase/unicasemap.h: Include unicase.h.
18119         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
18120         suffix_context arguments.
18121         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
18122         functions.
18123         (FUNC): Add prefix_context and suffix_context arguments. Use
18124         uc_is_cased and uc_is_case_ignorable.
18125         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
18126         * lib/unicase/u16-casemap.c: Likewise.
18127         * lib/unicase/u32-casemap.c: Likewise.
18128         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
18129         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
18130         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
18131         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
18132         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
18133         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
18134
18135         New module 'unicase/u32-suffix-context'.
18136         * lib/unicase/u32-suffix-context.c: New file.
18137         * modules/unicase/u32-suffix-context: New file.
18138
18139         New module 'unicase/u16-suffix-context'.
18140         * lib/unicase/u16-suffix-context.c: New file.
18141         * modules/unicase/u16-suffix-context: New file.
18142
18143         New module 'unicase/u8-suffix-context'.
18144         * lib/unicase/u8-suffix-context.c: New file.
18145         * lib/unicase/u-suffix-context.h: New file.
18146         * modules/unicase/u8-suffix-context: New file.
18147
18148         New module 'unicase/empty-suffix-context'.
18149         * lib/unicase/empty-suffix-context.c: New file.
18150         * modules/unicase/empty-suffix-context: New file.
18151
18152         New module 'unicase/u32-prefix-context'.
18153         * lib/unicase/u32-prefix-context.c: New file.
18154         * modules/unicase/u32-prefix-context: New file.
18155
18156         New module 'unicase/u16-prefix-context'.
18157         * lib/unicase/u16-prefix-context.c: New file.
18158         * modules/unicase/u16-prefix-context: New file.
18159
18160         New module 'unicase/u8-prefix-context'.
18161         * lib/unicase/u8-prefix-context.c: New file.
18162         * lib/unicase/u-prefix-context.h: New file.
18163         * lib/unicase/context.h: New file.
18164         * modules/unicase/u8-prefix-context: New file.
18165
18166         New module 'unicase/empty-prefix-context'.
18167         * lib/unicase/empty-prefix-context.c: New file.
18168         * modules/unicase/empty-prefix-context: New file.
18169
18170         New module 'unicase/ignorable'.
18171         * lib/unicase/ignorable.c: New file.
18172         * modules/unicase/ignorable: New file.
18173
18174         New module 'unicase/cased'.
18175         * lib/unicase/caseprop.h: New file.
18176         * lib/unicase/cased.c: New file.
18177         * modules/unicase/cased: New file.
18178
18179         New functions for case mapping of substrings.
18180         * lib/unicase.h (casing_prefix_context_t): New type.
18181         (unicase_empty_prefix_context): New variable.
18182         (u8_casing_prefix_context, u16_casing_prefix_context,
18183         u32_casing_prefix_context, u8_casing_prefixes_context,
18184         u16_casing_prefixes_context, u32_casing_prefixes_context): New
18185         declarations.
18186         (casing_suffix_context_t): New type.
18187         (unicase_empty_suffix_context): New variable.
18188         (u8_casing_suffix_context, u16_casing_suffix_context,
18189         u32_casing_suffix_context, u8_casing_suffixes_context,
18190         u16_casing_suffixes_context, u32_casing_suffixes_context,
18191         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
18192         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
18193         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
18194         declarations.
18195
18196 2009-06-28  Jim Meyering  <meyering@redhat.com>
18197
18198         boostrap: indent only with spaces
18199         * build-aux/bootstrap: Indent only with spaces, never TABs.
18200
18201         bootstrap: split long lines
18202         * build-aux/bootstrap: Keep line length < 80.
18203
18204         bootstrap: sync from coreutils
18205         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
18206         just as autoreconf does.  Verify a list of prerequisite
18207         package-name,version-number pairs if defined in bootstrap.conf.
18208         Refer to README-prereq, if prerequisites are not satisfied.
18209
18210 2009-06-27  Eric Blake  <ebb9@byu.net>
18211
18212         tests: add test for bogus NULL definition
18213         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
18214         * tests/test-stdlib.c: Likewise.
18215         * tests/test-string.c: Likewise.
18216         * tests/test-locale.c: Likewise.
18217         * tests/test-unistd.c: Likewise.
18218         * modules/stdio-tests (Depends-on): Add verify.
18219         * modules/stdlib-tests (Depends-on): Likewise.
18220         * modules/string-tests (Depends-on): Likewise.
18221         * modules/locale-tests (Depends-on): Likewise.
18222         * modules/unistd-tests (Depends-on): Likewise.
18223
18224 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
18225
18226         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
18227         self-explaining comment.
18228         * m4/selinux-selinux-h: Update serial.
18229         (gl_LIBSELINUX): New macro, adding a warning for missing development
18230         packages to code extracted from...
18231         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
18232         Add warning for missing development packages here, too.
18233
18234 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
18235
18236         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
18237
18238 2009-06-25  Eric Blake  <ebb9@byu.net>
18239
18240         version-etc: fix regression
18241         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
18242         gcc.
18243         (version_etc): Use it, to catch bugs with trailing NULL.
18244         * lib/version-etc.c (version_etc_arn): Delete unused argument.
18245         (version_etc_va): Fix logic bug.
18246         * modules/version-etc-tests: Add test.
18247         * tests/test-version-etc.c: New file.
18248         * tests/test-version-etc.sh: Likewise.
18249
18250 2009-06-25  Sam Steingold  <sds@gnu.org>
18251
18252         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
18253         mbtowc declaration.
18254
18255 2009-06-25  Eric Blake  <ebb9@byu.net>
18256
18257         fpurge: migrate into <stdio.h>
18258         * lib/fpurge.h: Delete...
18259         * lib/stdio.in.h (fpurge): ...and declare here, instead.
18260         * lib/fpurge.c (fpurge): Change declaring header.
18261         * modules/fpurge (Files): Drop deleted file.
18262         (Depends-on): Add stdio.
18263         (configure.ac): Set witness.
18264         * modules/stdio (Makefile.am): Support fpurge macros.
18265         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
18266         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
18267         * lib/fflush.c: Update client.
18268         * tests/test-fpurge.c: Likewise.
18269         * NEWS: Mention the change.
18270
18271 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
18272
18273         * lib/argp-version-etc.c (program_authors): Add const
18274         qualifier.
18275         * lib/version-etc.c: Fix typos in the comments.
18276         * modules/argp-version-etc: Depends on version-etc.
18277
18278 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
18279
18280         argp-version-etc: new module.
18281
18282         * lib/argp-version-etc.c: New file.
18283         * lib/argp-version-etc.h: New file.
18284         * modules/argp-version-etc: New file.
18285         * modules/argp-version-etc-tests: New file.
18286         * tests/test-argp-version-etc.c: New test.
18287         * tests/test-argp-version-etc-1.sh: New test.
18288
18289 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
18290
18291         Provide additional interfaces and documentation for version-etc
18292         module.
18293
18294         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
18295         interfaces.
18296         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
18297         prototypes.
18298
18299 2009-06-24  Bruno Haible  <bruno@clisp.org>
18300
18301         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
18302         HAVE_LIB${NAME} macro.
18303         Reported by Sam Steingold <sds@gnu.org>.
18304
18305 2009-06-23  Simon Josefsson  <simon@josefsson.org>
18306
18307         * modules/hash-tests (test_hash_LDADD): Link to libintl when
18308         needed.
18309
18310 2009-06-21  Bruno Haible  <bruno@clisp.org>
18311
18312         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
18313         work.
18314         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
18315         together with LIB${NAME}, LTLIB${NAME}.
18316         Reported by Sam Steingold <sds@gnu.org>.
18317
18318 2009-06-20  Jim Meyering  <meyering@redhat.com>
18319
18320         tests: make sc_require_test_exit_idiom more generic
18321         * top/maint.mk (Exit_witness_file): New overridable variable.
18322         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
18323         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
18324
18325 2009-06-19  Jim Meyering  <meyering@redhat.com>
18326
18327         hash: reverse order of src/dst parameters in an internal interface
18328         * lib/hash.c (transfer_entries): Reverse order of parameters to
18329         put DST before SRC.  Adjust callers.
18330
18331         tests: test-hash: avoid wholesale duplication
18332         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
18333         Instead, use a loop and add a single conditional.
18334
18335         tests: test-hash: allow seed selection via a command line argument
18336         * tests/test-hash.c (get_seed): New function.
18337         (main): Use it.
18338
18339 2009-06-19  Eric Blake  <ebb9@byu.net>
18340
18341         hash: avoid memory leak on allocation failure
18342         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
18343         failure.  Factor repeated algorithm...
18344         (transfer_entries): ...into new helper routine.
18345         (hash_delete): React to hash_rehash return value.
18346
18347         hash: reduce memory pressure in hash_rehash no-op case
18348         * lib/hash.c (next_prime): Avoid overflow.
18349         (hash_initialize): Factor bucket size computation...
18350         (compute_bucket_size): ...into new helper function.
18351         (hash_rehash): Use new function and open coding to reduce memory
18352         pressure, and avoid a memory leak in USE_OBSTACK code.
18353         Reported by Jim Meyering.
18354
18355 2009-06-18  Eric Blake  <ebb9@byu.net>
18356
18357         hash: make rotation more obvious
18358         * modules/hash (Depends-on): Add bitrotate and stdint.
18359         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
18360         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
18361         (SIZE_MAX): Rely on headers for definition.
18362         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
18363         (raw_hasher): Use rotr_sz.
18364         Suggested by Jim Meyering.
18365
18366         hash: fix memory leak in last patch
18367         * lib/hash.c (hash_rehash): Avoid memory leak.
18368
18369         hash: avoid no-op rehashing
18370         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
18371
18372         hash: provide default callback functions
18373         * lib/hash.c (raw_hasher, raw_comparator): New functions.
18374         (hash_initialize): Use them as defaults.
18375         * tests/test-hash.c (main): Test this.
18376
18377         hash: minor optimization
18378         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
18379         when possible.
18380         (hash_initialize): Document this promise.
18381         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
18382         * tests/test-hash.c (hash_compare_strings): Test this.
18383
18384 2009-06-18  Bruno Haible  <bruno@clisp.org>
18385
18386         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
18387         going to be replaced anyway.
18388
18389 2009-06-18  Bruno Haible  <bruno@clisp.org>
18390
18391         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
18392         in one place.
18393         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
18394         be replaced anyway.
18395
18396 2009-06-18  Eric Blake  <ebb9@byu.net>
18397
18398         hash: check for resize before insertion
18399         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
18400         threshold before insertion, so that a pathological hash_rehash
18401         that fills every bucket can still trigger another rehash.
18402
18403 2009-06-18  Jim Meyering  <meyering@redhat.com>
18404
18405         hash-tests: add a loop around the small tests
18406         * tests/test-hash.c (main): Repeat small tests with selected
18407         small initial table sizes.
18408
18409 2009-06-17  Eric Blake  <ebb9@byu.net>
18410
18411         hash: minor cleanups
18412         * lib/hash.h (hash_entry): Make opaque, by moving...
18413         * lib/hash.c (hash_entry): ...here.
18414         (hash_insert): Clarify restrictions on what can be inserted.
18415         (hash_get_next): Clarify when it is safe to remove an element
18416         during traversal.
18417         (check_tuning): Skip verification when tuning is known safe.
18418         (hash_initialize): Clarify restrictions on tuning.
18419
18420 2009-06-17  Jim Meyering  <jim@meyering.net>
18421         and Eric Blake  <ebb9@byu.net>
18422
18423         hash-tests: new module
18424         * modules/hash-tests: New file.
18425         * tests/test-hash.c: New file.
18426
18427 2009-06-17  Eric Blake  <ebb9@byu.net>
18428
18429         strstr-simple: document new module
18430         * MODULES.html.sh: Document new module.
18431
18432         strstr, strcasestr: replace on platforms with broken memchr
18433         * modules/strstr: Split into...
18434         * modules/strstr-simple: ...new module that does not care about
18435         performance, but does care about glibc bug.
18436         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
18437         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
18438         if platform memchr is broken, per Debian bug 521737.
18439         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
18440         memchr.
18441         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
18442         * doc/posix-functions/strstr.texi (strstr): Document the fix.
18443         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
18444         * modules/mountlist (Depends-on): Add strstr-simple.
18445         * modules/gen-uni-tables (Depends-on): Likewise.
18446         * modules/argz (Depends-on): Add strstr.
18447
18448 2009-06-17  Bruno Haible  <bruno@clisp.org>
18449
18450         * modules/posix_spawn-internal (Depends-on): Add errno.
18451
18452 2009-06-17  Bruno Haible  <bruno@clisp.org>
18453
18454         Define missing ESTALE on Interix 3.5.
18455         * lib/errno.in.h (ESTALE): Assign a value if missing.
18456         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
18457         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
18458         missing.
18459         * doc/posix-headers/errno.texi: Mention the Interix bug.
18460         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
18461
18462 2009-06-15  Eric Blake  <ebb9@byu.net>
18463
18464         memchr, memchr2: add valgrind exception
18465         * lib/memchr.valgrind: New file.
18466         * lib/memchr2.valgrind: New file.
18467         * modules/memchr (Files): Distribute valgrind file.
18468         * modules/memchr2 (Files): Likewise.
18469
18470         docs: memchr is no longer obsolete
18471         * MODULES.html.sh: Move memchr from obsolete to string.h section.
18472         * lib/string.in.h (memchr): Simplify logic.
18473
18474 2009-06-14  Jim Meyering  <meyering@redhat.com>
18475
18476         link-follow: fix the "checking..." message to not mention trailing slash
18477         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
18478         never considered trailing slashes.
18479
18480 2009-06-14  Bruno Haible  <bruno@clisp.org>
18481
18482         * m4/memchr.m4: Mention also the bug on IA-64.
18483         * doc/posix-functions/memchr.texi: Likewise.
18484
18485 2009-06-12  Eric Blake  <ebb9@byu.net>
18486
18487         memchr: detect broken x86_64 and alpha implementations
18488         * modules/memchr-tests (Depends-on): Move mmap detection...
18489         * modules/memchr (Depends-on): ...here.
18490         (configure.ac): Set indicator.
18491         * lib/string.in.h (memchr): Declare replacement.
18492         * modules/string (Makefile.am): Trigger replacement.
18493         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
18494         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
18495         bugs.
18496         * doc/posix-functions/memchr.texi (memchr): Document the bug.
18497         * modules/getpagesize (License): Relax license.
18498
18499 2009-06-11  Bruno Haible  <bruno@clisp.org>
18500
18501         * lib/idpriv.h: Add more references.
18502
18503 2009-06-08  Bruno Haible  <bruno@clisp.org>
18504
18505         Tests for module 'idpriv-droptemp'.
18506         * modules/idpriv-droptemp-tests: New file.
18507         * tests/test-idpriv-droptemp.sh: New file.
18508         * tests/test-idpriv-droptemp.su.sh: New file.
18509         * tests/test-idpriv-droptemp.c: New file.
18510
18511         New module 'idpriv-droptemp'.
18512         * lib/idpriv-droptemp.c: New file.
18513         * modules/idpriv-droptemp: New file.
18514
18515 2009-06-08  Bruno Haible  <bruno@clisp.org>
18516
18517         Tests for module 'idpriv-drop'.
18518         * modules/idpriv-drop-tests: New file.
18519         * tests/test-idpriv-drop.sh: New file.
18520         * tests/test-idpriv-drop.su.sh: New file.
18521         * tests/test-idpriv-drop.c: New file.
18522
18523         New module 'idpriv-drop'.
18524         * lib/idpriv.h: New file.
18525         * lib-idpriv-drop.c: New file.
18526         * m4/idpriv.m4: New file.
18527         * modules/idpriv-drop: New file.
18528
18529 2009-06-08  Bruno Haible  <bruno@clisp.org>
18530
18531         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
18532         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18533         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18534         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18535         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18536         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18537         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18538
18539 2009-06-08  Eric Blake  <ebb9@byu.net>
18540
18541         test-strstr: use memory fence, when possible
18542         * tests/test-strstr.c (main): Use memory fence, in order to be
18543         more likely to trigger Debian bug 521737.
18544         * modules/strstr-tests (Files): Pull in additional files.
18545
18546         memchr: no longer obsolete, for wider field testing
18547         * modules/memchr (Status, Notice): Delete, this module is no
18548         longer obsolete.
18549         * modules/vasnprintf (Depends-on): Add memchr.
18550
18551 2009-06-07  Jim Meyering  <meyering@redhat.com>
18552
18553         hash: declare some functions with the warn_unused_result attribute
18554         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
18555
18556 2009-06-07  Bruno Haible  <bruno@clisp.org>
18557
18558         * tests/test-alignof.c: Don't test int64_t if it does not exist.
18559         Reported by Eric Blake.
18560
18561 2009-06-06  Eric Blake  <ebb9@byu.net>
18562
18563         test-alignof: fix typo with long double
18564         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
18565         compiler error.
18566
18567 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
18568
18569         Escape non-texinfo { and }s.
18570         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
18571         markup error.
18572
18573 2009-06-04  Jim Meyering  <meyering@redhat.com>
18574
18575         gitlog-to-changelog: don't infloop on an empty commit log
18576         * build-aux/gitlog-to-changelog: Warn about an empty log message.
18577         Reported by Boris Petersen <transacid@centerim.org>.
18578
18579 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
18580
18581         version-etc: extend for packagers
18582         Add three new configure options, intended for packagers:
18583           --with-packager="packager name"
18584           --with-packager-version="packager-specific version"
18585           --with-packager-bug-reports="packager bug reporting"
18586         An example with coreutils:
18587           $ ./configure \
18588             --with-packager=Gentoo \
18589             --with-packager-bug-report=http://bugs.gentoo.org/ \
18590             --with-packager-version="patchset 1.6"
18591           $ ./src/ls --version | head -n2
18592           ls (GNU coreutils) 7.1-dirty
18593           Packaged by Gentoo (patchset 1.6)
18594         Note that the bug reporting info via --help doesn't show up because
18595         coreutils uses its own custom emit_bug_reporting_address() implementation
18596         in src/system.h.  If it didn't, it'd look like:
18597           $ ./src/ls --help | tail -n4
18598           Report bugs to <bug-coreutils@gnu.org>.
18599           Report Gentoo bugs to <http://bugs.gentoo.org/>.
18600           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
18601           General help using GNU software: <http://www.gnu.org/gethelp/>.
18602         * lib/version-etc.c: Print new information, if provided.
18603         * m4/version-etc.m4: New file.
18604         * modules/version-etc (Files): Add m4/version-etc.m4.
18605         (configure.ac): Add gl_VERSION_ETC.
18606
18607 2009-05-31  Bruno Haible  <bruno@clisp.org>
18608
18609         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
18610         and 'int64_t'.
18611         * modules/alignof-tests (Dependencies): Add stdint.
18612         Reported by Eric Blake.
18613
18614 2009-05-31  Bruno Haible  <bruno@clisp.org>
18615
18616         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
18617         restriction due to compiler bugs.
18618         Reported by Eric Blake.
18619
18620 2009-05-31  Simon Josefsson  <simon@josefsson.org>
18621             Bruno Haible  <bruno@clisp.org>
18622
18623         Fix test-alignof failure.
18624         * lib/alignof.h (alignof_slot): New macro.
18625         (alignof_type): New macro, with the same semantics as the previous
18626         'alignof'.
18627         (alignof): Alias to alignof_slot.
18628         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
18629         check that the results are usable as constant expressions.
18630
18631 2009-05-31  Bruno Haible  <bruno@clisp.org>
18632
18633         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
18634         * tests/test-memchr.c (main): Check that memchr does not read past the
18635         first occurrence of the byte.
18636         * tests/test-strstr.c (main): Update comment.
18637         Suggested by Eric Blake.
18638
18639 2009-05-30  Bruno Haible  <bruno@clisp.org>
18640
18641         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
18642         detail how to use dumpbin.
18643         Reported by David Byron <dbyron@dbyron.com>.
18644
18645 2009-06-02  Simon Josefsson  <simon@josefsson.org>
18646
18647         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
18648
18649 2009-06-02  Simon Josefsson  <simon@josefsson.org>
18650
18651         * m4/manywarnings.m4: Add GCC 4.4 warnings.
18652
18653 2009-05-28  Bruno Haible  <bruno@clisp.org>
18654
18655         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
18656         build-aux/ files.
18657
18658 2009-05-28  Simon Josefsson  <simon@josefsson.org>
18659
18660         * gnulib-tool (func_import): Transform license on build-aux/ files too.
18661
18662 2009-05-27  Simon Josefsson  <simon@josefsson.org>
18663
18664         * gnulib-tool (sed_transform_main_lib_file)
18665         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
18666         regexps.
18667
18668 2009-05-26  Simon Josefsson  <simon@josefsson.org>
18669
18670         * tests/test-strstr.c: Add another self-test.
18671         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
18672         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
18673
18674 2009-05-23  Bruno Haible  <bruno@clisp.org>
18675
18676         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
18677         change.
18678
18679 2009-05-21  Bruno Haible  <bruno@clisp.org>
18680
18681         Simplify use of mode_t varargs.
18682         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
18683         uses 'mode_t' or 'int'.
18684         * lib/openat.c (openat): Likewise.
18685         * lib/open-safer.c (open_safer): Likewise.
18686         * m4/mode_t.m4: New file.
18687         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
18688         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
18689         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
18690         * modules/open (Files): Add m4/mode_t.m4.
18691         * modules/openat (Files): Likewise.
18692         * modules/fcntl-safer (Files): Likewise.
18693         Suggested by Eric Blake.
18694
18695 2009-05-21  Pádraig Brady  <P@draigbrady.com>
18696
18697         * doc/glibc-functions/fallocate.texi: New file.
18698         * doc/gnulib.texi: Include it.
18699
18700 2009-05-21  Eric Blake  <ebb9@byu.net>
18701             Bruno Haible  <bruno@clisp.org>
18702
18703         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
18704         invocations.
18705         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
18706
18707 2009-05-21  Eric Blake  <ebb9@byu.net>
18708             Bruno Haible  <bruno@clisp.org>
18709
18710         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
18711         include_next. Fix of 2008-11-20 commit.
18712         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
18713         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
18714         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
18715         NEXT_MATH_H.
18716         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
18717         instead of NEXT_MATH_H.
18718
18719 2009-05-21  Bruno Haible  <bruno@clisp.org>
18720
18721         Avoid redefinition warnings for SIZE_MAX.
18722         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
18723         Reported by Simon Josefsson.
18724
18725 2009-05-21  Bruno Haible  <bruno@clisp.org>
18726
18727         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
18728         AC_CACHE_VAL.
18729
18730 2009-05-20  Bruno Haible  <bruno@clisp.org>
18731
18732         Make zeroptr.h work on mingw.
18733         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
18734         mprotect.
18735         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
18736         * modules/memchr2-tests (configure.ac): Likewise.
18737         * modules/memcmp-tests (configure.ac): Likewise.
18738         * modules/memmem-tests (configure.ac): Likewise.
18739         * modules/memrchr-tests (configure.ac): Likewise.
18740         Reported by Simon Josefsson.
18741
18742 2009-05-20  Simon Josefsson  <simon@josefsson.org>
18743
18744         * tests/test-glob.c: Include string.h for strcmp prototype.
18745
18746 2009-05-20  Simon Josefsson  <simon@josefsson.org>
18747
18748         * modules/getdelim (Depends-on): Add explicit stdint, although it
18749         was implicitly already pulled in via realloc-posix.
18750         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
18751
18752 2009-05-20  Simon Josefsson  <simon@josefsson.org>
18753
18754         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
18755         G. Christensen" <tgc@jupiterrise.com>.
18756         * m4/sys_socket_h.m4: Check for sa_family_t.
18757         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
18758         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
18759         * tests/test-sys_socket.c: Check that sa_family_t works.
18760
18761 2009-05-18  Eric Blake  <ebb9@byu.net>
18762
18763         maint.mk: allow gnulib_dir in VPATH build
18764         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
18765
18766 2009-05-15  Jim Meyering  <meyering@redhat.com>
18767
18768         maint.mk: Give gnulib_dir a default definition.
18769         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
18770         Thus, most packages no longer need to specify this variable in cfg.mk
18771
18772 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
18773
18774         rename.m4: fix typos that would make non-mingw cross-configure fail
18775         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
18776
18777 2009-05-13  Eric Blake  <ebb9@byu.net>
18778
18779         mmap-anon: avoid out-of-order autoconf expansion
18780         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
18781         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
18782         * modules/memchr-tests (Depends-on): Add extensions.
18783         * modules/memchr2-tests (Depends-on): Add extensions.
18784         * modules/memcmp-tests (Depends-on): Add extensions.
18785         * modules/memmem-tests (Depends-on): Add extensions.
18786         * modules/memrchr-tests (Depends-on): Add extensions.
18787
18788 2009-05-13  Bruno Haible  <bruno@clisp.org>
18789
18790         Make some tests ISO C 99 compliant.
18791         * tests/zerosize-ptr.h: New file.
18792         * tests/test-memchr.c: Include zerosize-ptr.h.
18793         (main): Use a zero-size object pointer instead of NULL.
18794         * tests/test-memchr2.c: Include zerosize-ptr.h.
18795         (main): Use a zero-size object pointer instead of NULL.
18796         * tests/test-memcmp.c: Include zerosize-ptr.h.
18797         (main): Use a zero-size object pointer instead of NULL.
18798         * tests/test-memmem.c: Include zerosize-ptr.h.
18799         (main): Use a zero-size object pointer instead of NULL.
18800         * tests/test-memrchr.c: Include zerosize-ptr.h.
18801         (main): Use a zero-size object pointer instead of NULL.
18802         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
18803         m4/mmap-anon.m4.
18804         (Depends-on): Add getpagesize.
18805         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18806         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
18807         m4/mmap-anon.m4.
18808         (Depends-on): Add getpagesize.
18809         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18810         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
18811         m4/mmap-anon.m4.
18812         (Depends-on): Add getpagesize.
18813         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18814         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
18815         m4/mmap-anon.m4.
18816         (Depends-on): Add getpagesize.
18817         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18818         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
18819         m4/mmap-anon.m4.
18820         (Depends-on): Add getpagesize.
18821         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18822
18823 2009-05-12  Bruno Haible  <bruno@clisp.org>
18824
18825         Tests for module 'alignof'.
18826         * modules/alignof-tests: New file.
18827         * tests/test-alignof.c: New file.
18828
18829 2009-05-12  Bruno Haible  <bruno@clisp.org>
18830
18831         Fix alignof macro.
18832         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
18833         vendor compilers that are always correct.
18834
18835 2009-05-12  Bruno Haible  <bruno@clisp.org>
18836
18837         Make the MAP_ANONYMOUS detection work on HP-UX 11.
18838         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
18839         not whether its fully works.
18840
18841 2009-05-12  Bruno Haible  <bruno@clisp.org>
18842
18843         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
18844
18845 2009-05-12  Jim Meyering  <meyering@redhat.com>
18846
18847         * top/maint.mk: Adjust backslash alignment.
18848
18849 2009-05-11  Simon Josefsson  <simon@josefsson.org>
18850
18851         * top/maint.mk: Make $(srcdir)/build-aux configurable.
18852
18853 2009-05-11  Eric Blake  <ebb9@byu.net>
18854
18855         argp: avoid undefined behavior
18856         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
18857         macros.
18858
18859 2009-05-08  Simon Josefsson  <simon@josefsson.org>
18860
18861         * tests/test-vc-list-files-git.sh: Do git config of user.email and
18862         user.name to prevent git commit from complaining.
18863
18864 2009-05-10  Bruno Haible  <bruno@clisp.org>
18865
18866         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
18867         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
18868         it rewrites every file name only once.
18869         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
18870
18871 2009-05-08  Bruno Haible  <bruno@clisp.org>
18872
18873         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
18874         instead of 'max'.
18875
18876 2009-05-08  Simon Josefsson  <simon@josefsson.org>
18877
18878         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
18879         sockaddr_storage test.
18880
18881 2009-05-07  Simon Josefsson  <simon@josefsson.org>
18882
18883         * modules/sys_socket (Makefile.am): Substitute
18884         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
18885         * m4/sys_socket_h.m4: Check for sockaddr_storage.
18886         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
18887         * tests/test-sys_socket.c: Check sockaddr_storage.
18888
18889 2009-05-08  Bruno Haible  <bruno@clisp.org>
18890
18891         New module 'alignof'.
18892         * lib/alignof.h: New file.
18893         * modules/alignof: New file.
18894
18895 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
18896             Bruno Haible  <bruno@clisp.org>
18897
18898         Fix test-file-has-acl on FreeBSD.
18899         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
18900         mask is implicitly added.
18901         * tests/test-file-has-acl.c: Include <signal.h>.
18902         (main): Terminate the test after 5 seconds.
18903         * modules/acl-tests (configure.ac): Check for alarm function.
18904
18905 2009-05-04  Bruno Haible  <bruno@clisp.org>
18906
18907         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
18908         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
18909         * modules/errno (configure.ac): Drop AC_REQUIRE.
18910         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
18911         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
18912
18913 2009-05-04  Simon Josefsson  <simon@josefsson.org>
18914
18915         * modules/glob-tests: New module.
18916         * tests/test-glob.c: Add.
18917
18918 2009-05-04  Simon Josefsson  <simon@josefsson.org>
18919
18920         * modules/fnmatch-tests: New module.
18921         * tests/test-fnmatch.c: Add.
18922
18923 2009-05-04  Eric Blake  <ebb9@byu.net>
18924
18925         maint: make the new no-submodule-changes rule VPATH-safe
18926         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
18927
18928 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
18929             Bruno Haible  <bruno@clisp.org>
18930
18931         acl: Fix infinite loop on FreeBSD.
18932         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
18933         of return value from acl_get_entry.
18934         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
18935         Likewise.
18936
18937 2009-05-03  Bruno Haible  <bruno@clisp.org>
18938
18939         * lib/acl-internal.h (acl_entries): Clarify return value.
18940         * lib/acl_entries.c (acl_entries): Likewise.
18941
18942 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
18943
18944         Bug fix in acl module.
18945         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
18946
18947 2009-05-03  Bruno Haible  <bruno@clisp.org>
18948
18949         Create gperf-generated file in the source dir, not in the build dir.
18950         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
18951         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
18952         * modules/unicase/locale-language (unicase/locale-languages.h):
18953         Likewise.
18954         * modules/unicase/special-casing (unicase/special-casing-table.h):
18955         Likewise.
18956         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
18957         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
18958         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
18959         Reported by Ralf Wildenhues.
18960
18961 2009-05-03  Bruno Haible  <bruno@clisp.org>
18962
18963         * modules/fnmatch (Description, configure.ac): Taken from
18964         fnmatch-posix.
18965         * modules/fnmatch-posix: Turn into a symbolic reference to the
18966         'fnmatch' module, and deprecate.
18967         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
18968
18969 2009-05-03  Bruno Haible  <bruno@clisp.org>
18970
18971         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
18972         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
18973         Reported by Ralf Wildenhues.
18974
18975 2009-05-04  Simon Josefsson  <simon@josefsson.org>
18976
18977         * m4/fnmatch.m4: Fix fnmatch re-define.
18978
18979 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
18980
18981         priv-set: new module and tests; adapt write-any-file
18982         * lib/priv-set.c: New file.
18983         * lib/priv-set.h: New file.
18984         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
18985         * lib/write-any-file.c: Simplify by using priv-set module.
18986         * m4/priv-set.m4: New file.
18987         * modules/priv-set: New file.
18988         * modules/unlinkdir: Add dependency on priv-set module.
18989         * modules/write-any-file: Likewise.
18990
18991         Tests for module 'priv-set'.
18992         * modules/priv-set-tests: New file.
18993         * tests/test-priv-set.c: New file.
18994
18995 2009-05-03  Jim Meyering  <meyering@redhat.com>
18996             Bruno Haible  <bruno@clisp.org>
18997
18998         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
18999         use the converted UTF-8 variant of the name instead.
19000
19001 2009-05-03  Jim Meyering  <meyering@redhat.com>
19002
19003         tests: tighten some getdate tests
19004         * tests/test-getdate.c (main): Tighten tests: require equality,
19005         not just greater than.  Set TZ envvar to UTC0.
19006
19007 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
19008
19009         getdate: correctly interpret "next monday" when run on a Monday
19010         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
19011         that e.g., "next tues" (when run on a tuesday) results in a date
19012         that is one week in the future, and not today's date.
19013         I.e., add a week when the wday is the same as the current one.
19014         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
19015         and earlier by Martin Bernreuther and Jan Minář.
19016         * tests/test-getdate.c (main): Check that "next DAY" is always in
19017         the future and that "last DAY" is always in the past.
19018
19019 2009-05-02  Jim Meyering  <meyering@redhat.com>
19020
19021         build: ensure that a release build fails when a submodule is unclean
19022         * top/maint.mk (no-submodule-changes): New rule.
19023         (alpha beta major): Depend on it.
19024
19025 2009-05-02  Bruno Haible  <bruno@clisp.org>
19026
19027         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
19028         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
19029         shell variable gl_fnmatch_required to detect which variant is
19030         requested.
19031         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
19032         gl_FUNC_FNMATCH_POSIX.
19033         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
19034         exclude fnmatch-posix.
19035
19036 2009-05-02  Bruno Haible  <bruno@clisp.org>
19037
19038         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
19039         * modules/mbsrtowcs (License): Change to LGPLv2+.
19040         * modules/strnlen1 (License): Likewise.
19041         Reported by Simon Josefsson.
19042
19043 2009-05-02  Bruno Haible  <bruno@clisp.org>
19044
19045         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
19046         "cross".
19047         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
19048         gnulib-tool was called with option --source-base=lib.
19049
19050 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19051
19052         Use automake *-local hooks without commands, for extensibility.
19053         * modules/localcharset (Makefile.am): Rename install-exec-local
19054         rule to install-exec-localcharset, and make it a prerequisite of
19055         install-exec-local.  Likewise, rename the uninstall-local rule to
19056         uninstall-localcharset, and make it a prerequisite of the former.
19057
19058 2009-05-01  Bruno Haible  <bruno@clisp.org>
19059
19060         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
19061         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
19062         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
19063         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
19064         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
19065         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
19066         m4/locale-zh.m4, m4/codeset.m4.
19067
19068         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
19069         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
19070         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
19071         m4/locale-zh.m4.
19072
19073         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
19074         REPLACE_WCRTOMB if mbstate_t must be replaced.
19075         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
19076         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
19077
19078 2009-05-01  Bruno Haible  <bruno@clisp.org>
19079
19080         Avoid compiler warnings when redefining macros defined by <libintl.h>.
19081         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
19082         dngettext, dcngettext, textdomain, bindtextdomain,
19083         bind_textdomain_codeset): Undefine before redefining.
19084
19085 2009-04-30  Bruno Haible  <bruno@clisp.org>
19086
19087         Fix bug introduced on 2009-04-25.
19088         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
19089         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
19090         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
19091         is defined.
19092         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
19093         is defined.
19094         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
19095         is defined.
19096         Reported by Elbert_Pol <elbert.pol@gmail.com>.
19097
19098 2009-04-28  Bruno Haible  <bruno@clisp.org>
19099
19100         Comment tweaks.
19101         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
19102         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
19103         * lib/unicase.h (u*_casexfrm): Likewise.
19104         Reported by Paolo Bonzini.
19105
19106 2009-04-28  Bruno Haible  <bruno@clisp.org>
19107
19108         Fix a compilation error.
19109         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
19110         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
19111         Reported by Jim Meyering.
19112
19113 2009-04-27  Bruno Haible  <bruno@clisp.org>
19114
19115         New module 'libunistring'.
19116         * modules/libunistring: New file.
19117         * m4/libunistring.m4: New file.
19118         * MODULES.html.sh (Unicode string functions): Add it.
19119
19120 2009-04-27  Eric Blake  <ebb9@byu.net>
19121
19122         maint.mk: allow package-specific header to provide <config.h>
19123         * top/maint.mk (sc_require_config_h): New variable.
19124         (sc_require_config_h, sc_require_config_h_first): Use it.
19125
19126 2009-04-27  Simon Josefsson  <simon@josefsson.org>
19127
19128         * top/maint.mk (sc_avoid_if_before_free): Except
19129         useless-if-before-free script.
19130
19131 2009-04-27  Eric Blake  <ebb9@byu.net>
19132
19133         maintainer-makefile: depend on all required helper scripts
19134         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
19135         useless-if-before-free.
19136         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
19137         version, rather than assuming gnulib checkout is available.
19138         Reported by Simen Josefsson.
19139
19140 2009-04-26  Bruno Haible  <bruno@clisp.org>
19141
19142         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
19143         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
19144         "../" or "..".
19145
19146 2009-04-26  Bruno Haible  <bruno@clisp.org>
19147
19148         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
19149         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
19150         AC_LIB_HAVE_LINKFLAGS.
19151
19152 2009-04-26  Bruno Haible  <bruno@clisp.org>
19153
19154         Simplify calling convention of u*_conv_from_encoding.
19155         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
19156         u32_conv_from_encoding): Expect a resultbuf argument and return the
19157         result directly as a pointer.
19158         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
19159         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
19160         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
19161         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
19162         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
19163         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
19164         Update.
19165         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
19166         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
19167         * lib/vasnprintf.c (VASNPRINTF): Update.
19168         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
19169         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
19170         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
19171         * NEWS: Mention the change.
19172
19173 2009-04-26  Bruno Haible  <bruno@clisp.org>
19174
19175         Simplify calling convention of u*_conv_to_encoding.
19176         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
19177         u32_conv_to_encoding): Expect a resultbuf argument and return the
19178         result directly as a pointer.
19179         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
19180         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
19181         freeing scaled_offsets if mem_iconveha failed.
19182         * lib/unicase/u-casexfrm.h (FUNC): Update.
19183         * lib/uninorm/u-normxfrm.h (FUNC): Update.
19184         * lib/vasnprintf.c (VASNPRINTF): Update.
19185         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
19186         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
19187         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
19188         * NEWS: Mention the change.
19189
19190 2009-04-26  Bruno Haible  <bruno@clisp.org>
19191
19192         Avoid test failures on AIX and OSF/1.
19193         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
19194         malloc(0).
19195         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
19196         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
19197         Likewise.
19198         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
19199         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
19200         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
19201         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
19202         * doc/posix-functions/malloc.texi: Document the portability problem
19203         related to malloc(0).
19204
19205 2009-04-26  Bruno Haible  <bruno@clisp.org>
19206
19207         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
19208         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
19209         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
19210
19211 2009-04-25  Bruno Haible  <bruno@clisp.org>
19212
19213         Avoid link error when creating a namespace clean library.
19214         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
19215         as macro with arguments if already defined as an alias.
19216         * lib/signbitf.c (gl_signbitf): Don't undefine.
19217         * lib/signbitd.c (gl_signbitd): Don't undefine.
19218         * lib/signbitl.c (gl_signbitl): Don't undefine.
19219
19220 2009-04-25  Jim Meyering  <meyering@redhat.com>
19221
19222         vc-list-files: fix another quoting bug
19223         * build-aux/vc-list-files: Avoid sed backslash expansion
19224         of pathological directory names.
19225
19226 2009-04-25  Eric Blake  <ebb9@byu.net>
19227
19228         vc-list-files: fix shell quoting error
19229         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
19230         timestamp.
19231
19232 2009-04-25  Jim Meyering  <meyering@redhat.com>
19233
19234         vc-list-files: restore lost functionality with subdir argument
19235         * build-aux/vc-list-files: When given a non-"." sub-directory
19236         argument, substitute the $dir/ prefix back onto each resulting name.
19237         Otherwise, coreutils' root_tests check would fail.
19238
19239 2009-04-24  Eric Blake  <ebb9@byu.net>
19240
19241         vc-list-files: ignore git symlinks
19242         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
19243         than ls-files, to ignore git symlinks.
19244
19245         maint.mk: import improvements from m4
19246         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
19247         (move_if_change): Delete unused macro.
19248         (news-date-check, vc-diff-check): Support VPATH builds.
19249         (announcement): Likewise.  Split --bootstrap-tools list...
19250         (boostrap-tools): ...into separate list, which can be overridden
19251         in cfg.mk.
19252         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
19253         requiring dependency on useless-if-before-free module.
19254         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
19255         Support VPATH builds.
19256
19257 2009-04-24  Jim Meyering  <meyering@redhat.com>
19258
19259         maint.mk: remove coreutils-specific rules and variables
19260         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
19261         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
19262         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
19263
19264         maint.mk: remove obsolete rule
19265         * top/maint.mk (rel-check): Remove rule.
19266         (WGET, WGETFLAGS): Remove now-unused variables.
19267
19268 2009-04-24  Simon Josefsson  <simon@josefsson.org>
19269
19270         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
19271         consistency.
19272
19273         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
19274         '$(PATH_SEPARATOR)' instead of ':'.
19275
19276 2009-04-24  Simon Josefsson  <simon@josefsson.org>
19277
19278         * lib/getopt1.c (main): Use 'const' for static array.
19279
19280 2009-04-24  Simon Josefsson  <simon@josefsson.org>
19281
19282         * top/maint.mk: Sync with coreutils.
19283         * NEWS: Explain incompatibilities.
19284
19285 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19286             Bruno Haible  <bruno@clisp.org>
19287
19288         Fix cross-compilation results.
19289         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
19290         statement, as third argument of AC_TRY_RUN.
19291         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
19292         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
19293         Likewise.
19294         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19295         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
19296         Likewise.
19297         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
19298         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
19299         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
19300
19301 2009-04-20  Bruno Haible  <bruno@clisp.org>
19302
19303         Avoid test failure on mingw.
19304         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
19305
19306 2009-04-20  Bruno Haible  <bruno@clisp.org>
19307
19308         Avoid compilation error on mingw.
19309         * modules/localename-tests (Depends-on): Add locale.
19310
19311 2009-04-19  Bruno Haible  <bruno@clisp.org>
19312
19313         Support for building a shared library on Windows platforms.
19314         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
19315         (main): Test the presence of UNINORM_NFC here.
19316         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
19317         (main): Test the presence of UNINORM_NFD here.
19318         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
19319         (main): Test the presence of UNINORM_NFKC here.
19320         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
19321         (main): Test the presence of UNINORM_NFKD here.
19322
19323 2009-04-19  Bruno Haible  <bruno@clisp.org>
19324
19325         Avoid a compiler warning.
19326         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
19327         Change type of variable 'sequence'.
19328
19329 2009-04-19  Bruno Haible  <bruno@clisp.org>
19330
19331         * modules/configmake (Makefile.am): When the contents of configmake.h
19332         does not change, arrange to preserve its modification time.
19333
19334 2009-04-17  Simon Josefsson  <simon@josefsson.org>
19335
19336         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
19337         gettext domain.
19338
19339 2009-04-16  Jim Meyering  <meyering@redhat.com>
19340
19341         useless-if-before-free: improve conversion code
19342         * build-aux/useless-if-before-free: Adjust code-in-comment to match
19343         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
19344
19345 2009-04-14  Bruno Haible  <bruno@clisp.org>
19346
19347         * modules/fcntl (Depends-on): Add extensions.
19348         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
19349
19350 2009-04-12  Ben Pfaff  <blp@gnu.org>
19351
19352         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
19353         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
19354
19355 2009-03-20  Ben Pfaff  <blp@gnu.org>
19356
19357         Make rename replace existing destinations on Windows.
19358         * m4/rename.m4: Add test for Mingw.
19359         * lib/rename.c: Add rename replacement that uses MoveFileEx with
19360         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
19361         * doc/posix-functions/rename.texi: Document.
19362
19363 2009-04-10  Bruno Haible  <bruno@clisp.org>
19364
19365         New include file "iconveh.h".
19366         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
19367         * lib/striconveh.h: Include it.
19368         (enum iconv_ilseq_handler): Remove definition.
19369         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
19370         striconveh.h.
19371         * lib/striconveha.c: Include striconveh.h.
19372         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
19373         * modules/striconveh (Files): Add lib/iconveh.h.
19374         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
19375         lib/striconveh.h.
19376
19377 2009-04-10  Bruno Haible  <bruno@clisp.org>
19378
19379         * lib/uniconv.h: Update comment.
19380
19381 2009-04-10  Bruno Haible  <bruno@clisp.org>
19382
19383         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
19384         always.
19385         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
19386         * lib/unistr/u16-mbtouc-aux.c: Likewise.
19387         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
19388         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
19389         "unistring-notinline.h", so that the function gets defined always.
19390         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
19391         * lib/unistr/u8-uctomb.c: Likewise.
19392         * lib/unistr/u16-mbtouc.c: Likewise.
19393         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
19394         * lib/unistr/u16-uctomb.c: Likewise.
19395         * lib/unistr/u32-mbtouc.c: Likewise.
19396         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
19397         * lib/unistr/u32-uctomb.c: Likewise.
19398
19399 2009-04-10  Bruno Haible  <bruno@clisp.org>
19400
19401         Mark 'utime' obsolete.
19402         * modules/utime (Status, Notice): New sections.
19403         Suggested by Jim Meyering.
19404
19405         Fix cross-compile guess for utime test.
19406         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
19407         autoconf.
19408         * doc/posix-functions/utime.texi: Give more precisions.
19409         Reported by Jan <ipif@ymail.com>.
19410
19411 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
19412
19413         filevercmp: correct today's change
19414         * lib/filevercmp.c: Also handle coreutils' test inputs.
19415         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
19416
19417         Fix regression in 'filevercmp' module. Thanks Sven Joachim
19418         for reporting it.
19419         * lib/filevercmp.c: Special handle for "", "." and "..".
19420         * tests/test-filevercmp.c: Enlarge the set suite.
19421
19422 2009-04-07  Jim Meyering  <meyering@redhat.com>
19423
19424         useless-if-before-free: show how to remove braced useless free, too
19425         * build-aux/useless-if-before-free: still only in a comment, though.
19426
19427 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
19428
19429         maint.mk: import changes to syntax-check macros from coreutils
19430         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
19431         Use them in the relevant macros.
19432
19433 2009-04-06  Bruno Haible  <bruno@clisp.org>
19434
19435         Fix unportable use of bit-fields.
19436         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
19437         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
19438         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
19439
19440 2009-04-06  Bruno Haible  <bruno@clisp.org>
19441
19442         Avoid test failures on AIX and OSF/1.
19443         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
19444         that malloc(0) = NULL.
19445         * tests/unicase/test-u8-tolower.c (check): Likewise.
19446         * tests/unicase/test-u8-totitle.c (check): Likewise.
19447         * tests/unicase/test-u8-toupper.c (check): Likewise.
19448         * tests/unicase/test-u16-casefold.c (check): Likewise.
19449         * tests/unicase/test-u16-tolower.c (check): Likewise.
19450         * tests/unicase/test-u16-totitle.c (check): Likewise.
19451         * tests/unicase/test-u16-toupper.c (check): Likewise.
19452         * tests/unicase/test-u32-casefold.c (check): Likewise.
19453         * tests/unicase/test-u32-tolower.c (check): Likewise.
19454         * tests/unicase/test-u32-totitle.c (check): Likewise.
19455         * tests/unicase/test-u32-toupper.c (check): Likewise.
19456         * tests/uninorm/test-u8-nfc.c (check): Likewise.
19457         * tests/uninorm/test-u8-nfd.c (check): Likewise.
19458         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
19459         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
19460         * tests/uninorm/test-u16-nfc.c (check): Likewise.
19461         * tests/uninorm/test-u16-nfd.c (check): Likewise.
19462         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
19463         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
19464         * tests/uninorm/test-u32-nfc.c (check): Likewise.
19465         * tests/uninorm/test-u32-nfd.c (check): Likewise.
19466         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
19467         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
19468
19469 2009-04-05  Bruno Haible  <bruno@clisp.org>
19470
19471         Work around an autoconf limitation.
19472         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
19473         comment line if it would be longer than 3 KB.
19474
19475 2009-04-05  Bruno Haible  <bruno@clisp.org>
19476
19477         Avoid test failure with libiconv-1.13.
19478         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
19479         of the expected test results.
19480
19481 2009-04-05  Bruno Haible  <bruno@clisp.org>
19482
19483         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
19484         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
19485         that it should be installed.
19486
19487 2009-04-05  Bruno Haible  <bruno@clisp.org>
19488
19489         * gnulib-tool: New option --copy-file.
19490         (func_usage): Document it.
19491         (func_dest_tmpfilename): Moved out of func_import.
19492         (func_add_file, func_update_file): New functions, extracted from
19493         func_import.
19494         (func_import): Update.
19495
19496 2009-04-05  Karl Berry  <karl@gnu.org>
19497
19498         * README: prominently mention gnulib-tool.
19499         Rearrange sections so getting the code is near the top.
19500
19501 2009-04-05  Bruno Haible  <bruno@clisp.org>
19502
19503         * lib/unicase.h: Mention u*_cmp2.
19504         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
19505         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
19506         * lib/unicase/ulc-casecmp.c: Likewise.
19507         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
19508         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
19509         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
19510         unistr/u8-cmp.
19511         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
19512         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
19513         unistr/u16-cmp.
19514         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
19515         unistr/u32-cmp.
19516
19517         * lib/uninorm.h: Mention u*_cmp2.
19518         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
19519         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
19520         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
19521         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
19522         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
19523         unistr/u8-cmp.
19524         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
19525         unistr/u16-cmp.
19526         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
19527         unistr/u32-cmp.
19528
19529         New module 'unistr/u32-cmp2'.
19530         * lib/unistr/u32-cmp2.c: New file.
19531         * modules/unistr/u32-cmp2: New file.
19532
19533         New module 'unistr/u16-cmp2'.
19534         * lib/unistr/u16-cmp2.c: New file.
19535         * modules/unistr/u16-cmp2: New file.
19536
19537         New module 'unistr/u8-cmp2'.
19538         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
19539         * lib/unistr/u8-cmp2.c: New file.
19540         * lib/unistr/u-cmp2.h: New file.
19541         * modules/unistr/u8-cmp2: New file.
19542
19543 2009-04-05  Bruno Haible  <bruno@clisp.org>
19544
19545         * lib/unictype.h (uc_property_is_valid): New macro.
19546         * tests/unictype/test-pr_byname.c (main): Use it.
19547
19548         * lib/unistr.h: Doc fixes.
19549         * lib/uniconv.h: Doc fixes.
19550         * lib/unictype.h: Doc fixes.
19551
19552 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
19553
19554         Port coreutils 7.2 to Solaris 8.
19555
19556         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
19557         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
19558         for Solaris 8.  This is a bit of a hack, as it means it's the
19559         caller's responsibility to add -lnsl if needed, but most likely it
19560         won't be needed since only getaddrinfo uses this and getaddrinfo
19561         isn't needed on Solaris 8.
19562
19563         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
19564         problem to Solaris 8 encountered with coreutils 7.2, which
19565         resulted in a message "fnmatch.c:292: warning: passing argument 4
19566         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
19567         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
19568
19569 2009-04-03  Simon Josefsson  <simon@josefsson.org>
19570
19571         * m4/ld-version-script.m4: Add FIXME comment.
19572
19573 2009-04-02  Simon Josefsson  <simon@josefsson.org>
19574
19575         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
19576         SOVERSION variable.
19577
19578 2009-04-02  Bruno Haible  <bruno@clisp.org>
19579
19580         * Makefile (info, html, dvi, pdf): Combine the rules.
19581         Suggested by Jim Meyering.
19582
19583 2009-04-01  Bruno Haible  <bruno@clisp.org>
19584
19585         * Makefile (info, html, dvi, pdf): New targets.
19586         Reported by Reuben Thomas <rrt@sc3d.org>.
19587
19588 2009-04-01  Bruno Haible  <bruno@clisp.org>
19589
19590         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
19591         can be put into PATH.
19592         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
19593
19594 2009-04-01  Bruno Haible  <bruno@clisp.org>
19595
19596         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
19597
19598 2009-04-01  Bruno Haible  <bruno@clisp.org>
19599
19600         Rename module 'visibility'.
19601         * modules/lib-symbol-visibility: Renamed from modules/visibility.
19602         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
19603         * doc/gnulib.texi: Update.
19604         * MODULES.html.sh (Misc): Update.
19605         * NEWS: Mention the change.
19606
19607 2009-04-01  Simon Josefsson  <simon@josefsson.org>
19608
19609         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
19610         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
19611         Eric Blake <ebb9@byu.net> for review.
19612         * MODULES.html.sh: Add lib-msvc-compat.
19613         * doc/gnulib.texi: Link to new section.
19614         * m4/ld-output-def.m4: New file.
19615         * doc/ld-output-def.texi: New file.
19616
19617 2009-04-01  Simon Josefsson  <simon@josefsson.org>
19618
19619         Rename ld-version-script to lib-symbol-versions.  Suggested by
19620         Bruno Haible <bruno@clisp.org>.
19621         * modules/ld-version-script: Renamed to lib-symbol-versions.
19622         * doc/ld-version-script.texi: Fix module name.
19623         * MODULES.html.sh: Add lib-symbol-versions.
19624
19625 2009-03-31  Simon Josefsson  <simon@josefsson.org>
19626
19627         * modules/u64-tests: New file.
19628         * tests/test-u64.c: New file.
19629
19630 2009-03-04  Simon Josefsson  <simon@josefsson.org>
19631
19632         * MODULES.html.sh: Mention u64.
19633         * modules/u64: New module.
19634         * modules/crypto/sha512: Depend on u64 module instead of providing
19635         u64.h.
19636
19637 2009-03-27  Eric Blake  <ebb9@byu.net>
19638
19639         test-strerror: make debugging EAI_SYSTEM easier
19640         * modules/getaddrinfo-tests (Depends-on): Add strerror.
19641         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
19642         failure was EAI_SYSTEM.
19643
19644 2009-03-25  Bruno Haible  <bruno@clisp.org>
19645
19646         Fix a problem with --enable-relocatable on Solaris 7.
19647         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
19648         since 2008-02-24.
19649
19650 2009-03-25  Eric Blake  <ebb9@byu.net>
19651
19652         test-sockets: avoid gcc warning
19653         * tests/test-sockets.c (main): Silence compiler warning.
19654
19655 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
19656
19657         New modules nproc, pthread, contributed by Glen Lenker.
19658
19659         * MODULES.html.sh: Add pthread, nproc.
19660         * lib/nproc.c: New file.
19661         * lib/nproc.h: New file.
19662         * lib/pthread.in.h: New file.
19663         * m4/pthread.m4: New file.
19664         * modules/nproc: New file.
19665         * modules/pthread: New file.
19666
19667 2009-03-24  Simon Josefsson  <simon@josefsson.org>
19668
19669         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
19670         New variable.
19671
19672 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
19673
19674         filevercmp: handle simple~ and numbered.~3~ backup suffixes
19675         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
19676         * tests/test-filevercmp.c: Add tests for backup suffixes.
19677
19678 2009-03-24  Simon Josefsson  <simon@josefsson.org>
19679
19680         * modules/stdlib (Depends-on): Add stdint, needed when defining
19681         struct random_data on, for example, HP-UX 10.20.  Reported by
19682         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19683
19684 2009-03-24  Simon Josefsson  <simon@josefsson.org>
19685
19686         * lib/readline.c (readline): Call fflush on stdout after printing
19687         prompt.
19688
19689 2009-03-20  Bruno Haible  <bruno@clisp.org>
19690
19691         Remove dependency from 'close' module to -lws2_32 on native Windows.
19692         * lib/close-hook.h: New file.
19693         * lib/close-hook.c: New file.
19694         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
19695         w32sock.h.
19696         (_gl_close_fd_maybe_socket): Remove function.
19697         (rpl_close): Invoke execute_all_close_hooks instead of
19698         _gl_close_fd_maybe_socket.
19699         * lib/sockets.c: Include close-hook.h, w32sock.h.
19700         (close_fd_maybe_socket): New function, essentially from lib/close.c.
19701         (close_sockets_hook): New variable.
19702         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
19703         (gl_sockets_cleanup): Unregister it.
19704         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
19705         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
19706         * modules/close-hook: New file.
19707         * modules/close (Files): Remove lib/w32sock.h.
19708         (Depends-on): Add close-hook.
19709         (Link): Remove section.
19710         * modules/sockets (Files): Add lib/w32sock.h.
19711         (Depends-on): Add close-hook.
19712         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
19713         invocation.
19714         * NEWS: Mention that LIB_CLOSE is gone.
19715
19716 2009-03-23  Eric Blake  <ebb9@byu.net>
19717
19718         signal-tests: test previous patch
19719         * tests/test-signal.c: New file.
19720         * modules/signal-tests: Likewise.
19721
19722         signal.h: always support 'volatile sig_atomic_t'
19723         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
19724         (gl_SIGNAL_H_DEFAULTS): Add a default.
19725         * modules/signal (Makefile.am): Substitute if needed.
19726         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
19727         users can blindly add volatile.
19728         * doc/posix-headers/signal.texi (signal.h): Document it.
19729         Reported by Matthew Woehlke.
19730
19731 2009-03-23  Jim Meyering  <meyering@redhat.com>
19732
19733         pathmax: PATH_MAX: use pathconf only when available
19734         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
19735         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
19736         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
19737         This avoids a link failure in a PSP cross-compilation environment
19738         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
19739
19740         * lib/vasnprintf.c (divide): Fix typo in comment.
19741
19742 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19743
19744         * gnulib-tool (func_filter_filelist): Fix comment.
19745
19746 2009-03-20  Bruno Haible  <bruno@clisp.org>
19747
19748         Make sockets.h self-contained.
19749         * lib/sockets.c: Include sockets.h first.
19750         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
19751
19752 2009-03-19  Eric Blake  <ebb9@byu.net>
19753
19754         doc: mention more functions added in cygwin 1.7.0
19755         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
19756         addition.
19757         * doc/posix-functions/log2f.texi: Likewise.
19758
19759 2009-03-19  Jim Meyering  <meyering@redhat.com>
19760
19761         fsusage: avoid syntax error due to statement-before-declaration
19762         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
19763         after all declarations.  Reported by Matthew Woehlke in
19764         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
19765
19766 2009-03-18  Eric Blake  <ebb9@byu.net>
19767
19768         build-aux/compile: sync from automake
19769         * build-aux/compile: New file, from automake.
19770         * config/srclist.txt: Mention build-aux/compile.
19771
19772 2009-03-17  Bruno Haible  <bruno@clisp.org>
19773
19774         * lib/git-merge-changelog.c: Fix typo in comment.
19775         Reported by Reuben Thomas <rrt@sc3d.org>.
19776
19777 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
19778
19779         * m4/regex.m4: update and improve help for
19780         --without-included-regex.
19781
19782 2009-03-17  Simon Josefsson  <simon@josefsson.org>
19783
19784         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
19785         failure on missing include files.
19786
19787 2009-03-17  Eric Blake  <ebb9@byu.net>
19788
19789         doc: mention more functions added in cygwin 1.7.0
19790         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
19791         addition.
19792         * doc/posix-functions/fwscanf.texi: Likewise.
19793         * doc/posix-functions/swprintf.texi: Likewise.
19794         * doc/posix-functions/swscanf.texi: Likewise.
19795         * doc/posix-functions/vfwprintf.texi: Likewise.
19796         * doc/posix-functions/vfwscanf.texi: Likewise.
19797         * doc/posix-functions/vswprintf.texi: Likewise.
19798         * doc/posix-functions/vswscanf.texi: Likewise.
19799         * doc/posix-functions/vwprintf.texi: Likewise.
19800         * doc/posix-functions/vwscanf.texi: Likewise.
19801         * doc/posix-functions/wcscasecmp.texi: Likewise.
19802         * doc/posix-functions/wcsdup.texi: Likewise.
19803         * doc/posix-functions/wcsftime.texi: Likewise.
19804         * doc/posix-functions/wcsncasecmp.texi: Likewise.
19805         * doc/posix-functions/wprintf.texi: Likewise.
19806         * doc/posix-functions/wscanf.texi: Likewise.
19807         * doc/glibc-functions/gethostbyname2.texi: Likewise.
19808
19809 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19810
19811         maint.mk: really add $(AM_MAKEFLAGS)
19812         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
19813         was inadvertently omitted in the last commit.
19814         Spotted by Bruno Haible.
19815
19816         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
19817         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
19818         $(AM_MAKEFLAGS)' rather than plain `make'.
19819
19820         gnulib-tool: execute $MAKE not make
19821         * gnulib-tool: Default $MAKE to 'make'.
19822         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
19823         than make.  Initialize $MAKE in the do-autobuild script.
19824
19825         gnulib-tool: use $MAKE not make in generated files
19826         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
19827         make, in generated files.  Initialize $MAKE in the do-autobuild
19828         script.
19829
19830         * top/GNUmakefile (_have-git-version-gen): Fix typo.
19831
19832         GNUmakefile: disable parallelism only for multiple, recursive targets
19833         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
19834         additions in the Makefile.
19835         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
19836         by Automake.
19837         (.NOTPARALLEL): Only disable parallel builds if multiple targets
19838         are listed on the command line and at least one of them is
19839         listed in $(ALL_RECURSIVE_TARGETS).
19840
19841 2009-03-14  Bruno Haible  <bruno@clisp.org>
19842
19843         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
19844         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
19845         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
19846         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
19847         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
19848         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
19849         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
19850         unistr/u8-uctomb.
19851         * modules/unistr/u8-strchr (Depends-on): Likewise.
19852         * modules/unistr/u8-strrchr (Depends-on): Likewise.
19853         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
19854         unistr/u16-uctomb.
19855         * modules/unistr/u16-strchr (Depends-on): Likewise.
19856         * modules/unistr/u16-strrchr (Depends-on): Likewise.
19857
19858 2009-03-12  Bruno Haible  <bruno@clisp.org>
19859
19860         Work around select() bug on Interix 3.5.
19861         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
19862         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
19863         * m4/select.m4: New file.
19864         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
19865         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
19866         * modules/select (Files): Add m4/select.m4.
19867         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
19868         * modules/nanosleep (Depends-on): Add select.
19869         * modules/poll (Depends-on): Likewise.
19870         * doc/posix-functions/select.texi: Mention the Interix bug.
19871         Reported by Markus Duft <mduft@gentoo.org>.
19872
19873         * lib/select.c: Renamed from lib/winsock-select.c.
19874         * modules/select (Files): Add lib/select.c, remove
19875         lib/winsock-select.c.
19876         (configure.ac): Update.
19877
19878 2009-03-12  Jim Meyering  <meyering@redhat.com>
19879
19880         avoid gcc warnings about unused macro definitions
19881         * lib/readtokens.c (STREQ): Remove unused definition.
19882         * lib/xmalloc.c (SIZE_MAX): Likewise.
19883         * lib/openat-die.c (N_): Likewise.
19884         * lib/mountlist.c (SIZE_MAX): Remove definition.
19885         Instead, include <stdint.h>.
19886         * lib/readutmp.c: Likewise.
19887         * modules/readutmp (Depends-on): Add stdint.
19888         * modules/mountlist (Depends-on): Add stdint.
19889         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
19890
19891 2009-03-10  Bruno Haible  <bruno@clisp.org>
19892
19893         Tests for module 'mbmemcasecoll'.
19894         * modules/mbmemcasecoll-tests: New file.
19895         * tests/test-mbmemcasecoll1.sh: New file.
19896         * tests/test-mbmemcasecoll2.sh: New file.
19897         * tests/test-mbmemcasecoll3.sh: New file.
19898         * tests/test-mbmemcasecoll.c: New file.
19899
19900         New module 'mbmemcasecoll'.
19901         * lib/mbmemcasecoll.h: New file.
19902         * lib/mbmemcasecoll.c: New file.
19903         * modules/mbmemcasecoll: New file.
19904
19905         * tests/test-mbmemcasecmp.h: New file, extracted from
19906         tests/test-mbmemcasecmp.c.
19907         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
19908         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
19909         (main): Update.
19910         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
19911
19912 2009-03-09  Bruno Haible  <bruno@clisp.org>
19913
19914         Tests for module 'mbmemcasecmp'.
19915         * modules/mbmemcasecmp-tests: New file.
19916         * tests/test-mbmemcasecmp1.sh: New file.
19917         * tests/test-mbmemcasecmp2.sh: New file.
19918         * tests/test-mbmemcasecmp3.sh: New file.
19919         * tests/test-mbmemcasecmp.c: New file.
19920
19921         New module 'mbmemcasecmp'.
19922         * lib/mbmemcasecmp.h: New file.
19923         * lib/mbmemcasecmp.c: New file.
19924         * modules/mbmemcasecmp: New file.
19925
19926 2009-03-09  Bruno Haible  <bruno@clisp.org>
19927
19928         Tests for module 'unicase/ulc-casecoll'.
19929         * modules/unicase/ulc-casecoll-tests: New file.
19930         * tests/unicase/test-ulc-casecoll1.sh: New file.
19931         * tests/unicase/test-ulc-casecoll2.sh: New file.
19932         * tests/unicase/test-ulc-casecoll.c: New file.
19933
19934         New module 'unicase/ulc-casecoll'.
19935         * lib/unicase.h (ulc_casecoll): New declaration.
19936         * lib/unicase/ulc-casecoll.c: New file.
19937         * modules/unicase/ulc-casecoll: New file.
19938
19939         New module 'unicase/ulc-casexfrm'.
19940         * lib/unicase.h (ulc_casexfrm): New declaration.
19941         * lib/unicase/ulc-casexfrm.c: New file.
19942         * modules/unicase/ulc-casexfrm: New file.
19943
19944 2009-03-09  Bruno Haible  <bruno@clisp.org>
19945
19946         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
19947         invocations.
19948
19949         * m4/mbscasecmp.m4: Remove file.
19950         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
19951         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
19952
19953         * m4/mbscasestr.m4: Remove file.
19954         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
19955         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
19956
19957         * m4/mbschr.m4: Remove file.
19958         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
19959         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
19960
19961         * m4/mbscspn.m4: Remove file.
19962         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
19963         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
19964
19965         * m4/mbslen.m4: Remove file.
19966         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
19967         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
19968
19969         * m4/mbsncasecmp.m4: Remove file.
19970         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
19971         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
19972
19973         * m4/mbsnlen.m4: Remove file.
19974         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
19975         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
19976
19977         * m4/mbspbrk.m4: Remove file.
19978         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
19979         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
19980
19981         * m4/mbspcasecmp.m4: Remove file.
19982         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
19983         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
19984
19985         * m4/mbsrchr.m4: Remove file.
19986         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
19987         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
19988
19989         * m4/mbssep.m4: Remove file.
19990         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
19991         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
19992
19993         * m4/mbsspn.m4: Remove file.
19994         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
19995         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
19996
19997         * m4/mbsstr.m4: Remove file.
19998         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
19999         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
20000
20001         * m4/mbstok_r.m4: Remove file.
20002         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
20003         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
20004
20005         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
20006
20007         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
20008         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
20009
20010         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
20011
20012 2009-03-08  Bruno Haible  <bruno@clisp.org>
20013
20014         Tests for module 'unicase/ulc-casecmp'.
20015         * modules/unicase/ulc-casecmp-tests: New file.
20016         * tests/unicase/test-ulc-casecmp1.sh: New file.
20017         * tests/unicase/test-ulc-casecmp2.sh: New file.
20018         * tests/unicase/test-ulc-casecmp.c: New file.
20019
20020         New module 'unicase/ulc-casecmp'.
20021         * lib/unicase.h (ulc_casecmp): New declaration.
20022         * lib/unicase/ulc-casecmp.c: New file.
20023         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
20024         'const SRC_UNIT *'.
20025         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
20026         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
20027         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
20028         * modules/unicase/ulc-casecmp: New file.
20029
20030         Tests for module 'unicase/u32-is-cased'.
20031         * modules/unicase/u32-is-cased-tests: New file.
20032         * tests/unicase/test-u32-is-cased.c: New file.
20033
20034         Tests for module 'unicase/u16-is-cased'.
20035         * modules/unicase/u16-is-cased-tests: New file.
20036         * tests/unicase/test-u16-is-cased.c: New file.
20037
20038         Tests for module 'unicase/u8-is-cased'.
20039         * modules/unicase/u8-is-cased-tests: New file.
20040         * tests/unicase/test-u8-is-cased.c: New file.
20041         * tests/unicase/test-is-cased.h: New file.
20042
20043         New module 'unicase/u32-is-cased'.
20044         * lib/unicase/u32-is-cased.c: New file.
20045         * modules/unicase/u32-is-cased: New file.
20046
20047         New module 'unicase/u16-is-cased'.
20048         * lib/unicase/u16-is-cased.c: New file.
20049         * modules/unicase/u16-is-cased: New file.
20050
20051         New module 'unicase/u8-is-cased'.
20052         * lib/unicase/u8-is-cased.c: New file.
20053         * lib/unicase/u-is-cased.h: New file.
20054         * modules/unicase/u8-is-cased: New file.
20055
20056         Tests for module 'unicase/u32-is-casefolded'.
20057         * modules/unicase/u32-is-casefolded-tests: New file.
20058         * tests/unicase/test-u32-is-casefolded.c: New file.
20059
20060         Tests for module 'unicase/u16-is-casefolded'.
20061         * modules/unicase/u16-is-casefolded-tests: New file.
20062         * tests/unicase/test-u16-is-casefolded.c: New file.
20063
20064         Tests for module 'unicase/u8-is-casefolded'.
20065         * modules/unicase/u8-is-casefolded-tests: New file.
20066         * tests/unicase/test-u8-is-casefolded.c: New file.
20067         * tests/unicase/test-is-casefolded.h: New file.
20068
20069         New module 'unicase/u32-is-casefolded'.
20070         * lib/unicase/u32-is-casefolded.c: New file.
20071         * modules/unicase/u32-is-casefolded: New file.
20072
20073         New module 'unicase/u16-is-casefolded'.
20074         * lib/unicase/u16-is-casefolded.c: New file.
20075         * modules/unicase/u16-is-casefolded: New file.
20076
20077         New module 'unicase/u8-is-casefolded'.
20078         * lib/unicase/u8-is-casefolded.c: New file.
20079         * modules/unicase/u8-is-casefolded: New file.
20080
20081         Tests for module 'unicase/u32-is-titlecase'.
20082         * modules/unicase/u32-is-titlecase-tests: New file.
20083         * tests/unicase/test-u32-is-titlecase.c: New file.
20084
20085         Tests for module 'unicase/u16-is-titlecase'.
20086         * modules/unicase/u16-is-titlecase-tests: New file.
20087         * tests/unicase/test-u16-is-titlecase.c: New file.
20088
20089         Tests for module 'unicase/u8-is-titlecase'.
20090         * modules/unicase/u8-is-titlecase-tests: New file.
20091         * tests/unicase/test-u8-is-titlecase.c: New file.
20092         * tests/unicase/test-is-titlecase.h: New file.
20093
20094         New module 'unicase/u32-is-titlecase'.
20095         * lib/unicase/u32-is-titlecase.c: New file.
20096         * modules/unicase/u32-is-titlecase: New file.
20097
20098         New module 'unicase/u16-is-titlecase'.
20099         * lib/unicase/u16-is-titlecase.c: New file.
20100         * modules/unicase/u16-is-titlecase: New file.
20101
20102         New module 'unicase/u8-is-titlecase'.
20103         * lib/unicase/u8-is-titlecase.c: New file.
20104         * modules/unicase/u8-is-titlecase: New file.
20105
20106         Tests for module 'unicase/u32-is-lowercase'.
20107         * modules/unicase/u32-is-lowercase-tests: New file.
20108         * tests/unicase/test-u32-is-lowercase.c: New file.
20109
20110         Tests for module 'unicase/u16-is-lowercase'.
20111         * modules/unicase/u16-is-lowercase-tests: New file.
20112         * tests/unicase/test-u16-is-lowercase.c: New file.
20113
20114         Tests for module 'unicase/u8-is-lowercase'.
20115         * modules/unicase/u8-is-lowercase-tests: New file.
20116         * tests/unicase/test-u8-is-lowercase.c: New file.
20117         * tests/unicase/test-is-lowercase.h: New file.
20118
20119         New module 'unicase/u32-is-lowercase'.
20120         * lib/unicase/u32-is-lowercase.c: New file.
20121         * modules/unicase/u32-is-lowercase: New file.
20122
20123         New module 'unicase/u16-is-lowercase'.
20124         * lib/unicase/u16-is-lowercase.c: New file.
20125         * modules/unicase/u16-is-lowercase: New file.
20126
20127         New module 'unicase/u8-is-lowercase'.
20128         * lib/unicase/u8-is-lowercase.c: New file.
20129         * modules/unicase/u8-is-lowercase: New file.
20130
20131         Tests for module 'unicase/u32-is-uppercase'.
20132         * modules/unicase/u32-is-uppercase-tests: New file.
20133         * tests/unicase/test-u32-is-uppercase.c: New file.
20134
20135         Tests for module 'unicase/u16-is-uppercase'.
20136         * modules/unicase/u16-is-uppercase-tests: New file.
20137         * tests/unicase/test-u16-is-uppercase.c: New file.
20138
20139         Tests for module 'unicase/u8-is-uppercase'.
20140         * modules/unicase/u8-is-uppercase-tests: New file.
20141         * tests/unicase/test-u8-is-uppercase.c: New file.
20142         * tests/unicase/test-is-uppercase.h: New file.
20143
20144         New module 'unicase/u32-is-uppercase'.
20145         * lib/unicase/u32-is-uppercase.c: New file.
20146         * modules/unicase/u32-is-uppercase: New file.
20147
20148         New module 'unicase/u16-is-uppercase'.
20149         * lib/unicase/u16-is-uppercase.c: New file.
20150         * modules/unicase/u16-is-uppercase: New file.
20151
20152         New module 'unicase/u8-is-uppercase'.
20153         * lib/unicase/u8-is-uppercase.c: New file.
20154         * modules/unicase/u8-is-uppercase: New file.
20155
20156         New module 'unicase/u32-is-invariant'.
20157         * lib/unicase/u32-is-invariant.c: New file.
20158         * modules/unicase/u32-is-invariant: New file.
20159
20160         New module 'unicase/u16-is-invariant'.
20161         * lib/unicase/u16-is-invariant.c: New file.
20162         * modules/unicase/u16-is-invariant: New file.
20163
20164         New module 'unicase/u8-is-invariant'.
20165         * lib/unicase/u8-is-invariant.c: New file.
20166         * lib/unicase/invariant.h: New file.
20167         * lib/unicase/u-is-invariant.h: New file.
20168         * modules/unicase/u8-is-invariant: New file.
20169
20170         Tests for module 'unicase/u32-casecoll'.
20171         * modules/unicase/u32-casecoll-tests: New file.
20172         * tests/unicase/test-u32-casecoll.c: New file.
20173
20174         Tests for module 'unicase/u16-casecoll'.
20175         * modules/unicase/u16-casecoll-tests: New file.
20176         * tests/unicase/test-u16-casecoll.c: New file.
20177
20178         Tests for module 'unicase/u8-casecoll'.
20179         * modules/unicase/u8-casecoll-tests: New file.
20180         * tests/unicase/test-u8-casecoll.c: New file.
20181
20182         New module 'unicase/u32-casecoll'.
20183         * lib/unicase/u32-casecoll.c: New file.
20184         * modules/unicase/u32-casecoll: New file.
20185
20186         New module 'unicase/u16-casecoll'.
20187         * lib/unicase/u16-casecoll.c: New file.
20188         * modules/unicase/u16-casecoll: New file.
20189
20190         New module 'unicase/u8-casecoll'.
20191         * lib/unicase/u8-casecoll.c: New file.
20192         * lib/unicase/u-casecoll.h: New file.
20193         * modules/unicase/u8-casecoll: New file.
20194
20195         New module 'unicase/u32-casexfrm'.
20196         * lib/unicase/u32-casexfrm.c: New file.
20197         * modules/unicase/u32-casexfrm: New file.
20198
20199         New module 'unicase/u16-casexfrm'.
20200         * lib/unicase/u16-casexfrm.c: New file.
20201         * modules/unicase/u16-casexfrm: New file.
20202
20203         New module 'unicase/u8-casexfrm'.
20204         * lib/unicase/u8-casexfrm.c: New file.
20205         * lib/unicase/u-casexfrm.h: New file.
20206         * modules/unicase/u8-casexfrm: New file.
20207
20208         Tests for module 'unicase/u32-casecmp'.
20209         * modules/unicase/u32-casecmp-tests: New file.
20210         * tests/unicase/test-u32-casecmp.c: New file.
20211
20212         Tests for module 'unicase/u16-casecmp'.
20213         * modules/unicase/u16-casecmp-tests: New file.
20214         * tests/unicase/test-u16-casecmp.c: New file.
20215
20216         Tests for module 'unicase/u8-casecmp'.
20217         * modules/unicase/u8-casecmp-tests: New file.
20218         * tests/unicase/test-u8-casecmp.c: New file.
20219         * tests/unicase/test-casecmp.h: New file.
20220
20221         New module 'unicase/u32-casecmp'.
20222         * lib/unicase/u32-casecmp.c: New file.
20223         * modules/unicase/u32-casecmp: New file.
20224
20225         New module 'unicase/u16-casecmp'.
20226         * lib/unicase/u16-casecmp.c: New file.
20227         * modules/unicase/u16-casecmp: New file.
20228
20229         New module 'unicase/u8-casecmp'.
20230         * lib/unicase/u8-casecmp.c: New file.
20231         * lib/unicase/u-casecmp.h: New file.
20232         * modules/unicase/u8-casecmp: New file.
20233
20234         Tests for module 'unicase/u32-casefold'.
20235         * modules/unicase/u32-casefold-tests: New file.
20236         * tests/unicase/test-u32-casefold.c: New file.
20237
20238         Tests for module 'unicase/u16-casefold'.
20239         * modules/unicase/u16-casefold-tests: New file.
20240         * tests/unicase/test-u16-casefold.c: New file.
20241
20242         Tests for module 'unicase/u8-casefold'.
20243         * modules/unicase/u8-casefold-tests: New file.
20244         * tests/unicase/test-u8-casefold.c: New file.
20245
20246         New module 'unicase/u32-casefold'.
20247         * lib/unicase/u32-casefold.c: New file.
20248         * modules/unicase/u32-casefold: New file.
20249
20250         New module 'unicase/u16-casefold'.
20251         * lib/unicase/u16-casefold.c: New file.
20252         * modules/unicase/u16-casefold: New file.
20253
20254         New module 'unicase/u8-casefold'.
20255         * lib/unicase/u8-casefold.c: New file.
20256         * lib/unicase/u-casefold.h: New file.
20257         * modules/unicase/u8-casefold: New file.
20258
20259         New module 'unicase/tocasefold'.
20260         * lib/unicase/casefold.h: New file.
20261         * lib/unicase/tocasefold.c: New file.
20262         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
20263         * modules/unicase/tocasefold: New file.
20264
20265         Tests for module 'unicase/u32-totitle'.
20266         * modules/unicase/u32-totitle-tests: New file.
20267         * tests/unicase/test-u32-totitle.c: New file.
20268
20269         Tests for module 'unicase/u16-totitle'.
20270         * modules/unicase/u16-totitle-tests: New file.
20271         * tests/unicase/test-u16-totitle.c: New file.
20272
20273         Tests for module 'unicase/u8-totitle'.
20274         * modules/unicase/u8-totitle-tests: New file.
20275         * tests/unicase/test-u8-totitle.c: New file.
20276
20277         New module 'unicase/u32-totitle'.
20278         * lib/unicase/u32-totitle.c: New file.
20279         * modules/unicase/u32-totitle: New file.
20280
20281         New module 'unicase/u16-totitle'.
20282         * lib/unicase/u16-totitle.c: New file.
20283         * modules/unicase/u16-totitle: New file.
20284
20285         New module 'unicase/u8-totitle'.
20286         * lib/unicase/u8-totitle.c: New file.
20287         * lib/unicase/u-totitle.h: New file.
20288         * modules/unicase/u8-totitle: New file.
20289
20290         Tests for module 'unicase/u32-tolower'.
20291         * modules/unicase/u32-tolower-tests: New file.
20292         * tests/unicase/test-u32-tolower.c: New file.
20293
20294         Tests for module 'unicase/u16-tolower'.
20295         * modules/unicase/u16-tolower-tests: New file.
20296         * tests/unicase/test-u16-tolower.c: New file.
20297
20298         Tests for module 'unicase/u8-tolower'.
20299         * modules/unicase/u8-tolower-tests: New file.
20300         * tests/unicase/test-u8-tolower.c: New file.
20301
20302         New module 'unicase/u32-tolower'.
20303         * lib/unicase/u32-tolower.c: New file.
20304         * modules/unicase/u32-tolower: New file.
20305
20306         New module 'unicase/u16-tolower'.
20307         * lib/unicase/u16-tolower.c: New file.
20308         * modules/unicase/u16-tolower: New file.
20309
20310         New module 'unicase/u8-tolower'.
20311         * lib/unicase/u8-tolower.c: New file.
20312         * modules/unicase/u8-tolower: New file.
20313
20314         Tests for module 'unicase/u32-toupper'.
20315         * modules/unicase/u32-toupper-tests: New file.
20316         * tests/unicase/test-u32-toupper.c: New file.
20317
20318         Tests for module 'unicase/u16-toupper'.
20319         * modules/unicase/u16-toupper-tests: New file.
20320         * tests/unicase/test-u16-toupper.c: New file.
20321
20322         Tests for module 'unicase/u8-toupper'.
20323         * modules/unicase/u8-toupper-tests: New file.
20324         * tests/unicase/test-u8-toupper.c: New file.
20325
20326         New module 'unicase/u32-toupper'.
20327         * lib/unicase/u32-toupper.c: New file.
20328         * modules/unicase/u32-toupper: New file.
20329
20330         New module 'unicase/u16-toupper'.
20331         * lib/unicase/u16-toupper.c: New file.
20332         * modules/unicase/u16-toupper: New file.
20333
20334         New module 'unicase/u8-toupper'.
20335         * lib/unicase/u8-toupper.c: New file.
20336         * modules/unicase/u8-toupper: New file.
20337
20338         New module 'unicase/u32-casemap'.
20339         * lib/unicase/u32-casemap.c: New file.
20340         * modules/unicase/u32-casemap: New file.
20341
20342         New module 'unicase/u16-casemap'.
20343         * lib/unicase/u16-casemap.c: New file.
20344         * modules/unicase/u16-casemap: New file.
20345
20346         New module 'unicase/u8-casemap'.
20347         * lib/unicase/unicasemap.h: New file.
20348         * lib/unicase/u8-casemap.c: New file.
20349         * lib/unicase/u-casemap.h: New file.
20350         * modules/unicase/u8-casemap: New file.
20351
20352         New module 'unicase/special-casing'.
20353         * lib/unicase/special-casing.h: New file.
20354         * lib/unicase/special-casing.c: New file.
20355         * lib/unicase/special-casing-table.gperf: New file, generated by
20356         gen-uni-tables.c.
20357         * modules/unicase/special-casing: New file.
20358
20359         Tests for module 'unicase/locale-language'.
20360         * modules/unicase/locale-language-tests: New file.
20361         * tests/unicase/test-locale-language.sh: New file.
20362         * tests/unicase/test-locale-language.c: New file.
20363
20364         New module 'unicase/locale-language'.
20365         * lib/unicase/locale-language.c: New file.
20366         * lib/unicase/locale-languages.gperf: New file.
20367         * modules/unicase/locale-language: New file.
20368
20369         Generate more tables for case conversion and case folding.
20370         * lib/gen-uni-tables.c (SCC_*): New enum items.
20371         (struct special_casing_rule): New type.
20372         (casing_rules, num_casing_rules, allocated_casing_rules): New
20373         variables.
20374         (add_casing_rule, fill_casing_rules): New functions.
20375         (struct casefold_rule): New type.
20376         (casefolding_rules, num_casefolding_rules,
20377         allocated_casefolding_rules): New variables.
20378         (fill_casefolding_rules): New function.
20379         (unicode_casefold): New variable.
20380         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
20381         sort_casing_rules, output_casing_rules): New functions.
20382         (main): Accept to more arguments: SpecialCasing.txt and
20383         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
20384         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
20385         Output mapping for casefolding.
20386
20387         * lib/unicase.h: Include stdbool.h, uninorm.h.
20388         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
20389         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
20390         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
20391         arguments.
20392         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
20393         resultp arguments.
20394         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
20395         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
20396         resultp arguments.
20397         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
20398         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
20399         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
20400         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
20401         declarations.
20402         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
20403
20404 2009-03-08  Bruno Haible  <bruno@clisp.org>
20405
20406         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
20407         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
20408         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
20409         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
20410
20411 2009-03-07  Bruno Haible  <bruno@clisp.org>
20412
20413         Adjust u*_normcmp, u*_normcoll API.
20414         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
20415         u16_normcoll, u32_normcoll): Change failure conventions.
20416         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
20417         errno and return -1.
20418         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
20419
20420 2009-03-07  Bruno Haible  <bruno@clisp.org>
20421
20422         Tests for module 'uninorm/u32-normcoll'.
20423         * modules/uninorm/u32-normcoll-tests: New file.
20424         * tests/uninorm/test-u32-normcoll.c: New file.
20425
20426         Tests for module 'uninorm/u16-normcoll'.
20427         * modules/uninorm/u16-normcoll-tests: New file.
20428         * tests/uninorm/test-u16-normcoll.c: New file.
20429
20430         Tests for module 'uninorm/u8-normcoll'.
20431         * modules/uninorm/u8-normcoll-tests: New file.
20432         * tests/uninorm/test-u8-normcoll.c: New file.
20433
20434 2009-03-07  Bruno Haible  <bruno@clisp.org>
20435
20436         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
20437         tests/uninorm/test-u32-normcmp.c.
20438         * tests/uninorm/test-u32-normcmp.c: Include it.
20439         (test_nonascii): New function, extracted from main. Add some more
20440         tests.
20441         (main): Invoke test_ascii and test_nonascii.
20442         * modules/uninorm/u32-normcmp-tests (Files): Add
20443         tests/uninorm/test-u32-normcmp.h.
20444         (Depends-on): Remove uninorm/u32-normcmp.
20445
20446         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
20447         tests/uninorm/test-u16-normcmp.c.
20448         * tests/uninorm/test-u16-normcmp.c: Include it.
20449         (test_nonascii): New function, extracted from main. Add some more
20450         tests.
20451         (main): Invoke test_ascii and test_nonascii.
20452         * modules/uninorm/u16-normcmp-tests (Files): Add
20453         tests/uninorm/test-u16-normcmp.h.
20454         (Depends-on): Remove uninorm/u16-normcmp.
20455
20456         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
20457         tests/uninorm/test-u8-normcmp.c.
20458         * tests/uninorm/test-u8-normcmp.c: Include it.
20459         (test_nonascii): New function, extracted from main. Add some more
20460         tests.
20461         (main): Invoke test_ascii and test_nonascii.
20462         * modules/uninorm/u8-normcmp-tests (Files): Add
20463         tests/uninorm/test-u8-normcmp.h.
20464         (Depends-on): Remove uninorm/u8-normcmp.
20465
20466 2009-03-07  Bruno Haible  <bruno@clisp.org>
20467
20468         New module 'uninorm/u32-normcoll'.
20469         * lib/uninorm/u32-normcoll.c: New file.
20470         * modules/uninorm/u32-normcoll: New file.
20471
20472         New module 'uninorm/u16-normcoll'.
20473         * lib/uninorm/u16-normcoll.c: New file.
20474         * modules/uninorm/u16-normcoll: New file.
20475
20476         New module 'uninorm/u8-normcoll'.
20477         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
20478         declarations.
20479         * lib/uninorm/u8-normcoll.c: New file.
20480         * lib/uninorm/u-normcoll.h: New file.
20481         * modules/uninorm/u8-normcoll: New file.
20482
20483         New module 'uninorm/u32-normxfrm'.
20484         * lib/uninorm/u32-normxfrm.c: New file.
20485         * modules/uninorm/u32-normxfrm: New file.
20486
20487         New module 'uninorm/u16-normxfrm'.
20488         * lib/uninorm/u16-normxfrm.c: New file.
20489         * modules/uninorm/u16-normxfrm: New file.
20490
20491         New module 'uninorm/u8-normxfrm'.
20492         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
20493         declarations.
20494         * lib/uninorm/u8-normxfrm.c: New file.
20495         * lib/uninorm/u-normxfrm.h: New file.
20496         * modules/uninorm/u8-normxfrm: New file.
20497
20498 2009-03-07  Bruno Haible  <bruno@clisp.org>
20499
20500         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
20501         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
20502         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
20503
20504 2009-03-07  Bruno Haible  <bruno@clisp.org>
20505
20506         New module 'memxfrm'.
20507         * lib/memxfrm.h: New file.
20508         * lib/memxfrm.c: New file.
20509         * modules/memxfrm: New file.
20510
20511 2009-03-07  Bruno Haible  <bruno@clisp.org>
20512
20513         New module 'memcmp2'.
20514         * lib/memcmp2.h: New file.
20515         * lib/memcmp2.c: New file.
20516         * modules/memcmp2: New file.
20517
20518 2009-03-07  Bruno Haible  <bruno@clisp.org>
20519
20520         Tests for module 'uninorm/decomposing-form'.
20521         * modules/uninorm/decomposing-form-tests: New file.
20522         * tests/uninorm/test-decomposing-form.c: New file.
20523
20524         New module 'uninorm/decomposing-form'.
20525         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
20526         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
20527         Add 'decomposing_variant' field.
20528         * lib/uninorm/decomposing-form.c: New file.
20529         * lib/uninorm/nfc.c (uninorm_nfc): Update.
20530         * lib/uninorm/nfd.c (uninorm_nfd): Update.
20531         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
20532         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
20533         * modules/uninorm/decomposing-form: New file.
20534         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
20535         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
20536
20537 2009-03-07  Bruno Haible  <bruno@clisp.org>
20538
20539         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
20540         strings.
20541
20542 2009-03-06  Bruno Haible  <bruno@clisp.org>
20543
20544         Tests for module 'uninorm/u32-normcmp'.
20545         * tests/uninorm/test-u32-normcmp.c: New file.
20546         * modules/uninorm/u32-normcmp-tests: New file.
20547
20548         Tests for module 'uninorm/u16-normcmp'.
20549         * tests/uninorm/test-u16-normcmp.c: New file.
20550         * modules/uninorm/u16-normcmp-tests: New file.
20551
20552         Tests for module 'uninorm/u8-normcmp'.
20553         * tests/uninorm/test-u8-normcmp.c: New file.
20554         * modules/uninorm/u8-normcmp-tests: New file.
20555
20556         New module 'uninorm/u32-normcmp'.
20557         * lib/uninorm/u32-normcmp.c: New file.
20558         * modules/uninorm/u32-normcmp: New file.
20559
20560         New module 'uninorm/u16-normcmp'.
20561         * lib/uninorm/u16-normcmp.c: New file.
20562         * modules/uninorm/u16-normcmp: New file.
20563
20564         New module 'uninorm/u8-normcmp'.
20565         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
20566         declarations.
20567         * lib/uninorm/u8-normcmp.c: New file.
20568         * lib/uninorm/u-normcmp.h: New file.
20569         * modules/uninorm/u8-normcmp: New file.
20570
20571 2009-03-06  Bruno Haible  <bruno@clisp.org>
20572
20573         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
20574         Reported by Eric Blake.
20575
20576 2009-03-06  Eric Blake  <ebb9@byu.net>
20577             Bruno Haible  <bruno@clisp.org>
20578
20579         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
20580         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
20581         condition.
20582         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
20583         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
20584         condition.
20585         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
20586
20587 2009-03-06  Eric Blake  <ebb9@byu.net>
20588
20589         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
20590         to avoid compiler warnings.
20591         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
20592
20593 2009-03-05  Bruno Haible  <bruno@clisp.org>
20594
20595         * tests/test-ftell.c (main): Disable test beyond end of file on
20596         FreeMiNT.
20597         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
20598
20599 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
20600
20601         * lib/filevercmp.c: Move hidden files up in ordering.
20602         * tests/test-filevercmp.c: Add tests for hidden files.
20603
20604 2009-03-04  Bruno Haible  <bruno@clisp.org>
20605
20606         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
20607         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
20608         AM_CFLAGS.
20609         Reported by Simon Josefsson.
20610
20611 2009-03-03  Bruno Haible  <bruno@clisp.org>
20612
20613         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
20614         Reported by Simon Josefsson.
20615
20616         * doc/ld-version-script.texi: Update node reference.
20617
20618 2009-03-03  Bruno Haible  <bruno@clisp.org>
20619
20620         * modules/visibility (License): Change to 'unlimited'.
20621         Suggested by Simon Josefsson.
20622
20623 2009-03-03  Jim Meyering  <meyering@redhat.com>
20624
20625         unlinkdir: cannot_unlink_dir may modify process state
20626         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
20627         it's neither thread-safe nor appropriate for use in a library.
20628
20629 2009-03-03  Eric Blake  <ebb9@byu.net>
20630
20631         test-closein: silence test under Darwin
20632         * tests/test-closein.sh: Ignore stderr from cat, since we don't
20633         care if it dies from EPIPE or EBADF.
20634
20635 2009-03-03  Bruno Haible  <bruno@clisp.org>
20636
20637         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
20638         earlier.
20639         * doc/visibility.texi: Fix @node and @section.
20640
20641 2009-03-03  Simon Josefsson  <simon@josefsson.org>
20642
20643         * doc/gnulib.texi: Link to sections for ld version script and
20644         visibility.
20645         * doc/visibility.texi: Add @node and @section.
20646         * modules/ld-version-script: New module.
20647         * m4/ld-version-script.m4: New file.
20648         * doc/ld-version-script.texi: New file.
20649
20650 2009-03-02  David Lutterkort  <lutter@redhat.com>
20651
20652         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
20653         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20654
20655 2009-03-02  Bruno Haible  <bruno@clisp.org>
20656
20657         * doc/visibility.texi: Mention libtool's -export-symbols option.
20658
20659 2009-03-02  Jim Meyering  <meyering@redhat.com>
20660
20661         announce-gen: new option: --no-print-checksums
20662         * build-aux/announce-gen (usage): Describe it.
20663         (print_checksums): Print a newline here, not in the [*] footnote.
20664         (main): Honor it.
20665
20666 2009-03-01  Bruno Haible  <bruno@clisp.org>
20667
20668         Use socklen_t in the native Windows replacements prototypes.
20669         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
20670         instead of 'int'.
20671         * lib/getsockopt.c (rpl_getsockopt): Likewise.
20672         * lib/setsockopt.c (rpl_setsockopt): Likewise.
20673         * modules/getsockopt (Depends-on): Add socklen.
20674         * modules/setsockopt (Depends-on): Add socklen.
20675
20676 2009-03-01  Bruno Haible  <bruno@clisp.org>
20677
20678         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
20679         least 4.2.
20680
20681 2009-03-01  Eric Blake  <ebb9@byu.net>
20682             Bruno Haible  <bruno@clisp.org>
20683
20684         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
20685         error messages.
20686         * lib/wait-process.c (wait_subprocess): Omit error message about
20687         deadly signal sent to the child of termsigp != NULL.
20688
20689 2009-03-01  Eric Blake  <ebb9@byu.net>
20690
20691         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
20692
20693 2009-03-01  Bruno Haible  <bruno@clisp.org>
20694
20695         Avoid a gcc warning.
20696         * tests/test-sched.c (b): Make global.
20697         Reported by Eric Blake.
20698
20699 2009-01-19  Martin Lambers  <marlam@marlam.de>
20700
20701         Provide POSIX semantics for socket timeout options on W32.
20702         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
20703         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
20704         * modules/setsockopt: Depend on sys_time module for struct timeval.
20705         * modules/getsockopt: Depend on sys_time module for struct timeval.
20706
20707 2009-03-01  Simon Josefsson  <simon@josefsson.org>
20708
20709         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
20710         __USE_GNU, for consistency with netdb.in.h.
20711         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20712
20713 2009-03-01  Bruno Haible  <bruno@clisp.org>
20714
20715         More support for FreeMiNT.
20716         * lib/fseeko.c (rpl_fseeko): Complete last commit.
20717         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20718
20719 2009-03-01  Bruno Haible  <bruno@clisp.org>
20720
20721         More support for FreeMiNT.
20722         * lib/fpurge.c (fpurge): Correct last commit.
20723         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20724
20725 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20726
20727         Fix unportable awk script in vc-list-files.
20728         * build-aux/vc-list-files: In the replacement awk script, use
20729         substr with a second argument of 1, not zero.
20730         Report by Simon Josefsson.
20731
20732 2009-02-28  Bruno Haible  <bruno@clisp.org>
20733
20734         More support for FreeMiNT.
20735         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
20736         to FreeMiNT today.
20737         * lib/fwriting.c (fwriting): Likewise.
20738         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
20739
20740 2009-02-28  Bruno Haible  <bruno@clisp.org>
20741
20742         * tests/test-freadseek.c (main): Disable test beyond end of file on
20743         FreeMiNT.
20744         * tests/test-ftello.c (main): Likewise.
20745         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
20746
20747 2009-02-28  Bruno Haible  <bruno@clisp.org>
20748
20749         Add tentative support for FreeMiNT.
20750         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
20751         * lib/fpurge.c (fpurge): Likewise.
20752         * lib/freadable.c (freadable): Likewise.
20753         * lib/freading.c (freading): Likewise.
20754         * lib/freadptr.c (freadptr): Likewise.
20755         * lib/freadseek.c (freadptrinc): Likewise.
20756         * lib/fseeko.c (rpl_fseeko): Likewise.
20757         * lib/fseterr.c (fseterr): Likewise.
20758         * lib/fwritable.c (fwritable): Likewise.
20759         * lib/fwriting.c (fwriting): Likewise.
20760         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
20761         Hourihane.
20762         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20763
20764 2009-02-28  Bruno Haible  <bruno@clisp.org>
20765
20766         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
20767         SIGCHLD.
20768         Reported by Jim Meyering.
20769
20770 2009-02-28  Bruno Haible  <bruno@clisp.org>
20771
20772         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
20773         Mention the results of these tests on various platforms.
20774         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
20775         order.
20776         * doc/posix-functions/printf.texi: Likewise.
20777         * doc/posix-functions/snprintf.texi: Likewise.
20778         * doc/posix-functions/sprintf.texi: Likewise.
20779         * doc/posix-functions/vfprintf.texi: Likewise.
20780         * doc/posix-functions/vprintf.texi: Likewise.
20781         * doc/posix-functions/vsnprintf.texi: Likewise.
20782         * doc/posix-functions/vsprintf.texi: Likewise.
20783         * doc/glibc-functions/obstack_printf.texi: Likewise.
20784         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
20785
20786 2009-02-28  Bruno Haible  <bruno@clisp.org>
20787
20788         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
20789         Reported by Loïc Minier <lool@dooz.org>.
20790
20791 2009-02-27  Bruno Haible  <bruno@clisp.org>
20792
20793         * gnulib-tool (func_import): Make the sed expression used to create the
20794         sed script for updating the .gitignore file POSIX compliant.
20795         Reported by Eric Blake.
20796
20797 2009-02-27  Bruno Haible  <bruno@clisp.org>
20798
20799         * gnulib-tool (sed): Don't alias as "sed --posix".
20800         Reported by Eric Blake.
20801
20802 2009-02-27  Bruno Haible  <bruno@clisp.org>
20803
20804         Avoid test link errors.
20805         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
20806         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
20807         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
20808         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
20809         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20810
20811 2009-02-27  Bruno Haible  <bruno@clisp.org>
20812
20813         Avoid spurious "(cached)" in configure output.
20814         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
20815         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
20816         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
20817         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
20818         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
20819         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
20820         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
20821         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
20822         Reported by Eric Blake.
20823
20824 2009-02-27  Eric Blake  <ebb9@byu.net>
20825
20826         printf: fix regression in previous patch
20827         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
20828
20829 2009-02-27  Bruno Haible  <bruno@clisp.org>
20830
20831         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
20832         value.
20833         * lib/stdint.in.h: Likewise.
20834         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
20835
20836 2009-02-27  Eric Blake  <ebb9@byu.net>
20837
20838         doc: mention more functions added in cygwin 1.7.0
20839         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
20840         addition.
20841         * doc/posix-functions/open_wmemstream.texi: Likewise.
20842         * doc/posix-functions/wcsnlen.texi: Likewise.
20843         * doc/posix-functions/wcsnrtombs.texi: Likewise.
20844         * doc/posix-functions/wcstod.texi: Likewise.
20845         * doc/posix-functions/wcstof.texi: Likewise.
20846         * doc/posix-functions/wcstoimax.texi: Likewise.
20847         * doc/posix-functions/wcstok.texi: Likewise.
20848         * doc/posix-functions/wcstoumax.texi: Likewise.
20849
20850         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
20851         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
20852         * doc/posix-functions/fprintf.texi: Update.
20853         * doc/posix-functions/printf.texi: Update.
20854         * doc/posix-functions/snprintf.texi: Update.
20855         * doc/posix-functions/sprintf.texi: Update.
20856         * doc/posix-functions/vfprintf.texi: Update.
20857         * doc/posix-functions/vprintf.texi: Update.
20858         * doc/posix-functions/vsnprintf.texi: Update.
20859         * doc/posix-functions/vsprintf.texi: Update.
20860         * doc/glibc-functions/obstack_printf.texi: Update.
20861         * doc/glibc-functions/obstack_vprintf.texi: Update.
20862
20863 2009-02-26  Eric Blake  <ebb9@byu.net>
20864
20865         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
20866         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
20867         compilation bug by using runtime conversion.
20868         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
20869         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
20870         * modules/ceill-tests (Files): Use nan.h.
20871         * modules/floorl-tests (Files): Likewise.
20872         * modules/frexpl-tests (Files): Likewise.
20873         * modules/isnanl-tests (Files): Likewise.
20874         * modules/ldexpl-tests (Files): Likewise.
20875         * modules/roundl-tests (Files): Likewise.
20876         * modules/truncl-tests (Files): Likewise.
20877         * tests/test-ceill.c (main): Use a working NaN.
20878         * tests/test-floorl.c (main): Likewise.
20879         * tests/test-frexpl.c (main): Likewise.
20880         * tests/test-isnan.c (test_long_double): Likewise.
20881         * tests/test-isnanl.h (main): Likewise.
20882         * tests/test-ldexpl.h (main): Likewise.
20883         * tests/test-roundl.h (main): Likewise.
20884         * tests/test-truncl.h (main): Likewise.
20885         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
20886
20887 2009-02-26  Eric Blake  <ebb9@byu.net>
20888             Bruno Haible  <bruno@clisp.org>
20889
20890         Work around a *printf bug with %ls on Solaris.
20891         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
20892         precision is specified, sprintf stops converting the wide string
20893         argument when the number of bytes that have been produced by this
20894         conversion equals or exceeds the precision.
20895         * doc/posix-functions/fprintf.texi: Update.
20896         * doc/posix-functions/printf.texi: Update.
20897         * doc/posix-functions/snprintf.texi: Update.
20898         * doc/posix-functions/sprintf.texi: Update.
20899         * doc/posix-functions/vfprintf.texi: Update.
20900         * doc/posix-functions/vprintf.texi: Update.
20901         * doc/posix-functions/vsnprintf.texi: Update.
20902         * doc/posix-functions/vsprintf.texi: Update.
20903         * doc/glibc-functions/obstack_printf.texi: Update.
20904         * doc/glibc-functions/obstack_vprintf.texi: Update.
20905
20906 2009-02-26  Eric Blake  <ebb9@byu.net>
20907
20908         stdlib: favor compiler check of random.h
20909         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
20910         to avoid an ObjC random.h installed by Swarm.
20911
20912 2009-02-26  Bruno Haible  <bruno@clisp.org>
20913
20914         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
20915         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
20916         Reported by Gary V. Vaughan <gary@gnu.org>.
20917
20918 2009-02-26  Bruno Haible  <bruno@clisp.org>
20919
20920         Fix *printf behaviour regarding the %ls directive.
20921         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
20922         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
20923         NEED_PRINTF_DIRECTIVE_LS.
20924         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
20925         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
20926         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
20927         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
20928         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
20929         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
20930         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
20931         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
20932         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20933         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20934         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20935         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
20936         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20937         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20938         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20939         * doc/posix-functions/fprintf.texi: Update.
20940         * doc/posix-functions/printf.texi: Update.
20941         * doc/posix-functions/snprintf.texi: Update.
20942         * doc/posix-functions/sprintf.texi: Update.
20943         * doc/posix-functions/vfprintf.texi: Update.
20944         * doc/posix-functions/vprintf.texi: Update.
20945         * doc/posix-functions/vsnprintf.texi: Update.
20946         * doc/posix-functions/vsprintf.texi: Update.
20947         * doc/glibc-functions/obstack_printf.texi: Update.
20948         * doc/glibc-functions/obstack_vprintf.texi: Update.
20949         Reported by Eric Blake.
20950
20951 2009-02-25  Bruno Haible  <bruno@clisp.org>
20952
20953         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
20954         with known value.
20955         Reported by Gary V. Vaughan <gary@gnu.org>.
20956
20957 2009-02-25  Bruno Haible  <bruno@clisp.org>
20958
20959         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
20960         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
20961         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
20962         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
20963         Reported by Gary V. Vaughan <gary@gnu.org>.
20964
20965 2009-02-25  Bruno Haible  <bruno@clisp.org>
20966
20967         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
20968         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
20969         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
20970         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
20971         Reported by Gary V. Vaughan <gary@gnu.org>.
20972
20973 2009-02-25  Eric Blake  <ebb9@byu.net>
20974
20975         tests: skip fseek/ftell tests if ungetc is broken
20976         * m4/ungetc.m4: New file.
20977         * modules/fseek-tests: Split test, so ungetc dependency is
20978         separate from rest of test.
20979         * modules/fseeko-tests: Likewise.
20980         * modules/ftell-tests: Likewise.
20981         * modules/ftello-tests: Likewise.
20982         * tests/test-fseek.c (main): Isolate ungetc dependency.
20983         * tests/test-fseeko.c (main): Likewise.
20984         * tests/test-ftell.c (main): Likewise.
20985         * tests/test-ftello.c (main): Likewise.
20986         * tests/test-fseek2.sh: New file.
20987         * tests/test-fseeko2.sh: Likewise.
20988         * tests/test-ftell2.sh: Likewise.
20989         * tests/test-ftello2.sh: Likewise.
20990
20991 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
20992
20993         test-getaddrinfo: fix usage of skip return code 77
20994         * tests/test-gettaddrinfo.c: Return skip code 77 only
20995         for first occurance of skip (4x77 is not 77)
20996
20997 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
20998
20999         strtod: avoid C99 decl-after-statement
21000         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
21001
21002 2009-02-24  Eric Blake  <ebb9@byu.net>
21003
21004         strtod: detect HP-UX 11.31 bug
21005         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
21006         Reported by Gary V. Vaughan.
21007
21008 2009-02-23  Bruno Haible  <bruno@clisp.org>
21009
21010         Fix invalid read past end of memory block.
21011         * lib/vasnprintf.c (DCHAR_SET): Define.
21012         (local_wcslen): Define only when needed.
21013         (local_strnlen, local_wcsnlen): New functions.
21014         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
21015         directives that involve a conversion ourselves.
21016         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
21017         wcsnlen, mbrtowc, wcrtomb.
21018         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
21019         * tests/test-vasprintf-posix.c (test_function): Likewise.
21020         * tests/test-snprintf-posix.h (test_function): Likewise.
21021         * tests/test-sprintf-posix.h (test_function): Likewise.
21022         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21023
21024 2009-02-22  Bruno Haible  <bruno@clisp.org>
21025
21026         Implement new clarified decomposition of Hangul syllables.
21027         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
21028         of type LTV, return only a pairwise decomposition.
21029         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
21030         Likewise.
21031         * tests/uninorm/test-decomposition.c (main): Updated expected result.
21032         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
21033         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
21034
21035 2009-02-22  Bruno Haible  <bruno@clisp.org>
21036
21037         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
21038         zero-length results and shrink excess allocated memory.
21039         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
21040         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
21041         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
21042         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
21043         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
21044         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
21045         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
21046         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
21047         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
21048         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
21049         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
21050         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
21051
21052 2009-02-21  Bruno Haible  <bruno@clisp.org>
21053
21054         * doc/gnulib.texi: Include safe-alloc.texi earlier.
21055         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
21056         spaces after a period. Put a space between a macro name and its
21057         argument list. Trivial rewordings.
21058         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
21059         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
21060         (main): Return 0 explicitly.
21061
21062 2009-02-21  Bruno Haible  <bruno@clisp.org>
21063
21064         Tests for module 'uninorm/filter'.
21065         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
21066         * modules/uninorm/filter-tests: New file.
21067
21068         New module 'uninorm/filter'.
21069         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
21070         uninorm_filter_flush, uninorm_filter_free): New declarations.
21071         * lib/uninorm/uninorm-filter.c: New file.
21072         * modules/uninorm/filter: New file.
21073
21074 2009-02-21  Bruno Haible  <bruno@clisp.org>
21075
21076         Tests for module 'uninorm/nfkc'.
21077         * tests/uninorm/test-nfkc.c: New file.
21078         * tests/uninorm/test-u8-nfkc.c: New file.
21079         * tests/uninorm/test-u16-nfkc.c: New file.
21080         * tests/uninorm/test-u32-nfkc.c: New file.
21081         * tests/uninorm/test-u32-nfkc-big.sh: New file.
21082         * tests/uninorm/test-u32-nfkc-big.c: New file.
21083         * modules/uninorm/nfkc-tests: New file.
21084
21085         New module 'uninorm/nfkc'.
21086         * lib/uninorm/nfkc.c: New file.
21087         * modules/uninorm/nfkc: New file.
21088
21089         Tests for module 'uninorm/nfkd'.
21090         * tests/uninorm/test-nfkd.c: New file.
21091         * tests/uninorm/test-u8-nfkd.c: New file.
21092         * tests/uninorm/test-u16-nfkd.c: New file.
21093         * tests/uninorm/test-u32-nfkd.c: New file.
21094         * tests/uninorm/test-u32-nfkd-big.sh: New file.
21095         * tests/uninorm/test-u32-nfkd-big.c: New file.
21096         * modules/uninorm/nfkd-tests: New file.
21097
21098         New module 'uninorm/nfkd'.
21099         * lib/uninorm/nfkd.c: New file.
21100         * modules/uninorm/nfkd: New file.
21101
21102         Tests for module 'uninorm/nfc'.
21103         * tests/uninorm/test-nfc.c: New file.
21104         * tests/uninorm/test-u8-nfc.c: New file.
21105         * tests/uninorm/test-u16-nfc.c: New file.
21106         * tests/uninorm/test-u32-nfc.c: New file.
21107         * tests/uninorm/test-u32-nfc-big.sh: New file.
21108         * tests/uninorm/test-u32-nfc-big.c: New file.
21109         * modules/uninorm/nfc-tests: New file.
21110
21111         New module 'uninorm/nfc'.
21112         * lib/uninorm/nfc.c: New file.
21113         * modules/uninorm/nfc: New file.
21114
21115         Tests for module 'uninorm/nfd'.
21116         * tests/uninorm/test-nfd.c: New file.
21117         * tests/uninorm/test-u8-nfd.c: New file.
21118         * tests/uninorm/test-u16-nfd.c: New file.
21119         * tests/uninorm/test-u32-nfd.c: New file.
21120         * tests/uninorm/test-u32-nfd-big.sh: New file.
21121         * tests/uninorm/test-u32-nfd-big.c: New file.
21122         * tests/uninorm/test-u32-normalize-big.h: New file.
21123         * tests/uninorm/test-u32-normalize-big.c: New file.
21124         * tests/uninorm/NormalizationTest.txt: New file, created from
21125         Unicode 5.1.0 NormalizationTest.txt.
21126         * modules/uninorm/nfd-tests: New file.
21127
21128         New module 'uninorm/nfd'.
21129         * lib/uninorm/nfd.c: New file.
21130         * modules/uninorm/nfd: New file.
21131
21132         New module 'uninorm/u32-normalize'.
21133         * lib/uninorm/u32-normalize.c: New file.
21134         * modules/uninorm/u32-normalize: New file.
21135
21136         New module 'uninorm/u16-normalize'.
21137         * lib/uninorm/u16-normalize.c: New file.
21138         * modules/uninorm/u16-normalize: New file.
21139
21140         New module 'uninorm/u8-normalize'.
21141         * lib/uninorm/u8-normalize.c: New file.
21142         * lib/uninorm/normalize-internal.h: New file.
21143         * lib/uninorm/u-normalize-internal.h: New file.
21144         * modules/uninorm/u8-normalize: New file.
21145
21146         New module 'uninorm/decompose-internal'.
21147         * lib/uninorm/decompose-internal.c: New file.
21148         * modules/uninorm/decompose-internal: New file.
21149
21150         Tests for module 'uninorm/composition'.
21151         * tests/uninorm/test-composition.c: New file.
21152         * modules/uninorm/composition-tests: New file.
21153
21154         New module 'uninorm/composition'.
21155         * lib/uninorm/composition.c: New file.
21156         * lib/uninorm/composition-table.gperf: New file, generated by
21157         gen-uni-tables.
21158         * modules/uninorm/composition: New file.
21159
21160         Tests for module 'uninorm/compat-decomposition'.
21161         * tests/uninorm/test-compat-decomposition.c: New file.
21162         * modules/uninorm/compat-decomposition-tests: New file.
21163
21164         New module 'uninorm/compat-decomposition'.
21165         * lib/uninorm/decompose-internal.h: New file.
21166         * lib/uninorm/compat-decomposition.c: New file.
21167         * modules/uninorm/compat-decomposition: New file.
21168
21169         Tests for module 'uninorm/canonical-decomposition'.
21170         * tests/uninorm/test-canonical-decomposition.c: New file.
21171         * modules/uninorm/canonical-decomposition-tests: New file.
21172
21173         New module 'uninorm/canonical-decomposition'.
21174         * lib/uninorm/canonical-decomposition.c: New file.
21175         * modules/uninorm/canonical-decomposition: New file.
21176
21177         Tests for module 'uninorm/decomposition'.
21178         * tests/uninorm/test-decomposition.c: New file.
21179         * modules/uninorm/decomposition-tests: New file.
21180
21181         New module 'uninorm/decomposition'.
21182         * lib/uninorm/decomposition.c: New file.
21183         * modules/uninorm/decomposition: New file.
21184
21185         New module 'uninorm/decomposition-table'.
21186         * lib/uninorm/decomposition-table.h: New file.
21187         * lib/uninorm/decomposition-table.c: New file.
21188         * lib/uninorm/decomposition-table1.h: New file, generated by
21189         gen-uni-tables.
21190         * lib/uninorm/decomposition-table2.h: New file, generated by
21191         gen-uni-tables.
21192         * modules/uninorm/decomposition-table: New file.
21193
21194         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
21195         (UC_DECOMP_*): New enumeration items.
21196         (get_decomposition): New function.
21197         (struct decomp_table): New type.
21198         (output_decomposition, output_decomposition_tables): New functions.
21199         (unicode_composition_exclusions): New variable.
21200         (fill_composition_exclusions, debug_output_composition_tables): New
21201         functions.
21202         (main): Accept one more argument. Invoke fill_composition_exclusions.
21203         Output decomposition and composition tables.
21204
21205         New module 'uninorm/base'.
21206         * lib/uninorm.h: New file.
21207         * lib/unictype.h: Update comment.
21208         * modules/uninorm/base: New file.
21209
21210 2009-02-21  David Lutterkort  <lutter@redhat.com>
21211
21212         Tests for module 'safe-alloc'.
21213         * tests/test-safe-alloc.c: New file.
21214         * modules/safe-alloc-tests: New file.
21215
21216         New module 'safe-alloc'.
21217         * lib/safe-alloc.h: New file.
21218         * lib/safe-alloc.c: New file.
21219         * m4/safe-alloc.m4: New file.
21220         * modules/safe-alloc: New file.
21221         * doc/safe-alloc.texi: New file.
21222         * doc/gnulib.texi: Include it.
21223         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
21224         safe-alloc.
21225
21226 2009-02-18  Bruno Haible  <bruno@clisp.org>
21227
21228         Fix link error on non-glibc systems.
21229         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
21230         variable.
21231         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21232
21233 2009-02-18  Jim Meyering  <meyering@redhat.com>
21234
21235         fts: avoid used-uninitialized error due to recent change
21236         * lib/fts.c (fts_read): Guard uses of the new member,
21237         parent->fts_n_dirs_remaining, since it's not relevant for
21238         the parent of a directory specified on the command-line.
21239
21240 2009-02-17  James Youngman  <jay@gnu.org>
21241             Bruno Haible  <bruno@clisp.org>
21242
21243         * m4/include_next.m4: Reformulate comment.
21244
21245 2009-02-16  Jim Meyering  <meyering@redhat.com>
21246
21247         fts: add #if guards so that the fts_lgpl module still builds
21248         * lib/fts.c: Guard just-added hash-table-using parts with
21249         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
21250         Reported by Simon Josefsson.
21251
21252 2009-02-15  Bruno Haible  <bruno@clisp.org>
21253
21254         * modules/array-mergesort-tests: New file.
21255         * tests/test-array-mergesort.c: New file.
21256
21257         New module 'array-mergesort'.
21258         * modules/array-mergesort: New file.
21259         * lib/array-mergesort.h: New file.
21260
21261 2009-02-15  Bruno Haible  <bruno@clisp.org>
21262
21263         Fix 2009-02-07 commit.
21264         * lib/gen-uni-tables.c (output_predicate, output_category,
21265         output_combclass, output_bidi_category, output_decimal_digit,
21266         output_digit, output_numeric, output_mirror, output_scripts,
21267         output_ident_category, output_simple_mapping): Fix format directives.
21268         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
21269
21270 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
21271
21272         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
21273         fixes are available from IBM.
21274
21275 2009-02-13  Jim Meyering  <meyering@redhat.com>
21276
21277         fts: arrange not to stat non-directories in more cases
21278         This makes GNU find (when it doesn't need to stat each file)
21279         *much* more efficient at traversing reiserfs file systems.
21280         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
21281         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
21282         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
21283         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
21284         (leaf_optimization_applies): New function.
21285         (LCO_hash, LCO_compare): New helper functions.
21286         (link_count_optimize_ok): New function.
21287         (fts_stat): Initialize new member (if dir).
21288         (fts_read): Decrement parent's fts_n_dirs_remaining count if
21289         we've just stat'ed a directory.  Skip the stat call when possible.
21290         ---
21291         Note this AFS-related exchange:
21292         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
21293         and note find's pioctl call in find/fstype.c.
21294         But that is necessary only if you want to enable the
21295         optimization for AFS, and for now, I don't.
21296
21297         fts: move a function definition "up" (no semantic change)
21298         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
21299         "up" to precede upcoming use of a related function.
21300
21301 2009-02-11  Jim Meyering  <meyering@redhat.com>
21302
21303         fts: correct internal computation of nlinks (optimization-related)
21304         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
21305         whether the current entry is a directory, so don't test it.
21306
21307 2009-02-10  Bruno Haible  <bruno@clisp.org>
21308
21309         Tests for module 'uniwbrk/ulc-wordbreaks'.
21310         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
21311         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
21312         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
21313
21314         Tests for module 'uniwbrk/u32-wordbreaks'.
21315         * modules/uniwbrk/u32-wordbreaks-tests: New file.
21316         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
21317
21318         Tests for module 'uniwbrk/u16-wordbreaks'.
21319         * modules/uniwbrk/u16-wordbreaks-tests: New file.
21320         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
21321
21322         Tests for module 'uniwbrk/u8-wordbreaks'.
21323         * modules/uniwbrk/u8-wordbreaks-tests: New file.
21324         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
21325
21326 2009-02-10  Bruno Haible  <bruno@clisp.org>
21327
21328         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
21329         property.
21330         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
21331         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
21332         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
21333
21334 2009-02-10  Simon Josefsson  <simon@josefsson.org>
21335
21336         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
21337         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
21338
21339 2009-02-10  Bruno Haible  <bruno@clisp.org>
21340
21341         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
21342         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
21343         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
21344         * lib/unilbrk/u8-possible-linebreaks.c: Update.
21345         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
21346         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
21347
21348 2009-02-09  Simon Josefsson  <simon@josefsson.org>
21349
21350         * lib/sockets.h (gl_fd_to_handle): New function.
21351
21352         * tests/test-sockets.c: Call gl_fd_to_handle.
21353
21354 2009-02-09  Bruno Haible  <bruno@clisp.org>
21355
21356         * doc/havelib.texi: Document the conventions on bi-arch systems.
21357
21358 2009-02-08  Bruno Haible  <bruno@clisp.org>
21359
21360         Document the AC_LIB_LINKFLAGS macro.
21361         * doc/havelib.texi: New file, mostly written on 2005-05-24.
21362         * doc/gnulib.texi: Include it.
21363
21364 2009-02-08  Bruno Haible  <bruno@clisp.org>
21365
21366         Fix wrong order of sections, compared to TOC.
21367         * doc/gnulib.texi: Include relocatable-maint.texi after the
21368         "Regular expressions" node, not before.
21369
21370 2009-02-08  Bruno Haible  <bruno@clisp.org>
21371
21372         Tests for module 'unicase/totitle'.
21373         * modules/unicase/totitle-tests: New file.
21374
21375         Tests for module 'unicase/tolower'.
21376         * modules/unicase/tolower-tests: New file.
21377
21378         Tests for module 'unicase/toupper'.
21379         * modules/unicase/toupper-tests: New file.
21380         * tests/unicase/test-mapping-part1.h: New file.
21381         * tests/unicase/test-mapping-part2.h: New file.
21382
21383         New module 'unicase/totitle'.
21384         * modules/unicase/totitle: New file.
21385         * lib/unicase/totitle.c: New file.
21386
21387         New module 'unicase/tolower'.
21388         * modules/unicase/tolower: New file.
21389         * lib/unicase/tolower.c: New file.
21390
21391         New module 'unicase/toupper'.
21392         * modules/unicase/toupper: New file.
21393         * lib/unicase/toupper.c: New file.
21394         * lib/unicase/simple-mapping.h: New file.
21395
21396         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
21397         (mapping_table): New structure.
21398         (output_simple_mapping): New function.
21399         (main): Invoke output_simple_mapping_test and output_simple_mapping.
21400         * modules/gen-uni-tables (Description): Update.
21401         * lib/unicase/toupper.h: New file, automatically generated by
21402         gen-uni-tables.
21403         * lib/unicase/tolower.h: New file, automatically generated by
21404         gen-uni-tables.
21405         * lib/unicase/totitle.h: New file, automatically generated by
21406         gen-uni-tables.
21407         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
21408         gen-uni-tables.
21409         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
21410         gen-uni-tables.
21411         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
21412         gen-uni-tables.
21413
21414         New module 'unicase/base'.
21415         * modules/unicase/base: New file.
21416         * lib/unicase.h: New file.
21417
21418 2009-02-08  Bruno Haible  <bruno@clisp.org>
21419
21420         New module 'uniwbrk/ulc-wordbreaks'.
21421         * modules/uniwbrk/ulc-wordbreaks: New file.
21422         * lib/uniwbrk/ulc-wordbreaks.c: New file.
21423
21424         New module 'uniwbrk/u32-wordbreaks'.
21425         * modules/uniwbrk/u32-wordbreaks: New file.
21426         * lib/uniwbrk/u32-wordbreaks.c: New file.
21427
21428         New module 'uniwbrk/u16-wordbreaks'.
21429         * modules/uniwbrk/u16-wordbreaks: New file.
21430         * lib/uniwbrk/u16-wordbreaks.c: New file.
21431
21432         New module 'uniwbrk/u8-wordbreaks'.
21433         * modules/uniwbrk/u8-wordbreaks: New file.
21434         * lib/uniwbrk/u8-wordbreaks.c: New file.
21435         * lib/uniwbrk/u-wordbreaks.h: New file.
21436
21437         New module 'uniwbrk/table'.
21438         * modules/uniwbrk/table: New file.
21439         * lib/uniwbrk/wbrktable.h: New file.
21440         * lib/uniwbrk/wbrktable.c: New file.
21441
21442         New module 'uniwbrk/wordbreak-property'.
21443         * modules/uniwbrk/wordbreak-property: New file.
21444         * lib/uniwbrk/wordbreak-property.c: New file.
21445
21446         * lib/gen-uni-tables.c (WBP_*): New enum items.
21447         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
21448         (unicode_org_wbp): New variable.
21449         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
21450         New functions.
21451         (wbp_table): New structure.
21452         (output_wbp, output_wbrk_tables): New functions.
21453         (main): Accept additional argument. Invoke fill_org_wbp,
21454         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
21455         output_wbrk_tables.
21456         * modules/gen-uni-tables (Description): Update.
21457         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
21458         gen-uni-tables.
21459
21460         New module 'uniwbrk/base'.
21461         * modules/uniwbrk/base: New file.
21462         * lib/uniwbrk.h: New file.
21463
21464 2009-02-08  Bruno Haible  <bruno@clisp.org>
21465
21466         Update to Unicode 5.1.0.
21467         * lib/gen-uni-tables.c (is_property_alphabetic): Include
21468         U+2185..U+2188.
21469         (is_property_default_ignorable_code_point): Don't include characters
21470         of category Cc or Cs and not-a-characters.
21471         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
21472         U+0D79, U+109E, U+109F, U+A60C.
21473         * lib/unictype/bidi_of.h: Regenerated.
21474         * lib/unictype/blocks.h: Regenerated.
21475         * lib/unictype/categ_C.h: Regenerated.
21476         * lib/unictype/categ_Cf.h: Regenerated.
21477         * lib/unictype/categ_Cn.h: Regenerated.
21478         * lib/unictype/categ_L.h: Regenerated.
21479         * lib/unictype/categ_Ll.h: Regenerated.
21480         * lib/unictype/categ_Lm.h: Regenerated.
21481         * lib/unictype/categ_Lo.h: Regenerated.
21482         * lib/unictype/categ_Lu.h: Regenerated.
21483         * lib/unictype/categ_M.h: Regenerated.
21484         * lib/unictype/categ_Mc.h: Regenerated.
21485         * lib/unictype/categ_Me.h: Regenerated.
21486         * lib/unictype/categ_Mn.h: Regenerated.
21487         * lib/unictype/categ_N.h: Regenerated.
21488         * lib/unictype/categ_Nd.h: Regenerated.
21489         * lib/unictype/categ_Nl.h: Regenerated.
21490         * lib/unictype/categ_No.h: Regenerated.
21491         * lib/unictype/categ_P.h: Regenerated.
21492         * lib/unictype/categ_Pd.h: Regenerated.
21493         * lib/unictype/categ_Pe.h: Regenerated.
21494         * lib/unictype/categ_Pf.h: Regenerated.
21495         * lib/unictype/categ_Pi.h: Regenerated.
21496         * lib/unictype/categ_Po.h: Regenerated.
21497         * lib/unictype/categ_Ps.h: Regenerated.
21498         * lib/unictype/categ_S.h: Regenerated.
21499         * lib/unictype/categ_Sk.h: Regenerated.
21500         * lib/unictype/categ_Sm.h: Regenerated.
21501         * lib/unictype/categ_So.h: Regenerated.
21502         * lib/unictype/categ_of.h: Regenerated.
21503         * lib/unictype/combining.h: Regenerated.
21504         * lib/unictype/ctype_alnum.h: Regenerated.
21505         * lib/unictype/ctype_alpha.h: Regenerated.
21506         * lib/unictype/ctype_graph.h: Regenerated.
21507         * lib/unictype/ctype_lower.h: Regenerated.
21508         * lib/unictype/ctype_print.h: Regenerated.
21509         * lib/unictype/ctype_punct.h: Regenerated.
21510         * lib/unictype/ctype_upper.h: Regenerated.
21511         * lib/unictype/decdigit.h: Regenerated.
21512         * lib/unictype/digit.h: Regenerated.
21513         * lib/unictype/mirror.h: Regenerated.
21514         * lib/unictype/numeric.h: Regenerated.
21515         * lib/unictype/pr_alphabetic.h: Regenerated.
21516         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
21517         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
21518         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
21519         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
21520         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
21521         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
21522         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
21523         * lib/unictype/pr_combining.h: Regenerated.
21524         * lib/unictype/pr_dash.h: Regenerated.
21525         * lib/unictype/pr_decimal_digit.h: Regenerated.
21526         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
21527         * lib/unictype/pr_deprecated.h: Regenerated.
21528         * lib/unictype/pr_diacritic.h: Regenerated.
21529         * lib/unictype/pr_extender.h: Regenerated.
21530         * lib/unictype/pr_format_control.h: Regenerated.
21531         * lib/unictype/pr_grapheme_base.h: Regenerated.
21532         * lib/unictype/pr_grapheme_extend.h: Regenerated.
21533         * lib/unictype/pr_grapheme_link.h: Regenerated.
21534         * lib/unictype/pr_id_continue.h: Regenerated.
21535         * lib/unictype/pr_id_start.h: Regenerated.
21536         * lib/unictype/pr_ideographic.h: Regenerated.
21537         * lib/unictype/pr_ignorable_control.h: Regenerated.
21538         * lib/unictype/pr_lowercase.h: Regenerated.
21539         * lib/unictype/pr_math.h: Regenerated.
21540         * lib/unictype/pr_numeric.h: Regenerated.
21541         * lib/unictype/pr_other_alphabetic.h: Regenerated.
21542         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
21543         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
21544         * lib/unictype/pr_other_id_continue.h: Regenerated.
21545         * lib/unictype/pr_other_lowercase.h: Regenerated.
21546         * lib/unictype/pr_other_math.h: Regenerated.
21547         * lib/unictype/pr_punctuation.h: Regenerated.
21548         * lib/unictype/pr_sentence_terminal.h: Regenerated.
21549         * lib/unictype/pr_soft_dotted.h: Regenerated.
21550         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
21551         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
21552         * lib/unictype/pr_unified_ideograph.h: Regenerated.
21553         * lib/unictype/pr_uppercase.h: Regenerated.
21554         * lib/unictype/pr_xid_continue.h: Regenerated.
21555         * lib/unictype/pr_xid_start.h: Regenerated.
21556         * lib/unictype/pr_zero_width.h: Regenerated.
21557         * lib/unictype/scripts.h: Regenerated.
21558         * lib/unictype/scripts_byname.gperf: Regenerated.
21559         * lib/unictype/sy_java_ident.h: Regenerated.
21560         * lib/unilbrk/lbrkprop1.h: Regenerated.
21561         * lib/unilbrk/lbrkprop2.h: Regenerated.
21562         * tests/unictype/test-categ_C.c: Regenerated.
21563         * tests/unictype/test-categ_Cf.c: Regenerated.
21564         * tests/unictype/test-categ_Cn.c: Regenerated.
21565         * tests/unictype/test-categ_L.c: Regenerated.
21566         * tests/unictype/test-categ_Ll.c: Regenerated.
21567         * tests/unictype/test-categ_Lm.c: Regenerated.
21568         * tests/unictype/test-categ_Lo.c: Regenerated.
21569         * tests/unictype/test-categ_Lu.c: Regenerated.
21570         * tests/unictype/test-categ_M.c: Regenerated.
21571         * tests/unictype/test-categ_Mc.c: Regenerated.
21572         * tests/unictype/test-categ_Me.c: Regenerated.
21573         * tests/unictype/test-categ_Mn.c: Regenerated.
21574         * tests/unictype/test-categ_N.c: Regenerated.
21575         * tests/unictype/test-categ_Nd.c: Regenerated.
21576         * tests/unictype/test-categ_Nl.c: Regenerated.
21577         * tests/unictype/test-categ_No.c: Regenerated.
21578         * tests/unictype/test-categ_P.c: Regenerated.
21579         * tests/unictype/test-categ_Pd.c: Regenerated.
21580         * tests/unictype/test-categ_Pe.c: Regenerated.
21581         * tests/unictype/test-categ_Pf.c: Regenerated.
21582         * tests/unictype/test-categ_Pi.c: Regenerated.
21583         * tests/unictype/test-categ_Po.c: Regenerated.
21584         * tests/unictype/test-categ_Ps.c: Regenerated.
21585         * tests/unictype/test-categ_S.c: Regenerated.
21586         * tests/unictype/test-categ_Sk.c: Regenerated.
21587         * tests/unictype/test-categ_Sm.c: Regenerated.
21588         * tests/unictype/test-categ_So.c: Regenerated.
21589         * tests/unictype/test-ctype_alnum.c: Regenerated.
21590         * tests/unictype/test-ctype_alpha.c: Regenerated.
21591         * tests/unictype/test-ctype_graph.c: Regenerated.
21592         * tests/unictype/test-ctype_lower.c: Regenerated.
21593         * tests/unictype/test-ctype_print.c: Regenerated.
21594         * tests/unictype/test-ctype_punct.c: Regenerated.
21595         * tests/unictype/test-ctype_upper.c: Regenerated.
21596         * tests/unictype/test-decdigit.h: Regenerated.
21597         * tests/unictype/test-digit.h: Regenerated.
21598         * tests/unictype/test-numeric.h: Regenerated.
21599         * tests/unictype/test-pr_alphabetic.c: Regenerated.
21600         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
21601         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
21602         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
21603         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
21604         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
21605         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
21606         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
21607         * tests/unictype/test-pr_combining.c: Regenerated.
21608         * tests/unictype/test-pr_dash.c: Regenerated.
21609         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
21610         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
21611         * tests/unictype/test-pr_deprecated.c: Regenerated.
21612         * tests/unictype/test-pr_diacritic.c: Regenerated.
21613         * tests/unictype/test-pr_extender.c: Regenerated.
21614         * tests/unictype/test-pr_format_control.c: Regenerated.
21615         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
21616         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
21617         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
21618         * tests/unictype/test-pr_id_continue.c: Regenerated.
21619         * tests/unictype/test-pr_id_start.c: Regenerated.
21620         * tests/unictype/test-pr_ideographic.c: Regenerated.
21621         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
21622         * tests/unictype/test-pr_lowercase.c: Regenerated.
21623         * tests/unictype/test-pr_math.c: Regenerated.
21624         * tests/unictype/test-pr_numeric.c: Regenerated.
21625         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
21626         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
21627         Regenerated.
21628         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
21629         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
21630         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
21631         * tests/unictype/test-pr_other_math.c: Regenerated.
21632         * tests/unictype/test-pr_punctuation.c: Regenerated.
21633         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
21634         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
21635         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
21636         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
21637         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
21638         * tests/unictype/test-pr_uppercase.c: Regenerated.
21639         * tests/unictype/test-pr_xid_continue.c: Regenerated.
21640         * tests/unictype/test-pr_xid_start.c: Regenerated.
21641         * tests/unictype/test-pr_zero_width.c: Regenerated.
21642
21643         Update to Unicode 5.1.0.
21644         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
21645         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
21646         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
21647         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
21648         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
21649         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
21650         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
21651         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
21652         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
21653         (nonspacing_table_ind): Update.
21654         * tests/uniwidth/test-uc_width2.sh: Update expected result.
21655
21656         Update to Unicode 5.1.0.
21657         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
21658         code transform.
21659         * lib/uniname/uniname.c (unicode_character_name,
21660         unicode_name_character): Add the range 0x1Fxxx to the code transform.
21661         * lib/uniname/uninames.h: Regenerated.
21662         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
21663
21664 2009-02-07  Bruno Haible  <bruno@clisp.org>
21665
21666         Merge gen-ctype and gen-lbrk into a single program.
21667         * lib/gen-uni-tables.c: New file, incorporating
21668         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
21669         Add directory prefixes to the names of the generated files.
21670         * lib/unictype/gen-ctype.c: Remove file.
21671         * lib/unilbrk/gen-lbrk.c: Remove file.
21672         * modules/gen-uni-tables: New file.
21673         * modules/unictype/gen-ctype: Remove file.
21674         * modules/unilbrk/gen-lbrk: Remove file.
21675
21676 2009-02-07  Bruno Haible  <bruno@clisp.org>
21677
21678         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
21679
21680         New module 'unistr/u32-strcoll'.
21681         * modules/unistr/u32-strcoll: New file.
21682         * lib/unistr/u32-strcoll.c: New file.
21683
21684         New module 'unistr/u16-strcoll'.
21685         * modules/unistr/u16-strcoll: New file.
21686         * lib/unistr/u16-strcoll.c: New file.
21687
21688         New module 'unistr/u8-strcoll'.
21689         * modules/unistr/u8-strcoll: New file.
21690         * lib/unistr/u8-strcoll.c: New file.
21691         * lib/unistr/u-strcoll.h: New file.
21692
21693 2009-02-07  Bruno Haible  <bruno@clisp.org>
21694
21695         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
21696         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
21697         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
21698         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
21699         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
21700         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
21701
21702 2009-02-07  Bruno Haible  <bruno@clisp.org>
21703
21704         Make 64-bit clean.
21705         * lib/unictype/gen-ctype.c (output_predicate, output_category,
21706         output_combclass, output_bidi_category, output_decimal_digit,
21707         output_digit, output_numeric, output_mirror, output_scripts,
21708         output_ident_category): Use proper width specifier in format strings.
21709
21710 2009-02-07  Bruno Haible  <bruno@clisp.org>
21711
21712         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
21713         failure behaviour.
21714
21715 2009-02-07  Jim Meyering  <meyering@redhat.com>
21716
21717         regex: avoid compilation failure with upcoming gcc-4.4
21718         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
21719         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
21720         "... error: integer overflow in preprocessor expression".
21721
21722 2009-02-05  Ben Pfaff  <blp@gnu.org>
21723
21724         Fix link errors on Windows when close module is used.
21725         * modules/close: Add $(LIB_CLOSE) to Link section.
21726         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
21727         $(LIB_CLOSE) on Windows.
21728
21729 2009-02-05  Jim Meyering  <meyering@redhat.com>
21730
21731         still avoid unused-parameter warnings, but do it cleanly
21732         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
21733         (get_fs_usage): Cast to void instead.
21734         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
21735         (dev_from_mount_options, read_file_system_list): Cast to void.
21736         Prompted by Bruno Haible.
21737
21738 2009-02-04  Jim Meyering  <meyering@redhat.com>
21739
21740         fsusage.c: correct copyright year
21741         * lib/fsusage.c: Reflect year in which the change is pushed into
21742
21743         avoid misc. warnings
21744         * lib/fsusage.c (UNUSED_PARAM): Define.
21745         (get_fs_usage): Mark parameter "disk" as unused.
21746         * lib/getugroups.c (getgrent): Use "void" in prototype.
21747         * lib/mountlist.c: Mark unused parameters.
21748         (read_file_system_list): Declare a local with "const".
21749         * lib/nanosleep.c (getnow): Declare static.
21750         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
21751
21752         dirfd: set errno upon failure
21753         * lib/dirfd.c: Include <errno.h>.
21754         Set errno to ENOTSUP when returning -1.
21755         * modules/dirfd (Depends-on): Add errno.
21756         Suggested by John Kodis <kodis@comcast.net>.
21757
21758 2009-02-01  Bruno Haible  <bruno@clisp.org>
21759
21760         Don't assume sizeof (long) >= sizeof (void *).
21761         * lib/memcmp.c: Include stdint.h.
21762         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
21763         srcp2 to 'const byte *'.
21764         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
21765         types to uintptr_t.
21766         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
21767         * modules/memcmp (Depends-on): Add stdint.
21768         Reported by Ozkan Sezer <sezeroz@gmail.com>.
21769
21770 2009-01-30  Eric Blake  <ebb9@byu.net>
21771
21772         fix more require-before-expand issues
21773         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
21774         expand, AC_PROG_AWK.
21775         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
21776
21777 2009-01-28  Eric Blake  <ebb9@byu.net>
21778
21779         version-etc: use consistent URL formatting
21780         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
21781         Improve formatting.  Use fputs for string without %.
21782
21783 2009-01-28  Jim Meyering  <meyering@redhat.com>
21784
21785         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
21786         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
21787         "underquoted definition of NAME" from autoconf-2.59.
21788
21789 2009-01-28  Bruno Haible  <bruno@clisp.org>
21790
21791         * doc/gnulib.texi: Add "Obsolete modules" to index.
21792
21793 2009-01-28  Jim Meyering  <meyering@redhat.com>
21794
21795         useless-if-before-free: recognize more variants
21796         * build-aux/useless-if-before-free: Also recognize e.g.,
21797         if (NULL != p) free (p);
21798
21799 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
21800
21801         test-getaddrinfo: skip (don't fail) this test when there's no network
21802         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
21803         on the presumption that it means you lack network access.
21804
21805 2009-01-26  Jim Meyering  <meyering@redhat.com>
21806
21807         fflush: avoid warnings on modern systems
21808         * lib/fflush.c (rpl_fflush): Move declarations of locals,
21809         pos and result, into scopes where they're used.
21810
21811 2009-01-26  Eric Blake  <ebb9@byu.net>
21812
21813         Silence warning reintroduced by recent extensions patch.
21814         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
21815         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
21816         autoconf.
21817
21818         Backport improved autoconf semantics of AC_DEFUN_ONCE.
21819         * m4/00gnulib.m4: New file.
21820         * gnulib-tool (func_get_filelist): Always use it.
21821         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
21822         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
21823
21824 2009-01-25  Bruno Haible  <bruno@clisp.org>
21825
21826         Make test-quotearg work on MacOS X and AIX.
21827         * tests/test-quotearg.sh: New file.
21828         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
21829         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
21830         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
21831         include <libintl.h>.
21832         (fake_locale): Remove variable.
21833         (gettext, dgettext, dcgettext): Remove functions.
21834         (main): Instead of setting a fake locale, set a real locale. Call
21835         textdomain and bindtextdomain.
21836         * modules/quotearg-tests (Files): Add the new files.
21837         (Depends-on): Add gettext, setenv, unsetenv.
21838         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
21839         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
21840         Augment TESTS_ENVIRONMENT.
21841
21842 2009-01-25  Bruno Haible  <bruno@clisp.org>
21843
21844         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
21845         fr_FR.ISO8859-1 locale on MacOS X.
21846         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
21847         ja_JP.eucJP locale on MacOS X.
21848         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
21849         zh_CN.GB18030 locale on MacOS X.
21850
21851 2009-01-25  Bruno Haible  <bruno@clisp.org>
21852
21853         Avoid link errors on MacOS X 10.3.
21854         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
21855         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
21856
21857 2009-01-25  Bruno Haible  <bruno@clisp.org>
21858
21859         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
21860         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
21861         * modules/pipe (Files): Remove m4/posix_spawn.m4.
21862         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
21863         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
21864         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
21865         posix_spawnattr_init, posix_spawnattr_setsigmask,
21866         posix_spawnattr_setflags, posix_spawnattr_destroy.
21867
21868         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
21869         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
21870         * modules/execute (Files): Remove m4/posix_spawn.m4.
21871         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
21872         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
21873         posix_spawnattr_init, posix_spawnattr_setsigmask,
21874         posix_spawnattr_setflags, posix_spawnattr_destroy.
21875
21876 2009-01-25  Bruno Haible  <bruno@clisp.org>
21877
21878         * lib/glthread/threadlib.c: Include <stdlib.h>.
21879
21880 2009-01-25  Bruno Haible  <bruno@clisp.org>
21881
21882         * lib/glthread/threadlib.c (dummy): New declaration.
21883
21884 2009-01-25  Bruno Haible  <bruno@clisp.org>
21885
21886         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
21887         multibyte characters also for the GB18030 encoding. Don't crash when
21888         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
21889
21890 2009-01-25  Bruno Haible  <bruno@clisp.org>
21891
21892         Avoid redefining 'struct random_data' on OSF/1 5.1.
21893         * lib/stdlib.in.h: Include <random.h> if it exists.
21894         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
21895         HAVE_RANDOM_H. Include <random.h> when testing whether
21896         'struct random_data' exists.
21897         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
21898
21899 2009-01-25  Bruno Haible  <bruno@clisp.org>
21900
21901         Don't install charset.alias on MacOS X >= 10.3.
21902         * lib/localcharset.c (DARWIN7): New macro.
21903         (get_charset_aliases): Hardcode the result for Darwin7.
21904         * modules/localcharset (install-exec-local): Don't install
21905         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
21906
21907 2009-01-25  Bruno Haible  <bruno@clisp.org>
21908
21909         Don't install charset.alias on mingw and Cygwin.
21910         * modules/localcharset (install-exec-local): Don't install
21911         charset.alias on mingw and Cygwin, if the file does not yet exist.
21912         The result for these platforms is hardcoded in localcharset.c.
21913
21914 2009-01-25  Bruno Haible  <bruno@clisp.org>
21915
21916         Make it possible again to use AC_GNU_SOURCE together with gnulib.
21917         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
21918         before requiring AC_USE_SYSTEM_EXTENSIONS.
21919
21920 2009-01-25  Jim Meyering  <meyering@redhat.com>
21921
21922         c-strtod: avoid warnings
21923         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
21924         "assignment discards qualifiers from pointer target type" warnings.
21925
21926 2009-01-24  Bruno Haible  <bruno@clisp.org>
21927
21928         Add support for non-UTF-8 locales on MacOS X.
21929         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
21930         canonical encodings. For Darwin 7 and newer, don't map traditional
21931         encodings to UTF-8.
21932         Reported by Vincent Lefevre <vincent@vinc17.org>
21933         at <http://savannah.gnu.org/bugs/?25235>.
21934
21935 2009-01-24  Bruno Haible  <bruno@clisp.org>
21936
21937         * doc/gnulib.texi (Obsolete modules): New section.
21938         Reported by Mike Frysinger <vapier@gentoo.org>.
21939
21940 2009-01-24  Bruno Haible  <bruno@clisp.org>
21941
21942         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
21943         (%.dvi): New rule.
21944
21945 2009-01-24  Bruno Haible  <bruno@clisp.org>
21946
21947         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
21948         Reported by Eric Blake.
21949
21950 2009-01-24  Bruno Haible  <bruno@clisp.org>
21951
21952         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
21953         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
21954         Reported by Gary V. Vaughan <gary@gnu.org>.
21955
21956 2009-01-24  Bruno Haible  <bruno@clisp.org>
21957
21958         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
21959
21960 2009-01-23  Bruno Haible  <bruno@clisp.org>
21961
21962         Make c-strtod, c-strtold usable in libraries.
21963         * lib/c-strtod.c: Include string.h instead of xalloc.h.
21964         (C_STRTOD): Call strdup instead of xstrdup.
21965         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
21966         * modules/c-strtold (Depends-on): Likewise.
21967         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
21968         * NEWS: Mention the change.
21969         Reported by Michael Gold <mgold@ncf.ca>.
21970
21971 2009-01-23  Jim Meyering  <meyering@redhat.com>
21972
21973         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
21974         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
21975         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
21976
21977 2009-01-23  Simon Josefsson  <simon@josefsson.org>
21978
21979         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
21980         GNU CoreUtils.
21981         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
21982         * modules/version-etc (Description): Update.
21983
21984 2009-01-22  Bruno Haible  <bruno@clisp.org>
21985
21986         Cache the C locale object.
21987         * lib/c-strtod.c (c_locale_cache): New variable.
21988         (c_locale): New function.
21989         (C_STRTOD): Use it, and don't call freelocale.
21990         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
21991         Suggested by Paolo Bonzini.
21992
21993 2009-01-21  Bruno Haible  <bruno@clisp.org>
21994
21995         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
21996         conditions other than overflow.
21997
21998 2009-01-21  Bruno Haible  <bruno@clisp.org>
21999
22000         * lib/c-strtod.c: Include errno.h.
22001         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
22002         value from STRTOD_L and STRTOD.
22003
22004 2009-01-21  Bruno Haible  <bruno@clisp.org>
22005         and Jim Meyering  <meyering@redhat.com>
22006
22007         nanosleep: skip configure test (fail it) for apple universal builds
22008         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
22009         universal builds, assume that nanosleep does not work.
22010         * modules/nanosleep (Depends-on): Add multiarch.
22011
22012         mktime: skip configure test (fail it) for apple universal builds
22013         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
22014         universal builds, assume that mktime does not work.
22015         * modules/mktime (Depends-on): Add multiarch.
22016
22017 2009-01-21  Eric Blake  <ebb9@byu.net>
22018
22019         multiarch: avoid expand-before-require warning
22020         * modules/multiarch (configure.ac): Require, rather than expand,
22021         gl_MULTIARCH.
22022         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
22023         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
22024         enforce that all clients require it.  Partial reversion of
22025         2008-12-29 patch.
22026
22027         error: avoid expand-before-require warning
22028         * modules/errno (configure.ac): Require, rather than expand,
22029         gl_HEADER_ERRNO_H.
22030         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
22031         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
22032         enforce that all clients require it.
22033
22034         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
22035         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
22036         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
22037         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
22038
22039 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
22040
22041         Revert:
22042         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
22043
22044         regex: do not depend on obsolete modules.
22045         * modules/regex: Remove memcmp and memmove.
22046
22047 2009-01-20  Bruno Haible  <bruno@clisp.org>
22048
22049         Make the 'link' module link on Windows NT 4.
22050         * lib/link.c (_WIN32_WINNT): Don't define.
22051         (CreateHardLinkFuncType): New type.
22052         (CreateHardLinkFunc, initialized): New variables.
22053         (initialize): New function.
22054         (link): Invoke CreateHardLink indirectly through the function pointer.
22055
22056 2009-01-20  Bruno Haible  <bruno@clisp.org>
22057
22058         Fix compilation failure on mingw.
22059         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
22060
22061 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
22062
22063         * doc/c-strtod.texi: Mention a couple of restrictions.
22064
22065 2009-01-20  Jim Meyering  <meyering@redhat.com>
22066
22067         gettimeofday: move more declarations out of functions
22068         * lib/gettimeofday.c: Move extern declarations of tzset and
22069         gmtime out of containing functions.  Prompted by Bruno Haible.
22070
22071 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
22072
22073         regex: do not depend on obsolete modules.
22074         * modules/regex: Remove memcmp and memmove.
22075
22076 2009-01-19  Bruno Haible  <bruno@clisp.org>
22077
22078         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
22079         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
22080         gl_BIGENDIAN, not AC_C_BIGENDIAN.
22081         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
22082         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
22083
22084 2009-01-19  Bruno Haible  <bruno@clisp.org>
22085
22086         * tests/test-link.c: Include <errno.h>.
22087         (main): Exit with code 77 when a hard link cannot be created due to
22088         the file system.
22089         * tests/test-link.sh: Skip test when a hard link cannot be created due
22090         to the file system.
22091         Suggested by Eric Blake.
22092
22093 2009-01-19  Martin Lambers  <marlam@marlam.de>
22094
22095         * modules/link-tests: New file.
22096         * tests/test-link.sh: New file.
22097         * tests/test-link.c: New file.
22098
22099 2009-01-19  Eric Blake  <ebb9@byu.net>
22100
22101         doc: mention another function added in cygwin 1.7.0
22102         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
22103         Another new function in cygwin 1.7.
22104
22105 2009-01-19  Bruno Haible  <bruno@clisp.org>
22106
22107         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
22108         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
22109         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
22110         gl_BIGENDIAN, not AC_C_BIGENDIAN.
22111         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
22112         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
22113         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
22114         * m4/md4.m4 (gl_MD4): Likewise.
22115         * m4/md5.m4 (gl_MD5): Likewise.
22116         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
22117         * m4/sha1.m4 (gl_SHA1): Likewise.
22118         * m4/sha256.m4 (gl_SHA256): Likewise.
22119         * m4/sha512.m4 (gl_SHA512): Likewise.
22120
22121 2009-01-19  Bruno Haible  <bruno@clisp.org>
22122
22123         * modules/uniname/uniname-tests (Depends-on): Add progname.
22124         * tests/uniname/test-uninames.c: Include progname.h.
22125         (main): Call set_program_name.
22126
22127         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
22128         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
22129         (main): Call set_program_name.
22130
22131         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
22132         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
22133         (main): Call set_program_name.
22134
22135         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
22136         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
22137         (main): Call set_program_name.
22138
22139         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
22140         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
22141         (main): Call set_program_name.
22142
22143         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
22144         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
22145         (main): Call set_program_name.
22146
22147         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
22148         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
22149         (main): Call set_program_name.
22150
22151         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
22152         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
22153         (main): Call set_program_name.
22154
22155         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
22156         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
22157         (main): Call set_program_name.
22158
22159 2009-01-19  Eric Blake  <ebb9@byu.net>
22160
22161         test-unistd: test previous patch
22162         * tests/test-unistd.c: Test *_FILENO macros.
22163
22164         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
22165         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
22166         Guarantee a definition.
22167         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
22168         * modules/unistd-safer (Depends-on): Add dependency on unistd.
22169         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
22170         * lib/dup-safer.c (STDERR_FILENO): Likewise.
22171         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
22172         Likewise.
22173         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
22174         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
22175         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
22176         Likewise.
22177         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
22178         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
22179         (STDERR_FILENO): Likewise.
22180         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
22181         (STDERR_FILENO): Likewise.
22182         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
22183         (STDERR_FILENO): Likewise.
22184         Reported by Elbert Pol.
22185
22186 2009-01-19  Eric Blake  <ebb9@byu.net>
22187
22188         doc: mention more functions added in cygwin 1.7.0
22189         * doc/posix-functions/abort.texi (abort): Update wording related
22190         to cygwin.
22191         * doc/posix-functions/daylight.texi (daylight): Likewise.
22192         * doc/posix-functions/optarg.texi (optarg): Likewise.
22193         * doc/posix-functions/optarg.texi (opterr): Likewise.
22194         * doc/posix-functions/optarg.texi (optind): Likewise.
22195         * doc/posix-functions/optarg.texi (optopt): Likewise.
22196         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
22197         worked in 1.5.x, and was withdrawn in 1.7.
22198         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
22199         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
22200         cygwin versions.
22201         * doc/posix-functions/perror.texi (perror): Likewise.
22202         * doc/posix-functions/printf.texi (printf): Likewise.
22203         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
22204         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
22205         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
22206         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
22207         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
22208         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
22209         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
22210         Likewise.
22211         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
22212         Likewise.
22213         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
22214         this function.
22215         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
22216         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
22217         Likewise.
22218         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
22219         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
22220         * doc/posix-functions/confstr.texi (confstr): Likewise.
22221         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
22222         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
22223         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
22224         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
22225         * doc/posix-functions/fputws.texi (fputws): Likewise.
22226         * doc/posix-functions/fwide.texi (fwide): Likewise.
22227         * doc/posix-functions/getwc.texi (getwc): Likewise.
22228         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
22229         * doc/posix-functions/putwc.texi (putwc): Likewise.
22230         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
22231         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
22232         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
22233         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
22234         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
22235         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
22236         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
22237         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
22238         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
22239         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
22240         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
22241
22242 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
22243
22244         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
22245         * lib/ioctl.c: Include <sys/ioctl.h>.
22246
22247 2009-01-19  Simon Josefsson  <simon@josefsson.org>
22248
22249         * modules/getdate-tests (Depends-on): Add progname.
22250         * tests/test-getdate.c: Use progname module, to avoid link errors
22251         on non-glibc systems.
22252
22253 2009-01-18  Simon Josefsson  <simon@josefsson.org>
22254
22255         * modules/filenamecat-tests (Depends-on): Add progname.
22256         * modules/fstrcmp-tests (Depends-on): Likewise.
22257
22258         * tests/test-filenamecat.c: Use progname module, to avoid link
22259         errors on non-glibc systems.
22260         * tests/test-fstrcmp.c: Likewise.
22261
22262 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
22263
22264         gettimeofday: avoid warning: nested extern declaration of 'localtime'
22265         * lib/gettimeofday.c: Move extern declaration out of function.
22266
22267 2009-01-18  Bruno Haible  <bruno@clisp.org>
22268
22269         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
22270         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
22271         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
22272
22273 2009-01-18  Bruno Haible  <bruno@clisp.org>
22274
22275         * lib/strftime.c (MEMPCPY): Remove unused macro.
22276         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
22277
22278 2009-01-18  Martin Lambers  <marlam@marlam.de>
22279
22280         New module 'link'.
22281         * lib/unistd.in.h (link): New declaration.
22282         * lib/link.c: New file.
22283         * m4/link.m4: New file.
22284         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
22285         HAVE_LINK.
22286         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
22287         * modules/link: New file.
22288         * doc/posix-functions/link.texi: Mention the new module.
22289
22290 2009-01-18  Bruno Haible  <bruno@clisp.org>
22291
22292         * tests/test-avltree_list.c (main): Call set_program_name.
22293         * tests/test-avltree_oset.c (main): Likewise.
22294         * tests/test-obstack-printf.c: Include progname.h.
22295         (main): Call set_program_name.
22296         * tests/test-quotearg.c: Include progname.h.
22297         (main): Call set_program_name.
22298         * tests/test-xmemdup0.c: Include progname.h.
22299         (main): Call set_program_name.
22300
22301 2009-01-18  Bruno Haible  <bruno@clisp.org>
22302
22303         New module 'alphasort'.
22304         * lib/dirent.in.h (alphasort): New declaration.
22305         * lib/alphasort.c: New file, from glibc with modifications.
22306         * m4/alphasort.m4: New file.
22307         * modules/alphasort: New file.
22308         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
22309         HAVE_ALPHASORT.
22310         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
22311         HAVE_ALPHASORT.
22312         * doc/posix-functions/alphasort.texi: Mention the new module and the
22313         portability problems.
22314
22315 2009-01-18  Bruno Haible  <bruno@clisp.org>
22316
22317         New module 'scandir'.
22318         * lib/dirent.in.h (scandir): New declaration.
22319         * lib/scandir.c: New file, from glibc with modifications.
22320         * m4/scandir.m4: New file.
22321         * modules/scandir: New file.
22322         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
22323         HAVE_SCANDIR.
22324         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
22325         HAVE_SCANDIR.
22326         * doc/posix-functions/scandir.texi: Mention the new module and the
22327         portability problems.
22328
22329 2009-01-17  Bruno Haible  <bruno@clisp.org>
22330
22331         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
22332         Update documentation.
22333         (func_remove_suffix): Escape all dots in the suffix. Update
22334         documentation.
22335         (func_filter_filelist): Update documentation.
22336         Reported by Ralf Wildenhues.
22337
22338 2009-01-17  Bruno Haible  <bruno@clisp.org>
22339
22340         * modules/dprintf-posix-tests: New file.
22341         * tests/test-dprintf-posix.sh: New file.
22342         * tests/test-dprintf-posix.c: New file.
22343
22344         New modules 'dprintf', 'dprintf-posix'.
22345         * lib/stdio.in.h (dprintf): New declaration.
22346         * lib/dprintf.c: New file.
22347         * m4/dprintf.m4: New file.
22348         * m4/dprintf-posix.m4: New file.
22349         * modules/dprintf: New file.
22350         * modules/dprintf-posix: New file.
22351         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
22352         HAVE_DPRINTF, REPLACE_DPRINTF.
22353         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
22354         HAVE_DPRINTF, REPLACE_DPRINTF.
22355         * doc/posix-functions/dprintf.texi: Mention the new modules.
22356
22357 2009-01-17  Bruno Haible  <bruno@clisp.org>
22358
22359         * modules/vdprintf-posix-tests: New file.
22360         * tests/test-vdprintf-posix.sh: New file.
22361         * tests/test-vdprintf-posix.c: New file.
22362
22363         New modules 'vdprintf', 'vdprintf-posix'.
22364         * lib/stdio.in.h (vdprintf): New declaration.
22365         * lib/vdprintf.c: New file.
22366         * m4/vdprintf.m4: New file.
22367         * m4/vdprintf-posix.m4: New file.
22368         * modules/vdprintf: New file.
22369         * modules/vdprintf-posix: New file.
22370         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
22371         HAVE_VDPRINTF, REPLACE_VDPRINTF.
22372         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
22373         HAVE_VDPRINTF, REPLACE_VDPRINTF.
22374         * doc/posix-functions/vdprintf.texi: Mention the new modules.
22375
22376 2009-01-17  Bruno Haible  <bruno@clisp.org>
22377
22378         Fix replacement of fopen on mingw.
22379         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
22380         mingw.
22381
22382 2009-01-17  Bruno Haible  <bruno@clisp.org>
22383
22384         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
22385         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
22386
22387 2009-01-17  Bruno Haible  <bruno@clisp.org>
22388
22389         Avoid test-fflush2.sh failure on mingw.
22390         * tests/test-fflush2.c: Include binary-io.h.
22391         (main): Put standard input into binary mode.
22392         * modules/fflush-tests (Depends-on): Add binary-io.
22393
22394 2009-01-17  Bruno Haible  <bruno@clisp.org>
22395
22396         * lib/wchar.in.h: In another particular situation, include only the
22397         system's <wchar.h> file.
22398         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
22399         Reported by Albert Chin-A-Young <china@thewrittenword.com>
22400         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
22401
22402 2009-01-17  Bruno Haible  <bruno@clisp.org>
22403
22404         Support for stripping executables in --enable-relocatable.
22405         * build-aux/install-reloc: Expect one more argument, or an environment
22406         variable RELOC_STRIP_PROG. If set, strip the destination program and
22407         its wrapper.
22408         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
22409         RELOC_STRIP_PROG.
22410         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
22411         to set RELOCATABLE_STRIP.
22412         * NEWS: Mention the new Makefile requirement.
22413
22414 2009-01-17  Bruno Haible  <bruno@clisp.org>
22415
22416         * build-aux/install-reloc: Remove debugging information left over by
22417         C compiler on MacOS X.
22418
22419 2009-01-17  Bruno Haible  <bruno@clisp.org>
22420
22421         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
22422         * lib/progreloc.c (find_executable): Fix type of pointer passed to
22423         _NSGetExecutablePath.
22424
22425 2009-01-16  Jim Meyering  <meyering@redhat.com>
22426
22427         strerror: avoid warnings about discarding "const"
22428         * lib/strerror.c (rpl_strerror): Instead of returning a const
22429         string from each and every "case", use a variable, and add a single
22430         cast after the switch.
22431
22432 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
22433
22434         * lib/arpa_inet.in.h: Add extern "C" block for C++.
22435
22436 2009-01-16  Bruno Haible  <bruno@clisp.org>
22437
22438         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
22439         array initializer syntax that also works in C++ mode.
22440         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22441
22442 2009-01-16  Jim Meyering  <meyering@redhat.com>
22443
22444         poll: suppress a warning
22445         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
22446         to ignore "...unsigned expression < 0 is always false" warnings.
22447
22448 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
22449
22450         poll: remove declarations of unused variables
22451         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
22452         sockbuf and optlen.
22453
22454 2009-01-15  Bruno Haible  <bruno@clisp.org>
22455
22456         Make fflush-after-ungetc POSIX compliant on BSD systems.
22457         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
22458         (clear_ungetc_buffer): Implement also for other systems.
22459         (rpl_fflush): On glibc systems, invoke
22460         clear_ungetc_buffer_preserving_position. Otherwise, invoke
22461         clear_ungetc_buffer after fetching the stream's position, not before.
22462
22463 2009-01-15  Bruno Haible  <bruno@clisp.org>
22464
22465         Make fflush-after-ungetc POSIX compliant on glibc systems.
22466         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
22467         after ungetc.
22468         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
22469         (rpl_fflush): On glibc systems, simply call the system's fflush
22470         function after clearing the ungetc buffer.
22471         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
22472         Instead, lseek only to the end of file, then use the system's fseeko
22473         for the rest. On glibc systems, reset the EOF indicator bit.
22474
22475 2009-01-15  Jim Meyering  <meyering@redhat.com>
22476
22477         openmp.m4: revert quote-adding change, for portability to older autoconf
22478         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
22479         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
22480         Simon Josefsson noticed the problem when using autoconf-2.61.
22481
22482 2009-01-15  Bruno Haible  <bruno@clisp.org>
22483
22484         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
22485         * tests/test-fflush2.c (ASSERT): Always fail.
22486         (main): Add two tests for fflush() after ungetc(), taking into account
22487         the Austin Group's clarification.
22488         Suggested by Eric Blake.
22489
22490 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
22491
22492         mktime.m4: remove K&R-style function prototypes
22493         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
22494         for the Sun C++ compiler.
22495
22496 2009-01-14  Bruno Haible  <bruno@clisp.org>
22497
22498         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
22499         while including <wchar.h>.
22500         * lib/wchar.in.h: In two particular situations on HP-UX, include only
22501         the system's <wchar.h> file.
22502         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22503
22504 2009-01-14  Bruno Haible  <bruno@clisp.org>
22505
22506         * m4/csharp.m4: Don't mention gettext on the serial number line.
22507         * m4/csharpexec.m4: Likewise.
22508         * m4/eaccess.m4: Likewise.
22509         * m4/javaexec.m4: Likewise.
22510         * m4/sig_atomic_t.m4: Likewise.
22511         * m4/tmpdir.m4: Likewise.
22512         * m4/intldir.m4: Bump gettext version.
22513         * m4/lib-ld.m4: Likewise.
22514
22515 2009-01-14  Bruno Haible  <bruno@clisp.org>
22516
22517         * lib/progname.c (set_program_name): Add more comments.
22518         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
22519
22520 2009-01-14  Simon Josefsson  <simon@josefsson.org>
22521
22522         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
22523         were sys/stat.h does not define it.
22524
22525 2009-01-14  Jim Meyering  <meyering@redhat.com>
22526
22527         many *.m4 files: improve m4 quoting
22528         99% of this change was performed by running the following commands:
22529         git ls-files | grep '\.m4$' | xargs perl -pi \
22530           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
22531           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
22532           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
22533           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
22534         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
22535         The remainder were to add Copyright dates, increment serial numbers,
22536         undo some changes in comments, exclude m4/intl.m4, and add quotes
22537         around the "1" in ",1" where the unusual spacing prohibited the
22538         above regexps from doing the job.  For more details, see
22539         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
22540         * m4/acl.m4: Modified.
22541         * m4/afs.m4: Likewise.
22542         * m4/alloca.m4: Likewise.
22543         * m4/argp.m4: Likewise.
22544         * m4/argz.m4: Likewise.
22545         * m4/atexit.m4: Likewise.
22546         * m4/bison-i18n.m4: Likewise.
22547         * m4/bison.m4: Likewise.
22548         * m4/byteswap.m4: Likewise.
22549         * m4/c-stack.m4: Likewise.
22550         * m4/c-strtod.m4: Likewise.
22551         * m4/calloc.m4: Likewise.
22552         * m4/canonicalize-lgpl.m4: Likewise.
22553         * m4/chown.m4: Likewise.
22554         * m4/clock_time.m4: Likewise.
22555         * m4/codeset.m4: Likewise.
22556         * m4/copy-file.m4: Likewise.
22557         * m4/csharp.m4: Likewise.
22558         * m4/csharpcomp.m4: Likewise.
22559         * m4/csharpexec.m4: Likewise.
22560         * m4/d-ino.m4: Likewise.
22561         * m4/d-type.m4: Likewise.
22562         * m4/dirfd.m4: Likewise.
22563         * m4/double-slash-root.m4: Likewise.
22564         * m4/eaccess.m4: Likewise.
22565         * m4/eealloc.m4: Likewise.
22566         * m4/environ.m4: Likewise.
22567         * m4/errno_h.m4: Likewise.
22568         * m4/euidaccess.m4: Likewise.
22569         * m4/execute.m4: Likewise.
22570         * m4/fatal-signal.m4: Likewise.
22571         * m4/fchdir.m4: Likewise.
22572         * m4/fcntl_h.m4: Likewise.
22573         * m4/fileblocks.m4: Likewise.
22574         * m4/filenamecat.m4: Likewise.
22575         * m4/findprog.m4: Likewise.
22576         * m4/flexmember.m4: Likewise.
22577         * m4/fnmatch.m4: Likewise.
22578         * m4/fopen.m4: Likewise.
22579         * m4/fpending.m4: Likewise.
22580         * m4/fprintf-posix.m4: Likewise.
22581         * m4/free.m4: Likewise.
22582         * m4/frexp.m4: Likewise.
22583         * m4/frexpl.m4: Likewise.
22584         * m4/fsusage.m4: Likewise.
22585         * m4/ftruncate.m4: Likewise.
22586         * m4/gc-camellia.m4: Likewise.
22587         * m4/gc-random.m4: Likewise.
22588         * m4/gc.m4: Likewise.
22589         * m4/getaddrinfo.m4: Likewise.
22590         * m4/getcwd-abort-bug.m4: Likewise.
22591         * m4/getcwd-path-max.m4: Likewise.
22592         * m4/getdate.m4: Likewise.
22593         * m4/getdomainname.m4: Likewise.
22594         * m4/getgroups.m4: Likewise.
22595         * m4/gethostname.m4: Likewise.
22596         * m4/gethrxtime.m4: Likewise.
22597         * m4/getline.m4: Likewise.
22598         * m4/getloadavg.m4: Likewise.
22599         * m4/getndelim2.m4: Likewise.
22600         * m4/getpass.m4: Likewise.
22601         * m4/gettext.m4: Likewise.
22602         * m4/gettime.m4: Likewise.
22603         * m4/gettimeofday.m4: Likewise.
22604         * m4/gnulib-common.m4: Likewise.
22605         * m4/group-member.m4: Likewise.
22606         * m4/host-os.m4: Likewise.
22607         * m4/iconv.m4: Likewise.
22608         * m4/iconv_open.m4: Likewise.
22609         * m4/inet_ntop.m4: Likewise.
22610         * m4/inet_pton.m4: Likewise.
22611         * m4/inline.m4: Likewise.
22612         * m4/intldir.m4: Likewise.
22613         * m4/intlmacosx.m4: Likewise.
22614         * m4/intmax.m4: Likewise.
22615         * m4/intmax_t.m4: Likewise.
22616         * m4/inttypes.m4: Likewise.
22617         * m4/inttypes_h.m4: Likewise.
22618         * m4/inttypes-pri.m4: Likewise.
22619         * m4/isapipe.m4: Likewise.
22620         * m4/isnand.m4: Likewise.
22621         * m4/isnanf.m4: Likewise.
22622         * m4/isnanl.m4: Likewise.
22623         * m4/javacomp.m4: Likewise.
22624         * m4/javaexec.m4: Likewise.
22625         * m4/jm-winsz1.m4: Likewise.
22626         * m4/jm-winsz2.m4: Likewise.
22627         * m4/lchown.m4: Likewise.
22628         * m4/lcmessage.m4: Likewise.
22629         * m4/ldexpl.m4: Likewise.
22630         * m4/lib-ld.m4: Likewise.
22631         * m4/lib-link.m4: Likewise.
22632         * m4/libsigsegv.m4: Likewise.
22633         * m4/link-follow.m4: Likewise.
22634         * m4/localcharset.m4: Likewise.
22635         * m4/locale-fr.m4: Likewise.
22636         * m4/locale-ja.m4: Likewise.
22637         * m4/locale-tr.m4: Likewise.
22638         * m4/locale-zh.m4: Likewise.
22639         * m4/lock.m4: Likewise.
22640         * m4/longlong.m4: Likewise.
22641         * m4/ls-mntd-fs.m4: Likewise.
22642         * m4/lstat.m4: Likewise.
22643         * m4/malloc.m4: Likewise.
22644         * m4/mathl.m4: Likewise.
22645         * m4/mbrtowc.m4: Likewise.
22646         * m4/mbstate_t.m4: Likewise.
22647         * m4/mbswidth.m4: Likewise.
22648         * m4/memchr.m4: Likewise.
22649         * m4/memcmp.m4: Likewise.
22650         * m4/memcpy.m4: Likewise.
22651         * m4/memmem.m4: Likewise.
22652         * m4/memmove.m4: Likewise.
22653         * m4/mempcpy.m4: Likewise.
22654         * m4/memrchr.m4: Likewise.
22655         * m4/memset.m4: Likewise.
22656         * m4/minmax.m4: Likewise.
22657         * m4/mkdir-slash.m4: Likewise.
22658         * m4/mkdtemp.m4: Likewise.
22659         * m4/mktime.m4: Likewise.
22660         * m4/mmap-anon.m4: Likewise.
22661         * m4/mountlist.m4: Likewise.
22662         * m4/nanosleep.m4: Likewise.
22663         * m4/nls.m4: Likewise.
22664         * m4/nocrash.m4: Likewise.
22665         * m4/open.m4: Likewise.
22666         * m4/openat.m4: Likewise.
22667         * m4/openmp.m4: Likewise.
22668         * m4/pathmax.m4: Likewise.
22669         * m4/perl.m4: Likewise.
22670         * m4/physmem.m4: Likewise.
22671         * m4/pipe.m4: Likewise.
22672         * m4/po.m4: Likewise.
22673         * m4/poll.m4: Likewise.
22674         * m4/posixtm.m4: Likewise.
22675         * m4/posixver.m4: Likewise.
22676         * m4/printf-frexp.m4: Likewise.
22677         * m4/printf-frexpl.m4: Likewise.
22678         * m4/printf-posix.m4: Likewise.
22679         * m4/printf-posix-rpl.m4: Likewise.
22680         * m4/printf.m4: Likewise.
22681         * m4/progtest.m4: Likewise.
22682         * m4/putenv.m4: Likewise.
22683         * m4/readline.m4: Likewise.
22684         * m4/readlink.m4: Likewise.
22685         * m4/readutmp.m4: Likewise.
22686         * m4/realloc.m4: Likewise.
22687         * m4/regex.m4: Likewise.
22688         * m4/relocatable.m4: Likewise.
22689         * m4/relocatable-lib.m4: Likewise.
22690         * m4/rename-dest-slash.m4: Likewise.
22691         * m4/rename.m4: Likewise.
22692         * m4/rmdir-errno.m4: Likewise.
22693         * m4/rmdir.m4: Likewise.
22694         * m4/roundf.m4: Likewise.
22695         * m4/roundl.m4: Likewise.
22696         * m4/rpmatch.m4: Likewise.
22697         * m4/save-cwd.m4: Likewise.
22698         * m4/selinux-selinux-h.m4: Likewise.
22699         * m4/setenv.m4: Likewise.
22700         * m4/settime.m4: Likewise.
22701         * m4/sig2str.m4: Likewise.
22702         * m4/sig_atomic_t.m4: Likewise.
22703         * m4/signalblocking.m4: Likewise.
22704         * m4/signbit.m4: Likewise.
22705         * m4/sigpipe.m4: Likewise.
22706         * m4/sockets.m4: Likewise.
22707         * m4/sockpfaf.m4: Likewise.
22708         * m4/st_dm_mode.m4: Likewise.
22709         * m4/stat-time.m4: Likewise.
22710         * m4/stdbool.m4: Likewise.
22711         * m4/stdint.m4: Likewise.
22712         * m4/stdint_h.m4: Likewise.
22713         * m4/stpcpy.m4: Likewise.
22714         * m4/stpncpy.m4: Likewise.
22715         * m4/strcase.m4: Likewise.
22716         * m4/strchrnul.m4: Likewise.
22717         * m4/strcspn.m4: Likewise.
22718         * m4/strdup.m4: Likewise.
22719         * m4/strftime.m4: Likewise.
22720         * m4/strndup.m4: Likewise.
22721         * m4/strnlen.m4: Likewise.
22722         * m4/strpbrk.m4: Likewise.
22723         * m4/strptime.m4: Likewise.
22724         * m4/strsep.m4: Likewise.
22725         * m4/strtod.m4: Likewise.
22726         * m4/strtoimax.m4: Likewise.
22727         * m4/strtok_r.m4: Likewise.
22728         * m4/strtol.m4: Likewise.
22729         * m4/strtoll.m4: Likewise.
22730         * m4/strtoul.m4: Likewise.
22731         * m4/strtoull.m4: Likewise.
22732         * m4/strtoumax.m4: Likewise.
22733         * m4/strverscmp.m4: Likewise.
22734         * m4/threadlib.m4: Likewise.
22735         * m4/timegm.m4: Likewise.
22736         * m4/tm_gmtoff.m4: Likewise.
22737         * m4/tmpdir.m4: Likewise.
22738         * m4/tmpfile.m4: Likewise.
22739         * m4/tzset.m4: Likewise.
22740         * m4/uintmax_t.m4: Likewise.
22741         * m4/unlinkdir.m4: Likewise.
22742         * m4/unlocked-io.m4: Likewise.
22743         * m4/uptime.m4: Likewise.
22744         * m4/userspec.m4: Likewise.
22745         * m4/utimbuf.m4: Likewise.
22746         * m4/utime.m4: Likewise.
22747         * m4/utimes-null.m4: Likewise.
22748         * m4/utimes.m4: Likewise.
22749         * m4/vararrays.m4: Likewise.
22750         * m4/vasnprintf.m4: Likewise.
22751         * m4/vfprintf-posix.m4: Likewise.
22752         * m4/vprintf-posix.m4: Likewise.
22753         * m4/wait-process.m4: Likewise.
22754         * m4/wchar_t.m4: Likewise.
22755         * m4/wint_t.m4: Likewise.
22756         * m4/write-any-file.m4: Likewise.
22757         * m4/yield.m4: Likewise.
22758
22759 2009-01-13  Bruno Haible  <bruno@clisp.org>
22760
22761         Avoid test-copy-file.sh failures when ACL support insufficient.
22762         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
22763         TESTS_ENVIRONMENT.
22764         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
22765         Reported by Jim Meyering.
22766
22767 2009-01-13  Bruno Haible  <bruno@clisp.org>
22768
22769         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
22770         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
22771         * modules/unistdio/u8-printf-parse (Files): Likewise.
22772         * modules/unistdio/u32-printf-parse (Files): Likewise.
22773         * modules/unistdio/ulc-printf-parse (Files): Likewise.
22774
22775 2009-01-13  Simon Josefsson  <simon@josefsson.org>
22776
22777         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
22778         and m4/inttypes_h.m4 too.
22779
22780 2009-01-12  Eric Blake  <ebb9@byu.net>
22781
22782         tests: IRIX 6.2 cc can't compile -0.0 into .data
22783         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
22784         rather than at compile-time.
22785         * tests/test-floorl.c (minus_zero): Likewise.
22786         * tests/test-frexpl.c (minus_zero): Likewise.
22787         * tests/test-isnan.c (minus_zerol): Likewise.
22788         * tests/test-isnanl.h (minus_zero): Likewise.
22789         * tests/test-ldexpl.c (minus_zero): Likewise.
22790         * tests/test-roundl.c (minus_zero): Likewise.
22791         * tests/test-signbit.c (minus_zerol): Likewise.
22792         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
22793         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
22794         * tests/test-truncl.c (minus_zero): Likewise.
22795         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
22796         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
22797         Reported by Tom G. Christensen and Nelson H. F. Beebe.
22798
22799 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
22800
22801         regex: fix glibc bug 9697
22802         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
22803         handling.
22804
22805 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
22806
22807         regex: fix glibc bug 697
22808         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
22809         being NULL also if there are no backreferences.
22810
22811 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
22812
22813         regex: merge glibc changes
22814         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
22815         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
22816         re_string_skip_chars, re_string_reconstruct): Likewise.
22817         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
22818
22819 2009-01-07  Jim Meyering  <meyering@redhat.com>
22820
22821         poll: filter through cppi
22822         * lib/poll.c: Indent cpp directives to reflect nesting.
22823
22824 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
22825
22826         poll: don't return uninitialized
22827         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
22828
22829 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
22830
22831         avoid compile failure on AIX 6.1
22832         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
22833         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
22834
22835 2009-01-04  Jim Meyering  <meyering@redhat.com>
22836
22837         remove duplicate inclusion of <stdio.h>
22838         * tests/test-fprintf-posix.c: Likewise.
22839         * tests/test-printf-posix.c: Likewise.
22840         * tests/test-snprintf-posix.c: Likewise.
22841         * tests/test-sprintf-posix.c: Likewise.
22842         * tests/test-vasprintf-posix.c: Likewise.
22843         * tests/test-vfprintf-posix.c: Likewise.
22844         * tests/test-vprintf-posix.c: Likewise.
22845         * tests/test-vsnprintf-posix.c: Likewise.
22846         * tests/test-vsprintf-posix.c: Likewise.
22847
22848 2009-01-03  Jim Meyering  <meyering@redhat.com>
22849
22850         gnulib-tool: fix sed-based filtering
22851         * gnulib-tool (func_filter_filelist): Remove extra backslash
22852         in sed_fff_filter definition.
22853
22854 2009-01-02  Jim Meyering  <meyering@redhat.com>
22855
22856         strftime: avoid compilation failure on Solaris 2.6
22857         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
22858         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
22859         Don't #define mbrlen or mbsinit, since now they're guaranteed to
22860         be available.  Reported by Tom G. Christensen.  Details in
22861         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
22862
22863 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22864             Bruno Haible  <bruno@clisp.org>
22865
22866         Speed up gnulib-tool by doing more string processing through shell
22867         built-ins.
22868         * gnulib-tool (fast_func_append): New variable.
22869         (func_remove_prefix, func_remove_suffix): New functions.
22870         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
22871         (func_filter_filelist): New function.
22872         (func_get_dependencies): Use func_remove_suffix instead of sed.
22873         (func_get_automake_snippet): Use func_filter_filelist instead of a
22874         subshell and sed invocation.
22875
22876 2009-01-01  Bruno Haible  <bruno@clisp.org>
22877
22878         Fix a security bug.
22879         * gnulib-tool (func_import, import, update): Don't allow the characters
22880         '"', '$', '`', '\' in macro arguments that become part of commands that
22881         are evaluated.
22882
22883 2009-01-01  Bruno Haible  <bruno@clisp.org>
22884
22885         * gnulib-tool (func_reset_sigpipe): Add more comments.
22886
22887 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22888
22889         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
22890         func_emit_tests_Makefile_am, func_import): Abort loops early if we
22891         already know the answer.
22892
22893 2009-01-01  Jim Meyering  <meyering@redhat.com>
22894
22895         * lib/version-etc.c (version_etc_va): Update copyright year.
22896
22897 2008-12-30  Bruno Haible  <bruno@clisp.org>
22898
22899         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
22900         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
22901         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
22902
22903 2008-12-29  Eric Blake  <ebb9@byu.net>
22904
22905         multiarch: avoid autoconf AC_REQUIRE bug
22906         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
22907         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
22908         2.63 and older.
22909         Reported by Bruno Haible, and analyzed in
22910         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
22911
22912 2008-12-29  Bruno Haible  <bruno@clisp.org>
22913
22914         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
22915         files in subdirectories correctly.
22916         Reported by Ralf Wildenhues.
22917
22918 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22919
22920         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
22921         rather than 'join FILE -', for Solaris join.
22922
22923 2008-12-29  Bruno Haible  <bruno@clisp.org>
22924
22925         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
22926         quoting.
22927         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
22928         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
22929         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
22930         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
22931         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
22932         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
22933         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
22934         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
22935         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
22936         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
22937         * m4/nls.m4 (AM_NLS): Likewise.
22938         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
22939         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
22940         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
22941         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
22942         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
22943         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
22944         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
22945         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
22946         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
22947         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
22948         * m4/xsize.m4 (gl_XSIZE): Likewise.
22949         Suggested by Jim Meyering.
22950
22951 2008-11-17  Bruce Korb  <bkorb@gnu.org>
22952
22953         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
22954         * lib/parse-duration.c: use a switch instead of cascading if's.
22955
22956 2008-12-29  Eric Blake  <ebb9@byu.net>
22957
22958         wchar.h: supply WEOF on Irix 5.3
22959         * lib/wchar.in.h (wint_t): Also supply WEOF.
22960         * lib/wctype.in.h (wint_t): Likewise.
22961         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
22962         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
22963         Reported by Tom G. Christensen.
22964
22965 2008-12-26  Bruno Haible  <bruno@clisp.org>
22966
22967         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
22968         i486, i586, i686.
22969
22970 2008-12-26  Bruno Haible  <bruno@clisp.org>
22971
22972         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
22973
22974 2008-12-26  Bruno Haible  <bruno@clisp.org>
22975
22976         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
22977         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
22978         not __STDC_CONSTANT_MACROS.
22979         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
22980
22981 2008-12-25  Bruno Haible  <bruno@clisp.org>
22982
22983         Add support for universal builds to vasnprintf.
22984         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
22985         universal builds, guess no.
22986         * modules/vasnprintf-posix (Depends-on): Add multiarch.
22987         * modules/vasprintf-posix (Depends-on): Likewise.
22988         * modules/fprintf-posix (Depends-on): Likewise.
22989         * modules/vfprintf-posix (Depends-on): Likewise.
22990         * modules/snprintf-posix (Depends-on): Likewise.
22991         * modules/vsnprintf-posix (Depends-on): Likewise.
22992         * modules/sprintf-posix (Depends-on): Likewise.
22993         * modules/vsprintf-posix (Depends-on): Likewise.
22994         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
22995         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
22996         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
22997         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
22998         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
22999         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
23000         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
23001
23002         Add support for universal builds to <inttypes.h>.
23003         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
23004         _SCNu64_PREFIX): In Apple
23005         universal builds, define directly, using _LP64.
23006         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
23007         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
23008         * modules/inttypes (Depends-on): Add multiarch.
23009         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
23010
23011         Add support for universal builds to <stdint.h>.
23012         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
23013         universal builds, define directly, using _LP64.
23014         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
23015         Apple universal builds, don't test for the size and suffix of ptrdiff_t
23016         and size_t.
23017         * modules/stdint (Depends-on): Add multiarch.
23018         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
23019
23020         New module 'multiarch'.
23021         * modules/multiarch: New file.
23022         * m4/multiarch.m4: New file.
23023
23024 2008-12-25  Bruno Haible  <bruno@clisp.org>
23025
23026         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
23027
23028 2008-12-25  Bruno Haible  <bruno@clisp.org>
23029
23030         * modules/btowc (License): Relicense under LGPLv2+.
23031         * modules/mbsinit (License): Likewise.
23032         * modules/mbrtowc (License): Likewise.
23033         * modules/wcrtomb (License): Likewise.
23034         * modules/streq (License): Likewise.
23035         Reported by David Lutterkort <lutter@redhat.com>.
23036
23037 2008-12-23  Bruno Haible  <bruno@clisp.org>
23038
23039         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
23040
23041 2008-12-23  Bruno Haible  <bruno@clisp.org>
23042
23043         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
23044         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
23045         GETADDRINFO_LIB, not in LIBS.
23046         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
23047         * modules/canon-host (Link): Likewise.
23048         * NEWS: Mention the change.
23049         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
23050         GETADDRINFO_LIB.
23051
23052 2008-12-22  Bruno Haible  <bruno@clisp.org>
23053
23054         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
23055         * doc/posix-functions/iswalpha_l.texi: Likewise.
23056         * doc/posix-functions/iswblank_l.texi: Likewise.
23057         * doc/posix-functions/iswcntrl_l.texi: Likewise.
23058         * doc/posix-functions/iswctype_l.texi: Likewise.
23059         * doc/posix-functions/iswdigit_l.texi: Likewise.
23060         * doc/posix-functions/iswgraph_l.texi: Likewise.
23061         * doc/posix-functions/iswlower_l.texi: Likewise.
23062         * doc/posix-functions/iswprint_l.texi: Likewise.
23063         * doc/posix-functions/iswpunct_l.texi: Likewise.
23064         * doc/posix-functions/iswspace_l.texi: Likewise.
23065         * doc/posix-functions/iswupper_l.texi: Likewise.
23066         * doc/posix-functions/iswxdigit_l.texi: Likewise.
23067         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
23068         * doc/posix-functions/open_wmemstream.texi: Likewise.
23069         * doc/posix-functions/swscanf.texi: Likewise.
23070         * doc/posix-functions/towctrans_l.texi: Likewise.
23071         * doc/posix-functions/towlower.texi: Likewise.
23072         * doc/posix-functions/towlower_l.texi: Likewise.
23073         * doc/posix-functions/towupper.texi: Likewise.
23074         * doc/posix-functions/towupper_l.texi: Likewise.
23075         * doc/posix-functions/vfwprintf.texi: Likewise.
23076         * doc/posix-functions/vfwscanf.texi: Likewise.
23077         * doc/posix-functions/vswscanf.texi: Likewise.
23078         * doc/posix-functions/vwprintf.texi: Likewise.
23079         * doc/posix-functions/vwscanf.texi: Likewise.
23080         * doc/posix-functions/wcpcpy.texi: Likewise.
23081         * doc/posix-functions/wcpncpy.texi: Likewise.
23082         * doc/posix-functions/wcscasecmp.texi: Likewise.
23083         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
23084         * doc/posix-functions/wcscoll_l.texi: Likewise.
23085         * doc/posix-functions/wcsdup.texi: Likewise.
23086         * doc/posix-functions/wcsncasecmp.texi: Likewise.
23087         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
23088         * doc/posix-functions/wcsnlen.texi: Likewise.
23089         * doc/posix-functions/wcsnrtombs.texi: Likewise.
23090         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
23091         * doc/posix-functions/wctrans_l.texi: Likewise.
23092         * doc/posix-functions/wctype_l.texi: Likewise.
23093         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
23094         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
23095         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
23096         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
23097         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
23098         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
23099         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
23100         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
23101         * doc/glibc-functions/wcschrnul.texi: Likewise.
23102         * doc/glibc-functions/wcsftime_l.texi: Likewise.
23103         * doc/glibc-functions/wcstod_l.texi: Likewise.
23104         * doc/glibc-functions/wcstof_l.texi: Likewise.
23105         * doc/glibc-functions/wcstol_l.texi: Likewise.
23106         * doc/glibc-functions/wcstold_l.texi: Likewise.
23107         * doc/glibc-functions/wcstoll_l.texi: Likewise.
23108         * doc/glibc-functions/wcstoq.texi: Likewise.
23109         * doc/glibc-functions/wcstoul_l.texi: Likewise.
23110         * doc/glibc-functions/wcstoull_l.texi: Likewise.
23111         * doc/glibc-functions/wcstouq.texi: Likewise.
23112         * doc/glibc-functions/wmempcpy.texi: Likewise.
23113
23114 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
23115             Eric Blake  <ebb9@byu.net>
23116             Paolo Bonzini  <bonzini@gnu.org>
23117             Bruno Haible  <bruno@clisp.org>
23118
23119         Make c-stack work on Haiku.
23120         * lib/c-stack.c (SA_ONSTACK): Define fallback.
23121         (c_stack_action): Use SA_ONSTACK flag.
23122
23123 2008-12-22  Bruno Haible  <bruno@clisp.org>
23124
23125         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
23126
23127 2008-12-22  Bruno Haible  <bruno@clisp.org>
23128
23129         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
23130         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
23131         being overridden.
23132         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
23133         New macros.
23134         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
23135         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
23136         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
23137         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
23138
23139 2008-12-22  Bruno Haible  <bruno@clisp.org>
23140
23141         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
23142         from test code.
23143
23144 2008-12-22  Eric Blake  <ebb9@byu.net>
23145
23146         Avoid gcc warnings on cygwin.
23147         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
23148         Avoid unused variable.
23149         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
23150         Likewise.
23151
23152 2008-12-22  Bruno Haible  <bruno@clisp.org>
23153
23154         Remove HAVE_MBRTOWC conditionals.
23155         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
23156         (mbscasecmp): Assume mbrtowc function.
23157         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
23158         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
23159         * lib/mbschr.c: Include mbuiter.h unconditionally.
23160         (mbschr): Assume mbrtowc function.
23161         * lib/mbscspn.c: Include mbuiter.h unconditionally.
23162         (mbscspn): Assume mbrtowc function.
23163         * lib/mbslen.c: Include mbuiter.h unconditionally.
23164         (mbslen): Assume mbrtowc function.
23165         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
23166         (mbsncasecmp): Assume mbrtowc function.
23167         * lib/mbsnlen.c: Include mbiter.h unconditionally.
23168         (mbsnlen): Assume mbrtowc function.
23169         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
23170         (mbspbrk): Assume mbrtowc function.
23171         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
23172         (mbspcasecmp): Assume mbrtowc function.
23173         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
23174         (mbsrchr): Assume mbrtowc function.
23175         * lib/mbssep.c: Include mbuiter.h unconditionally.
23176         (mbssep): Assume mbrtowc function.
23177         * lib/mbsspn.c: Include mbuiter.h unconditionally.
23178         (mbsspn): Assume mbrtowc function.
23179         * lib/mbsstr.c: Include mbuiter.h unconditionally.
23180         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
23181         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
23182         (mbstok_r): Assume mbrtowc function.
23183         * lib/propername.c: Include mbuiter.h unconditionally.
23184         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
23185         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
23186         (trim2): Assume mbrtowc function.
23187         * lib/mbswidth.c (mbsinit): Remove fallback definition.
23188         (mbsnwidth): Assume mbrtowc function.
23189         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
23190         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
23191         fallback definitions.
23192         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
23193
23194 2008-12-22  Bruno Haible  <bruno@clisp.org>
23195
23196         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
23197
23198 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
23199
23200         * modules/regex: Request emulations for the mb*/wc* functions we need.
23201         * m4/regex.m4: Don't look for those functions here.
23202         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
23203
23204 2008-12-22  Bruno Haible  <bruno@clisp.org>
23205
23206         * modules/fnmatch (Depends-on): Remove duplicated dependency.
23207
23208 2008-12-21  Bruno Haible  <bruno@clisp.org>
23209
23210         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
23211         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
23212         (Include): Remove conditionalization.
23213         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
23214         (Include): Remove conditionalization.
23215         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
23216         (Include): Remove conditionalization.
23217         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
23218         * m4/mbfile.m4 (gl_MBFILE): Likewise.
23219         * NEWS: Mention the change.
23220         Reported by Alan Hourihane <alanh@fairlite.co.uk>
23221         via Sergey Poznyakoff <gray@gnu.org.ua>.
23222
23223 2008-12-21  Bruno Haible  <bruno@clisp.org>
23224
23225         * MODULES.html.sh (Extended multibyte and wide character utilities
23226         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
23227         wcrtomb, wcsrtombs.
23228         (Support for systems lacking POSIX:2008): Add accept, bind, close,
23229         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
23230         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
23231         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
23232
23233 2008-12-21  Bruno Haible  <bruno@clisp.org>
23234
23235         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
23236
23237 2008-12-21  Bruno Haible  <bruno@clisp.org>
23238
23239         * modules/wcsnrtombs-tests: New file.
23240         * tests/test-wcsnrtombs1.sh: New file.
23241         * tests/test-wcsnrtombs2.sh: New file.
23242         * tests/test-wcsnrtombs3.sh: New file.
23243         * tests/test-wcsnrtombs4.sh: New file.
23244         * tests/test-wcsnrtombs.c: New file.
23245
23246         New module 'wcsnrtombs'.
23247         * lib/wchar.in.h (wcsnrtombs): New declaration.
23248         * lib/wcsnrtombs.c: New file.
23249         * lib/wcsrtombs-state.c: New file.
23250         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
23251         (internal_state): Remove variable.
23252         * m4/wcsnrtombs.m4: New file.
23253         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
23254         compilation units.
23255         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
23256         HAVE_WCSNRTOMBS.
23257         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
23258         HAVE_WCSNRTOMBS.
23259         * modules/wcsnrtombs: New file.
23260         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
23261         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
23262
23263 2008-12-21  Bruno Haible  <bruno@clisp.org>
23264
23265         * modules/wcsrtombs-tests: New file.
23266         * tests/test-wcsrtombs1.sh: New file.
23267         * tests/test-wcsrtombs2.sh: New file.
23268         * tests/test-wcsrtombs3.sh: New file.
23269         * tests/test-wcsrtombs4.sh: New file.
23270         * tests/test-wcsrtombs.c: New file.
23271
23272         New module 'wcsrtombs'.
23273         * lib/wchar.in.h (wcsrtombs): New declaration.
23274         * lib/wcsrtombs.c: New file.
23275         * m4/wcsrtombs.m4: New file.
23276         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
23277         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
23278         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
23279         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
23280         * modules/wcsrtombs: New file.
23281         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
23282         bugs.
23283
23284 2008-12-21  Bruno Haible  <bruno@clisp.org>
23285
23286         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
23287         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
23288         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
23289         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
23290         if not correct.
23291         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
23292         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
23293         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
23294         m4/locale-zh.m4, m4/codeset.m4.
23295         * doc/posix-functions/wcrtomb.texi: Document the bug.
23296
23297 2008-12-21  Bruno Haible  <bruno@clisp.org>
23298
23299         Work around a btowc() bug on IRIX 6.5.
23300         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
23301         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
23302         REPLACE_WTOBC if not.
23303         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
23304         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
23305         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
23306
23307 2008-12-21  Bruno Haible  <bruno@clisp.org>
23308
23309         * modules/wcrtomb-tests: New file.
23310         * tests/test-wcrtomb.sh: New file.
23311         * tests/test-wcrtomb.c: New file.
23312
23313         New module 'wcrtomb'.
23314         * lib/wchar.in.h (wcrtomb): New declaration.
23315         * lib/wcrtomb.c: New file.
23316         * m4/wcrtomb.m4: New file.
23317         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
23318         HAVE_WCRTOMB.
23319         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
23320         HAVE_WCRTOMB.
23321         * modules/wcrtomb: New file.
23322         * doc/posix-functions/wcrtomb.texi: Mention the new module.
23323
23324 2008-12-21  Bruno Haible  <bruno@clisp.org>
23325
23326         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
23327         * modules/mbsrtowcs (Files): Likewise.
23328         * modules/wctob (Files): Likewise.
23329         * modules/c-strcase-tests (Files): Likewise.
23330         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
23331         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
23332         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
23333         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
23334         * modules/vasnprintf-posix-tests (Files): Likewise.
23335
23336 2008-12-21  William Pursell  <bill.pursell@gmail.com>
23337
23338         gitlog-to-changelog: pass all command-line arguments to git-log
23339         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
23340         it is sometimes convenient to filter the commits in various ways.
23341         gitlog-to-changelog only allows --since to specify a start date,
23342         but git-log itself supports many other filtering mechanisms.
23343         At the moment, I want to filter by branch name.  Rather than
23344         adding a --branch option to gitlog-to-changelog, it seems more
23345         flexible to simply pass all options directly to git-log and let
23346         git do the work.  Notice that this effectively makes --since a
23347         redundant option for gitlog-to-changelog, but removing it would
23348         require current usage to change since calls would then require
23349         an additional '--'.
23350
23351 2008-12-21  Bruno Haible  <bruno@clisp.org>
23352
23353         * modules/mbsnrtowcs-tests: New file.
23354         * tests/test-mbsnrtowcs1.sh: New file.
23355         * tests/test-mbsnrtowcs2.sh: New file.
23356         * tests/test-mbsnrtowcs3.sh: New file.
23357         * tests/test-mbsnrtowcs4.sh: New file.
23358         * tests/test-mbsnrtowcs.c: New file.
23359
23360         New module 'mbsnrtowcs'.
23361         * lib/wchar.in.h (mbsnrtowcs): New declaration.
23362         * lib/mbsnrtowcs.c: New file.
23363         * lib/mbsrtowcs-state.c: New file.
23364         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
23365         (internal_state): Remove variable.
23366         * m4/mbsnrtowcs.m4: New file.
23367         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
23368         compilation units.
23369         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
23370         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
23371         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
23372         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
23373         * modules/mbsnrtowcs: New file.
23374         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
23375         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
23376         portability problem.
23377
23378 2008-12-21  Bruno Haible  <bruno@clisp.org>
23379
23380         Work around mbsrtowcs bug.
23381         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
23382         (gl_FUNC_MBSRTOWCS): Invoke it.
23383         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
23384         m4/locale-zh.m4.
23385         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
23386
23387 2008-12-21  Bruno Haible  <bruno@clisp.org>
23388
23389         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
23390
23391 2008-12-21  Bruno Haible  <bruno@clisp.org>
23392
23393         Update doc for AIX.
23394         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
23395         16-bit wchar_t type.
23396         * doc/posix-functions/btowc.texi: Likewise.
23397         * doc/posix-functions/fgetwc.texi: Likewise.
23398         * doc/posix-functions/fgetws.texi: Likewise.
23399         * doc/posix-functions/fputwc.texi: Likewise.
23400         * doc/posix-functions/fputws.texi: Likewise.
23401         * doc/posix-functions/fwide.texi: Likewise.
23402         * doc/posix-functions/fwprintf.texi: Likewise.
23403         * doc/posix-functions/fwscanf.texi: Likewise.
23404         * doc/posix-functions/getwchar.texi: Likewise.
23405         * doc/posix-functions/getwc.texi: Likewise.
23406         * doc/posix-functions/iswalnum.texi: Likewise.
23407         * doc/posix-functions/iswalpha.texi: Likewise.
23408         * doc/posix-functions/iswblank.texi: Likewise.
23409         * doc/posix-functions/iswcntrl.texi: Likewise.
23410         * doc/posix-functions/iswctype.texi: Likewise.
23411         * doc/posix-functions/iswdigit.texi: Likewise.
23412         * doc/posix-functions/iswgraph.texi: Likewise.
23413         * doc/posix-functions/iswlower.texi: Likewise.
23414         * doc/posix-functions/iswprint.texi: Likewise.
23415         * doc/posix-functions/iswpunct.texi: Likewise.
23416         * doc/posix-functions/iswspace.texi: Likewise.
23417         * doc/posix-functions/iswupper.texi: Likewise.
23418         * doc/posix-functions/iswxdigit.texi: Likewise.
23419         * doc/posix-functions/mbrtowc.texi: Likewise.
23420         * doc/posix-functions/mbsrtowcs.texi: Likewise.
23421         * doc/posix-functions/mbstowcs.texi: Likewise.
23422         * doc/posix-functions/mbtowc.texi: Likewise.
23423         * doc/posix-functions/putwchar.texi: Likewise.
23424         * doc/posix-functions/putwc.texi: Likewise.
23425         * doc/posix-functions/swprintf.texi: Likewise.
23426         * doc/posix-functions/tolower.texi: Likewise.
23427         * doc/posix-functions/toupper.texi: Likewise.
23428         * doc/posix-functions/towctrans.texi: Likewise.
23429         * doc/posix-functions/ungetwc.texi: Likewise.
23430         * doc/posix-functions/vswprintf.texi: Likewise.
23431         * doc/posix-functions/wcrtomb.texi: Likewise.
23432         * doc/posix-functions/wcscat.texi: Likewise.
23433         * doc/posix-functions/wcschr.texi: Likewise.
23434         * doc/posix-functions/wcscmp.texi: Likewise.
23435         * doc/posix-functions/wcscoll.texi: Likewise.
23436         * doc/posix-functions/wcscpy.texi: Likewise.
23437         * doc/posix-functions/wcscspn.texi: Likewise.
23438         * doc/posix-functions/wcsftime.texi: Likewise.
23439         * doc/posix-functions/wcslen.texi: Likewise.
23440         * doc/posix-functions/wcsncat.texi: Likewise.
23441         * doc/posix-functions/wcsncmp.texi: Likewise.
23442         * doc/posix-functions/wcsncpy.texi: Likewise.
23443         * doc/posix-functions/wcspbrk.texi: Likewise.
23444         * doc/posix-functions/wcsrchr.texi: Likewise.
23445         * doc/posix-functions/wcsrtombs.texi: Likewise.
23446         * doc/posix-functions/wcsspn.texi: Likewise.
23447         * doc/posix-functions/wcsstr.texi: Likewise.
23448         * doc/posix-functions/wcstod.texi: Likewise.
23449         * doc/posix-functions/wcstof.texi: Likewise.
23450         * doc/posix-functions/wcstoimax.texi: Likewise.
23451         * doc/posix-functions/wcstok.texi: Likewise.
23452         * doc/posix-functions/wcstold.texi: Likewise.
23453         * doc/posix-functions/wcstoll.texi: Likewise.
23454         * doc/posix-functions/wcstol.texi: Likewise.
23455         * doc/posix-functions/wcstombs.texi: Likewise.
23456         * doc/posix-functions/wcstoull.texi: Likewise.
23457         * doc/posix-functions/wcstoul.texi: Likewise.
23458         * doc/posix-functions/wcstoumax.texi: Likewise.
23459         * doc/posix-functions/wcswidth.texi: Likewise.
23460         * doc/posix-functions/wcsxfrm.texi: Likewise.
23461         * doc/posix-functions/wctob.texi: Likewise.
23462         * doc/posix-functions/wctomb.texi: Likewise.
23463         * doc/posix-functions/wctrans.texi: Likewise.
23464         * doc/posix-functions/wctype.texi: Likewise.
23465         * doc/posix-functions/wcwidth.texi: Likewise.
23466         * doc/posix-functions/wmemchr.texi: Likewise.
23467         * doc/posix-functions/wmemcmp.texi: Likewise.
23468         * doc/posix-functions/wmemcpy.texi: Likewise.
23469         * doc/posix-functions/wmemmove.texi: Likewise.
23470         * doc/posix-functions/wmemset.texi: Likewise.
23471         * doc/posix-functions/wprintf.texi: Likewise.
23472         * doc/posix-functions/wscanf.texi: Likewise.
23473
23474 2008-12-21  Bruno Haible  <bruno@clisp.org>
23475
23476         Update doc for HP-UX 11.11.
23477         * doc/posix-functions/btowc.texi: Clarify that the function is missing
23478         in HP-UX version 11.00, not in all versions of HP-UX 11.
23479         * doc/posix-functions/fwide.texi: Likewise.
23480         * doc/posix-functions/fwprintf.texi: Likewise.
23481         * doc/posix-functions/fwscanf.texi: Likewise.
23482         * doc/posix-functions/inet_ntop.texi: Likewise.
23483         * doc/posix-functions/inet_pton.texi: Likewise.
23484         * doc/posix-functions/mbrlen.texi: Likewise.
23485         * doc/posix-functions/mbrtowc.texi: Likewise.
23486         * doc/posix-functions/mbsinit.texi: Likewise.
23487         * doc/posix-functions/mbsrtowcs.texi: Likewise.
23488         * doc/posix-functions/swprintf.texi: Likewise.
23489         * doc/posix-functions/swscanf.texi: Likewise.
23490         * doc/posix-functions/towctrans.texi: Likewise.
23491         * doc/posix-functions/vfwprintf.texi: Likewise.
23492         * doc/posix-functions/vswprintf.texi: Likewise.
23493         * doc/posix-functions/vwprintf.texi: Likewise.
23494         * doc/posix-functions/wcrtomb.texi: Likewise.
23495         * doc/posix-functions/wcsrtombs.texi: Likewise.
23496         * doc/posix-functions/wcsstr.texi: Likewise.
23497         * doc/posix-functions/wctob.texi: Likewise.
23498         * doc/posix-functions/wctrans.texi: Likewise.
23499         * doc/posix-functions/wmemchr.texi: Likewise.
23500         * doc/posix-functions/wmemcmp.texi: Likewise.
23501         * doc/posix-functions/wmemcpy.texi: Likewise.
23502         * doc/posix-functions/wmemmove.texi: Likewise.
23503         * doc/posix-functions/wmemset.texi: Likewise.
23504         * doc/posix-functions/wprintf.texi: Likewise.
23505         * doc/posix-functions/wscanf.texi: Likewise.
23506
23507 2008-12-21  Bruno Haible  <bruno@clisp.org>
23508
23509         Work around a portability problem.
23510         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
23511         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
23512
23513 2008-12-20  Bruno Haible  <bruno@clisp.org>
23514
23515         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
23516         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
23517         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
23518         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
23519         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
23520
23521         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
23522         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
23523         set.
23524         (GNULIB_defined_mbstate_t): New macro.
23525         (mbsinit): Redefine if REPLACE_MBSINIT is set.
23526         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
23527         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
23528         reuses the system's mbrtowc function but works around the bugs.
23529         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
23530         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
23531         macros.
23532         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
23533         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
23534         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
23535         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
23536         REPLACE_MBSINIT if mbsinit needs to be overridden.
23537         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
23538         REPLACE_MBSINIT, REPLACE_MBRTOWC.
23539         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
23540         REPLACE_MBSINIT, REPLACE_MBRTOWC.
23541         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
23542         m4/locale-zh.m4.
23543         (Depends): Add mbsinit.
23544         * modules/mbsinit (Depends): Add mbrtowc.
23545         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
23546
23547 2008-12-20  Bruno Haible  <bruno@clisp.org>
23548
23549         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
23550         so that there are no conversion errors on AIX.
23551         * tests/test-mbsrtowcs.c (main): LIkewise.
23552
23553 2008-12-20  Bruno Haible  <bruno@clisp.org>
23554
23555         Work around wctob bug on Solaris <= 9.
23556         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
23557         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
23558         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
23559         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
23560         * modules/wctob (Files): Add m4/locale-fr.m4.
23561         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
23562
23563 2008-12-20  Bruno Haible  <bruno@clisp.org>
23564
23565         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
23566         /dev/null.
23567         * tests/test-select-in.sh: Likewise.
23568         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23569
23570 2008-12-20  Bruno Haible  <bruno@clisp.org>
23571
23572         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
23573         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
23574         Cygwin 1.5.x.
23575
23576 2008-12-20  Bruno Haible  <bruno@clisp.org>
23577
23578         Ensure mbstate_t is defined on HP-UX 11.11.
23579         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
23580         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
23581         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
23582         AC_USE_SYSTEM_EXTENSIONS.
23583         * modules/fnmatch (Depends-on): Add extensions.
23584         * modules/mbrlen (Depends-on): Likewise.
23585         * modules/mbrtowc (Depends-on): Likewise.
23586         * modules/mbsinit (Depends-on): Likewise.
23587         * modules/mbsrtowcs (Depends-on): Likewise.
23588         * modules/mbswidth (Depends-on): Likewise.
23589         * modules/quotearg (Depends-on): Likewise.
23590         * modules/strftime (Depends-on): Likewise.
23591
23592 2008-12-20  Bruno Haible  <bruno@clisp.org>
23593
23594         Ensure wctob is declared on IRIX 6.5.
23595         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
23596         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
23597         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
23598         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
23599         of HAVE_WCTOB.
23600         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
23601         HAVE_WCTOB.
23602         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
23603
23604 2008-12-19  Bruno Haible  <bruno@clisp.org>
23605
23606         * modules/mbsrtowcs-tests: New file.
23607         * tests/test-mbsrtowcs1.sh: New file.
23608         * tests/test-mbsrtowcs2.sh: New file.
23609         * tests/test-mbsrtowcs3.sh: New file.
23610         * tests/test-mbsrtowcs4.sh: New file.
23611         * tests/test-mbsrtowcs.c: New file.
23612
23613         New module 'mbsrtowcs'.
23614         * lib/wchar.in.h (mbsrtowcs): New declaration.
23615         * lib/mbsrtowcs.c: New file.
23616         * m4/mbsrtowcs.m4: New file.
23617         * modules/mbsrtowcs: New file.
23618         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
23619         HAVE_MBSRTOWCS.
23620         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
23621         HAVE_MBSRTOWCS.
23622         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
23623
23624 2008-12-19  Bruno Haible  <bruno@clisp.org>
23625
23626         New module 'mbrlen'.
23627         * lib/wchar.in.h (mbrlen): New declaration.
23628         * lib/mbrlen.c: New file.
23629         * m4/mbrlen.m4: New file.
23630         * modules/mbrlen: New file.
23631         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
23632         HAVE_MBRLEN.
23633         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
23634         HAVE_MBRLEN.
23635         * doc/posix-functions/mbrlen.texi: Document the new module.
23636
23637 2008-12-19  Bruno Haible  <bruno@clisp.org>
23638
23639         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
23640         * modules/mbrtowc (Depends-on): Add verify.
23641         Suggested by Paul Eggert.
23642
23643 2008-12-18  Bruno Haible  <bruno@clisp.org>
23644
23645         * modules/mbsinit-tests: New file.
23646         * tests/test-mbsinit.sh: New file.
23647         * tests/test-mbsinit.c: New file.
23648
23649 2008-12-18  Bruno Haible  <bruno@clisp.org>
23650
23651         * modules/mbrtowc-tests: New file.
23652         * tests/test-mbrtowc1.sh: New file.
23653         * tests/test-mbrtowc2.sh: New file.
23654         * tests/test-mbrtowc3.sh: New file.
23655         * tests/test-mbrtowc4.sh: New file.
23656         * tests/test-mbrtowc.c: New file.
23657
23658         New module 'mbrtowc'.
23659         * lib/wchar.in.h (mbstate_t): Override when the system does not have
23660         mbsinit and mbrtowc.
23661         (mbrtowc): New declaration.
23662         * lib/mbrtowc.c: New file.
23663         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
23664         * modules/mbrtowc: New file.
23665         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
23666         HAVE_MBRTOWC.
23667         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
23668         HAVE_MBRTOWC.
23669         * doc/posix-functions/mbrtowc.texi: Document the new module.
23670
23671 2008-12-18  Bruno Haible  <bruno@clisp.org>
23672
23673         New module 'wctob'.
23674         * lib/wchar.in.h (wctob): New declaration.
23675         * lib/wctob.c: New file.
23676         * m4/wctob.m4: New file.
23677         * modules/wctob: New file.
23678         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
23679         HAVE_WCTOB.
23680         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
23681         * doc/posix-functions/wctob.texi: Document the new module.
23682
23683 2008-12-18  Bruno Haible  <bruno@clisp.org>
23684
23685         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
23686         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
23687
23688 2008-12-18  Simon Josefsson  <simon@josefsson.org>
23689
23690         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
23691         G. Christensen" <tgc@jupiterrise.com>.
23692
23693         * lib/flock.c: Need to include errno.h.  Reported by "Tom
23694         G. Christensen" <tgc@jupiterrise.com>.
23695
23696         * lib/flock.c: Need to include string.h.  Reported by "Tom
23697         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
23698         <ebb9@byu.net>.
23699
23700 2008-12-18  Bruno Haible  <bruno@clisp.org>
23701
23702         * m4/locale-ja.m4: New file, from GNU gettext.
23703
23704 2008-12-17  Bruno Haible  <bruno@clisp.org>
23705
23706         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
23707         Suggested by Eric Blake.
23708
23709 2008-12-17  Bruno Haible  <bruno@clisp.org>
23710
23711         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
23712
23713 2008-12-17  Bruno Haible  <bruno@clisp.org>
23714
23715         * lib/mbsinit.c: Include verify.h. Verify an assumption.
23716         * modules/mbsinit (Depends-on): Add verify.
23717         Suggested by Paul Eggert.
23718
23719 2008-12-17  Bruno Haible  <bruno@clisp.org>
23720
23721         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
23722         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
23723         gl_FUNC_MBRTOWC.
23724         * m4/mbiter.m4 (gl_MBITER): LIkewise.
23725         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
23726         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
23727         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
23728         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
23729         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
23730         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
23731         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
23732         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
23733         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
23734         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
23735         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
23736         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
23737         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
23738         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
23739         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
23740         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
23741         * modules/trim (configure.ac): Likewise.
23742
23743 2008-12-17  Bruno Haible  <bruno@clisp.org>
23744
23745         * modules/btowc-tests: New file.
23746         * tests/test-btowc1.sh: New file.
23747         * tests/test-btowc2.sh: New file.
23748         * tests/test-btowc.c: New file.
23749
23750         New module 'btowc'.
23751         * lib/wchar.in.h (btowc): New declaration.
23752         * lib/btowc.c: New file.
23753         * m4/btowc.m4: New file.
23754         * modules/btowc: New file.
23755         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
23756         HAVE_BTOWC.
23757         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
23758         * doc/posix-functions/btowc.texi: Document the new module.
23759
23760 2008-12-17  Bruno Haible  <bruno@clisp.org>
23761
23762         New module 'mbsinit'.
23763         * lib/wchar.in.h (mbsinit): New declaration.
23764         * lib/mbsinit.c: New file.
23765         * m4/mbsinit.m4: New file.
23766         * modules/mbsinit: New file.
23767         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
23768         HAVE_MBSINIT.
23769         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
23770         HAVE_MBSINIT.
23771         * doc/posix-functions/mbsinit.texi: Document the new module.
23772
23773 2008-12-16  Bruno Haible  <bruno@clisp.org>
23774
23775         * lib/unistd.in.h: Add comment.
23776         * tests/test-environ.c: Don't include <stdlib.h>.
23777
23778 2008-12-16  Bruno Haible  <bruno@clisp.org>
23779
23780         * lib/parse-duration.h (parse_duration): Document return value
23781         convention.
23782         * lib/parse-duration.c: Include specification header first. Add
23783         comments.
23784         (_): Remove macro.
23785         (parse_year_month_day, parse_hour_minute_second): Move side effects
23786         outside of strchr call.
23787         (parse_non_iso8601): Move side effects outside of isspace call.
23788         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
23789         call.
23790
23791 2008-12-16  Bruno Haible  <bruno@clisp.org>
23792
23793         * tests/test-parse-duration.sh: Produce no output when the test
23794         succeeds.
23795
23796 2008-12-16  Bruno Haible  <bruno@clisp.org>
23797
23798         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
23799         expressions.
23800
23801 2008-12-15  Bruno Haible  <bruno@clisp.org>
23802
23803         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
23804         * doc/glibc-functions/flistxattr.texi: Likewise.
23805         * doc/glibc-functions/fopencookie.texi: Likewise.
23806         * doc/glibc-functions/fremovexattr.texi: Likewise.
23807         * doc/glibc-functions/fsetxattr.texi: Likewise.
23808         * doc/glibc-functions/getxattr.texi: Likewise.
23809         * doc/glibc-functions/lgetxattr.texi: Likewise.
23810         * doc/glibc-functions/listxattr.texi: Likewise.
23811         * doc/glibc-functions/llistxattr.texi: Likewise.
23812         * doc/glibc-functions/lremovexattr.texi: Likewise.
23813         * doc/glibc-functions/lsetxattr.texi: Likewise.
23814         * doc/glibc-functions/removexattr.texi: Likewise.
23815         * doc/glibc-functions/setxattr.texi: Likewise.
23816         * doc/posix-functions/open_memstream.texi: Likewise.
23817
23818 2008-12-15  Eric Blake  <ebb9@byu.net>
23819
23820         Update doc for cygwin 1.7.
23821         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
23822         functions.
23823         * doc/posix-functions/fchmodat.texi: Likewise.
23824         * doc/posix-functions/fchownat.texi: Likewise.
23825         * doc/posix-functions/fdopendir.texi: Likewise.
23826         * doc/posix-functions/fmemopen.texi: Likewise.
23827         * doc/posix-functions/freeaddrinfo.texi: Likewise.
23828         * doc/posix-functions/fstatat.texi: Likewise.
23829         * doc/posix-functions/futimens.texi: Likewise.
23830         * doc/posix-functions/gai_strerror.texi: Likewise.
23831         * doc/posix-functions/getaddrinfo.texi: Likewise.
23832         * doc/posix-functions/getnameinfo.texi: Likewise.
23833         * doc/posix-functions/if_freenameindex.texi: Likewise.
23834         * doc/posix-functions/if_indextoname.texi: Likewise.
23835         * doc/posix-functions/if_nameindex.texi: Likewise.
23836         * doc/posix-functions/if_nametoindex.texi: Likewise.
23837         * doc/posix-functions/insque.texi: Likewise.
23838         * doc/posix-functions/linkat.texi: Likewise.
23839         * doc/posix-functions/llrint.texi: Likewise.
23840         * doc/posix-functions/llrintf.texi: Likewise.
23841         * doc/posix-functions/llrintl.texi: Likewise.
23842         * doc/posix-functions/lockf.texi: Likewise.
23843         * doc/posix-functions/lrintl.texi: Likewise.
23844         * doc/posix-functions/mkdirat.texi: Likewise.
23845         * doc/posix-functions/mkfifoat.texi: Likewise.
23846         * doc/posix-functions/mknodat.texi: Likewise.
23847         * doc/posix-functions/mq_close.texi: Likewise.
23848         * doc/posix-functions/mq_getattr.texi: Likewise.
23849         * doc/posix-functions/mq_notify.texi: Likewise.
23850         * doc/posix-functions/mq_open.texi: Likewise.
23851         * doc/posix-functions/mq_receive.texi: Likewise.
23852         * doc/posix-functions/mq_send.texi: Likewise.
23853         * doc/posix-functions/mq_setattr.texi: Likewise.
23854         * doc/posix-functions/mq_timedreceive.texi: Likewise.
23855         * doc/posix-functions/mq_timedsend.texi: Likewise.
23856         * doc/posix-functions/mq_unlink.texi: Likewise.
23857         * doc/posix-functions/open_memstream.texi: Likewise.
23858         * doc/posix-functions/openat.texi: Likewise.
23859         * doc/posix-functions/posix_fadvise.texi: Likewise.
23860         * doc/posix-functions/posix_fallocate.texi: Likewise.
23861         * doc/posix-functions/posix_madvise.texi: Likewise.
23862         * doc/posix-functions/posix_memalign.texi: Likewise.
23863         * doc/posix-functions/posix_openpt.texi: Likewise.
23864         * doc/posix-functions/readlinkat.texi: Likewise.
23865         * doc/posix-functions/remque.texi: Likewise.
23866         * doc/posix-functions/renameat.texi: Likewise.
23867         * doc/posix-functions/rintl.texi: Likewise.
23868         * doc/posix-functions/sem_unlink.texi: Likewise.
23869         * doc/posix-functions/shm_open.texi: Likewise.
23870         * doc/posix-functions/shm_unlink.texi: Likewise.
23871         * doc/posix-functions/signgam.texi: Likewise.
23872         * doc/posix-functions/sigset.texi: Likewise.
23873         * doc/posix-functions/stpcpy.texi: Likewise.
23874         * doc/posix-functions/stpncpy.texi: Likewise.
23875         * doc/posix-functions/strerror.texi: Likewise.
23876         * doc/posix-functions/strtod.texi: Likewise.
23877         * doc/posix-functions/symlinkat.texi: Likewise.
23878         * doc/posix-functions/unlinkat.texi: Likewise.
23879         * doc/posix-functions/utimensat.texi: Likewise.
23880         * doc/glibc-functions/bindresvport.texi: Likewise.
23881         * doc/glibc-functions/dn_expand.texi: Likewise.
23882         * doc/glibc-functions/exp10.texi: Likewise.
23883         * doc/glibc-functions/exp10f.texi: Likewise.
23884         * doc/glibc-functions/fgetxattr.texi: Likewise.
23885         * doc/glibc-functions/flistxattr.texi: Likewise.
23886         * doc/glibc-functions/fopencookie.texi: Likewise.
23887         * doc/glibc-functions/freeifaddrs.texi: Likewise.
23888         * doc/glibc-functions/fremovexattr.texi: Likewise.
23889         * doc/glibc-functions/fsetxattr.texi: Likewise.
23890         * doc/glibc-functions/getifaddrs.texi: Likewise.
23891         * doc/glibc-functions/getxattr.texi: Likewise.
23892         * doc/glibc-functions/lgetxattr.texi: Likewise.
23893         * doc/glibc-functions/listxattr.texi: Likewise.
23894         * doc/glibc-functions/llistxattr.texi: Likewise.
23895         * doc/glibc-functions/lremovexattr.texi: Likewise.
23896         * doc/glibc-functions/lsetxattr.texi: Likewise.
23897         * doc/glibc-functions/pow10.texi: Likewise.
23898         * doc/glibc-functions/pow10f.texi: Likewise.
23899         * doc/glibc-functions/rcmd_af.texi: Likewise.
23900         * doc/glibc-functions/removexattr.texi: Likewise.
23901         * doc/glibc-functions/res_init.texi: Likewise.
23902         * doc/glibc-functions/res_mkquery.texi: Likewise.
23903         * doc/glibc-functions/res_query.texi: Likewise.
23904         * doc/glibc-functions/res_querydomain.texi: Likewise.
23905         * doc/glibc-functions/res_send.texi: Likewise.
23906         * doc/glibc-functions/rresvport_af.texi: Likewise.
23907         * doc/glibc-functions/setxattr.texi: Likewise.
23908         * doc/glibc-functions/strcasestr.texi: Likewise.
23909
23910 2008-12-15  Bruno Haible  <bruno@clisp.org>
23911
23912         Fix compilation error on OSF/1 4.0.
23913         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
23914         <sys/time.h>, simply delegate to the system header.
23915         Reported by Daniel Richard G. <oss@teragram.com>.
23916
23917 2008-12-15  Bruno Haible  <bruno@clisp.org>
23918
23919         * doc/posix-functions/openat.texi: Mention the 'openat' module.
23920         * doc/posix-functions/fchmodat.texi: Likewise.
23921         * doc/posix-functions/fchownat.texi: Likewise.
23922         * doc/posix-functions/fdopendir.texi: Likewise.
23923         * doc/posix-functions/fstatat.texi: Likewise.
23924         * doc/posix-functions/mkdirat.texi: Likewise.
23925         * doc/posix-functions/unlinkat.texi: Likewise.
23926
23927 2008-12-14  Bruno Haible  <bruno@clisp.org>
23928
23929         Update doc for POSIX:2008.
23930         * doc/posix-functions/faccessat.texi: New file.
23931         * doc/posix-functions/fchmodat.texi: New file.
23932         * doc/posix-functions/fchownat.texi: New file.
23933         * doc/posix-functions/fdopendir.texi: New file.
23934         * doc/posix-functions/fstatat.texi: New file.
23935         * doc/posix-functions/futimens.texi: New file.
23936         * doc/posix-functions/linkat.texi: New file.
23937         * doc/posix-functions/mkdirat.texi: New file.
23938         * doc/posix-functions/mkfifoat.texi: New file.
23939         * doc/posix-functions/mknodat.texi: New file.
23940         * doc/posix-functions/open_wmemstream.texi: New file.
23941         * doc/posix-functions/openat.texi: New file.
23942         * doc/posix-functions/psiginfo.texi: New file.
23943         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
23944         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
23945         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
23946         * doc/posix-functions/readlinkat.texi: New file.
23947         * doc/posix-functions/renameat.texi: New file.
23948         * doc/posix-functions/strerror_l.texi: New file.
23949         * doc/posix-functions/symlinkat.texi: New file.
23950         * doc/posix-functions/unlinkat.texi: New file.
23951         * doc/posix-functions/utimensat.texi: New file.
23952         * doc/gnulib.texi (Function Substitutes): Add these subsections.
23953
23954 2008-12-14  Bruno Haible  <bruno@clisp.org>
23955
23956         Update doc for POSIX:2008.
23957         * doc/posix-functions/alphasort.texi: Renamed from
23958         doc/glibc-functions/alphasort.texi.
23959         * doc/posix-functions/dirfd.texi: Renamed from
23960         doc/glibc-functions/dirfd.texi.
23961         * doc/posix-functions/dprintf.texi: Renamed from
23962         doc/glibc-functions/dprintf.texi.
23963         * doc/posix-functions/duplocale.texi: Renamed from
23964         doc/glibc-functions/duplocale.texi.
23965         * doc/posix-functions/fexecve.texi: Renamed from
23966         doc/glibc-functions/fexecve.texi.
23967         * doc/posix-functions/fmemopen.texi: Renamed from
23968         doc/glibc-functions/fmemopen.texi.
23969         * doc/posix-functions/freelocale.texi: Renamed from
23970         doc/glibc-functions/freelocale.texi.
23971         * doc/posix-functions/getdate_err.texi: Renamed from
23972         doc/glibc-functions/getdate_err.texi.
23973         * doc/posix-functions/isalnum_l.texi: Renamed from
23974         doc/glibc-functions/isalnum_l.texi.
23975         * doc/posix-functions/isalpha_l.texi: Renamed from
23976         doc/glibc-functions/isalpha_l.texi.
23977         * doc/posix-functions/isblank_l.texi: Renamed from
23978         doc/glibc-functions/isblank_l.texi.
23979         * doc/posix-functions/iscntrl_l.texi: Renamed from
23980         doc/glibc-functions/iscntrl_l.texi.
23981         * doc/posix-functions/isdigit_l.texi: Renamed from
23982         doc/glibc-functions/isdigit_l.texi.
23983         * doc/posix-functions/isgraph_l.texi: Renamed from
23984         doc/glibc-functions/isgraph_l.texi.
23985         * doc/posix-functions/islower_l.texi: Renamed from
23986         doc/glibc-functions/islower_l.texi.
23987         * doc/posix-functions/isprint_l.texi: Renamed from
23988         doc/glibc-functions/isprint_l.texi.
23989         * doc/posix-functions/ispunct_l.texi: Renamed from
23990         doc/glibc-functions/ispunct_l.texi.
23991         * doc/posix-functions/isspace_l.texi: Renamed from
23992         doc/glibc-functions/isspace_l.texi.
23993         * doc/posix-functions/isupper_l.texi: Renamed from
23994         doc/glibc-functions/isupper_l.texi.
23995         * doc/posix-functions/iswalnum_l.texi: Renamed from
23996         doc/glibc-functions/iswalnum_l.texi.
23997         * doc/posix-functions/iswalpha_l.texi: Renamed from
23998         doc/glibc-functions/iswalpha_l.texi.
23999         * doc/posix-functions/iswblank_l.texi: Renamed from
24000         doc/glibc-functions/iswblank_l.texi.
24001         * doc/posix-functions/iswcntrl_l.texi: Renamed from
24002         doc/glibc-functions/iswcntrl_l.texi.
24003         * doc/posix-functions/iswctype_l.texi: Renamed from
24004         doc/glibc-functions/iswctype_l.texi.
24005         * doc/posix-functions/iswdigit_l.texi: Renamed from
24006         doc/glibc-functions/iswdigit_l.texi.
24007         * doc/posix-functions/iswgraph_l.texi: Renamed from
24008         doc/glibc-functions/iswgraph_l.texi.
24009         * doc/posix-functions/iswlower_l.texi: Renamed from
24010         doc/glibc-functions/iswlower_l.texi.
24011         * doc/posix-functions/iswprint_l.texi: Renamed from
24012         doc/glibc-functions/iswprint_l.texi.
24013         * doc/posix-functions/iswpunct_l.texi: Renamed from
24014         doc/glibc-functions/iswpunct_l.texi.
24015         * doc/posix-functions/iswspace_l.texi: Renamed from
24016         doc/glibc-functions/iswspace_l.texi.
24017         * doc/posix-functions/iswupper_l.texi: Renamed from
24018         doc/glibc-functions/iswupper_l.texi.
24019         * doc/posix-functions/iswxdigit_l.texi: Renamed from
24020         doc/glibc-functions/iswxdigit_l.texi.
24021         * doc/posix-functions/isxdigit_l.texi: Renamed from
24022         doc/glibc-functions/isxdigit_l.texi.
24023         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
24024         doc/glibc-functions/mbsnrtowcs.texi.
24025         * doc/posix-functions/mkdtemp.texi: Renamed from
24026         doc/glibc-functions/mkdtemp.texi.
24027         * doc/posix-functions/newlocale.texi: Renamed from
24028         doc/glibc-functions/newlocale.texi.
24029         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
24030         doc/glibc-functions/nl_langinfo_l.texi.
24031         * doc/posix-functions/open_memstream.texi: Renamed from
24032         doc/glibc-functions/open_memstream.texi.
24033         * doc/posix-functions/opterr.texi: Renamed from
24034         doc/glibc-functions/opterr.texi.
24035         * doc/posix-functions/optind.texi: Renamed from
24036         doc/glibc-functions/optind.texi.
24037         * doc/posix-functions/optopt.texi: Renamed from
24038         doc/glibc-functions/optopt.texi.
24039         * doc/posix-functions/psignal.texi: Renamed from
24040         doc/glibc-functions/psignal.texi.
24041         * doc/posix-functions/scandir.texi: Renamed from
24042         doc/glibc-functions/scandir.texi.
24043         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
24044         doc/glibc-functions/sched_get_priority_min.texi.
24045         * doc/posix-functions/signgam.texi: Renamed from
24046         doc/glibc-functions/signgam.texi.
24047         * doc/posix-functions/stpcpy.texi: Renamed from
24048         doc/glibc-functions/stpcpy.texi.
24049         * doc/posix-functions/stpncpy.texi: Renamed from
24050         doc/glibc-functions/stpncpy.texi.
24051         * doc/posix-functions/strcasecmp_l.texi: Renamed from
24052         doc/glibc-functions/strcasecmp_l.texi.
24053         * doc/posix-functions/strcoll_l.texi: Renamed from
24054         doc/glibc-functions/strcoll_l.texi.
24055         * doc/posix-functions/strfmon_l.texi: Renamed from
24056         doc/glibc-functions/strfmon_l.texi.
24057         * doc/posix-functions/strftime_l.texi: Renamed from
24058         doc/glibc-functions/strftime_l.texi.
24059         * doc/posix-functions/strncasecmp_l.texi: Renamed from
24060         doc/glibc-functions/strncasecmp_l.texi.
24061         * doc/posix-functions/strndup.texi: Renamed from
24062         doc/glibc-functions/strndup.texi.
24063         * doc/posix-functions/strnlen.texi: Renamed from
24064         doc/glibc-functions/strnlen.texi.
24065         * doc/posix-functions/strsignal.texi: Renamed from
24066         doc/glibc-functions/strsignal.texi.
24067         * doc/posix-functions/strxfrm_l.texi: Renamed from
24068         doc/glibc-functions/strxfrm_l.texi.
24069         * doc/posix-functions/timer_gettime.texi: Renamed from
24070         doc/glibc-functions/timer_gettime.texi.
24071         * doc/posix-functions/tolower_l.texi: Renamed from
24072         doc/glibc-functions/tolower_l.texi.
24073         * doc/posix-functions/toupper_l.texi: Renamed from
24074         doc/glibc-functions/toupper_l.texi.
24075         * doc/posix-functions/towctrans_l.texi: Renamed from
24076         doc/glibc-functions/towctrans_l.texi.
24077         * doc/posix-functions/towlower_l.texi: Renamed from
24078         doc/glibc-functions/towlower_l.texi.
24079         * doc/posix-functions/towupper_l.texi: Renamed from
24080         doc/glibc-functions/towupper_l.texi.
24081         * doc/posix-functions/uselocale.texi: Renamed from
24082         doc/glibc-functions/uselocale.texi.
24083         * doc/posix-functions/vdprintf.texi: Renamed from
24084         doc/glibc-functions/vdprintf.texi.
24085         * doc/posix-functions/wcpcpy.texi:
24086         Renamed from doc/glibc-functions/wcpcpy.texi.
24087         * doc/posix-functions/wcpncpy.texi: Renamed from
24088         doc/glibc-functions/wcpncpy.texi.
24089         * doc/posix-functions/wcscasecmp.texi: Renamed from
24090         doc/glibc-functions/wcscasecmp.texi.
24091         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
24092         doc/glibc-functions/wcscasecmp_l.texi.
24093         * doc/posix-functions/wcscoll_l.texi: Renamed from
24094         doc/glibc-functions/wcscoll_l.texi.
24095         * doc/posix-functions/wcsdup.texi: Renamed from
24096         doc/glibc-functions/wcsdup.texi.
24097         * doc/posix-functions/wcsncasecmp.texi: Renamed from
24098         doc/glibc-functions/wcsncasecmp.texi.
24099         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
24100         doc/glibc-functions/wcsncasecmp_l.texi.
24101         * doc/posix-functions/wcsnlen.texi: Renamed from
24102         doc/glibc-functions/wcsnlen.texi.
24103         * doc/posix-functions/wcsnrtombs.texi: Renamed from
24104         doc/glibc-functions/wcsnrtombs.texi.
24105         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
24106         doc/glibc-functions/wcsxfrm_l.texi.
24107         * doc/posix-functions/wctrans_l.texi: Renamed from
24108         doc/glibc-functions/wctrans_l.texi.
24109         * doc/posix-functions/wctype_l.texi: Renamed from
24110         doc/glibc-functions/wctype_l.texi.
24111         * doc/gnulib.texi (Function Substitutes): Add these subsections.
24112         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
24113         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
24114         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
24115         these subsections.
24116         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
24117         Remove sections.
24118
24119 2008-12-14  Bruno Haible  <bruno@clisp.org>
24120
24121         Update doc for POSIX:2008.
24122         * doc/posix-functions/*.texi: Update URL of POSIX specification.
24123
24124 2008-12-14  Bruno Haible  <bruno@clisp.org>
24125
24126         Update doc for POSIX:2008.
24127         * doc/pastposix-functions/bcmp.texi: Renamed from
24128         doc/posix-functions/bcmp.texi.
24129         * doc/pastposix-functions/bcopy.texi: Renamed from
24130         doc/posix-functions/bcopy.texi.
24131         * doc/pastposix-functions/bsd_signal.texi: Renamed from
24132         doc/posix-functions/bsd_signal.texi.
24133         * doc/pastposix-functions/bzero.texi: Renamed from
24134         doc/posix-functions/bzero.texi.
24135         * doc/pastposix-functions/ecvt.texi: Renamed from
24136         doc/posix-functions/ecvt.texi.
24137         * doc/pastposix-functions/fcvt.texi: Renamed from
24138         doc/posix-functions/fcvt.texi.
24139         * doc/pastposix-functions/ftime.texi: Renamed from
24140         doc/posix-functions/ftime.texi.
24141         * doc/pastposix-functions/gcvt.texi: Renamed from
24142         doc/posix-functions/gcvt.texi.
24143         * doc/pastposix-functions/getcontext.texi: Renamed from
24144         doc/posix-functions/getcontext.texi.
24145         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
24146         doc/posix-functions/gethostbyaddr.texi.
24147         * doc/pastposix-functions/gethostbyname.texi: Renamed from
24148         doc/posix-functions/gethostbyname.texi.
24149         * doc/pastposix-functions/getwd.texi: Renamed from
24150         doc/posix-functions/getwd.texi.
24151         * doc/pastposix-functions/h_errno.texi: Renamed from
24152         doc/posix-functions/h_errno.texi.
24153         * doc/pastposix-functions/index.texi: Renamed from
24154         doc/posix-functions/index.texi.
24155         * doc/pastposix-functions/makecontext.texi: Renamed from
24156         doc/posix-functions/makecontext.texi.
24157         * doc/pastposix-functions/mktemp.texi: Renamed from
24158         doc/posix-functions/mktemp.texi.
24159         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
24160         doc/posix-functions/pthread_attr_getstackaddr.texi.
24161         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
24162         doc/posix-functions/pthread_attr_setstackaddr.texi.
24163         * doc/pastposix-functions/rindex.texi: Renamed from
24164         doc/posix-functions/rindex.texi.
24165         * doc/pastposix-functions/scalb.texi: Renamed from
24166         doc/posix-functions/scalb.texi.
24167         * doc/pastposix-functions/setcontext.texi: Renamed from
24168         doc/posix-functions/setcontext.texi.
24169         * doc/pastposix-functions/swapcontext.texi: Renamed from
24170         doc/posix-functions/swapcontext.texi.
24171         * doc/pastposix-functions/ualarm.texi: Renamed from
24172         doc/posix-functions/ualarm.texi.
24173         * doc/pastposix-functions/usleep.texi: Renamed from
24174         doc/posix-functions/usleep.texi.
24175         * doc/pastposix-functions/vfork.texi: Renamed from
24176         doc/posix-functions/vfork.texi.
24177         * doc/pastposix-functions/wcswcs.texi: Renamed from
24178         doc/posix-functions/wcswcs.texi.
24179         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
24180         (Function Substitutes): Update.
24181
24182 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24183
24184         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
24185         m4/strerror.m4.
24186
24187 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24188             Bruno Haible  <bruno@clisp.org>
24189
24190         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
24191
24192 2008-12-13  Bruno Haible  <bruno@clisp.org>
24193
24194         * modules/strtoull (Depends-on): Remove unistd.
24195
24196 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24197
24198         * modules/strtoull (Depends-on): Add stdlib.
24199
24200 2008-12-11  Simon Josefsson  <simon@josefsson.org>
24201
24202         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
24203
24204 2008-12-10  Jim Meyering  <meyering@redhat.com>
24205
24206         gl_ASSERT: don't say assertions are disabled when they're not
24207         * m4/assert.m4 (gl_ASSERT): Do not make configure report
24208         "checking whether to enable assertions... no", when they are in
24209         fact enabled.  This is solely a bug in the output of configure.
24210         In spite of saying "no", NDEBUG was not defined in that case.
24211         Also, as noted by Eric Blake, leave assertions enabled upon
24212         --enable-assert=INVALID.
24213
24214 2008-12-10  Bruno Haible  <bruno@clisp.org>
24215
24216         Change MODULES.html to refer to POSIX:2008 where possible.
24217         * MODULES.html.sh (POSIX2008_URL): New variable.
24218         (posix_headers): Remove sys/timeb, ucontext.
24219         (posix2001_headers): New variable.
24220         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
24221         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
24222         index, makecontext, mktemp, pthread_attr_getstackaddr,
24223         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
24224         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
24225         (posix2001_functions): New variable.
24226         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
24227         otherwise.
24228
24229 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24230
24231         add missing include to parse-duration.c
24232         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
24233         * modules/parse-duration (Depends-on): Add xalloc.
24234
24235         fix sed script reading maint.mk
24236         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
24237         (syntax-check-rules): Use it.
24238
24239 2008-12-09  Bruno Haible  <bruno@clisp.org>
24240
24241         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
24242         MacOS X 10.4/PowerPC.
24243         Reported by Simon Josefsson.
24244
24245 2008-12-08  Jim Meyering  <meyering@redhat.com>
24246
24247         work around mingw's lack of some S_IF definitions
24248         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
24249         Reported by Simon Josefsson.
24250
24251 2008-12-08  Bruno Haible  <bruno@clisp.org>
24252
24253         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
24254         applied to variables. Needed on MacOS X 10.4/PowerPC.
24255         Reported by Simon Josefsson.
24256
24257 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
24258         and Eric Blake  <ebb9@byu.net>
24259
24260         assert: honor --enable-assert
24261         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
24262         order to honor --enable-assert, rather than treating it as a
24263         synonym for --disable-assert.
24264
24265 2008-12-08  Jim Meyering  <meyering@redhat.com>
24266
24267         * lib/posixtm.c: Remove now-useless declaration of mktime.
24268
24269         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
24270
24271 2008-12-07  Bruno Haible  <bruno@clisp.org>
24272
24273         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
24274         test_once): Mark functions as static.
24275         * tests/test-tls.c (test_tls): Likewise.
24276
24277 2008-12-07  Bruno Haible  <bruno@clisp.org>
24278
24279         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
24280         iconv_register_autodetect.
24281
24282 2008-12-07  Jim Meyering  <meyering@redhat.com>
24283
24284         posixtm.c: avoid a warning
24285         * lib/posixtm.c (posixtime): Don't initialize tm0.
24286         It's no longer needed to placate gcc4's -Wuninitialized,
24287         and the attempt to placate would elicit a new warning.
24288
24289         unicodeio.c: mark unused parameters
24290         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
24291         (fallback_failure_callback): Likewise.
24292
24293 2008-12-07  Bruno Haible  <bruno@clisp.org>
24294
24295         * gnulib-tool (func_create_testdir): When building the tests
24296         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
24297         Reported by Simon Josefsson.
24298
24299 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24300
24301         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
24302
24303 2008-12-06  Bruno Haible  <bruno@clisp.org>
24304
24305         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
24306         Suggested by Eric Blake.
24307
24308 2008-12-06  Bruno Haible  <bruno@clisp.org>
24309
24310         Fix a c-stack test failure on MacOS X.
24311         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
24312         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
24313         handler for SIGBUS as well.
24314         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
24315         install a signal handler for SIGBUS as well.
24316         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
24317
24318 2008-12-06  Bruno Haible  <bruno@clisp.org>
24319
24320         Advocacy documentation.
24321         * doc/gnulib-intro.texi (Benefits): New section.
24322         * doc/gnulib.texi: Update.
24323
24324 2008-12-06  Bruno Haible  <bruno@clisp.org>
24325
24326         Document the 'manywarnings' module.
24327         * doc/manywarnings.texi: New file.
24328         * doc/gnulib.texi: Include it.
24329
24330 2008-12-05  Eric Blake  <ebb9@byu.net>
24331
24332         tests: silence some gcc warnings
24333         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
24334         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
24335         type mismatches.
24336
24337 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24338             Bruno Haible  <bruno@clisp.org>
24339
24340         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
24341
24342 2008-11-29  Jim Meyering  <meyering@redhat.com>
24343
24344         unicodeio.c: mark unused parameters
24345         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
24346         (fallback_failure_callback): Likewise.
24347
24348         fts: fix a thinko
24349         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
24350         (set_stat_type): Return S_IF*-valued "type" directly.
24351         Prompted by James Youngman's spotting a related bug.
24352         Confirmed by further testing through find.
24353
24354         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
24355         * lib/fts.c (D_TYPE): Define.
24356         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
24357         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
24358         (s_ifmt_shift_bits): New function.
24359         (set_stat_type): New function.
24360         (fts_build): When not calling fts_stat, call set_stat_type
24361         to propagate dirent.d_type info to fts_read caller.
24362         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
24363         fts_statp->st_mode type information may be valid.
24364
24365 2008-11-28  Simon Josefsson  <simon@josefsson.org>
24366
24367         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
24368         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
24369         <sds@gnu.org>.
24370
24371 2008-11-20  Bruno Haible  <bruno@clisp.org>
24372
24373         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
24374         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
24375         INCLUDE_NEXT.
24376         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
24377         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
24378         * modules/math (Makefile.am): Substitute
24379         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
24380         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24381
24382 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
24383             Bruno Haible  <bruno@clisp.org>
24384
24385         * lib/stdint.in.h: Define all type macros so that their expansion is
24386         a single typedef'ed token. Fixes a compilation failure in Boost which
24387         does "using ::int8_t;".
24388
24389 2008-11-18  Simon Josefsson  <simon@josefsson.org>
24390
24391         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
24392         gl_MANYWARN_ALL_GCC.
24393         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
24394         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
24395         * modules/manywarnings: New file.
24396         * MODULES.html.sh: Mention manywarnings module.
24397
24398 2008-11-18  Bruno Haible  <bruno@clisp.org>
24399
24400         * doc/gnulib-tool.texi (Unit tests): New section.
24401
24402 2008-11-18  Simon Josefsson  <simon@josefsson.org>
24403
24404         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
24405         paths like 'lib/po/foo.po'.
24406
24407 2008-11-17  Simon Josefsson  <simon@josefsson.org>
24408
24409         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
24410         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
24411
24412 2008-11-17  Simon Josefsson  <simon@josefsson.org>
24413
24414         * m4/warnings.m4: Use CPPFLAGS to really check whether the
24415         parameter works.
24416
24417 2008-11-17  Simon Josefsson  <simon@josefsson.org>
24418
24419         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
24420
24421 2008-11-17  Bruce Korb  <bkorb@gnu.org>
24422
24423         * modules/parse-duration-tests: New file.
24424         * tests/test-parse-duration.sh: New file.
24425         * tests/test-parse-duration.c: New file.
24426
24427         New module 'parse-duration'.
24428         * lib/parse-duration.h: New file.
24429         * lib/parse-duration.c: New file.
24430         * modules/parse-duration: New file.
24431
24432 2008-11-17  Bruno Haible  <bruno@clisp.org>
24433
24434         * tests/test-select-out.sh: Comment out the first pipe test.
24435         Reported by Simon Josefsson.
24436
24437 2008-11-17  Bruno Haible  <bruno@clisp.org>
24438
24439         * modules/getaddrinfo (Depends-on): Add servent, hostent.
24440         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
24441         gl_HOSTENT.
24442
24443 2008-11-17  Bruno Haible  <bruno@clisp.org>
24444
24445         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
24446         -lnetwork and -lnet. Needed for Haiku and BeOS.
24447
24448 2008-11-16  Bruno Haible  <bruno@clisp.org>
24449
24450         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
24451
24452 2008-11-16  Bruno Haible  <bruno@clisp.org>
24453
24454         Avoid test failure on Haiku.
24455         * tests/test-fsync.c: Include <errno.h>.
24456         (main): Don't require that fsync (0) fails.
24457
24458 2008-11-15  Bruno Haible  <bruno@clisp.org>
24459
24460         New module 'hostent'.
24461         * modules/hostent: New file.
24462         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
24463
24464 2008-11-15  Bruno Haible  <bruno@clisp.org>
24465
24466         New module 'servent'.
24467         * modules/servent: New file.
24468         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
24469
24470 2008-11-15  Bruno Haible  <bruno@clisp.org>
24471
24472         Avoid generating same test program with two different rules.
24473         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
24474         test-frexp to test-frexp-nolibm.
24475         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
24476         test-frexpl to test-frexpl-nolibm.
24477
24478 2008-11-15  Bruno Haible  <bruno@clisp.org>
24479
24480         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
24481         $(FREXPL_LIBM).
24482
24483 2008-11-15  Bruno Haible  <bruno@clisp.org>
24484
24485         * lib/netdb.in.h: Activate the definitions also when the system's
24486         <netdb.h> has 'struct addrinfo'.
24487         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
24488         EAI_OVERFLOW or AI_NUMERICSERV.
24489         * doc/posix-headers/netdb.texi: Document the problem.
24490
24491 2008-11-15  Bruno Haible  <bruno@clisp.org>
24492
24493         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
24494
24495         Make the 'sched' module work on platforms where <sched.h> exists but
24496         is incomplete (such as Haiku).
24497         * lib/sched.in.h; Include the system's <sched.h> if it exists.
24498         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
24499         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
24500         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
24501         HAVE_STRUCT_SCHED_PARAM.
24502         * modules/sched (Depends-on): Add include_next.
24503         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
24504         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
24505         * doc/posix-headers/sched.texi: Document the issue.
24506
24507 2008-11-13  Jim Meyering  <meyering@redhat.com>
24508
24509         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
24510         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
24511         test would fail due to the difference in the Report bugs to ...
24512         line.  The expected address is empty, "<>", while the actual
24513         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
24514
24515 2008-11-12  Bruno Haible  <bruno@clisp.org>
24516
24517         lstat: don't compile lstat.c on systems lacking lstat
24518         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
24519         which don't have lstat; this is handled by lib/sys_stat.in.h already.
24520         Reported by Daniel P. Berrange via Jim Meyering.
24521
24522 2008-11-12  Jim Meyering  <meyering@redhat.com>
24523
24524         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
24525
24526 2008-11-12  Simon Josefsson  <simon@josefsson.org>
24527
24528         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
24529         instead.
24530
24531 2008-11-12  Bruno Haible  <bruno@clisp.org>
24532
24533         * lib/unicodeio.c: Include unistr.h.
24534         (utf8_wctomb): Remove function.
24535         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
24536
24537 2008-11-12  Simon Josefsson  <simon@josefsson.org>
24538
24539         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
24540         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
24541         <bruno@clisp.org>.
24542         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
24543
24544 2008-11-12  Simon Josefsson  <simon@josefsson.org>
24545
24546         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
24547         * doc/gnulib.texi: Add section for warnings.
24548
24549 2008-11-11  Bruno Haible  <bruno@clisp.org>
24550
24551         * lib/sockets.h: Add a comment.
24552
24553 2008-11-11  Karl Berry  <karl@gnu.org>
24554
24555         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
24556
24557 2008-11-11  Eric Blake  <ebb9@byu.net>
24558
24559         fdl.texi: avoid git symlinks
24560         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
24561
24562 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24563
24564         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
24565
24566 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24567
24568         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
24569         (gl_WARN_ADD): Substitute $2 if literal.
24570
24571 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24572
24573         * m4/warning.m4: Remove.
24574
24575 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24576
24577         * m4/warnings.m4: Almost complete rewrite. :-)
24578
24579 2008-11-10  Simon Josefsson  <simon@josefsson.org>
24580
24581         * modules/warnings: New module.
24582         * m4/warnings.m4: New file.
24583         * MODULES.html.sh: Mention warnings module.
24584         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
24585         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24586
24587 2008-11-10  Eric Blake  <ebb9@byu.net>
24588
24589         fdl.texi: make a symlink to the latest version
24590         * doc/standards.texi: Revert today's earlier change.
24591         * doc/fdl-1.2.texi: Rename from old fdl.texi...
24592         * doc/fdl.texi: ...and replace this with a symlink to the newer
24593         fdl-1.3.texi.
24594
24595 2008-11-10  Bruno Haible  <bruno@clisp.org>
24596
24597         * tests/test-select-fd.c (main): Accept the result file name as fourth
24598         argument.
24599         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
24600         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
24601
24602 2008-11-10  Bruno Haible  <bruno@clisp.org>
24603
24604         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
24605         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
24606         as autoconf-substituted macros.
24607         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
24608         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
24609         gl_NETDB_H_DEFAULTS. Set these variables.
24610         * modules/netdb (Makefile.am): Substitute these variables.
24611
24612 2008-11-10  Eric Blake  <ebb9@byu.net>
24613
24614         standards.texi: include correct file for FDL 1.3
24615         * doc/standards.texi (GNU Free Documentation License): Change
24616         include file to pull in FDL 1.3, not 1.2.
24617
24618         fdl.texi: revert accidental change to license
24619         * doc/fdl.texi: This is FDL 1.2, not 1.3.
24620
24621 2008-11-10  Bruno Haible  <bruno@clisp.org>
24622
24623         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
24624         cross-compiling guesses also when the native compile gives no result.
24625
24626 2008-11-10  Bruno Haible  <bruno@clisp.org>
24627
24628         * lib/spawni.c (__spawni): Force variable into the stack.
24629
24630 2008-11-10  Bruno Haible  <bruno@clisp.org>
24631
24632         Add support for Haiku.
24633         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
24634         glibc and BeOS, but also on Haiku.
24635         * lib/fpurge.c (fpurge): Likewise.
24636         * lib/freadable.c (freadable): Likewise.
24637         * lib/freadahead.c (freadahead): Likewise.
24638         * lib/freading.c (freading): Likewise.
24639         * lib/freadptr.c (freadptr): Likewise.
24640         * lib/freadseek.c (freadptrinc): Likewise.
24641         * lib/fseeko.c (rpl_fseeko): Likewise.
24642         * lib/fseterr.c (fseterr): Likewise.
24643         * lib/fwritable.c (fwritable): Likewise.
24644         * lib/fwriting.c (fwriting): Likewise.
24645         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
24646
24647 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
24648
24649         * lib/config.charset: Treat Haiku like BeOS.
24650
24651 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
24652
24653         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
24654         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
24655
24656 2008-11-08  Bruno Haible  <bruno@clisp.org>
24657
24658         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
24659         AC_CACHE_CHECK.
24660
24661 2008-11-08  Bruno Haible  <bruno@clisp.org>
24662
24663         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
24664
24665 2008-11-08  Bruno Haible  <bruno@clisp.org>
24666
24667         * tests/test-select-fd.c: New file.
24668         * tests/test-select-in.sh: New file.
24669         * tests/test-select-out.sh: New file.
24670         * tests/test-select-stdin.c: New file.
24671         * modules/select-tests (Files): Add the new files.
24672         (Depends-on): Add gettimeofday.
24673         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
24674         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
24675         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
24676
24677 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
24678             Bruno Haible  <bruno@clisp.org>
24679
24680         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
24681
24682 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
24683
24684         * build-aux/pmccabe2html: Added support for C++ source files.
24685
24686 2008-11-05  Ben Pfaff  <blp@gnu.org>
24687
24688         Fix lib/close.c build on Windows.
24689         * modules/close (Files): Add lib/w32sock.h.
24690
24691 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
24692
24693         Accept Bison's NEWS format.
24694         * build-aux/announce-gen (print_news_deltas): Tweak
24695         $re_prefix.
24696
24697 2008-11-04  Bruno Haible  <bruno@clisp.org>
24698
24699         * modules/random_r (Maintainer): Add glibc.
24700
24701 2008-11-04  Simon Josefsson  <simon@josefsson.org>
24702
24703         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
24704         by karl@freefriends.org (Karl Berry).
24705         * doc/alloca.texi: Likewise.
24706         * doc/c-ctype.texi: Likewise.
24707         * doc/c-strcase.texi: Likewise.
24708         * doc/c-strcaseeq.texi: Likewise.
24709         * doc/c-strcasestr.texi: Likewise.
24710         * doc/c-strstr.texi: Likewise.
24711         * doc/c-strtod.texi: Likewise.
24712         * doc/c-strtold.texi: Likewise.
24713         * doc/ctime.texi: Likewise.
24714         * doc/error.texi: Likewise.
24715         * doc/fdl.texi: Likewise.
24716         * doc/gcd.texi: Likewise.
24717         * doc/getdate.texi: Likewise.
24718         * doc/gnulib-intro.texi: Likewise.
24719         * doc/gnulib-tool.texi: Likewise.
24720         * doc/gnulib.texi: Likewise.
24721         * doc/inet_ntoa.texi: Likewise.
24722         * doc/maintain.texi: Likewise.
24723         * doc/make-stds.texi: Likewise.
24724         * doc/quote.texi: Likewise.
24725         * doc/regexprops-generic.texi: Likewise.
24726         * doc/standards.texi: Likewise.
24727         * doc/verify.texi: Likewise.
24728         * doc/visibility.texi: Likewise.
24729         * doc/gnulib.texi (GNU Free Documentation License): Include
24730         fdl-1.3.texi instead of fdl.texi.
24731
24732 2008-11-04  Simon Josefsson  <simon@josefsson.org>
24733
24734         * doc/fdl-1.3.texi: New file, from
24735         <http://www.gnu.org/licenses/fdl-1.3.texi>.
24736         * modules/fdl-1.3: Add.
24737         * MODULES.html.sh: Add fdl-1.3.
24738
24739 2008-11-03  Bruno Haible  <bruno@clisp.org>
24740
24741         Make determination of absolute name of header file work with AIX xlc.
24742         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
24743         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
24744         preprocessing.
24745         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
24746         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
24747
24748 2008-11-03  Simon Josefsson  <simon@josefsson.org>
24749
24750         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
24751         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
24752         <ludo@gnu.org>.
24753
24754 2008-11-02  Bruno Haible  <bruno@clisp.org>
24755
24756         Mark 'strpbrk' obsolete.
24757         * modules/strpbrk (Status, Notice): New sections.
24758         * modules/strtok_r (Depends-on): Add strpbrk.
24759
24760 2008-11-02  Bruno Haible  <bruno@clisp.org>
24761
24762         Mark 'strdup' obsolete.
24763         * modules/strdup (Status, Notice): New sections.
24764         * modules/findprog (Depends-on): Add strdup.
24765         * modules/getaddrinfo (Depends-on): Likewise.
24766         * modules/localename (Depends-on): Likewise.
24767         * modules/relocatable-lib (Depends-on): Likewise.
24768         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
24769         * modules/relocatable-prog (Depends-on): Likewise.
24770         * modules/trim (Depends-on): Likewise.
24771         * modules/unictype/gen-ctype (Depends-on): Likewise.
24772         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
24773
24774 2008-11-02  Bruno Haible  <bruno@clisp.org>
24775
24776         Mark 'strcspn' obsolete.
24777         * modules/strcspn (Status, Notice): New sections.
24778
24779 2008-11-02  Bruno Haible  <bruno@clisp.org>
24780
24781         Mark 'rmdir' obsolete.
24782         * modules/rmdir (Status, Notice): New sections.
24783         * modules/clean-temp (Depends-on): Add rmdir.
24784         * modules/openat (Depends-on): Likewise.
24785
24786 2008-11-02  Bruno Haible  <bruno@clisp.org>
24787
24788         Mark 'raise' obsolete.
24789         * modules/raise (Status, Notice): New sections.
24790         (Include): Specify <signal.h>.
24791         * modules/stdio (Depends-on): Add raise.
24792         * modules/write (Depends-on): Likewise.
24793
24794 2008-11-02  Bruno Haible  <bruno@clisp.org>
24795
24796         Mark 'memset' obsolete.
24797         * modules/memset (Status, Notice): New sections.
24798
24799 2008-11-02  Bruno Haible  <bruno@clisp.org>
24800
24801         Mark 'memmove' obsolete.
24802         * modules/memmove (Status, Notice): New sections.
24803         * modules/argp (Depends-on): Add memmove.
24804         * modules/argz (Depends-on): Likewise.
24805         * modules/canonicalize (Depends-on): Likewise.
24806         * modules/canonicalize-lgpl (Depends-on): Likewise.
24807         * modules/fts (Depends-on): Likewise.
24808         * modules/getcwd (Depends-on): Likewise.
24809         * modules/human (Depends-on): Likewise.
24810         * modules/regex (Depends-on): Likewise.
24811         * modules/striconveh (Depends-on): Likewise.
24812         * modules/trim (Depends-on): Likewise.
24813         * modules/unistr/u8-move (Depends-on): Likewise.
24814         * modules/unistr/u16-move (Depends-on): Likewise.
24815         * modules/unistr/u32-move (Depends-on): Likewise.
24816
24817 2008-11-02  Bruno Haible  <bruno@clisp.org>
24818
24819         Mark 'memcpy' obsolete.
24820         * modules/memcpy (Status, Notice): New sections.
24821
24822 2008-11-02  Bruno Haible  <bruno@clisp.org>
24823
24824         Mark 'memcmp' obsolete.
24825         * modules/memcmp (Status, Notice): New sections.
24826         * modules/argmatch (Depends-on): Add memchr.
24827         * modules/backupfile (Depends-on): Likewise.
24828         * modules/c-strcasestr (Depends-on): Likewise.
24829         * modules/crypto/des (Depends-on): Likewise.
24830         * modules/csharpcomp (Depends-on): Likewise.
24831         * modules/fnmatch (Depends-on): Likewise.
24832         * modules/git-merge-changelog (Depends-on): Likewise.
24833         * modules/isnand (Depends-on): Likewise.
24834         * modules/isnand-nolibm (Depends-on): Likewise.
24835         * modules/isnanf (Depends-on): Likewise.
24836         * modules/isnanf-nolibm (Depends-on): Likewise.
24837         * modules/isnanl (Depends-on): Likewise.
24838         * modules/isnanl-nolibm (Depends-on): Likewise.
24839         * modules/mbchar (Depends-on): Likewise.
24840         * modules/memcoll (Depends-on): Likewise.
24841         * modules/quotearg (Depends-on): Likewise.
24842         * modules/regex (Depends-on): Likewise.
24843         * modules/relocatable-prog (Depends-on): Likewise.
24844         * modules/same (Depends-on): Likewise.
24845         * modules/signbit (Depends-on): Likewise.
24846         * modules/strcasestr-simple (Depends-on): Likewise.
24847         * modules/unictype/gen-ctype (Depends-on): Likewise.
24848         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
24849         * modules/uniname/uniname (Depends-on): Likewise.
24850         * modules/unistr/u8-cmp (Depends-on): Likewise.
24851
24852 2008-11-02  Bruno Haible  <bruno@clisp.org>
24853
24854         Mark 'memchr' obsolete.
24855         * modules/memchr (Status, Notice): New sections.
24856         * modules/argp (Depends-on): Add memchr.
24857         * modules/base64 (Depends-on): Likewise.
24858         * modules/c-strcasestr (Depends-on): Likewise.
24859         * modules/chdir-long (Depends-on): Likewise.
24860         * modules/fnmatch (Depends-on): Likewise.
24861         * modules/getsubopt (Depends-on): Likewise.
24862         * modules/git-merge-changelog (Depends-on): Likewise.
24863         * modules/glob (Depends-on): Likewise.
24864         * modules/strcasestr-simple (Depends-on): Likewise.
24865         * modules/strnlen (Depends-on): Likewise.
24866
24867 2008-11-02  Bruno Haible  <bruno@clisp.org>
24868
24869         Mark 'atexit' obsolete.
24870         * modules/atexit (Status, Notice): New sections.
24871         * modules/chdir-long (Depends-on): Add atexit.
24872         * modules/wait-process (Depends-on): Likewise.
24873
24874 2008-11-02  Bruno Haible  <bruno@clisp.org>
24875
24876         * gnulib-tool: New option --with-obsolete.
24877         (func_usage): Document it.
24878         (func_modules_transitive_closure): Drop obsolete dependencies if
24879         incobsolete is not true.
24880         (func_import): Read and save the incobsolete variable to the cache.
24881
24882 2008-11-02  Bruno Haible  <bruno@clisp.org>
24883
24884         * modules/TEMPLATE-EXTENDED: New field 'Status'.
24885         * gnulib-tool: New option --extract-status.
24886         (func_usage): Document it.
24887         (sed_extract_prog): Recognize it.
24888         (func_get_status): New function.
24889
24890 2008-10-30  Simon Josefsson  <simon@josefsson.org>
24891
24892         * modules/sockets (License): Change from LGPL to LGPLv2+.
24893
24894 2008-10-28  Simon Josefsson  <simon@josefsson.org>
24895
24896         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
24897
24898 2008-10-28  Simon Josefsson  <simon@josefsson.org>
24899
24900         * MODULES.html.sh (Support for systems lacking POSIX:2001):
24901         Mention times and sys_times.
24902         * modules/sys_times, modules/sys_times-tests: New modules.
24903         * modules/times, modules/times-tests: Likewise
24904         * m4/sys_times_h.m4: New file.
24905         * lib/sys_times.in.h: Likewise
24906         * lib/times.c: Likewise.
24907         * tests/test-sys_times.c: Likewise.
24908         * tests/test-times.c: Likewise.
24909         * doc/posix-headers/sys_times.texi: Update.
24910         * doc/posix-functions/times.texi: Update.
24911
24912 2008-10-28  Jim Meyering  <meyering@redhat.com>
24913
24914         * modules/tempname (Depends-on): Add lstat.
24915
24916         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
24917
24918 2008-10-28  Simon Josefsson  <simon@josefsson.org>
24919
24920         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
24921         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
24922         using idiom used elsewhere in gnulib.
24923
24924 2008-10-27  Jim Meyering  <meyering@redhat.com>
24925
24926         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
24927
24928 2008-10-27  Simon Josefsson  <simon@josefsson.org>
24929
24930         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
24931         TESTS_ENVIRONMENT, for shell scripts that needs to call built
24932         programs.
24933         * tests/test-argp-2.sh: Use $EXEEXT when needed.
24934
24935 2008-10-27  Simon Josefsson  <simon@josefsson.org>
24936
24937         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
24938
24939 2008-10-27  Bruno Haible  <bruno@clisp.org>
24940
24941         * tests/test-lstat.c: Include <stdio.h>.
24942
24943 2008-10-27  Simon Josefsson  <simon@josefsson.org>
24944
24945         * modules/lstat-tests: New module.
24946         * tests/test-lstat.c: New file.
24947
24948 2008-10-26  Jim Meyering  <meyering@redhat.com>
24949
24950         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
24951
24952 2008-10-26  Simon Josefsson  <simon@josefsson.org>
24953             Bruno Haible  <bruno@clisp.org>
24954
24955         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
24956         * modules/configmake (Include): Add a note that the include must come
24957         after all system headers.
24958         * lib/javaversion.c: Include configmake.h after all other includes.
24959
24960 2008-10-26  Bruno Haible  <bruno@clisp.org>
24961
24962         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
24963         HAVE_STRUCT_RANDOM_DATA to 1.
24964         (gl_STDLIB_H): Simplify.
24965
24966 2008-10-26  Simon Josefsson  <simon@josefsson.org>
24967
24968         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
24969         substitute HAVE_STRUCT_RANDOM_DATA.
24970         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
24971         random_data.
24972         * modules/stdlib (Makefile.am): Substitute
24973         HAVE_STRUCT_RANDOM_DATA.
24974
24975 2008-10-26  Simon Josefsson  <simon@josefsson.org>
24976
24977         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
24978         * doc/gnulib-intro.texi (Copyright): Likewise.
24979
24980 2008-10-26  Simon Josefsson  <simon@josefsson.org>
24981
24982         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
24983         findings.
24984
24985 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
24986             Bruno Haible  <bruno@clisp.org>
24987
24988         * lib/unistd.in.h: Include <winsock2.h>.
24989         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
24990         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
24991         Provide dummy declarations.
24992         (gethostname): Override.
24993         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
24994         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
24995         gl_PREREQ_SYS_H_WINSOCK2.
24996         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
24997         * doc/posix-functions/gethostname.texi: More details.
24998
24999 2008-10-25  Bruno Haible  <bruno@clisp.org>
25000
25001         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
25002         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
25003         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
25004
25005         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
25006         here ...
25007         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
25008         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
25009         gl_UNISTD_H_DEFAULTS.
25010
25011 2008-10-25  Eric Blake  <ebb9@byu.net>
25012
25013         signbit: avoid spurious compiler failure
25014         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
25015         declarations inside function.
25016
25017 2008-10-24  Simon Josefsson  <simon@josefsson.org>
25018             Bruno Haible  <bruno@clisp.org>
25019
25020         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
25021         * modules/random_r (Depends-on): Add stdint.
25022
25023 2008-10-24  Bruno Haible  <bruno@clisp.org>
25024
25025         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
25026         Eggert.
25027         * modules/strerror (License): Likewise.
25028
25029 2008-10-24  Jim Meyering  <meyering@redhat.com>
25030
25031         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
25032         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
25033
25034 2008-10-24  Eric Blake  <ebb9@byu.net>
25035
25036         getgroups: fix compilation when getgroups is available
25037         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
25038         but with <config.h> override of getgroups disabled.
25039
25040 2008-10-24  Simon Josefsson  <simon@josefsson.org>
25041
25042         * doc/gnulib.texi (Header files): Add note about C++ problems.
25043         Explained by Bruno Haible <bruno@clisp.org>.
25044
25045 2008-10-23  Bruno Haible  <bruno@clisp.org>
25046
25047         Define a dummy SA_NODEFER macro on Interix.
25048         * lib/signal.in.h (SA_NODEFER): Define fallback.
25049         Reported by Aleksey Cheusov <cheusov@tut.by> via
25050         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
25051
25052 2008-10-23  Bruno Haible  <bruno@clisp.org>
25053
25054         * modules/freadahead (License): Change to LGPLv2+.
25055         Suggested by Simon Josefsson.
25056
25057 2008-10-23  Jim Meyering  <meyering@redhat.com>
25058
25059         random_r: new module
25060         * modules/random_r: New file.
25061         * m4/random_r.m4: New file.
25062         * lib/random_r.c: New file, from glibc.
25063         * modules/random_r-tests: New file.
25064         * tests/test-random_r.c: New file.
25065         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
25066          Declare.
25067         (RAND_MAX): Define.
25068         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
25069         * modules/stdlib: Substitute them, too.
25070         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
25071         * doc/glibc-functions/initstate_r.texi: Mention the new module.
25072         * doc/glibc-functions/random_r.texi: Likewise.
25073         * doc/glibc-functions/setstate_r.texi: Likewise.
25074         * doc/glibc-functions/srandom_r.texi: Likewise.
25075         * config/srclist.txt: Mention it.
25076
25077 2008-10-23  David Lutterkort  <lutter@redhat.com>
25078
25079         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
25080         link requirement
25081
25082 2008-10-23  Jim Meyering  <meyering@redhat.com>
25083
25084         selinux-h: mark parameters of stub functions as intentionally unused
25085         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
25086         * lib/se-context.in.h: Likewise.
25087
25088 2008-10-22  Simon Josefsson  <simon@josefsson.org>
25089
25090         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
25091
25092 2008-10-22  Simon Josefsson  <simon@josefsson.org>
25093
25094         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
25095
25096 2008-10-22  Eric Blake  <ebb9@byu.net>
25097
25098         glthread/thread: avoid compiler warning
25099         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
25100         Add unreachable abort to silence compiler.
25101
25102 2008-10-22  Eric Blake  <ebb9@byu.net>
25103
25104         netdb: also supply struct addrinfo for cygwin 1.5.x
25105         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
25106         older cygwin.
25107         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
25108         cygwin.
25109         * doc/posix-headers/netdb.texi (netdb.h): Document this.
25110
25111 2008-10-22  Bruno Haible  <bruno@clisp.org>
25112
25113         * users.txt: Update entry about pspp.
25114
25115 2008-10-21  Bruno Haible  <bruno@clisp.org>
25116
25117         Simplification.
25118         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
25119         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
25120
25121         Simplification.
25122         * lib/ioctl.c (ioctl): Don't undefine.
25123         * lib/socket.c (socket): Don't undefine.
25124
25125         Remove unused module indicator macros.
25126         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
25127         GNULIB_$1 as a C macro.
25128
25129         * doc/posix-functions/close.texi: Undo last change.
25130         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
25131         Windows platforms.
25132
25133 2008-10-21  Bruno Haible  <bruno@clisp.org>
25134
25135         Add gethostname() declaration to <unistd.h>.
25136         * lib/unistd.in.h (gethostname): New declaration.
25137         * lib/gethostname.c: Include <unistd.h>.
25138         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
25139         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
25140         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
25141         and HAVE_GETHOSTNAME.
25142         * modules/gethostname (Depends-on): Add unistd.
25143         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25144         (Include): Specify <unistd.h>.
25145         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
25146         HAVE_GETHOSTNAME.
25147         * tests/test-gethostname.c: Include <unistd.h> first.
25148
25149 2008-10-21  Bruno Haible  <bruno@clisp.org>
25150
25151         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
25152         * modules/select-tests (Depends-on): Likewise.
25153         Reported by Simon Josefsson.
25154
25155 2008-10-21  Simon Josefsson  <simon@josefsson.org>
25156
25157         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
25158         * lib/accept.c: New file, based on winsock.c.
25159         * lib/bind.c: New file, based on winsock.c.
25160         * lib/connect.c: New file, based on winsock.c.
25161         * lib/getpeername.c: New file, based on winsock.c.
25162         * lib/getsockname.c: New file, based on winsock.c.
25163         * lib/getsockopt.c: New file, based on winsock.c.
25164         * lib/ioctl.c: New file, based on winsock.c.
25165         * lib/listen.c: New file, based on winsock.c.
25166         * lib/recv.c: New file, based on winsock.c.
25167         * lib/recvfrom.c: New file, based on winsock.c.
25168         * lib/send.c: New file, based on winsock.c.
25169         * lib/sendto.c: New file, based on winsock.c.
25170         * lib/setsockopt.c: New file, based on winsock.c.
25171         * lib/shutdown.c: New file, based on winsock.c.
25172         * lib/socket.c: New file, based on winsock.c.
25173         * lib/w32sock.h: New file, based on winsock.c.
25174         * lib/winsock.c: Remove file.
25175         * modules/accept: Likewise.
25176         * modules/bind: Likewise.
25177         * modules/connect: Likewise.
25178         * modules/getpeername: Likewise.
25179         * modules/getsockname: Likewise.
25180         * modules/getsockopt: Likewise.
25181         * modules/ioctl: Likewise.
25182         * modules/listen: Likewise.
25183         * modules/recv: Likewise.
25184         * modules/recvfrom: Likewise.
25185         * modules/send: Likewise.
25186         * modules/sendto: Likewise.
25187         * modules/setsockopt: Likewise.
25188         * modules/shutdown: Likewise.
25189         * modules/socket: Use socket.c instead of winsock.c.
25190         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
25191         * doc/posix-functions/accept.texi: Doc fix.
25192         * doc/posix-functions/bind.texi: Doc fix.
25193         * doc/posix-functions/close.texi: Doc fix.
25194         * doc/posix-functions/connect.texi: Doc fix.
25195         * doc/posix-functions/getpeername.texi: Doc fix.
25196         * doc/posix-functions/getsockname.texi: Doc fix.
25197         * doc/posix-functions/getsockopt.texi: Doc fix.
25198         * doc/posix-functions/ioctl.texi: Doc fix.
25199         * doc/posix-functions/listen.texi: Doc fix.
25200         * doc/posix-functions/recv.texi: Doc fix.
25201         * doc/posix-functions/recvfrom.texi: Doc fix.
25202         * doc/posix-functions/send.texi: Doc fix.
25203         * doc/posix-functions/sendto.texi: Doc fix.
25204         * doc/posix-functions/setsockopt.texi: Doc fix.
25205         * doc/posix-functions/shutdown.texi: Doc fix.
25206         * doc/posix-functions/socket.texi: Doc fix.
25207
25208 2008-10-20  Bruno Haible  <bruno@clisp.org>
25209
25210         Take into account the role of SIGABRT_COMPAT on Windows 2008.
25211         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
25212         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
25213         as an alias for SIGABRT.
25214         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
25215         (sigaction): Map it to SIGABRT.
25216         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
25217
25218 2008-10-20  Bruno Haible  <bruno@clisp.org>
25219
25220         * lib/fts.c: Don't include lstat.h.
25221         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
25222
25223         Move the lstat() declaration to <sys/stat.h>.
25224         * lib/lstat.h: Remove file.
25225         * lib/sys_stat.in.h: Add special invocation convention.
25226         (lstat): New declaration.
25227         * lib/lstat.c (orig_lstat): New function.
25228         (rpl_lstat): Use orig_lstat instead of lstat.
25229         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
25230         AC_C_INLINE. Set REPLACE_LSTAT.
25231         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
25232         and REPLACE_LSTAT.
25233         * modules/lstat (Files): Remove lib/lstat.h.
25234         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
25235         (Include): Specify <sys/stat.h> instead of lstat.h.
25236         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
25237         REPLACE_LSTAT.
25238         * NEWS: Mention the change.
25239
25240 2008-10-20  Bruno Haible  <bruno@clisp.org>
25241
25242         * modules/posix_spawn-tests: New file.
25243         * tests/test-posix_spawn3.c: New file.
25244
25245 2008-10-20  Bruno Haible  <bruno@clisp.org>
25246
25247         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
25248         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
25249         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
25250         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
25251         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
25252
25253 2008-10-20  Bruno Haible  <bruno@clisp.org>
25254
25255         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
25256         of posix_spawn on AIX 5.3.
25257
25258 2008-10-20  Bruno Haible  <bruno@clisp.org>
25259
25260         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
25261
25262 2008-10-20  Bruno Haible  <bruno@clisp.org>
25263
25264         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
25265         of AC_LANG_PROGRAM.
25266
25267 2008-10-20  Simon Josefsson  <simon@josefsson.org>
25268
25269         * lib/netdb.in.h: Don't define GNU specific constants until they
25270         are supported or needed.  Reported by Bruno Haible
25271         <bruno@clisp.org>.
25272
25273 2008-10-20  Simon Josefsson  <simon@josefsson.org>
25274
25275         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
25276
25277 2008-10-20  Simon Josefsson  <simon@josefsson.org>
25278
25279         * lib/getaddrinfo.h: Remove file.
25280         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
25281         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
25282         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
25283         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
25284         * modules/netdb: Substitute GNULIB_GETADDRINFO.
25285         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
25286         * tests/test-getaddrinfo.c: Likewise.
25287         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
25288         * NEWS: Mention change.
25289
25290 2008-10-19  Bruno Haible  <bruno@clisp.org>
25291
25292         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
25293
25294 2008-10-19  Bruno Haible  <bruno@clisp.org>
25295
25296         * lib/wait-process.c: Include simply <sys/wait.h>.
25297         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
25298         WIFSTOPPED): Remove fallback definitions.
25299         * modules/wait-process (Depends-on): Add sys_wait.
25300
25301         New module 'sys_wait'.
25302         * modules/sys_wait: New file.
25303         * lib/sys_wait.in.h: New file, partially copied from
25304         lib/wait-process.c.
25305         * m4/sys_wait_h.m4: New file.
25306         * doc/posix-headers/sys_wait.texi: Mention the new module.
25307
25308 2008-10-19  Bruno Haible  <bruno@clisp.org>
25309
25310         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
25311
25312 2008-10-19  Bruno Haible  <bruno@clisp.org>
25313
25314         Assume that waitpid() fills an 'int' status, not a 'union wait'.
25315         * lib/wait-process.c (WAIT_T): Remove type.
25316         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
25317         (wait_subprocess): Update.
25318
25319 2008-10-19  Bruno Haible  <bruno@clisp.org>
25320
25321         New module 'atoll'.
25322         * modules/atoll: New file.
25323         * lib/stdlib.in.h (atoll): New declaration.
25324         * lib/atoll.c: New file, from glibc with modifications.
25325         * m4/atoll.m4: New file.
25326         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
25327         HAVE_ATOLL.
25328         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
25329         * doc/posix-functions/atoll.texi: Mention the new module.
25330
25331 2008-10-19  Bruno Haible  <bruno@clisp.org>
25332
25333         Add strtoull() declaration to <stdlib.h>.
25334         * lib/stdlib.in.h (strtoull): New declaration.
25335         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
25336         Set HAVE_STRTOULL.
25337         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
25338         HAVE_STRTOULL.
25339         * modules/strtoull (Depends-on): Add stdlib.
25340         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25341         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
25342         HAVE_STRTOULL.
25343
25344 2008-10-19  Bruno Haible  <bruno@clisp.org>
25345
25346         Add strtoll() declaration to <stdlib.h>.
25347         * lib/stdlib.in.h (strtoll): New declaration.
25348         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
25349         Set HAVE_STRTOLL.
25350         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
25351         HAVE_STRTOLL.
25352         * modules/strtoll (Depends-on): Add stdlib.
25353         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25354         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
25355
25356 2008-10-19  Bruno Haible  <bruno@clisp.org>
25357
25358         * modules/bcopy (Depends-on): Add strings.
25359         (Include): Specify <strings.h>.
25360
25361 2008-10-19  Bruno Haible  <bruno@clisp.org>
25362
25363         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
25364
25365 2008-10-19  Bruno Haible  <bruno@clisp.org>
25366
25367         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
25368         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
25369         mingw.
25370
25371 2008-10-19  Bruno Haible  <bruno@clisp.org>
25372
25373         * lib/atanl.c: Don't include isnanl.h.
25374         * lib/cosl.c: Likewise.
25375         * lib/ldexpl.c: Likewise.
25376         * lib/logl.c: Likewise.
25377         * lib/sinl.c: Likewise.
25378         * lib/sqrtl.c: Likewise.
25379         * lib/tanl.c: Likewise.
25380
25381         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
25382         * lib/isnanf.h: Remove file.
25383         * lib/isnand.h: Remove file.
25384         * lib/isnanl.h: Remove file.
25385         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
25386         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
25387         macros.
25388         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
25389         HAVE_ISNANF, don't define it as a C macro.
25390         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
25391         HAVE_ISNAND, don't define it as a C macro.
25392         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
25393         HAVE_ISNANL, don't define it as a C macro.
25394         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
25395         HAVE_ISNAN[FDL].
25396         * modules/isnanf (Files): Remove lib/isnanf.h.
25397         (Depends-on): Add math.
25398         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25399         (Include): Specify <math.h> instead of isnanf.h.
25400         * modules/isnand (Files): Remove lib/isnand.h.
25401         (Depends-on): Add math.
25402         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25403         (Include): Specify <math.h> instead of isnand.h.
25404         * modules/isnanl (Files): Remove lib/isnanl.h.
25405         (Depends-on): Add math.
25406         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25407         (Include): Specify <math.h> instead of isnanl.h.
25408         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
25409         HAVE_ISNAN[FDL].
25410         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
25411         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
25412         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
25413         * NEWS: Mention the change.
25414
25415 2008-10-18  Bruno Haible  <bruno@clisp.org>
25416
25417         Add getusershell(), setusershell(), endusershell() declarations to
25418         <unistd.h>.
25419         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
25420         declarations.
25421         * lib/getusershell.c: Include unistd.h.
25422         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
25423         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
25424         HAVE_GETUSERSHELL.
25425         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
25426         and HAVE_GETUSERSHELL.
25427         * modules/getusershell (Depends-on): Add unistd, extensions.
25428         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25429         (Include): Specify <unistd.h>.
25430         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
25431         HAVE_GETUSERSHELL.
25432
25433 2008-10-18  Bruno Haible  <bruno@clisp.org>
25434
25435         Add a getloadavg() declaration to <stdlib.h>.
25436         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
25437         getloadavg declaration.
25438         (getloadavg): New declaration.
25439         * lib/getloadavg.c: Include <stdlib.h> first.
25440         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
25441         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
25442         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
25443         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
25444         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
25445         * modules/getloadavg (Depends-on): Add stdlib, extensions.
25446         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25447         (Include): Specify <stdlib.h>.
25448         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
25449         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
25450
25451 2008-10-18  Bruno Haible  <bruno@clisp.org>
25452
25453         * lib/dirchownmod.c: Don't include lchmod.h.
25454
25455         Move the lchmod() declaration to <sys/stat.h>.
25456         * lib/lchmod.h: Remove file.
25457         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
25458         (lchmod): New declaration, moved here from lib/lchown.h.
25459         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
25460         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
25461         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
25462         and HAVE_LCHMOD.
25463         * modules/lchmod (Files): Remove lib/lchmod.h.
25464         (Depends-on): Add sys_stat, extensions.
25465         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
25466         (Include): Specify <sys/stat.h> instead of lchmod.h.
25467         * modules/sys_stat (Depends-on): Add link-warning.
25468         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
25469         definition of GL_LINK_WARNING.
25470         * NEWS: Mention the change.
25471
25472 2008-10-18  Bruno Haible  <bruno@clisp.org>
25473
25474         * lib/fchdir.c: Don't include dirfd.h.
25475         * lib/fts.c: Likewise.
25476         * lib/getcwd.c: Likewise.
25477         * lib/glob.c: Likewise.
25478
25479         Move the dirfd() declaration to <dirent.h>.
25480         * lib/dirfd.h: Remove file.
25481         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
25482         (dirfd): New declaration.
25483         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
25484         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
25485         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
25486         HAVE_DECL_DIRFD.
25487         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
25488         HAVE_DECL_DIRFD.
25489         * modules/dirfd (Files): Remove lib/dirfd.h.
25490         (Depends-on): Add dirent, extensions.
25491         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
25492         (Include): Specify <dirent.h> instead of dirfd.h.
25493         * modules/dirent (Depends-on): Add link-warning.
25494         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
25495         definition of GL_LINK_WARNING.
25496         * NEWS: Mention the change.
25497
25498 2008-10-18  Bruno Haible  <bruno@clisp.org>
25499
25500         Move the euidaccess() declaration to <unistd.h>.
25501         * lib/euidaccess.h: Remove file.
25502         * lib/unistd.in.h (euidaccess): New declaration.
25503         * lib/euidaccess.c: Don't include euidaccess.h.
25504         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
25505         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
25506         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
25507         and HAVE_EUIDACCESS.
25508         * modules/euidaccess (Files): Remove lib/euidaccess.h.
25509         (Depends-on): Add unistd.
25510         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25511         (Include): Specify <unistd.h> instead of euidaccess.h.
25512         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
25513         HAVE_EUIDACCESS.
25514         * NEWS: Mention the change.
25515
25516 2008-10-18  Bruno Haible  <bruno@clisp.org>
25517
25518         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
25519
25520         Move the getdomainname() declaration to <unistd.h>.
25521         * lib/getdomainname.h: Remove file.
25522         * lib/unistd.in.h (getdomainname): New declaration.
25523         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
25524         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
25525         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
25526         HAVE_GETDOMAINNAME.
25527         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25528         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
25529         * modules/getdomainname (Files): Remove lib/getdomainname.h.
25530         (Depends-on): Add unistd, extensions.
25531         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25532         (Includes): Specify <unistd.h> instead of getdomainname.h.
25533         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
25534         HAVE_GETDOMAINNAME.
25535         * NEWS: Mention the change.
25536
25537 2008-10-18  Bruno Haible  <bruno@clisp.org>
25538
25539         * modules/dirent: New file.
25540         * m4/dirent_h.m4: New file.
25541         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
25542         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
25543         * modules/fchdir (Files): Remove lib/dirent.in.h.
25544         (Depends-on): Add dirent.
25545         (Makefile.am): Move rules to modules/dirent.
25546         * doc/posix-headers/dirent.texi: Mention the new module.
25547
25548 2008-10-18  Bruno Haible  <bruno@clisp.org>
25549
25550         Avoid -Wunused-parameter warnings in public gnulib header files.
25551         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
25552         macro.
25553         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
25554
25555 2008-10-18  Bruno Haible  <bruno@clisp.org>
25556
25557         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
25558         * doc/glibc-functions/error.texi: Mention the module 'error'.
25559         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
25560         * doc/glibc-functions/getdomainname.texi: Mention the module
25561         'getdomainname'.
25562         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
25563         * doc/glibc-functions/getpagesize.texi: Mention the module
25564         'getpagesize'.
25565         * doc/glibc-functions/getusershell.texi: Mention the module
25566         'getusershell'.
25567         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
25568         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
25569         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
25570         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
25571         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
25572         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
25573         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
25574         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
25575         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
25576         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
25577         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
25578         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
25579         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
25580         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
25581
25582 2008-10-17  Bruno Haible  <bruno@clisp.org>
25583
25584         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
25585         HP-UX and IRIX, use -0.0L.
25586         * tests/test-ceill.c (minus_zero): Likewise.
25587         * tests/test-floorl.c (minus_zero): Likewise.
25588         * tests/test-frexpl.c (minus_zero): Likewise.
25589         * tests/test-isnan.c (minus_zerol): Likewise.
25590         * tests/test-isnanl.h (minus_zero): Likewise.
25591         * tests/test-ldexpl.c (minus_zero): Likewise.
25592         * tests/test-roundl.c (minus_zero): Likewise.
25593         * tests/test-signbit.c (minus_zerol): Likewise.
25594         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
25595         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
25596         * tests/test-truncl.c (minus_zero): Likewise.
25597         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
25598         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
25599         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
25600         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
25601
25602 2008-10-17  Bruno Haible  <bruno@clisp.org>
25603
25604         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
25605         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
25606         that it gets activated only for gcc >= 3.0.
25607         * lib/dirent.in.h: Likewise.
25608         * lib/errno.in.h: Likewise.
25609         * lib/fcntl.in.h: Likewise.
25610         * lib/float.in.h: Likewise.
25611         * lib/iconv.in.h: Likewise.
25612         * lib/inttypes.in.h: Likewise.
25613         * lib/locale.in.h: Likewise.
25614         * lib/math.in.h: Likewise.
25615         * lib/netdb.in.h: Likewise.
25616         * lib/netinet_in.in.h: Likewise.
25617         * lib/search.in.h: Likewise.
25618         * lib/signal.in.h: Likewise.
25619         * lib/spawn.in.h: Likewise.
25620         * lib/stdarg.in.h: Likewise.
25621         * lib/stdint.in.h: Likewise.
25622         * lib/stdio.in.h: Likewise.
25623         * lib/stdlib.in.h: Likewise.
25624         * lib/string.in.h: Likewise.
25625         * lib/strings.in.h: Likewise.
25626         * lib/sys_file.in.h: Likewise.
25627         * lib/sys_ioctl.in.h: Likewise.
25628         * lib/sys_select.in.h: Likewise.
25629         * lib/sys_socket.in.h: Likewise.
25630         * lib/sys_stat.in.h: Likewise.
25631         * lib/sys_time.in.h: Likewise.
25632         * lib/sysexits.in.h: Likewise.
25633         * lib/time.in.h: Likewise.
25634         * lib/unistd.in.h: Likewise.
25635         * lib/wchar.in.h: Likewise.
25636         * lib/wctype.in.h: Likewise.
25637         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
25638
25639 2008-10-17  Jim Meyering  <meyering@redhat.com>
25640
25641         ignore-value: don't depend on inline module
25642         * modules/ignore-value (Depends-on): Remove 'inline'.
25643         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
25644         Suggestion from Bruno Haible.
25645
25646 2008-10-17  Bruno Haible  <bruno@clisp.org>
25647
25648         New implementation of condition variables for Win32.
25649         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
25650         (gl_linked_waitqueue_t): New type.
25651         (gl_cond_t): Use it.
25652         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
25653         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
25654         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
25655         (glthread_cond_init_func, glthread_cond_wait_func,
25656         glthread_cond_timedwait_func, glthread_cond_signal_func,
25657         glthread_cond_broadcast_func, glthread_cond_destroy_func):
25658         Reimplemented on the basis of gl_linked_waitqueue_t.
25659         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
25660         gl_waitqueue_t.
25661         (gl_rwlock_t): Update.
25662         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
25663
25664 2008-10-17  Simon Josefsson  <simon@josefsson.org>
25665
25666         * modules/recvfrom (Depends-on): Add dependency on getpeername.
25667         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
25668
25669 2008-10-17  Jim Meyering  <meyering@redhat.com>
25670
25671         ignore-value: new module
25672         * modules/ignore-value: New file.
25673         * lib/ignore-value.h: New file.
25674         * MODULES.html.sh (Compiler warning management): New section,
25675         just for this module.  More to come.
25676
25677 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
25678
25679         open-safer.c: avoid 'signed and unsigned in conditional...' warning
25680         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
25681         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
25682
25683 2008-10-16  Jim Meyering  <meyering@redhat.com>
25684
25685         openat-die.c: avoid 'no previous prototype' warning
25686         * lib/openat-die.c: Include "openat.h".
25687         Reported by Reuben Thomas <rrt@sc3d.org>.
25688
25689 2008-10-16  Simon Josefsson  <simon@josefsson.org>
25690
25691         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
25692         * lib/netdb.in.h: Fix typo.
25693         Reported by Bruno Haible  <bruno@clisp.org>
25694
25695         * lib/netdb.in.h: Include sys/socket.h for platforms without
25696         netdb.h, to get structures like hostent on MinGW.
25697         * modules/netdb (Depends-on): Add sys_socket.
25698
25699 2008-10-15  Simon Josefsson  <simon@josefsson.org>
25700
25701         * modules/netdb, modules/netdb-tests: New file.
25702         * m4/netdb_h.m4: New file.
25703         * lib/netdb.in.h: Add, currently just an empty file pending
25704         definitions.
25705         * tests/test-netdb.c: New file.
25706         * doc/posix-headers/netdb.texi: Mention that we replace it if
25707         needed.
25708         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
25709         netdb.
25710
25711 2008-10-15  Simon Josefsson  <simon@josefsson.org>
25712
25713         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
25714         with code.
25715
25716 2008-10-13  Bruno Haible  <bruno@clisp.org>
25717
25718         * lib/glthread/cond.c (glthread_cond_wait_func,
25719         glthread_cond_timedwait_func): Add a comment.
25720
25721 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
25722
25723         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
25724         * tests/test-select.c: Likewise,
25725
25726 2008-10-13  Bruno Haible  <bruno@clisp.org>
25727
25728         * lib/glthread/cond.c (glthread_cond_wait_func,
25729         glthread_cond_timedwait_func): Fix variable name.
25730         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
25731
25732 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
25733
25734         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
25735         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
25736         struct sockaddr.sa_len.
25737         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
25738
25739 2008-10-13  Simon Josefsson  <simon@josefsson.org>
25740
25741         * build-aux/pmccabe2html: Add css and css_url parameters.
25742
25743 2008-10-12  Bruno Haible  <bruno@clisp.org>
25744
25745         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
25746         calling aclx_get.
25747         Reported by Rainer Tammer <tammer@tammer.net>.
25748
25749 2008-10-12  Bruno Haible  <bruno@clisp.org>
25750
25751         Use msvcrt aware primitives for creation/termination of Win32 threads.
25752         * lib/glthread/thread.c: Include <process.h>.
25753         (glthread_create_func): Use _beginthreadex instead of CreateThread.
25754         (wrapper_func): Update signature.
25755         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
25756
25757 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
25758             Bruno Haible  <bruno@clisp.org>
25759
25760         Provide a Win32 implementation of the 'cond' module.
25761         * lib/glthread/cond.h [USE_WIN32]: New implementation.
25762         * lib/glthread/cond.c (glthread_cond_init_func,
25763         glthread_cond_wait_func, glthread_cond_timedwait_func,
25764         glthread_cond_signal_func, glthread_cond_broadcast_func,
25765         glthread_cond_destroy_func) [USE_WIN32]: New functions.
25766         * modules/cond (Dependencies): Add gettimeofday.
25767
25768 2008-10-11  Bruno Haible  <bruno@clisp.org>
25769
25770         Make sleep work on older versions of mingw.
25771         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
25772         only whether it exists.
25773         * doc/posix-functions/sleep.texi: Mention the problem with older
25774         versions of mingw.
25775
25776 2008-10-11  Bruno Haible  <bruno@clisp.org>
25777
25778         New module 'shutdown'.
25779         * modules/shutdown: New file.
25780         * lib/sys_socket.in.h (shutdown): New declaration.
25781         * lib/winsock.c (shutdown): New function.
25782         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
25783         GNULIB_SHUTDOWN.
25784         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
25785         * doc/posix-functions/shutdown.texi: Document the new module.
25786
25787 2008-10-11  Jim Meyering  <meyering@redhat.com>
25788
25789         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
25790
25791 2008-10-11  Bruno Haible  <bruno@clisp.org>
25792
25793         New module 'fclose'.
25794         * modules/fclose: New file.
25795         * lib/stdio.in.h (fclose): New declaration.
25796         * lib/fclose.c: New file.
25797         * m4/fclose.m4: New file.
25798         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
25799         REPLACE_FCLOSE.
25800         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
25801         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
25802         REPLACE_FCLOSE.
25803         * modules/close (Depends-on): fclose.
25804         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
25805
25806 2008-10-11  Bruno Haible  <bruno@clisp.org>
25807
25808         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
25809         set errno and don't call _close.
25810
25811 2008-10-10  Bruno Haible  <bruno@clisp.org>
25812
25813         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
25814         ACL, not afterwards. Fixes test failure on Cygwin.
25815
25816 2008-10-09  Ben Pfaff  <blp@gnu.org>
25817
25818         * build-aux/announce-gen: Fix gnulib version related part of usage
25819         message.  Die with a useful error message if no tarballs are
25820         found.
25821
25822 2008-10-10  Jim Meyering  <meyering@redhat.com>
25823
25824         bootstrap: use git's --depth=N option only if it's supported
25825         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
25826         recognize the --depth option.  Reported by Pádraig Brady.
25827
25828 2008-10-09  Bruno Haible  <bruno@clisp.org>
25829
25830         New module 'ioctl'.
25831         * modules/ioctl: New file.
25832         * lib/sys_socket.in.h (ioctl): Remove declaration.
25833         * lib/winsock.c: Include <sys/ioctl.h>.
25834         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
25835         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
25836         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
25837         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
25838         * doc/posix-functions/ioctl.texi: Mention the new module.
25839
25840 2008-10-09  Bruno Haible  <bruno@clisp.org>
25841
25842         New module 'sys_ioctl'.
25843         * lib/sys_ioctl.in.h: New file.
25844         * m4/sys_ioctl_h.m4: New file.
25845         * modules/sys_ioctl: New file.
25846         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
25847
25848 2008-10-09  Bruno Haible  <bruno@clisp.org>
25849
25850         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
25851         * lib/winsock.c: Include <stdarg.h>.
25852         (rpl_ioctl): Change to second argument 'int' and then varargs.
25853
25854 2008-10-09  Bruno Haible  <bruno@clisp.org>
25855
25856         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
25857         when the sys_socket module is present and the system has <winsock2.h>.
25858
25859 2008-10-09  Bruno Haible  <bruno@clisp.org>
25860
25861         * doc/posix-functions/close.texi: Mention module 'close' instead of
25862         module 'sys_socket'.
25863
25864 2008-10-09  Bruno Haible  <bruno@clisp.org>
25865
25866         * doc/glibc-headers/sys_ioctl.texi: New file.
25867         * doc/gnulib.texi: Include it.
25868
25869 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25870             Bruno Haible  <bruno@clisp.org>
25871
25872         Combine the two replacements of 'close'.
25873         * lib/sys_socket.in.h (close): Define to a reminder to include
25874         <unistd.h>.
25875         (_gl_close_fd_maybe_socket): New declaration.
25876         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
25877         * lib/winsock.c (close): Remove undefinition.
25878         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
25879         needed for the gnulib module 'close'.
25880         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
25881         define to an error symbol or to a warning, if suitable.
25882         * lib/close.c: Include <sys/socket.h>.
25883         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
25884         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
25885         UNISTD_H_HAVE_WINSOCK2_H.
25886         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
25887         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25888         UNISTD_H_HAVE_WINSOCK2_H.
25889         * modules/sys_socket (Files): Add m4/unistd_h.m4.
25890         (configure.ac): Set a module indicator.
25891         (Makefile.am): Substitute GNULIB_CLOSE.
25892         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
25893         * modules/poll-tests (Depends-on): Add close.
25894         * modules/select-tests (Depends-on): Likewise.
25895
25896 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25897             Bruno Haible  <bruno@clisp.org>
25898
25899         New module 'close'.
25900         * modules/close: New file.
25901         * lib/unistd.in.h (close): Move declaration out of the
25902         FCHDIR_REPLACEMENT scope.
25903         (_gl_unregister_fd): New declaration.
25904         * lib/close.c: New file.
25905         * lib/fchdir.c (rpl_close): Remove function.
25906         * m4/close.m4: New file.
25907         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
25908         close.
25909         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
25910         REPLACE_CLOSE.
25911         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
25912         REPLACE_CLOSE.
25913         * modules/fchdir (Depends-on): Add close.
25914
25915 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25916             Bruno Haible  <bruno@clisp.org>
25917
25918         * lib/fcntl.in.h (open): Simplify conditionals.
25919         (_gl_register_fd): New declaration.
25920         * lib/fchdir.c (rpl_open): Remove function.
25921         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
25922         also.
25923         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
25924         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
25925         open.
25926
25927 2008-10-09  Jim Meyering  <meyering@redhat.com>
25928
25929         GNUmakefile: use the more name-space-friendly "_version"
25930         * top/GNUmakefile (_dummy): Update.
25931         (_version): Rename from "version".
25932
25933 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25934             Bruno Haible  <bruno@clisp.org>
25935
25936         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
25937         rpl_close.
25938         (_gl_register_fd): New function, extracted from rpl_open.
25939         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
25940         (rpl_open, rpl_opendir): Use _gl_register_fd.
25941
25942 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25943
25944         Fix organization of 'open' replacement.
25945         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
25946         (gl_FUNC_OPEN): Use it.
25947         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
25948
25949 2008-10-08  Bruno Haible  <bruno@clisp.org>
25950
25951         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
25952
25953 2008-10-08  Simon Josefsson  <simon@josefsson.org>
25954
25955         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
25956         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
25957         listen).
25958
25959 2008-10-08  Eric Blake  <ebb9@byu.net>
25960
25961         GNUmakefile: add 'make version' target
25962         * top/GNUmakefile (_curr-ver): Split version update rules...
25963         (version): ...into a target.
25964
25965 2008-10-07  Bruno Haible  <bruno@clisp.org>
25966
25967         Use a more portable replacement expression for -0.0L.
25968         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
25969         instead of -0.0L. Fix m4 quotation.
25970
25971         * tests/test-signbit.c: Include <float.h>.
25972         (minus_zero): New variable.
25973         (test_signbitl): Use minus_zero instead of -zero.
25974         * modules/signbit-tests (Depends-on): Add float.
25975
25976         * tests/test-ceill.c: Include <float.h>.
25977         (zero): Remove variable.
25978         (minus_zero): New variable.
25979         (main): Use minus_zero instead of -zero.
25980         * modules/ceill-tests (Depends-on): Add float.
25981
25982         * tests/test-floorl.c: Include <float.h>.
25983         (zero): Remove variable.
25984         (minus_zero): New variable.
25985         (main): Use minus_zero instead of -zero.
25986         * modules/floorl-tests (Depends-on): Add float.
25987
25988         * tests/test-roundl.c: Include <float.h>.
25989         (zero): Remove variable.
25990         (minus_zero): New variable.
25991         (main): Use minus_zero instead of -zero.
25992         * modules/roundl-tests (Depends-on): Add float.
25993
25994         * tests/test-truncl.c: Include <float.h>.
25995         (zero): Remove variable.
25996         (minus_zero): New variable.
25997         (main): Use minus_zero instead of -zero.
25998         * modules/truncl-tests (Depends-on): Add float.
25999
26000         * tests/test-frexpl.c (zero): Remove variable.
26001         (minus_zero): New variable.
26002         (main): Use minus_zero instead of -zero.
26003         * modules/frexpl-tests (Depends-on): Add float.
26004
26005         * tests/test-isnan.c (zerol): Remove variable.
26006         (minus_zerol): New variable.
26007         (test_long_double): Use minus_zerol instead of -zerol.
26008         * modules/isnan-tests (Depends-on): Add float.
26009
26010         * tests/test-isnanl.h (zero): Remove variable.
26011         (minus_zero): New variable.
26012         (main): Use minus_zero instead of -zero.
26013         * modules/isnanl-nolibm-tests (Depends-on): Add float.
26014         * modules/isnanl-tests (Depends-on): Add float.
26015
26016         * tests/test-ldexpl.c (zero): Remove variable.
26017         (minus_zero): New variable.
26018         (main): Use minus_zero instead of -zero.
26019         * modules/ldexpl-tests (Depends-on): Add float.
26020
26021         * tests/test-snprintf-posix.h (zerol): Remove variable.
26022         (minus_zerol): New variable.
26023         (test_function): Use minus_zerol instead of -zerol.
26024         * modules/snprintf-posix-tests (Depends-on): Add float.
26025         * modules/vsnprintf-posix-tests (Depends-on): Add float.
26026
26027         * tests/test-sprintf-posix.h (zerol): Remove variable.
26028         (minus_zerol): New variable.
26029         (test_function): Use minus_zerol instead of -zerol.
26030         * modules/sprintf-posix-tests (Depends-on): Add float.
26031         * modules/vsprintf-posix-tests (Depends-on): Add float.
26032
26033         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
26034         (minus_zerol): New variable.
26035         (test_function): Use minus_zerol instead of -zerol.
26036         * modules/vasnprintf-posix-tests (Depends-on): Add float.
26037
26038         * tests/test-vasprintf-posix.c (zerol): Remove variable.
26039         (minus_zerol): New variable.
26040         (test_function): Use minus_zerol instead of -zerol.
26041         * modules/vasprintf-posix-tests (Depends-on): Add float.
26042
26043 2008-10-07  Simon Josefsson  <simon@josefsson.org>
26044
26045         * MODULES.html.sh (Support for building documentation): Mention
26046         pmccabe2html.  Sort entries.
26047
26048         Add pmccabe2html module, from gnupdf.
26049         * build-aux/pmccabe.css: New file.
26050         * build-aux/pmccabe2html: New file.
26051         * m4/pmccabe2html.m4: New file.
26052         * modules/pmccabe2html: New file.
26053
26054 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
26055
26056         flock: new module
26057         * MODULES.html.sh: Add to list of modules.
26058         * lib/flock.c: flock implementation for Windows and Unix systems
26059         which have fcntl.
26060         * doc/glibc-functions/flock.texi: Update documentation.
26061         * lib/sys_file.in.h: <sys/file.h> header file.
26062         * m4/flock.m4: M4 macros.
26063         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
26064         * modules/flock: flock module.
26065         * modules/flock-tests: flock tests module.
26066         * modules/sys_file: sys/file.h module.
26067         * tests/test-flock.c: test suite for flock.
26068
26069 2008-10-06  Jim Meyering  <meyering@redhat.com>
26070
26071         bootstrap: check for LT_INIT more portably still ;-)
26072         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
26073         Spotted by Bruno Haible.
26074
26075 2008-10-06  Eric Blake  <ebb9@byu.net>
26076
26077         test-signbit: avoid tripping Irix cc bug on -0.0L
26078         * tests/test-signbit.c (minus_zerol): Delete, and replace with
26079         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
26080         entire testsuite consistent and avoids an Irix 6.2 bug.
26081
26082 2008-10-05  Bruno Haible  <bruno@clisp.org>
26083             Jim Meyering  <jim@meyering.net>
26084
26085         Add an option for ignoring EPIPE during close_stdout.
26086         * lib/closeout.h: Include <stdbool.h>.
26087         (close_stdout_set_ignore_EPIPE): New declaration.
26088         * lib/closeout.c: Include <stdbool.h>.
26089         (ignore_EPIPE): New variable.
26090         (close_stdout_set_ignore_EPIPE): New function.
26091         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
26092         * lib/close-stream.c (close_stream): Mention the possible EPIPE
26093         failure.
26094         * modules/closeout (Depends-on): Add stdbool.
26095
26096 2008-10-05  Bruno Haible  <bruno@clisp.org>
26097
26098         * modules/accept: New file.
26099         * modules/bind: New file.
26100         * modules/connect: New file.
26101         * modules/getpeername: New file.
26102         * modules/getsockname: New file.
26103         * modules/getsockopt: New file.
26104         * modules/listen: New file.
26105         * modules/recv: New file.
26106         * modules/recvfrom: New file.
26107         * modules/send: New file.
26108         * modules/sendto: New file.
26109         * modules/setsockopt: New file.
26110         * modules/socket: New file.
26111         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
26112         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
26113         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
26114         the particular module is requested. Add a link warning when the
26115         particular module is not requested.
26116         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
26117         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
26118         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
26119         the particular module is requested.
26120         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
26121         gl_SYS_SOCKET_H_DEFAULTS): New macros.
26122         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
26123         * modules/sys_socket (Depends-on): Add link-warning.
26124         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
26125         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
26126         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
26127         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
26128         GL_LINK_WARNING.
26129         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
26130         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
26131         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
26132         * doc/posix-functions/getpeername.texi: Mention the new module
26133         'getpeername'.
26134         * doc/posix-functions/getsockname.texi: Mention the new module
26135         'getsockname'.
26136         * doc/posix-functions/getsockopt.texi: Mention the new module
26137         'getsockopt'.
26138         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
26139         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
26140         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
26141         * doc/posix-functions/send.texi: Mention the new module 'send'.
26142         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
26143         * doc/posix-functions/setsockopt.texi: Mention the new module
26144         'setsockopt'.
26145         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
26146         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
26147         listen, connect, accept.
26148         * modules/select-tests (Depends-on): Likewise.
26149
26150 2008-10-05  Bruno Haible  <bruno@clisp.org>
26151
26152         * lib/winsock.c (strerror): Remove unused #undef.
26153         (rpl_close): Remove unused local variable.
26154
26155         * modules/sys_socket (Depends-on); Add errno.
26156
26157 2008-10-05  Bruno Haible  <bruno@clisp.org>
26158
26159         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
26160         (select): Add a link warning when the 'select' module is not used.
26161         * modules/sys_select (Depends-on): Add link-warning.
26162         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
26163         Suggested by Paolo Bonzini.
26164
26165 2008-10-05  Jim Meyering  <meyering@redhat.com>
26166
26167         bootstrap: check for LT_INIT more portably
26168         * build-aux/bootstrap: Avoid using grep -E, since it's not
26169         portable enough.  Suggestion from Bruno Haible.
26170
26171 2008-10-05  Bruno Haible  <bruno@clisp.org>
26172
26173         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
26174         as being fixed by gnulib.
26175
26176 2008-10-05  Bruno Haible  <bruno@clisp.org>
26177
26178         * modules/select-tests: New file, mostly copied from
26179         modules/sys_select-tests.
26180         * tests/test-select.c: New file, mostly copied from
26181         tests/test-sys_select.c.
26182         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
26183         * modules/sys_select-tests (Depends-on): Remove all dependencies.
26184         (Makefile.am): Remove test_sys_select_LDADD.
26185
26186         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
26187         to an undefined symbol, for an error message.
26188         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
26189         (gl_SYS_SELECT_H_DEFAULTS): New macro.
26190         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
26191         winsock-select.c here.
26192         * modules/sys_select (Files): Remove lib/winsock-select.c.
26193         (Depends-on): Remove alloca.
26194         (Makefile.am): Substitute GNULIB_SELECT.
26195         * modules/select: New file.
26196         * doc/posix-functions/select.texi: Update.
26197
26198 2008-10-05  Bruno Haible  <bruno@clisp.org>
26199
26200         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
26201         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
26202         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
26203         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
26204         getdtablesize.
26205         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
26206         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
26207
26208 2008-10-05  Bruno Haible  <bruno@clisp.org>
26209
26210         * modules/getdtablesize-tests: New file.
26211         * tests/test-getdtablesize.c: New file.
26212
26213         New module 'getdtablesize'.
26214         * lib/unistd.in.h (getdtablesize): New declaration.
26215         * lib/getdtablesize.c: New file.
26216         * m4/getdtablesize.m4: New file.
26217         * modules/getdtablesize: New file.
26218         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26219         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
26220         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
26221         HAVE_GETDTABLESIZE.
26222         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
26223
26224 2008-10-05  Bruno Haible  <bruno@clisp.org>
26225
26226         * modules/sched (Makefile.am): Fix typo.
26227         Reported by Simon Josefsson.
26228
26229 2008-10-05  Jim Meyering  <meyering@redhat.com>
26230
26231         bootstrap: check for LT_INIT, too
26232         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
26233         are deprecated.  Suggestion from Ralf Wildenhues.
26234
26235 2008-10-05  Bruno Haible  <bruno@clisp.org>
26236
26237         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
26238         overriding them by ours.
26239         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
26240
26241 2008-10-05  Jim Meyering  <meyering@redhat.com>
26242
26243         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
26244         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
26245         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
26246
26247 2008-10-04  Bruno Haible  <bruno@clisp.org>
26248
26249         * modules/dup2 (License): Change to LGPLv2+.
26250         * modules/sleep (License): Likewise.
26251         * modules/perror (License): Likewise.
26252         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
26253         Blake.
26254         * modules/signal (License): Likewise.
26255         * modules/sigprocmask (License): Likewise.
26256         * modules/raise (License): Change to LGPLv2+, with approval by Jim
26257         Meyering.
26258
26259 2008-10-04  Bruno Haible  <bruno@clisp.org>
26260
26261         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
26262         Reported by Rainer Tammer <tammer@tammer.net>.
26263
26264 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
26265             Bruno Haible  <bruno@clisp.org>
26266
26267         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
26268         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
26269         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
26270
26271 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
26272
26273         filevercmp: new module
26274         * lib/filevercmp.h: New function filevercmp comparing version strings.
26275         * lib/filevercmp.c: Implementation of filevercmp function.
26276         * modules/filevercmp: Module metadata.
26277         * tests/test-filevercmp.c: Unit test for new module.
26278         * modules/filevercmp-tests: Unit test metadata.
26279         * MODULES.html.sh: Add filevercmp module.
26280
26281 2008-10-03  Bruno Haible  <bruno@clisp.org>
26282
26283         * lib/c-ctype.h: Add comment.
26284         Reported by Jim Meyering.
26285
26286 2008-10-02  Bruno Haible  <bruno@clisp.org>
26287
26288         * modules/posix_spawn-internal (Depends-on): Add 'open'.
26289
26290 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
26291
26292         * build-aux/bootstrap: Allow renaming bootstrap, and change the
26293         name of bootstrap.conf accordingly.
26294
26295 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
26296
26297         * build-aux/bootstrap: Install git-merge-changelog configuration
26298         items into .gitconfig if needed.
26299
26300 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
26301
26302         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
26303         git repository, and initialize/update it accordingly.
26304
26305 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
26306
26307         * modules/fsync-tests: New file.
26308         * tests/test-fsync.c: New file.
26309
26310         New module 'fsync'.
26311         * lib/fsync.c: New file.
26312         * m4/fsync.m4: New file.
26313         * modules/fsync: New file.
26314         * lib/unistd.in.h (fsync): New declaration.
26315         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
26316         GNULIB_FSYNC and HAVE_FSYNC.
26317         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
26318         * MODULES.html.sh (posix_functions): Add fsync.
26319         * doc/posix-functions/fsync.texi: Mention the new module.
26320
26321 2008-10-02  Jim Meyering  <meyering@redhat.com>
26322
26323         fts.c: sync with similar code from coreutils' remove.c
26324         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
26325         Guard also with "#if defined __linux__", since for now at least,
26326         this code is Linux-kernel-specific.
26327
26328 2008-10-02  Jim Meyering  <meyering@redhat.com>
26329
26330         fts: bug fixes
26331         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
26332         Include <sys/vfs.h>, not <sys/statfs.h>.
26333
26334         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
26335         Include <sys/vfs.h>, not <sys/statfs.h>.
26336
26337 2008-10-01  Bruno Haible  <bruno@clisp.org>
26338
26339         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
26340         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
26341         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
26342         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
26343         * doc/posix-functions/posix_spawnp.texi: Likewise.
26344         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
26345         whether posix_spawn actually works.
26346         * m4/pipe.m4 (gl_PIPE): Likewise.
26347         * modules/execute (Files): Add m4/posix_spawn.m4.
26348         * modules/pipe (Files): Add m4/posix_spawn.m4.
26349         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
26350
26351 2008-10-01  Jim Meyering  <meyering@redhat.com>
26352
26353         remove trailing spaces
26354         * NEWS: Likewise.
26355         * lib/poll.c (poll): Likewise.
26356         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
26357         * lib/winsock.c (rpl_close): Likewise.
26358         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
26359         * modules/yield: Likewise.
26360         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
26361         * tests/test-sys_select.c (connect_to_socket): Likewise.
26362
26363         fts.c: adjust a new interface to be more generally useful
26364         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
26365         (fts_build): Adjust caller.
26366
26367 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26368
26369         * modules/cond-tests: New file.
26370         * tests/test-cond.c: New file.
26371
26372 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26373             Bruno Haible  <bruno@clisp.org>
26374
26375         * modules/cond (Dependencies): Add errno, time.
26376         * lib/glthread/cond.h: Include <time.h>.
26377         (gl_cond_define, gl_cond_define_initialized): Use the same definition
26378         across platforms.
26379
26380 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26381             Bruno Haible  <bruno@clisp.org>
26382
26383         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
26384
26385 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26386             Bruno Haible  <bruno@clisp.org>
26387
26388         * modules/tls-tests (Depends-on): Add thread, yield.
26389         (configure.ac): Remove all checks.
26390         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
26391         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
26392         gl_thread_self): Remove definitions. Include glthread/thread.h and
26393         glthread/yield.h instead.
26394         (test_tls): Pass an additional NULL argument to gl_thread_join.
26395
26396 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26397             Bruno Haible  <bruno@clisp.org>
26398
26399         * modules/lock-tests (Depends-on): Add thread, yield.
26400         (configure.ac): Remove all checks.
26401         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
26402         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
26403         gl_thread_self): Remove definitions. Include glthread/thread.h and
26404         glthread/yield.h instead.
26405         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
26406         additional NULL argument to gl_thread_join.
26407
26408 2008-09-30  Bruno Haible  <bruno@clisp.org>
26409
26410         Fix the Win32 implementation of the 'thread' module.
26411         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
26412         pointer type.
26413         (gl_thread_self): Invoke gl_thread_self_func.
26414         (gl_thread_self_func): New declaration.
26415         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
26416         (do_init_self_key, init_self_key): New functions.
26417         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
26418         Remove some fields.
26419         (running_threads, running_lock): Remove variables.
26420         (get_current_thread_handle): New function.
26421         (gl_thread_self_func, wrapper_func, glthread_create_func,
26422         glthread_join_func, gl_thread_exit_func): Largely rewritten and
26423         simplified.
26424
26425 2008-09-30  Bruno Haible  <bruno@clisp.org>
26426
26427         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
26428         files.
26429
26430 2008-09-30  Jim Meyering  <meyering@redhat.com>
26431
26432         fts.m4: correct the test for statfs.f_type
26433         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
26434         when checking for statfs.f_type.
26435
26436 2008-09-15  Simon Josefsson  <simon@josefsson.org>
26437
26438         tests: avoid some compiler warnings
26439         * tests/test-memchr.c (main): Pass NULL indirectly.
26440         * tests/test-getdate.c (main): Remove unused variable 'ret'.
26441
26442 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
26443
26444         getdate.y: disallow countable dayshifts like "4 yesterday ago"
26445         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
26446         exactly specified dayshifts.
26447         (dayshift): New rule.
26448         (rel): Add dayshift.
26449         (relative_time_table) [tomorrow, yesterday, today, now]:
26450         Use tDAY_SHIFT in place of tDAY_UNIT.
26451         * tests/test-getdate.c: Add tests for now-disallowed countable
26452         dayshifts, e.g., "4 yesterday ago".
26453
26454 2008-09-29  Bruno Haible  <bruno@clisp.org>
26455
26456         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
26457         * tests/test-posix_spawn1.in.sh: Renamed from
26458         tests/test-posix_spawn.in.sh.
26459         * tests/test-posix_spawn2.c: New file.
26460         * tests/test-posix_spawn2.in.sh: New file.
26461         * modules/posix_spawnp-tests (Files): Update.
26462         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
26463
26464 2008-09-29  Bruno Haible  <bruno@clisp.org>
26465
26466         Propagate effects of putenv/setenv/unsetenv to child processes.
26467         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
26468         * lib/pipe.c (create_pipe): Likewise.
26469
26470 2008-09-29  Bruno Haible  <bruno@clisp.org>
26471
26472         Enable use of shell scripts as executables in mingw.
26473         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
26474         run the program as a shell script.
26475         * lib/pipe.c (create_pipe): Likewise.
26476         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
26477         resulting array.
26478
26479 2008-09-29  Eric Blake  <ebb9@byu.net>
26480
26481         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
26482
26483 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
26484
26485         * doc/posix-functions/accept.texi: Update mingw problems.
26486         * doc/posix-functions/bind.texi: Update mingw problems.
26487         * doc/posix-functions/close.texi: Update mingw problems.
26488         * doc/posix-functions/connect.texi: Update mingw problems.
26489         * doc/posix-functions/getpeername.texi: Update mingw problems.
26490         * doc/posix-functions/getsockname.texi: Update mingw problems.
26491         * doc/posix-functions/getsockopt.texi: Update mingw problems.
26492         * doc/posix-functions/ioctl.texi: Update mingw problems.
26493         * doc/posix-functions/listen.texi: Update mingw problems.
26494         * doc/posix-functions/recv.texi: Update mingw problems.
26495         * doc/posix-functions/recvfrom.texi: Update mingw problems.
26496         * doc/posix-functions/select.texi: Update mingw problems.
26497         * doc/posix-functions/send.texi: Update mingw problems.
26498         * doc/posix-functions/sendto.texi: Update mingw problems.
26499         * doc/posix-functions/setsockopt.texi: Update mingw problems.
26500         * doc/posix-functions/socket.texi: Update mingw problems.
26501
26502 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
26503             Bruno Haible  <bruno@clisp.org>
26504
26505         * lib/sys_select.in.h: Include sys/time.h.
26506         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
26507         * modules/sys_select: Depend on sys_time.
26508         * tests/test-sys_select.c: Test that sys/select.h defines struct
26509         timeval fully.
26510
26511 2008-09-29  Bruno Haible  <bruno@clisp.org>
26512
26513         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
26514         * lib/sys_select.in.h: Likewise.
26515
26516 2008-09-29  Bruno Haible  <bruno@clisp.org>
26517
26518         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
26519
26520 2008-09-29  Bruno Haible  <bruno@clisp.org>
26521
26522         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
26523         Set LIBSOCKET instead of augmenting LIBS.
26524         * modules/sockets (Link): New section.
26525         * modules/sockets-tests (test_sockets_LDADD): New variable.
26526         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
26527         * modules/poll-tests (test_poll_LDADD): New variable.
26528         * NEWS: Document the change.
26529
26530 2008-09-29  Bruno Haible  <bruno@clisp.org>
26531
26532         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
26533         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
26534         ARPA_INET_H directly.
26535         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
26536
26537 2008-09-28  Bruno Haible  <bruno@clisp.org>
26538
26539         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
26540         from gl_HEADER_SYS_SOCKET.
26541         (gl_HEADER_SYS_SOCKET): Invoke it.
26542         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26543
26544 2008-09-28  Bruno Haible  <bruno@clisp.org>
26545
26546         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
26547         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
26548         Needed on OSF/1 4.0.
26549
26550 2008-09-28  Bruno Haible  <bruno@clisp.org>
26551
26552         Override open more carefully.
26553         * lib/open.c (orig_open): New function.
26554         (rpl_open): Use orig_open instead of open.
26555         * lib/fcntl.in.h: Add special invocation convention.
26556         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
26557         (gl_FUNC_OPEN): Invoke it.
26558
26559         Override freopen more carefully.
26560         * lib/freopen.c (orig_freopen): New function.
26561         (rpl_freopen): Use orig_freopen instead of freopen.
26562         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
26563         (gl_FUNC_FREOPEN): Invoke it.
26564
26565         Override fopen more carefully.
26566         * lib/fopen.c (orig_fopen): New function.
26567         (rpl_fopen): Use orig_fopen instead of fopen.
26568         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
26569         (gl_FUNC_FOPEN): Invoke it.
26570         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
26571
26572 2008-09-28  Bruno Haible  <bruno@clisp.org>
26573
26574         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
26575         SIGPIPE.
26576
26577 2008-09-28  Bruno Haible  <bruno@clisp.org>
26578
26579         * tests/test-sigaction.c (handler, main): Disable the check whether
26580         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
26581         glibc systems with LinuxThreads.
26582
26583 2008-09-28  Bruno Haible  <bruno@clisp.org>
26584
26585         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
26586
26587         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
26588         with AIX xlc.
26589         * lib/fcntl.in.h (open): Likewise.
26590         Reported by Rainer Tammer <tammer@tammer.net>.
26591
26592 2008-09-28  Bruno Haible  <bruno@clisp.org>
26593
26594         * modules/posix_spawnp-tests: New file.
26595         * tests/test-posix_spawn.c: New file.
26596         * tests/test-posix_spawn.in.sh: New file.
26597
26598         New module 'posix_spawnp'.
26599         * modules/posix_spawnp: New file.
26600         * lib/spawnp.c: New file, from GNU libc with modifications.
26601         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
26602
26603         New module 'posix_spawn'.
26604         * modules/posix_spawn: New file.
26605         * lib/spawn.c: New file, from GNU libc with modifications.
26606         * doc/posix-functions/posix_spawn.texi: Mention the new module.
26607
26608         New module 'posix_spawnattr_destroy'.
26609         * modules/posix_spawnattr_destroy: New file.
26610         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
26611         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
26612         module.
26613
26614         New module 'posix_spawnattr_setsigmask'.
26615         * modules/posix_spawnattr_setsigmask: New file.
26616         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
26617         modifications.
26618         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
26619         new module.
26620
26621         New module 'posix_spawnattr_getsigmask'.
26622         * modules/posix_spawnattr_getsigmask: New file.
26623         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
26624         modifications.
26625         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
26626         new module.
26627
26628         New module 'posix_spawnattr_setsigdefault'.
26629         * modules/posix_spawnattr_setsigdefault: New file.
26630         * lib/spawnattr_setdefault.c: New file, from GNU libc with
26631         modifications.
26632         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
26633         new module.
26634
26635         New module 'posix_spawnattr_getsigdefault'.
26636         * modules/posix_spawnattr_getsigdefault: New file.
26637         * lib/spawnattr_getdefault.c: New file, from GNU libc with
26638         modifications.
26639         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
26640         new module.
26641
26642         New module 'posix_spawnattr_setschedpolicy'.
26643         * modules/posix_spawnattr_setschedpolicy: New file.
26644         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
26645         modifications.
26646         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
26647         new module.
26648
26649         New module 'posix_spawnattr_getschedpolicy'.
26650         * modules/posix_spawnattr_getschedpolicy: New file.
26651         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
26652         modifications.
26653         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
26654         new module.
26655
26656         New module 'posix_spawnattr_setschedparam'.
26657         * modules/posix_spawnattr_setschedparam: New file.
26658         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
26659         modifications.
26660         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
26661         new module.
26662
26663         New module 'posix_spawnattr_getschedparam'.
26664         * modules/posix_spawnattr_getschedparam: New file.
26665         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
26666         modifications.
26667         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
26668         new module.
26669
26670         New module 'posix_spawnattr_setpgroup'.
26671         * modules/posix_spawnattr_setpgroup: New file.
26672         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
26673         modifications.
26674         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
26675         module.
26676
26677         New module 'posix_spawnattr_getpgroup'.
26678         * modules/posix_spawnattr_getpgroup: New file.
26679         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
26680         modifications.
26681         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
26682         module.
26683
26684         New module 'posix_spawnattr_setflags'.
26685         * modules/posix_spawnattr_setflags: New file.
26686         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
26687         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
26688         module.
26689
26690         New module 'posix_spawnattr_getflags'.
26691         * modules/posix_spawnattr_getflags: New file.
26692         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
26693         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
26694         module.
26695
26696         New module 'posix_spawnattr_init'.
26697         * modules/posix_spawnattr_init: New file.
26698         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
26699         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
26700         module.
26701
26702         New module 'posix_spawn_file_actions_destroy'.
26703         * modules/posix_spawn_file_actions_destroy: New file.
26704         * lib/spawn_faction_destroy.c: New file, from GNU libc with
26705         modifications.
26706         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
26707         the new module.
26708
26709         New module 'posix_spawn_file_actions_addopen'.
26710         * modules/posix_spawn_file_actions_addopen: New file.
26711         * lib/spawn_faction_addopen.c: New file, from GNU libc with
26712         modifications.
26713         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
26714         the new module.
26715
26716         New module 'posix_spawn_file_actions_adddup2'.
26717         * modules/posix_spawn_file_actions_adddup2: New file.
26718         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
26719         modifications.
26720         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
26721         the new module.
26722
26723         New module 'posix_spawn_file_actions_addclose'.
26724         * modules/posix_spawn_file_actions_addclose: New file.
26725         * lib/spawn_faction_addclose.c: New file, from GNU libc with
26726         modifications.
26727         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
26728         the new module.
26729
26730         New module 'posix_spawn_file_actions_init'.
26731         * modules/posix_spawn_file_actions_init: New file.
26732         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
26733         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
26734         new module.
26735
26736         New module 'posix_spawn-internal'.
26737         * modules/posix_spawn-internal: New file.
26738         * lib/spawn_int.h: New file, from GNU libc with modifications.
26739         * lib/spawni.c: New file, from GNU libc with modifications.
26740         * m4/posix_spawn.m4: New file.
26741
26742         New module 'spawn'.
26743         * modules/spawn: New file.
26744         * lib/spawn.in.h: New file, from GNU libc with modifications.
26745         * m4/spawn_h.m4: New file.
26746         * doc/posix-headers/spawn.texi: Mention the new module.
26747
26748 2008-09-28  Bruno Haible  <bruno@clisp.org>
26749
26750         * modules/sched-tests: New file.
26751         * tests/test-sched.c: New file.
26752
26753         New module 'sched'.
26754         * modules/sched: New file.
26755         * lib/sched.in.h: New file.
26756         * m4/sched_h.m4: New file.
26757         * doc/posix-headers/sched.texi: Mention the new module.
26758
26759 2008-09-27  Eric Blake  <ebb9@byu.net>
26760
26761         Fix previous patch, and tweak references to $0.
26762         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
26763         (func_version, func_gnulib_dir): Don't call this program
26764         gnulib-tool.
26765         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
26766         with using $0 in function.
26767         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
26768         (func_fatal_error): Reuse the name the user invoked us with.
26769
26770 2008-09-27  Bruno Haible  <bruno@clisp.org>
26771
26772         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
26773         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
26774         (gl_ICONV_H): Not here.
26775         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
26776         instead of assigning ICONV_H directly.
26777
26778         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
26779         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
26780         WCHAR_H directly.
26781
26782 2008-09-27  Bruno Haible  <bruno@clisp.org>
26783
26784         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
26785         * modules/arpa_inet (Depends-on): Add link-warning.
26786         (Makefile.am): Insert the definition of GL_LINK-WARNING.
26787         * modules/unistd (Makefile.am): Likewise.
26788
26789 2008-09-26  Bruno Haible  <bruno@clisp.org>
26790
26791         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
26792         variables.
26793         (func_version): Essentially copied from gnulib-tool.
26794         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
26795         func_readlink): Copied from gnulib-tool.
26796
26797 2008-09-26  Bruno Haible  <bruno@clisp.org>
26798
26799         * gnulib-tool (func_version): Change directory to $gnulib_dir before
26800         invoking git-version-gen.
26801
26802 2008-09-26  Bruno Haible  <bruno@clisp.org>
26803
26804         * posix-modules: Update to directory names changed on 2008-01-19.
26805         Remove commas in output before splitting into words. No more need to
26806         avoid 'ftruncate' since 2007-02-19.
26807
26808 2008-09-26  Bruno Haible  <bruno@clisp.org>
26809
26810         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
26811
26812 2008-09-26  Bruno Haible  <bruno@clisp.org>
26813
26814         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
26815         * modules/fwriteerror (Depends-on): Add errno.
26816
26817 2008-09-26  Bruno Haible  <bruno@clisp.org>
26818
26819         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
26820         * tests/test-vc-list-files-cvs.sh: Likewise.
26821
26822 2008-09-26  Bruno Haible  <bruno@clisp.org>
26823
26824         * doc/posix-headers/sys_resource.texi: Reorder items.
26825
26826 2008-09-26  Jim Meyering  <meyering@redhat.com>
26827
26828         fts: tweak inode comparison function
26829         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
26830         inode numbers, as documented.
26831
26832         fts: sort dirent entries on inode number before traversing
26833         This avoids a quadratic, seek-related performance penalty when
26834         operating on a directory containing many entries (measurable at 10k;
26835         3.5 hours at 2 million entries with a cold cache) on certain types
26836         of file systems, including ext3 and ext4, but not tmpfs.
26837         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
26838         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
26839         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
26840         (fs_handles_readdir_ordered_dirents_efficiently): New function.
26841         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
26842         (fts_build): Set the stat.st_ino member from D_INO.
26843         If it is likely to be useful, sort dirent entries on inode number.
26844
26845         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
26846         and the struct statfs.f_type member.
26847         * modules/fts (Depends-on): Add d-ino.
26848
26849 2008-09-26  Bruno Haible  <bruno@clisp.org>
26850
26851         * modules/sigpipe-die (Depends-on): Add sigpipe.
26852
26853         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
26854         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
26855         and GNULIB_STDIO_H_SIGPIPE are set.
26856         * lib/stdio-write.c: New file.
26857         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
26858         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
26859         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
26860         REPLACE_STDIO_WRITE_FUNCS.
26861         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
26862         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
26863         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
26864         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
26865         * modules/stdio (Files): Add lib/stdio-write.c.
26866         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
26867         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
26868         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
26869         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
26870         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
26871         REPLACE_FPRINTF_POSIX.
26872         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
26873         REPLACE_PRINTF_POSIX.
26874         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
26875         REPLACE_VFPRINTF_POSIX.
26876         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
26877         REPLACE_VPRINTF_POSIX.
26878         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
26879         SIGPIPE issue.
26880         * doc/posix-functions/fputc.texi: Likewise.
26881         * doc/posix-functions/fputs.texi: Likewise.
26882         * doc/posix-functions/fwrite.texi: Likewise.
26883         * doc/posix-functions/printf.texi: Likewise.
26884         * doc/posix-functions/putc.texi: Likewise.
26885         * doc/posix-functions/putchar.texi: Likewise.
26886         * doc/posix-functions/puts.texi: Likewise.
26887         * doc/posix-functions/vfprintf.texi: Likewise.
26888         * doc/posix-functions/vprintf.texi: Likewise.
26889
26890         * modules/safe-write (Depends-on): Add write.
26891
26892         * modules/sigpipe-tests: New file.
26893         * tests/test-sigpipe.c: New file.
26894         * tests/test-sigpipe.sh: New file.
26895
26896         * modules/write: New file.
26897         * lib/unistd.in.h: Include <sys/types.h>.
26898         (write): New declaration.
26899         * lib/write.c: New file.
26900         * m4/write.m4: New file.
26901         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26902         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
26903         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
26904         GNULIB_WRITE, REPLACE_WRITE.
26905         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
26906         and the SIGPIPE issue.
26907
26908         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
26909         (raise): New declaration.
26910         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
26911         (ext_signal): New function.
26912         (rpl_raise): New function.
26913         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
26914         GNULIB_SIGNAL_H_SIGPIPE.
26915         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
26916         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
26917
26918         * modules/sigpipe: New file.
26919         * m4/sigpipe.m4: New file.
26920
26921 2008-09-25  Derek Price  <derek@ximbiot.com>
26922             Bruno Haible  <bruno@clisp.org>
26923
26924         * gnulib-tool (func_import): Report all license incompatibilities, not
26925         just the first one.
26926
26927 2008-09-25  Bruno Haible  <bruno@clisp.org>
26928
26929         * gnulib-tool (func_import): When computing the edits, consider not
26930         only the Makefile.ams that exist but also those that will be generated.
26931
26932 2008-09-25  Simon Josefsson  <simon@josefsson.org>
26933
26934         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
26935         fixes gnulib-tool --test warning about duplicate dependency.
26936
26937 2008-09-25  Bruno Haible  <bruno@clisp.org>
26938
26939         * gnulib-tool: Don't ask the user to perform edits in the generated
26940         Makefile.ams.
26941         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
26942         apply to the Makefile.am being generated.
26943         (func_emit_tests_Makefile_am): Execute edits that apply to the
26944         Makefile.am being generated.
26945         (func_import): Setup list of Makefile.am edits before emitting the
26946         Makefile.ams, not at the end.
26947         (func_create_testdir): Update.
26948         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
26949
26950 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26951
26952         * gnulib-tool (func_import): Store the --tests-base option in the
26953         comment in gnulib-cache.m4.
26954
26955 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
26956
26957         * NEWS: Document increased portability that sys_select now provides.
26958
26959         * lib/sys_select.in.h: Install select wrapper.
26960         * lib/sys_socket.in.h: Use more descriptive name when there is no
26961         select wrapper.
26962         * lib/winsock-select.c: New.
26963         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
26964         Require gl_HEADER_SYS_SOCKET.
26965         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
26966         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
26967         * tests/test-sys_select.c: Add functional tests.
26968
26969 2008-09-24  Eric Blake  <ebb9@byu.net>
26970
26971         open, fopen: close fd leak in last patch
26972         * lib/open.c (rpl_open): Close fd before returning error.
26973         * lib/fopen.c (rpl_fopen): Close fd before returning error.
26974         * doc/posix-functions/open.texi (open): Document that Irix also
26975         has the bug.
26976         * doc/posix-functions/fopen.texi (fopen): Likewise.
26977         Reported by Paolo Bonzini.
26978
26979 2008-09-24  Bruno Haible  <bruno@clisp.org>
26980
26981         Ensure that a filename ending in a slash cannot be used to access a
26982         non-directory.
26983         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
26984         to check whether it's really a directory.
26985         * lib/fopen.c: Include fcntl.h, unistd.h.
26986         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
26987         and fdopen().
26988         * modules/fopen (Depends-on): Add unistd.
26989         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
26990         * tests/test-fopen.c (main): Likewise.
26991         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
26992         * doc/posix-functions/fopen.texi: Likewise.
26993         Reported by Eric Blake.
26994
26995 2008-09-23  Eric Blake  <ebb9@byu.net>
26996
26997         c-stack: avoid compiler optimizations when provoking overflow
26998         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
26999         recursion harder to optimize, to ensure a stack overflow occurs.
27000         * tests/test-c-stack.c (recurse): Likewise.
27001         Borrowed from libsigsegv.
27002
27003         c-stack: work around Irix sigaltstack bug
27004         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
27005         whether sigaltstack uses wrong end of stack_t (copied in part from
27006         libsigsegv).
27007         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
27008         Irix bug, without requiring an over-allocation.
27009         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
27010         bug.
27011
27012         fopen: document mingw bug on directories
27013         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
27014         not allowing a stream visiting a directory, even though reading
27015         from such a stream is not portable.
27016
27017 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
27018
27019         * lib/poll.c: Rewrite.
27020         * modules/poll: Depend on alloca.
27021
27022 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
27023
27024         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
27025         instead define prototypes for a full set of wrappers.  Ensure
27026         that Cygwin does not use the compatibility code, which is only
27027         for MinGW.
27028         * lib/winsock.c: New.
27029         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
27030         * modules/sys_socket: Add lib/winsock.c.
27031
27032         * modules/poll-tests: Add errno and perror.
27033         * tests/test-poll.c: Use ioctl, not ioctlsocket.
27034
27035 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
27036
27037         * tests/test-poll.c: Downgrade minimum needed Winsock version.
27038
27039 2008-09-23  Bruno Haible  <bruno@clisp.org>
27040
27041         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
27042         * doc/glibc-functions/*: Likewise.
27043
27044 2008-09-23  Simon Josefsson  <simon@josefsson.org>
27045
27046         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
27047         success.
27048
27049 2008-09-22  Eric Blake  <ebb9@byu.net>
27050             Bruno Haible  <bruno@clisp.org>
27051
27052         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
27053         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
27054         supply %A but mishandle pseudo-NaN.
27055         Reported by Simon Josefsson.
27056
27057 2008-09-21  Bruno Haible  <bruno@clisp.org>
27058
27059         * tests/test-lock.c (main): Tweak skip message.
27060         * tests/test-tls.c (main): Likewise.
27061
27062 2008-09-21  Bruno Haible  <bruno@clisp.org>
27063
27064         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
27065         whether 'struct sigaction' has sa_sigaction here...
27066         (gl_PREREQ_SIG_HANDLER_H): ... not here.
27067         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
27068
27069 2008-09-21  Bruno Haible  <bruno@clisp.org>
27070
27071         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
27072         section.
27073         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
27074         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
27075         the new section.
27076         (Support for obsolete systems lacking POSIX:2001): New section.
27077         (String handling <string.h>): Move strdup to the new section.
27078         Suggested by Simon Josefsson and Paolo Bonzini.
27079
27080 2008-09-21  Bruno Haible  <bruno@clisp.org>
27081
27082         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
27083         exponents in %e and %g results on 'long double'. Needed for mingw's
27084         improved *printf functions.
27085         * tests/test-vasprintf-posix.c (test_function): Likewise.
27086         * tests/test-snprintf-posix.h (test_function): Likewise.
27087         * tests/test-sprintf-posix.h (test_function): Likewise.
27088         Reported by Eric Blake.
27089
27090 2008-09-21  Bruno Haible  <bruno@clisp.org>
27091
27092         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
27093         * tests/test-sprintf-posix.h (test_function): Likewise.
27094
27095 2008-09-21  Bruno Haible  <bruno@clisp.org>
27096
27097         * modules/getpass (Depends-on): Add strdup-posix.
27098
27099         New module 'strdup-posix'.
27100         * modules/strdup-posix: New file.
27101         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
27102         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
27103         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27104         REPLACE_STRDUP.
27105         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
27106         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
27107         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27108         strdup-posix.
27109
27110         * modules/strdup (Depends-on): Remove malloc-posix.
27111
27112 2008-09-20  Bruno Haible  <bruno@clisp.org>
27113
27114         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
27115         Wildenhues.
27116
27117 2008-09-20  Bruno Haible  <bruno@clisp.org>
27118
27119         Ensure that wint_t gets defined on IRIX 5.3.
27120         * lib/wchar.in.h (wint_t): Define if not defined by the system.
27121         * lib/wctype.in.h (wint_t): Likewise.
27122         (__wctype_wint_t): Remove type.
27123         (isw*): Use wint_t instead of __wctype_wint_t.
27124         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
27125         * modules/wchar (Files): Add m4/wint_t.m4.
27126         (Makefile.am): Substitute HAVE_WINT_T.
27127         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
27128         * tests/test-wctype.c: Check that wint_t is defined.
27129         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
27130         * doc/posix-headers/wctype.texi: Likewise.
27131         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27132
27133 2008-09-18  Bruno Haible  <bruno@clisp.org>
27134
27135         * gnulib-tool (func_exit): Update comment.
27136
27137 2008-09-18  Simon Josefsson  <simon@josefsson.org>
27138
27139         * modules/getaddrinfo (Depends-on): Remove strdup, this module
27140         assumes strdup exists and does not depend on strdup to return
27141         ENOMEM on out of memory conditions.
27142
27143 2008-09-18  Bruno Haible  <bruno@clisp.org>
27144
27145         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
27146         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
27147         digits for the exponent.
27148
27149 2008-09-18  Jim Meyering  <meyering@redhat.com>
27150             Bruno Haible  <bruno@clisp.org>
27151
27152         * lib/vasnprintf.c (decimal_point_char): Define also if
27153         NEED_PRINTF_INFINITE_LONG_DOUBLE.
27154
27155 2008-09-16  Bruno Haible  <bruno@clisp.org>
27156         and Eric Blake  <ebb9@byu.net>
27157
27158         vasnprintf: support Irix 5.3
27159         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
27160         that mishandle long double infinity.
27161         Reported by Tom G. Christensen.
27162
27163 2008-09-16  Bruno Haible  <bruno@clisp.org>
27164
27165         * doc/glibc-functions/scandir.texi: Mention the function is missing on
27166         Solaris 9.
27167         * doc/glibc-functions/alphasort.texi: Likewise.
27168         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
27169
27170 2008-09-16  Jim Meyering  <meyering@redhat.com>
27171
27172         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
27173         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
27174         a umask modification leak out of a subshell.  Otherwise, the
27175         opensolaris /bin/sh would be accepted and thus cause unwarranted
27176         failures in the coreutils test suite.
27177
27178 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
27179
27180         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
27181         to succeed.
27182
27183 2008-09-16  Jim Meyering  <meyering@redhat.com>
27184
27185         avoid spurious test failure when library is built without ACL support
27186         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
27187         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
27188         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
27189         * tests/test-copy-acl.sh: Likewise.
27190
27191 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27192
27193         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
27194         based on character occurrence counts.
27195
27196 2008-09-15  Eric Blake  <ebb9@byu.net>
27197
27198         tests: avoid some compiler warnings
27199         * tests/test-memchr.c (main): Pass NULL indirectly.
27200         * tests/test-closein.c (main): Avoid unused variable.
27201
27202 2008-09-15  Bruno Haible  <bruno@clisp.org>
27203
27204         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
27205         are missing on OpenBSD 4.0 individually.
27206         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27207
27208 2008-09-15  Bruno Haible  <bruno@clisp.org>
27209
27210         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
27211         * doc/posix-functions/strerror.texi: Mention also Cygwin.
27212         * doc/posix-functions/perror.texi: Likewise.
27213         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
27214         is missing.
27215         Reported by Eric Blake.
27216
27217         * lib/errno.in.h: Use replacement values >= 2000.
27218         Reported by Eric Blake.
27219
27220 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27221
27222         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
27223         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
27224         limit.
27225         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
27226         compareseq was aborted.
27227
27228 2008-09-14  Bruno Haible  <bruno@clisp.org>
27229
27230         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
27231         yvec_edit_count.
27232         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
27233         (fstrcmp_bounded): Simplify result computation accordingly.
27234
27235 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27236
27237         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
27238         (fstrcmp): Define in terms of fstrcmp_bounded.
27239         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
27240         lower_bound argument.
27241         Return quickly if the result is certainly < lower_bound.
27242         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
27243
27244 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27245
27246         * lib/diffseq.h (EARLY_ABORT): New macro.
27247         (compareseq): Change return type to bool. Return true when EARLY_ABORT
27248         evaluates to true.
27249
27250 2008-09-14  Bruno Haible  <bruno@clisp.org>
27251
27252         * modules/perror-tests: New file.
27253         * tests/test-perror.sh: New file.
27254         * tests/test-perror.c: New file.
27255
27256         New module 'perror'.
27257         * lib/stdio.in.h (perror): New declaration.
27258         * lib/perror.c: New file.
27259         * m4/perror.m4: New file.
27260         * modules/perror: New file.
27261         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
27262         * doc/posix-functions/perror.texi: Mention the perror module.
27263         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
27264         REPLACE_PERROR.
27265         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
27266         REPLACE_PERROR.
27267
27268 2008-09-14  Bruno Haible  <bruno@clisp.org>
27269
27270         * modules/stdio (Makefile.am): Reorder to match the order in
27271         lib/stdio.in.h.
27272         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
27273
27274 2008-09-13  Bruno Haible  <bruno@clisp.org>
27275
27276         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
27277
27278 2008-09-13  Bruno Haible  <bruno@clisp.org>
27279
27280         Extend strerror to cover the added errno values.
27281         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
27282         (rpl_strerror): Provide error messages for the added errno values and
27283         for the WSA* values.
27284         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
27285         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
27286         strerror.
27287         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
27288         * modules/strerror (Depends-on): Add errno.
27289         * doc/posix-functions/strerror.texi: Document the change.
27290         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
27291         and EOVERFLOW.
27292
27293 2008-09-13  Bruno Haible  <bruno@clisp.org>
27294
27295         * modules/EOVERFLOW: Remove file.
27296         * m4/eoverflow.m4: Remove file.
27297         * modules/EOVERFLOW-tests: Remove file.
27298         * tests/test-EOVERFLOW.c: Remove file.
27299         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
27300         * modules/ftell (Depends-on): Likewise.
27301         * modules/getdelim (Depends-on): Likewise.
27302         * modules/getugroups (Depends-on): Likewise.
27303         * modules/poll (Depends-on): Likewise.
27304         * modules/snprintf (Depends-on): Likewise.
27305         * modules/sprintf-posix (Depends-on): Likewise.
27306         * modules/vasnprintf (Depends-on): Likewise.
27307         * modules/vasprintf (Depends-on): Likewise.
27308         * modules/vfprintf-posix (Depends-on): Likewise.
27309         * modules/vsnprintf (Depends-on): Likewise.
27310         * modules/vsprintf-posix (Depends-on): Likewise.
27311         * modules/xvasprintf (Depends-on): Likewise.
27312         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27313         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
27314         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
27315         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
27316         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27317         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
27318         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
27319         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
27320         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27321         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
27322         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
27323         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
27324         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27325         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
27326         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
27327         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
27328         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27329         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
27330         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
27331         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
27332         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27333         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
27334         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
27335         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
27336         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
27337         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27338         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
27339         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
27340         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
27341         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
27342         * MODULES.html.sh: Remove EOVERFLOW.
27343         * NEWS: Mention the change.
27344
27345 2008-09-13  Bruno Haible  <bruno@clisp.org>
27346
27347         * modules/errno-tests: New file.
27348         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
27349
27350         * lib/errno.in.h: New file.
27351         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
27352         * modules/errno: New file.
27353         * doc/posix-headers/errno.texi: Update documentation.
27354         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
27355
27356 2008-09-13  Bruno Haible  <bruno@clisp.org>
27357
27358         * tests/test-poll.c: Use #if for native Windows, rather than testing
27359         __MSVCRT__.
27360
27361 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27362             Bruno Haible  <bruno@clisp.org>
27363
27364         * lib/glob.c: Don't include <pwd.h> on native Windows.
27365         (WINDOWS32): New macro.
27366         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
27367
27368 2008-09-13  Bruno Haible  <bruno@clisp.org>
27369
27370         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
27371         (ETIMEDOUT): Remove macro.
27372         (glthread_cond_timedwait_multithreaded): New declaration.
27373         (glthread_cond_timedwait): Use it.
27374         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
27375         (glthread_cond_timedwait_multithreaded): New function.
27376
27377 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
27378
27379         * modules/poll-tests: Do not check for io.h.
27380         * tests/test-poll.c: Check for __MSVCRT__ instead.
27381
27382 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
27383
27384         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
27385         * modules/poll-tests: Add inet_pton, stdbool, sockets.
27386         * tests/test-poll.c: Use them.  Use _pipe on Windows.
27387
27388 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
27389
27390         * modules/poll-tests: New.
27391         * tests/test-poll.c: New.
27392
27393 2008-09-12  Eric Blake  <ebb9@byu.net>
27394
27395         frexp: test for NetBSD failure on -0.0
27396         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
27397         not all, bugs from NetBSD 3.0 have been fixed.
27398         * doc/posix-functions/frexp.texi (frexp): Document bug.
27399         Reported by Thomas Klausner.
27400
27401         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
27402         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
27403         literal -0.0.
27404         Reported by Jonathan C. Patschke <jp@centtech.com>.
27405
27406 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27407
27408         * lib/glthread/cond.h: Use dummy implementation also if
27409         USE_WIN32_THREADS.
27410
27411 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27412
27413         * modules/fnmatch-posix (License): Change to LGPLv2+.
27414         * modules/fnmatch-gnu (License): Likewise.
27415
27416 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27417
27418         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
27419
27420 2008-09-11  Jim Meyering  <meyering@redhat.com>
27421
27422         * users.txt: Add gtk-vnc.
27423
27424 2008-09-08  Simon Josefsson  <simon@josefsson.org>
27425
27426         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
27427         rotate amounts.
27428
27429         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
27430         required for 16-bit and 8-bit rotates.
27431         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
27432         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
27433         UINT8_MAX instead of hard-coded constants.
27434         Suggested by Paul Eggert.
27435
27436 2008-09-07  Bruno Haible  <bruno@clisp.org>
27437
27438         * tests/test-striconveh.c (main): Check behaviour when converting from
27439         UTF-7.
27440
27441         Make striconveh work better with stateful encodings.
27442         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
27443         that iconv does not increment the inptr when returning -1/EINVAL.
27444
27445 2008-09-07  Bruno Haible  <bruno@clisp.org>
27446
27447         * build-aux/config.rpath: Update according to libtool-2.2.6.
27448         * build-aux/config.libpath: Likewise.
27449
27450 2008-09-06  Bruno Haible  <bruno@clisp.org>
27451
27452         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
27453         * lib/freadptr.c (freadptr): Likewise.
27454         * lib/freadseek.c (freadptrinc): Likewise.
27455         Reported by Simon Josefsson.
27456
27457 2008-09-06  Bruno Haible  <bruno@clisp.org>
27458
27459         * modules/freadptr (License): Change to LGPLv2+.
27460         * modules/freadseek (License): Likewise.
27461         Suggested by Eric Blake.
27462
27463         * modules/memchr2 (License): Change to LGPLv2+.
27464         Approved by Eric Blake.
27465
27466 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27467             Bruno Haible  <bruno@clisp.org>
27468
27469         Make gnulib-tool work with native 'sed' on AIX.
27470         * gnulib-tool (sed_noop): New variable.
27471         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
27472         func_add_or_update, func_create_testdir): Use it to initialize sed
27473         script variables.
27474         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27475
27476 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
27477             Bruno Haible  <bruno@clisp.org>
27478
27479         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
27480         also works after #include directives.
27481
27482 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
27483
27484         getdate.y: reject an out-of-range timezone value
27485         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
27486         the range [-24...+24].  When specified with only one or two digits,
27487         * tests/test-getdate.c: Tests for the fix.
27488         * doc/getdate.texi: Document this change.
27489
27490 2008-09-03  Bruno Haible  <bruno@clisp.org>
27491
27492         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
27493
27494 2008-09-02  Simon Josefsson  <simon@josefsson.org>
27495
27496         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
27497         <bruce.korb@gmail.com> with ideas from Ben Pfaff
27498         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
27499         Blake <ebb9@byu.net>.
27500
27501         * tests/test-bitrotate.c: Add more test vectors.
27502
27503 2008-09-02  Eric Blake  <ebb9@byu.net>
27504
27505         vasnprintf-posix: handle large precision via %.*d
27506         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
27507         when handling it ourselves.
27508         * tests/test-vasnprintf-posix.c (test_function): Add test.
27509         * tests/test-snprintf-posix.h (test_function): Likewise.
27510         * tests/test-sprintf-posix.h (test_function): Likewise.
27511         * tests/test-vasprintf-posix.c (test_function): Likewise.
27512         Reported by Alain Guibert.
27513
27514 2008-09-01  Eric Blake  <ebb9@byu.net>
27515
27516         c-stack: make configure-time check more robust
27517         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
27518         successful sigaction call.
27519         Reported by Tom G. Christensen.
27520
27521 2008-09-01  Bruno Haible  <bruno@clisp.org>
27522
27523         New module 'findprog-lgpl'.
27524         * modules/findprog-lgpl: New file.
27525         * lib/findprog-lgpl.c: New file.
27526         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
27527         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
27528         to decide whether to use strdup or xstrdup, concatenated_filename or
27529         xconcatenated_filename.
27530
27531 2008-09-01  Bruno Haible  <bruno@clisp.org>
27532
27533         Split module 'concat-filename' into 'concat-filename' (LGPL) and
27534         'xconcat-filename' (GPL).
27535         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
27536         (License): Change to LGPLv2+.
27537         * modules/xconcat-filename: New file.
27538         * lib/concat-filename.h (concatenated_filename): Change specification.
27539         (xconcatenated_filename): New declaration.
27540         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
27541         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
27542         memory situations.
27543         * lib/xconcat-filename.c: New file.
27544         * NEWS: Mention the change.
27545         * lib/findprog.c: Include concat-filename.h, not filename.h.
27546         (find_in_path): Use xconcatenated_filename instead of
27547         concatenated_filename.
27548         * lib/javacomp.c: Include concat-filename.h, not filename.h.
27549         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
27550         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
27551         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
27552         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
27553         instead of concatenated_filename.
27554         * lib/javaexec.c: Include concat-filename.h, not filename.h.
27555         (execute_java_class): Use xconcatenated_filename instead of
27556         concatenated_filename.
27557         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
27558         * modules/javacomp (Depends-on): Likewise.
27559         * modules/javaexec (Depends-on): Likewise.
27560
27561 2008-09-01  Bruno Haible  <bruno@clisp.org>
27562
27563         Split module 'filename' into 'filename' and 'concat-filename'.
27564         * modules/filename: Keep only lib/filename.h.
27565         (License): Change to LGPLv2+.
27566         * modules/concat-filename: New file, extracted from modules/filename.
27567         * lib/filename.h (concatenated_filename): Remove declaration.
27568         * lib/concat-filename.h: New file, extracted from lib/filename.h.
27569         * lib/concat-filename.c: Include concat-filename.h.
27570         * NEWS: Mention the change.
27571
27572 2008-09-01  Simon Josefsson  <simon@josefsson.org>
27573
27574         * lib/bitrotate.h (rotl8, rotr8): Add.
27575
27576         * modules/bitrotate (configure.ac): Need
27577         AC_REQUIRE([AC_C_INLINE]).
27578         (Description): Mention stdint.h.  Reported by Bruno Haible
27579         <bruno@clisp.org>.
27580
27581         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
27582         Paolo Bonzini <bonzini@gnu.org>.
27583
27584 2008-08-31  Bruno Haible  <bruno@clisp.org>
27585
27586         Assume Solaris specific bi-arch conventions on Solaris systems.
27587         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
27588         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
27589         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
27590         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
27591         like acl_libdirstem.
27592         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
27593         acl_libdirstem.
27594         * NEWS: Mention the change.
27595         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
27596
27597 2008-08-31  Jim Meyering  <meyering@redhat.com>
27598
27599         * lib/strftime.h: Add comments describing the two added arguments.
27600
27601         remove duplicate #include directives
27602         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
27603         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
27604
27605 2008-08-31  Bruno Haible  <bruno@clisp.org>
27606
27607         New module 'sigpipe-die'.
27608         * modules/sigpipe-die: New file.
27609         * lib/sigpipe-die.h: New file.
27610         * lib/sigpipe-die.c: New file.
27611         * MODULES.html.sh (Signal handling): Add sigpipe-die.
27612
27613 2008-08-31  Bruno Haible  <bruno@clisp.org>
27614
27615         Don't override previously installed signal handlers.
27616         * lib/fatal-signal.c (saved_sigactions): New variable.
27617         (uninstall_handlers): Reset the signal to the saved handler, not
27618         to SIG_DFL (except when ignored).
27619         (install_handlers): Save the previous handlers.
27620
27621 2008-08-30  Bruno Haible  <bruno@clisp.org>
27622
27623         * gnulib-tool (func_reset_sigpipe): New function.
27624         (func_get_automake_snippet, func_modules_transitive_closure,
27625         func_import): Invoke it before a join command that reads from stdin,
27626         to avoid "echo: write error: Broken pipe" error messages on stderr.
27627         Reported by Sam Steingold <sds@gnu.org>.
27628
27629 2008-08-30  Bruno Haible  <bruno@clisp.org>
27630
27631         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
27632         Code copied from m4/open.m4.
27633         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
27634         access and the filename ends in a slash. Code copied from lib/open.c.
27635         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
27636         * tests/test-fopen.c (main): Check against bug with trailing slash.
27637
27638 2008-08-29  Bruno Haible  <bruno@clisp.org>
27639
27640         Avoid some "gcc -pedantic" warnings.
27641         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
27642         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
27643         * lib/dirent.in.h: Likewise.
27644         * lib/fcntl.in.h: Likewise.
27645         * lib/float.in.h: Likewise.
27646         * lib/iconv.in.h: Likewise.
27647         * lib/inttypes.in.h: Likewise.
27648         * lib/locale.in.h: Likewise.
27649         * lib/math.in.h: Likewise.
27650         * lib/netinet_in.in.h: Likewise.
27651         * lib/search.in.h: Likewise.
27652         * lib/signal.in.h: Likewise.
27653         * lib/stdarg.in.h: Likewise.
27654         * lib/stdint.in.h: Likewise.
27655         * lib/stdio.in.h: Likewise.
27656         * lib/stdlib.in.h: Likewise.
27657         * lib/string.in.h: Likewise.
27658         * lib/strings.in.h: Likewise.
27659         * lib/sys_select.in.h: Likewise.
27660         * lib/sys_socket.in.h: Likewise.
27661         * lib/sys_stat.in.h: Likewise.
27662         * lib/sys_time.in.h: Likewise.
27663         * lib/sysexits.in.h: Likewise.
27664         * lib/time.in.h: Likewise.
27665         * lib/unistd.in.h: Likewise.
27666         * lib/wchar.in.h: Likewise.
27667         * lib/wctype.in.h: Likewise.
27668         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
27669         * modules/fchdir (Makefile.am): Likewise.
27670         * modules/fcntl (Makefile.am): Likewise.
27671         * modules/float (Makefile.am): Likewise.
27672         * modules/iconv_open (Makefile.am): Likewise.
27673         * modules/inttypes (Makefile.am): Likewise.
27674         * modules/locale (Makefile.am): Likewise.
27675         * modules/math (Makefile.am): Likewise.
27676         * modules/netinet_in (Makefile.am): Likewise.
27677         * modules/search (Makefile.am): Likewise.
27678         * modules/signal (Makefile.am): Likewise.
27679         * modules/stdarg (Makefile.am): Likewise.
27680         * modules/stdint (Makefile.am): Likewise.
27681         * modules/stdio (Makefile.am): Likewise.
27682         * modules/stdlib (Makefile.am): Likewise.
27683         * modules/string (Makefile.am): Likewise.
27684         * modules/strings (Makefile.am): Likewise.
27685         * modules/sys_select (Makefile.am): Likewise.
27686         * modules/sys_socket (Makefile.am): Likewise.
27687         * modules/sys_stat (Makefile.am): Likewise.
27688         * modules/sys_time (Makefile.am): Likewise.
27689         * modules/sysexits (Makefile.am): Likewise.
27690         * modules/time (Makefile.am): Likewise.
27691         * modules/unistd (Makefile.am): Likewise.
27692         * modules/wchar (Makefile.am): Likewise.
27693         * modules/wctype (Makefile.am): Likewise.
27694         Reported by Reuben Thomas <rrt@sc3d.org>.
27695
27696 2008-08-29  Bruno Haible  <bruno@clisp.org>
27697
27698         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
27699         any more.
27700
27701 2008-08-29  Simon Josefsson  <simon@josefsson.org>
27702
27703         * MODULES.html.sh (Misc): Add bitrotate.
27704
27705         * modules/bitrotate: New file.
27706
27707         * lib/bitrotate.h: New file.
27708
27709         * modules/bitrotate-tests: New file.
27710
27711         * tests/test-bitrotate.c: New file.
27712
27713         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
27714         on the bitrotate module.
27715
27716         * lib/arctwo.c: Use new bitrotate module.
27717
27718 2008-08-29  Jim Meyering  <meyering@redhat.com>
27719
27720         bootstrap: merge changes from coreutils
27721         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
27722         of copied files.  Remove a kludge, now that this is fixed.
27723         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
27724         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
27725         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
27726
27727 2008-08-29  Bruno Haible  <bruno@clisp.org>
27728
27729         * MODULES.html.sh: Remove --cvs-urls option.
27730
27731 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
27732
27733         maint.mk: adjust to file name change
27734         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
27735
27736 2008-08-28  Jim Meyering  <meyering@redhat.com>
27737
27738         * modules/getndelim2 (License): Relicense to LGPLv2+.
27739         Approved by Richard Stallman for the version of 1995, and by
27740         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
27741
27742 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
27743
27744         * lib/getdelim.c (flockfile, funlockfile): Make all of them
27745         dummy if one is not available.  Do not touch them if
27746         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
27747         (getc_maybe_unlocked): New.
27748         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
27749
27750 2008-08-26  Eric Blake  <ebb9@byu.net>
27751
27752         doc/INSTALL: resync from autoconf
27753         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
27754         (INSTALL_PRELUDE): Delete; this is done more efficiently by
27755         moving...
27756         * install.texi [!autoconf]: ...here.  Resync from autoconf.
27757         * INSTALL: Regenerate.
27758         * INSTALL.ISO: New file.
27759         * INSTALL.UTF-8: Likewise.
27760
27761 2008-08-26  Jim Meyering  <meyering@redhat.com>
27762
27763         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
27764         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
27765         these definitions conditional, so that they may be overridden, too.
27766
27767 2008-08-26  Bruno Haible  <bruno@clisp.org>
27768
27769         Generate INSTALL file variants with prettier quotes.
27770         * doc/Makefile (INSTALL_PRELUDE): New macro.
27771         (INSTALL): Use it.
27772         (INSTALL.ISO, INSTALL.UTF-8): New rules.
27773
27774 2008-08-26  Bruno Haible  <bruno@clisp.org>
27775
27776         Run makeinfo in an English locale.
27777         * doc/Makefile (MAKEINFO): New variable.
27778
27779 2008-08-26  Bruno Haible  <bruno@clisp.org>
27780
27781         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
27782         Suggested by Eric Blake.
27783
27784 2008-08-25  Bruno Haible  <bruno@clisp.org>
27785
27786         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
27787
27788 2008-08-25  Eric Blake  <ebb9@byu.net>
27789
27790         c-stack: test that stack overflow can be caught
27791         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
27792         that platform allows handling stack overflow; at least OS/2 EMX
27793         has sigaltstack, but crashes before transferring control to
27794         handler on stack overflow.
27795         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
27796         check for HAVE_STACK_OVERFLOW_HANDLING.
27797         Reported by Elbert Pol.
27798
27799 2008-08-25  Bruno Haible  <bruno@clisp.org>
27800
27801         * doc/posix-functions/strftime.texi: Fix description of strftime
27802         module.
27803
27804 2008-08-24  Bruno Haible  <bruno@clisp.org>
27805
27806         * tests/uniwidth/test-uc_width2.c: New file.
27807         * tests/uniwidth/test-uc_width2.sh: New file.
27808         * modules/uniwidth/width-tests (Files): Add the new files.
27809         (TESTS): Add uniwidth/test-uc_width2.sh.
27810         (TESTS_ENVIRONMENT): New variable.
27811         (check_PROGRAMS): Add test-uc_width2.
27812         (test_uc_width2_SOURCES): New variable.
27813
27814         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
27815         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
27816         not 0x00AB.
27817         Reported by Alexander V. Lukyanov <lav@netis.ru>.
27818
27819 2008-08-22  Eric Blake  <ebb9@byu.net>
27820
27821         test-lock, test-tls: mention why a test is skipped
27822         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
27823         skipped.
27824         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
27825
27826         count-one-bits: relax license
27827         * modules/count-one-bits (License): Relicense to LGPLv2+.
27828         Suggested by Ludovic Courtès, approved by Ben Pfaff.
27829
27830 2008-08-22  Andreas Schwab  <schwab@suse.de>
27831
27832         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
27833         Remove spurious space in assignment.
27834
27835 2008-08-21  Simon Josefsson  <simon@josefsson.org>
27836
27837         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
27838         Paul Eggert <eggert@CS.UCLA.EDU>.
27839
27840 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
27841
27842         * modules/gettext: Add m4/threadlib.m4.
27843
27844 2008-08-19  Eric Blake  <ebb9@byu.net>
27845
27846         test-c-stack: fix compilation failure on FreeBSD 5.0
27847         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
27848         headers before <sys/resource.h>.
27849         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
27850         the bug.
27851         Reported by Nelson H. F. Beebe.
27852
27853         strverscmp: migrate from "strverscmp.h" to <string.h>
27854         * modules/string (Makefile.am): Add new hooks.
27855         * modules/strverscmp (Files): Remove strverscmp.h.
27856         (Depends-on): Add string.
27857         (configure.ac): Add indicator.
27858         (Include): Mention new header.
27859         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
27860         defaults.
27861         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
27862         results.
27863         * lib/strverscmp.h: Delete.
27864         * lib/string.in.h (strverscmp): Provide declaration, when needed.
27865         * tests/test-strverscmp.c (includes): Adjust client.
27866         * lib/check-version.c (includes): Likewise.
27867         * NEWS: Document the change.
27868
27869         strverscmp: add unit test
27870         * modules/strverscmp-tests: New file.
27871         * tests/test-strverscmp.c: Likewise.
27872
27873 2008-08-19  Simon Josefsson  <simon@josefsson.org>
27874
27875         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
27876         regarding Windows crypto stuff, from Mono.
27877
27878 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
27879
27880         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
27881         if present, for intel RND.  Return error on failures.
27882
27883 2008-08-18  Ben Pfaff  <blp@gnu.org>
27884
27885         gitlog-to-changelog: give better diagnostic for failed pipe-open
27886         * build-aux/gitlog-to-changelog: Improve error message: suggest
27887         that the version of Git may be too old.
27888
27889 2008-08-18  Simon Josefsson  <simon@josefsson.org>
27890
27891         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
27892         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
27893
27894 2008-08-18  Bruno Haible  <bruno@clisp.org>
27895
27896         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
27897         pthread_in_use().
27898
27899 2008-08-18  Bruno Haible  <bruno@clisp.org>
27900
27901         * lib/glthread/threadlib.c: Include <pthread.h>.
27902
27903 2008-08-18  Bruno Haible  <bruno@clisp.org>
27904
27905         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
27906         glthread_recursive_lock_* macros.
27907         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
27908         Fix syntax error.
27909
27910 2008-08-18  Bruno Haible  <bruno@clisp.org>
27911
27912         * lib/glthread/thread.c: Avoid forcing a context switch right after
27913         thread creation.
27914
27915 2008-08-17  Bruno Haible  <bruno@clisp.org>
27916
27917         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
27918         * lib/glthread/thread.h: Provide Win32 specific implementation.
27919         * modules/thread (Files): Add lib/glthread/thread.c.
27920         (Depends-on): Add lock.
27921         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
27922
27923 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27924
27925         New module 'yield'.
27926         * modules/yield: New file.
27927         * lib/glthread/yield.h: New file.
27928         * m4/yield.m4: New file.
27929         * MODULES.html.sh (Multithreading): Add yield.
27930
27931 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27932
27933         New module 'thread'.
27934         * modules/thread: New file.
27935         * lib/glthread/thread.h: New file.
27936         * m4/thread.m4: New file.
27937         * MODULES.html.sh (Multithreading): Add thread.
27938
27939 2008-08-17  Bruno Haible  <bruno@clisp.org>
27940
27941         * lib/glthread/lock.h: Include <stdlib.h> always.
27942         * lib/glthread/tls.h: Likewise.
27943         * lib/glthread/cond.h: Likewise.
27944
27945 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27946
27947         New module 'cond'.
27948         * modules/cond: New file.
27949         * lib/glthread/cond.h: New file.
27950         * lib/glthread/cond.c: New file.
27951         * m4/cond.m4: New file.
27952         * MODULES.html.sh (Multithreading): Add cond.
27953
27954 2008-08-16  Eric Blake  <ebb9@byu.net>
27955
27956         c-stack: fix regression on Irix 5.3 from 2008-06-21
27957         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
27958         sa_sigaction...
27959         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
27960         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
27961         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
27962         * modules/signal (Makefile.am): Use the value.
27963         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
27964         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
27965         * doc/posix-headers/signal.texi (signal.h): Document this
27966         portability issue.
27967         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
27968         Reported by Tom G. Christensen.
27969
27970 2008-08-17  Bruno Haible  <bruno@clisp.org>
27971
27972         New module 'threadlib'.
27973         * modules/threadlib: New file.
27974         * lib/glthread/threadlib.c: New file, extracted from
27975         lib/glthread/lock.c.
27976         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
27977         functions.
27978         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
27979         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
27980         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
27981         macros.
27982         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
27983         (gl_DISABLE_THREADS): Remove macro.
27984         * modules/lock (Files): Remove build-aux/config.rpath.
27985         (Depends-on): Remove havelib. Add threadlib.
27986         (configure.ac-early): Remove section.
27987         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
27988         * modules/tls (Depends-on): Remove lock. Add threadlib.
27989         (Link): New section, copied from threadlib.
27990         * MODULES.html.sh (Multithreading): Add threadlib.
27991
27992 2008-08-14  Bruno Haible  <bruno@clisp.org>
27993
27994         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
27995         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
27996         glthread_rwlock_unlock, glthread_rwlock_destroy,
27997         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
27998         glthread_recursive_lock_destroy): Define as macros always.
27999         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
28000         glthread_lock_lock.
28001         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
28002         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
28003         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
28004         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
28005         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
28006         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
28007         (glthread_recursive_lock_lock_func): Renamed from
28008         glthread_recursive_lock_lock.
28009         (glthread_recursive_lock_unlock_func): Renamed from
28010         glthread_recursive_lock_unlock.
28011         (glthread_recursive_lock_destroy_func): Renamed from
28012         glthread_recursive_lock_destroy.
28013
28014 2008-08-14  Bruno Haible  <bruno@clisp.org>
28015
28016         * lib/glthread/lock.h: Renamed from lib/lock.h.
28017         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
28018         * lib/glthread/tls.h: Renamed from lib/tls.h.
28019         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
28020         * lib/fstrcmp.c: Update includes.
28021         * lib/strsignal.c: Update includes.
28022         * modules/lock (Files, Makefile.am): Update.
28023         (Include): Change to "glthread/lock.h".
28024         * modules/tls (Files, Makefile.am): Update.
28025         (Include): Change to "glthread/tls.h".
28026         * tests/test-lock.c: Update includes.
28027         * tests/test-tls.c: Update includes.
28028         * NEWS: Mention the renamed header files.
28029
28030 2008-08-11  Jim Meyering  <meyering@redhat.com>
28031
28032         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
28033
28034 2008-08-11  Eric Blake  <ebb9@byu.net>
28035
28036         test-c-stack: avoid C99-ism
28037         * tests/test-c-stack.c (main): Fix whitespace, move declaration
28038         before statement.
28039         Reported by Alain Guibert.
28040
28041 2008-08-10  Jim Meyering  <meyering@redhat.com>
28042
28043         ensure that return value of uinttostr et al are not ignored
28044         * lib/inttostr.h (__GNUC_PREREQ): Define.
28045         (__attribute_warn_unused_result__): Define.
28046         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
28047
28048 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
28049
28050         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
28051         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
28052
28053 2008-08-07  Jim Meyering  <meyering@redhat.com>
28054
28055         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
28056
28057         * modules/mkstemp (License): Relicense under LGPLv2+.
28058         * modules/tempname (License): Likewise.
28059
28060 2008-08-06  Bruno Haible  <bruno@clisp.org>
28061
28062         * lib/poll.c (poll): Further micro-optimization.
28063
28064 2008-08-06  Jim Meyering  <meyering@redhat.com>
28065
28066         inet_pton.c: use locale-independent tolower
28067         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
28068         (inet_pton6): Use c_tolower rather than tolower.
28069         * modules/inet_pton (Depends-on): Add c-ctype.
28070
28071 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
28072
28073         * lib/poll.c (poll): Avoid division when timeout is 0, cache
28074         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
28075
28076 2008-08-06  Jim Meyering  <meyering@redhat.com>
28077
28078         * modules/inet_pton (License): Relicense under LGPLv2+.
28079
28080 2008-08-03  Bruno Haible  <bruno@clisp.org>
28081
28082         Additional non-aborting API for lock and tls.
28083         * lib/lock.h: Include <errno.h>.
28084         (glthread_lock_init): New macro/function.
28085         (gl_lock_init): Define as wrapper around glthread_lock_init.
28086         (glthread_lock_lock): New macro/function.
28087         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
28088         (glthread_lock_unlock): New macro/function.
28089         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
28090         (glthread_lock_destroy): New macro/function.
28091         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
28092         (glthread_rwlock_init): New macro/function.
28093         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
28094         (glthread_rwlock_rdlock): New macro/function.
28095         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
28096         (glthread_rwlock_wrlock): New macro/function.
28097         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
28098         (glthread_rwlock_unlock): New macro/function.
28099         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
28100         (glthread_rwlock_destroy): New macro/function.
28101         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
28102         (glthread_recursive_lock_init): New macro/function.
28103         (gl_recursive_lock_init): Define as wrapper around
28104         glthread_recursive_lock_init.
28105         (glthread_recursive_lock_lock): New macro/function.
28106         (gl_recursive_lock_lock): Define as wrapper around
28107         glthread_recursive_lock_lock.
28108         (glthread_recursive_lock_unlock): New macro/function.
28109         (gl_recursive_lock_unlock): Define as wrapper around
28110         glthread_recursive_lock_unlock.
28111         (glthread_recursive_lock_destroy): New macro/function.
28112         (gl_recursive_lock_destroy): Define as wrapper around
28113         glthread_recursive_lock_destroy.
28114         (glthread_once): New macro/function.
28115         (gl_once): Define as wrapper around glthread_once.
28116         Update function declarations.
28117         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
28118         glthread_rwlock_init. Return error code.
28119         (glthread_rwlock_rdlock_multithreaded): Renamed from
28120         glthread_rwlock_rdlock. Return error code.
28121         (glthread_rwlock_wrlock_multithreaded): Renamed from
28122         glthread_rwlock_wrlock. Return error code.
28123         (glthread_rwlock_unlock_multithreaded): Renamed from
28124         glthread_rwlock_unlock. Return error code.
28125         (glthread_rwlock_destroy_multithreaded): Renamed from
28126         glthread_rwlock_destroy. Return error code.
28127         (glthread_recursive_lock_init_multithreaded): Renamed from
28128         glthread_recursive_lock_init. Return error code.
28129         (glthread_recursive_lock_lock_multithreaded): Renamed from
28130         glthread_recursive_lock_lock. Return error code.
28131         (glthread_recursive_lock_unlock_multithreaded): Renamed from
28132         glthread_recursive_lock_unlock. Return error code.
28133         (glthread_recursive_lock_destroy_multithreaded): Renamed from
28134         glthread_recursive_lock_destroy. Return error code.
28135         (glthread_once_call): Make static.
28136         (glthread_once_multithreaded): Renamed from glthread_once.
28137         * lib/tls.h: Include <errno.h>.
28138         (glthread_tls_key_init): New macro/function.
28139         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
28140         (glthread_tls_set): New macro/function.
28141         (gl_tls_set): Define as wrapper around glthread_tls_set.
28142         (glthread_tls_key_destroy): New macro/function.
28143         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
28144         Update function declarations.
28145         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
28146         glthread_tls_get.
28147         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
28148
28149 2008-08-04  Eric Blake  <ebb9@byu.net>
28150
28151         gnumakefile: use space, not TAB, outside of targets
28152         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
28153
28154 2008-08-02  Jim Meyering  <meyering@redhat.com>
28155
28156         getdate.y: avoid locale-dependent date parsing failure
28157         In Turkish locales, getdate would fail to recognize keywords
28158         containing a lowercase "i".  The solution is not to rely on
28159         locale-sensitive case-conversion.
28160         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
28161         (lookup_word): Use c_toupper in place of toupper.
28162         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
28163         Reported by Vefa Bicakci <bicave@superonline.com> in
28164         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
28165         * modules/getdate (Depends-on): Add c-ctype.
28166
28167 2008-08-02  Bruno Haible  <bruno@clisp.org>
28168
28169         * gnulib-tool (func_import): When updating or creating a .gitignore
28170         file, prepend each added line with a slash, and ignore leading slashes
28171         from the existing lines.
28172         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
28173
28174 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28175
28176         Portability fix for GNU make 3.79.1.
28177         * top/GNUmakefile: Avoid 'else COND', which older GNU make
28178         versions do not understand.
28179
28180 2008-08-01  Bruno Haible  <bruno@clisp.org>
28181
28182         Work around bug of HP-UX 10.20 cc with -0.0 literal.
28183         * tests/test-isnanf.h (zero): New variable.
28184         (main): Avoid literal -0.0f.
28185         * tests/test-isnand.h (zero): New variable.
28186         (main): Avoid literal -0.0.
28187         * tests/test-isnanl.h (zero): New variable.
28188         (main): Avoid literal -0.0L.
28189         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
28190         (test_float, test_double, test_long_double): Avoid literals -0.0f,
28191         -0.0, -0.0L.
28192         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
28193         (test_signbitd): Avoid literal -0.0.
28194         (test_signbitl): Avoid literal -0.0L.
28195         * tests/test-ceilf1.c (zero): New variable.
28196         (main): Avoid literal -0.0f.
28197         * tests/test-ceill.c (zero): New variable.
28198         (main): Avoid literal -0.0L.
28199         * tests/test-floorf1.c (zero): New variable.
28200         (main): Avoid literal -0.0f.
28201         * tests/test-floorl.c (zero): New variable.
28202         (main): Avoid literal -0.0L.
28203         * tests/test-roundf1.c (zero): New variable.
28204         (main): Avoid literal -0.0f.
28205         * tests/test-round1.c (zero): New variable.
28206         (main): Avoid literal -0.0.
28207         * tests/test-roundl.c (zero): New variable.
28208         (main): Avoid literal -0.0L.
28209         * tests/test-truncf1.c (zero): New variable.
28210         (main): Avoid literal -0.0f.
28211         * tests/test-trunc1.c (zero): New variable.
28212         (main): Avoid literal -0.0.
28213         * tests/test-truncl.c (zero): New variable.
28214         (main): Avoid literal -0.0L.
28215         * tests/test-frexp.c (zero): New variable.
28216         (main): Avoid literal -0.0.
28217         * tests/test-frexpl.c (zero): New variable.
28218         (main): Avoid literal -0.0L.
28219         * tests/test-ldexpl.c (zero): New variable.
28220         (main): Avoid literal -0.0L.
28221         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
28222         (zerod, zerol): New variables.
28223         (test_function): Avoid literals -0.0, -0.0L.
28224         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
28225         (zerod, zerol): New variables.
28226         (test_function): Avoid literals -0.0, -0.0L.
28227         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
28228         (zerod, zerol): New variables.
28229         (test_function): Avoid literals -0.0, -0.0L.
28230         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
28231         (zerod, zerol): New variables.
28232         (test_function): Avoid literals -0.0, -0.0L.
28233         * tests/test-strtod.c (zero): New variable.
28234         (main): Avoid literal -0.0.
28235         Reported by Jonathan C. Patschke <jp@centtech.com>.
28236
28237 2008-07-31  Jim Meyering  <meyering@redhat.com>
28238
28239         sha256.h: correct definition of SHA224_DIGEST_SIZE
28240         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
28241         Reported by Paulie Pena IV <paulie4@gmail.com>.
28242         Define as 224 / 8, rather than as a literal.
28243         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
28244         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
28245         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
28246
28247 2008-07-31  Bruno Haible  <bruno@clisp.org>
28248
28249         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
28250         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
28251         Reported by Jonathan Patschke <jp@centtech.com>.
28252
28253 2008-07-31  Bruno Haible  <bruno@clisp.org>
28254
28255         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
28256         Reported by Paolo Bonzini <bonzini@gnu.org>.
28257
28258 2008-07-30  Eric Blake  <ebb9@byu.net>
28259
28260         test-strtod: allow compilation without -lm
28261         * tests/test-strtod.c (main): Avoid link dependence on fabs.
28262         Reported by Dennis Clarke <blastwave@gmail.com>.
28263
28264 2008-07-28  Jim Meyering  <meyering@redhat.com>
28265
28266         bootstrap: work also when there are no .po files in po/
28267         * build-aux/bootstrap (update_po_files): Complete the change
28268         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
28269
28270 2008-07-27  Jim Meyering  <meyering@redhat.com>
28271
28272         * users.txt: Add zile.
28273
28274 2008-07-26  Ben Pfaff  <blp@gnu.org>
28275
28276         Add missing dependencies on new m4/exponent[fdl].m4 files.
28277         * modules/isnanf-nolibm: Add m4/exponentf.m4.
28278         * modules/isnand-nolibm: Add m4/exponentd.m4.
28279         * modules/isnanl-nolibm: Add m4/exponentl.m4.
28280         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
28281         m4/isnan[fdl].m4, because the macros actually used moved.
28282         Reported by Jim Meyering.
28283
28284 2008-07-14  Ben Pfaff  <blp@gnu.org>
28285
28286         Add isinf module.
28287         * lib/isinf.c: New file.
28288         * lib/math.in.h: Define isinf macro if we have decided to replace
28289         it.
28290         * m4/isinf.m4: New file.
28291         * m4/math_h.m4: Initialize and substitute variables for isinf
28292         module.
28293         * modules/isinf: New file.
28294         * modules/isinf-tests: New file.
28295         * modules/math: Add substitutions for new module.
28296         * tests/test-isinf.c: New file.
28297         * doc/posix-functions/isinf.texi: Mention new module.
28298         * MODULES.html.sh: Mention new module.
28299
28300 2008-07-14  Ben Pfaff  <blp@gnu.org>
28301
28302         Factor out some macros for use by additional modules.
28303         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
28304         exponentf.m4.
28305         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
28306         exponentd.m4.
28307         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
28308         file exponentl.m4.
28309         * m4/exponentf.m4: New file.
28310         * m4/exponentd.m4: New file.
28311         * m4/exponentl.m4: New file.
28312         * modules/isnanf: Use new file m4/exponentf.m4.
28313         * modules/isnand: Use new file m4/exponentd.m4.
28314         * modules/isnanl: Use new file m4/exponentl.m4.
28315
28316 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
28317
28318         mktime.c: normalize tp->tm_isdst value to -1/0/1.
28319         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
28320         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
28321         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
28322
28323         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
28324         readlink on platforms without PATH_MAX.
28325
28326 2008-07-21  Eric Blake  <ebb9@byu.net>
28327
28328         Warn, not fail, on stale version.
28329         * top/GNUmakefile (_curr-ver): Tone down previous patch.
28330
28331         Don't allow installation with stale devel version number.
28332         * top/GNUmakefile (_is-install-target): New macro.
28333         (_curr-ver): Forbid installation with stale version number.
28334
28335 2008-07-20  Bruno Haible  <bruno@clisp.org>
28336
28337         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
28338         TESTS_ENVIRONMENT.
28339         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
28340
28341 2008-07-20  Bruno Haible  <bruno@clisp.org>
28342
28343         * lib/c-stack.h (c_stack_action): Add documentation.
28344         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
28345
28346 2008-07-20  Bruno Haible  <bruno@clisp.org>
28347
28348         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
28349         * modules/readlink (License): Likewise.
28350
28351 2008-07-17  Eric Blake  <ebb9@byu.net>
28352
28353         * modules/c-stack (Link): Fix typo.
28354
28355         Make c-stack use libsigsegv, when available.
28356         * modules/c-stack (Depends-on): Add libsigsegv.
28357         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
28358         needed.
28359         * lib/c-stack.c (SIGSTKSZ): Define fallback.
28360         (segv_handler, overflow_handler, c_stack_action)
28361         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
28362         implementation when libsigsegv is available, but only when using
28363         the library is necessary.
28364         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
28365         comment, explaining why XSI check fails on Linux.
28366         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
28367         * tests/test-c-stack2.sh: Tweak skip message.
28368         * NEWS: Document new link-time requirements.
28369
28370 2008-07-16  Eric Blake  <ebb9@byu.net>
28371
28372         c-stack: Expose false positives when not using libsigsegv.
28373         * modules/c-stack-tests (Files): Expand test.
28374         * tests/test-c-stack.c (main): Add means to conditionally trigger
28375         non-overflow SIGSEGV.
28376         * tests/test-c-stack2.sh: New file.
28377
28378 2008-07-14  Bruno Haible  <bruno@clisp.org>
28379
28380         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
28381         Reported by Eric Blake.
28382
28383 2008-07-14  Sam Steingold  <sds@gnu.org>
28384             Bruno Haible  <bruno@clisp.org>
28385
28386         New module libsigsegv.
28387         * modules/libsigsegv: New file.
28388         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
28389         modifications.
28390         * MODULES.html.sh (Signal handling): New section.
28391
28392 2008-07-14  Bruno Haible  <bruno@clisp.org>
28393
28394         * modules/unictype/ctype-* (Description): Add the word "function".
28395         Improves the resulting doc in MODULES.html.
28396
28397 2008-07-12  Ben Pfaff  <blp@gnu.org>
28398
28399         Add longlong module.
28400         * modules/longlong: New file.
28401
28402 2008-07-12  Bruno Haible  <bruno@clisp.org>
28403
28404         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
28405         to empty.
28406
28407 2008-07-10  Ben Pfaff  <blp@gnu.org>
28408
28409         Add isnan module.
28410         * doc/posix-functions/isnan.texi: Mention new module.
28411         * lib/math.in.h: Define isnan macro if we have decided to replace
28412         it.
28413         * m4/isnan.m4: New file.
28414         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
28415         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
28416         also.
28417         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
28418         redundancy.
28419         * m4/math_h.m4: Initialize and substitute variables for isnan
28420         module.
28421         * modules/isnan: New file.
28422         * modules/isnan-tests: New file.
28423         * modules/math: Add substitutions for new module.
28424         * tests/test-isnan.c: New file.
28425         * MODULES.html.sh: Mention new module.
28426
28427 2008-07-10  Ben Pfaff  <blp@gnu.org>
28428
28429         Add isnanf module.
28430         * lib/isnanf.m4: New file.
28431         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
28432         (gl_HAVE_ISNANF_IN_LIBM): New macro.
28433         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
28434         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
28435         * modules/isnanf: New file.
28436         * modules/isnanf-tests: New file.
28437         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
28438         files.
28439         * tests/test-isnanf-nolibm.c: factored most of its contents into
28440         new file tests/test-isnanf.h.
28441         * tests/test-isnanf.h: New file.
28442         * tests/test-isnanf.c: New file.
28443         * MODULES.html.sh: Mention new module.
28444         * doc/glibc-functions/isnanf.texi: Mention new module.
28445
28446 2008-07-10  Ben Pfaff  <blp@gnu.org>
28447
28448         Add isnand module.
28449         * lib/isnand.h: New file.
28450         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
28451         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
28452         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
28453         functionality also.
28454         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
28455         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
28456         (gl_HAVE_ISNAND_IN_LIBM): New macro.
28457         * modules/isnand: New file.
28458         * modules/isnand-tests: New file.
28459         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
28460         files.
28461         * tests/test-isnand-nolibm.c: factored most of its contents into
28462         new file tests/test-isnand.h.
28463         * tests/test-isnand.h: New file.
28464         * tests/test-isnand.c: New file.
28465         * MODULES.html.sh: Mention new module.
28466
28467 2008-07-10  Ben Pfaff  <blp@gnu.org>
28468
28469         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
28470         * lib/isnand.h: Rename lib/isnand-nolibm.h.
28471         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
28472         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
28473         * modules/isnanf-nolibm: Update references to renamed files.
28474         * modules/isnand-nolibm: Likewise.
28475         * modules/isnanf-nolibm-tests: Likewise.
28476         * modules/isnand-nolibm-tests: Likewise.
28477         * lib/frexp.c: Likewise.
28478         * lib/isfinite.c: Likewise.
28479         * lib/signbitd.c: Likewise.
28480         * lib/signbitf.c: Likewise.
28481         * lib/vasnprintf.c: Likewise.
28482         * tests/test-ceilf1.c: Likewise.
28483         * tests/test-ceilf2.c: Likewise.
28484         * tests/test-floorf1.c: Likewise.
28485         * tests/test-floorf2.c: Likewise.
28486         * tests/test-frexp.c: Likewise.
28487         * tests/test-round1.c: Likewise.
28488         * tests/test-round2.c: Likewise.
28489         * tests/test-roundf1.c: Likewise.
28490         * tests/test-strtod.c: Likewise.
28491         * tests/test-trunc1.c: Likewise.
28492         * tests/test-trunc2.c: Likewise.
28493         * tests/test-truncf1.c: Likewise.
28494         * tests/test-truncf2.c: Likewise.
28495         * NEWS: Mention the renamed header files.
28496
28497 2008-07-11  Jim Meyering  <meyering@redhat.com>
28498
28499         vc-list-files: make the last-resort awk code more portable
28500         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
28501         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
28502         does not support it.
28503
28504 2008-07-10  Eric Blake  <ebb9@byu.net>
28505
28506         Work with tar's bootstrap.
28507         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
28508         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
28509         an m4 comment.
28510
28511 2008-07-09  Jim Meyering  <meyering@redhat.com>
28512
28513         posix-shell.m4: fix typo that made this test malfunction
28514         * m4/posix-shell.m4: Remove capitalization in variable name.
28515
28516 2008-07-08  Bruno Haible  <bruno@clisp.org>
28517
28518         * m4/onceonly.m4: Update comments.
28519         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28520
28521 2008-07-04  Jim Meyering  <meyering@redhat.com>
28522
28523         * users.txt: Add vc-dwim.
28524         (bison, coreutils): Use the gitweb URL.
28525
28526 2008-07-03  Jim Meyering  <meyering@redhat.com>
28527
28528         * users.txt: Add libffcall.  From Sam Steingold.
28529
28530 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
28531
28532         getdate.y: do not ignore TZ with relative day, month or year offset
28533         * lib/getdate.y (get_date): Move the tz-handling block to follow the
28534         relative-date-handling, since otherwise, the latter would clobber the
28535         sole output (an updated Start value) of the tz-handling block.
28536         * tests/test-getdate.c: Tests for the fix
28537
28538 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28539
28540         Recognize 'foo_LIBRARIES += libgnu.a'.
28541         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
28542         makefile snippet has already specified an installation location,
28543         also using '+='.
28544
28545 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
28546
28547         getdate.y: factor out common actions
28548         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
28549         Use them in place of open-coded actions.
28550
28551 2008-07-01  Simon Josefsson  <simon@josefsson.org>
28552
28553         Add self-test for getdate module.
28554         * modules/getdate-tests: New file.
28555         * tests/test-getdate.c: New file.
28556
28557 2008-06-29  Bruno Haible  <bruno@clisp.org>
28558
28559         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
28560         .gitignore.
28561         Reported by Sylvain Beucler <beuc@beuc.net>.
28562
28563 2008-06-29  Bruno Haible  <bruno@clisp.org>
28564
28565         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
28566         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
28567
28568 2008-06-29  Bruno Haible  <bruno@clisp.org>
28569
28570         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
28571         EXTRA_DIST.
28572         Reported by Sylvain Beucler <beuc@beuc.net>.
28573
28574 2008-06-26  Jim Meyering  <meyering@redhat.com>
28575
28576         make several modules depend on the "open" module
28577         This provides slightly increased consistency when opening-for-write
28578         the name of a non-directory spelled with a trailing slash.
28579         * modules/chdir-safer: Likewise.
28580         * modules/chown: Likewise.
28581         * modules/clean-temp: Likewise.
28582         * modules/copy-file: Likewise.
28583         * modules/fchdir: Likewise.
28584         * modules/fcntl-safer: Likewise.
28585         * modules/pipe: Likewise.
28586         * modules/utime: Likewise.
28587         Prompted by Eric Blake and Bruno Haible.
28588
28589 2008-06-24  Andreas Schwab  <schwab@suse.de>
28590
28591         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
28592         literals can be used as initializers for global variables.
28593
28594 2008-06-23  Eric Blake  <ebb9@byu.net>
28595
28596         Make gnulib-cache.m4 easier to diff.
28597         * gnulib-tool (func_import): Allow newlines when reading cached
28598         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
28599
28600 2008-06-23  Bruno Haible  <bruno@clisp.org>
28601
28602         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
28603         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
28604         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
28605         m4/signalblocking.m4.
28606         (gl_PREREQ_SIGACTION): Don't invoke it.
28607         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
28608         gl_PREREQ_SIG_HANDLER_H.
28609         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
28610         Don't check for sigaction here.
28611
28612 2008-06-23  Bruno Haible  <bruno@clisp.org>
28613
28614         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
28615         (install_handlers): Don't set the SA_RESETHAND flag.
28616
28617 2008-06-23  Bruno Haible  <bruno@clisp.org>
28618
28619         * m4/sigaction.m4: Comment fixes.
28620         * lib/signal.in.h: Likewise.
28621
28622 2008-06-23  Eric Blake  <ebb9@byu.net>
28623
28624         Fix typo.
28625         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
28626
28627         Avoid SA_ namespace.
28628         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
28629         Reported by Ralf Wildenhues.
28630
28631         Avoid test failure due to SA_RESTORER.
28632         * tests/test-sigaction.c (SA_MASK): New macro.
28633         (main): Avoid failing due to extension flags being set.
28634         Reported by Jim Meyering.
28635
28636         Revert use of sig-handler.h in sigprocmask.c.
28637         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
28638         it requires the existence of struct sigaction.
28639         * lib/sigprocmask.c (handler_t): Restore typedef.
28640         (rpl_signal, old_handlers): Use local type.
28641
28642 2008-06-22  Bruno Haible  <bruno@clisp.org>
28643
28644         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
28645         conditionally.
28646         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28647
28648 2008-06-22  Bruno Haible  <bruno@clisp.org>
28649
28650         * doc/posix-functions/siginterrupt.texi: Move note.
28651
28652         * lib/signal.in.h (SA_RESTART): New macro.
28653         * lib/sigaction.c: Update comment.
28654
28655         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
28656
28657         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
28658         (gl_PREREQ_SIGPROCMASK): Invoke it.
28659         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
28660
28661         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
28662
28663         * lib/sigprocmask.c: Update a comment.
28664
28665 2008-06-21  Eric Blake  <ebb9@byu.net>
28666
28667         Use sigaction module rather than signal().
28668         * modules/c-stack (Depends-on): Add sigaction.
28669         * modules/fatal-signal (Depends-on): Likewise.
28670         * modules/nanosleep (Depends-on): Likewise.
28671         * modules/sigprocmask (Files): Add sig-handler.h.
28672         * modules/sigaction (Files): Likewise.
28673         * lib/sig-handler.h (get_handler): New file, suggested by Paul
28674         Eggert.
28675         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
28676         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
28677         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
28678         (init_fatal_signals): Likewise.
28679         * lib/nanosleep.c (rpl_nanosleep): Likewise.
28680         (siginterrupt): Delete fallback.
28681         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
28682         instead.
28683         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
28684         siginterrupt.
28685
28686         New module sigaction, for mingw.
28687         * modules/sigaction: New module...
28688         * modules/sigaction-tests: ...and its test.
28689         * m4/sigaction.m4: New file.
28690         * lib/sigaction.c: Likewise.
28691         * tests/test-sigaction.c: Likewise.
28692         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
28693         * modules/signal (Makefile.am): Likewise.
28694         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
28695         needed.
28696         * doc/posix-headers/signal.texi (signal.h): Mention provided
28697         types.
28698         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
28699         that sigaction is preferable.
28700         * doc/posix-functions/sigaction.texi (sigaction): Mention new
28701         module.
28702         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28703         sigaction.
28704
28705         Improve robustness of sigprocmask by overriding signal.
28706         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
28707         is in use.
28708         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
28709         (SIGKILL, SIGSTOP): Provide fallbacks.
28710         (rpl_signal): Implement.
28711         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
28712         signal can be called inside handlers.
28713
28714         Fix nanosleep module on mingw.
28715         * modules/nanosleep (Depends-on): Add sys_select.
28716         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
28717
28718         Fix licensing of sigprocmask.
28719         * modules/raise (License): Relicense as LGPL.
28720
28721 2008-06-21  Bruno Haible  <bruno@clisp.org>
28722
28723         * lib/propername.c (proper_name_utf8): Don't use the transliterated
28724         result if it contains question marks.
28725         Reported by Michael Geng <linux@michaelgeng.de>.
28726
28727 2008-06-19  Bruno Haible  <bruno@clisp.org>
28728
28729         Fix CVS-ism.
28730         * doc/gnulib.texi: Include updated-stamp.texi.
28731         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
28732         (updated-stamp.texi): New rule.
28733         (gnulib.info): Depend on it.
28734         * doc/.gitignore: Add updated-stamp.texi.
28735         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
28736
28737 2008-06-19  Bruno Haible  <bruno@clisp.org>
28738
28739         * doc/Makefile (gnulib.info): Update and simplify dependencies.
28740         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
28741
28742 2008-06-19  Eric Blake  <ebb9@byu.net>
28743
28744         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
28745         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
28746         Reported by Stepan Kasal.
28747
28748 2008-06-18  Bruno Haible  <bruno@clisp.org>
28749
28750         * lib/fatal-signal.c (init_fatal_signals): Add comment.
28751         Reported by Eric Blake.
28752
28753 2008-06-18  Eric Blake  <ebb9@byu.net>
28754
28755         Work around cygwin 1.5.25 strsignal bug.
28756         * tests/test-strsignal.c: Allow for const char *.
28757         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
28758
28759 2008-06-18  Simon Josefsson  <simon@josefsson.org>
28760
28761         * users.txt: Update URL to article and add author/date
28762         information.
28763
28764 2008-06-17  Bruno Haible  <bruno@clisp.org>
28765
28766         New macro gl_DISABLE_THREADS.
28767         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
28768         if the user did not pass --enable-threads or --disable-threads option.
28769         (gl_DISABLE_THREADS): New macro.
28770         Reported by Eric Blake <ebb9@byu.net>.
28771
28772 2008-06-17  Bruno Haible  <bruno@clisp.org>
28773
28774         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
28775         when the macro ignores it.
28776         Based on a patch by Eric Blake <ebb9@byu.net>.
28777
28778 2008-06-17  Bruno Haible  <bruno@clisp.org>
28779
28780         * modules/tls (License): Change to LGPLv2+.
28781         Reported by Eric Blake.
28782
28783 2008-06-17  Eric Blake  <ebb9@byu.net>
28784
28785         Simplify c-stack prerequisites.
28786         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
28787         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
28788         no longer requires <ucontext.h> to exist.  Optimize setrlimit
28789         check.
28790         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
28791         <sys/resource.h>.
28792
28793         Move c-stack test into testsuite.
28794         * modules/c-stack-tests: New file.
28795         * lib/c-stack.c [DEBUG]: Move test program...
28796         * tests/test-c-stack.c: ...into this new file.  Skip rather than
28797         fail test if sigaltstack is lacking.
28798         * tests/test-c-stack.sh: New driver file.
28799
28800 2008-06-16  Eric Blake  <ebb9@byu.net>
28801
28802         Use raise module consistently.
28803         * modules/fatal-signal (Depends-on): Add raise.
28804         * modules/sigprocmask (Depends-on): Likewise.
28805         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
28806         * lib/sigprocmask.c (sigprocmask): Likewise.
28807         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
28808         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
28809
28810         Fix compliance bug in sigpending.
28811         * lib/sigprocmask.c (sigpending): Return pending array via
28812         parameter, not return value.
28813
28814 2008-06-14  Eric Blake  <ebb9@byu.net>
28815
28816         Improve obstack-printf test code.
28817         * tests/test-obstack-printf.c (test_function): Fix comment, and
28818         simplify usage of obstack_* in macros.  Add a test for coverage.
28819         Reported by Bruno Haible.
28820
28821 2008-06-14  Bruno Haible  <bruno@clisp.org>
28822
28823         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
28824         array size as a constant, not as a const variable.
28825         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
28826         AC_USE_SYSTEM_EXTENSIONS.
28827         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
28828         Test whether the obstack_printf function actually exists.
28829         * modules/obstack-printf (Depends-on): Add extensions.
28830         (Include): Remove obstack.h.
28831         * modules/obstack-printf-posix (Depends-on): Add extensions.
28832         (Include): Remove obstack.h.
28833
28834 2008-06-13  Eric Blake  <ebb9@byu.net>
28835
28836         Add obstack-printf and obstack-printf-posix modules.
28837         * modules/obstack-printf: New file.
28838         * modules/obstack-printf-posix: Likewise.
28839         * MODULES.html.sh (Misc): Mention them.
28840         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
28841         Likewise.
28842         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
28843         Likewise.
28844         * modules/stdio (Makefile.am): Accomodate new modules.
28845         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28846         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
28847         Declare.
28848         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
28849         functions.
28850         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
28851         (gl_REPLACE_OBSTACK_PRINTF): New macros
28852         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
28853         * tests/test-obstack-printf.c: New file.
28854         * modules/obstack-printf-tests: Likewise.
28855         * modules/obstack-printf-posix-tests: Likewise.
28856
28857 2008-06-11  Bruno Haible  <bruno@clisp.org>
28858
28859         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
28860         * lib/open.c: Include errno.h.
28861         (open): Fail when attempting to write to a file that has a trailing
28862         slash.
28863         * tests/test-open.c (main): Test against trailing slash bug.
28864         * doc/posix-functions/open.texi: Mention the trailing slash bug.
28865
28866 2008-06-10  Bruno Haible  <bruno@clisp.org>
28867
28868         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
28869         for $? to work inside the trap command, with various /bin/sh-s.
28870         * tests/test-vc-list-files-cvs.sh: Likewise.
28871
28872 2008-06-10  Bruno Haible  <bruno@clisp.org>
28873
28874         * lib/acl-internal.h: Don't include gettext.h here.
28875         * lib/set-mode-acl.c: Include gettext.h here.
28876         * lib/copy-acl.c: Likewise.
28877
28878 2008-06-10  Bruno Haible  <bruno@clisp.org>
28879
28880         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
28881         * lib/wait-process.c (wait_subprocess): Likewise.
28882         * lib/execute.h (execute): Add termsigp argument.
28883         * lib/execute.c (execute): Likewise.
28884         * lib/csharpcomp.c (compile_csharp_using_pnet,
28885         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
28886         * lib/csharpexec.c (execute_csharp_using_pnet,
28887         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
28888         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
28889         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
28890         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
28891         is_jikes_present): Update.
28892         * lib/javaexec.c (execute_java_class): Update.
28893         * lib/javaversion.c (execute_and_read_line): Update.
28894         * NEWS: Document the changes.
28895         Reported by Eric Blake.
28896
28897 2008-06-10  Eric Blake  <ebb9@byu.net>
28898
28899         Add missing include.
28900         * tests/test-strstr.c (includes): Add <signal.h>.
28901         * tests/test-strcasestr.c (includes): Likewise.
28902         * tests/test-memmem.c (includes): Likewise.
28903
28904 2008-06-10  Bruno Haible  <bruno@clisp.org>
28905
28906         * lib/wait-process.c (wait_subprocess): Add an assertion.
28907
28908 2008-06-10  Bruno Haible  <bruno@clisp.org>
28909
28910         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
28911
28912 2008-06-10  Bruno Haible  <bruno@clisp.org>
28913
28914         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
28915         using alarm().
28916         * tests/test-strcasestr.c (main): Likewise.
28917         * tests/test-strstr.c (main): Likewise.
28918
28919 2008-06-09  Bruno Haible  <bruno@clisp.org>
28920
28921         Work around the Solaris 10 ACE ACLs ABI change.
28922         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
28923         declare if ACL_NO_TRIVIAL is present.
28924         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
28925         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
28926         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
28927         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
28928         define if ACL_NO_TRIVIAL is present.
28929         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
28930         and use the current ABI.
28931         (file_has_acl): Use same #if condition as elsewhere.
28932         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
28933         in use, and use the current ABI.
28934         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
28935         Reported by Jim Meyering.
28936
28937 2008-06-09  Eric Blake  <ebb9@byu.net>
28938
28939         Work around environments that (stupidly) ignore SIGALRM.
28940         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
28941         before using alarm().
28942         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28943         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
28944         Reported by Ian Beckwith <ianb@erislabs.net>.
28945
28946         Produce autobuild blurb earlier in log.
28947         * modules/autobuild (configure.ac-early): Move AB_INIT here.
28948
28949 2008-06-09  Jim Meyering  <meyering@redhat.com>
28950         and Ondřej Vašík  <ovasik@redhat.com>
28951
28952         utimens.c: correct kernel bug work-around
28953         Ondřej Vašík found that the invalid return value of 280 indicates
28954         failure, not success, and the kernel bug we're trying to work
28955         around affects not just the utimensat call, but also the fallback
28956         futimens call.
28957         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
28958         not success.
28959         [HAVE_FUTIMENS]: Use the same work-around, here.
28960
28961 2008-06-09  Jim Meyering  <meyering@redhat.com>
28962
28963         add more guards around definition of ACE_-related code
28964         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
28965         ALLOW and ACE_OWNER are also defined.
28966
28967 2008-06-08  Bruno Haible  <bruno@clisp.org>
28968
28969         * lib/acl-internal.h: Add me as co-author.
28970         * lib/file-has-acl.c: Likewise.
28971         * lib/set-mode-acl.c: Likewise.
28972         * lib/copy-acl.c: Likewise.
28973
28974 2008-06-08  Bruno Haible  <bruno@clisp.org>
28975
28976         Add support for AIX ACLs.
28977         * lib/acl-internal.h (acl_nontrivial): New declaration.
28978         * lib/file-has-acl.c (acl_nontrivial): New function.
28979         (file_has_acl): Add implementation using AIX 4 ACL API.
28980         * lib/set-mode-acl.c (qset_acl): Likewise.
28981         * lib/copy-acl.c (qcopy_acl): Likewise.
28982
28983 2008-06-08  Bruno Haible  <bruno@clisp.org>
28984
28985         Add support for HP-UX ACLs.
28986         * lib/acl-internal.h (acl_nontrivial): New declaration.
28987         * lib/file-has-acl.c (acl_nontrivial): New function.
28988         (file_has_acl): Add implementation using HP-UX 11 ACL API.
28989         * lib/set-mode-acl.c (qset_acl): Likewise.
28990         * lib/copy-acl.c (qcopy_acl): Likewise.
28991
28992 2008-06-08  Bruno Haible  <bruno@clisp.org>
28993
28994         Add support for Cygwin ACLs.
28995         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
28996         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
28997         the chmod_or_fchmod call.
28998         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
28999
29000 2008-06-08  Bruno Haible  <bruno@clisp.org>
29001
29002         Fix bug with setuid modes in Solaris 10+ code.
29003         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
29004         succeeded, when the mode contains some special bits.
29005
29006 2008-06-08  Bruno Haible  <bruno@clisp.org>
29007
29008         Add support for Solaris 7..10 ACLs.
29009         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
29010         declarations.
29011         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
29012         functions.
29013         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
29014         * lib/set-mode-acl.c (qset_acl): Likewise.
29015         * lib/copy-acl.c (qcopy_acl): Likewise.
29016
29017 2008-06-08  Bruno Haible  <bruno@clisp.org>
29018
29019         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
29020         declaration.
29021         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
29022         (acl_access_nontrivial): Remove MacOS X case.
29023         (file_has_acl): Use acl_extended_nontrivial.
29024         * lib/copy-acl.c (qcopy_acl): Likewise.
29025
29026 2008-06-08  Bruno Haible  <bruno@clisp.org>
29027
29028         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
29029
29030 2008-06-08  Jim Meyering  <meyering@redhat.com>
29031
29032         * modules/acl (Maintainer): Add Bruno Haible.
29033
29034 2008-06-07  Bruno Haible  <bruno@clisp.org>
29035
29036         Improve support for Tru64 ACLs.
29037         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
29038         ACL on OSF/1.
29039
29040 2008-06-07  Bruno Haible  <bruno@clisp.org>
29041
29042         Add support for MacOS X ACLs.
29043         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
29044         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
29045         * lib/set-mode-acl.c (qset_acl): Likewise.
29046         * lib/copy-acl.c (qcopy_acl): Likewise.
29047
29048 2008-06-07  Bruno Haible  <bruno@clisp.org>
29049
29050         Fix memory leak introduced on 2008-05-22.
29051         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
29052         use.
29053
29054 2008-06-07  Bruno Haible  <bruno@clisp.org>
29055
29056         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
29057         to construct an empty ACL.
29058
29059 2008-06-07  Bruno Haible  <bruno@clisp.org>
29060
29061         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
29062         precisely.
29063         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
29064
29065 2008-06-07  Bruno Haible  <bruno@clisp.org>
29066
29067         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
29068         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
29069
29070 2008-06-07  Bruno Haible  <bruno@clisp.org>
29071
29072         * doc/posix-functions/_setjmp.texi: Explain the use of this function
29073         regardless of POSIX.
29074         * doc/posix-functions/_longjmp.texi: Likewise.
29075         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
29076         SystemV platform in this case.
29077
29078 2008-06-06  Eric Blake  <ebb9@byu.net>
29079
29080         Document abort() bugs.
29081         * doc/posix-functions/abort.texi (abort): Mention anomalies.
29082
29083         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
29084         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
29085         sigsetjmp.
29086         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
29087         siglongjmp, but only as a macro.
29088         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
29089         is obsolete.
29090         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
29091
29092         Tweak documentation to cover cygwin argz bugs.
29093         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
29094         argz bug fix; no code change needed since no cygwin releases
29095         occurred between the last fix and the bug being tested.
29096         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
29097         module and recently fixed cygwin bugs.
29098         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
29099         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
29100         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
29101         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
29102         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
29103         Likewise.
29104         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
29105         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
29106         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
29107         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
29108         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
29109         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
29110         Likewise.
29111
29112         Avoid gcc warning on cygwin.
29113         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
29114         !ACL_NO_TRIVIAL]: Avoid unused variable.
29115
29116 2008-06-05  Eric Blake  <ebb9@byu.net>
29117
29118         Be tolerant of UNKNOWN version in gnulib-tool test dir.
29119         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
29120         git-version-gen fails to come up with a version.
29121         Reported by Simon Josefsson.
29122
29123 2008-06-05  Jim Meyering  <meyering@redhat.com>
29124             Paul Eggert  <eggert@cs.ucla.edu>
29125
29126         utimens.c: work around a probable Linux kernel bug
29127         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
29128         appears to be a kernel bug that causes utimensat to return 280
29129         instead of 0, indicating success.
29130
29131 2008-06-04  Bruno Haible  <bruno@clisp.org>
29132
29133         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
29134         2008-06-01 commit.
29135
29136 2008-06-04  Bruno Haible  <bruno@clisp.org>
29137
29138         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
29139         * lib/file-has-acl.c (acl_access_nontrivial): New function.
29140         (file_has_acl): Use it. Save errno afterwards.
29141         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
29142
29143 2008-06-03  Bruno Haible  <bruno@clisp.org>
29144
29145         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
29146         draft code. Simplify #ifs.
29147         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
29148         Put Solaris code after POSIX-draft code. Fix comments regarding
29149         Solaris 10, HP-UX. Mention Cygwin.
29150         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
29151
29152 2008-06-03  Eric Blake  <ebb9@byu.net>
29153
29154         Provide fallback for older kernels.
29155         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
29156         Provide runtime fallback if kernel lacks support.
29157         Reported by Mike Frysinger.
29158
29159 2008-06-02  Bruno Haible  <bruno@clisp.org>
29160
29161         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
29162         it exists.
29163
29164 2008-06-02  Bruno Haible  <bruno@clisp.org>
29165
29166         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
29167         * lib/copy-acl.c (qcopy_acl): Update comment.
29168
29169 2008-06-02  Bruno Haible  <bruno@clisp.org>
29170
29171         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
29172         like ACL APIs.
29173
29174 2008-06-02  Bruno Haible  <bruno@clisp.org>
29175
29176         * tests/test-file-has-acl.sh: Use different code for Cygwin.
29177         * tests/test-set-mode-acl.sh: Likewise.
29178         * tests/test-copy-acl.sh: Likewise.
29179         * tests/test-copy-file.sh: Likewise.
29180
29181 2008-06-02  Bruno Haible  <bruno@clisp.org>
29182
29183         * tests/test-file-has-acl.sh: Remove unused code.
29184
29185 2008-06-01  Bruno Haible  <bruno@clisp.org>
29186
29187         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
29188         (copy_acl): Just a wrapper around qcopy_acl that emits the error
29189         messages.
29190         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
29191
29192 2008-06-01  Bruno Haible  <bruno@clisp.org>
29193
29194         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
29195         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
29196         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
29197         APIs.
29198         * modules/acl-tests (configure.ac): Remove tests now contained in
29199         m4/acl.m4.
29200
29201 2008-06-02  Jim Meyering  <meyering@redhat.com>
29202
29203         announce-gen: use a better key-server host name
29204         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
29205         it may be more consistently reliable.  Suggested by Werner Koch
29206         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
29207
29208 2008-06-01  Bruno Haible  <bruno@clisp.org>
29209
29210         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
29211         Reported by Voroskoi Andras <voroskoi@gmail.com>.
29212
29213 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
29214
29215         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
29216
29217 2008-06-01  Bruno Haible  <bruno@clisp.org>
29218
29219         New ACL tests.
29220         * tests/test-file-has-acl.sh: New file.
29221         * tests/test-file-has-acl.c: New file.
29222         * tests/test-set-mode-acl.sh: New file.
29223         * tests/test-set-mode-acl.c: New file.
29224         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
29225         * tests/test-copy-acl.c: New file.
29226         * modules/acl-tests: New file, based on modules/copy-file-tests.
29227         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
29228         (Depends-on): Add acl-tests.
29229         (configure.ac): Remove checks.
29230         (Makefile.am): Don't create test-sameacls program here any more.
29231
29232 2008-06-01  Bruno Haible  <bruno@clisp.org>
29233
29234         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
29235         * tests/test-sameacls.c: Include progname.h.
29236         (main): Invoke set_program_name. Portability fixes for MacOS X,
29237         Solaris, HP-UX.
29238
29239 2008-06-01  Bruno Haible  <bruno@clisp.org>
29240
29241         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
29242         function.
29243         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
29244
29245 2008-06-01  Bruno Haible  <bruno@clisp.org>
29246
29247         * modules/rpmatch (Depends-on): Add strdup.
29248
29249 2008-06-01  Bruno Haible  <bruno@clisp.org>
29250
29251         * lib/pipe.c: Include unistd-safer.h.
29252         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
29253         * modules/pipe (Depends-on): Add unistd-safer.
29254
29255 2008-05-30  Simon Josefsson  <simon@josefsson.org>
29256
29257         * modules/autobuild (configure.ac): Call AB_INIT.
29258
29259 2008-05-30  Simon Josefsson  <simon@josefsson.org>
29260
29261         * tests/test-getaddrinfo.c: Don't print debug messages by default.
29262         Suggested by Bruno Haible <bruno@clisp.org>.
29263
29264 2008-05-30  Simon Josefsson  <simon@josefsson.org>
29265
29266         * tests/test-base64.c: Cast size_t to unsigned long when invoking
29267         printf.  Use %lu instead of %d.  Reported by Bruno Haible
29268         <bruno@clisp.org>.
29269
29270 2008-05-29  Eric Blake  <ebb9@byu.net>
29271
29272         Prefer new POSIX 200x interfaces over futimesat.
29273         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
29274         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
29275         when available.
29276         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
29277
29278 2008-05-28  Bruno Haible  <bruno@clisp.org>
29279
29280         * modules/stpcpy (License): Change to LGPLv2+.
29281         Requested by David Lutterkort <dlutter@redhat.com>.
29282
29283 2008-05-27  Bruno Haible  <bruno@clisp.org>
29284
29285         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
29286         current mingw.
29287         Reported by Jose E. Marchesi <jemarch@gnu.org>.
29288
29289 2008-05-27  Bruno Haible  <bruno@clisp.org>
29290
29291         * modules/iconv_open (Link): New section, from module 'iconv'.
29292         * modules/striconv (Link): Likewise.
29293         * modules/striconveh (Link): Likewise.
29294         * modules/xstriconv (Link): Likewise.
29295         * modules/unicodeio (Link): Likewise.
29296         * modules/propername (Link): Likewise.
29297         Reported by Jim Meyering.
29298
29299 2008-05-26  Jim Meyering  <meyering@redhat.com>
29300
29301         sha256: do not artificially restrict buffer length to be < 2^32
29302         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
29303         uint32_t to size_t.
29304         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
29305         to match.
29306
29307         avoid unaligned access errors, e.g., on sparc
29308         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
29309         direct access through a possibly-unaligned uint64* pointer.
29310         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
29311         direct access through a possibly-unaligned uint32* pointer.
29312         Prompted by this patch from Tom "spot" Callaway:
29313         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
29314
29315         sha512.c: fix typo in comment
29316         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
29317
29318 2008-05-25  Bruno Haible  <bruno@clisp.org>
29319
29320         * lib/set-mode-acl.c: Renamed from lib/acl.c.
29321         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
29322         (Makefile.am): Update lib_SOURCES.
29323
29324 2008-05-25  Bruno Haible  <bruno@clisp.org>
29325
29326         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
29327
29328 2008-05-25  Jim Meyering  <meyering@redhat.com>
29329
29330         useless-if-before-free: freed expr may have white-space differences
29331         * build-aux/useless-if-before-free: Recognize cases in which the
29332         freed expression differs from the tested one in embedded white
29333         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
29334         $1 was used, so we can't make any regexp shy.  Improved tests now
29335         detect this.
29336
29337         useless-if-before-free: accept white space in the expression.
29338         * build-aux/useless-if-before-free: For now, any white space
29339         in the expression must be identical in the free argument.
29340
29341         useless-if-before-free: efficiency tweak
29342         * build-aux/useless-if-before-free: Make the expression-matching
29343         regexp "shy".
29344         Make the *outer* regexp shy, not the expr-matching one.
29345
29346         update code-in-comment to accept cast of free arg
29347         * build-aux/useless-if-before-free: Update regexp.
29348
29349 2008-05-25  Bruno Haible  <bruno@clisp.org>
29350
29351         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
29352         * modules/copy-file-tests (Files, Makefile.am): Update.
29353         * tests/test-copy-file.c (func_test_copy): Update.
29354
29355 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
29356
29357         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
29358
29359 2008-05-23  Bruno Haible  <bruno@clisp.org>
29360
29361         Improve support for ACLs on OSF/1.
29362         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
29363         Remove fallback for unknown flavors of ACLs.
29364
29365 2008-05-22  Bruno Haible  <bruno@clisp.org>
29366
29367         Add support for ACLs on OSF/1.
29368         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
29369         replacements.
29370         (acl_free_text): New macro fallback.
29371         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
29372         acl_free.
29373         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
29374         acl_free_text function. Require AC_C_INLINE.
29375
29376 2008-05-22  Bruno Haible  <bruno@clisp.org>
29377
29378         Make copy_acl work on MacOS X 10.5.
29379         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
29380         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
29381         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
29382         If MODE_INSIDE_ACL, don't assume that every system has the same text
29383         representation for ACLs as FreeBSD.
29384         * lib/copy-acl.c (copy_acl): Add support for platforms with
29385         !MODE_INSIDE_ACL.
29386         * lib/file-has-acl.c (file_has_acl): Likewise.
29387         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
29388         FreeBSD, MacOS X, or IRIX, respectively.
29389
29390 2008-05-22  Bruno Haible  <bruno@clisp.org>
29391
29392         * lib/acl.h: Don't include <sys/acl.h>.
29393         (GETACLCNT): Move fallback to lib/acl-internal.h.
29394         * lib/acl-internal.h: Include <sys/acl.h> here.
29395         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
29396
29397 2008-05-22  Bruno Haible  <bruno@clisp.org>
29398
29399         Split off copy_acl function to separate file.
29400         * lib/copy-acl.c: New file, extracted from lib/acl.c.
29401         * lib/acl.c (copy_acl): Moved function to separate file.
29402         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
29403         * modules/acl (Files): Add lib/copy-acl.c.
29404         (Makefiles.am): Augment lib_SOURCES.
29405
29406 2008-05-22  Bruno Haible  <bruno@clisp.org>
29407
29408         * modules/copy-file-tests: New file.
29409         * tests/test-copy-file.sh: New file.
29410         * tests/test-copy-file.c: New file.
29411         * tests/test-copy-file-sameacls.c: New file.
29412
29413 2008-05-22  Eric Blake  <ebb9@byu.net>
29414
29415         Avoid gcc warning.
29416         * tests/test-memcmp.c (main): Pass NULL indirectly.
29417
29418 2008-05-21  Bruno Haible  <bruno@clisp.org>
29419
29420         Add reference doc about ACLs.
29421         * doc/acl-resources.txt: New file.
29422         * doc/acl-cygwin.txt: New file.
29423
29424 2008-05-21  Bruno Haible  <bruno@clisp.org>
29425
29426         Avoid one more warning from gcc.
29427         * lib/vasnprintf.c (IF_LINT): Update comments.
29428         (VASNPRINTF): Use it also for the 'prefix' array initializer.
29429
29430 2008-05-21  Jim Meyering  <meyering@redhat.com>
29431
29432         avoid a warning from gcc
29433         * lib/vasnprintf.c (IF_LINT): Define.
29434         (scale10_round_decimal_long_double):
29435         Use it to avoid a "may be used uninitialized" warning.
29436         (scale10_round_decimal_double): Likewise.
29437
29438 2008-05-21  Simon Josefsson  <simon@josefsson.org>
29439
29440         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
29441         declared.
29442
29443 2008-05-20  Bruno Haible  <bruno@clisp.org>
29444
29445         * tests/test-memcmp.c (main): Test also the sign of the result. Test
29446         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
29447
29448 2008-05-20  Simon Josefsson  <simon@josefsson.org>
29449
29450         * modules/memcmp-tests: New file.
29451         * tests/test-memcmp.c: New file.
29452
29453 2008-05-19  Bruno Haible  <bruno@clisp.org>
29454
29455         * modules/propername (Notice, configure.ac): Put quoted "..." into
29456         --keyword option.
29457         * lib/propername.h: Update comments accordingly.
29458         Reported by Eric Blake.
29459
29460 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
29461
29462         * modules/getpass-gnu (Depends-on): Add fseeko.
29463
29464 2008-05-19  Simon Josefsson  <simon@josefsson.org>
29465
29466         * modules/base64-tests: New file.
29467
29468 2008-05-19  Bo Borgerson <gigabo@gmail.com>
29469
29470         * lib/base64.c (base64_decode_ctx): If a decode context structure
29471         was passed in use it to ignore newlines.  If a context structure
29472         was _not_ passed in, continue to treat newlines as garbage (this
29473         is the historical behavior).  Formerly base64_decode.
29474         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
29475         takes a decode context structure.
29476         * lib/base64.h (base64_decode): Macro for four-argument calls.
29477         (base64_decode_alloc): Likewise.
29478         * lib/base64.c (base64_decode_ctx): If a decode context structure
29479         was passed in use it to ignore newlines.  If a context structure
29480         was _not_ passed in, continue to treat newlines as garbage (this
29481         is the historical behavior).  Formerly base64_decode.
29482         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
29483         takes a decode context structure.
29484         * lib/base64.h (base64_decode): Macro for four-argument calls.
29485         (base64_decode_alloc): Likewise.
29486
29487 2008-05-19  Jim Meyering  <meyering@redhat.com>
29488
29489         avoid a warning from gcc
29490         * lib/trim.c (IF_LINT): Define.
29491         (trim2): Use it to avoid a "may be used uninitialized" warning.
29492
29493         Fix doc typo.
29494         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
29495
29496 2008-05-19  Bruno Haible  <bruno@clisp.org>
29497
29498         * doc/glibc-functions/getpass.texi: Document limits of other
29499         implementations.
29500
29501 2008-05-19  Simon Josefsson  <simon@josefsson.org>
29502             Bruno Haible <bruno@clisp.org>
29503
29504         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
29505
29506 2008-05-18  Bruno Haible  <bruno@clisp.org>
29507
29508         * modules/propername: New file, from GNU gettext.
29509         * lib/propername.h: New file, from GNU gettext.
29510         * lib/propername.c: New file, from GNU gettext.
29511         * MODULES.html.sh (Internationalization functions): Add propername.
29512
29513 2008-05-16  Jim Meyering  <meyering@redhat.com>
29514             Bruno Haible  <bruno@clisp.org>
29515
29516         Avoid some warnings from "gcc -Wshadow".
29517         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
29518
29519 2008-05-15  Eric Blake  <ebb9@byu.net>
29520
29521         Extend previous patch to cygwin 1.7.0.
29522         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
29523         fast implementation in cygwin >= 1.7.0.
29524         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
29525         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29526
29527 2008-05-15  Bruno Haible  <bruno@clisp.org>
29528
29529         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
29530         implementation in glibc >= 2.9.
29531         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
29532         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29533
29534 2008-05-15  Bruno Haible  <bruno@clisp.org>
29535
29536         * MODULES.html.sh (Internationalization functions): Remove linebreak.
29537         (Unicode string functions): Add unilbrk/*.
29538         Reported by Karl Berry.
29539
29540 2008-05-15  Eric Blake  <ebb9@byu.net>
29541
29542         Fix violation of <stdbool.h> replacement in regex.
29543         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
29544         * lib/regexec.c (re_search_internal): Likewise.
29545         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
29546
29547 2008-05-15  Jim Meyering  <meyering@redhat.com>
29548
29549         avoid distracting test output when git or cvs is not found
29550         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
29551         * tests/test-vc-list-files-git.sh: Likewise.
29552
29553 2008-05-15  Eric Blake  <ebb9@byu.net>
29554
29555         Glibc finally accepted the memmem speedup code, bugzilla #5514.
29556         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
29557         glibc version.
29558         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
29559         * doc/posix-functions/strstr.texi (strstr): Likewise.
29560         * lib/str-two-way.h (MAX): Sychronize with glibc.
29561
29562 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
29563
29564         * lib/regcomp.c (optimize_utf8): Add a note on why we test
29565         opr.ctx_type.
29566         (calc_first): Initialize constraint field.
29567         (duplicate_node_closure): Use it instead of special casing ANCHORS.
29568         Fix grammar.
29569         (duplicate_node): Merge constraint field for all node types.
29570         (calc_eclosure_iter): Look at constraint field for all node types.
29571         * lib/regex_internal.c (create_cd_newstate): Don't look at
29572         opr.ctx_type.
29573
29574 2008-05-14  Bruno Haible  <bruno@clisp.org>
29575
29576         Help GCC to do better code generation.
29577         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
29578         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
29579         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
29580         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
29581         Declare with attribute 'malloc' if supported.
29582
29583 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
29584
29585         use "echo STR|wc -c" rather than unportable "expr length STR"
29586         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
29587         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
29588
29589 2008-05-14  Jim Meyering  <meyering@redhat.com>
29590
29591         use dd ibs=$n count=1 ... rather than less-portable head -c$n
29592         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
29593         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
29594         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
29595         via Collin Lasse.
29596
29597 2008-05-14  Eric Blake  <ebb9@byu.net>
29598
29599         Avoid quadratic growth in gl_LIBSOURCES.
29600         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
29601         Suggested by Bruno Haible.
29602
29603         Test xmemdup0.
29604         * modules/xmemdup0-tests: New file.
29605         * tests/test-xmemdup0.c: Likewise.
29606
29607 2008-05-13  Eric Blake  <ebb9@byu.net>
29608
29609         Split xmemdup0 into its own module.
29610         * modules/xmemdup0: New file.
29611         * lib/xmemdup0.h: Likewise.
29612         * lib/xmemdup0.c: Likewise.
29613         * MODULES.html.sh (Memory management functions): Add xmemdup0.
29614         * lib/xalloc.h (xmemdup0): Remove.
29615         * lib/xmalloc.c (xmemdup0): Likewise.
29616
29617 2008-05-13  Eric Blake  <ebb9@byu.net>
29618             Bruno Haible  <bruno@clisp.org>
29619
29620         Reduce number of forks required during autoconf.
29621         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
29622         and gl_LIBSOURCES_DIR.
29623         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
29624         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
29625         m4_syscmd per file.
29626         <m4_foreach_w>: Move...
29627         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
29628
29629 2008-05-13  Eric Blake  <ebb9@byu.net>
29630
29631         * gnulib-tool: Fix various comment typos.
29632
29633 2008-05-12  Bruno Haible  <bruno@clisp.org>
29634
29635         Tailor the linebreaking algorithm.
29636         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
29637
29638 2008-05-12  Bruno Haible  <bruno@clisp.org>
29639
29640         Update to Unicode 5.0.0.
29641         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
29642         LBP_JV, LBP_JT. Redistribute values.
29643         (unilbrk_table): Change size.
29644         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
29645         Unicode TR#14 rev. 22.
29646         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
29647         LBP_JV, LBP_JT. Redistribute values.
29648         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
29649         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
29650         Update.
29651         * lib/unilbrk/lbrkprop1.h: Regenerated.
29652         * lib/unilbrk/lbrkprop2.h: Regenerated.
29653         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
29654         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
29655         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
29656         Likewise.
29657         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
29658         Likewise.
29659         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
29660         result.
29661         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
29662         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
29663         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
29664         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
29665         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
29666         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
29667
29668 2008-05-11  Bruno Haible  <bruno@clisp.org>
29669
29670         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
29671
29672 2008-05-11  Bruno Haible  <bruno@clisp.org>
29673
29674         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
29675         * modules/unilbrk/gen-lbrk: New file.
29676
29677 2008-05-11  Bruno Haible  <bruno@clisp.org>
29678
29679         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
29680         * m4/sha512.m4 (gl_SHA512): Likewise.
29681
29682 2008-05-11  Jim Meyering  <meyering@redhat.com>
29683
29684         New modules: crypto/sha256, crypto/sha512 (from coreutils)
29685         * modules/crypto/sha256: New file.
29686         * modules/crypto/sha512: Likewise.
29687         * lib/sha256.c: Likewise.
29688         * lib/sha256.h: Likewise.
29689         * lib/sha512.c: Likewise.
29690         * lib/sha512.h: Likewise.
29691         * lib/u64.h: Likewise.
29692         * m4/sha256.m4: Likewise.
29693         * m4/sha512.m4: Likewise.
29694         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
29695
29696 2008-05-10  Bruno Haible  <bruno@clisp.org>
29697
29698         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
29699         (Input/Output <stdio.h>): Add xprintf.
29700         (Signal handling <signal.h>): Add strsignal.
29701         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
29702         (Core language properties): Add func.
29703         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
29704         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
29705         strings.
29706         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
29707         (Input/output): New section.
29708         (File system functions): Add openat-die, stat-macros.
29709         (Networking functions): Add sockets.
29710         (Unicode string functions): Add unictype/*.
29711         (Support for building libraries and executables): Add gperf.
29712         (Support for building documentation): Add agpl-3.0.
29713         (Misc): Add nocrash.
29714
29715 2008-05-10  Bruno Haible  <bruno@clisp.org>
29716
29717         * modules/unictype/gen-ctype: New file.
29718
29719 2008-05-10  Jim Meyering  <meyering@redhat.com>
29720
29721         Make chdir-safer.c more efficient on a system with no symlinks.
29722         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
29723         also if ELOOP is zero.  Suggested by Bruno Haible.
29724
29725         Make chdir-safer.c slightly safer.
29726         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
29727         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
29728
29729         Avoid compile failure on systems without ELOOP (like mingw).
29730         * lib/chdir-safer.c (ELOOP): Define if not already defined.
29731         Reported by Bruno Haible.
29732
29733 2008-05-10  Bruno Haible  <bruno@clisp.org>
29734
29735         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
29736         (is_utf8_encoding): Use a case-insensitive comparison.
29737         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
29738         streq.
29739
29740 2008-05-10  Bruno Haible  <bruno@clisp.org>
29741
29742         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
29743         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
29744         * lib/unilbrk/ulc-common.h (iconv_string_length,
29745         iconv_string_keeping_offsets): Remove declarations.
29746         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
29747         Don't include <iconv.h>, streq.h, xsize.h.
29748         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
29749         conversion.
29750         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
29751         <iconv.h>, streq.h, xsize.h.
29752         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
29753         conversion.
29754         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
29755         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
29756         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
29757         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
29758
29759 2008-05-10  Bruno Haible  <bruno@clisp.org>
29760
29761         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
29762         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
29763
29764         * modules/unilbrk/u32-width-linebreaks-tests: New file.
29765         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
29766
29767         * modules/unilbrk/u16-width-linebreaks-tests: New file.
29768         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
29769
29770         * modules/unilbrk/u8-width-linebreaks-tests: New file.
29771         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
29772
29773         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
29774         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
29775
29776         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
29777         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
29778
29779         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
29780         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
29781
29782         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
29783         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
29784
29785 2008-05-10  Bruno Haible  <bruno@clisp.org>
29786
29787         Split up 'linebreak' module.
29788         * lib/unilbrk.h: New file, based on lib/linebreak.h.
29789         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
29790         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
29791         modifications.
29792         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
29793         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
29794         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
29795         lib/linebreak.c.
29796         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
29797         lib/linebreak.c.
29798         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
29799         lib/linebreak.c.
29800         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
29801         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
29802         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
29803         lib/linebreak.c.
29804         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
29805         lib/linebreak.c.
29806         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
29807         lib/linebreak.c.
29808         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
29809         lib/linebreak.c.
29810         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
29811         lib/linebreak.c.
29812         * modules/unilbrk/base: New file.
29813         * modules/unilbrk/tables: New file.
29814         * modules/unilbrk/u8-possible-linebreaks: New file.
29815         * modules/unilbrk/u16-possible-linebreaks: New file.
29816         * modules/unilbrk/u32-possible-linebreaks: New file.
29817         * modules/unilbrk/ulc-common: New file.
29818         * modules/unilbrk/ulc-possible-linebreaks: New file.
29819         * modules/unilbrk/u8-width-linebreaks: New file.
29820         * modules/unilbrk/u16-width-linebreaks: New file.
29821         * modules/unilbrk/u32-width-linebreaks: New file.
29822         * modules/unilbrk/ulc-width-linebreaks: New file.
29823         * lib/linebreak.h: Remove file.
29824         * lib/linebreak.c: Remove file.
29825         * m4/linebreak.m4: Remove file.
29826         * modules/linebreak: Remove file.
29827         * NEWS: Mention the changes.
29828
29829 2008-05-09  Eric Blake  <ebb9@byu.net>
29830
29831         Add xmemdup0.
29832         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
29833         implementation.
29834         * lib/xmalloc.c (xmemdup0): New C implementation.
29835
29836 2008-05-08  Bruno Haible  <bruno@clisp.org>
29837
29838         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
29839
29840 2008-05-07  Eric Blake  <ebb9@byu.net>
29841
29842         Support cross-compilation of <wctype.h>.
29843         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
29844         AC_CACHE_CHECK.
29845
29846 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
29847
29848         * build-aux/vc-list-files: Add support for bzr.
29849
29850 2008-05-03  Jim Meyering  <meyering@redhat.com>
29851
29852         avoid failed assertion with tight malloc
29853         * tests/test-getndelim2.c: Correct an off-by-one assertion.
29854
29855 2008-05-03  Simon Josefsson  <simon@josefsson.org>
29856
29857         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
29858         are needed from arpa/inet.h.
29859         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
29860         Reported by Bruno Haible.
29861
29862 2008-05-02  Jim Meyering  <meyering@redhat.com>
29863
29864         avoid compilation error on FreeBSD 6
29865         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
29866
29867 2008-05-01  Jim Meyering  <meyering@redhat.com>
29868
29869         useless-if-before-free: correct --help's exit status description
29870         * build-aux/useless-if-before-free (usage): Like grep, exit 0
29871         for one or more matches, etc.  Reported by Bruno Haible.
29872
29873         vc-list-files: make the stand-alone gnulib test work
29874         * modules/vc-list-files-tests (configure.ac):
29875         Define and AC_SUBST abs_aux_dir.
29876         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
29877         $(abs_top_srcdir) to each script and having each of them
29878         duplicate the work of setting PATH, set PATH here, using
29879         the new variable, abs_aux_dir instead.
29880         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
29881         * tests/test-vc-list-files-git.sh: Likewise.
29882         Reported by Bruno Haible.
29883
29884 2008-05-01  Bruno Haible  <bruno@clisp.org>
29885
29886         * lib/getndelim2.c (getndelim2): Fix newsize computation during
29887         reallocation. Rename 'done' to 'found_delimiter'.
29888
29889 2008-05-01  Jim Meyering  <meyering@redhat.com>
29890
29891         vc-list-files: accommodate /bin/sh like the one from Solaris 10
29892         * build-aux/vc-list-files: Use `...`, not $(...).
29893
29894 2008-04-30  Jim Meyering  <meyering@redhat.com>
29895
29896         add tests for vc-list-files
29897         * modules/vc-list-files-tests: New module.
29898         * tests/test-vc-list-files-cvs.sh: New file.
29899         * tests/test-vc-list-files-git.sh: New file.
29900
29901         avoid a warning from gcc
29902         * lib/getndelim2.c (IF_LINT): Define.
29903         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
29904
29905         vc-list-files: work properly with build-aux/cvsu, too
29906         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
29907         to all cvs-based clauses.
29908
29909         vc-list-files: work properly in the CVS+awk case, too
29910         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
29911
29912         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
29913         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
29914         take more than one file argument, so .  Add quotes, just in case $dir
29915         ever contains a shell meta-character.  Prompted by Soren Hansen in
29916         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
29917
29918 2008-04-29  Eric Blake  <ebb9@byu.net>
29919
29920         Optimize getndelim2 to use block operations when possible.
29921         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
29922         freadseek, and memchr2.
29923         * lib/getndelim2.c (getndelim2): Use them for block reads.
29924
29925 2008-04-29  Bruno Haible  <bruno@clisp.org>
29926
29927         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
29928         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29929         * modules/inet_ntop (Depends-on): Add extensions.
29930         * modules/inet_pton (Depends-on): Likewise.
29931         Reported by Simon Josefsson.
29932
29933 2008-04-29  Jim Meyering  <meyering@redhat.com>
29934
29935         When the is more than one match in a block, match all of them.
29936         * build-aux/useless-if-before-free: Iterate through each block
29937         until there are no more matches.
29938
29939         Fix broken useless-if-before-free script.
29940         * build-aux/useless-if-before-free: Fix typo: missing "?" after
29941         the expression to match cast of argument to free-like function.
29942
29943 2008-04-29  Eric Blake  <ebb9@byu.net>
29944
29945         Use new header.
29946         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
29947
29948 2008-04-29  Jim Meyering  <meyering@redhat.com>
29949
29950         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
29951         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
29952         by gnulib to exist and to declare e.g., inet_ntop.
29953         Don't include "inet_ntop.h", now removed.
29954
29955         * m4/arpa_inet_h.m4: Remove trailing blanks.
29956
29957 2008-04-29  Eric Blake  <ebb9@byu.net>
29958
29959         Silence valgrind on safe reads beyond potential array bounds.
29960         * lib/rawmemchr.valgrind: New file.
29961         * lib/strchrnul.valgrind: Likewise.
29962         * modules/rawmemchr (Files): Distribute new file.
29963         * modules/strchrnul (Files): Likewise.
29964         Suggested by Bruno Haible.
29965
29966 2008-04-29  Bruno Haible  <bruno@clisp.org>
29967
29968         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
29969         (inet_ntop, inet_pton): Change portability warning's wording.
29970         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
29971         Invoke gl_CHECK_NEXT_HEADERS.
29972         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
29973         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
29974         set ARPA_INET_H.
29975         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29976         * modules/arpa_inet (Description): No longer only for systems that
29977         lack it.
29978         (Depends-on): Add include_next.
29979         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
29980         HAVE_ARPA_INET_H.
29981
29982 2008-04-29  Jim Meyering  <meyering@redhat.com>
29983
29984         * modules/mkdir (License): Re-license as LGPLv2+.
29985
29986 2008-04-29  Bruno Haible  <bruno@clisp.org>
29987
29988         * modules/rawmemchr (Maintainer): Set to Eric.
29989         * modules/strchrnul (Maintainer): Likewise.
29990
29991 2008-04-29  Simon Josefsson  <simon@josefsson.org>
29992
29993         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
29994         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
29995
29996         * modules/arpa_inet (arpa/inet.h): Use them.
29997
29998 2008-04-28  Eric Blake  <ebb9@byu.net>
29999
30000         Test getndelim2.
30001         * modules/getndelim2-tests: New file.
30002         * tests/test-getndelim2.c: Likewise.
30003         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
30004         stream.
30005         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
30006
30007         * MODULES.html.sh: Document new module.
30008
30009 2008-04-20  Bruno Haible  <bruno@clisp.org>
30010
30011         * lib/c-stack.c (die): Use raise.
30012         * modules/c-stack (Depends-on): Add raise.
30013
30014 2008-04-28  Bruno Haible  <bruno@clisp.org>
30015
30016         Expect rpmatch to be declared.
30017         * lib/yesno.c (rpmatch): Remove declaration.
30018
30019         Declare rpmatch.
30020         * lib/stdlib.in.h (rpmatch): New declaration.
30021         * lib/rpmatch.c: Include <stdlib.h> first.
30022         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
30023         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
30024         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
30025         HAVE_RPMATCH.
30026         * modules/rpmatch (Depends-on): Add stdlib, extensions.
30027         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
30028         (Include): Set to <stdlib.h>.
30029         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
30030         HAVE_RPMATCH.
30031         * NEWS: Document the change.
30032
30033 2008-04-28  Bruno Haible  <bruno@clisp.org>
30034
30035         Change rpmatch to use nl_langinfo when appropriate.
30036         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
30037         (N_): New macro.
30038         (localized_pattern): New function/macro.
30039         (try): Remove match, nomatch arguments. Copy the pattern into safe
30040         memory before caching it.
30041         (rpmatch): Use localized_pattern. Add translator comments.
30042         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
30043         Suggested by Eric Blake.
30044         * modules/rpmatch (Depends-on): Add stdbool.
30045
30046 2008-04-28  Eric Blake  <ebb9@byu.net>
30047
30048         Add rawmemchr module, matching glibc.
30049         * modules/string (Makefile.am): New indicator.
30050         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
30051         * lib/string.in.h (rawmemchr): Declare when appropriate.
30052         * modules/rawmemchr: New file.
30053         * m4/rawmemchr.m4: Likewise.
30054         * lib/rawmemchr.c: Likewise.
30055         * modules/rawmemchr-tests: Likewise.
30056         * tests/test-rawmemchr.c: Likewise.
30057         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
30058         module.
30059         * modules/strchrnul (Depends-on): Add rawmemchr.
30060         * lib/strchrnul.c (strchrnul): Optimize a corner case.
30061
30062         Whitespace cleanup.
30063         * tests/test-strchrnul.c: Reindent.
30064         * lib/strchrnul.c: Likewise.
30065
30066         Optimize and test strchrnul.
30067         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
30068         * modules/strchrnul-tests: New file.
30069         * tests/test-strchrnul.c: Likewise.
30070
30071         Remove intprops dependency.
30072         * modules/memchr (Depends-on): Remove intprops.
30073         * modules/memrchr (Depends-on): Likewise.
30074         * modules/memchr2 (Depends-on): Likewise.
30075         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
30076         * lib/memrchr.c (__memrchr): Likewise.
30077         * lib/memrchr2.c (memchr2): Likewise.
30078         Reported by Simon Josefsson.
30079
30080 2008-04-28  Simon Josefsson  <simon@josefsson.org>
30081
30082         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
30083         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30084
30085 2008-04-28  Simon Josefsson  <simon@josefsson.org>
30086
30087         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
30088
30089         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
30090
30091         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
30092
30093         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
30094         declarations.
30095         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
30096
30097         * m4/inet_pton.m4: Don't check for header files.
30098
30099         * m4/inet_ntop.m4: Don't check for header files.
30100
30101 2008-04-28  Simon Josefsson  <simon@josefsson.org>
30102
30103         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
30104         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
30105         trigger for cygwin).
30106         Reported by Bruno Haible  <bruno@clisp.org>.
30107
30108 2008-04-28  Bruno Haible  <bruno@clisp.org>
30109
30110         * doc/posix-functions/strdup.texi: Mention mingw problem.
30111
30112 2008-04-27  Bruno Haible  <bruno@clisp.org>
30113
30114         * modules/stat-time-tests (Depends-on): Add sleep.
30115         * tests/test-stat-time.c (force_unlink): New function.
30116         (cleanup): Use it.
30117         (test_mtime): Remove the ctime related tests.
30118         (test_ctime): New function, containing the ctime related tests.
30119         (main): Call test_ctime, except on native Windows platforms.
30120
30121 2008-04-27  Bruno Haible  <bruno@clisp.org>
30122
30123         * lib/rpmatch.c (rpmatch): Add some comments.
30124         Reported by James Youngman <jay@gnu.org>.
30125
30126 2008-04-27  Bruno Haible  <bruno@clisp.org>
30127
30128         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
30129         quiet NaNs.
30130
30131 2008-04-27  Bruno Haible  <bruno@clisp.org>
30132
30133         Make test-yesno.sh work on mingw.
30134         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
30135         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
30136         (main): Set stdin to binary mode.
30137         * modules/yesno-tests (Depends-on): Add binary-io.
30138
30139 2008-04-27  Bruno Haible  <bruno@clisp.org>
30140
30141         Fix 'isfinite' on x86, x86_64, ia64 platforms.
30142         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
30143         argument that lie outside the IEEE 854 domain.
30144         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
30145         (gl_ISFINITE): Use it.
30146         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
30147
30148 2008-04-27  Bruno Haible  <bruno@clisp.org>
30149
30150         Allow local renaming in config.h.
30151         * lib/memrchr.c (memrchr): Don't undefine outside libc.
30152
30153 2008-04-27  Bruno Haible  <bruno@clisp.org>
30154
30155         * lib/memchr.c (__memchr): Change type of 'i'.
30156         * lib/memchr2.c (memchr2): Likewise.
30157
30158 2008-04-26  Eric Blake  <ebb9@byu.net>
30159         and Bruno Haible  <bruno@clisp.org>
30160
30161         Optimize and test memrchr.
30162         * modules/memrchr (Depends-on): Add intprops.
30163         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
30164         * modules/memrchr-tests: New file.
30165         * tests/test-memrchr.c: New file.
30166
30167 2008-04-26  Bruno Haible  <bruno@clisp.org>
30168
30169         Add tentative support for DragonFly BSD.
30170         * lib/stdio-impl.h: Add macros for DragonFly BSD.
30171         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
30172         fp.
30173         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
30174         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
30175         * lib/fpurge.c (fpurge): Likewise.
30176         * lib/freadable.c (freaadable): Likewise.
30177         * lib/freadahead.c (freadahead): Likewise.
30178         * lib/freading.c (freading): Likewise.
30179         * lib/freadptr.c (freadptr): Likewise.
30180         * lib/freadseek.c (freadptrinc): Likewise.
30181         * lib/fseeko.c (fseeko): Likewise.
30182         * lib/fseterr.c (fseterr): Likewise.
30183         * lib/fwritable.c (fwritable): Likewise.
30184         * lib/fwriting.c (fwriting): Likewise.
30185
30186 2008-04-26  Bruno Haible  <bruno@clisp.org>
30187
30188         * lib/stdio-impl.h: New file.
30189         * lib/fbufmode.c: Include stdio-impl.h.
30190         (fbufmode): Use fp_, remove redundant #defines.
30191         * lib/fflush.c: Include stdio-impl.h.
30192         (clear_ungetc_buffer): Remove redundant #defines.
30193         * lib/fpurge.c: Include stdio-impl.h.
30194         (fpurge): Remove redundant #defines.
30195         * lib/freadable.c: Include stdio-impl.h.
30196         (freadable): Remove redundant #defines.
30197         * lib/freadahead.c: Include stdio-impl.h.
30198         (freadahead): Remove redundant #defines.
30199         * lib/freading.c: Include stdio-impl.h.
30200         (freading): Remove redundant #defines.
30201         * lib/freadptr.c: Include stdio-impl.h.
30202         (freadptr): Remove redundant #defines.
30203         * lib/freadseek.c: Include stdio-impl.h.
30204         (freadptrinc): Remove redundant #defines.
30205         * lib/fseeko.c: Include stdio-impl.h.
30206         (rpl_fseeko): Remove redundant #defines.
30207         * lib/fseterr.c: Include stdio-impl.h.
30208         (fseterr): Remove redundant #defines.
30209         * lib/fwritable.c: Include stdio-impl.h.
30210         (fwritable: Remove redundant #defines.
30211         * lib/fwriting.c: Include stdio-impl.h.
30212         (fwriting): Remove redundant #defines.
30213         * modules/fbufmode (Files): Add lib/stdio-impl.h.
30214         * modules/fflush (Files): Likewise.
30215         * modules/fpurge (Files): Likewise.
30216         * modules/freadable (Files): Likewise.
30217         * modules/freadahead (Files): Likewise.
30218         * modules/freading (Files): Likewise.
30219         * modules/freadptr (Files): Likewise.
30220         * modules/freadseek (Files): Likewise.
30221         * modules/fseeko (Files): Likewise.
30222         * modules/fseterr (Files): Likewise.
30223         * modules/fwritable (Files): Likewise.
30224         * modules/fwriting (Files): Likewise.
30225
30226 2008-04-26  Bruno Haible  <bruno@clisp.org>
30227
30228         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
30229         restore_seek_optimization, update_fpos_cache): New functions, extracted
30230         from rpl_fflush.
30231         (rpl_fflush): Use them.
30232         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
30233         (gl_REPLACE_FFLUSH): Use it.
30234
30235 2008-04-26  Bruno Haible  <bruno@clisp.org>
30236
30237         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
30238         on Solaris.
30239         * tests/test-xstrtoimax.sh: Likewise.
30240         * tests/test-xstrtoumax.sh: Likewise.
30241         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30242
30243 2008-04-26  Bruno Haible  <bruno@clisp.org>
30244
30245         * modules/memchr-tests: New file.
30246         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
30247
30248 2008-04-26  Eric Blake  <ebb9@byu.net>
30249             Bruno Haible  <bruno@clisp.org>
30250
30251         * lib/memchr.c: Include intprops.h.
30252         (__memchr): Optimize parallel detection of matching bytes. Rename local
30253         variables. Add explanatory comments.
30254
30255 2008-04-26  Bruno Haible  <bruno@clisp.org>
30256
30257         Fix module 'memchr', broken since 2000-10-28.
30258         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
30259
30260 2008-04-26  Bruno Haible  <bruno@clisp.org>
30261
30262         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
30263         comments.
30264
30265 2008-04-25  Eric Blake  <ebb9@byu.net>
30266
30267         Use native fstatat on cygwin 1.7.0.
30268         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
30269         first.
30270
30271 2008-04-23  Eric Blake  <ebb9@byu.net>
30272
30273         Improve memchr2 performance.
30274         * lib/memchr2.c (memchr2): Further optimize parallel detection of
30275         NUL bytes.
30276         * modules/memchr2 (Depends-on): Use intprops.h.
30277
30278 2008-04-23  Simon Josefsson  <simon@josefsson.org>
30279
30280         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
30281         an inline function instead of a CPP macro.  Patch by Ben Pfaff
30282         <blp@cs.stanford.edu>.
30283
30284 2008-04-23  Simon Josefsson  <simon@josefsson.org>
30285
30286         * lib/arpa_inet.in.h: New file.
30287
30288         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
30289         (Makefile.am): Sed in substitute header file.
30290
30291         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
30292         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
30293
30294         * modules/inet_ntop (configure.ac): Use
30295         gl_ARPA_INET_MODULE_INDICATOR.
30296
30297         * modules/inet_pton (configure.ac): Use
30298         gl_ARPA_INET_MODULE_INDICATOR.
30299
30300 2008-04-22  Jim Meyering  <meyering@redhat.com>
30301
30302         * modules/verify (License): Re-license as LGPLv2+.
30303
30304 2008-04-22  Simon Josefsson  <simon@josefsson.org>
30305
30306         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
30307         parameter to void* as per POSIX standard (MinGW uses char*).
30308
30309 2008-04-21  Bruno Haible  <bruno@clisp.org>
30310
30311         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
30312         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
30313         Define to replacements if REPLACE_ISWCNTRL is 1.
30314         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
30315         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
30316         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
30317         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
30318         what it fixes.
30319         * doc/posix-functions/iswalpha.texi: Likewise.
30320         * doc/posix-functions/iswblank.texi: Likewise.
30321         * doc/posix-functions/iswcntrl.texi: Likewise.
30322         * doc/posix-functions/iswdigit.texi: Likewise.
30323         * doc/posix-functions/iswgraph.texi: Likewise.
30324         * doc/posix-functions/iswlower.texi: Likewise.
30325         * doc/posix-functions/iswprint.texi: Likewise.
30326         * doc/posix-functions/iswpunct.texi: Likewise.
30327         * doc/posix-functions/iswspace.texi: Likewise.
30328         * doc/posix-functions/iswupper.texi: Likewise.
30329         * doc/posix-functions/iswxdigit.texi: Likewise.
30330         Reported by Alain Guibert.
30331
30332 2008-04-21  Bruno Haible  <bruno@clisp.org>
30333
30334         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
30335         Patch by Alain Guibert.
30336
30337 2008-04-21  Bruno Haible  <bruno@clisp.org>
30338
30339         Fix test failures on mingw.
30340         * tests/test-xstrtol.c (print_no_progname): New function.
30341         (main): Install it in error_print_progname hook.
30342         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
30343         * tests/test-xstrtoimax.sh: Likewise.
30344         * tests/test-xstrtoumax.sh: Likewise.
30345
30346 2008-04-21  Bruno Haible  <bruno@clisp.org>
30347
30348         Fix test failure on mingw.
30349         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
30350
30351 2008-04-21  Bruno Haible  <bruno@clisp.org>
30352
30353         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
30354         Actually assign a value.
30355
30356 2008-04-20  Bruno Haible  <bruno@clisp.org>
30357
30358         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
30359         take 2.
30360         * lib/canonicalize.c (canonicalize_file_name): Elide if the
30361         'canonicalize-lgpl' module is also used.
30362         * lib/canonicalize-lgpl.c: Undo last change.
30363         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
30364
30365 2008-04-20  Bruno Haible  <bruno@clisp.org>
30366
30367         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
30368         config.h. Provide _mkdir based fallback for mingw.
30369         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
30370         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
30371         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
30372         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
30373         rather than defining mkdir in config.h.
30374         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
30375         (gl_SYS_STAT_H_DEFAULTS): New macro.
30376         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
30377         HAVE_IO_H any more.
30378         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
30379         HAVE_DECL_MKDIR and HAVE_IO_H.
30380
30381 2008-04-20  Bruno Haible  <bruno@clisp.org>
30382
30383         * lib/isapipe.c: Port to native Windows platforms.
30384
30385 2008-04-20  Bruno Haible  <bruno@clisp.org>
30386
30387         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
30388
30389 2008-04-21  Eric Blake  <ebb9@byu.net>
30390
30391         Work around preprocessors that don't handle UINTMAX_MAX.
30392         * lib/memchr2.c (memchr2): Avoid embedded #if.
30393         Reported by Alain Guibert, fix suggested by Bruno Haible.
30394
30395 2008-04-21  Simon Josefsson  <simon@josefsson.org>
30396
30397         * doc/posix-functions/strftime.texi (strftime): Explain better
30398         Windows incompatibility.  Suggested by Micah Cowan
30399         <micah@cowan.name>.
30400
30401 2008-04-20  Bruno Haible  <bruno@clisp.org>
30402
30403         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
30404         unistr/u8-mblen.
30405
30406 2008-04-20  Bruno Haible  <bruno@clisp.org>
30407
30408         Fix test failure on platforms with non-GNU iconv.
30409         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
30410         (U_TO_U8): Use it, rather than u16_to_u8.
30411         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
30412         units at the end of the input string.
30413         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
30414
30415 2008-04-20  Bruno Haible  <bruno@clisp.org>
30416
30417         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
30418         when the resulting length is 0.
30419         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
30420
30421 2008-04-20  Bruno Haible  <bruno@clisp.org>
30422
30423         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
30424         works.
30425         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
30426
30427 2008-04-20  Bruno Haible  <bruno@clisp.org>
30428
30429         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
30430         * modules/tsearch-tests (configure.ac): Test for initstate function.
30431
30432 2008-04-20  Bruno Haible  <bruno@clisp.org>
30433
30434         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
30435         for nlink_t if missing.
30436         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
30437
30438 2008-04-19  Bruno Haible  <bruno@clisp.org>
30439
30440         Work around snprintf bug on Linux libc5.
30441         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
30442         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
30443         gl_SNPRINTF_SIZE1.
30444         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30445         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
30446         that test failed.
30447         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
30448         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
30449         * modules/snprintf (Files): Add m4/printf.m4.
30450         * modules/vsnprintf (Files): Likewise.
30451         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
30452         * doc/posix-functions/vsnprintf.texi: Likewise.
30453
30454 2008-04-19  Bruno Haible  <bruno@clisp.org>
30455
30456         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
30457         from 0.0058 to less than 10^-7.
30458
30459 2008-04-19  Bruno Haible  <bruno@clisp.org>
30460
30461         Fix rounding when a precision is given.
30462         * lib/vasnprintf.c (is_borderline): New function.
30463         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
30464         9...9x.
30465         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
30466         %e, %g.
30467         * tests/test-vasprintf-posix.c (test_function): Likewise.
30468         * tests/test-snprintf-posix.h (test_function): Likewise.
30469         * tests/test-sprintf-posix.h (test_function): Likewise.
30470         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
30471         * tests/test-printf-posix.h (test_function): Likewise.
30472         * tests/test-printf-posix.output: Update.
30473         Reported by John Darrington <john@darrington.wattle.id.au> via
30474         Ben Pfaff <blp@cs.stanford.edu>.
30475
30476 2008-04-18  Simon Josefsson  <simon@josefsson.org>
30477
30478         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
30479         Suggested by Bruno Haible <bruno@clisp.org>.
30480
30481 2008-04-17  Bruno Haible  <bruno@clisp.org>
30482
30483         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
30484         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
30485         implementation.
30486         Patch by Bruce Merry <bmerry@gmail.com>.
30487
30488 2008-04-17  Simon Josefsson  <simon@josefsson.org>
30489
30490         * doc/posix-functions/strftime.texi (strftime): Mention that %e
30491         doesn't work under Windows.
30492
30493 2008-04-16  Bruno Haible  <bruno@clisp.org>
30494
30495         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
30496         New macros.
30497         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
30498         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
30499         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
30500         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
30501         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
30502         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
30503         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
30504         macros.
30505         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
30506         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
30507         Northern Sotho, Uighur.
30508
30509 2008-04-16  Bruno Haible  <bruno@clisp.org>
30510
30511         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
30512         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
30513         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
30514         Reported by Daniel Bergström <daniel@octocode.com>.
30515
30516 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
30517             Bruno Haible  <bruno@clisp.org>
30518
30519         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
30520         function.
30521         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
30522         New functions, mostly extracted from gl_locale_name_default.
30523         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
30524
30525 2008-04-16  Eric Blake  <ebb9@byu.net>
30526
30527         Adjust strtod detection to catch glibc 2.7 bug.
30528         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
30529         Reported by John Gatewood Ham.
30530
30531 2008-04-16  Bruno Haible  <bruno@clisp.org>
30532
30533         Add tentative support for Linux libc5.
30534         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
30535         * lib/fpurge.c (fpurge): Likewise.
30536         * lib/freadable.c (freadable): Likewise.
30537         * lib/freadahead.c (freadahead): Likewise.
30538         * lib/freading.c (freading): Likewise.
30539         * lib/freadptr.c (freadptr): Likewise.
30540         * lib/freadseek.c (freadptrinc): Likewise.
30541         * lib/fseeko.c (rpl_fseeko): Likewise.
30542         * lib/fseterr.c (fseterr): Likewise.
30543         * lib/fwritable.c (fwritable): Likewise.
30544         * lib/fwriting.c (fwriting): Likewise.
30545         Reported by Alain Guibert <alguibert+bts@free.fr>.
30546
30547 2008-04-15  Bruno Haible  <bruno@clisp.org>
30548
30549         * modules/mathl (configure.ac): Define module indicator.
30550
30551 2008-04-15  Bruno Haible  <bruno@clisp.org>
30552
30553         * lib/logl.c (logl): Remove unused variables.
30554
30555 2008-04-15  Bruno Haible  <bruno@clisp.org>
30556
30557         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
30558         fails.
30559
30560 2008-04-15  Bruno Haible  <bruno@clisp.org>
30561
30562         * lib/trim.c (trim2): Fix argument of isspace() macro.
30563
30564 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
30565
30566         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
30567         to 0.
30568         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
30569
30570 2008-04-14  Bruno Haible  <bruno@clisp.org>
30571
30572         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
30573         AC_LANG_PROGRAM argument.
30574         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
30575         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
30576         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
30577         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
30578         * m4/math_h.m4 (gl_MATH_H): Likewise.
30579         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
30580         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30581         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
30582         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
30583         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
30584         * m4/regex.m4 (gl_REGEX): Likewise.
30585         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
30586         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
30587         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30588         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
30589         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
30590         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
30591         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30592         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
30593
30594 2008-04-14  Jim Meyering  <meyering@redhat.com>
30595
30596         test-strtod: fix typos: s/abs/fabs/
30597         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
30598
30599 2008-04-13  Bruno Haible  <bruno@clisp.org>
30600
30601         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
30602         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
30603         module is also used and while not building the reloc-wrapper.
30604
30605 2008-04-13  Bruno Haible  <bruno@clisp.org>
30606
30607         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
30608
30609 2008-04-13  Bruno Haible  <bruno@clisp.org>
30610
30611         Fix AIX compilation failure introduced on 2008-04-02.
30612         * tests/test-frexp.c (exp): Undefine before redefining.
30613         * tests/test-frexpl.c (exp): Likewise.
30614
30615 2008-04-13  Bruno Haible  <bruno@clisp.org>
30616
30617         Work around a HP-UX stdio bug.
30618         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
30619         * tests/test-ftello.c (main): Likewise.
30620         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
30621         * doc/posix-functions/ftello.texi: Likewise.
30622
30623 2008-04-13  Bruno Haible  <bruno@clisp.org>
30624
30625         Make test-signbit pass on HP-UX/hppa.
30626         * tests/test-signbit.c (minus_zerol): New variable.
30627         (test_signbitl): Use it.
30628
30629 2008-04-13  Bruno Haible  <bruno@clisp.org>
30630
30631         Make truncl work on OSF/1 4.0.
30632         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
30633         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
30634         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
30635         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
30636         HAVE_DECL_TRUNCL.
30637         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
30638         HAVE_DECL_TRUNCL.
30639         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
30640
30641 2008-04-13  Bruno Haible  <bruno@clisp.org>
30642
30643         * lib/unictype.h: Remove trailing comma from enumeration definitions.
30644
30645 2008-04-13  Bruno Haible  <bruno@clisp.org>
30646
30647         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
30648         expression, so as to avoid HP-UX 11 cc compiler bug.
30649
30650 2008-04-13  Bruno Haible  <bruno@clisp.org>
30651
30652         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
30653
30654 2008-04-13  Bruno Haible  <bruno@clisp.org>
30655
30656         * lib/git-merge-changelog.c: Remove empty declaration outside of
30657         functions.
30658
30659 2008-04-13  Bruno Haible  <bruno@clisp.org>
30660
30661         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
30662
30663 2008-04-13  Bruno Haible  <bruno@clisp.org>
30664
30665         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
30666         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
30667         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
30668         also if it exists but lacks definitions of the SHUT_* macros.
30669         * modules/sys_socket (Description): Update.
30670         Reported by Elbert Pol <e.pol@chello.nl>.
30671
30672 2008-04-13  Bruno Haible  <bruno@clisp.org>
30673
30674         * lib/localcharset.c (OS2): Don't redefine if already defined.
30675         Reported by Elbert Pol <e.pol@chello.nl>.
30676
30677 2008-04-13  Bruno Haible  <bruno@clisp.org>
30678
30679         * lib/binary-io.h [__EMX__]: Include <io.h>.
30680         Reported by Elbert Pol <e.pol@chello.nl>.
30681
30682 2008-04-12  Bruno Haible  <bruno@clisp.org>
30683
30684         * lib/fpucw.h: Enable the definitions also for x86_64.
30685         Needed for NetBSD/x86_64.
30686         Reported by Thomas Klausner <tk@giga.or.at>.
30687
30688 2008-04-12  Bruno Haible  <bruno@clisp.org>
30689
30690         * tests/test-strtod.c: Include isnand.h.
30691         (main): Use isnand instead of isnan.
30692         Reported by Jim Meyering.
30693
30694 2008-04-12  Bruno Haible  <bruno@clisp.org>
30695
30696         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
30697         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
30698
30699 2008-04-12  Jim Meyering  <meyering@redhat.com>
30700
30701         * m4/math_h.m4 (gl_MATH_H): Fix typos.
30702
30703 2008-04-12  Bruno Haible  <bruno@clisp.org>
30704
30705         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
30706         Reported by Elbert Pol <e.pol@chello.nl>.
30707
30708 2008-04-12  Eric Blake  <ebb9@byu.net>
30709
30710         Work around Solaris 10 math.h bug.
30711         * m4/math_h.m4 (gl_MATH_H): Check for bug.
30712         (gl_MATH_H_DEFAULTS): Set up default.
30713         * modules/math (Makefile.am): Replace new indicators.
30714         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
30715         * tests/test-math.c (main): Test this.
30716         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
30717         * doc/posix-headers/math.texi (math.h): Mention bug.
30718         Reported by Nelson H. F. Beebe and Jim Meyering.
30719
30720 2008-04-11  Bruno Haible  <bruno@clisp.org>
30721
30722         Adapt to future versions of Apple GCC.
30723         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
30724         Reported by Peter O'Gorman <peter@pogma.com>.
30725
30726 2008-04-11  Bruno Haible  <bruno@clisp.org>
30727
30728         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
30729
30730 2008-04-11  Bruno Haible  <bruno@clisp.org>
30731
30732         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
30733
30734         * modules/getaddrinfo-tests (Makefile.am): Define
30735         test_getaddrinfo_LDADD.
30736
30737 2008-04-11  Bruno Haible  <bruno@clisp.org>
30738
30739         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
30740         (init): Fix syntax error.
30741         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
30742         is declared.
30743
30744 2008-04-11  Bruno Haible  <bruno@clisp.org>
30745
30746         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
30747         * modules/glob (Depends-on): Add stdbool.
30748
30749 2008-04-11  Bruno Haible  <bruno@clisp.org>
30750
30751         * lib/trim.c: Include <string.h>.
30752
30753 2008-04-11  Eric Blake  <ebb9@byu.net>
30754
30755         Avoid compile failure on OS/2.
30756         * lib/regex_internal.h (internal_function): Disable optimization
30757         on OS/2 (__EMX__), where it caused compiler error.
30758         Reported by Elbert Pol.
30759
30760 2008-04-11  Bruno Haible  <bruno@clisp.org>
30761
30762         Flush the standard error stream before aborting. Needed on mingw.
30763         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
30764         * tests/test-array_list.c (ASSERT): Likewise.
30765         * tests/test-array_oset.c (ASSERT): Likewise.
30766         * tests/test-avltree_list.c (ASSERT): Likewise.
30767         * tests/test-avltree_oset.c (ASSERT): Likewise.
30768         * tests/test-avltreehash_list.c (ASSERT): Likewise.
30769         * tests/test-binary-io.c (ASSERT): Likewise.
30770         * tests/test-byteswap.c (ASSERT): Likewise.
30771         * tests/test-c-ctype.c (ASSERT): Likewise.
30772         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
30773         * tests/test-c-strcasestr.c (ASSERT): Likewise.
30774         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
30775         * tests/test-c-strstr.c (ASSERT): Likewise.
30776         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
30777         * tests/test-canonicalize.c (ASSERT): Likewise.
30778         * tests/test-carray_list.c (ASSERT): Likewise.
30779         * tests/test-ceilf1.c (ASSERT): Likewise.
30780         * tests/test-ceilf2.c (ASSERT): Likewise.
30781         * tests/test-ceill.c (ASSERT): Likewise.
30782         * tests/test-count-one-bits.c (ASSERT): Likewise.
30783         * tests/test-fbufmode.c (ASSERT): Likewise.
30784         * tests/test-fflush2.c (ASSERT): Likewise.
30785         * tests/test-floorf1.c (ASSERT): Likewise.
30786         * tests/test-floorf2.c (ASSERT): Likewise.
30787         * tests/test-floorl.c (ASSERT): Likewise.
30788         * tests/test-fopen.c (ASSERT): Likewise.
30789         * tests/test-fpending.c (ASSERT): Likewise.
30790         * tests/test-fprintf-posix.c (ASSERT): Likewise.
30791         * tests/test-fpurge.c (ASSERT): Likewise.
30792         * tests/test-freadable.c (ASSERT): Likewise.
30793         * tests/test-freadahead.c (ASSERT): Likewise.
30794         * tests/test-freading.c (ASSERT): Likewise.
30795         * tests/test-freadptr.c (ASSERT): Likewise.
30796         * tests/test-freadptr2.c (ASSERT): Likewise.
30797         * tests/test-freadseek.c (ASSERT): Likewise.
30798         * tests/test-freopen.c (ASSERT): Likewise.
30799         * tests/test-frexp.c (ASSERT): Likewise.
30800         * tests/test-frexpl.c (ASSERT): Likewise.
30801         * tests/test-fseek.c (ASSERT): Likewise.
30802         * tests/test-fseeko.c (ASSERT): Likewise.
30803         * tests/test-fstrcmp.c (ASSERT): Likewise.
30804         * tests/test-ftell.c (ASSERT): Likewise.
30805         * tests/test-ftello.c (ASSERT): Likewise.
30806         * tests/test-func.c (ASSERT): Likewise.
30807         * tests/test-fwritable.c (ASSERT): Likewise.
30808         * tests/test-fwriting.c (ASSERT): Likewise.
30809         * tests/test-getdelim.c (ASSERT): Likewise.
30810         * tests/test-getline.c (ASSERT): Likewise.
30811         * tests/test-i-ring.c (ASSERT): Likewise.
30812         * tests/test-iconv-utf.c (ASSERT): Likewise.
30813         * tests/test-iconv.c (ASSERT): Likewise.
30814         * tests/test-isfinite.c (ASSERT): Likewise.
30815         * tests/test-isnand.c (ASSERT): Likewise.
30816         * tests/test-isnanf.c (ASSERT): Likewise.
30817         * tests/test-isnanl.h (ASSERT): Likewise.
30818         * tests/test-ldexpl.c (ASSERT): Likewise.
30819         * tests/test-linked_list.c (ASSERT): Likewise.
30820         * tests/test-linkedhash_list.c (ASSERT): Likewise.
30821         * tests/test-localename.c (ASSERT): Likewise.
30822         * tests/test-lseek.c (ASSERT): Likewise.
30823         * tests/test-mbscasecmp.c (ASSERT): Likewise.
30824         * tests/test-mbscasestr1.c (ASSERT): Likewise.
30825         * tests/test-mbscasestr2.c (ASSERT): Likewise.
30826         * tests/test-mbscasestr3.c (ASSERT): Likewise.
30827         * tests/test-mbscasestr4.c (ASSERT): Likewise.
30828         * tests/test-mbschr.c (ASSERT): Likewise.
30829         * tests/test-mbscspn.c (ASSERT): Likewise.
30830         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
30831         * tests/test-mbspbrk.c (ASSERT): Likewise.
30832         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
30833         * tests/test-mbsrchr.c (ASSERT): Likewise.
30834         * tests/test-mbsspn.c (ASSERT): Likewise.
30835         * tests/test-mbsstr1.c (ASSERT): Likewise.
30836         * tests/test-mbsstr2.c (ASSERT): Likewise.
30837         * tests/test-mbsstr3.c (ASSERT): Likewise.
30838         * tests/test-memchr2.c (ASSERT): Likewise.
30839         * tests/test-memmem.c (ASSERT): Likewise.
30840         * tests/test-open.c (ASSERT): Likewise.
30841         * tests/test-printf-frexp.c (ASSERT): Likewise.
30842         * tests/test-printf-frexpl.c (ASSERT): Likewise.
30843         * tests/test-printf-posix.c (ASSERT): Likewise.
30844         * tests/test-quotearg.c (ASSERT): Likewise.
30845         * tests/test-rbtree_list.c (ASSERT): Likewise.
30846         * tests/test-rbtree_oset.c (ASSERT): Likewise.
30847         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
30848         * tests/test-round1.c (ASSERT): Likewise.
30849         * tests/test-roundf1.c (ASSERT): Likewise.
30850         * tests/test-roundl.c (ASSERT): Likewise.
30851         * tests/test-signbit.c (ASSERT): Likewise.
30852         * tests/test-sleep.c (ASSERT): Likewise.
30853         * tests/test-snprintf-posix.c (ASSERT): Likewise.
30854         * tests/test-snprintf.c (ASSERT): Likewise.
30855         * tests/test-sprintf-posix.c (ASSERT): Likewise.
30856         * tests/test-stat-time.c (ASSERT): Likewise.
30857         * tests/test-strcasestr.c (ASSERT): Likewise.
30858         * tests/test-strerror.c (ASSERT): Likewise.
30859         * tests/test-striconv.c (ASSERT): Likewise.
30860         * tests/test-striconveh.c (ASSERT): Likewise.
30861         * tests/test-striconveha.c (ASSERT): Likewise.
30862         * tests/test-strsignal.c (ASSERT): Likewise.
30863         * tests/test-strstr.c (ASSERT): Likewise.
30864         * tests/test-strtod.c (ASSERT): Likewise.
30865         * tests/test-trunc1.c (ASSERT): Likewise.
30866         * tests/test-trunc2.c (ASSERT): Likewise.
30867         * tests/test-truncf1.c (ASSERT): Likewise.
30868         * tests/test-truncf2.c (ASSERT): Likewise.
30869         * tests/test-truncl.c (ASSERT): Likewise.
30870         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
30871         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
30872         * tests/test-vasnprintf.c (ASSERT): Likewise.
30873         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
30874         * tests/test-vasprintf.c (ASSERT): Likewise.
30875         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
30876         * tests/test-vprintf-posix.c (ASSERT): Likewise.
30877         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
30878         * tests/test-vsnprintf.c (ASSERT): Likewise.
30879         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
30880         * tests/test-wcwidth.c (ASSERT): Likewise.
30881         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
30882         * tests/test-xprintf-posix.c (ASSERT): Likewise.
30883         * tests/test-xvasprintf.c (ASSERT): Likewise.
30884         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
30885         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
30886         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
30887         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
30888         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
30889         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
30890         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
30891         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
30892         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
30893         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
30894         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
30895         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
30896         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
30897         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
30898         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
30899         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
30900         * tests/unictype/test-block_list.c (ASSERT): Likewise.
30901         * tests/unictype/test-block_of.c (ASSERT): Likewise.
30902         * tests/unictype/test-block_test.c (ASSERT): Likewise.
30903         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
30904         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
30905         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
30906         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
30907         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
30908         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
30909         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
30910         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
30911         * tests/unictype/test-combining.c (ASSERT): Likewise.
30912         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
30913         * tests/unictype/test-digit.c (ASSERT): Likewise.
30914         * tests/unictype/test-mirror.c (ASSERT): Likewise.
30915         * tests/unictype/test-numeric.c (ASSERT): Likewise.
30916         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
30917         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
30918         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
30919         * tests/unictype/test-scripts.c (ASSERT): Likewise.
30920         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
30921         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
30922         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
30923         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
30924         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
30925         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
30926         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
30927         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
30928         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
30929         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
30930         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
30931         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
30932         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
30933         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
30934         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
30935         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
30936         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
30937         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
30938         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
30939         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
30940         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
30941         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
30942         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
30943         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
30944         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
30945         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
30946         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
30947         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
30948         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
30949         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
30950         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
30951         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
30952         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
30953         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
30954         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
30955         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
30956         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
30957         Reported by Eric Blake.
30958
30959 2008-04-11  Bruno Haible  <bruno@clisp.org>
30960
30961         * lib/wchar.in.h: Tweak comment.
30962
30963 2008-04-11  Bruno Haible  <bruno@clisp.org>
30964
30965         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
30966         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
30967         gl_COMMON.
30968         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
30969
30970 2008-04-11  Bruno Haible  <bruno@clisp.org>
30971
30972         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
30973
30974 2008-04-11  Simon Josefsson  <simon@josefsson.org>
30975
30976         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
30977         of attempting to use non-existing /dev/*random.  Based on patch
30978         from Adam Strzelecki <ono@java.pl> in
30979         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
30980
30981 2008-04-08  Bruno Haible  <bruno@clisp.org>
30982
30983         Add tentative support for emx+gcc.
30984         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
30985         * lib/fpurge.c (fpurge): Likewise.
30986         * lib/freadable.c (freadable): Likewise.
30987         * lib/freadahead.c (freadahead): Likewise.
30988         * lib/freading.c (freading): Likewise.
30989         * lib/freadptr.c (freadptr): Likewise.
30990         * lib/freadseek.c (freadptrinc): Likewise.
30991         * lib/fseeko.c (rpl_fseeko): Likewise.
30992         * lib/fseterr.c (fseterr): Likewise.
30993         * lib/fwritable.c (fwritable): Likewise.
30994         * lib/fwriting.c (fwriting): Likewise.
30995         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
30996
30997 2008-04-09  Eric Blake  <ebb9@byu.net>
30998
30999         Avoid some autoconf warnings.
31000         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
31001         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
31002         * m4/afs.m4 (gl_AFS): Likewise.
31003         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
31004         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
31005         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
31006         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
31007         (gl_INTEGER_TYPE_SUFFIX): Likewise.
31008         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
31009         (AC_CHECK_DECLS_ONCE): Likewise.
31010         Rename file...
31011         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
31012         gnulib-tool requires autoconf 2.59 or better.
31013         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
31014
31015 2008-04-08  Eric Blake  <ebb9@byu.net>
31016
31017         Use 'git describe --match' if present (added in git 1.5.5).
31018         * build-aux/git-version-gen: Limit result to tags that match 'v*'
31019         if possible.
31020
31021 2008-04-08  Bruno Haible  <bruno@clisp.org>
31022
31023         Add tentative support for OpenServer.
31024         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
31025         _ptr, _cnt.
31026         * lib/fpurge.c (fpurge): Likewise.
31027         * lib/freadable.c (freadable): Likewise.
31028         * lib/freadahead.c (freadahead): Likewise.
31029         * lib/freading.c (freading): Likewise.
31030         * lib/freadptr.c (freadptr): Likewise.
31031         * lib/freadseek.c (freadptrinc): Likewise.
31032         * lib/fseeko.c (rpl_fseeko): Likewise.
31033         * lib/fseterr.c (fseterr): Likewise.
31034         * lib/fwritable.c (fwritable): Likewise.
31035         * lib/fwriting.c (fwriting): Likewise.
31036         Reported by Roger Cornelius <rac@tenzing.org> and
31037         Brian K. White <brian@aljex.com>.
31038
31039 2008-04-06  Jim Meyering  <meyering@redhat.com>
31040
31041         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
31042
31043 2008-04-06  Bruno Haible  <bruno@clisp.org>
31044
31045         Avoid possible error with non-ASCII bytes in UTF-8 locales.
31046         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
31047         * tests/test-printf-posix.sh: Likewise.
31048         * tests/test-vfprintf-posix.sh: Likewise.
31049         * tests/test-vprintf-posix.sh: Likewise.
31050         * tests/test-xprintf-posix.sh: Likewise.
31051
31052 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31053
31054         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
31055         hide error from 'ls', needed on OS/2.
31056         Report by Elbert Pol <elbert.pol@gmail.com>.
31057
31058 2008-04-04  Eric Blake  <ebb9@byu.net>
31059
31060         Make test-fseeko.c failures meaningful.
31061         * tests/test-fseeko.c: Print line number on failure.
31062         * tests/test-fseek.c: Likewise.
31063         Reported by Nelson H. F. Beebe.
31064
31065         Improve strtod bug detection check.
31066         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
31067         required for Solaris 10.
31068         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
31069
31070 2008-04-04  Bruno Haible  <bruno@clisp.org>
31071
31072         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
31073         by m4/setenv.m4.
31074
31075 2008-04-03  Eric Blake  <ebb9@byu.net>
31076
31077         Ensure sane .version contents.
31078         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
31079         version string.
31080         * build-aux/git-version-gen: Improve documentation.
31081
31082         Make GNU make output nicer.
31083         * top/GNUmakefile [!_have-Makefile]: Add dependency on
31084         MAKECMDGOALS to enforce message for all command line targets.  Set
31085         srcdir for use in maint.mk.
31086
31087         Another maintainer tweak.
31088         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
31089         a target that regenerates version.
31090
31091 2008-04-03  Jim Meyering  <meyering@redhat.com>
31092
31093         vc-list-files: don't cause coreutils "make po-check" failure
31094         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
31095
31096 2008-04-03  Eric Blake  <ebb9@byu.net>
31097
31098         Allow VPATH usage of vc-list-files.
31099         * build-aux/vc-list-files (scriptversion): Add timestamp.
31100         (options): Add --help, --version, -C.
31101         (CVS): Support installed cvsu.
31102
31103 2008-04-02  Bruno Haible  <bruno@clisp.org>
31104
31105         Avoid some "statement with no effect" warnings from gcc.
31106         * tests/test-wctype.c (main): Explicitly ignore unused values.
31107         Reported by Jim Meyering.
31108
31109 2008-04-02  Jim Meyering  <meyering@redhat.com>
31110
31111         Avoid some warnings from "gcc -Wshadow".
31112         * tests/test-frexp.c (exp): Define to a different identifier.
31113         * tests/test-frexpl.c (exp): Likewise.
31114
31115 2008-04-03  Jim Meyering  <meyering@redhat.com>
31116
31117         bootstrap: remove dangling *.[ch] symlinks from lib
31118         * build-aux/bootstrap [dangling symlink removal]: Move find's
31119         -depth option to precede all others, to avoid a warning.
31120         Remove *.[ch] files too, and from "$source_base" (usually lib/).
31121
31122 2008-04-02  Bruno Haible  <bruno@clisp.org>
31123
31124         Avoid some warnings from "gcc -Wshadow".
31125         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
31126         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
31127         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
31128         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
31129         Reported by Jim Meyering.
31130
31131 2008-04-01  Bruno Haible  <bruno@clisp.org>
31132
31133         Fix test to work on IRIX 6.5 with cc.
31134         * tests/test-math.c (numeric_equal): New function.
31135         (main): Use it.
31136
31137 2008-04-01  Bruno Haible  <bruno@clisp.org>
31138
31139         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
31140
31141 2008-04-01  Bruno Haible  <bruno@clisp.org>
31142
31143         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
31144         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
31145         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
31146         (Depends-on): Remove math.
31147
31148         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
31149         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
31150         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
31151         (Depends-on): Remove math.
31152
31153         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
31154         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
31155         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
31156         (Depends-on): Remove math.
31157         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
31158         (Depends-on): Remove math.
31159
31160         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
31161         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
31162         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
31163         (Depends-on): Remove math.
31164         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
31165         (Depends-on): Remove math.
31166
31167         * tests/test-round1.c: Include nan.h.
31168         (main): Use NaNd instead of NAN.
31169         * modules/round-tests (Files): Add tests/nan.h.
31170
31171         * tests/test-trunc1.c: Include nan.h.
31172         (main): Use NaNd instead of NAN.
31173         * modules/trunc-tests (Files): Add tests/nan.h.
31174
31175         * tests/test-roundf1.c: Include nan.h.
31176         (main): Use NaNf instead of NAN.
31177         * modules/roundf-tests (Files): Add tests/nan.h.
31178
31179         * tests/test-truncf1.c: Include nan.h.
31180         (main): Use NaNf instead of NAN.
31181         * modules/truncf-tests (Files): Add tests/nan.h.
31182
31183         * tests/test-ceilf1.c: Include nan.h.
31184         (main): Use NaNf instead of NAN.
31185         * modules/ceilf-tests (Files): Add tests/nan.h.
31186
31187         * tests/test-floorf1.c: Include nan.h.
31188         (main): Use NaNf instead of NAN.
31189         * modules/floorf-tests (Files): Add tests/nan.h.
31190
31191         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
31192         (main): Use NaNf instead of NAN.
31193         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
31194
31195         * tests/test-isnand.c: Include nan.h instead of <math.h>.
31196         (main): Use NaNd instead of NAN.
31197         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
31198
31199         * tests/test-frexp.c: Include nan.h.
31200         (main): Use NaNd instead of NAN.
31201         * modules/frexp-tests (Files): Add tests/nan.h.
31202
31203         * lib/isnan.c: Don't include <math.h>.
31204         (FUNC): Don't use NAN macro.
31205         * modules/isnand-nolibm (Depends-on): Remove math.
31206         * modules/isnanf-nolibm (Depends-on): Remove math.
31207         * modules/isnanl (Depends-on): Remove math.
31208         * modules/isnanl-nolibm (Depends-on): Remove math.
31209
31210         * tests/nan.h: New file.
31211
31212 2008-04-01  Eric Blake  <ebb9@byu.net>
31213
31214         Fix typos.
31215         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
31216         values to be the right type.
31217
31218         For now, cater to gnulib strtod inaccuracies.
31219         * tests/test-strtod.c (main): Allow 1-ulp error on expected
31220         fractional results.  While not as nice from a QoI perspective, it
31221         is a quicker patch than correctly implementing decimal to binary
31222         rounding.
31223
31224 2008-03-31  Eric Blake  <ebb9@byu.net>
31225
31226         Guarantee a definition of NAN.
31227         * lib/math.in.h (NAN): Define if missing.
31228         * tests/test-math.c (main): Test it.
31229         * doc/posix-headers/math.texi (math.h): Document this.
31230         * lib/isnan.c (rpl_isnand): Use it.
31231         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
31232         * tests/test-floorf1.c (NaN): Likewise.
31233         * tests/test-frexp.c (NaN): Likewise.
31234         * tests/test-isnand.c (NaN): Likewise.
31235         * tests/test-isnanf.c (NaN): Likewise.
31236         * tests/test-round1.c (NaN): Likewise.
31237         * tests/test-roundf1.c (NaN): Likewise.
31238         * tests/test-snprintf-posix.h (NaN): Likewise.
31239         * tests/test-sprintf-posix.h (NaN): Likewise.
31240         * tests/test-trunc1.c (NaN): Likewise.
31241         * tests/test-truncf1.c (NaN): Likewise.
31242         * tests/test-vasnprintf-posix.c (NaN): Likewise.
31243         * tests/test-vasprintf-posix.c (NaN): Likewise.
31244         * modules/isnand-nolibm (Depends-on): Add math.
31245         * modules/isnanf-nolibm (Depends-on): Likewise.
31246         * modules/isnanl (Depends-on): Likewise.
31247         * modules/isnanl-nolibm (Depends-on): Likewise.
31248         * modules/snprintf-posix-tests (Depends-on): Likewise.
31249         * modules/sprintf-posix-tests (Depends-on): Likewise.
31250         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
31251         * modules/vsprintf-posix-tests (Depends-on): Likewise.
31252         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
31253         * modules/vasprintf-posix-tests (Depends-on): Likewise.
31254
31255 2008-03-31  Bruno Haible  <bruno@clisp.org>
31256
31257         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
31258         * doc/posix-functions/strtod.texi: Likewise.
31259
31260 2008-03-31  Bruno Haible  <bruno@clisp.org>
31261
31262         * tests/test-strtod.c (main): Don't use C99 syntax.
31263
31264 2008-03-31  Bruno Haible  <bruno@clisp.org>
31265
31266         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
31267         Reported by Eric Blake.
31268
31269 2008-03-31  Jim Meyering  <meyering@redhat.com>
31270
31271         Don't compare actual signbit return values.
31272         * tests/test-strtod.c (main): Rather, compare only their
31273         zero/non-zero nature.
31274
31275 2008-03-31  Eric Blake  <ebb9@byu.net>
31276
31277         More strtod documentation.
31278         * doc/posix-functions/strtod.texi (strtod): Interpret more test
31279         failures as distinct bugs.
31280
31281 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
31282
31283         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
31284         Problem reported by Erik Benada in
31285         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
31286
31287 2008-03-30  Bruno Haible  <bruno@clisp.org>
31288
31289         * tests/test-strtod.c: Add comments about which assertion fails on which
31290         platform.
31291         * doc/posix-functions/strtod.texi: Add info about many more platforms.
31292
31293 2008-03-30  Eric Blake  <ebb9@byu.net>
31294
31295         Test signbit behavior on zeros.
31296         * tests/test-signbit.c (test_signbitf): Add tests for zero.
31297         (test_signbitd, test_signbitl): Likewise.
31298
31299         More strtod touchups.
31300         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
31301         sign of negative underflow, for now.  Use .5, not .1.
31302         * doc/posix-functions/strtod.texi (strtod): Mention these
31303         limitations.
31304         Reported by Jim Meyering.
31305
31306 2008-03-30  Bruno Haible  <bruno@clisp.org>
31307
31308         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
31309         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
31310
31311 2008-03-30  Bruno Haible  <bruno@clisp.org>
31312
31313         Avoid failure when attempting to return empty iconv results on some
31314         platforms.
31315         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
31316         allocation, don't report ENOMEM when the resulting string is empty.
31317
31318 2008-03-30  Bruno Haible  <bruno@clisp.org>
31319
31320         Fix buffer overrun.
31321         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
31322         Don't consider the width for tmp_length. Check count against tmp_length
31323         before doing the padding. Ensure enough allocation during padding.
31324
31325 2008-03-30  Eric Blake  <ebb9@byu.net>
31326
31327         strtod touchups.
31328         * lib/strtod.c (strtod): Avoid compiler warnings.
31329         Reported by Jim Meyering.
31330
31331 2008-03-30  Bruno Haible  <bruno@clisp.org>
31332
31333         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
31334         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
31335         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
31336         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
31337         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
31338         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
31339         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
31340         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
31341
31342         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
31343         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
31344         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
31345         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
31346         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
31347         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
31348         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
31349         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
31350
31351         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
31352         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
31353         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
31354         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
31355         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
31356         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
31357         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
31358         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
31359
31360         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
31361         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
31362
31363         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
31364         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
31365
31366         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
31367         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
31368
31369         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
31370         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
31371         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
31372
31373         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
31374         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
31375         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
31376
31377         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
31378         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
31379         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
31380
31381         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
31382         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
31383         * modules/vasprintf (Depends-on): Add EOVERFLOW.
31384
31385         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
31386         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
31387         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
31388         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
31389         (Depends-on): Add EOVERFLOW.
31390         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
31391         (Depends-on): Add EOVERFLOW.
31392         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
31393         (Depends-on): Add EOVERFLOW.
31394         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
31395         (Depends-on): Add EOVERFLOW.
31396         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
31397         (Depends-on): Add EOVERFLOW.
31398         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
31399         (Depends-on): Add EOVERFLOW.
31400         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
31401         (Depends-on): Add EOVERFLOW.
31402         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
31403         (Depends-on): Add EOVERFLOW.
31404
31405         * lib/sprintf.c (EOVERFLOW): Remove fallback.
31406         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
31407         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
31408
31409         * lib/snprintf.c (EOVERFLOW): Remove fallback.
31410         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
31411         * modules/snprintf (Depends-on): Add EOVERFLOW.
31412
31413         * lib/poll.c (EOVERFLOW): Remove fallback.
31414         * modules/poll (Depends-on): Add EOVERFLOW.
31415
31416         * lib/getugroups.c (EOVERFLOW): Remove fallback.
31417         * modules/getugroups (Depends-on): Add EOVERFLOW.
31418
31419         * lib/getdelim.c (EOVERFLOW): Remove fallback.
31420         * modules/getdelim (Depends-on): Add EOVERFLOW.
31421
31422         * lib/ftell.c (EOVERFLOW): Remove fallback.
31423         * modules/ftell (Depends-on): Add EOVERFLOW.
31424
31425         * lib/fprintf.c (EOVERFLOW): Remove fallback.
31426         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
31427         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
31428
31429         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
31430
31431         * modules/EOVERFLOW-tests: New file.
31432         * tests/test-EOVERFLOW.c: New file.
31433
31434         * modules/EOVERFLOW: New file.
31435         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
31436
31437 2008-03-30  Bruno Haible  <bruno@clisp.org>
31438
31439         Fix bug introduced on 2007-06-10.
31440         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
31441         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
31442
31443 2008-03-30  Bruno Haible  <bruno@clisp.org>
31444
31445         Improve freadseek's efficiency after ungetc.
31446         * lib/freadseek.c: Include freadahead.h.
31447         (freadptrinc): New function, extracted from freadseek.
31448         (freadseek): Use it in a loop. Use freadahead to determine the number
31449         of loop iterations.
31450         * modules/freadseek (Depends-on): Add freadahead.
31451         (configure.ac): Require AC_C_INLINE.
31452
31453 2008-03-30  Bruno Haible  <bruno@clisp.org>
31454
31455         * lib/freadseek.c (freadseek): Don't ignore the return value of
31456         freadptr.
31457
31458 2008-03-29  Eric Blake  <ebb9@byu.net>
31459
31460         Add hex float support.
31461         * modules/strtod (Depends-on): Add c-ctype.
31462         (Link): Mention POW_LIB.
31463         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
31464         whitespace between 'e' and exponent.
31465         * tests/test-strtod.c (main): Enable hex float tests.
31466         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
31467         now provides.
31468
31469         Document various strtod bugs, with some fixes.
31470         * doc/posix-functions/strtod.texi (strtod): Document bugs with
31471         "-0x", "inf", "nan", and hex constants.
31472         * doc/posix-functions/atof.texi (atof): Likewise.
31473         * modules/stdlib (Makefile.am): Support strtod.
31474         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
31475         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
31476         detect additional strtod bugs.
31477         * lib/stdlib.in.h (rpl_strtod): Add declarations.
31478         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
31479         bool where appropriate.  Parse 'inf' and 'nan'.
31480         * tests/test-strtod.c: New file.
31481         * modules/strtod (Depends-on): Add stdbool, stdlib.
31482         (configure.ac): Turn on module indicator.
31483         * modules/strtod-tests: New module.
31484
31485 2008-03-29  Eric Blake  <ebb9@byu.net>
31486
31487         Fix ftell on mingw.
31488         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
31489         * modules/ftell-tests (Depends-on): Add binary-io.
31490         * modules/ftello-tests (Depends-on): Likewise.
31491         * tests/test-ftell.c (main): Enhance test to cover behavior after
31492         ungetc.  Enforce binary mode.
31493         * tests/test-ftello.c (main): Likewise.
31494
31495         Pass test-freadseek on cygwin.
31496         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
31497         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
31498         ungetc buffer.
31499
31500         * tests/test-fflush2.c (main): Fix typo.
31501
31502 2008-03-29  Bruno Haible  <bruno@clisp.org>
31503
31504         * tests/test-fflush2.c (main): Temporarily disable the contents of
31505         this test.
31506         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
31507         Reported by Eric Blake.
31508
31509 2008-03-28  Simon Josefsson  <simon@josefsson.org>
31510
31511         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
31512         (GC_SHA224_DIGEST_SIZE): Add.
31513
31514         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
31515         (gc_hash_digest_length): Likewise.
31516         (gc_hash_buffer): Likewise.
31517
31518 2008-03-25  Bruno Haible  <bruno@clisp.org>
31519
31520         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
31521         detail which gettext release to use.
31522         Reported by Simon Josefsson.
31523
31524 2008-03-26  Jim Meyering  <meyering@redhat.com>
31525
31526         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
31527         * modules/gnumakefile (clean-GNUmakefile): Also, use
31528         test ... && ... || : syntax rather than if-then ... fi.
31529
31530         gnumakefile: Don't double-quote-expand $(VPATH) value.
31531         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
31532
31533 2008-03-24  Eric Blake  <ebb9@byu.net>
31534
31535         Alter GNUmakefile to install into top directory.
31536         * modules/maintainer-makefile: Split, and add dependency...
31537         * modules/gnumakefile: to this new module.
31538         * build-aux/GNUmakefile: Move...
31539         * top/GNUmakefile: ...here.
31540         * build-aux/maint.mk: Move...
31541         * top/maint.mk: ...here.
31542         * MODULES.html.sh (Support for maintaining...): Document new
31543         module.
31544
31545 2008-03-23  Bruno Haible  <bruno@clisp.org>
31546
31547         * gnulib-tool: New options --vc-files, --no-vc-files.
31548         (func_usage): Document them.
31549         (vc_files): New variable.
31550         (func_import): Consider vc_files.
31551         (func_create_testdir): Set vc_files to empty.
31552         Suggested by Jim Meyering and Karl Berry.
31553
31554 2008-03-23  Bruno Haible  <bruno@clisp.org>
31555
31556         Fix regex compilation error on HP-UX 11.
31557         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
31558         * modules/regex (Files): Add m4/mbstate_t.m4.
31559         Reported by Ton Voon <ton.voon@altinity.com>.
31560
31561 2008-03-23  Bruno Haible  <bruno@clisp.org>
31562
31563         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
31564
31565 2008-03-23  Eric Blake  <ebb9@byu.net>
31566             Bruno Haible  <bruno@clisp.org>
31567
31568         Install files from top/ in the destination directory.
31569         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
31570         augmentation also for the files from top/.
31571         (func_import, func_create_testdir): Rewrite file names:
31572         top/filename -> filename.
31573
31574 2008-03-23  Bruno Haible  <bruno@clisp.org>
31575
31576         Tweak "gnulib --version" output.
31577         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
31578
31579 2008-03-23  Bruno Haible  <bruno@clisp.org>
31580
31581         Tweak "gnulib --version" output.
31582         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
31583         rather than contents of ChangeLog, when possible.
31584
31585 2008-03-21  Eric Blake  <ebb9@byu.net>
31586
31587         More --version tweaks.
31588         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
31589         date of last ChangeLog entry.
31590
31591 2008-03-21  Jim Meyering  <meyering@redhat.com>
31592
31593         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
31594
31595 2008-03-20  Eric Blake  <ebb9@byu.net>
31596
31597         VPATH fix.
31598         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
31599
31600 2008-03-20  Simon Josefsson  <simon@josefsson.org>
31601
31602         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
31603         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
31604
31605 2008-03-20  Eric Blake  <ebb9@byu.net>
31606
31607         Sync GNUmakefile with coreutils.
31608         * build-aux/GNUmakefile (have-Makefile): Rename...
31609         (_have-Makefile): ...to this, for namespace consideration.
31610         (GNUmakefile.cfg): Include, if present.
31611         (_autoreconf): Define a default.
31612         (_is-dist-target): New rule for rebuilds to pick up intra-release
31613         version.
31614         (maint-cfg.mk): Rename...
31615         (cfg.mk): ...to this.
31616
31617 2008-03-18  Jim Meyering  <meyering@redhat.com>
31618
31619         New script and module: mktempd
31620         * MODULES.html.sh (maint+release support): Add mktempd.
31621         * build-aux/mktempd: New file.
31622         * modules/mktempd: New file.
31623
31624 2008-03-15  Jim Meyering  <meyering@redhat.com>
31625
31626         Undo last change.
31627         * lib/sha1.c, lib/md5.c: 63 != ~63.
31628         Reported by Andreas Schwab.
31629
31630         sha1.c, md5.c: Hoist a redundant expression.
31631         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
31632         "ctx->buflen" only once, before calling *_process_block.
31633         * lib/md5.c (md5_process_bytes): Likewise.
31634
31635 2008-03-14  Eric Blake  <ebb9@byu.net>
31636
31637         Bump copyright year in files generated by gnulib-tool.
31638         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
31639         gnulib-tool, rather than hard-coding it.
31640
31641         Fix 'gnulib-tool --version' output to work with git.
31642         * gnulib-tool (func_gnulib_dir): New function, extracted from...
31643         (startup): ...here.
31644         (func_version): Use it to invoke git-version-gen, rather than
31645         relying on CVS keyword expansion.  Modernize wording.
31646         (cvsdatestamp, last_checkin_date, version): Kill unused
31647         variables.
31648
31649 2008-03-12  Jim Meyering  <meyering@redhat.com>
31650
31651         Recognize optional cast of the argument to free.
31652         * build-aux/useless-if-before-free: Update regexps.
31653
31654         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
31655
31656 2008-03-11  Bruno Haible  <bruno@clisp.org>
31657
31658         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
31659         by a single package.
31660         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
31661         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
31662         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
31663         Reported by Sam Steingold <sds@gnu.org>.
31664
31665 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31666
31667         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
31668         repositories.
31669
31670 2008-03-11  Bruno Haible  <bruno@clisp.org>
31671
31672         Avoid conflicts between local macro definitions.
31673         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
31674         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
31675
31676 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
31677             Bruno Haible  <bruno@clisp.org>
31678
31679         Make va_copy work with some version of xlc on AIX 5.1.
31680         * lib/stdarg.in.h: New file.
31681         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
31682         On AIX, use a <stdarg.h> file substitute.
31683         * modules/stdarg (Files): Add lib/stdarg.in.h.
31684         (Depends-on): Add include_next.
31685         (Makefile.am): Build a stdarg.h substitute if requested.
31686         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
31687
31688 2008-03-10  Bruno Haible  <bruno@clisp.org>
31689
31690         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
31691         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
31692         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
31693
31694 2008-03-10  Bruno Haible  <bruno@clisp.org>
31695
31696         * modules/stdlib (Depends-on): Add include_next, remove
31697         absolute-header.
31698
31699 2008-03-09  Bruno Haible  <bruno@clisp.org>
31700
31701         * lib/freadahead.h (freadahead): Document more precisely.
31702         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
31703         the sum of both buffer sizes.
31704         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
31705         * NEWS: Document the change.
31706
31707 2008-03-09  Bruno Haible  <bruno@clisp.org>
31708
31709         Extend freadptr to return also the buffer size.
31710         * lib/freadptr.h (freadptr): Add sizep argument.
31711         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
31712         (freadptr): Add sizep argument. Determine buffer size like freadahead
31713         does.
31714         * tests/test-freadptr.c: Don't include freadahead.h.
31715         (main): Adapt for new calling convention of freadptr.
31716         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
31717         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
31718         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
31719         tests/test-freadptr2.sh.
31720         (Depends): Remove freadahead.
31721         (TESTS): Add test-freadptr2.sh.
31722         (check_PROGRAMS): Add test-freadptr2.
31723
31724 2008-03-09  Bruno Haible  <bruno@clisp.org>
31725
31726         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
31727         Report and solution by Simon Josefsson.
31728
31729 2008-03-06  Bruno Haible  <bruno@clisp.org>
31730
31731         Make fflush after ungetc work on BSD platforms.
31732         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
31733         * tests/test-fflush2.c: New file.
31734         * tests/test-fflush2.sh: New file.
31735         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
31736         tests/test-fflush2.c.
31737         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
31738         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
31739
31740 2008-03-06  Eric Blake  <ebb9@byu.net>
31741
31742         Likewise for ftello.
31743         * modules/ftello (Dependencies): Add extensions.
31744         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
31745
31746 2008-03-06  Bruno Haible  <bruno@clisp.org>
31747
31748         * modules/fseeko (Dependencies): Add extensions.
31749         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
31750         Needed on glibc systems.
31751
31752 2008-03-06  Bruno Haible  <bruno@clisp.org>
31753
31754         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
31755         email address.
31756         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31757
31758 2008-03-06  Bruno Haible  <bruno@clisp.org>
31759
31760         * users.txt: Add libgnupdf.
31761
31762 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
31763
31764         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
31765         (Header File Substitutes, Function Substitutes,
31766         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
31767         (Build robot for gnulib): Fix typo.
31768
31769 2008-03-06  Bruno Haible  <bruno@clisp.org>
31770
31771         * doc/gnulib-tool.texi (VCS Issues): Small updates.
31772         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31773
31774 2008-03-06  Bruno Haible  <bruno@clisp.org>
31775
31776         * doc/func.texi: New file, extracted from doc/gnulib.texi.
31777         * doc/gnulib.texi: Include it.
31778
31779 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31780
31781         * modules/func (License): Change license to unlimited; there was
31782         no LGPL parts in the module anyway.
31783
31784 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31785
31786         * modules/__func__: Renamed to modules/func.
31787         * modules/__func__-tests: Renamed to modules/func-tests.
31788         * tests/test-__func__.c: Renamed to tests/test-func.c.
31789         * m4/__func__.m4: Renamed to m4/func.m4.
31790         * doc/gnulib.texi (__func__): Section renamed to func.
31791         Suggested by Eric Blake <ebb9@byu.net>.
31792
31793 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31794
31795         * doc/gnulib.texi (__func__): Use C99 terminology when talking
31796         about __func__.  Make example self-contained.  Suggested by Eric
31797         Blake <ebb9@byu.net>.
31798
31799         * tests/test-__func__.c (main): Avoid extraneous () around __func.
31800         Suggested by Eric Blake <ebb9@byu.net>.
31801
31802 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31803
31804         * modules/__func__: New file.
31805         * modules/__func__-tests: New file.
31806         * tests/test-__func__.c: New file.
31807         * m4/__func__.m4: New file.
31808         * doc/gnulib.texi (__func__): Document __func__ module.
31809
31810 2008-03-05  Simon Josefsson  <simon@josefsson.org>
31811
31812         * modules/byteswap (License): Re-license as LGPLv2+.
31813
31814 2008-03-05  Simon Josefsson  <simon@josefsson.org>
31815
31816         * doc/Makefile: Add pdf target.
31817
31818 2008-03-05  Simon Josefsson  <simon@josefsson.org>
31819
31820         * modules/inline (License): Use 'unlimited', since there are only
31821         *.m4 files in this module.
31822
31823 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
31824             Bruno Haible  <bruno@clisp.org>
31825
31826         Add support for HP C 7.1 on OpenVMS 8.3.
31827         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
31828
31829 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
31830
31831         Update VMS specifics.
31832         * lib/getopt.c [VMS]: Remove include of unixlib.h.
31833
31834 2008-03-02  Jim Meyering  <meyering@redhat.com>
31835
31836         Remove the last dependency on the "free" module.
31837         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
31838         Reported by Bob Proulx.
31839
31840         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
31841
31842         Remove useless "if" tests before free.  Deprecate "free" module.
31843         * doc/posix-functions/free.texi: Mention that this
31844         module is no longer useful.
31845         * modules/free (Notice): Say this module is obsolete.
31846         * modules/readutmp (Depends-on): Remove free.
31847         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
31848         * lib/putenv.c (putenv): Likewise.
31849         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
31850         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
31851         * tests/test-c-strcasestr.c (main): Likewise.
31852         * tests/test-c-strstr.c (main): Likewise.
31853         * tests/test-mbscasestr1.c (main): Likewise.
31854         * tests/test-mbscasestr2.c (main): Likewise.
31855         * tests/test-mbsstr1.c (main): Likewise.
31856         * tests/test-mbsstr2.c (main): Likewise.
31857         * tests/test-memmem.c (main): Likewise.
31858         * tests/test-strcasestr.c (main): Likewise.
31859         * tests/test-striconv.c (main): Likewise.
31860         * tests/test-striconveh.c (main): Likewise.
31861         * tests/test-striconveha.c (main): Likewise.
31862         * tests/test-strstr.c (main): Likewise.
31863
31864         * build-aux/git-version-gen: Adjust a comment and the Usage string.
31865
31866         bootstrap: sync from coreutils again
31867         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
31868
31869 2008-03-01  Jim Meyering  <meyering@redhat.com>
31870
31871         bootstrap: sync from coreutils
31872         * build-aux/bootstrap (update_po_files): Copy a .po file into place
31873         also when the target doesn't exist.
31874
31875 2008-03-01  Eric Blake  <ebb9@byu.net>
31876
31877         Fix bugs in last patch.
31878         * lib/memchr2.c (memchr2): Fix typo.
31879         * tests/test-memchr2.c: Test previous bug, and don't use GNU
31880         extension.
31881         Reported by Bruce Korb.
31882
31883         New module 'memchr2'.
31884         * modules/memchr2: New file.
31885         * modules/memchr2-tests: Likewise.
31886         * lib/memchr2.h: Likewise.
31887         * lib/memchr2.c: Likewise, based on memchr.c.
31888         * tests/test-memchr2.c: New test.
31889         * MODULES.html.sh (String handling): Add memchr2.
31890
31891 2008-02-29  Bruno Haible  <bruno@clisp.org>
31892
31893         * modules/freadseek-tests: New file.
31894         * tests/test-freadseek.sh: New file.
31895         * tests/test-freadseek.c: New file.
31896
31897         New module 'freadseek'.
31898         * modules/freadseek: New file.
31899         * lib/freadseek.h: New file.
31900         * lib/freadseek.c: New file.
31901         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
31902
31903 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
31904
31905         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
31906         wydawca.
31907
31908         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
31909         program_invocation_name and program_invocation_short_name are
31910         present.
31911
31912 2008-02-28  Bruno Haible  <bruno@clisp.org>
31913
31914         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
31915         * tests/test-freadptr.sh: Also test non-seekable stdin.
31916
31917 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
31918
31919         * build-aux/bootstrap (source_base, m4_base)
31920         (doc_base, tests_base): New variables.
31921         (gnulib_tool_options): Do not hardcode base directories, use
31922         the above variables instead.
31923
31924 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
31925
31926         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
31927
31928 2008-02-28  Bruno Haible  <bruno@clisp.org>
31929
31930         * modules/freadptr-tests: New file.
31931         * tests/test-freadptr.sh: New file.
31932         * tests/test-freadptr.c: New file.
31933
31934         New module 'freadptr'.
31935         * modules/freadptr: New file.
31936         * lib/freadptr.h: New file.
31937         * lib/freadptr.c: New file.
31938         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
31939
31940 2008-02-26  Karl Berry  <karl@freefriends.org>
31941
31942         Sync from Libtool:
31943         * libltdl/argz.c (argz_add, argz_count): New functions.
31944         * libltdl/argz.in.h: Declare them.
31945         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
31946
31947 2008-02-22  Bruno Haible  <bruno@clisp.org>
31948
31949         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
31950         is a pointer type.  Needed for HP-UX 10.
31951         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
31952         * doc/posix-functions/gmtime_r.texi: Likewise.
31953         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
31954
31955 2008-02-24  Bruno Haible  <bruno@clisp.org>
31956
31957         * modules/environ-tests: New file.
31958         * tests/test-environ.c: New file.
31959
31960         New module 'environ'.
31961         * modules/environ: New file.
31962         * lib/unistd.in.h (environ): New declaration.
31963         * m4/environ.m4: New file.
31964         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
31965         after use.
31966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
31967         HAVE_DECL_ENVIRON.
31968         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
31969         HAVE_DECL_ENVIRON.
31970         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
31971         wrong claim that 'environ' is missing on some systems.
31972         * modules/execute (Depends-on): Add environ.
31973         * lib/execute.c (environ): Remove fallback declaration.
31974         * modules/pipe (Depends-on): Add environ.
31975         * lib/pipe.c (environ): Remove fallback declaration.
31976         * modules/setenv (Depends-on): Add environ.
31977         * lib/setenv.c (environ): Remove fallback declaration.
31978         * modules/unsetenv (Depends-on): Add environ.
31979         * lib/unsetenv.c (environ): Remove fallback declaration.
31980         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
31981         m4/environ.m4.
31982         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
31983         (gl_PREREQ_UNSETENV): Likewise.
31984
31985 2008-02-24  Bruno Haible  <bruno@clisp.org>
31986
31987         * doc/posix-functions/environ.texi: Document the MacOS X problem.
31988
31989 2008-02-20  Bob Proulx  <bob@proulx.com>
31990
31991         Enable use of older two part flavor 'git describe'.
31992         * build-aux/git-version-gen: If using the older two part flavor of
31993         git version then recreate the third part now present in the
31994         newer three part flavor of git describe.
31995
31996 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
31997
31998         * lib/fts.c (fts_build): Typo correction to comment.
31999
32000 2008-02-17  Bruno Haible  <bruno@clisp.org>
32001
32002         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
32003         generating no-op conflicts.
32004
32005 2008-02-17  Bruno Haible  <bruno@clisp.org>
32006
32007         Speed up by 10%.
32008         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
32009         result_entries, rather than an index-based loop.
32010
32011 2008-02-17  Bruno Haible  <bruno@clisp.org>
32012
32013         Speed up by 25%.
32014         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
32015         'hashcode_cached'.
32016         (entry_create): New function.
32017         (entry_hashcode): Use the cached hashcode if possible.
32018         (read_changelog_file, try_split_merged_entry): Use entry_create.
32019
32020 2008-02-17  Bruno Haible  <bruno@clisp.org>
32021
32022         Speed up from O(n^2) to O(n) for long ChangeLog files.
32023         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
32024         (read_changelog_file): Change implementation of entries_reversed list
32025         to rbtreehash.
32026         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
32027
32028 2008-02-17  Bruno Haible  <bruno@clisp.org>
32029
32030         New option --split-merged-entry.
32031         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
32032         (find_paragraph_end, try_split_merged_entry): New functions.
32033         (long_options): Add option --split-merged-entry.
32034         (usage): Document option --split-merged-entry.
32035         (main): Implement option --split-merged-entry.
32036         Reported by Eric Blake.
32037
32038 2008-02-17  Bruno Haible  <bruno@clisp.org>
32039
32040         * lib/git-merge-changelog.c: Include c-strstr.h.
32041         (main): Support the "git pull --rebase" situation.
32042         * modules/git-merge-changelog (Depends-on): Add c-strstr.
32043         Reported by Eric Blake.
32044
32045 2008-02-16  Eric Blake  <ebb9@byu.net>
32046
32047         Avoid doubling \ in common case of "c-maybe" quoting style.
32048         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
32049         eliding outer quotes.
32050         * lib/quotearg.h: Document this.
32051         * tests/test-quotearg.c (result_strings, inputs, results_g)
32052         (flag_results, locale_results): Test it by adding a new string to
32053         each test group.
32054         (compare_strings): Test new string.
32055
32056 2008-02-13  Eric Blake  <ebb9@byu.net>
32057
32058         Avoid trigraph quoting in default output.
32059         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
32060         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
32061         unless explicitly requested.
32062         * tests/test-quotearg.c (flag_results, main): Add additional tests.
32063
32064 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
32065
32066         Don't rely on signed integer overflowing to negative value.
32067         * lib/getugroups.c (getugroups): Include <limits.h>.
32068         Instead, compare against INT_MAX, and increment only if the test passes.
32069
32070 2008-02-13  Jim Meyering  <meyering@redhat.com>
32071         and Eric Blake  <ebb9@byu.net>
32072
32073         Avoid shadowing warning and compile errors on Linux.
32074         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
32075         forwarding macros on Linux.
32076         (dcgettext): Define a stub, for Linux.
32077         (results_g, main): Avoid warnings.
32078
32079 2008-02-12  Eric Blake  <ebb9@byu.net>
32080
32081         Silence warning in last patch.
32082         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
32083
32084         Quotearg part 4: add tests, fix c-maybe colon quoting.
32085         * lib/quotearg.h: Improve documentation.
32086         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
32087         escapes when adding outer quotes.  When quoting trigraphs, use
32088         valid C notation.  When quoting NUL, omit extra characters if next
32089         character is not digit.  Alter prototype.
32090         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
32091         callers.
32092         * modules/quotearg-tests: New module.
32093         * tests/test-quotearg.c: New test.
32094
32095 2008-02-07  Eric Blake  <ebb9@byu.net>
32096
32097         Quotearg part 3: add flag to control outer quote elision.
32098         * lib/quotearg.h (c_maybe_quoting_style): New style.
32099         (enum quoting_flags): Better documentation of flags.
32100         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
32101         c-maybe style.
32102         (quotearg_buffer_restyled): Handle new flag to elide outer
32103         quotes.
32104
32105         Quotearg part 2: add flag that can control NUL elision.
32106         * lib/quotearg.h (set_quoting_flags): New prototype.
32107         * lib/quotearg.c (struct quoting_options): Add flag field.
32108         (set_quoting_flags): New function.
32109         (quotearg_buffer_restyled): Add flags parameter.
32110         (quotearg_alloc_mem): Set the flag if length cannot be returned.
32111         (quotearg_n_options): Set the flag, since length cannot be
32112         returned.
32113         (quoting_options_from_style): Default flags correctly.
32114
32115         Quotearg part 1: more wrappers, restore quotearg_char state.
32116         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
32117         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
32118         (quotearg_colon_mem): New wrappers.
32119         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
32120         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
32121         functions.
32122         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
32123         (quotearg_colon_mem): New functions.
32124
32125 2008-02-11  Bruno Haible  <bruno@clisp.org>
32126
32127         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
32128         library in the current directory: it does not work with parallel make.
32129         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32130
32131 2008-02-11  Bruno Haible  <bruno@clisp.org>
32132
32133         * .gitattributes: New file.
32134
32135 2008-02-11  Jim Meyering  <meyering@redhat.com>
32136
32137         useless-if-before-free: Fix reversed exit values.
32138         * build-aux/useless-if-before-free: Use correct values
32139         for EXIT_MATCH and EXIT_NO_MATCH.
32140
32141         * build-aux/useless-if-before-free: Close stdout carefully.
32142
32143 2008-02-10  Bruno Haible  <bruno@clisp.org>
32144
32145         New module 'git-merge-changelog'.
32146         * modules/git-merge-changelog: New file.
32147         * lib/git-merge-changelog.c: New file.
32148
32149 2008-02-10  Jim Meyering  <meyering@redhat.com>
32150
32151         useless-if-before-free: New option: --list (-l).
32152
32153         useless-if-before-free: Don't exit immediately upon open failure.
32154         * build-aux/useless-if-before-free: Exit 2 for errors.
32155         Upon failure to open a file, don't exit immediately.
32156         Rather, just warn and continue with any remaining files.
32157
32158 2008-02-10  Bruno Haible  <bruno@clisp.org>
32159
32160         New abstract list operation 'node_set_value'.
32161         * lib/gl_list.h (gl_list_node_set_value): New function.
32162         (struct gl_list_implementation): New field node_set_value.
32163         * lib/gl_list.c (gl_list_node_set_value): New function.
32164         * lib/gl_array_list.c (gl_array_node_set_value): New function.
32165         (gl_array_list_implementation): Update.
32166         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
32167         (gl_carray_list_implementation): Update.
32168         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
32169         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
32170         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
32171         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
32172         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
32173         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
32174         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
32175         Update.
32176         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
32177         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
32178         (gl_sublist_list_implementation): Update.
32179
32180 2008-02-10  Bruno Haible  <bruno@clisp.org>
32181
32182         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
32183         Needed when ELEMENT is #defined to 'some_type *'.
32184
32185 2008-02-10  Jim Meyering  <meyering@redhat.com>
32186
32187         New script and module: useless-if-before-free
32188         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
32189         * build-aux/useless-if-before-free: New file.
32190         * modules/useless-if-before-free: New file.
32191
32192         * build-aux/gitlog-to-changelog: Use committer date, not author date.
32193
32194         xstrtol_error: Fix typo.
32195         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
32196         s/exit_failure/exit_status/.
32197
32198 2008-02-09  Jim Meyering  <meyering@redhat.com>
32199
32200         New script and module: gitlog-to-changelog
32201         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
32202         * modules/gitlog-to-changelog: New file.
32203         * build-aux/gitlog-to-changelog: New file.
32204
32205 2008-02-08  Jim Meyering  <meyering@redhat.com>
32206
32207         Avoid two "parameter unused" warnings.
32208         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
32209         Mark "st" as used.
32210
32211         Use "git COMMAND", not "git-COMMAND".
32212         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
32213         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
32214         * build-aux/git-version-gen: Use "git status", not "git-status".
32215
32216 2008-02-07  Bruno Haible  <bruno@clisp.org>
32217
32218         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
32219         Avoids a crash on Windows Vista.
32220         Reported by Adam Strzelecki <ono@java.pl> via
32221         Simon Josefsson <simon@josefsson.org>.
32222
32223 2008-02-06  Bruno Haible  <bruno@clisp.org>
32224
32225         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
32226         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
32227         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
32228         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
32229         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
32230         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32231         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
32232         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
32233         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32234         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32235         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32236         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32237         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32238         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32239         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32240         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
32241         left-adjust flag.
32242         * tests/test-snprintf-posix.h (test_function): Likewise.
32243         * tests/test-sprintf-posix.h (test_function): Likewise.
32244         * tests/test-vasprintf-posix.c (test_function): Likewise.
32245         * doc/posix-functions/fprintf.texi: Update.
32246         * doc/posix-functions/printf.texi: Update.
32247         * doc/posix-functions/snprintf.texi: Update.
32248         * doc/posix-functions/sprintf.texi: Update.
32249         * doc/posix-functions/vfprintf.texi: Update.
32250         * doc/posix-functions/vprintf.texi: Update.
32251         * doc/posix-functions/vsnprintf.texi: Update.
32252         * doc/posix-functions/vsprintf.texi: Update.
32253         Reported by Peter Fales <psfales@alcatel-lucent.com>.
32254
32255 2008-02-06  Bruno Haible  <bruno@clisp.org>
32256
32257         Fix bug introduced on 2008-01-26.
32258         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
32259
32260 2008-02-06  Bruno Haible  <bruno@clisp.org>
32261
32262         Fix bug introduced on 2007-06-10.
32263         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
32264         !NEED_PRINTF_FLAG_ZERO.
32265
32266 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
32267
32268         getloadavg: use libperfstat on AIX5
32269         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
32270
32271 2008-02-03  Bruno Haible  <bruno@clisp.org>
32272
32273         * lib/diffseq.h: Add comments about required #includes.
32274         Reported by Michael Biggs <gnulib@doubleplum.net>.
32275
32276 2008-02-01  Bruno Haible  <bruno@clisp.org>
32277
32278         * users.txt: Add gnuit.
32279
32280 2008-01-31  Bruno Haible  <bruno@clisp.org>
32281
32282         * lib/md4.c (set_uint32): Mark as inline.
32283         * lib/md5.c (set_uint32): Likewise.
32284         * lib/sha1.c (set_uint32): Likewise.
32285         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
32286         * m4/md5.m4 (gl_MD5): Likewise.
32287         * m4/sha1.m4 (gl_SHA1): Likewise.
32288
32289 2008-01-31  Jim Meyering  <meyering@redhat.com>
32290
32291         Use "sizeof VAR", rather than a literal "4".
32292         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
32293         * lib/md4.c (md4_read_ctx): Likewise.
32294         * lib/sha1.c (sha1_read_ctx): Likewise.
32295
32296 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32297
32298         * tests/test-sha1.c: New file, based on test-md5.c.
32299
32300         * modules/crypto/sha1-tests: New file.
32301
32302 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32303
32304         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
32305
32306 2008-01-31  Jim Meyering  <meyering@redhat.com>
32307
32308         Prefer "sizeof v" over the equivalent "4".
32309         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
32310         * lib/md5.c (set_uint32): Likewise.
32311         * lib/sha1.c (set_uint32): Likewise.
32312
32313 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32314
32315         * lib/sha1.c (set_uint32): Mark function as static.
32316
32317 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32318
32319         md2: clarify comments to say that alignment is not required.
32320         * lib/md2.h: Remove warning about alignment in comment.
32321         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
32322         never been required.
32323
32324 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32325
32326         md4: adapt alignment constraint fix from sha1.
32327         * lib/md4.c (set_uint32): New function, from sha1.c
32328         (md4_read_ctx): Use it.
32329         (md4_finish_ctx): Doc fix.
32330         * lib/md4.h: Doc fix.
32331
32332 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32333
32334         md5: adapt alignment constraint fix from sha1.
32335         * lib/md5.c (set_uint32): New function, from sha1.c
32336         (md5_read_ctx): Use it.
32337         (md5_finish_ctx): Doc fix.
32338         * lib/md5.h: Doc fix.
32339
32340 2008-01-30  Peter Palfrader  <weasel@debian.org>
32341
32342         sha1: remove the result buffer alignment constraint
32343         * lib/sha1.c (set_uint32): New function.
32344         (sha1_read_ctx): Rewrite to remove the result buffer alignment
32345         constraint.
32346         (sha1_finish_ctx): Remove comment warning about alignment constraint.
32347         * lib/sha1.h: Likewise.
32348
32349 2008-01-30  Andreas Schwab  <schwab@suse.de>
32350             Bruno Haible  <bruno@clisp.org>
32351
32352         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
32353         correct definition of LDBL_MIN_EXP.
32354
32355 2008-01-30  Karl Berry  <karl@gnu.org>
32356
32357         * config/srclist-update: try to preserve x bit on updates.
32358         * config/srclistvars.sh: update for karl.
32359
32360 2008-01-29  Jim Meyering  <meyering@redhat.com>
32361
32362         vasnprintf.c: Avoid warning about unused label
32363         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
32364         "overflow" label definition and associated code with the
32365         same cpp condition that guards the sole use of that label.
32366
32367 2008-01-26  Bruno Haible  <bruno@clisp.org>
32368
32369         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
32370         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
32371         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
32372         * lib/isnanl-nolibm.h (isnanl): Likewise.
32373         Reported by Paul Eggert <eggert@cs.ucla.edu>.
32374
32375 2008-01-26  Bruno Haible  <bruno@clisp.org>
32376
32377         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
32378         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
32379
32380 2008-01-26  Bruno Haible  <bruno@clisp.org>
32381
32382         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
32383         GCC >= 4.0 built-in.
32384         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
32385
32386 2008-01-26  Bruno Haible  <bruno@clisp.org>
32387
32388         Rename isnan, applicable to 'double' only, to isnand.
32389         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
32390         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
32391         (configure.ac): Update.
32392         (Include): Replace "isnan.h" with "isnand.h".
32393         * m4/isnand.m4: Renamed from m4/isnan.m4.
32394         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
32395         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
32396         instead of isnan.c.
32397         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
32398         instead of HAVE_ISNAN_IN_LIBC.
32399         (isnand): Renamed from isnan.
32400         * lib/isnand.c: New file.
32401         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
32402         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
32403         (Makefile.am): Update.
32404         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
32405         Include isnand.h instead of isnan.h.
32406         (main): Test isnand instead of isnan.
32407         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
32408         isnan-nolibm.
32409         * modules/frexp (Depends-on): Likewise.
32410         * modules/frexp-tests (Depends-on): Likewise.
32411         * modules/frexp-nolibm (Depends-on): Likewise.
32412         * modules/frexp-nolibm-tests (Depends-on): Likewise.
32413         * modules/isfinite (Depends-on): Likewise.
32414         * modules/round-tests (Depends-on): Likewise.
32415         * modules/signbit (Depends-on): Likewise.
32416         * modules/signbit-tests (Depends-on): Likewise.
32417         * modules/snprintf-posix (Depends-on): Likewise.
32418         * modules/sprintf-posix (Depends-on): Likewise.
32419         * modules/trunc-tests (Depends-on): Likewise.
32420         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
32421         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32422         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32423         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32424         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32425         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32426         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32427         * modules/vasnprintf-posix (Depends-on): Likewise.
32428         * modules/vasprintf-posix (Depends-on): Likewise.
32429         * modules/vfprintf-posix (Depends-on): Likewise.
32430         * modules/vsnprintf-posix (Depends-on): Likewise.
32431         * modules/vsprintf-posix (Depends-on): Likewise.
32432         * lib/frexp.c: Include isnand.h instead of isnan.h.
32433         (ISNAN): Set to isnand instead of isnan.
32434         * lib/isfinite.c: Include isnand.h instead of isnan.h.
32435         (gl_isfinited): Use isnand instead of isnan.
32436         * lib/signbitd.c: Include isnand.h instead of isnan.h.
32437         (gl_signbitd): Use isnand instead of isnan.
32438         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
32439         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
32440         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
32441         (main): Use isnand instead of isnan.
32442         * tests/test-round1.c: Include isnand.h.
32443         (main): Use isnand instead of isnan.
32444         * tests/test-round2.c: Include isnand.h instead of isnan.h.
32445         (ISNAN): Set to isnand instead of isnan.
32446         * tests/test-trunc1.c: Include isnand.h.
32447         (main): Use isnand instead of isnan.
32448         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
32449         (equal): Use isnand instead of isnan.
32450         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
32451         isnand-nolibm.
32452         * NEWS: Mention the change.
32453
32454 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
32455             Bruno Haible  <bruno@clisp.org>
32456
32457         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
32458         the GCC builtins for signbits are present and set
32459         REPLACE_SIGNBIT_USING_GCC if so.
32460         * lib/math.in.h (signbit): Define using GCC builtins if
32461         REPLACE_SIGNBIT_USING_GCC is set.
32462         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
32463         REPLACE_SIGNBIT_USING_GCC.
32464         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
32465
32466 2008-01-25  Jim Meyering  <meyering@redhat.com>
32467
32468         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
32469         * lib/poll.c: Include <config.h>, not "config.h".
32470         * tests/test-getaddrinfo.c: Likewise.
32471
32472 2008-01-25  Simon Josefsson  <simon@josefsson.org>
32473
32474         * modules/sockets-tests: New file.
32475
32476 2008-01-24  Simon Josefsson  <simon@josefsson.org>
32477
32478         * modules/sockets: New module, can be used to call WSA_Startup and
32479         WSA_Cleanup when needed.
32480
32481         * lib/sockets.h, lib/sockets.c: New files.
32482
32483         * m4/sockets.m4: New file.
32484
32485         * tests/test-sockets.c: New file.
32486
32487 2008-01-19  Bruno Haible  <bruno@clisp.org>
32488
32489         * doc/posix-headers: Renamed from doc/headers.
32490         * doc/posix-functions: Renamed from doc/functions.
32491         * doc/gnulib.texi: Update.
32492
32493 2008-01-19  Bruno Haible  <bruno@clisp.org>
32494
32495         * doc/glibc-functions/strcasestr.texi: Include contents of
32496         doc/functions/strcasestr.texi, fixing the list of platforms.
32497         * doc/functions/strcasestr.texi: Remove file.
32498
32499 2008-01-19  Bruno Haible  <bruno@clisp.org>
32500
32501         * doc/glibc-functions/memmem.texi: Include contents of
32502         doc/functions/memmem.texi.
32503         * doc/functions/memmem.texi: Remove file.
32504
32505 2008-01-18  Bruno Haible  <bruno@clisp.org>
32506
32507         * doc/glibc-functions/*.texi: New files.
32508         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
32509         to use the new files.
32510
32511 2008-01-17  Bruno Haible  <bruno@clisp.org>
32512
32513         * tests/test-gethostname.c (main): Fix printf statement.
32514
32515 2008-01-17  Simon Josefsson  <simon@josefsson.org>
32516
32517         * modules/gethostname-tests: New file.
32518
32519         * tests/test-gethostname.c: New file.
32520
32521 2008-01-17  Simon Josefsson  <simon@josefsson.org>
32522
32523         * lib/gethostname.c: Include string.h unconditionally, strncpy is
32524         used by the UNAME case.  Reported by Bruno Haible
32525         <bruno@clisp.org>.
32526
32527 2008-01-17  Eric Blake  <ebb9@byu.net>
32528
32529         Convert c-strcasestr to be more efficient.
32530         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
32531         (Depends-on): Add c-strcase, remove malloca, strnlen.
32532         * tests/test-c-strcasestr.c (main): Enhance test.
32533         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
32534
32535 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
32536
32537         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
32538         Use it in creating po/Makevars.
32539
32540 2008-01-15  Simon Josefsson  <simon@josefsson.org>
32541
32542         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
32543         Applications that requires it should initialize libgcrypt
32544         manually.
32545
32546 2008-01-16  Simon Josefsson  <simon@josefsson.org>
32547
32548         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
32549
32550 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
32551
32552         Fix problem with getdate on mingw32 reported by Simon Josefsson
32553         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
32554         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
32555         tzname", when deciding whether to declare tzname.
32556         * lib/strftime.c (tzname): Likewise.
32557
32558 2008-01-15  Bruno Haible  <bruno@clisp.org>
32559
32560         Work around a MacOS X 10.5 bug in frexpl().
32561         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
32562         * doc/functions/frexpl.texi: Document the bug.
32563         Reported by Elias Pipping <pipping@gentoo.org>.
32564
32565 2008-01-14  Eric Blake  <ebb9@byu.net>
32566
32567         Touch up previous patch.
32568         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
32569         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
32570
32571         Convert strcasestr module to use Two-Way algorithm.
32572         * modules/strcasestr-simple: New module, based on the old
32573         strcasestr, but with Two-Way rather than KMP.
32574         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
32575         * lib/string.in.h (rpl_strcasestr): Declare.
32576         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
32577         performance.
32578         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
32579         * modules/string (Makefile.am): Support strcasestr.
32580         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
32581         * modules/strcasestr-tests (Depends-on): Check for alarm.
32582         * tests/test-strcasestr.c: Augment test.
32583         * lib/str-two-way.h: Clean up stray macro.
32584         * NEWS: Document new module.
32585         * MODULES.html.sh (string handling): Likewise.
32586         * doc/functions/strcasestr.texi: New file.
32587         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
32588         here, since it is not a POSIX function.
32589
32590 2008-01-14  Colin Watson  <cjwatson@debian.org>
32591             Bruno Haible  <bruno@clisp.org>
32592
32593         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
32594         works fine; if not, set REPLACE_STRSIGNAL.
32595         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
32596         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32597         REPLACE_STRSIGNAL.
32598         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
32599         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
32600         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
32601
32602 2008-01-14  Bruno Haible  <bruno@clisp.org>
32603
32604         * modules/strsignal (Include): Change to <string.h>.
32605
32606 2008-01-14  Colin Watson  <cjwatson@debian.org>
32607
32608         * modules/argp (Notice): Add a notice recommending to change
32609         XGETTEXT_OPTIONS.
32610         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
32611
32612 2008-01-13  Colin Watson  <cjwatson@debian.org>
32613
32614         * modules/strsignal-tests: New file.
32615         * tests/test-strsignal.c: New file.
32616
32617         * lib/strsignal.c: New file, from glibc with modifications.
32618         * lib/siglist.h: New file, from glibc with modifications.
32619         * lib/string.in.h (strsignal): New declaration.
32620         * m4/strsignal.m4: New file.
32621         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32622         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
32623         * modules/strsignal: New file.
32624         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
32625         HAVE_DECL_STRSIGNAL.
32626
32627 2008-01-13  Bruno Haible  <bruno@clisp.org>
32628
32629         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
32630         locale encoding is not ASCII. Needed for OpenBSD 4.0.
32631         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
32632         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
32633
32634 2008-01-13  Bruno Haible  <bruno@clisp.org>
32635
32636         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
32637         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
32638         * lib/argp.h (__attribute__): Likewise.
32639         * lib/c-stack.c (__attribute__): Likewise.
32640         * lib/error.h (__attribute__): Likewise.
32641         * lib/fts.c (__attribute__): Likewise.
32642         * lib/openat.h (__attribute__): Likewise.
32643         * lib/stdio.in.h (__attribute__): Likewise.
32644         * lib/string.in.h (__attribute__): Likewise.
32645         * lib/utimens.c (__attribute__): Likewise.
32646         * lib/vasnprintf.h (__attribute__): Likewise.
32647         * lib/xalloc.h (__attribute__): Likewise.
32648         * lib/xprintf.h (__attribute__): Likewise.
32649         * lib/xstrtol.h (__attribute__): Likewise.
32650         * lib/xvasprintf.h (__attribute__): Likewise.
32651
32652 2008-01-12  Bruno Haible  <bruno@clisp.org>
32653
32654         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
32655         * doc/glibc-headers/a.out.texi: New file.
32656         * doc/glibc-headers/aliases.texi: New file.
32657         * doc/glibc-headers/alloca.texi: New file.
32658         * doc/glibc-headers/ar.texi: New file.
32659         * doc/glibc-headers/argp.texi: New file.
32660         * doc/glibc-headers/argz.texi: New file.
32661         * doc/glibc-headers/byteswap.texi: New file.
32662         * doc/glibc-headers/crypt.texi: New file.
32663         * doc/glibc-headers/endian.texi: New file.
32664         * doc/glibc-headers/envz.texi: New file.
32665         * doc/glibc-headers/err.texi: New file.
32666         * doc/glibc-headers/error.texi: New file.
32667         * doc/glibc-headers/execinfo.texi: New file.
32668         * doc/glibc-headers/fpu_control.texi: New file.
32669         * doc/glibc-headers/fstab.texi: New file.
32670         * doc/glibc-headers/fts.texi: New file.
32671         * doc/glibc-headers/getopt.texi: New file.
32672         * doc/glibc-headers/ieee754.texi: New file.
32673         * doc/glibc-headers/ifaddrs.texi: New file.
32674         * doc/glibc-headers/libintl.texi: New file.
32675         * doc/glibc-headers/mcheck.texi: New file.
32676         * doc/glibc-headers/mntent.texi: New file.
32677         * doc/glibc-headers/obstack.texi: New file.
32678         * doc/glibc-headers/paths.texi: New file.
32679         * doc/glibc-headers/printf.texi: New file.
32680         * doc/glibc-headers/pty.texi: New file.
32681         * doc/glibc-headers/resolv.texi: New file.
32682         * doc/glibc-headers/shadow.texi: New file.
32683         * doc/glibc-headers/sysexits.texi: New file.
32684         * doc/glibc-headers/ttyent.texi: New file.
32685
32686 2008-01-12  Jim Meyering  <meyering@redhat.com>
32687
32688         announce-gen: emit Gnulib's git-based version string.
32689         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
32690         New option --gnulib-version=V, where V is expected to be
32691         the output of running git describe in the gnulib directory.
32692         (get_tool_versions): Request feedback on xdelta.  I suspect it's
32693         not useful, and plan to stop publishing an xdelta file with each
32694         coreutils release.
32695
32696         * build-aux/announce-gen: Also check for lzma-compressed files.
32697
32698 2008-01-11  Bruno Haible  <bruno@clisp.org>
32699
32700         * tests/test-memmem.c (main): Increase maximum allowed time.
32701         * tests/test-strstr.c (main): Likewise.
32702
32703 2008-01-11  Bruno Haible  <bruno@clisp.org>
32704
32705         * doc/functions/memmem.texi: Add more precisions about platforms.
32706         * doc/functions/strstr.texi: Likewise.
32707
32708 2008-01-10  Eric Blake  <ebb9@byu.net>
32709
32710         * m4/strstr.m4: Delete cruft from copy-n-paste.
32711         Reported by Bruno Haible.
32712
32713 2008-01-10  Bruno Haible  <bruno@clisp.org>
32714
32715         Make c-strstr rely on strstr.
32716         * lib/c-strstr.c: Don't include str-kmp.h.
32717         (c_strstr): Define in terms of strstr.
32718         * modules/c-strstr (Files): Remove lib/str-kmp.h.
32719         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
32720
32721 2008-01-10  Bruno Haible  <bruno@clisp.org>
32722
32723         * doc/gnulib.texi (String Functions in C Locale): New section.
32724         * doc/c-ctype.texi: New file.
32725         * doc/c-strcase.texi: New file.
32726         * doc/c-strcaseeq.texi: New file.
32727         * doc/c-strcasestr.texi: New file.
32728         * doc/c-strstr.texi: New file.
32729         * doc/c-strtod.texi: New file.
32730         * doc/c-strtold.texi: New file.
32731
32732 2008-01-10  Eric Blake  <ebb9@byu.net>
32733
32734         * lib/relocatable.h: Fix a comment.
32735
32736 2008-01-10  Eric Blake  <ebb9@byu.net>
32737
32738         Share two-way algorithm.
32739         * lib/str-two-way.h: New file, merged from...
32740         * lib/memmem.c: ...here...
32741         * lib/strstr.c: ...and here.
32742         * modules/memmem (Files): Use it.
32743         * modules/strstr (Files): Likewise.
32744
32745         Avoid quadratic strstr implementations.
32746         * lib/strstr.c: New file.
32747         * m4/strstr.m4: Likewise.
32748         * modules/strstr: Likewise.
32749         * modules/strstr-tests: Likewise.
32750         * tests/test-strstr.c: Likewise.
32751         * lib/string.in.h (rpl_strstr): Declare.
32752         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
32753         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
32754         * modules/string (Makefile.am): Likewise.
32755         * MODULES.html.sh (string handling): Mention new module.
32756         * doc/functions/strstr.texi (strstr): Document the bug.
32757
32758 2008-01-10  Bruno Haible  <bruno@clisp.org>
32759
32760         * lib/relocatable.h (relocate): State whether result is freshly
32761         allocated or not.
32762         * lib/relocatable.c (relocate): Return a freshly allocated string
32763         instead of a pointer to a privately held string.
32764         Reported by Sylvain Beucler <beuc@gnu.org>.
32765
32766 2008-01-10  Colin Watson  <cjwatson@debian.org>
32767
32768         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
32769         s/S_ISNLK/S_ISLNK/.
32770
32771 2008-01-09  Bruno Haible  <bruno@clisp.org>
32772
32773         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
32774         and other files.
32775         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
32776         if it's only a guess.
32777         * modules/memmem: Simplify by depending on memmem-simple.
32778
32779 2008-01-09  Bruno Haible  <bruno@clisp.org>
32780
32781         Work around OpenBSD 4.0 tdelete() bug.
32782         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
32783         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
32784         macros and don't redefine the enum values.
32785         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
32786         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
32787         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
32788
32789 2008-01-09  Bruno Haible  <bruno@clisp.org>
32790
32791         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
32792         (main): Don't perform the tests if setlocale did not install a UTF-8
32793         locale. Needed on OpenBSD 4.0.
32794         * modules/wcwidth-tests (Depends-on): Add localcharset.
32795
32796 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
32797
32798         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
32799         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
32800         * NEWS: announce this.
32801         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
32802
32803 2008-01-09  Simon Josefsson  <simon@josefsson.org>
32804         and Eric Blake  <ebb9@byu.net>
32805
32806         Add memmem-simple module.
32807         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
32808         (gl_FUNC_MEMMEM): Separate performance from presence checks.
32809         * modules/memmem-simple: New file.
32810         * modules/memmem (Description): Tweak.
32811         * MODULES.html.sh (string handling): Mention new module.
32812         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
32813         addressed by memmem-simple.
32814         * NEWS: Document the difference.
32815
32816 2008-01-09  Eric Blake  <ebb9@byu.net>
32817
32818         Give gcc some memmem optimization hints.
32819         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
32820         (strcasestr): Declare as pure.
32821         * modules/memmem (Maintainer): Claim my implementation.
32822
32823 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32824
32825         Support AIX 6.1 and higher.
32826         * build-aux/config.libpath: Likewise.
32827         * build-aux/config.rpath: Likewise.
32828
32829 2008-01-08  Jim Meyering  <meyering@redhat.com>
32830             Bruno Haible  <bruno@clisp.org>
32831
32832         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
32833         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
32834         Reported by Peter Fales in
32835         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
32836
32837 2008-01-08  Bruno Haible  <bruno@clisp.org>
32838
32839         * modules/unictype/category-of (Depends-on): Add
32840         unictype/category-none.
32841         * modules/unictype/category-and-tests (Depends-on): Add
32842         unictype/category-{L,N,Lu,Nd}.
32843         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
32844         * modules/unictype/category-or-tests (Depends-on): Add
32845         unictype/category-{L,N}.
32846         * modules/unictype/category-name-tests (Depends-on): Add
32847         unictype/category-{Z,Nl}.
32848         Reported by Simon Josefsson.
32849
32850 2008-01-08  Bruno Haible  <bruno@clisp.org>
32851
32852         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
32853         convention better.
32854         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
32855         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
32856         Reported by Peter Miller <millerp@canb.auug.org.au>.
32857
32858 2008-01-08  Eric Blake  <ebb9@byu.net>
32859
32860         Rewrite memmem to guarantee linear complexity without malloc.
32861         * lib/memmem.c (memmem): Use Two-Way rather than
32862         Knuth-Morris-Pratt, to allow O(1) space usage.
32863         (critical_factorization, two_way_short_needle)
32864         (two_way_long_needle): New functions.
32865         (knuth_morris_pratt): Delete.
32866         * modules/memmem (Depends-on): No longer need malloca or stdbool.
32867         Add stdint.
32868         * tests/test-memmem.c (main): Add tests for periodic needle and
32869         sublinear performance.
32870         * doc/functions/memmem.texi (memmem): Document other deficiencies
32871         in cygwin and older glibc.
32872
32873 2008-01-08  Bruno Haible  <bruno@clisp.org>
32874
32875         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
32876         augmentation.
32877
32878 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
32879
32880         Add a configure time option: --disable-acl.
32881         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
32882         AC_ARG_ENABLE(acl).
32883
32884 2008-01-06  Simon Josefsson  <simon@josefsson.org>
32885
32886         * tests/test-localename.c: Don't include obsolete "setenv.h".
32887
32888         * modules/localename-tests (Depends-on): Need unsetenv.
32889
32890 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32891
32892         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
32893
32894 2008-01-06  Colin Watson  <cjwatson@debian.org>
32895
32896         * users.txt: Add man-db.
32897
32898 2008-01-07  Bruno Haible  <bruno@clisp.org>
32899
32900         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
32901         previous section name.
32902
32903 2008-01-07  Bruno Haible  <bruno@clisp.org>
32904
32905         * lib/progname.c (set_program_name): Don't strip off a leading
32906         "lt-" prefix outside a .libs directory.
32907         Suggested by Paul Eggert.
32908
32909 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
32910             Bruno Haible  <bruno@clisp.org>
32911
32912         Improve memory cleanup in 'relocatable' module.
32913         * lib/relocatable.h (compute_curr_prefix): Change return type to
32914         'char *'.
32915         * lib/relocatable.c (compute_curr_prefix): Change return type to
32916         'char *'. Free curr_installdir after use.
32917         (relocate): Free curr_prefix_better after use.
32918         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
32919
32920 2008-01-01  Bruno Haible  <bruno@clisp.org>
32921
32922         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
32923         failure on older glibc systems.
32924         Reported by Peter Fales <psfales@alcatel-lucent.com>.
32925
32926 2008-01-05  Eric Blake  <ebb9@byu.net>
32927
32928         Avoid quadratic system memmem.
32929         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
32930         Reported by Ralf Wildenhues.
32931
32932         Fix memmem test for mingw.
32933         * modules/memmem-tests (configure.ac): Check for alarm.
32934         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
32935         it.
32936         * doc/functions/memmem.texi: New file.
32937         * doc/gnulib.texi (Function Substitutes): Add memmem.
32938         Reported by Bruno Haible.
32939
32940 2008-01-04  Bruno Haible  <bruno@clisp.org>
32941
32942         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
32943         Require gl_HEADER_STRINGS_H_DEFAULTS, not
32944         gl_HEADER_STRING_H_DEFAULTS.
32945
32946 2008-01-04  Eric Blake  <ebb9@byu.net>
32947
32948         Shorten duration of memmem test.
32949         * tests/test-memmem.c (main): Use alarm to declare failure if test
32950         is taking too long.
32951         Reported by Ralf Wildenhues.
32952
32953 2007-12-21  Simon Josefsson  <simon@josefsson.org>
32954
32955         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
32956         string, needed by strerror.
32957
32958 2008-01-03  Colin Watson  <cjwatson@debian.org>
32959             Bruno Haible  <bruno@clisp.org>
32960
32961         * doc/gnulib-tool.texi (Localization): New section.
32962
32963 2008-01-02  Bruno Haible  <bruno@clisp.org>
32964
32965         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
32966         variables to 'unsigned char *' type.
32967         Reported by Paul Eggert.
32968
32969 2008-01-02  Jim Meyering  <jim@meyering.net>
32970
32971         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
32972
32973 2007-12-31  Jim Meyering  <jim@meyering.net>
32974
32975         Avoid use of private FTS type name.
32976         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
32977
32978 2007-12-30  Karl Berry  <karl@gnu.org>
32979
32980         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
32981         work around defect in Texinfo and/or the standalone Info browser.
32982
32983 2007-12-30  Bruno Haible  <bruno@clisp.org>
32984
32985         Unify 5 copies of the KMP code.
32986         * lib/str-kmp.h: New file.
32987         * lib/c-strcasestr.c: Include str-kmp.h.
32988         (knuth_morris_pratt): Remove function.
32989         (c_strcasestr): Update.
32990         * lib/c-strstr.c: Include str-kmp.h.
32991         (knuth_morris_pratt): Remove function.
32992         (c_strcasestr): Update.
32993         * lib/mbscasestr.c: Include str-kmp.h.
32994         (knuth_morris_pratt_unibyte): Remove function.
32995         * lib/mbsstr.c: Include str-kmp.h.
32996         (knuth_morris_pratt_unibyte): Remove function.
32997         * lib/strcasestr.c: Include str-kmp.h.
32998         (knuth_morris_pratt): Remove function.
32999         (strcasestr): Update.
33000         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
33001         * modules/c-strstr (Files): Likewise.
33002         * modules/mbscasestr (Files): Likewise.
33003         * modules/mbsstr (Files): Likewise.
33004         * modules/strcasestr (Files): Likewise.
33005         Suggested by Paul Eggert.
33006
33007 2007-12-30  Bruno Haible  <bruno@clisp.org>
33008
33009         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
33010         defined.
33011
33012 2007-12-30  Bruno Haible  <bruno@clisp.org>
33013
33014         * lib/xmalloca.h: Include xalloc.h.
33015         (xnmalloca): New macro.
33016
33017 2007-12-30  Bruno Haible  <bruno@clisp.org>
33018
33019         * lib/malloca.h (nmalloca): New macro.
33020         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
33021         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
33022         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
33023         knuth_morris_pratt_multibyte): Likewise.
33024         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
33025         knuth_morris_pratt_multibyte): Likewise.
33026         * lib/memmem.c (knuth_morris_pratt): Likewise.
33027         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
33028
33029 2007-12-25  Bruno Haible  <bruno@clisp.org>
33030
33031         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
33032         * lib/glob.c: Don't include openat.h.
33033         (link_exists2_p): Add back the code that deals with the
33034         !GLOB_ALTDIRFUNC case.
33035         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
33036         let it do the filename concatenation.
33037         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
33038         * modules/glob (Depends-on): Remove openat.
33039
33040 2007-12-31  Bruno Haible  <bruno@clisp.org>
33041
33042         * modules/dirfd (License): Change to LGPLv2+.
33043         Approved by Jim Meyering.
33044
33045 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
33046
33047         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
33048         when multiplying M by sizeof (size_t).
33049
33050 2007-12-10  Martin Lambers  <marlam@marlam.de>
33051
33052         Override getpagesize on mingw.
33053         * lib/getpagesize.c: New file.
33054         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
33055         * modules/getpagesize (Files): Add lib/getpagesize.c.
33056         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
33057         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33058         REPLACE_GETPAGESIZE.
33059         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
33060
33061 2007-12-25  Bruno Haible  <bruno@clisp.org>
33062
33063         * modules/localcharset (Notice): New field.
33064         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
33065         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
33066
33067 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
33068             Bruno Haible  <bruno@clisp.org>
33069
33070         Avoid using the syntax symbol() in formatted documentation.
33071         * MODULES.html.sh (func_module): When replacing symbol() with a
33072         hyperlink, remove the parentheses. Show an error if some remain.
33073         Recognize and render the '...' syntax.
33074         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
33075         Rework. Add paragraph about GCC's inlining.
33076         * doc/alloca.texi: Likewise.
33077         * doc/error.texi: Remove parentheses from symbol reference.
33078         * doc/gnulib-intro.texi: Likewise.
33079         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
33080         * modules/fnmatch (Description): Reword to say "the ... function".
33081         * modules/full-read (Description): Likewise.
33082         * modules/full-write (Description): Likewise.
33083         * modules/safe-read (Description): Likewise.
33084         * modules/safe-write (Description): Likewise.
33085         * modules/strchrnul (Description): Likewise.
33086         * modules/trim (Description): Likewise.
33087         * modules/error (Description): Remove parentheses from symbol
33088         references.
33089         * modules/verror (Description): Likewise.
33090         Reported by Karl Berry.
33091
33092 2007-12-25  Bruno Haible  <bruno@clisp.org>
33093
33094         Fixup after 2007-10-16 commit.
33095         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
33096
33097 2007-12-24  Bruno Haible  <bruno@clisp.org>
33098
33099         Make --enable-relocatable work with DESTDIR.
33100         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
33101         to compute installdir from destprog.
33102         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
33103         also set the RELOC_DESTDIR variable.
33104         Reported by Левашев Иван <octagram@bluebottle.com>.
33105
33106 2007-12-24  Bruno Haible  <bruno@clisp.org>
33107
33108         Fix link error due to xalloc_die().
33109         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
33110         of xreadlink.
33111         * lib/relocwrapper.c: Update comments.
33112         * build-aux/install-reloc: Remove xreadlink.c from file list.
33113         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
33114         xreadlink.c.
33115         Reported by Левашев Иван <octagram@bluebottle.com>.
33116
33117 2007-12-24  Bruno Haible  <bruno@clisp.org>
33118
33119         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
33120         * lib/setenv.h: Remove file.
33121         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
33122         lib/setenv.h.
33123         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
33124         (Depends-on): Add stdlib.
33125         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
33126         gl_FUNC_UNSETENV.
33127         (Include): Replace setenv.h with <stdlib.h>.
33128         * modules/unsetenv: New file.
33129         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
33130         * lib/unsetenv.c: Include <stdlib.h> first.
33131         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
33132         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
33133         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
33134         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
33135         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
33136         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
33137         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
33138         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
33139         * doc/functions/unsetenv.texi: Update.
33140         * modules/xsetenv (Depends-on): Add unsetenv.
33141         * modules/getdate (Depends-on): Likewise.
33142         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
33143         * lib/xsetenv.c: Don't include setenv.h.
33144         * lib/getdate.y: Likewise.
33145         * lib/relocwrapper.c: Likewise.
33146         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
33147         (Depends-on): Add stdlib.
33148         * NEWS: Mention the changes.
33149         Reported by Левашев Иван <octagram@bluebottle.com>.
33150
33151 2007-12-23  Bruno Haible  <bruno@clisp.org>
33152
33153         * lib/memmem.c (memmem): Use lowercase variable names. Tab
33154         indentation.
33155
33156 2007-12-23  Bruno Haible  <bruno@clisp.org>
33157
33158         * lib/c-strcasestr.c: Add more comments.
33159         * lib/c-strstr.c: Likewise.
33160         * lib/mbscasestr.c: Likewise.
33161         * lib/mbsstr.c: Likewise.
33162         * lib/strcasestr.c: Likewise.
33163         * lib/memmem.c: Likewise.
33164
33165 2007-12-23  Bruno Haible  <bruno@clisp.org>
33166
33167         * tests/test-memmem.c: Include <string.h> first.
33168
33169 2007-12-22  Bruno Haible  <bruno@clisp.org>
33170
33171         * gnulib-tool (func_create_testdir): Change $auxdir while generating
33172         the contents of $testsbase.
33173         Reported by Ralf Wildenhues.
33174
33175 2007-12-22  Bruno Haible  <bruno@clisp.org>
33176
33177         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
33178         two variables local_ldadd_before, local_ldadd_last.
33179
33180 2007-12-20  Eric Blake  <ebb9@byu.net>
33181
33182         Work around circular library issue when cross-compiling.
33183         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
33184         that progname.o does not need to pull in rpl_memcmp.
33185
33186 2007-12-19  Eric Blake  <ebb9@byu.net>
33187
33188         Fix memmem to avoid O(n^2) worst-case complexity.
33189         * lib/memmem.c (knuth_morris_pratt): New function.
33190         (memmem): Use it if first few naive iterations fail.
33191         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
33192         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
33193         * modules/memchr (License): Likewise.
33194         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
33195         malloca.
33196         * tests/test-memmem.c: Rewrite, borrowing ideas from
33197         test-mbsstr1.c; the old version wouldn't even compile!
33198         * modules/memmem-tests: New file.
33199         * lib/string.in.h (rpl_memmem): Add declaration.
33200         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
33201         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
33202         REPLACE_MEMMEM.
33203
33204 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
33205
33206         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
33207         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
33208         before any system include files, and undef after them all.  This
33209         should fix a problem on VMS reported by John E. Malmberg in
33210         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
33211
33212 2007-12-17  Eric Blake  <ebb9@byu.net>
33213
33214         Revert addition of verify, for BSD/OS.
33215         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
33216         can't handle large files, for the sake of obsolete platforms.
33217         * modules/fseeko (Depends-on): Remove verify.
33218         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
33219         * doc/functions/ftello.texi (ftello): Likewise.
33220         * doc/functions/fgetpos.texi (fgetpos): Likewise.
33221         Reported by Larry Jones.
33222
33223 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
33224
33225         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
33226         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
33227
33228 2007-12-17  Jim Meyering  <meyering@redhat.com>
33229
33230         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
33231         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
33232         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
33233         * modules/getcwd (Depends-on): Add openat.
33234         Reported by Petr Salinger.
33235
33236 2007-12-17  Bruno Haible  <bruno@clisp.org>
33237
33238         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
33239         avoid a segmentation fault of the configure test on x86_64 systems.
33240
33241 2007-12-15  Jim Meyering  <meyering@redhat.com>
33242
33243         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
33244
33245 2007-12-13  Eric Blake  <ebb9@byu.net>
33246
33247         Another fseek test.
33248         * tests/test-fseek.c (main): Also test ungetc handling.
33249         * tests/test-fseeko.c (main): Likewise.
33250         * modules/fseeko (Depends-on): Add verify.
33251         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
33252         large.
33253         Reported by Larry Jones.
33254
33255         Fix fseeko on mingw.
33256         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
33257         seek.
33258
33259         Beef up fseek tests.
33260         * tests/test-fseek.c (main): Also test eof handling.
33261         * tests/test-fseeko.c (main): Likewise.
33262         Reported by Larry Jones.
33263
33264 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
33265
33266         Fix fseeko on BSD-based platforms.
33267         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
33268         successful seek.
33269
33270 2007-12-12  Eric Blake  <ebb9@byu.net>
33271
33272         Allow circular dependency of separate libtests.a
33273         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
33274         when use_libtests.
33275
33276 2007-12-11  Eric Blake  <ebb9@byu.net>
33277
33278         Fix bug with -0.0L in previous patch.
33279         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
33280         * tests/test-isnan.c (main): Also test on zeroes.
33281         * tests/test-isnanf.c (main): Likewise.
33282         * tests/test-isnanl.h (main): Likewise.
33283
33284         Detect pseudo-denormals on x86 even when cross-compiling.
33285         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
33286         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
33287         invalid bit patterns that happen to satisfy ==.
33288
33289         Avoid link failures with separate libtests.a.
33290         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
33291         last, to satisfy circular dependencies.
33292
33293 2007-12-11  Eric Blake  <ebb9@byu.net>
33294         and Bruno Haible  <bruno@clisp.org>
33295
33296         Fix OpenBSD 4.0 <float.h> handling of long double.
33297         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
33298         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
33299         * doc/headers/float.texi (float.h): Document OpenBSD bug.
33300
33301 2007-12-11  Jim Meyering  <meyering@redhat.com>
33302
33303         * users.txt: Add libvirt.
33304
33305         Support versions of autoconf prior to 2.59c.
33306         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
33307         if it is not already defined.
33308
33309 2007-12-09  Bruno Haible  <bruno@clisp.org>
33310
33311         Let 'gnulib-tool --import' collect sources needed for the tests in
33312         tests/ rather than in lib/.
33313         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
33314         argument. If true, add rules to generate libtests.a, and put libtests.a
33315         into $(LDADD). Consider source files in subdirectories and set
33316         uses_subdirs.
33317         (func_emit_initmacro_start, func_emit_initmacro_end,
33318         func_emit_initmacro_done): Pass all arguments explicitly.
33319         (func_import): Determine two module lists main_modules,
33320         testsrelated_modules. Determine use_libtests. Determine two variables
33321         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
33322         instead of just sed_transform_lib_file. Determine two variables
33323         main_files and testsrelated_files. Compute 'files' as the union of
33324         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
33325         func_add_or_update. In the generated gnulib-comp.m4, collect the
33326         object files for tests/ in different variables than those for lib/.
33327         Substitute LIBTESTS_LIBDEPS.
33328         (func_create_testdir): Combine the uses_subdirs results from
33329         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
33330
33331 2007-12-09  Bruno Haible  <bruno@clisp.org>
33332
33333         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
33334         the build-aux directory.
33335
33336 2007-12-09  Bruno Haible  <bruno@clisp.org>
33337
33338         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
33339         introduced on 2006-09-09.
33340
33341 2007-12-07  Jim Meyering  <meyering@redhat.com>
33342
33343         Let these macros work also with autoconf-2.59.
33344         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
33345         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
33346         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
33347
33348 2007-12-06  Jim Meyering  <meyering@redhat.com>
33349
33350         Avoid a configure-time syntax error in gl_FUNC_ACL.
33351         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
33352         function in each branch, before testing the cache variable.
33353
33354 2007-12-04  Eric Blake  <ebb9@byu.net>
33355
33356         Make scripts executable.
33357         * build-aux/config.guess: Add execute permissions.
33358         * build-aux/config.sub: Likewise.
33359         * build-aux/gendocs.sh: Likewise.
33360
33361         Fix frexp on mingw.
33362         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
33363         cross-compiling.
33364         * doc/functions/frexp.texi (frexp): Document the bug.
33365
33366         Make cygwin fseeko check more reliable.
33367         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
33368         version numbers, rather than unrelated feature check.
33369         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
33370         * doc/functions/ftello.texi (ftello): Likewise.
33371         Reported by Bruno Haible.
33372
33373         * m4/strerror.m4: Bump version number.
33374
33375 2007-12-03  Bruno Haible  <bruno@clisp.org>
33376
33377         * doc/functions/mprotect.texi: Mention the mingw problem.
33378
33379 2007-12-03  Eric Blake  <ebb9@byu.net>
33380
33381         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
33382         REPLACE_STRERROR is initialized before this macro.
33383
33384 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
33385
33386         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
33387         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
33388         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
33389         put -lsec in even for programs other than 'ls'.  This fixes a problem
33390         for gettext reported by Bruno Haible in
33391         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
33392         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
33393         Add support for Solaris 10.  This isn't efficient, but should get the
33394         job done for now.
33395
33396 2007-12-03  James Youngman  <jay@gnu.org>
33397
33398         * doc/regexprops-generic.texi: change "an close-group" to "a
33399         close-group" and "illegal" to "not allowed".
33400
33401 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33402
33403         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
33404         pr_byname.h. Needed for the rare case when the maintainer has done
33405         "make maintainer-clean" in the source directory and then attempts a
33406         build outside the source directory.
33407         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
33408         scripts_byname.h.
33409
33410 2007-12-02  Martin Lambers <marlam@marlam.de>
33411             Bruno Haible  <bruno@clisp.org>
33412
33413         * lib/getpagesize.h: Remove file.
33414         * lib/unistd.in.h: Include declaration of getpagesize here.
33415         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
33416         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
33417         HAVE_SYS_PARAM_H.
33418         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
33419         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
33420         * modules/getpagesize (Files): Remove lib/getpagesize.h.
33421         (Depends-on): Add unistd.
33422         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33423         (Include): Use <unistd.h> instead of getpagesize.h.
33424         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
33425         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
33426         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
33427         gl_GETPAGESIZE invocation, already handled by module dependency.
33428         * lib/pagealign_alloc.c: Don't include getpagesize.h.
33429
33430 2007-12-02  Bruno Haible  <bruno@clisp.org>
33431
33432         * modules/strings-tests: New file.
33433         * tests/test-strings.c: New file.
33434
33435         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
33436         * lib/strings.in.h: New file.
33437         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
33438         * m4/strings_h.m4: New file.
33439         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
33440         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
33441         * modules/strings: New file.
33442         * modules/string (Makefile.am): Update.
33443         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
33444         Reported by Karl Berry.
33445
33446 2007-12-01  Eric Blake  <ebb9@byu.net>
33447
33448         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
33449         accomodate fix in cygwin 1.5.25.
33450
33451 2007-12-01  Jim Meyering  <meyering@redhat.com>
33452
33453         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
33454         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
33455         that would inhibit utf8-optimization of a regexp containing line-
33456         or buffer-anchors, e.g., `^', `$'.
33457
33458 2007-11-30  Bruno Haible  <bruno@clisp.org>
33459
33460         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
33461         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
33462         glthread_recursive_lock_init.
33463         * lib/lock.c (glthread_recursive_lock_init)
33464         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
33465         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
33466
33467 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
33468
33469         New function qset_acl, like set_acl but with syscall semantics.
33470         * lib/acl.h (qset_acl): New decl.
33471         * lib/acl.c (qset_acl): New function.
33472         (set_acl): Use new function.  Use more-consistent diagnostics.
33473
33474 2007-11-28  Jim Meyering  <meyering@redhat.com>
33475
33476         * modules/physmem (License): Change from GPL to LGPLv2+.
33477
33478 2007-11-26  Bruno Haible  <bruno@clisp.org>
33479
33480         * lib/vasnprintf.c (decode_long_double): Don't abort if the
33481         'long double' type has excess precision.
33482         Reported by Jim Meyering in
33483         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
33484
33485 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33486
33487         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
33488         Sync from <http://gnu.org/licenses>.
33489         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
33490         with license text from same location.
33491         * doc/maintain.texi, doc/standards.texi:  Sync from
33492         <http://savannah.gnu.org/projects/gnustandards>.
33493
33494 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
33495         and Jim Meyering  <meyering@redhat.com>
33496
33497         Adjust getdate' grammar to accept a slightly more regular language.
33498         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
33499         Before, the former was rejected.
33500         * lib/getdate.y (digits_to_date_time): New function, factored
33501         out of ...
33502         (number): ...here.  Just call digits_to_date_time.
33503         (hybrid): New non-terminal to handle an <unsigned number,
33504         signed relative offset> sequence consistently.
33505
33506 2007-11-18  Jim Meyering  <meyering@redhat.com>
33507
33508         Pull my changes from coreutils:
33509         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
33510         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
33511         use of $gnulib_tool_option_extras, so that it's separated from the
33512         preceding argument.
33513
33514         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
33515         * build-aux/bootstrap (cp_mark_as_generated): Create any required
33516         parent destination directories before copying a file into place.
33517
33518 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
33519
33520         bootstrap: work also with 4-argument variant of AC_INIT
33521         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
33522
33523 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
33524
33525         Port test-getaddrinfo to Solaris.
33526         Problem reported by Bruno Haible in
33527         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
33528         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
33529         explanation of setting 'hints'.
33530         Don't reject an implementation merely because it returns EAI_SERVICE.
33531         (EAI_SERVICE): Define to 0 if not defined.
33532
33533 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
33534
33535         The license of gnu-make and posix-shell is now "GPLed build tool".
33536         * modules/gnu-make (License): Likewise.
33537         * modules/posix-shell (License): Likewise.
33538
33539         New module posix-shell, for determining a POSIX shell
33540         or perhaps something that is close enough to a POSIX shell.
33541         * m4/posix-shell.m4: New file.
33542         * modules/posix-shell: New file.
33543
33544         * MODULES.html.sh: Mention new module.
33545
33546         New module gnu-make, for determining whether we're using GNU Make.
33547         * m4/gnu-make.m4: New file.
33548         * modules/gnu-make: New file.
33549         * MODULES.html.sh: Mention new module.
33550
33551 2007-11-14  Jim Meyering  <meyering@redhat.com>
33552
33553         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
33554         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
33555         use this macro to create a function _definition_.
33556         Remove useless "#undef ARGMATCH_DIE".
33557
33558 2007-11-14  Bruno Haible  <bruno@clisp.org>
33559
33560         * lib/config.charset: Update for OpenBSD 4.1.
33561         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
33562
33563 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
33564
33565         Document 64-bit #if problems in stdint.texi.
33566         * doc/headers/stdint.texi (stdint.h): Mention problems with
33567         64-bit-#if, and how to work around them.
33568
33569         Don't insist on 'long long int' support in the preprocessor.  It
33570         breaks too many things.  For example, PRIdMAX still uses a 'long
33571         long int' format with the latest Sun compiler, even though
33572         HAVE_LONG_LONG_INT isn't defined due to that compiler's
33573         preprocessor problem.  This causes the latest coreutils to dump
33574         core on Solaris 10 sparc with the Sun C compiler.
33575         Instead, fix the 2007-10-16 problem in a different way, by evaluating
33576         the troublesome expressions at configure-time, not at #if-time.
33577         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
33578         preprocessor.
33579         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
33580         compile-time C checks, done at 'configure'-time.
33581         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
33582         * modules/inttypes (Makefile): Substitute the new symbols that
33583         gl_INTTYPES_H now generates.
33584         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
33585
33586 2007-11-12  Bruno Haible  <bruno@clisp.org>
33587
33588         Tests for Unicode character classification functions.
33589
33590         * modules/unictype/bidicategory-byname-tests: New file.
33591         * modules/unictype/bidicategory-name-tests: New file.
33592         * modules/unictype/bidicategory-of-tests: New file.
33593         * modules/unictype/bidicategory-test-tests: New file.
33594         * modules/unictype/block-list-tests: New file.
33595         * modules/unictype/block-of-tests: New file.
33596         * modules/unictype/block-test-tests: New file.
33597         * modules/unictype/category-C-tests: New file.
33598         * modules/unictype/category-Cc-tests: New file.
33599         * modules/unictype/category-Cf-tests: New file.
33600         * modules/unictype/category-Cn-tests: New file.
33601         * modules/unictype/category-Co-tests: New file.
33602         * modules/unictype/category-Cs-tests: New file.
33603         * modules/unictype/category-L-tests: New file.
33604         * modules/unictype/category-Ll-tests: New file.
33605         * modules/unictype/category-Lm-tests: New file.
33606         * modules/unictype/category-Lo-tests: New file.
33607         * modules/unictype/category-Lt-tests: New file.
33608         * modules/unictype/category-Lu-tests: New file.
33609         * modules/unictype/category-M-tests: New file.
33610         * modules/unictype/category-Mc-tests: New file.
33611         * modules/unictype/category-Me-tests: New file.
33612         * modules/unictype/category-Mn-tests: New file.
33613         * modules/unictype/category-N-tests: New file.
33614         * modules/unictype/category-Nd-tests: New file.
33615         * modules/unictype/category-Nl-tests: New file.
33616         * modules/unictype/category-No-tests: New file.
33617         * modules/unictype/category-P-tests: New file.
33618         * modules/unictype/category-Pc-tests: New file.
33619         * modules/unictype/category-Pd-tests: New file.
33620         * modules/unictype/category-Pe-tests: New file.
33621         * modules/unictype/category-Pf-tests: New file.
33622         * modules/unictype/category-Pi-tests: New file.
33623         * modules/unictype/category-Po-tests: New file.
33624         * modules/unictype/category-Ps-tests: New file.
33625         * modules/unictype/category-S-tests: New file.
33626         * modules/unictype/category-Sc-tests: New file.
33627         * modules/unictype/category-Sk-tests: New file.
33628         * modules/unictype/category-Sm-tests: New file.
33629         * modules/unictype/category-So-tests: New file.
33630         * modules/unictype/category-Z-tests: New file.
33631         * modules/unictype/category-Zl-tests: New file.
33632         * modules/unictype/category-Zp-tests: New file.
33633         * modules/unictype/category-Zs-tests: New file.
33634         * modules/unictype/category-and-not-tests: New file.
33635         * modules/unictype/category-and-tests: New file.
33636         * modules/unictype/category-byname-tests: New file.
33637         * modules/unictype/category-name-tests: New file.
33638         * modules/unictype/category-none-tests: New file.
33639         * modules/unictype/category-of-tests: New file.
33640         * modules/unictype/category-or-tests: New file.
33641         * modules/unictype/category-test-withtable-tests: New file.
33642         * modules/unictype/combining-class-tests: New file.
33643         * modules/unictype/ctype-alnum-tests: New file.
33644         * modules/unictype/ctype-alpha-tests: New file.
33645         * modules/unictype/ctype-blank-tests: New file.
33646         * modules/unictype/ctype-cntrl-tests: New file.
33647         * modules/unictype/ctype-digit-tests: New file.
33648         * modules/unictype/ctype-graph-tests: New file.
33649         * modules/unictype/ctype-lower-tests: New file.
33650         * modules/unictype/ctype-print-tests: New file.
33651         * modules/unictype/ctype-punct-tests: New file.
33652         * modules/unictype/ctype-space-tests: New file.
33653         * modules/unictype/ctype-upper-tests: New file.
33654         * modules/unictype/ctype-xdigit-tests: New file.
33655         * modules/unictype/decimal-digit-tests: New file.
33656         * modules/unictype/digit-tests: New file.
33657         * modules/unictype/mirror-tests: New file.
33658         * modules/unictype/numeric-tests: New file.
33659         * modules/unictype/property-alphabetic-tests: New file.
33660         * modules/unictype/property-ascii-hex-digit-tests: New file.
33661         * modules/unictype/property-bidi-arabic-digit-tests: New file.
33662         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
33663         * modules/unictype/property-bidi-block-separator-tests: New file.
33664         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
33665         * modules/unictype/property-bidi-common-separator-tests: New file.
33666         * modules/unictype/property-bidi-control-tests: New file.
33667         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
33668         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
33669         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
33670         * modules/unictype/property-bidi-european-digit-tests: New file.
33671         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
33672         * modules/unictype/property-bidi-left-to-right-tests: New file.
33673         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
33674         * modules/unictype/property-bidi-other-neutral-tests: New file.
33675         * modules/unictype/property-bidi-pdf-tests: New file.
33676         * modules/unictype/property-bidi-segment-separator-tests: New file.
33677         * modules/unictype/property-bidi-whitespace-tests: New file.
33678         * modules/unictype/property-byname-tests: New file.
33679         * modules/unictype/property-combining-tests: New file.
33680         * modules/unictype/property-composite-tests: New file.
33681         * modules/unictype/property-currency-symbol-tests: New file.
33682         * modules/unictype/property-dash-tests: New file.
33683         * modules/unictype/property-decimal-digit-tests: New file.
33684         * modules/unictype/property-default-ignorable-code-point-tests: New file.
33685         * modules/unictype/property-deprecated-tests: New file.
33686         * modules/unictype/property-diacritic-tests: New file.
33687         * modules/unictype/property-extender-tests: New file.
33688         * modules/unictype/property-format-control-tests: New file.
33689         * modules/unictype/property-grapheme-base-tests: New file.
33690         * modules/unictype/property-grapheme-extend-tests: New file.
33691         * modules/unictype/property-grapheme-link-tests: New file.
33692         * modules/unictype/property-hex-digit-tests: New file.
33693         * modules/unictype/property-hyphen-tests: New file.
33694         * modules/unictype/property-id-continue-tests: New file.
33695         * modules/unictype/property-id-start-tests: New file.
33696         * modules/unictype/property-ideographic-tests: New file.
33697         * modules/unictype/property-ids-binary-operator-tests: New file.
33698         * modules/unictype/property-ids-trinary-operator-tests: New file.
33699         * modules/unictype/property-ignorable-control-tests: New file.
33700         * modules/unictype/property-iso-control-tests: New file.
33701         * modules/unictype/property-join-control-tests: New file.
33702         * modules/unictype/property-left-of-pair-tests: New file.
33703         * modules/unictype/property-line-separator-tests: New file.
33704         * modules/unictype/property-logical-order-exception-tests: New file.
33705         * modules/unictype/property-lowercase-tests: New file.
33706         * modules/unictype/property-math-tests: New file.
33707         * modules/unictype/property-non-break-tests: New file.
33708         * modules/unictype/property-not-a-character-tests: New file.
33709         * modules/unictype/property-numeric-tests: New file.
33710         * modules/unictype/property-other-alphabetic-tests: New file.
33711         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
33712         * modules/unictype/property-other-grapheme-extend-tests: New file.
33713         * modules/unictype/property-other-id-continue-tests: New file.
33714         * modules/unictype/property-other-id-start-tests: New file.
33715         * modules/unictype/property-other-lowercase-tests: New file.
33716         * modules/unictype/property-other-math-tests: New file.
33717         * modules/unictype/property-other-uppercase-tests: New file.
33718         * modules/unictype/property-paired-punctuation-tests: New file.
33719         * modules/unictype/property-paragraph-separator-tests: New file.
33720         * modules/unictype/property-pattern-syntax-tests: New file.
33721         * modules/unictype/property-pattern-white-space-tests: New file.
33722         * modules/unictype/property-private-use-tests: New file.
33723         * modules/unictype/property-punctuation-tests: New file.
33724         * modules/unictype/property-quotation-mark-tests: New file.
33725         * modules/unictype/property-radical-tests: New file.
33726         * modules/unictype/property-sentence-terminal-tests: New file.
33727         * modules/unictype/property-soft-dotted-tests: New file.
33728         * modules/unictype/property-space-tests: New file.
33729         * modules/unictype/property-terminal-punctuation-tests: New file.
33730         * modules/unictype/property-test-tests: New file.
33731         * modules/unictype/property-titlecase-tests: New file.
33732         * modules/unictype/property-unassigned-code-value-tests: New file.
33733         * modules/unictype/property-unified-ideograph-tests: New file.
33734         * modules/unictype/property-uppercase-tests: New file.
33735         * modules/unictype/property-variation-selector-tests: New file.
33736         * modules/unictype/property-white-space-tests: New file.
33737         * modules/unictype/property-xid-continue-tests: New file.
33738         * modules/unictype/property-xid-start-tests: New file.
33739         * modules/unictype/property-zero-width-tests: New file.
33740         * modules/unictype/scripts-tests: New file.
33741         * modules/unictype/syntax-c-ident-tests: New file.
33742         * modules/unictype/syntax-c-whitespace-tests: New file.
33743         * modules/unictype/syntax-java-ident-tests: New file.
33744         * modules/unictype/syntax-java-whitespace-tests: New file.
33745         * tests/unictype/test-bidi_byname.c: New file.
33746         * tests/unictype/test-bidi_name.c: New file.
33747         * tests/unictype/test-bidi_of.c: New file.
33748         * tests/unictype/test-bidi_test.c: New file.
33749         * tests/unictype/test-block_list.c: New file.
33750         * tests/unictype/test-block_of.c: New file.
33751         * tests/unictype/test-block_test.c: New file.
33752         * tests/unictype/test-categ_and.c: New file.
33753         * tests/unictype/test-categ_and_not.c: New file.
33754         * tests/unictype/test-categ_byname.c: New file.
33755         * tests/unictype/test-categ_name.c: New file.
33756         * tests/unictype/test-categ_none.c: New file.
33757         * tests/unictype/test-categ_of.c: New file.
33758         * tests/unictype/test-categ_or.c: New file.
33759         * tests/unictype/test-categ_test_withtable.c: New file.
33760         * tests/unictype/test-combining.c: New file.
33761         * tests/unictype/test-decdigit.c: New file.
33762         * tests/unictype/test-digit.c: New file.
33763         * tests/unictype/test-mirror.c: New file.
33764         * tests/unictype/test-numeric.c: New file.
33765         * tests/unictype/test-pr_byname.c: New file.
33766         * tests/unictype/test-pr_test.c: New file.
33767         * tests/unictype/test-predicate-part1.h: New file.
33768         * tests/unictype/test-predicate-part2.h: New file.
33769         * tests/unictype/test-scripts.c: New file.
33770         * tests/unictype/test-sy_c_ident.c: New file.
33771         * tests/unictype/test-sy_java_ident.c: New file.
33772
33773         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
33774         for Unicode 5.0.0.
33775         * tests/unictype/test-categ_Cc.c: Likewise.
33776         * tests/unictype/test-categ_Cf.c: Likewise.
33777         * tests/unictype/test-categ_Cn.c: Likewise.
33778         * tests/unictype/test-categ_Co.c: Likewise.
33779         * tests/unictype/test-categ_Cs.c: Likewise.
33780         * tests/unictype/test-categ_L.c: Likewise.
33781         * tests/unictype/test-categ_Ll.c: Likewise.
33782         * tests/unictype/test-categ_Lm.c: Likewise.
33783         * tests/unictype/test-categ_Lo.c: Likewise.
33784         * tests/unictype/test-categ_Lt.c: Likewise.
33785         * tests/unictype/test-categ_Lu.c: Likewise.
33786         * tests/unictype/test-categ_M.c: Likewise.
33787         * tests/unictype/test-categ_Mc.c: Likewise.
33788         * tests/unictype/test-categ_Me.c: Likewise.
33789         * tests/unictype/test-categ_Mn.c: Likewise.
33790         * tests/unictype/test-categ_N.c: Likewise.
33791         * tests/unictype/test-categ_Nd.c: Likewise.
33792         * tests/unictype/test-categ_Nl.c: Likewise.
33793         * tests/unictype/test-categ_No.c: Likewise.
33794         * tests/unictype/test-categ_P.c: Likewise.
33795         * tests/unictype/test-categ_Pc.c: Likewise.
33796         * tests/unictype/test-categ_Pd.c: Likewise.
33797         * tests/unictype/test-categ_Pe.c: Likewise.
33798         * tests/unictype/test-categ_Pf.c: Likewise.
33799         * tests/unictype/test-categ_Pi.c: Likewise.
33800         * tests/unictype/test-categ_Po.c: Likewise.
33801         * tests/unictype/test-categ_Ps.c: Likewise.
33802         * tests/unictype/test-categ_S.c: Likewise.
33803         * tests/unictype/test-categ_Sc.c: Likewise.
33804         * tests/unictype/test-categ_Sk.c: Likewise.
33805         * tests/unictype/test-categ_Sm.c: Likewise.
33806         * tests/unictype/test-categ_So.c: Likewise.
33807         * tests/unictype/test-categ_Z.c: Likewise.
33808         * tests/unictype/test-categ_Zl.c: Likewise.
33809         * tests/unictype/test-categ_Zp.c: Likewise.
33810         * tests/unictype/test-categ_Zs.c: Likewise.
33811         * tests/unictype/test-ctype_alnum.c: Likewise.
33812         * tests/unictype/test-ctype_alpha.c: Likewise.
33813         * tests/unictype/test-ctype_blank.c: Likewise.
33814         * tests/unictype/test-ctype_cntrl.c: Likewise.
33815         * tests/unictype/test-ctype_digit.c: Likewise.
33816         * tests/unictype/test-ctype_graph.c: Likewise.
33817         * tests/unictype/test-ctype_lower.c: Likewise.
33818         * tests/unictype/test-ctype_print.c: Likewise.
33819         * tests/unictype/test-ctype_punct.c: Likewise.
33820         * tests/unictype/test-ctype_space.c: Likewise.
33821         * tests/unictype/test-ctype_upper.c: Likewise.
33822         * tests/unictype/test-ctype_xdigit.c: Likewise.
33823         * tests/unictype/test-decdigit.h: Likewise.
33824         * tests/unictype/test-digit.h: Likewise.
33825         * tests/unictype/test-numeric.h: Likewise.
33826         * tests/unictype/test-pr_alphabetic.c: Likewise.
33827         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
33828         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
33829         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
33830         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
33831         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
33832         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
33833         * tests/unictype/test-pr_bidi_control.c: Likewise.
33834         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
33835         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
33836         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
33837         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
33838         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
33839         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
33840         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
33841         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
33842         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
33843         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
33844         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
33845         * tests/unictype/test-pr_combining.c: Likewise.
33846         * tests/unictype/test-pr_composite.c: Likewise.
33847         * tests/unictype/test-pr_currency_symbol.c: Likewise.
33848         * tests/unictype/test-pr_dash.c: Likewise.
33849         * tests/unictype/test-pr_decimal_digit.c: Likewise.
33850         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
33851         * tests/unictype/test-pr_deprecated.c: Likewise.
33852         * tests/unictype/test-pr_diacritic.c: Likewise.
33853         * tests/unictype/test-pr_extender.c: Likewise.
33854         * tests/unictype/test-pr_format_control.c: Likewise.
33855         * tests/unictype/test-pr_grapheme_base.c: Likewise.
33856         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
33857         * tests/unictype/test-pr_grapheme_link.c: Likewise.
33858         * tests/unictype/test-pr_hex_digit.c: Likewise.
33859         * tests/unictype/test-pr_hyphen.c: Likewise.
33860         * tests/unictype/test-pr_id_continue.c: Likewise.
33861         * tests/unictype/test-pr_id_start.c: Likewise.
33862         * tests/unictype/test-pr_ideographic.c: Likewise.
33863         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
33864         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
33865         * tests/unictype/test-pr_ignorable_control.c: Likewise.
33866         * tests/unictype/test-pr_iso_control.c: Likewise.
33867         * tests/unictype/test-pr_join_control.c: Likewise.
33868         * tests/unictype/test-pr_left_of_pair.c: Likewise.
33869         * tests/unictype/test-pr_line_separator.c: Likewise.
33870         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
33871         * tests/unictype/test-pr_lowercase.c: Likewise.
33872         * tests/unictype/test-pr_math.c: Likewise.
33873         * tests/unictype/test-pr_non_break.c: Likewise.
33874         * tests/unictype/test-pr_not_a_character.c: Likewise.
33875         * tests/unictype/test-pr_numeric.c: Likewise.
33876         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
33877         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
33878         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
33879         * tests/unictype/test-pr_other_id_continue.c: Likewise.
33880         * tests/unictype/test-pr_other_id_start.c: Likewise.
33881         * tests/unictype/test-pr_other_lowercase.c: Likewise.
33882         * tests/unictype/test-pr_other_math.c: Likewise.
33883         * tests/unictype/test-pr_other_uppercase.c: Likewise.
33884         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
33885         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
33886         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
33887         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
33888         * tests/unictype/test-pr_private_use.c: Likewise.
33889         * tests/unictype/test-pr_punctuation.c: Likewise.
33890         * tests/unictype/test-pr_quotation_mark.c: Likewise.
33891         * tests/unictype/test-pr_radical.c: Likewise.
33892         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
33893         * tests/unictype/test-pr_soft_dotted.c: Likewise.
33894         * tests/unictype/test-pr_space.c: Likewise.
33895         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
33896         * tests/unictype/test-pr_titlecase.c: Likewise.
33897         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
33898         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
33899         * tests/unictype/test-pr_uppercase.c: Likewise.
33900         * tests/unictype/test-pr_variation_selector.c: Likewise.
33901         * tests/unictype/test-pr_white_space.c: Likewise.
33902         * tests/unictype/test-pr_xid_continue.c: Likewise.
33903         * tests/unictype/test-pr_xid_start.c: Likewise.
33904         * tests/unictype/test-pr_zero_width.c: Likewise.
33905         * tests/unictype/test-sy_c_whitespace.c: Likewise.
33906         * tests/unictype/test-sy_java_whitespace.c: Likewise.
33907
33908 2007-11-12  Bruno Haible  <bruno@clisp.org>
33909
33910         Unicode character classification functions.
33911         * lib/unictype.h: New file.
33912         * modules/unictype/base: New file.
33913         * modules/unictype/category-L: New file.
33914         * modules/unictype/category-Lu: New file.
33915         * modules/unictype/category-Ll: New file.
33916         * modules/unictype/category-Lt: New file.
33917         * modules/unictype/category-Lm: New file.
33918         * modules/unictype/category-Lo: New file.
33919         * modules/unictype/category-M: New file.
33920         * modules/unictype/category-Mn: New file.
33921         * modules/unictype/category-Mc: New file.
33922         * modules/unictype/category-Me: New file.
33923         * modules/unictype/category-N: New file.
33924         * modules/unictype/category-Nd: New file.
33925         * modules/unictype/category-Nl: New file.
33926         * modules/unictype/category-No: New file.
33927         * modules/unictype/category-P: New file.
33928         * modules/unictype/category-Pc: New file.
33929         * modules/unictype/category-Pd: New file.
33930         * modules/unictype/category-Ps: New file.
33931         * modules/unictype/category-Pe: New file.
33932         * modules/unictype/category-Pi: New file.
33933         * modules/unictype/category-Pf: New file.
33934         * modules/unictype/category-Po: New file.
33935         * modules/unictype/category-S: New file.
33936         * modules/unictype/category-Sm: New file.
33937         * modules/unictype/category-Sc: New file.
33938         * modules/unictype/category-Sk: New file.
33939         * modules/unictype/category-So: New file.
33940         * modules/unictype/category-Z: New file.
33941         * modules/unictype/category-Zs: New file.
33942         * modules/unictype/category-Zl: New file.
33943         * modules/unictype/category-Zp: New file.
33944         * modules/unictype/category-C: New file.
33945         * modules/unictype/category-Cc: New file.
33946         * modules/unictype/category-Cf: New file.
33947         * modules/unictype/category-Cs: New file.
33948         * modules/unictype/category-Co: New file.
33949         * modules/unictype/category-Cn: New file.
33950         * modules/unictype/category-or: New file.
33951         * modules/unictype/category-of: New file.
33952         * modules/unictype/category-test: New file.
33953         * modules/unictype/category-test-withtable: New file.
33954         * modules/unictype/category-byname: New file.
33955         * modules/unictype/category-none: New file.
33956         * modules/unictype/category-and: New file.
33957         * modules/unictype/category-and-not: New file.
33958         * modules/unictype/category-name: New file.
33959         * modules/unictype/combining-class: New file.
33960         * modules/unictype/category-all: New file.
33961         * modules/unictype/bidicategory-all: New file.
33962         * modules/unictype/bidicategory-byname: New file.
33963         * modules/unictype/bidicategory-name: New file.
33964         * modules/unictype/bidicategory-of: New file.
33965         * modules/unictype/bidicategory-test: New file.
33966         * modules/unictype/decimal-digit: New file.
33967         * modules/unictype/digit: New file.
33968         * modules/unictype/numeric: New file.
33969         * modules/unictype/mirror: New file.
33970         * modules/unictype/property-white-space: New file.
33971         * modules/unictype/property-alphabetic: New file.
33972         * modules/unictype/property-other-alphabetic: New file.
33973         * modules/unictype/property-not-a-character: New file.
33974         * modules/unictype/property-default-ignorable-code-point: New file.
33975         * modules/unictype/property-other-default-ignorable-code-point: New
33976         file.
33977         * modules/unictype/property-deprecated: New file.
33978         * modules/unictype/property-logical-order-exception: New file.
33979         * modules/unictype/property-variation-selector: New file.
33980         * modules/unictype/property-private-use: New file.
33981         * modules/unictype/property-unassigned-code-value: New file.
33982         * modules/unictype/property-uppercase: New file.
33983         * modules/unictype/property-other-uppercase: New file.
33984         * modules/unictype/property-lowercase: New file.
33985         * modules/unictype/property-other-lowercase: New file.
33986         * modules/unictype/property-titlecase: New file.
33987         * modules/unictype/property-soft-dotted: New file.
33988         * modules/unictype/property-id-start: New file.
33989         * modules/unictype/property-other-id-start: New file.
33990         * modules/unictype/property-id-continue: New file.
33991         * modules/unictype/property-other-id-continue: New file.
33992         * modules/unictype/property-xid-start: New file.
33993         * modules/unictype/property-xid-continue: New file.
33994         * modules/unictype/property-pattern-white-space: New file.
33995         * modules/unictype/property-pattern-syntax: New file.
33996         * modules/unictype/property-join-control: New file.
33997         * modules/unictype/property-grapheme-base: New file.
33998         * modules/unictype/property-grapheme-extend: New file.
33999         * modules/unictype/property-other-grapheme-extend: New file.
34000         * modules/unictype/property-grapheme-link: New file.
34001         * modules/unictype/property-bidi-control: New file.
34002         * modules/unictype/property-bidi-left-to-right: New file.
34003         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
34004         * modules/unictype/property-bidi-arabic-right-to-left: New file.
34005         * modules/unictype/property-bidi-european-digit: New file.
34006         * modules/unictype/property-bidi-eur-num-separator: New file.
34007         * modules/unictype/property-bidi-eur-num-terminator: New file.
34008         * modules/unictype/property-bidi-arabic-digit: New file.
34009         * modules/unictype/property-bidi-common-separator: New file.
34010         * modules/unictype/property-bidi-block-separator: New file.
34011         * modules/unictype/property-bidi-segment-separator: New file.
34012         * modules/unictype/property-bidi-whitespace: New file.
34013         * modules/unictype/property-bidi-non-spacing-mark: New file.
34014         * modules/unictype/property-bidi-boundary-neutral: New file.
34015         * modules/unictype/property-bidi-pdf: New file.
34016         * modules/unictype/property-bidi-embedding-or-override: New file.
34017         * modules/unictype/property-bidi-other-neutral: New file.
34018         * modules/unictype/property-hex-digit: New file.
34019         * modules/unictype/property-ascii-hex-digit: New file.
34020         * modules/unictype/property-ideographic: New file.
34021         * modules/unictype/property-unified-ideograph: New file.
34022         * modules/unictype/property-radical: New file.
34023         * modules/unictype/property-ids-binary-operator: New file.
34024         * modules/unictype/property-ids-trinary-operator: New file.
34025         * modules/unictype/property-zero-width: New file.
34026         * modules/unictype/property-space: New file.
34027         * modules/unictype/property-non-break: New file.
34028         * modules/unictype/property-iso-control: New file.
34029         * modules/unictype/property-format-control: New file.
34030         * modules/unictype/property-dash: New file.
34031         * modules/unictype/property-hyphen: New file.
34032         * modules/unictype/property-punctuation: New file.
34033         * modules/unictype/property-line-separator: New file.
34034         * modules/unictype/property-paragraph-separator: New file.
34035         * modules/unictype/property-quotation-mark: New file.
34036         * modules/unictype/property-sentence-terminal: New file.
34037         * modules/unictype/property-terminal-punctuation: New file.
34038         * modules/unictype/property-currency-symbol: New file.
34039         * modules/unictype/property-math: New file.
34040         * modules/unictype/property-other-math: New file.
34041         * modules/unictype/property-paired-punctuation: New file.
34042         * modules/unictype/property-left-of-pair: New file.
34043         * modules/unictype/property-combining: New file.
34044         * modules/unictype/property-composite: New file.
34045         * modules/unictype/property-decimal-digit: New file.
34046         * modules/unictype/property-numeric: New file.
34047         * modules/unictype/property-diacritic: New file.
34048         * modules/unictype/property-extender: New file.
34049         * modules/unictype/property-ignorable-control: New file.
34050         * modules/unictype/property-test: New file.
34051         * modules/unictype/property-byname: New file.
34052         * modules/unictype/property-all: New file.
34053         * modules/unictype/scripts: New file.
34054         * modules/unictype/scripts-all: New file.
34055         * modules/unictype/block-of: New file.
34056         * modules/unictype/block-test: New file.
34057         * modules/unictype/block-list: New file.
34058         * modules/unictype/block-all: New file.
34059         * modules/unictype/syntax-c-whitespace: New file.
34060         * modules/unictype/syntax-java-whitespace: New file.
34061         * modules/unictype/syntax-c-ident: New file.
34062         * modules/unictype/syntax-java-ident: New file.
34063         * modules/unictype/ctype-alnum: New file.
34064         * modules/unictype/ctype-alpha: New file.
34065         * modules/unictype/ctype-cntrl: New file.
34066         * modules/unictype/ctype-digit: New file.
34067         * modules/unictype/ctype-graph: New file.
34068         * modules/unictype/ctype-lower: New file.
34069         * modules/unictype/ctype-print: New file.
34070         * modules/unictype/ctype-punct: New file.
34071         * modules/unictype/ctype-space: New file.
34072         * modules/unictype/ctype-upper: New file.
34073         * modules/unictype/ctype-xdigit: New file.
34074         * modules/unictype/ctype-blank: New file.
34075         * lib/unictype/bidi_byname.c: New file.
34076         * lib/unictype/bidi_name.c: New file.
34077         * lib/unictype/bidi_of.c: New file.
34078         * lib/unictype/bidi_test.c: New file.
34079         * lib/unictype/bitmap.h: New file.
34080         * lib/unictype/block_test.c: New file.
34081         * lib/unictype/blocks.c: New file.
34082         * lib/unictype/categ_C.c: New file.
34083         * lib/unictype/categ_Cc.c: New file.
34084         * lib/unictype/categ_Cf.c: New file.
34085         * lib/unictype/categ_Cn.c: New file.
34086         * lib/unictype/categ_Co.c: New file.
34087         * lib/unictype/categ_Cs.c: New file.
34088         * lib/unictype/categ_L.c: New file.
34089         * lib/unictype/categ_Ll.c: New file.
34090         * lib/unictype/categ_Lm.c: New file.
34091         * lib/unictype/categ_Lo.c: New file.
34092         * lib/unictype/categ_Lt.c: New file.
34093         * lib/unictype/categ_Lu.c: New file.
34094         * lib/unictype/categ_M.c: New file.
34095         * lib/unictype/categ_Mc.c: New file.
34096         * lib/unictype/categ_Me.c: New file.
34097         * lib/unictype/categ_Mn.c: New file.
34098         * lib/unictype/categ_N.c: New file.
34099         * lib/unictype/categ_Nd.c: New file.
34100         * lib/unictype/categ_Nl.c: New file.
34101         * lib/unictype/categ_No.c: New file.
34102         * lib/unictype/categ_P.c: New file.
34103         * lib/unictype/categ_Pc.c: New file.
34104         * lib/unictype/categ_Pd.c: New file.
34105         * lib/unictype/categ_Pe.c: New file.
34106         * lib/unictype/categ_Pf.c: New file.
34107         * lib/unictype/categ_Pi.c: New file.
34108         * lib/unictype/categ_Po.c: New file.
34109         * lib/unictype/categ_Ps.c: New file.
34110         * lib/unictype/categ_S.c: New file.
34111         * lib/unictype/categ_Sc.c: New file.
34112         * lib/unictype/categ_Sk.c: New file.
34113         * lib/unictype/categ_Sm.c: New file.
34114         * lib/unictype/categ_So.c: New file.
34115         * lib/unictype/categ_Z.c: New file.
34116         * lib/unictype/categ_Zl.c: New file.
34117         * lib/unictype/categ_Zp.c: New file.
34118         * lib/unictype/categ_Zs.c: New file.
34119         * lib/unictype/categ_and.c: New file.
34120         * lib/unictype/categ_and_not.c: New file.
34121         * lib/unictype/categ_byname.c: New file.
34122         * lib/unictype/categ_name.c: New file.
34123         * lib/unictype/categ_none.c: New file.
34124         * lib/unictype/categ_of.c: New file.
34125         * lib/unictype/categ_or.c: New file.
34126         * lib/unictype/categ_test.c: New file.
34127         * lib/unictype/combining.c: New file.
34128         * lib/unictype/ctype_alnum.c: New file.
34129         * lib/unictype/ctype_alpha.c: New file.
34130         * lib/unictype/ctype_blank.c: New file.
34131         * lib/unictype/ctype_cntrl.c: New file.
34132         * lib/unictype/ctype_digit.c: New file.
34133         * lib/unictype/ctype_graph.c: New file.
34134         * lib/unictype/ctype_lower.c: New file.
34135         * lib/unictype/ctype_print.c: New file.
34136         * lib/unictype/ctype_punct.c: New file.
34137         * lib/unictype/ctype_space.c: New file.
34138         * lib/unictype/ctype_upper.c: New file.
34139         * lib/unictype/ctype_xdigit.c: New file.
34140         * lib/unictype/decdigit.c: New file.
34141         * lib/unictype/digit.c: New file.
34142         * lib/unictype/identsyntaxmap.h: New file.
34143         * lib/unictype/mirror.c: New file.
34144         * lib/unictype/numeric.c: New file.
34145         * lib/unictype/pr_alphabetic.c: New file.
34146         * lib/unictype/pr_ascii_hex_digit.c: New file.
34147         * lib/unictype/pr_bidi_arabic_digit.c: New file.
34148         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
34149         * lib/unictype/pr_bidi_block_separator.c: New file.
34150         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
34151         * lib/unictype/pr_bidi_common_separator.c: New file.
34152         * lib/unictype/pr_bidi_control.c: New file.
34153         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
34154         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
34155         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
34156         * lib/unictype/pr_bidi_european_digit.c: New file.
34157         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
34158         * lib/unictype/pr_bidi_left_to_right.c: New file.
34159         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
34160         * lib/unictype/pr_bidi_other_neutral.c: New file.
34161         * lib/unictype/pr_bidi_pdf.c: New file.
34162         * lib/unictype/pr_bidi_segment_separator.c: New file.
34163         * lib/unictype/pr_bidi_whitespace.c: New file.
34164         * lib/unictype/pr_byname.c: New file.
34165         * lib/unictype/pr_byname.gperf: New file.
34166         * lib/unictype/pr_combining.c: New file.
34167         * lib/unictype/pr_composite.c: New file.
34168         * lib/unictype/pr_currency_symbol.c: New file.
34169         * lib/unictype/pr_dash.c: New file.
34170         * lib/unictype/pr_decimal_digit.c: New file.
34171         * lib/unictype/pr_default_ignorable_code_point.c: New file.
34172         * lib/unictype/pr_deprecated.c: New file.
34173         * lib/unictype/pr_diacritic.c: New file.
34174         * lib/unictype/pr_extender.c: New file.
34175         * lib/unictype/pr_format_control.c: New file.
34176         * lib/unictype/pr_grapheme_base.c: New file.
34177         * lib/unictype/pr_grapheme_extend.c: New file.
34178         * lib/unictype/pr_grapheme_link.c: New file.
34179         * lib/unictype/pr_hex_digit.c: New file.
34180         * lib/unictype/pr_hyphen.c: New file.
34181         * lib/unictype/pr_id_continue.c: New file.
34182         * lib/unictype/pr_id_start.c: New file.
34183         * lib/unictype/pr_ideographic.c: New file.
34184         * lib/unictype/pr_ids_binary_operator.c: New file.
34185         * lib/unictype/pr_ids_trinary_operator.c: New file.
34186         * lib/unictype/pr_ignorable_control.c: New file.
34187         * lib/unictype/pr_iso_control.c: New file.
34188         * lib/unictype/pr_join_control.c: New file.
34189         * lib/unictype/pr_left_of_pair.c: New file.
34190         * lib/unictype/pr_line_separator.c: New file.
34191         * lib/unictype/pr_logical_order_exception.c: New file.
34192         * lib/unictype/pr_lowercase.c: New file.
34193         * lib/unictype/pr_math.c: New file.
34194         * lib/unictype/pr_non_break.c: New file.
34195         * lib/unictype/pr_not_a_character.c: New file.
34196         * lib/unictype/pr_numeric.c: New file.
34197         * lib/unictype/pr_other_alphabetic.c: New file.
34198         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
34199         * lib/unictype/pr_other_grapheme_extend.c: New file.
34200         * lib/unictype/pr_other_id_continue.c: New file.
34201         * lib/unictype/pr_other_id_start.c: New file.
34202         * lib/unictype/pr_other_lowercase.c: New file.
34203         * lib/unictype/pr_other_math.c: New file.
34204         * lib/unictype/pr_other_uppercase.c: New file.
34205         * lib/unictype/pr_paired_punctuation.c: New file.
34206         * lib/unictype/pr_paragraph_separator.c: New file.
34207         * lib/unictype/pr_pattern_syntax.c: New file.
34208         * lib/unictype/pr_pattern_white_space.c: New file.
34209         * lib/unictype/pr_private_use.c: New file.
34210         * lib/unictype/pr_punctuation.c: New file.
34211         * lib/unictype/pr_quotation_mark.c: New file.
34212         * lib/unictype/pr_radical.c: New file.
34213         * lib/unictype/pr_sentence_terminal.c: New file.
34214         * lib/unictype/pr_soft_dotted.c: New file.
34215         * lib/unictype/pr_space.c: New file.
34216         * lib/unictype/pr_terminal_punctuation.c: New file.
34217         * lib/unictype/pr_test.c: New file.
34218         * lib/unictype/pr_titlecase.c: New file.
34219         * lib/unictype/pr_unassigned_code_value.c: New file.
34220         * lib/unictype/pr_unified_ideograph.c: New file.
34221         * lib/unictype/pr_uppercase.c: New file.
34222         * lib/unictype/pr_variation_selector.c: New file.
34223         * lib/unictype/pr_white_space.c: New file.
34224         * lib/unictype/pr_xid_continue.c: New file.
34225         * lib/unictype/pr_xid_start.c: New file.
34226         * lib/unictype/pr_zero_width.c: New file.
34227         * lib/unictype/scripts.c: New file.
34228         * lib/unictype/sy_c_ident.c: New file.
34229         * lib/unictype/sy_c_whitespace.c: New file.
34230         * lib/unictype/sy_java_ident.c: New file.
34231         * lib/unictype/sy_java_whitespace.c: New file.
34232
34233         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
34234         Unicode 5.0.0.
34235         * lib/unictype/blocks.h: Likewise.
34236         * lib/unictype/categ_C.h: Likewise.
34237         * lib/unictype/categ_Cc.h: Likewise.
34238         * lib/unictype/categ_Cf.h: Likewise.
34239         * lib/unictype/categ_Cn.h: Likewise.
34240         * lib/unictype/categ_Co.h: Likewise.
34241         * lib/unictype/categ_Cs.h: Likewise.
34242         * lib/unictype/categ_L.h: Likewise.
34243         * lib/unictype/categ_Ll.h: Likewise.
34244         * lib/unictype/categ_Lm.h: Likewise.
34245         * lib/unictype/categ_Lo.h: Likewise.
34246         * lib/unictype/categ_Lt.h: Likewise.
34247         * lib/unictype/categ_Lu.h: Likewise.
34248         * lib/unictype/categ_M.h: Likewise.
34249         * lib/unictype/categ_Mc.h: Likewise.
34250         * lib/unictype/categ_Me.h: Likewise.
34251         * lib/unictype/categ_Mn.h: Likewise.
34252         * lib/unictype/categ_N.h: Likewise.
34253         * lib/unictype/categ_Nd.h: Likewise.
34254         * lib/unictype/categ_Nl.h: Likewise.
34255         * lib/unictype/categ_No.h: Likewise.
34256         * lib/unictype/categ_P.h: Likewise.
34257         * lib/unictype/categ_Pc.h: Likewise.
34258         * lib/unictype/categ_Pd.h: Likewise.
34259         * lib/unictype/categ_Pe.h: Likewise.
34260         * lib/unictype/categ_Pf.h: Likewise.
34261         * lib/unictype/categ_Pi.h: Likewise.
34262         * lib/unictype/categ_Po.h: Likewise.
34263         * lib/unictype/categ_Ps.h: Likewise.
34264         * lib/unictype/categ_S.h: Likewise.
34265         * lib/unictype/categ_Sc.h: Likewise.
34266         * lib/unictype/categ_Sk.h: Likewise.
34267         * lib/unictype/categ_Sm.h: Likewise.
34268         * lib/unictype/categ_So.h: Likewise.
34269         * lib/unictype/categ_Z.h: Likewise.
34270         * lib/unictype/categ_Zl.h: Likewise.
34271         * lib/unictype/categ_Zp.h: Likewise.
34272         * lib/unictype/categ_Zs.h: Likewise.
34273         * lib/unictype/categ_of.h: Likewise.
34274         * lib/unictype/combining.h: Likewise.
34275         * lib/unictype/ctype_alnum.h: Likewise.
34276         * lib/unictype/ctype_alpha.h: Likewise.
34277         * lib/unictype/ctype_blank.h: Likewise.
34278         * lib/unictype/ctype_cntrl.h: Likewise.
34279         * lib/unictype/ctype_digit.h: Likewise.
34280         * lib/unictype/ctype_graph.h: Likewise.
34281         * lib/unictype/ctype_lower.h: Likewise.
34282         * lib/unictype/ctype_print.h: Likewise.
34283         * lib/unictype/ctype_punct.h: Likewise.
34284         * lib/unictype/ctype_space.h: Likewise.
34285         * lib/unictype/ctype_upper.h: Likewise.
34286         * lib/unictype/ctype_xdigit.h: Likewise.
34287         * lib/unictype/decdigit.h: Likewise.
34288         * lib/unictype/digit.h: Likewise.
34289         * lib/unictype/mirror.h: Likewise.
34290         * lib/unictype/numeric.h: Likewise.
34291         * lib/unictype/pr_alphabetic.h: Likewise.
34292         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
34293         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
34294         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
34295         * lib/unictype/pr_bidi_block_separator.h: Likewise.
34296         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
34297         * lib/unictype/pr_bidi_common_separator.h: Likewise.
34298         * lib/unictype/pr_bidi_control.h: Likewise.
34299         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
34300         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
34301         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
34302         * lib/unictype/pr_bidi_european_digit.h: Likewise.
34303         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
34304         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
34305         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
34306         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
34307         * lib/unictype/pr_bidi_pdf.h: Likewise.
34308         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
34309         * lib/unictype/pr_bidi_whitespace.h: Likewise.
34310         * lib/unictype/pr_combining.h: Likewise.
34311         * lib/unictype/pr_composite.h: Likewise.
34312         * lib/unictype/pr_currency_symbol.h: Likewise.
34313         * lib/unictype/pr_dash.h: Likewise.
34314         * lib/unictype/pr_decimal_digit.h: Likewise.
34315         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
34316         * lib/unictype/pr_deprecated.h: Likewise.
34317         * lib/unictype/pr_diacritic.h: Likewise.
34318         * lib/unictype/pr_extender.h: Likewise.
34319         * lib/unictype/pr_format_control.h: Likewise.
34320         * lib/unictype/pr_grapheme_base.h: Likewise.
34321         * lib/unictype/pr_grapheme_extend.h: Likewise.
34322         * lib/unictype/pr_grapheme_link.h: Likewise.
34323         * lib/unictype/pr_hex_digit.h: Likewise.
34324         * lib/unictype/pr_hyphen.h: Likewise.
34325         * lib/unictype/pr_id_continue.h: Likewise.
34326         * lib/unictype/pr_id_start.h: Likewise.
34327         * lib/unictype/pr_ideographic.h: Likewise.
34328         * lib/unictype/pr_ids_binary_operator.h: Likewise.
34329         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
34330         * lib/unictype/pr_ignorable_control.h: Likewise.
34331         * lib/unictype/pr_iso_control.h: Likewise.
34332         * lib/unictype/pr_join_control.h: Likewise.
34333         * lib/unictype/pr_left_of_pair.h: Likewise.
34334         * lib/unictype/pr_line_separator.h: Likewise.
34335         * lib/unictype/pr_logical_order_exception.h: Likewise.
34336         * lib/unictype/pr_lowercase.h: Likewise.
34337         * lib/unictype/pr_math.h: Likewise.
34338         * lib/unictype/pr_non_break.h: Likewise.
34339         * lib/unictype/pr_not_a_character.h: Likewise.
34340         * lib/unictype/pr_numeric.h: Likewise.
34341         * lib/unictype/pr_other_alphabetic.h: Likewise.
34342         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
34343         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
34344         * lib/unictype/pr_other_id_continue.h: Likewise.
34345         * lib/unictype/pr_other_id_start.h: Likewise.
34346         * lib/unictype/pr_other_lowercase.h: Likewise.
34347         * lib/unictype/pr_other_math.h: Likewise.
34348         * lib/unictype/pr_other_uppercase.h: Likewise.
34349         * lib/unictype/pr_paired_punctuation.h: Likewise.
34350         * lib/unictype/pr_paragraph_separator.h: Likewise.
34351         * lib/unictype/pr_pattern_syntax.h: Likewise.
34352         * lib/unictype/pr_pattern_white_space.h: Likewise.
34353         * lib/unictype/pr_private_use.h: Likewise.
34354         * lib/unictype/pr_punctuation.h: Likewise.
34355         * lib/unictype/pr_quotation_mark.h: Likewise.
34356         * lib/unictype/pr_radical.h: Likewise.
34357         * lib/unictype/pr_sentence_terminal.h: Likewise.
34358         * lib/unictype/pr_soft_dotted.h: Likewise.
34359         * lib/unictype/pr_space.h: Likewise.
34360         * lib/unictype/pr_terminal_punctuation.h: Likewise.
34361         * lib/unictype/pr_titlecase.h: Likewise.
34362         * lib/unictype/pr_unassigned_code_value.h: Likewise.
34363         * lib/unictype/pr_unified_ideograph.h: Likewise.
34364         * lib/unictype/pr_uppercase.h: Likewise.
34365         * lib/unictype/pr_variation_selector.h: Likewise.
34366         * lib/unictype/pr_white_space.h: Likewise.
34367         * lib/unictype/pr_xid_continue.h: Likewise.
34368         * lib/unictype/pr_xid_start.h: Likewise.
34369         * lib/unictype/pr_zero_width.h: Likewise.
34370         * lib/unictype/scripts.h: Likewise.
34371         * lib/unictype/scripts_byname.gperf: Likewise.
34372         * lib/unictype/sy_c_ident.h: Likewise.
34373         * lib/unictype/sy_c_whitespace.h: Likewise.
34374         * lib/unictype/sy_java_ident.h: Likewise.
34375         * lib/unictype/sy_java_whitespace.h: Likewise.
34376
34377         * lib/unictype/Makefile: New file.
34378         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
34379         glibc.
34380         * lib/unictype/3level.h: New file, copied from glibc.
34381         * lib/unictype/3levelbit.h: New file.
34382
34383 2007-11-11  Bruno Haible  <bruno@clisp.org>
34384
34385         * modules/gperf: New file.
34386         * modules/iconv_open (Depends-on): Add it.
34387         (Makefile.am): Remove the GPERF definition.
34388
34389 2007-11-11  Bruno Haible  <bruno@clisp.org>
34390
34391         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
34392         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
34393
34394 2007-11-11  Bruno Haible  <bruno@clisp.org>
34395
34396         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
34397         (usage): Remove function.
34398
34399 2007-11-11  Bruno Haible  <bruno@clisp.org>
34400
34401         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
34402         gl_FUNC_CEILF_LIBS.
34403         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
34404         gl_FUNC_CEIL_LIBS.
34405         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
34406         gl_FUNC_CEILL_LIBS.
34407         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
34408         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
34409         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
34410
34411 2007-11-11  Bruno Haible  <bruno@clisp.org>
34412
34413         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
34414         roundf were declared but do not exist on functions.
34415         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
34416         roundl were declared but do not exist on functions.
34417         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
34418         HAVE_FLOORL_AND_CEILL, respectively.
34419         Needed for Sun C on Solaris 10.
34420
34421 2007-11-11  Bruno Haible  <bruno@clisp.org>
34422
34423         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
34424         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
34425         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
34426         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
34427         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
34428         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
34429         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
34430         HAVE_DECL_ROUNDF.
34431         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
34432         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
34433         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
34434         of HAVE_DECL_ROUND*.
34435         * modules/math (Makefile.am): Update.
34436
34437 2007-11-10  Bruno Haible  <bruno@clisp.org>
34438
34439         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
34440         ptrdiff_t as m4/intl.m4.
34441
34442 2007-11-10  Jim Meyering  <meyering@redhat.com>
34443
34444         Avoid link failure for the argmatch test.
34445         * tests/test-argmatch.c (usage): Define function to avoid a link
34446         failure: argmatch_die requires a usage function.
34447
34448 2007-11-09  Bruno Haible  <bruno@clisp.org>
34449
34450         * doc/functions/snprintf.texi: Mention BeOS deficiency.
34451         * doc/functions/vsnprintf.texi: Likewise.
34452         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
34453         with a size argument < 2.
34454
34455 2007-11-09  Bruno Haible  <bruno@clisp.org>
34456
34457         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
34458         buffer. Fixes an inefficiency introduced on 2007-11-03.
34459
34460 2007-11-09  Bruno Haible  <bruno@clisp.org>
34461
34462         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
34463         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
34464
34465 2007-11-08  Jim Meyering  <meyering@redhat.com>
34466
34467         Change cache variable name prefix "jm_" to "gl_" everywhere.
34468         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
34469         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
34470         * m4/uptime.m4: s/gl_/jm_/
34471
34472 2007-11-07  Bruno Haible  <bruno@clisp.org>
34473
34474         Update to GNU gettext 0.17.
34475         * m4/intl.m4: Update to GNU gettext 0.17.
34476         * m4/po.m4: Likewise.
34477         * modules/gettext (Files): Remove m4/ulonglong.m4.
34478         (configure.ac): Require gettext infrastructure from version 0.17.
34479
34480 2007-11-06  Bruno Haible  <bruno@clisp.org>
34481
34482         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
34483         symbolic values are not defined in a public header.
34484         * lib/freadable.c (freadable) [QNX]: Likewise.
34485         * lib/freadahead.c (freadahead) [QNX]: Likewise.
34486         * lib/freading.c (freading) [QNX]: Likewise.
34487         * lib/fseterr.c (fseterr) [QNX]: Likewise.
34488         * lib/fwritable.c (fwritable) [QNX]: Likewise.
34489         * lib/fwriting.c (fwriting) [QNX]: Likewise.
34490         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
34491         Reported by Alain Magloire.
34492
34493         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
34494
34495 2007-11-05  Bruno Haible  <bruno@clisp.org>
34496
34497         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
34498         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
34499         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
34500         Reported by Eric Blake.
34501
34502 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34503             Bruno Haible  <bruno@clisp.org>
34504
34505         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
34506         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
34507         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
34508         (malloc): Undefine also before including <stdlib.h>.
34509         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
34510         Needed on OSF/1 4.0.
34511
34512 2007-11-05  Jim Meyering  <meyering@redhat.com>
34513
34514         git-version-gen: sync from coreutils.
34515         * build-aux/git-version-gen: Add comments.
34516         Change the first '-' to '.' in the snapshot version string,
34517         e.g., 6.9-377-08144 -> 6.9.377-08144
34518         Remove first parameter.
34519         Don't declare a version "-dirty" merely because a time
34520         stamp has changed.
34521
34522 2007-11-04  Bruno Haible  <bruno@clisp.org>
34523
34524         * lib/lock.h: Protect all macro definitions containing an 'if'
34525         statement through a "do { ... } while (0)".
34526         * lib/tls.h: Likewise.
34527
34528 2007-11-04  Bruno Haible  <bruno@clisp.org>
34529
34530         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
34531
34532 2007-11-04  Bruno Haible  <bruno@clisp.org>
34533
34534         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
34535         * modules/fprintf-posix (Depends-on): Add nocrash.
34536         * modules/snprintf-posix (Depends-on): Likewise.
34537         * modules/sprintf-posix (Depends-on): Likewise.
34538         * modules/vasnprintf-posix (Depends-on): Likewise.
34539         * modules/vasprintf-posix (Depends-on): Likewise.
34540         * modules/vfprintf-posix (Depends-on): Likewise.
34541         * modules/vsnprintf-posix (Depends-on): Likewise.
34542         * modules/vsprintf-posix (Depends-on): Likewise.
34543         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
34544         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34545         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34546         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34547         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34548         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34549         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34550
34551 2007-11-04  Bruno Haible  <bruno@clisp.org>
34552
34553         * modules/nocrash: New file.
34554         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
34555         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
34556
34557 2007-11-04  Bruno Haible  <bruno@clisp.org>
34558
34559         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
34560         precision handling.
34561         * tests/test-vasprintf-posix.c (test_function): Likewise.
34562         * tests/test-snprintf-posix.h (test_function): Likewise.
34563         * tests/test-sprintf-posix.h (test_function): Likewise.
34564
34565         Fix *printf behaviour for large precisions on mingw and BeOS.
34566         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
34567         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
34568         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
34569         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
34570         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34571         gl_PRINTF_PRECISION and test its result. Invoke
34572         gl_PREREQ_VASNPRINTF_PRECISION.
34573         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34574         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34575         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34576         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34577         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34578         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34579         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34580         * doc/functions/fprintf.texi: Update.
34581         * doc/functions/printf.texi: Update.
34582         * doc/functions/snprintf.texi: Update.
34583         * doc/functions/sprintf.texi: Update.
34584         * doc/functions/vfprintf.texi: Update.
34585         * doc/functions/vprintf.texi: Update.
34586         * doc/functions/vsnprintf.texi: Update.
34587         * doc/functions/vsprintf.texi: Update.
34588
34589 2007-11-04  Bruno Haible  <bruno@clisp.org>
34590
34591         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
34592
34593 2007-11-04  Bruno Haible  <bruno@clisp.org>
34594
34595         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
34596         Reported by Sylvain Beucler <beuc@gnu.org>.
34597
34598 2007-11-03  Bruno Haible  <bruno@clisp.org>
34599
34600         * tests/test-fprintf-posix2.sh: New file.
34601         * tests/test-fprintf-posix2.c: New file.
34602         * modules/fprintf-posix-tests (Files): Add them.
34603         (TESTS): Add test-fprintf-posix2.sh.
34604         (configure.ac): Check for getrlimit and setrlimit.
34605         (check_PROGRAMS): Add test-fprintf-posix2.
34606
34607         * tests/test-printf-posix2.sh: New file.
34608         * tests/test-printf-posix2.c: New file.
34609         * modules/printf-posix-tests (Files): Add them.
34610         (TESTS): Add test-printf-posix2.sh.
34611         (configure.ac): Check for getrlimit and setrlimit.
34612         (check_PROGRAMS): Add test-printf-posix2.
34613
34614         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
34615         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
34616         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
34617         (decode_double): New function, copied from decode_long_double.
34618         (scale10_round_decimal_decoded): New function, extracted from
34619         scale10_round_decimal_long_double.
34620         (scale10_round_decimal_long_double): Use it.
34621         (scale10_round_decimal_double): New function.
34622         (floorlog10): New function.
34623         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
34624         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
34625         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
34626         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34627         gl_PRINTF_ENOMEM and test its result. Invoke
34628         gl_PREREQ_VASNPRINTF_ENOMEM.
34629         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34630         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34631         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34632         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34633         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34634         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34635         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34636         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
34637         * modules/snprintf-posix (Depends-on): Likewise.
34638         * modules/sprintf-posix (Depends-on): Likewise.
34639         * modules/vasnprintf-posix (Depends-on): Likewise.
34640         * modules/vasprintf-posix (Depends-on): Likewise.
34641         * modules/vfprintf-posix (Depends-on): Likewise.
34642         * modules/vsnprintf-posix (Depends-on): Likewise.
34643         * modules/vsprintf-posix (Depends-on): Likewise.
34644         * doc/functions/fprintf.texi: Update.
34645         * doc/functions/printf.texi: Update.
34646         * doc/functions/snprintf.texi: Update.
34647         * doc/functions/sprintf.texi: Update.
34648         * doc/functions/vfprintf.texi: Update.
34649         * doc/functions/vprintf.texi: Update.
34650         * doc/functions/vsnprintf.texi: Update.
34651         * doc/functions/vsprintf.texi: Update.
34652
34653 2007-11-03  Bruno Haible  <bruno@clisp.org>
34654
34655         * modules/frexp-nolibm-tests: New file.
34656
34657         * modules/frexp-nolibm: New file.
34658         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
34659
34660 2007-11-03  Bruno Haible  <bruno@clisp.org>
34661
34662         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
34663         value is C99 compliant.
34664         Needed for OSF/1 5.1.
34665
34666 2007-11-03  Bruno Haible  <bruno@clisp.org>
34667
34668         Fix out-of-memory handling of vasnprintf.
34669         * lib/printf-parse.c: Include <errno.h>.
34670         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
34671         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
34672         is already set.
34673
34674 2007-11-02  Eric Blake  <ebb9@byu.net>
34675
34676         Fix tests on cygwin.
34677         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
34678
34679 2007-11-01  Bruno Haible  <bruno@clisp.org>
34680
34681         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
34682         warning.
34683         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
34684         needed for POSIX compatibility.
34685
34686 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
34687
34688         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
34689         for compatibility with GNU.
34690
34691 2007-11-01  Bruno Haible  <bruno@clisp.org>
34692
34693         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
34694         (putenv): Renamed from rpl_putenv. Change argument type from
34695         'const char *' to 'char *'.
34696         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
34697         of defining putenv in config.h, just set REPLACE_PUTENV.
34698         * modules/putenv (Depends-on): Add stdlib.
34699         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34700         (Include): Use <stdlib.h>.
34701         * lib/stdlib.in.h (putenv): New declaration.
34702         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
34703         REPLACE_PUTENV.
34704         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
34705         REPLACE_PUTENV.
34706         Needed for MacOS X 10.5.0.
34707         Reported by Peter O'Gorman <peter@pogma.com>.
34708
34709 2007-11-01  Jim Meyering  <meyering@redhat.com>
34710
34711         Treat an empty date string exactly like "0".
34712         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
34713         if the remaining date string (to be parsed) is empty, use "0".
34714         Reported by Mischa Molhoek and discussed in this thread:
34715         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
34716
34717 2007-10-31  Bruno Haible  <bruno@clisp.org>
34718
34719         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
34720         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
34721         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
34722         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
34723         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
34724         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
34725
34726 2007-10-31  Bruno Haible  <bruno@clisp.org>
34727
34728         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
34729         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
34730         (AC_TYPE_LONG_LONG_INT): Use it.
34731         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
34732         it as well.
34733         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
34734         to m4/longlong.m4.
34735         * modules/stdint (Files): Remove m4/ulonglong.m4.
34736         * modules/strtoull (Files): Use m4/longlong.m4 instead of
34737         m4/ulonglong.m4.
34738         * modules/strtoumax (Files): Likewise.
34739
34740 2007-10-30  Bruno Haible  <bruno@clisp.org>
34741
34742         * modules/xvasprintf-posix: New file.
34743         Suggested by Eric Blake.
34744
34745 2007-10-30  Bruno Haible  <bruno@clisp.org>
34746
34747         * modules/xprintf-posix-tests: New file.
34748         * tests/test-xprintf-posix.sh: New file.
34749         * tests/test-xprintf-posix.c: New file.
34750         * tests/test-xfprintf-posix.c: New file.
34751
34752         * modules/xprintf-posix: New file.
34753
34754 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34755
34756         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
34757         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
34758         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
34759
34760 2007-10-29  Bruno Haible  <bruno@clisp.org>
34761
34762         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
34763         contain the special marker '_cv_'.
34764         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
34765         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
34766         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
34767         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
34768         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
34769         Reported by Ralf Wildenhues.
34770
34771 2007-10-29  Bruno Haible  <bruno@clisp.org>
34772
34773         * gnulib-tool (func_import): When --lgpl is not specified, set
34774         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
34775         GPLv3.
34776         Reported by Simon Josefsson.
34777
34778 2007-10-28  Bruno Haible  <bruno@clisp.org>
34779
34780         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
34781         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
34782         HAVE_DECL_ISFINITE.
34783         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
34784         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
34785         HAVE_DECL_ISFINITE.
34786
34787 2007-10-28  Bruno Haible  <bruno@clisp.org>
34788
34789         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
34790         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
34791
34792 2007-10-28  Bruno Haible  <bruno@clisp.org>
34793
34794         Fix link errors with Sun C 5.0 on Solaris 10.
34795         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
34796         function is declared but not present in the compiler's libm.
34797         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
34798         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
34799         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
34800         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
34801         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
34802         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
34803         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
34804         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
34805         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
34806         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
34807         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
34808         HAVE_DECL_FLOORL.
34809
34810 2007-10-28  Bruno Haible  <bruno@clisp.org>
34811
34812         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
34813         gl_FUNC_FLOORL. Cache the result.
34814         (gl_FUNC_FLOORL): Use it.
34815         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
34816         gl_FUNC_CEILL. Cache the result.
34817         (gl_FUNC_CEILL): Use it.
34818
34819         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
34820         gl_FUNC_FLOOR. Cache the result.
34821         (gl_FUNC_FLOOR): Use it.
34822         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
34823         gl_FUNC_CEIL. Cache the result.
34824         (gl_FUNC_CEIL): Use it.
34825
34826         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
34827         gl_FUNC_FLOORF. Cache the result.
34828         (gl_FUNC_FLOORF): Use it.
34829         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
34830         gl_FUNC_CEILF. Cache the result.
34831         (gl_FUNC_CEILF): Use it.
34832
34833 2007-10-28  Bruno Haible  <bruno@clisp.org>
34834
34835         * gnulib-tool: Allow specifying the LGPL version number through
34836         --lgpl=2 or --lgpl=3.
34837         (func_usage): Document --lgpl with argument.
34838         Handle --lgpl=... arguments.
34839         (func_import): Recognize also gl_LGPL calls with an argument. When
34840         --lgpl=2 is used and the module's license is just LGPL, report an
34841         error. Set sed_transform_lib_file according to the lgpl variable. In
34842         the generated files, use --lgpl or gl_LGPL invocations with argument,
34843         if necessary.
34844         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
34845         an LGPv2+ license.
34846         * doc/gnulib-tool.texi (Modified imports): Update explanation of
34847         gl_LGPL macro.
34848
34849 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34850             Bruno Haible  <bruno@clisp.org>
34851
34852         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
34853         (u16_uctomb_aux): Likewise.
34854         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
34855         !HAVE_INLINE.
34856         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
34857
34858 2007-10-28  Bruno Haible  <bruno@clisp.org>
34859
34860         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
34861         Invoke AM_GETTEXT_OPTION if it exists.
34862         * modules/vasprintf: Likewise.
34863         * modules/verror: Likewise.
34864         * modules/xprintf: Likewise.
34865         * modules/xvasprintf: Likewise.
34866
34867 2007-10-27  Ben Pfaff  <blp@gnu.org>
34868
34869         * lib/math.in.h: Define isfinite macro and prototypes for
34870         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
34871         implementations.
34872         * m4/math_h.m4: New substitutions for isfinite module.
34873         * lib/isfinite.c: New file.
34874         * m4/isfinite.m4: New file.
34875         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
34876         * modules/isfinite: New file.
34877         * modules/isfinite-tests: New file.
34878         * tests/tests-isfinite.c: New file.
34879         * doc/functions/isfinite.texi: Mention isfinite module.
34880         * MODULES.html.sh: Mention new module.
34881
34882 2007-10-27  Ben Pfaff  <blp@gnu.org>
34883
34884         Ralf Wildenhues reported that Tru64 4.0D declares the round
34885         functions but does not have definitions.
34886         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
34887         cannot be found in any library, set the output variable to
34888         "missing" instead of "".
34889         * m4/round.m4: Also use our substitute if we cannot find round in
34890         any library, even if it is declared.
34891         * m4/roundf.m4: Likewise for roundf.
34892         * m4/roundl.m4: Likewise for roundl.
34893         * lib/math.in.h: Undefine roundf, round, roundl before defining
34894         their replacements, to allow for hypothetical systems where these
34895         may be defined as macros but not available in libraries.
34896
34897 2007-10-27  Bruno Haible  <bruno@clisp.org>
34898
34899         * doc/gnulib.texi: Invoke @firstparagraphindent.
34900         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
34901         changes in gnulib.
34902         (Source changes): New section.
34903
34904 2007-10-26  Bruno Haible  <bruno@clisp.org>
34905
34906         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
34907         borrowed from autoconf.
34908
34909 2007-10-26  Bruno Haible  <bruno@clisp.org>
34910
34911         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
34912         strerror returned the empty string. Needed on HP-UX 11.00.
34913
34914 2007-10-24  Micah Cowan  <micah@cowan.name>
34915
34916         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
34917         * build-aux/bootstrap: Remove support for now-unnecessary option,
34918         --cvs-user, and envvars CVS_USER, CVS_RSH.
34919
34920 2007-10-24  Jim Meyering  <meyering@redhat.com>
34921
34922         Avoid diagnostics from sha1sum when there is no cached checksum.
34923         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
34924         if the po.s1 file hasn't been created yet.
34925
34926         * build-aux/bootstrap: Sync from coreutils:
34927         2007-10-24  Jim Meyering  <meyering@redhat.com>
34928         Get gnulib from the git repository, not from an obsolete cvs one.
34929         * build-aux/bootstrap: Suggestion from Micah Cowan.
34930         2007-10-04  Jim Meyering  <jim@meyering.net>
34931         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
34932         (update_po_files): Work also when there are no .po files in po/.
34933
34934 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
34935
34936         * README: Append ".git" to git and cg examples.
34937         Problem reported by Benoit Sigoure.
34938
34939 2007-10-23  Micah Cowan  <micah@cowan.name>
34940
34941         * users.txt: Add wget.
34942
34943 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34944
34945         Fix linking of some unistdio tests on FreeBSD.
34946         * modules/unistdio/u16-vsnprintf-tests
34947         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
34948         * modules/unistdio/u16-vsprintf-tests
34949         (test_u16_vsnprintf1_LDADD): Likewise.
34950         * modules/unistdio/u32-vsnprintf-tests
34951         (test_u32_vsnprintf1_LDADD): Likewise.
34952         * modules/unistdio/u32-vsprintf-tests
34953         (test_u32_vsprintf1_LDADD): Likewise.
34954         * modules/unistdio/u8-vsnprintf-tests
34955         (test_u8_vsnprintf1_LDADD): Likewise.
34956         * modules/unistdio/u8-vsprintf-tests
34957         (test_u8_vsprintf1_LDADD): Likewise.
34958         * modules/unistdio/ulc-vsnprintf-tests
34959         (test_ulc_vsnprintf1_LDADD): Likewise.
34960         * modules/unistdio/ulc-vsprintf-tests
34961         (test_ulc_vsprintf1_LDADD): Likewise.
34962
34963         Fix linking of some uniconv tests on FreeBSD.
34964         * modules/uniconv/u16-conv-from-enc-tests
34965         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
34966         * modules/uniconv/u16-conv-to-enc-tests
34967         (test_u16_conv_to_enc_LDADD): Likewise.
34968         * modules/uniconv/u16-strconv-from-enc-tests
34969         (test_u16_strconv_from_enc_LDADD): Likewise.
34970         * modules/uniconv/u16-strconv-to-enc-tests
34971         (test_u16_strconv_to_enc_LDADD): Likewise.
34972         * modules/uniconv/u32-conv-from-enc-tests
34973         (test_u32_conv_from_enc_LDADD): Likewise.
34974         * modules/uniconv/u32-conv-to-enc-tests
34975         (test_u32_conv_to_enc_LDADD): Likewise.
34976         * modules/uniconv/u32-strconv-from-enc-tests
34977         (test_u32_strconv_from_enc_LDADD): Likewise.
34978         * modules/uniconv/u32-strconv-to-enc-tests
34979         (test_u32_strconv_to_enc_LDADD): Likewise.
34980         * modules/uniconv/u8-conv-from-enc-tests
34981         (test_u8_conv_from_enc_LDADD): Likewise.
34982         * modules/uniconv/u8-conv-to-enc-tests
34983         (test_u8_conv_to_enc_LDADD): Likewise.
34984         * modules/uniconv/u8-strconv-from-enc-tests
34985         (test_u8_strconv_from_enc_LDADD): Likewise.
34986         * modules/uniconv/u8-strconv-to-enc-tests
34987         (test_u8_strconv_to_enc_LDADD): Likewise.
34988
34989 2007-10-22  Bruno Haible  <bruno@clisp.org>
34990
34991         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
34992         size.
34993
34994 2007-10-22  Eric Blake  <ebb9@byu.net>
34995
34996         Tweak x*printf documentation.
34997         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
34998         variable name and comments.
34999         Suggested by Bruno Haible.
35000
35001 2007-10-22  Bruno Haible  <bruno@clisp.org>
35002
35003         * lib/acl.c (copy_acl): Fix file name in comment.
35004
35005 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
35006
35007         Fix Tru64 problem with stdbool.h.
35008         * lib/stdbool.in.h (false, true):
35009         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
35010         Don't declare as an enum in this situation; it runs afoul of Tru64.
35011         Problem reported by Steven M. Schweda in
35012         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
35013
35014 2007-10-22  Eric Blake  <ebb9@byu.net>
35015
35016         Also wrap vf?printf.
35017         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
35018         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
35019         (xvprintf, xvfprintf): New functions.
35020
35021 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35022
35023         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
35024         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
35025
35026         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
35027         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
35028
35029 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
35030
35031         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
35032         by Bruno Haible.
35033
35034 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35035
35036         * lib/getloadavg.c
35037         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
35038         Undef `sys' after including sys/table.h, for Tru64 4.0D.
35039
35040         * tests/test-i-ring.c: Work for C89.
35041
35042 2007-10-22  Bruno Haible  <bruno@clisp.org>
35043
35044         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
35045         -1u, in preprocessor expression, so that we don't test for the bug
35046         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
35047         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
35048
35049 2007-10-22  Eric Blake  <ebb9@byu.net>
35050
35051         * tests/test-yesno.sh: Silence stderr during test.
35052
35053 2007-10-22  Simon Josefsson  <simon@josefsson.org>
35054
35055         * modules/crypto/gc-camellia: New file.
35056
35057         * m4/gc-camellia.m4: New file.
35058
35059         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
35060
35061         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
35062
35063 2007-10-22  Simon Josefsson  <simon@josefsson.org>
35064
35065         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
35066         --help to stdout.  Reported by sms@antinode.org (Steven
35067         M. Schweda).
35068
35069 2007-10-22  Simon Josefsson  <simon@josefsson.org>
35070
35071         * users.txt: Fix link to libksba.
35072
35073 2007-10-21  Ben Pfaff  <blp@gnu.org>
35074
35075         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
35076         round.c roundf implementation that depends on floorf and ceilf to
35077         be tested unconditionally.
35078
35079 2007-10-21  Ben Pfaff  <blp@gnu.org>
35080
35081         * m4/check-libm-func.m4: Removed.
35082         * m4/check-math-lib.m4: New file.
35083         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
35084         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
35085         definition and lack of AC_LIBOBJ([roundf]).
35086         * m4/roundl.m4: Ditto, and similarly for roundl.
35087         * modules/round: Reference new m4 file.
35088         * modules/roundf: Ditto.
35089         * modules/roundl: Ditto.
35090         * tests/test-round2.c (main): Use ROUND instead of round.
35091         Bug report from Bruno Haible.
35092
35093 2007-10-21  Bruno Haible  <bruno@clisp.org>
35094
35095         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
35096         context.
35097
35098 2007-10-21  Bruno Haible  <bruno@clisp.org>
35099
35100         * tests/test-wcwidth.c (main): Allow negative result for some control
35101         characters.
35102
35103         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
35104         Needed on OSF/1 5.1.
35105
35106 2007-10-21  Bruno Haible  <bruno@clisp.org>
35107
35108         * tests/test-floorf1.c: Include isnanf.h.
35109         (main): Use isnanf() instead of isnan().
35110         * tests/test-ceilf1.c: Include isnanf.h.
35111         (main): Use isnanf() instead of isnan().
35112         * tests/test-truncf1.c: Include isnanf.h.
35113         (main): Use isnanf() instead of isnan().
35114         * tests/test-roundf1.c: Include isnanf.h.
35115         (main): Use isnanf() instead of isnan().
35116
35117 2007-10-21  Eric Blake  <ebb9@byu.net>
35118
35119         * users.txt: Update URL for m4.
35120
35121 2007-10-21  Bruno Haible  <bruno@clisp.org>
35122
35123         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
35124
35125 2007-10-21  Bruno Haible  <bruno@clisp.org>
35126
35127         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
35128         Git's management files if the CVS files are not present.
35129
35130 2007-10-20  Bruno Haible  <bruno@clisp.org>
35131
35132         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
35133         gcc-3.4.x.
35134
35135 2007-10-20  Ben Pfaff  <blp@gnu.org>
35136
35137         * lib/math.in.h: Declare round, roundf, roundl if we are providing
35138         implementations.
35139         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
35140         * lib/round.c: New file.
35141         * lib/roundf.c: New file.
35142         * lib/roundl.c: New file.
35143         * m4/round.m4: New file.
35144         * m4/roundf.m4: New file.
35145         * m4/roundl.m4: New file.
35146         * m4/check-libm-func-m4: New file.
35147         * modules/math: Replace round, roundf, roundl related @VARS@ in
35148         math.in.h.
35149         * modules/round: New file.
35150         * modules/round-tests: New file.
35151         * modules/roundf: New file.
35152         * modules/roundf-tests: New file.
35153         * modules/roundl: New file.
35154         * modules/roundl-tests: New file.
35155         * tests/test-round1.c: New file.
35156         * tests/test-round2.c: New file.
35157         * tests/test-roundf1.c: New file.
35158         * tests/test-roundf2.c: New file.
35159         * tests/test-roundl.c: New file.
35160         * doc/functions/round.texi: Mention round module.
35161         * doc/functions/roundf.texi: Mention roundf module.
35162         * doc/functions/roundl.texi: Mention roundl module.
35163         * MODULES.html.sh: Mention new modules.
35164         Thanks to Bruno Haible for suggestions.
35165
35166 2007-10-20  Jim Meyering  <meyering@redhat.com>
35167
35168         * lib/xprintf.c: Include <config.h> unconditionally.
35169
35170         Change xprintf's license to GPL.
35171         * modules/xprintf (License): s/LGPL/GPL/, since this module
35172         depends on modules (exit and exitfail) which are GPL.
35173         Suggestion from Bruno Haible.
35174
35175         xprintf fixes.
35176         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
35177         Use a clearer diagnostic.
35178         Patch from Bruno Haible.
35179
35180 2007-10-20  Bruno Haible  <bruno@clisp.org>
35181
35182         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
35183         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
35184         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35185
35186 2007-10-20  Bruno Haible  <bruno@clisp.org>
35187
35188         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
35189         precision in the comparison result > x - 1 or similar.
35190         * tests/test-ceilf2.c (correct_result_p): Likewise.
35191         * tests/test-truncf2.c (correct_result_p): Likewise.
35192         * tests/test-trunc2.c (correct_result_p): Likewise.
35193         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35194
35195 2007-10-20  Bruno Haible  <bruno@clisp.org>
35196
35197         * modules/ceil: New file.
35198         * m4/ceil.m4: New file.
35199         * doc/functions/ceil.texi: Mention the 'ceil' module.
35200
35201 2007-10-20  Bruno Haible  <bruno@clisp.org>
35202
35203         * modules/floor: New file.
35204         * m4/floor.m4: New file.
35205         * doc/functions/floor.texi: Mention the 'floor' module.
35206
35207 2007-10-20  Bruno Haible  <bruno@clisp.org>
35208
35209         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
35210         of %a.
35211         * modules/floorf-tests (Depends-on): Likewise.
35212         * modules/truncf-tests (Depends-on): Likewise.
35213         * modules/trunc-tests (Depends-on): Likewise.
35214         Reported by Ben Pfaff.
35215
35216 2007-10-19  Jim Meyering  <meyering@redhat.com>
35217
35218         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
35219         Don't bother testing specific errno values.  Just test ferror.
35220
35221         New module: xprintf
35222         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
35223
35224 2007-10-19  Bruno Haible  <bruno@clisp.org>
35225
35226         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
35227         syntax.
35228         * modules/javaexec (Makefile.am): Likewise.
35229         * modules/relocatable-prog (Makefile.am): Likewise.
35230         Suggested by Jim Meyering.
35231
35232 2007-10-18  Bruno Haible  <bruno@clisp.org>
35233
35234         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
35235         Reported by Jim Meyering.
35236
35237 2007-10-18  Eric Blake  <ebb9@byu.net>
35238
35239         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
35240
35241 2007-10-18  Bruno Haible  <bruno@clisp.org>
35242
35243         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
35244         the format string into writable memory. Needed in Fortify conditions.
35245
35246 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
35247             Bruno Haible  <bruno@clisp.org>
35248
35249         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
35250         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
35251         * modules/trim (Depends-on): Add mbchar.
35252         (configure.ac): Add gl_FUNC_MBRTOWC.
35253         (Makefile.am): Augment lib_SOURCES.
35254
35255 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
35256
35257         Modify glob.c to use fstatat and dirfd, to simplify it.
35258         Suggested by Eric Blake.
35259         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
35260         Don't include <stdbool.h>; not used.
35261         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
35262         (link_exists_p): Simplify implementation, since we can now assume
35263         dirfd and fstatat.
35264         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
35265
35266 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35267
35268         * gnulib-tool (func_get_dependencies): Fix sed script to
35269         match only tests.
35270
35271 2007-10-17  Bruno Haible  <bruno@clisp.org>
35272
35273         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
35274         allow locale names without encoding suffix.
35275         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
35276         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
35277
35278 2007-10-16  Bruno Haible  <bruno@clisp.org>
35279
35280         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
35281         * lib/getgroups.c (getgroups): Likewise.
35282         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
35283
35284 2007-10-16  Bruno Haible  <bruno@clisp.org>
35285
35286         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
35287         * modules/malloc-posix (License): Likewise.
35288         * modules/realloc-posix (License): Likewise.
35289         * modules/calloc-posix (License): Likewise.
35290         * modules/intprops (License): Change from GPL to LGPL, with
35291         Paul Eggert's approval.
35292
35293 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
35294
35295         Merge glibc changes into lib/glob.c.
35296
35297         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
35298         2007-10-15 04:59:03 UTC.  Here are the changes:
35299
35300         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
35301
35302         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
35303
35304         * lib/glob.c: Add some branch prediction throughout.
35305
35306         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
35307
35308         [BZ #5103]
35309         * lib/glob.c (glob): Recognize patterns starting \/.
35310
35311         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
35312
35313         [BZ #3996]
35314         * lib/glob.c (attribute_hidden): Define if not defined.
35315         (glob): Unescape dirname, filename or username when needed and not
35316         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
35317         is NULL.  Handle unescaped [ in pattern without closing ].
35318         Don't pass GLOB_CHECK down to recursive glob for directories.
35319         (__glob_pattern_type): New function.
35320         (__glob_pattern_p): Implement using __glob_pattern_type.
35321         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
35322         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
35323         Remove unreachable code.
35324
35325         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
35326
35327         * lib/glob.c (glob_in_dir): Add some comments and asserts to
35328         explain why there are no leaks.
35329
35330         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
35331
35332         [BZ #3253]
35333         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
35334         time, rather allocate increasingly bigger arrays of pointers, if
35335         possible with alloca, if too large with malloc.
35336
35337 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
35338
35339         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
35340         Problem reported by H.Merijn Brand in
35341         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
35342         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
35343         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
35344
35345 2007-10-15  Bruno Haible  <bruno@clisp.org>
35346
35347         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
35348         with explicit rpl_ prefix.
35349         * lib/fopen.c (fopen): Likewise.
35350         * lib/freopen.c (freopen): Likewise.
35351         * lib/iconv.c (iconv): Likewise.
35352         * lib/iconv_close.c (iconv_close): Likewise.
35353
35354 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35355
35356         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
35357
35358 2007-10-15  Bruno Haible  <bruno@clisp.org>
35359
35360         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
35361         <stddef.h> instead of <stdlib.h> since we only need NULL.
35362         Reported by Ben Pfaff <blp@cs.stanford.edu>.
35363
35364 2007-10-15  Bruno Haible  <bruno@clisp.org>
35365
35366         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
35367         Replace paragraph talking about LIBOBJS.
35368         Reported by Colin Watson <cjwatson@debian.org>.
35369
35370 2007-10-15  Bruno Haible  <bruno@clisp.org>
35371
35372         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
35373         <stdlib.h> before using NULL.
35374
35375 2007-10-15  Simon Josefsson  <simon@josefsson.org>
35376
35377         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
35378         Reported by Albert Chin <china@thewrittenword.com>.
35379
35380 2007-10-14  Bruno Haible  <bruno@clisp.org>
35381
35382         * modules/iconv_open-utf-tests: New file.
35383         * tests/test-iconv-utf.c: New file.
35384
35385         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
35386         * modules/iconv_open-utf: New file.
35387         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
35388         (iconv, iconv_close): New declarations.
35389         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
35390         be defined.
35391         (iconv_open): Add special handling of conversion between UTF-8 and
35392         UTF-{16,32}{BE,LE}.
35393         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
35394         * lib/iconv_close.c: New file.
35395         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
35396         gl_FUNC_ICONV_OPEN.
35397         (gl_FUNC_ICONV_OPEN): Use it.
35398         (gl_FUNC_ICONV_OPEN_UTF): New macro.
35399         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
35400         and REPLACE_ICONV_UTF.
35401         * modules/iconv_open (Depends-on): Add c-strcase.
35402         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
35403         ICONV_CONST.
35404         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
35405
35406 2007-10-13  Albert Chin  <china@thewrittenword.com>
35407             Bruno Haible  <bruno@clisp.org>
35408
35409         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
35410         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
35411
35412 2007-10-13  Bruno Haible  <bruno@clisp.org>
35413
35414         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
35415         defined, use the ISO C99 inline semantics.
35416         * lib/argp.h (ARGP_EI): Likewise.
35417
35418 2007-10-13  Bruno Haible  <bruno@clisp.org>
35419
35420         Handle 'inline' change in gcc 4.3.0.
35421         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
35422         argp_fmtstream_write, argp_fmtstream_set_lmargin,
35423         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
35424         argp_fmtstream_point): Disable 'extern' declaration if the function
35425         definition is going to be provided inline.
35426         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
35427         semantics, not the ISO C99 inline semantics.
35428         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
35429         'extern' declaration if the function definition is going to be provided
35430         inline.
35431         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
35432         the GNU C inline semantics, not the ISO C99 inline semantics. With
35433         GCC 4.2, avoid a warning.
35434
35435 2007-10-13  Bruno Haible  <bruno@clisp.org>
35436
35437         * lib/freading.h (freading): Enable the use of __freading for
35438         glibc >= 2.7.
35439         * lib/freading.c (freading): Likewise.
35440
35441 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
35442
35443         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
35444         "warning: C99 inline functions are not supported; using GNU89".
35445
35446 2007-10-12  Bruno Haible  <bruno@clisp.org>
35447
35448         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
35449         of 2.
35450         * tests/test-ceilf2.c: New file.
35451         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
35452
35453         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
35454         * modules/ceilf-tests: Update.
35455
35456 2007-10-12  Bruno Haible  <bruno@clisp.org>
35457
35458         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
35459         of 2.
35460         * tests/test-floorf2.c: New file.
35461         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
35462
35463         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
35464         * modules/floorf-tests: Update.
35465
35466 2007-10-12  Bruno Haible  <bruno@clisp.org>
35467
35468         * tests/test-trunc2.c: New file.
35469         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
35470
35471         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
35472         * modules/trunc-tests: Update.
35473
35474 2007-10-12  Bruno Haible  <bruno@clisp.org>
35475
35476         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
35477         of 2.
35478         * tests/test-truncf2.c: New file.
35479         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
35480
35481         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
35482         * modules/truncf-tests: Update.
35483
35484 2007-10-11  Eric Blake  <ebb9@byu.net>
35485
35486         Don't claim strerror is broken on Interix.
35487         * doc/functions/strerror.texi (strerror): Known broken systems are
35488         now Solaris 8, and not Interix.
35489         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
35490         Interix on cross-compile.
35491         Reported by Martin Koeppe in
35492         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
35493
35494 2007-10-11  Bruno Haible  <bruno@clisp.org>
35495
35496         * modules/i-ring-tests: New file.
35497         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
35498         instead of assert.
35499
35500 2007-10-11  Bruno Haible  <bruno@clisp.org>
35501
35502         * modules/filenamecat-tests: New file.
35503         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
35504         * lib/filenamecat.c: Remove test code.
35505
35506 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
35507
35508         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
35509
35510         * lib/strerror.c: Include <string.h> always, to test interface,
35511         and to remove the need for the dummy.
35512         Include intprops.h to compute width instead of doing it ourselves
35513         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
35514         (strerror): Define it to return NULL if there's no system strerror.
35515         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
35516         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
35517         ancient pre-strerror Unix systems well any more.  Saying "unknown
35518         system error" is enough.
35519         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
35520         simpler strerror.c implementation.
35521         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
35522         Simplify the tests to reflect the simpler strerror implementation.
35523         * modules/strerror (Depends-on): Add intprops.
35524
35525 2007-10-09  Eric Blake  <ebb9@byu.net>
35526
35527         Silence test-fpending.
35528         * modules/fpending-tests (Files): Add wrapper script.
35529         * tests/test-fpending.sh: New file.
35530
35531 2007-10-09  Bruno Haible  <bruno@clisp.org>
35532
35533         * MODULES.html.sh (func_module): Don't create a hyperlink for
35534         function names like 'printf_frexp'.
35535         (Misc): Add crc, memxor.
35536         (Characteristics of floating types): New section.
35537         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
35538         isnanf-nolibm, signbit, trunc, truncf, truncl.
35539         (Enhancements for ISO C 99 functions): New subsection Input/output.
35540         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
35541         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
35542         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
35543         (Compatibility checks for POSIX:2001 functions): Add clock-time.
35544         (Enhancements for POSIX:2001 functions): Add chdir-long.
35545         (File system functions): Add areadlink, chdir-safer, read-file.
35546         Remove cycle-check.
35547         (File system as inode set): New section.
35548         (Date and time): Add gethrxtime.
35549         (Multithreading): Add openmp.
35550         (Internationalization functions): Add localename.
35551         (Unicode string functions): Add unistr/u*-mbsnlen.
35552         (Support for maintaining and releasing projects): Add git-version-gen.
35553         (Lone files): Remove directories.
35554
35555 2007-10-08  Ben Pfaff  <blp@gnu.org>
35556
35557         * lib/xmalloca.h: Fix typo in comment.
35558
35559 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
35560
35561         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
35562         when avoiding problems with integer overflow.  Use a portable test
35563         instead.
35564
35565 2007-10-08  Simon Josefsson  <simon@josefsson.org>
35566
35567         * modules/dummy (License): Change to LGPLv2+.
35568         * modules/float (License): Likewise
35569         * modules/realloc (License): Likewise
35570         * modules/stdlib (License): Likewise
35571
35572 2007-10-07  Bruno Haible  <bruno@clisp.org>
35573
35574         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
35575         * floor.c (TWO_MANT_DIG): Likewise.
35576         * ceil.c (TWO_MANT_DIG): Likewise.
35577         Reported by Ben Pfaff.
35578
35579 2007-10-07  Bruno Haible  <bruno@clisp.org>
35580
35581         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
35582         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
35583         * lib/frexp.c (FUNC): Likewise.
35584         * lib/printf-frexp.h (printf_frexp): Likewise.
35585         * lib/printf-frexpl.h (printf_frexpl): Likewise.
35586         * lib/printf-frexp.c (FUNC): Likewise.
35587         Suggested by Jim Meyering.
35588
35589 2007-10-07  Jim Meyering  <meyering@redhat.com>
35590
35591         Make xnanosleep's integer overflow test more robust.
35592         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
35593         so that gcc-4.3.0 doesn't optimize away this test for overflow.
35594
35595 2007-10-07  Bruno Haible  <bruno@clisp.org>
35596
35597         * NEWS: Mention the license change.
35598
35599         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
35600         abbreviations in the modules files.
35601
35602         Change copyright notice from GPLv2+ to GPLv3+.
35603         * README: Change copyright notice.
35604         * MODULES.html.sh: Likewise.
35605         * build-aux/bootstrap.conf: Likewise.
35606         * build-aux/config.libpath: Likewise.
35607         * build-aux/csharpcomp.sh.in: Likewise.
35608         * build-aux/csharpexec.sh.in: Likewise.
35609         * build-aux/install-reloc: Likewise.
35610         * build-aux/javacomp.sh.in: Likewise.
35611         * build-aux/javaexec.sh.in: Likewise.
35612         * build-aux/ldd.sh.in: Likewise.
35613         * build-aux/reloc-ldflags: Likewise.
35614         * build-aux/relocatable.sh.in: Likewise.
35615         * build-aux/x-to-1.in: Likewise.
35616         * check-module: Likewise.
35617         * config/srclistvars.sh: Likewise.
35618         * gnulib-tool: Likewise.
35619         * lib/acl-internal.h: Likewise.
35620         * lib/acl.c: Likewise.
35621         * lib/acl.h: Likewise.
35622         * lib/acl_entries.c: Likewise.
35623         * lib/areadlink-with-size.c: Likewise.
35624         * lib/areadlink.c: Likewise.
35625         * lib/areadlink.h: Likewise.
35626         * lib/argmatch.c: Likewise.
35627         * lib/argmatch.h: Likewise.
35628         * lib/argp-ba.c: Likewise.
35629         * lib/argp-eexst.c: Likewise.
35630         * lib/argp-fmtstream.c: Likewise.
35631         * lib/argp-fmtstream.h: Likewise.
35632         * lib/argp-fs-xinl.c: Likewise.
35633         * lib/argp-help.c: Likewise.
35634         * lib/argp-namefrob.h: Likewise.
35635         * lib/argp-parse.c: Likewise.
35636         * lib/argp-pin.c: Likewise.
35637         * lib/argp-pv.c: Likewise.
35638         * lib/argp-pvh.c: Likewise.
35639         * lib/argp-xinl.c: Likewise.
35640         * lib/argp.h: Likewise.
35641         * lib/at-func.c: Likewise.
35642         * lib/atanl.c: Likewise.
35643         * lib/backupfile.c: Likewise.
35644         * lib/backupfile.h: Likewise.
35645         * lib/basename.c: Likewise.
35646         * lib/binary-io.h: Likewise.
35647         * lib/byteswap.in.h: Likewise.
35648         * lib/c-stack.c: Likewise.
35649         * lib/c-stack.h: Likewise.
35650         * lib/c-strcasestr.c: Likewise.
35651         * lib/c-strcasestr.h: Likewise.
35652         * lib/c-strstr.c: Likewise.
35653         * lib/c-strstr.h: Likewise.
35654         * lib/c-strtod.c: Likewise.
35655         * lib/calloc.c: Likewise.
35656         * lib/canon-host.c: Likewise.
35657         * lib/canon-host.h: Likewise.
35658         * lib/canonicalize-lgpl.c: Likewise.
35659         * lib/canonicalize.c: Likewise.
35660         * lib/canonicalize.h: Likewise.
35661         * lib/ceil.c: Likewise.
35662         * lib/ceilf.c: Likewise.
35663         * lib/ceill.c: Likewise.
35664         * lib/chdir-long.c: Likewise.
35665         * lib/chdir-long.h: Likewise.
35666         * lib/chdir-safer.c: Likewise.
35667         * lib/chdir-safer.h: Likewise.
35668         * lib/chown.c: Likewise.
35669         * lib/classpath.c: Likewise.
35670         * lib/classpath.h: Likewise.
35671         * lib/clean-temp.c: Likewise.
35672         * lib/clean-temp.h: Likewise.
35673         * lib/cloexec.c: Likewise.
35674         * lib/close-stream.c: Likewise.
35675         * lib/closein.c: Likewise.
35676         * lib/closein.h: Likewise.
35677         * lib/closeout.c: Likewise.
35678         * lib/closeout.h: Likewise.
35679         * lib/concat-filename.c: Likewise.
35680         * lib/copy-file.c: Likewise.
35681         * lib/copy-file.h: Likewise.
35682         * lib/count-one-bits.h: Likewise.
35683         * lib/crc.c: Likewise.
35684         * lib/crc.h: Likewise.
35685         * lib/creat-safer.c: Likewise.
35686         * lib/csharpcomp.c: Likewise.
35687         * lib/csharpcomp.h: Likewise.
35688         * lib/csharpexec.c: Likewise.
35689         * lib/csharpexec.h: Likewise.
35690         * lib/cycle-check.c: Likewise.
35691         * lib/cycle-check.h: Likewise.
35692         * lib/diacrit.c: Likewise.
35693         * lib/diacrit.h: Likewise.
35694         * lib/diffseq.h: Likewise.
35695         * lib/dirchownmod.c: Likewise.
35696         * lib/dirent.in.h: Likewise.
35697         * lib/dirfd.c: Likewise.
35698         * lib/dirfd.h: Likewise.
35699         * lib/dirname.c: Likewise.
35700         * lib/dirname.h: Likewise.
35701         * lib/dummy.c: Likewise.
35702         * lib/dup-safer.c: Likewise.
35703         * lib/dup2.c: Likewise.
35704         * lib/eealloc.h: Likewise.
35705         * lib/error.c: Likewise.
35706         * lib/error.h: Likewise.
35707         * lib/euidaccess.c: Likewise.
35708         * lib/exclude.c: Likewise.
35709         * lib/exclude.h: Likewise.
35710         * lib/execute.c: Likewise.
35711         * lib/execute.h: Likewise.
35712         * lib/exitfail.c: Likewise.
35713         * lib/exitfail.h: Likewise.
35714         * lib/expl.c: Likewise.
35715         * lib/fatal-signal.c: Likewise.
35716         * lib/fatal-signal.h: Likewise.
35717         * lib/fbufmode.c: Likewise.
35718         * lib/fbufmode.h: Likewise.
35719         * lib/fchdir.c: Likewise.
35720         * lib/fchmodat.c: Likewise.
35721         * lib/fchownat.c: Likewise.
35722         * lib/fcntl--.h: Likewise.
35723         * lib/fcntl-safer.h: Likewise.
35724         * lib/fcntl.in.h: Likewise.
35725         * lib/fd-safer.c: Likewise.
35726         * lib/fflush.c: Likewise.
35727         * lib/file-has-acl.c: Likewise.
35728         * lib/file-set.c: Likewise.
35729         * lib/file-type.c: Likewise.
35730         * lib/file-type.h: Likewise.
35731         * lib/fileblocks.c: Likewise.
35732         * lib/filemode.c: Likewise.
35733         * lib/filemode.h: Likewise.
35734         * lib/filename.h: Likewise.
35735         * lib/filenamecat.c: Likewise.
35736         * lib/filenamecat.h: Likewise.
35737         * lib/findprog.c: Likewise.
35738         * lib/findprog.h: Likewise.
35739         * lib/float.in.h: Likewise.
35740         * lib/floor.c: Likewise.
35741         * lib/floorf.c: Likewise.
35742         * lib/floorl.c: Likewise.
35743         * lib/fopen-safer.c: Likewise.
35744         * lib/fopen.c: Likewise.
35745         * lib/fpending.c: Likewise.
35746         * lib/fpending.h: Likewise.
35747         * lib/fprintf.c: Likewise.
35748         * lib/fprintftime.h: Likewise.
35749         * lib/fpucw.h: Likewise.
35750         * lib/fpurge.c: Likewise.
35751         * lib/fpurge.h: Likewise.
35752         * lib/freadable.c: Likewise.
35753         * lib/freadable.h: Likewise.
35754         * lib/freadahead.c: Likewise.
35755         * lib/freadahead.h: Likewise.
35756         * lib/freading.c: Likewise.
35757         * lib/freading.h: Likewise.
35758         * lib/free.c: Likewise.
35759         * lib/freopen.c: Likewise.
35760         * lib/frexp.c: Likewise.
35761         * lib/frexpl.c: Likewise.
35762         * lib/fseek.c: Likewise.
35763         * lib/fseterr.c: Likewise.
35764         * lib/fseterr.h: Likewise.
35765         * lib/fstatat.c: Likewise.
35766         * lib/fstrcmp.c: Likewise.
35767         * lib/fstrcmp.h: Likewise.
35768         * lib/fsusage.c: Likewise.
35769         * lib/fsusage.h: Likewise.
35770         * lib/ftell.c: Likewise.
35771         * lib/ftello.c: Likewise.
35772         * lib/fts-cycle.c: Likewise.
35773         * lib/fts.c: Likewise.
35774         * lib/fts_.h: Likewise.
35775         * lib/full-read.c: Likewise.
35776         * lib/full-read.h: Likewise.
35777         * lib/full-write.c: Likewise.
35778         * lib/full-write.h: Likewise.
35779         * lib/fwritable.c: Likewise.
35780         * lib/fwritable.h: Likewise.
35781         * lib/fwriteerror.c: Likewise.
35782         * lib/fwriteerror.h: Likewise.
35783         * lib/fwriting.c: Likewise.
35784         * lib/fwriting.h: Likewise.
35785         * lib/gcd.c: Likewise.
35786         * lib/gcd.h: Likewise.
35787         * lib/getcwd.c: Likewise.
35788         * lib/getdate.h: Likewise.
35789         * lib/getdate.y: Likewise.
35790         * lib/getdomainname.c: Likewise.
35791         * lib/getdomainname.h: Likewise.
35792         * lib/getgroups.c: Likewise.
35793         * lib/gethostname.c: Likewise.
35794         * lib/gethrxtime.c: Likewise.
35795         * lib/gethrxtime.h: Likewise.
35796         * lib/getloadavg.c: Likewise.
35797         * lib/getndelim2.c: Likewise.
35798         * lib/getndelim2.h: Likewise.
35799         * lib/getnline.c: Likewise.
35800         * lib/getnline.h: Likewise.
35801         * lib/getopt.c: Likewise.
35802         * lib/getopt.in.h: Likewise.
35803         * lib/getopt1.c: Likewise.
35804         * lib/getopt_int.h: Likewise.
35805         * lib/getpagesize.h: Likewise.
35806         * lib/getsubopt.c: Likewise.
35807         * lib/gettime.c: Likewise.
35808         * lib/getugroups.c: Likewise.
35809         * lib/getugroups.h: Likewise.
35810         * lib/getusershell.c: Likewise.
35811         * lib/gl_anyavltree_list1.h: Likewise.
35812         * lib/gl_anyavltree_list2.h: Likewise.
35813         * lib/gl_anyhash_list1.h: Likewise.
35814         * lib/gl_anyhash_list2.h: Likewise.
35815         * lib/gl_anylinked_list1.h: Likewise.
35816         * lib/gl_anylinked_list2.h: Likewise.
35817         * lib/gl_anyrbtree_list1.h: Likewise.
35818         * lib/gl_anyrbtree_list2.h: Likewise.
35819         * lib/gl_anytree_list1.h: Likewise.
35820         * lib/gl_anytree_list2.h: Likewise.
35821         * lib/gl_anytree_oset.h: Likewise.
35822         * lib/gl_anytreehash_list1.h: Likewise.
35823         * lib/gl_anytreehash_list2.h: Likewise.
35824         * lib/gl_array_list.c: Likewise.
35825         * lib/gl_array_list.h: Likewise.
35826         * lib/gl_array_oset.c: Likewise.
35827         * lib/gl_array_oset.h: Likewise.
35828         * lib/gl_avltree_list.c: Likewise.
35829         * lib/gl_avltree_list.h: Likewise.
35830         * lib/gl_avltree_oset.c: Likewise.
35831         * lib/gl_avltree_oset.h: Likewise.
35832         * lib/gl_avltreehash_list.c: Likewise.
35833         * lib/gl_avltreehash_list.h: Likewise.
35834         * lib/gl_carray_list.c: Likewise.
35835         * lib/gl_carray_list.h: Likewise.
35836         * lib/gl_linked_list.c: Likewise.
35837         * lib/gl_linked_list.h: Likewise.
35838         * lib/gl_linkedhash_list.c: Likewise.
35839         * lib/gl_linkedhash_list.h: Likewise.
35840         * lib/gl_list.c: Likewise.
35841         * lib/gl_list.h: Likewise.
35842         * lib/gl_oset.c: Likewise.
35843         * lib/gl_oset.h: Likewise.
35844         * lib/gl_rbtree_list.c: Likewise.
35845         * lib/gl_rbtree_list.h: Likewise.
35846         * lib/gl_rbtree_oset.c: Likewise.
35847         * lib/gl_rbtree_oset.h: Likewise.
35848         * lib/gl_rbtreehash_list.c: Likewise.
35849         * lib/gl_rbtreehash_list.h: Likewise.
35850         * lib/gl_sublist.c: Likewise.
35851         * lib/gl_sublist.h: Likewise.
35852         * lib/group-member.c: Likewise.
35853         * lib/group-member.h: Likewise.
35854         * lib/hard-locale.c: Likewise.
35855         * lib/hard-locale.h: Likewise.
35856         * lib/hash-pjw.c: Likewise.
35857         * lib/hash-pjw.h: Likewise.
35858         * lib/hash-triple.c: Likewise.
35859         * lib/hash.c: Likewise.
35860         * lib/hash.h: Likewise.
35861         * lib/human.c: Likewise.
35862         * lib/human.h: Likewise.
35863         * lib/i-ring.c: Likewise.
35864         * lib/i-ring.h: Likewise.
35865         * lib/idcache.c: Likewise.
35866         * lib/imaxabs.c: Likewise.
35867         * lib/imaxdiv.c: Likewise.
35868         * lib/inet_pton.c: Likewise.
35869         * lib/inet_pton.h: Likewise.
35870         * lib/intprops.h: Likewise.
35871         * lib/inttostr.c: Likewise.
35872         * lib/inttostr.h: Likewise.
35873         * lib/inttypes.in.h: Likewise.
35874         * lib/isapipe.c: Likewise.
35875         * lib/isdir.c: Likewise.
35876         * lib/isnan.c: Likewise.
35877         * lib/isnan.h: Likewise.
35878         * lib/isnanf.c: Likewise.
35879         * lib/isnanf.h: Likewise.
35880         * lib/isnanl-nolibm.h: Likewise.
35881         * lib/isnanl.c: Likewise.
35882         * lib/isnanl.h: Likewise.
35883         * lib/javacomp.c: Likewise.
35884         * lib/javacomp.h: Likewise.
35885         * lib/javaexec.c: Likewise.
35886         * lib/javaexec.h: Likewise.
35887         * lib/javaversion.c: Likewise.
35888         * lib/javaversion.h: Likewise.
35889         * lib/javaversion.java: Likewise.
35890         * lib/lbrkprop.h: Likewise.
35891         * lib/lchmod.h: Likewise.
35892         * lib/lchown.c: Likewise.
35893         * lib/ldexpl.c: Likewise.
35894         * lib/linebreak.c: Likewise.
35895         * lib/linebreak.h: Likewise.
35896         * lib/linebuffer.c: Likewise.
35897         * lib/linebuffer.h: Likewise.
35898         * lib/locale.in.h: Likewise.
35899         * lib/logl.c: Likewise.
35900         * lib/long-options.c: Likewise.
35901         * lib/long-options.h: Likewise.
35902         * lib/lstat.c: Likewise.
35903         * lib/lstat.h: Likewise.
35904         * lib/math.in.h: Likewise.
35905         * lib/mbchar.c: Likewise.
35906         * lib/mbchar.h: Likewise.
35907         * lib/mbfile.h: Likewise.
35908         * lib/mbiter.h: Likewise.
35909         * lib/mbscasecmp.c: Likewise.
35910         * lib/mbscasestr.c: Likewise.
35911         * lib/mbschr.c: Likewise.
35912         * lib/mbscspn.c: Likewise.
35913         * lib/mbslen.c: Likewise.
35914         * lib/mbsncasecmp.c: Likewise.
35915         * lib/mbsnlen.c: Likewise.
35916         * lib/mbspbrk.c: Likewise.
35917         * lib/mbspcasecmp.c: Likewise.
35918         * lib/mbsrchr.c: Likewise.
35919         * lib/mbssep.c: Likewise.
35920         * lib/mbsspn.c: Likewise.
35921         * lib/mbsstr.c: Likewise.
35922         * lib/mbstok_r.c: Likewise.
35923         * lib/mbswidth.c: Likewise.
35924         * lib/mbswidth.h: Likewise.
35925         * lib/mbuiter.h: Likewise.
35926         * lib/memcasecmp.c: Likewise.
35927         * lib/memcasecmp.h: Likewise.
35928         * lib/memchr.c: Likewise.
35929         * lib/memcmp.c: Likewise.
35930         * lib/memcoll.c: Likewise.
35931         * lib/memcoll.h: Likewise.
35932         * lib/memcpy.c: Likewise.
35933         * lib/memrchr.c: Likewise.
35934         * lib/mkancesdirs.c: Likewise.
35935         * lib/mkdir-p.c: Likewise.
35936         * lib/mkdir-p.h: Likewise.
35937         * lib/mkdir.c: Likewise.
35938         * lib/mkdirat.c: Likewise.
35939         * lib/mkdtemp.c: Likewise.
35940         * lib/mkstemp-safer.c: Likewise.
35941         * lib/mkstemp.c: Likewise.
35942         * lib/modechange.c: Likewise.
35943         * lib/modechange.h: Likewise.
35944         * lib/mountlist.c: Likewise.
35945         * lib/mountlist.h: Likewise.
35946         * lib/mpsort.c: Likewise.
35947         * lib/nanosleep.c: Likewise.
35948         * lib/obstack.c: Likewise.
35949         * lib/obstack.h: Likewise.
35950         * lib/open-safer.c: Likewise.
35951         * lib/open.c: Likewise.
35952         * lib/openat-die.c: Likewise.
35953         * lib/openat-priv.h: Likewise.
35954         * lib/openat-proc.c: Likewise.
35955         * lib/openat.c: Likewise.
35956         * lib/openat.h: Likewise.
35957         * lib/pagealign_alloc.c: Likewise.
35958         * lib/pagealign_alloc.h: Likewise.
35959         * lib/physmem.c: Likewise.
35960         * lib/physmem.h: Likewise.
35961         * lib/pipe-safer.c: Likewise.
35962         * lib/pipe.c: Likewise.
35963         * lib/pipe.h: Likewise.
35964         * lib/posixtm.c: Likewise.
35965         * lib/posixtm.h: Likewise.
35966         * lib/posixver.c: Likewise.
35967         * lib/printf-frexp.c: Likewise.
35968         * lib/printf-frexp.h: Likewise.
35969         * lib/printf-frexpl.c: Likewise.
35970         * lib/printf-frexpl.h: Likewise.
35971         * lib/printf.c: Likewise.
35972         * lib/progname.c: Likewise.
35973         * lib/progname.h: Likewise.
35974         * lib/progreloc.c: Likewise.
35975         * lib/putenv.c: Likewise.
35976         * lib/quote.c: Likewise.
35977         * lib/quote.h: Likewise.
35978         * lib/quotearg.c: Likewise.
35979         * lib/quotearg.h: Likewise.
35980         * lib/raise.c: Likewise.
35981         * lib/readline.c: Likewise.
35982         * lib/readline.h: Likewise.
35983         * lib/readlink.c: Likewise.
35984         * lib/readtokens.c: Likewise.
35985         * lib/readtokens.h: Likewise.
35986         * lib/readtokens0.c: Likewise.
35987         * lib/readtokens0.h: Likewise.
35988         * lib/readutmp.c: Likewise.
35989         * lib/readutmp.h: Likewise.
35990         * lib/realloc.c: Likewise.
35991         * lib/relocwrapper.c: Likewise.
35992         * lib/rename-dest-slash.c: Likewise.
35993         * lib/rename.c: Likewise.
35994         * lib/rmdir.c: Likewise.
35995         * lib/rpmatch.c: Likewise.
35996         * lib/safe-read.c: Likewise.
35997         * lib/safe-read.h: Likewise.
35998         * lib/safe-write.c: Likewise.
35999         * lib/safe-write.h: Likewise.
36000         * lib/same-inode.h: Likewise.
36001         * lib/same.c: Likewise.
36002         * lib/same.h: Likewise.
36003         * lib/save-cwd.c: Likewise.
36004         * lib/save-cwd.h: Likewise.
36005         * lib/savedir.c: Likewise.
36006         * lib/savedir.h: Likewise.
36007         * lib/savewd.c: Likewise.
36008         * lib/savewd.h: Likewise.
36009         * lib/search.in.h: Likewise.
36010         * lib/setenv.c: Likewise.
36011         * lib/setenv.h: Likewise.
36012         * lib/settime.c: Likewise.
36013         * lib/sh-quote.c: Likewise.
36014         * lib/sh-quote.h: Likewise.
36015         * lib/sig2str.c: Likewise.
36016         * lib/sig2str.h: Likewise.
36017         * lib/signal.in.h: Likewise.
36018         * lib/signbitd.c: Likewise.
36019         * lib/signbitf.c: Likewise.
36020         * lib/signbitl.c: Likewise.
36021         * lib/sigprocmask.c: Likewise.
36022         * lib/sincosl.c: Likewise.
36023         * lib/sleep.c: Likewise.
36024         * lib/sprintf.c: Likewise.
36025         * lib/sqrtl.c: Likewise.
36026         * lib/stat-time.h: Likewise.
36027         * lib/stdio--.h: Likewise.
36028         * lib/stdio-safer.h: Likewise.
36029         * lib/stdlib--.h: Likewise.
36030         * lib/stdlib-safer.h: Likewise.
36031         * lib/stdlib.in.h: Likewise.
36032         * lib/stpcpy.c: Likewise.
36033         * lib/stpncpy.c: Likewise.
36034         * lib/strchrnul.c: Likewise.
36035         * lib/strcspn.c: Likewise.
36036         * lib/strerror.c: Likewise.
36037         * lib/strftime.c: Likewise.
36038         * lib/strftime.h: Likewise.
36039         * lib/striconveh.c: Likewise.
36040         * lib/striconveh.h: Likewise.
36041         * lib/striconveha.c: Likewise.
36042         * lib/striconveha.h: Likewise.
36043         * lib/stripslash.c: Likewise.
36044         * lib/strnlen1.c: Likewise.
36045         * lib/strnlen1.h: Likewise.
36046         * lib/strtod.c: Likewise.
36047         * lib/strtoimax.c: Likewise.
36048         * lib/strtok_r.c: Likewise.
36049         * lib/strtol.c: Likewise.
36050         * lib/strtoll.c: Likewise.
36051         * lib/strtoul.c: Likewise.
36052         * lib/strtoull.c: Likewise.
36053         * lib/sysexits.in.h: Likewise.
36054         * lib/tempname.c: Likewise.
36055         * lib/tempname.h: Likewise.
36056         * lib/timespec.h: Likewise.
36057         * lib/tls.c: Likewise.
36058         * lib/tls.h: Likewise.
36059         * lib/tmpdir.c: Likewise.
36060         * lib/tmpdir.h: Likewise.
36061         * lib/tmpfile-safer.c: Likewise.
36062         * lib/tmpfile.c: Likewise.
36063         * lib/trigl.c: Likewise.
36064         * lib/trigl.h: Likewise.
36065         * lib/trim.c: Likewise.
36066         * lib/trim.h: Likewise.
36067         * lib/trunc.c: Likewise.
36068         * lib/truncf.c: Likewise.
36069         * lib/truncl.c: Likewise.
36070         * lib/tsearch.c: Likewise.
36071         * lib/unicodeio.c: Likewise.
36072         * lib/unicodeio.h: Likewise.
36073         * lib/unistd--.h: Likewise.
36074         * lib/unistd-safer.h: Likewise.
36075         * lib/unistdio/ulc-fprintf.c: Likewise.
36076         * lib/unistdio/ulc-vfprintf.c: Likewise.
36077         * lib/unlinkdir.c: Likewise.
36078         * lib/unlinkdir.h: Likewise.
36079         * lib/unlocked-io.h: Likewise.
36080         * lib/unsetenv.c: Likewise.
36081         * lib/userspec.c: Likewise.
36082         * lib/utime.c: Likewise.
36083         * lib/utimecmp.c: Likewise.
36084         * lib/utimecmp.h: Likewise.
36085         * lib/utimens.c: Likewise.
36086         * lib/verify.h: Likewise.
36087         * lib/verror.c: Likewise.
36088         * lib/verror.h: Likewise.
36089         * lib/version-etc-fsf.c: Likewise.
36090         * lib/version-etc.c: Likewise.
36091         * lib/version-etc.h: Likewise.
36092         * lib/vfprintf.c: Likewise.
36093         * lib/vprintf.c: Likewise.
36094         * lib/vsprintf.c: Likewise.
36095         * lib/w32spawn.h: Likewise.
36096         * lib/wait-process.c: Likewise.
36097         * lib/wait-process.h: Likewise.
36098         * lib/wcwidth.c: Likewise.
36099         * lib/write-any-file.c: Likewise.
36100         * lib/xalloc-die.c: Likewise.
36101         * lib/xalloc.h: Likewise.
36102         * lib/xasprintf.c: Likewise.
36103         * lib/xgetcwd.c: Likewise.
36104         * lib/xgetcwd.h: Likewise.
36105         * lib/xgetdomainname.c: Likewise.
36106         * lib/xgetdomainname.h: Likewise.
36107         * lib/xgethostname.c: Likewise.
36108         * lib/xmalloc.c: Likewise.
36109         * lib/xmalloca.c: Likewise.
36110         * lib/xmalloca.h: Likewise.
36111         * lib/xmemcoll.c: Likewise.
36112         * lib/xnanosleep.c: Likewise.
36113         * lib/xreadlink.c: Likewise.
36114         * lib/xreadlink.h: Likewise.
36115         * lib/xsetenv.c: Likewise.
36116         * lib/xsetenv.h: Likewise.
36117         * lib/xstriconv.c: Likewise.
36118         * lib/xstriconv.h: Likewise.
36119         * lib/xstrndup.c: Likewise.
36120         * lib/xstrndup.h: Likewise.
36121         * lib/xstrtod.c: Likewise.
36122         * lib/xstrtod.h: Likewise.
36123         * lib/xstrtol-error.c: Likewise.
36124         * lib/xstrtol.c: Likewise.
36125         * lib/xstrtol.h: Likewise.
36126         * lib/xtime.h: Likewise.
36127         * lib/xvasprintf.c: Likewise.
36128         * lib/xvasprintf.h: Likewise.
36129         * lib/yesno.c: Likewise.
36130         * lib/yesno.h: Likewise.
36131         * posix-modules: Likewise.
36132         * tests/test-alloca-opt.c: Likewise.
36133         * tests/test-arcfour.c: Likewise.
36134         * tests/test-arctwo.c: Likewise.
36135         * tests/test-argmatch.c: Likewise.
36136         * tests/test-argp-2.sh: Likewise.
36137         * tests/test-argp.c: Likewise.
36138         * tests/test-arpa_inet.c: Likewise.
36139         * tests/test-array_list.c: Likewise.
36140         * tests/test-array_oset.c: Likewise.
36141         * tests/test-atexit.c: Likewise.
36142         * tests/test-avltree_list.c: Likewise.
36143         * tests/test-avltree_oset.c: Likewise.
36144         * tests/test-avltreehash_list.c: Likewise.
36145         * tests/test-base64.c: Likewise.
36146         * tests/test-binary-io.c: Likewise.
36147         * tests/test-byteswap.c: Likewise.
36148         * tests/test-c-ctype.c: Likewise.
36149         * tests/test-c-strcasecmp.c: Likewise.
36150         * tests/test-c-strcasestr.c: Likewise.
36151         * tests/test-c-strncasecmp.c: Likewise.
36152         * tests/test-c-strstr.c: Likewise.
36153         * tests/test-canonicalize-lgpl.c: Likewise.
36154         * tests/test-canonicalize.c: Likewise.
36155         * tests/test-carray_list.c: Likewise.
36156         * tests/test-ceilf.c: Likewise.
36157         * tests/test-ceill.c: Likewise.
36158         * tests/test-count-one-bits.c: Likewise.
36159         * tests/test-crc.c: Likewise.
36160         * tests/test-dirname.c: Likewise.
36161         * tests/test-fbufmode.c: Likewise.
36162         * tests/test-fcntl.c: Likewise.
36163         * tests/test-fflush.c: Likewise.
36164         * tests/test-floorf.c: Likewise.
36165         * tests/test-floorl.c: Likewise.
36166         * tests/test-fopen.c: Likewise.
36167         * tests/test-fprintf-posix.c: Likewise.
36168         * tests/test-fprintf-posix.h: Likewise.
36169         * tests/test-fpurge.c: Likewise.
36170         * tests/test-freadable.c: Likewise.
36171         * tests/test-freadahead.c: Likewise.
36172         * tests/test-freading.c: Likewise.
36173         * tests/test-freopen.c: Likewise.
36174         * tests/test-frexp.c: Likewise.
36175         * tests/test-frexpl.c: Likewise.
36176         * tests/test-fseek.c: Likewise.
36177         * tests/test-fseeko.c: Likewise.
36178         * tests/test-fseterr.c: Likewise.
36179         * tests/test-fstrcmp.c: Likewise.
36180         * tests/test-ftell.c: Likewise.
36181         * tests/test-ftello.c: Likewise.
36182         * tests/test-fwritable.c: Likewise.
36183         * tests/test-fwriting.c: Likewise.
36184         * tests/test-getaddrinfo.c: Likewise.
36185         * tests/test-getpass.c: Likewise.
36186         * tests/test-gettimeofday.c: Likewise.
36187         * tests/test-hmac-md5.c: Likewise.
36188         * tests/test-hmac-sha1.c: Likewise.
36189         * tests/test-iconv.c: Likewise.
36190         * tests/test-iconvme.c: Likewise.
36191         * tests/test-inttypes.c: Likewise.
36192         * tests/test-isnan.c: Likewise.
36193         * tests/test-isnanf.c: Likewise.
36194         * tests/test-isnanl-nolibm.c: Likewise.
36195         * tests/test-isnanl.c: Likewise.
36196         * tests/test-isnanl.h: Likewise.
36197         * tests/test-ldexpl.c: Likewise.
36198         * tests/test-linked_list.c: Likewise.
36199         * tests/test-linkedhash_list.c: Likewise.
36200         * tests/test-locale.c: Likewise.
36201         * tests/test-localename.c: Likewise.
36202         * tests/test-lock.c: Likewise.
36203         * tests/test-lseek.c: Likewise.
36204         * tests/test-malloca.c: Likewise.
36205         * tests/test-math.c: Likewise.
36206         * tests/test-mbscasecmp.c: Likewise.
36207         * tests/test-mbscasestr1.c: Likewise.
36208         * tests/test-mbscasestr2.c: Likewise.
36209         * tests/test-mbscasestr3.c: Likewise.
36210         * tests/test-mbscasestr4.c: Likewise.
36211         * tests/test-mbschr.c: Likewise.
36212         * tests/test-mbscspn.c: Likewise.
36213         * tests/test-mbsncasecmp.c: Likewise.
36214         * tests/test-mbspbrk.c: Likewise.
36215         * tests/test-mbspcasecmp.c: Likewise.
36216         * tests/test-mbsrchr.c: Likewise.
36217         * tests/test-mbsspn.c: Likewise.
36218         * tests/test-mbsstr1.c: Likewise.
36219         * tests/test-mbsstr2.c: Likewise.
36220         * tests/test-mbsstr3.c: Likewise.
36221         * tests/test-md5.c: Likewise.
36222         * tests/test-memmem.c: Likewise.
36223         * tests/test-netinet_in.c: Likewise.
36224         * tests/test-open.c: Likewise.
36225         * tests/test-printf-frexp.c: Likewise.
36226         * tests/test-printf-frexpl.c: Likewise.
36227         * tests/test-printf-posix.c: Likewise.
36228         * tests/test-printf-posix.h: Likewise.
36229         * tests/test-rbtree_list.c: Likewise.
36230         * tests/test-rbtree_oset.c: Likewise.
36231         * tests/test-rbtreehash_list.c: Likewise.
36232         * tests/test-read-file.c: Likewise.
36233         * tests/test-rijndael.c: Likewise.
36234         * tests/test-search.c: Likewise.
36235         * tests/test-signbit.c: Likewise.
36236         * tests/test-sleep.c: Likewise.
36237         * tests/test-snprintf-posix.c: Likewise.
36238         * tests/test-snprintf-posix.h: Likewise.
36239         * tests/test-snprintf.c: Likewise.
36240         * tests/test-sprintf-posix.c: Likewise.
36241         * tests/test-sprintf-posix.h: Likewise.
36242         * tests/test-stat-time.c: Likewise.
36243         * tests/test-stdbool.c: Likewise.
36244         * tests/test-stdint.c: Likewise.
36245         * tests/test-stdio.c: Likewise.
36246         * tests/test-stdlib.c: Likewise.
36247         * tests/test-stpncpy.c: Likewise.
36248         * tests/test-strcasestr.c: Likewise.
36249         * tests/test-striconv.c: Likewise.
36250         * tests/test-striconveh.c: Likewise.
36251         * tests/test-striconveha.c: Likewise.
36252         * tests/test-string.c: Likewise.
36253         * tests/test-sys_select.c: Likewise.
36254         * tests/test-sys_socket.c: Likewise.
36255         * tests/test-sys_stat.c: Likewise.
36256         * tests/test-sys_time.c: Likewise.
36257         * tests/test-sysexits.c: Likewise.
36258         * tests/test-time.c: Likewise.
36259         * tests/test-tls.c: Likewise.
36260         * tests/test-trunc.c: Likewise.
36261         * tests/test-truncf.c: Likewise.
36262         * tests/test-truncl.c: Likewise.
36263         * tests/test-unistd.c: Likewise.
36264         * tests/test-vasnprintf-posix.c: Likewise.
36265         * tests/test-vasnprintf-posix2.c: Likewise.
36266         * tests/test-vasnprintf.c: Likewise.
36267         * tests/test-vasprintf-posix.c: Likewise.
36268         * tests/test-vasprintf.c: Likewise.
36269         * tests/test-verify.c: Likewise.
36270         * tests/test-vfprintf-posix.c: Likewise.
36271         * tests/test-vprintf-posix.c: Likewise.
36272         * tests/test-vsnprintf-posix.c: Likewise.
36273         * tests/test-vsnprintf.c: Likewise.
36274         * tests/test-vsprintf-posix.c: Likewise.
36275         * tests/test-wchar.c: Likewise.
36276         * tests/test-wctype.c: Likewise.
36277         * tests/test-wcwidth.c: Likewise.
36278         * tests/test-xstrtol.c: Likewise.
36279         * tests/test-xvasprintf.c: Likewise.
36280         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
36281         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
36282         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
36283         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
36284         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
36285         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
36286         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
36287         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
36288         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
36289         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
36290         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
36291         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
36292         * tests/uniname/test-uninames.c: Likewise.
36293         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
36294         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
36295         * tests/unistdio/test-u16-printf1.h: Likewise.
36296         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
36297         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
36298         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
36299         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
36300         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
36301         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
36302         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
36303         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
36304         * tests/unistdio/test-u32-printf1.h: Likewise.
36305         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
36306         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
36307         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
36308         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
36309         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
36310         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
36311         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
36312         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
36313         * tests/unistdio/test-u8-printf1.h: Likewise.
36314         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
36315         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
36316         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
36317         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
36318         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
36319         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
36320         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
36321         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
36322         * tests/unistdio/test-ulc-printf1.h: Likewise.
36323         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
36324         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
36325         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
36326         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
36327         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
36328         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
36329         * tests/uniwidth/test-u16-strwidth.c: Likewise.
36330         * tests/uniwidth/test-u16-width.c: Likewise.
36331         * tests/uniwidth/test-u32-strwidth.c: Likewise.
36332         * tests/uniwidth/test-u32-width.c: Likewise.
36333         * tests/uniwidth/test-u8-strwidth.c: Likewise.
36334         * tests/uniwidth/test-u8-width.c: Likewise.
36335         * tests/uniwidth/test-uc_width.c: Likewise.
36336         * config/srclist-update: Likewise.
36337         (fixlicense): Update to GPLv3+.
36338
36339         Change copyright notice from LGPLv2.1+ to LGPLv3+.
36340         * tests/test-tsearch.c: Change copyright notice.
36341
36342         Change copyright notice from LGPLv2.0+ to LGPLv3+.
36343         * lib/c-strcaseeq.h: Change copyright notice.
36344         * lib/streq.h: Likewise.
36345         * lib/uniconv.h: Likewise.
36346         * lib/uniconv/u-conv-from-enc.h: Likewise.
36347         * lib/uniconv/u-conv-to-enc.h: Likewise.
36348         * lib/uniconv/u-strconv-from-enc.h: Likewise.
36349         * lib/uniconv/u-strconv-to-enc.h: Likewise.
36350         * lib/uniconv/u16-conv-from-enc.c: Likewise.
36351         * lib/uniconv/u16-conv-to-enc.c: Likewise.
36352         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
36353         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
36354         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
36355         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
36356         * lib/uniconv/u32-conv-from-enc.c: Likewise.
36357         * lib/uniconv/u32-conv-to-enc.c: Likewise.
36358         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
36359         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
36360         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
36361         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
36362         * lib/uniconv/u8-conv-from-enc.c: Likewise.
36363         * lib/uniconv/u8-conv-to-enc.c: Likewise.
36364         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
36365         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
36366         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
36367         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
36368         * lib/uniname.h: Likewise.
36369         * lib/uniname/uniname.c: Likewise.
36370         * lib/unistdio.h: Likewise.
36371         * lib/unistdio/u-asnprintf.h: Likewise.
36372         * lib/unistdio/u-asprintf.h: Likewise.
36373         * lib/unistdio/u-printf-args.c: Likewise.
36374         * lib/unistdio/u-printf-args.h: Likewise.
36375         * lib/unistdio/u-printf-parse.h: Likewise.
36376         * lib/unistdio/u-snprintf.h: Likewise.
36377         * lib/unistdio/u-sprintf.h: Likewise.
36378         * lib/unistdio/u-vasprintf.h: Likewise.
36379         * lib/unistdio/u-vsnprintf.h: Likewise.
36380         * lib/unistdio/u-vsprintf.h: Likewise.
36381         * lib/unistdio/u16-asnprintf.c: Likewise.
36382         * lib/unistdio/u16-asprintf.c: Likewise.
36383         * lib/unistdio/u16-printf-parse.c: Likewise.
36384         * lib/unistdio/u16-snprintf.c: Likewise.
36385         * lib/unistdio/u16-sprintf.c: Likewise.
36386         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
36387         * lib/unistdio/u16-u16-asprintf.c: Likewise.
36388         * lib/unistdio/u16-u16-snprintf.c: Likewise.
36389         * lib/unistdio/u16-u16-sprintf.c: Likewise.
36390         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
36391         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
36392         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
36393         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
36394         * lib/unistdio/u16-vasnprintf.c: Likewise.
36395         * lib/unistdio/u16-vasprintf.c: Likewise.
36396         * lib/unistdio/u16-vsnprintf.c: Likewise.
36397         * lib/unistdio/u16-vsprintf.c: Likewise.
36398         * lib/unistdio/u32-asnprintf.c: Likewise.
36399         * lib/unistdio/u32-asprintf.c: Likewise.
36400         * lib/unistdio/u32-printf-parse.c: Likewise.
36401         * lib/unistdio/u32-snprintf.c: Likewise.
36402         * lib/unistdio/u32-sprintf.c: Likewise.
36403         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
36404         * lib/unistdio/u32-u32-asprintf.c: Likewise.
36405         * lib/unistdio/u32-u32-snprintf.c: Likewise.
36406         * lib/unistdio/u32-u32-sprintf.c: Likewise.
36407         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
36408         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
36409         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
36410         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
36411         * lib/unistdio/u32-vasnprintf.c: Likewise.
36412         * lib/unistdio/u32-vasprintf.c: Likewise.
36413         * lib/unistdio/u32-vsnprintf.c: Likewise.
36414         * lib/unistdio/u32-vsprintf.c: Likewise.
36415         * lib/unistdio/u8-asnprintf.c: Likewise.
36416         * lib/unistdio/u8-asprintf.c: Likewise.
36417         * lib/unistdio/u8-printf-parse.c: Likewise.
36418         * lib/unistdio/u8-snprintf.c: Likewise.
36419         * lib/unistdio/u8-sprintf.c: Likewise.
36420         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
36421         * lib/unistdio/u8-u8-asprintf.c: Likewise.
36422         * lib/unistdio/u8-u8-snprintf.c: Likewise.
36423         * lib/unistdio/u8-u8-sprintf.c: Likewise.
36424         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
36425         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
36426         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
36427         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
36428         * lib/unistdio/u8-vasnprintf.c: Likewise.
36429         * lib/unistdio/u8-vasprintf.c: Likewise.
36430         * lib/unistdio/u8-vsnprintf.c: Likewise.
36431         * lib/unistdio/u8-vsprintf.c: Likewise.
36432         * lib/unistdio/ulc-asnprintf.c: Likewise.
36433         * lib/unistdio/ulc-asprintf.c: Likewise.
36434         * lib/unistdio/ulc-printf-parse.c: Likewise.
36435         * lib/unistdio/ulc-snprintf.c: Likewise.
36436         * lib/unistdio/ulc-sprintf.c: Likewise.
36437         * lib/unistdio/ulc-vasnprintf.c: Likewise.
36438         * lib/unistdio/ulc-vasprintf.c: Likewise.
36439         * lib/unistdio/ulc-vsnprintf.c: Likewise.
36440         * lib/unistdio/ulc-vsprintf.c: Likewise.
36441         * lib/unistr.h: Likewise.
36442         * lib/unistr/u-cpy-alloc.h: Likewise.
36443         * lib/unistr/u-cpy.h: Likewise.
36444         * lib/unistr/u-endswith.h: Likewise.
36445         * lib/unistr/u-move.h: Likewise.
36446         * lib/unistr/u-set.h: Likewise.
36447         * lib/unistr/u-startswith.h: Likewise.
36448         * lib/unistr/u-stpcpy.h: Likewise.
36449         * lib/unistr/u-stpncpy.h: Likewise.
36450         * lib/unistr/u-strcat.h: Likewise.
36451         * lib/unistr/u-strcpy.h: Likewise.
36452         * lib/unistr/u-strcspn.h: Likewise.
36453         * lib/unistr/u-strdup.h: Likewise.
36454         * lib/unistr/u-strlen.h: Likewise.
36455         * lib/unistr/u-strncat.h: Likewise.
36456         * lib/unistr/u-strncpy.h: Likewise.
36457         * lib/unistr/u-strnlen.h: Likewise.
36458         * lib/unistr/u-strpbrk.h: Likewise.
36459         * lib/unistr/u-strspn.h: Likewise.
36460         * lib/unistr/u-strstr.h: Likewise.
36461         * lib/unistr/u-strtok.h: Likewise.
36462         * lib/unistr/u16-check.c: Likewise.
36463         * lib/unistr/u16-chr.c: Likewise.
36464         * lib/unistr/u16-cmp.c: Likewise.
36465         * lib/unistr/u16-cpy-alloc.c: Likewise.
36466         * lib/unistr/u16-cpy.c: Likewise.
36467         * lib/unistr/u16-endswith.c: Likewise.
36468         * lib/unistr/u16-mblen.c: Likewise.
36469         * lib/unistr/u16-mbsnlen.c: Likewise.
36470         * lib/unistr/u16-mbtouc-aux.c: Likewise.
36471         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
36472         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
36473         * lib/unistr/u16-mbtouc.c: Likewise.
36474         * lib/unistr/u16-mbtoucr.c: Likewise.
36475         * lib/unistr/u16-move.c: Likewise.
36476         * lib/unistr/u16-next.c: Likewise.
36477         * lib/unistr/u16-prev.c: Likewise.
36478         * lib/unistr/u16-set.c: Likewise.
36479         * lib/unistr/u16-startswith.c: Likewise.
36480         * lib/unistr/u16-stpcpy.c: Likewise.
36481         * lib/unistr/u16-stpncpy.c: Likewise.
36482         * lib/unistr/u16-strcat.c: Likewise.
36483         * lib/unistr/u16-strchr.c: Likewise.
36484         * lib/unistr/u16-strcmp.c: Likewise.
36485         * lib/unistr/u16-strcpy.c: Likewise.
36486         * lib/unistr/u16-strcspn.c: Likewise.
36487         * lib/unistr/u16-strdup.c: Likewise.
36488         * lib/unistr/u16-strlen.c: Likewise.
36489         * lib/unistr/u16-strmblen.c: Likewise.
36490         * lib/unistr/u16-strmbtouc.c: Likewise.
36491         * lib/unistr/u16-strncat.c: Likewise.
36492         * lib/unistr/u16-strncmp.c: Likewise.
36493         * lib/unistr/u16-strncpy.c: Likewise.
36494         * lib/unistr/u16-strnlen.c: Likewise.
36495         * lib/unistr/u16-strpbrk.c: Likewise.
36496         * lib/unistr/u16-strrchr.c: Likewise.
36497         * lib/unistr/u16-strspn.c: Likewise.
36498         * lib/unistr/u16-strstr.c: Likewise.
36499         * lib/unistr/u16-strtok.c: Likewise.
36500         * lib/unistr/u16-to-u32.c: Likewise.
36501         * lib/unistr/u16-to-u8.c: Likewise.
36502         * lib/unistr/u16-uctomb-aux.c: Likewise.
36503         * lib/unistr/u16-uctomb.c: Likewise.
36504         * lib/unistr/u32-check.c: Likewise.
36505         * lib/unistr/u32-chr.c: Likewise.
36506         * lib/unistr/u32-cmp.c: Likewise.
36507         * lib/unistr/u32-cpy-alloc.c: Likewise.
36508         * lib/unistr/u32-cpy.c: Likewise.
36509         * lib/unistr/u32-endswith.c: Likewise.
36510         * lib/unistr/u32-mblen.c: Likewise.
36511         * lib/unistr/u32-mbsnlen.c: Likewise.
36512         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
36513         * lib/unistr/u32-mbtouc.c: Likewise.
36514         * lib/unistr/u32-mbtoucr.c: Likewise.
36515         * lib/unistr/u32-move.c: Likewise.
36516         * lib/unistr/u32-next.c: Likewise.
36517         * lib/unistr/u32-prev.c: Likewise.
36518         * lib/unistr/u32-set.c: Likewise.
36519         * lib/unistr/u32-startswith.c: Likewise.
36520         * lib/unistr/u32-stpcpy.c: Likewise.
36521         * lib/unistr/u32-stpncpy.c: Likewise.
36522         * lib/unistr/u32-strcat.c: Likewise.
36523         * lib/unistr/u32-strchr.c: Likewise.
36524         * lib/unistr/u32-strcmp.c: Likewise.
36525         * lib/unistr/u32-strcpy.c: Likewise.
36526         * lib/unistr/u32-strcspn.c: Likewise.
36527         * lib/unistr/u32-strdup.c: Likewise.
36528         * lib/unistr/u32-strlen.c: Likewise.
36529         * lib/unistr/u32-strmblen.c: Likewise.
36530         * lib/unistr/u32-strmbtouc.c: Likewise.
36531         * lib/unistr/u32-strncat.c: Likewise.
36532         * lib/unistr/u32-strncmp.c: Likewise.
36533         * lib/unistr/u32-strncpy.c: Likewise.
36534         * lib/unistr/u32-strnlen.c: Likewise.
36535         * lib/unistr/u32-strpbrk.c: Likewise.
36536         * lib/unistr/u32-strrchr.c: Likewise.
36537         * lib/unistr/u32-strspn.c: Likewise.
36538         * lib/unistr/u32-strstr.c: Likewise.
36539         * lib/unistr/u32-strtok.c: Likewise.
36540         * lib/unistr/u32-to-u16.c: Likewise.
36541         * lib/unistr/u32-to-u8.c: Likewise.
36542         * lib/unistr/u32-uctomb.c: Likewise.
36543         * lib/unistr/u8-check.c: Likewise.
36544         * lib/unistr/u8-chr.c: Likewise.
36545         * lib/unistr/u8-cmp.c: Likewise.
36546         * lib/unistr/u8-cpy-alloc.c: Likewise.
36547         * lib/unistr/u8-cpy.c: Likewise.
36548         * lib/unistr/u8-endswith.c: Likewise.
36549         * lib/unistr/u8-mblen.c: Likewise.
36550         * lib/unistr/u8-mbsnlen.c: Likewise.
36551         * lib/unistr/u8-mbtouc-aux.c: Likewise.
36552         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
36553         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
36554         * lib/unistr/u8-mbtouc.c: Likewise.
36555         * lib/unistr/u8-mbtoucr.c: Likewise.
36556         * lib/unistr/u8-move.c: Likewise.
36557         * lib/unistr/u8-next.c: Likewise.
36558         * lib/unistr/u8-prev.c: Likewise.
36559         * lib/unistr/u8-set.c: Likewise.
36560         * lib/unistr/u8-startswith.c: Likewise.
36561         * lib/unistr/u8-stpcpy.c: Likewise.
36562         * lib/unistr/u8-stpncpy.c: Likewise.
36563         * lib/unistr/u8-strcat.c: Likewise.
36564         * lib/unistr/u8-strchr.c: Likewise.
36565         * lib/unistr/u8-strcmp.c: Likewise.
36566         * lib/unistr/u8-strcpy.c: Likewise.
36567         * lib/unistr/u8-strcspn.c: Likewise.
36568         * lib/unistr/u8-strdup.c: Likewise.
36569         * lib/unistr/u8-strlen.c: Likewise.
36570         * lib/unistr/u8-strmblen.c: Likewise.
36571         * lib/unistr/u8-strmbtouc.c: Likewise.
36572         * lib/unistr/u8-strncat.c: Likewise.
36573         * lib/unistr/u8-strncmp.c: Likewise.
36574         * lib/unistr/u8-strncpy.c: Likewise.
36575         * lib/unistr/u8-strnlen.c: Likewise.
36576         * lib/unistr/u8-strpbrk.c: Likewise.
36577         * lib/unistr/u8-strrchr.c: Likewise.
36578         * lib/unistr/u8-strspn.c: Likewise.
36579         * lib/unistr/u8-strstr.c: Likewise.
36580         * lib/unistr/u8-strtok.c: Likewise.
36581         * lib/unistr/u8-to-u16.c: Likewise.
36582         * lib/unistr/u8-to-u32.c: Likewise.
36583         * lib/unistr/u8-uctomb-aux.c: Likewise.
36584         * lib/unistr/u8-uctomb.c: Likewise.
36585         * lib/unitypes.h: Likewise.
36586         * lib/uniwidth.h: Likewise.
36587         * lib/uniwidth/cjk.h: Likewise.
36588         * lib/uniwidth/u16-strwidth.c: Likewise.
36589         * lib/uniwidth/u16-width.c: Likewise.
36590         * lib/uniwidth/u32-strwidth.c: Likewise.
36591         * lib/uniwidth/u32-width.c: Likewise.
36592         * lib/uniwidth/u8-strwidth.c: Likewise.
36593         * lib/uniwidth/u8-width.c: Likewise.
36594         * lib/uniwidth/width.c: Likewise.
36595
36596 2007-10-07  Bruno Haible  <bruno@clisp.org>
36597
36598         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
36599         The file is still under LGPL (see modules/inttypes).
36600
36601 2007-10-06  Bruno Haible  <bruno@clisp.org>
36602
36603         * modules/trunc (Dependencies): Add 'extensions'.
36604         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
36605         Reported by Ben Pfaff <blp@gnu.org>.
36606
36607 2007-10-06  Bruno Haible  <bruno@clisp.org>
36608
36609         * modules/freopen-tests: New file.
36610         * tests/test-freopen.c: New file.
36611
36612         * modules/fopen-tests: New file.
36613         * tests/test-fopen.c: New file.
36614
36615         * modules/fopen: New file.
36616         * lib/fopen.c: New file.
36617         * m4/fopen.m4: New file.
36618         * modules/freopen: New file.
36619         * lib/freopen.c: New file.
36620         * m4/freopen.m4: New file.
36621         * lib/stdio.in.h (fopen, freopen): New declarations.
36622         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
36623         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
36624         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
36625         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
36626         * doc/functions/fopen.texi: Mention the 'fopen' module.
36627         * doc/functions/freopen.texi: Mention the 'freopen' module.
36628
36629 2007-10-06  Bruno Haible  <bruno@clisp.org>
36630
36631         * modules/open-tests: New file.
36632         * tests/test-open.c: New file.
36633
36634         * modules/open: New file.
36635         * lib/open.c: New file.
36636         * m4/open.m4: New file.
36637         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
36638         lib/open.c does.
36639         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
36640         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
36641         macros.
36642         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
36643         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
36644         REPLACE_OPEN.
36645         * doc/functions/open.texi: Mention the 'open' module.
36646
36647 2007-10-04  Bruno Haible  <bruno@clisp.org>
36648
36649         * modules/ceill-tests: New file.
36650         * tests/test-ceill.c: New file.
36651
36652         * modules/ceill: New file.
36653         * lib/ceill.c: Replace entire file.
36654         * m4/ceill.m4: New file.
36655         * lib/math.in.h (ceill): Replace declaration.
36656         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
36657         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
36658         * doc/functions/ceill.texi: Mention the 'ceill' module.
36659         * modules/mathl (Files): Remove lib/ceill.c.
36660         (Depends-on): Add ceill.
36661
36662 2007-10-04  Bruno Haible  <bruno@clisp.org>
36663
36664         * modules/ceilf-tests: New file.
36665         * tests/test-ceilf.c: New file.
36666
36667         * modules/ceilf: New file.
36668         * lib/ceil.c: New file.
36669         * lib/ceilf.c: New file.
36670         * m4/ceilf.m4: New file.
36671         * lib/math.in.h (ceilf): New declaration.
36672         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
36673         HAVE_DECL_CEILF.
36674         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
36675         HAVE_DECL_CEILF.
36676         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
36677
36678 2007-10-04  Bruno Haible  <bruno@clisp.org>
36679
36680         * modules/floorl-tests: New file.
36681         * tests/test-floorl.c: New file.
36682
36683         * modules/floorl: New file.
36684         * lib/floorl.c: Replace entire file.
36685         * m4/floorl.m4: New file.
36686         * lib/math.in.h (floorl): Replace declaration.
36687         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
36688         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
36689         * doc/functions/floorl.texi: Mention the 'floorl' module.
36690         * modules/mathl (Files): Remove lib/floorl.c.
36691         (Depends-on): Add floorl.
36692
36693 2007-10-04  Bruno Haible  <bruno@clisp.org>
36694
36695         * modules/floorf-tests: New file.
36696         * tests/test-floorf.c: New file.
36697
36698         * modules/floorf: New file.
36699         * lib/floor.c: New file.
36700         * lib/floorf.c: New file.
36701         * m4/floorf.m4: New file.
36702         * lib/math.in.h (floorf): New declaration.
36703         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
36704         HAVE_DECL_FLOORF.
36705         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
36706         HAVE_DECL_FLOORF.
36707         * doc/functions/floorf.texi: Mention the 'floorf' module.
36708
36709 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
36710             Bruno Haible  <bruno@clisp.org>
36711
36712         Advertise for the Git server instead of the CVS server.
36713         * doc/gnulib-intro.texi (Steady Development): Mention the Git
36714         repository instead of the CVS one.
36715         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
36716         about all VCS systems generically.
36717         * doc/gnulib.texi (Introduction): Capitalize `Git'.
36718
36719 2007-10-04  Bruno Haible  <bruno@clisp.org>
36720
36721         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
36722         means.
36723         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
36724
36725 2007-10-04  Bruno Haible  <bruno@clisp.org>
36726
36727         * modules/truncl-tests: New file.
36728         * tests/test-truncl.c: New file.
36729
36730         * modules/truncl: New file.
36731         * lib/truncl.c: New file.
36732         * m4/truncl.m4: New file.
36733         * lib/math.in.h (truncl): New declaration.
36734         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
36735         HAVE_DECL_TRUNCL.
36736         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
36737         HAVE_DECL_TRUNCL.
36738         * doc/functions/truncl.texi: Mention the 'truncl' module.
36739
36740 2007-10-04  Bruno Haible  <bruno@clisp.org>
36741
36742         * modules/truncf-tests: New file.
36743         * tests/test-truncf.c: New file.
36744
36745         * modules/truncf: New file.
36746         * lib/trunc.c: Make paramerizable through USE_* macros.
36747         * lib/truncf.c: New file.
36748         * m4/truncf.m4: New file.
36749         * lib/math.in.h (truncf): New declaration.
36750         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
36751         HAVE_DECL_TRUNCF.
36752         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
36753         HAVE_DECL_TRUNCF.
36754         * doc/functions/truncf.texi: Mention the 'truncf' module.
36755
36756 2007-10-03  Bruno Haible  <bruno@clisp.org>
36757
36758         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
36759         augmentation also for tests modules.
36760         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
36761         * modules/atexit-tests (Makefile.am): Likewise.
36762         * modules/binary-io-tests (Makefile.am): Likewise.
36763         * modules/c-strcase-tests (Makefile.am): Likewise.
36764         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
36765         * modules/canonicalize-tests (Makefile.am): Likewise.
36766         * modules/closein-tests (Makefile.am): Likewise.
36767         * modules/fprintf-posix-tests (Makefile.am): Likewise.
36768         * modules/freadahead-tests (Makefile.am): Likewise.
36769         * modules/fseek-tests (Makefile.am): Likewise.
36770         * modules/fseeko-tests (Makefile.am): Likewise.
36771         * modules/ftell-tests (Makefile.am): Likewise.
36772         * modules/ftello-tests (Makefile.am): Likewise.
36773         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
36774         * modules/isnanl-tests (Makefile.am): Likewise.
36775         * modules/lseek-tests (Makefile.am): Likewise.
36776         * modules/mbscasecmp-tests (Makefile.am): Likewise.
36777         * modules/mbscasestr-tests (Makefile.am): Likewise.
36778         * modules/mbschr-tests (Makefile.am): Likewise.
36779         * modules/mbscspn-tests (Makefile.am): Likewise.
36780         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
36781         * modules/mbspbrk-tests (Makefile.am): Likewise.
36782         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
36783         * modules/mbsrchr-tests (Makefile.am): Likewise.
36784         * modules/mbsspn-tests (Makefile.am): Likewise.
36785         * modules/mbsstr-tests (Makefile.am): Likewise.
36786         * modules/printf-posix-tests (Makefile.am): Likewise.
36787         * modules/snprintf-posix-tests (Makefile.am): Likewise.
36788         * modules/sprintf-posix-tests (Makefile.am): Likewise.
36789         * modules/tsearch-tests (Makefile.am): Likewise.
36790         * modules/uniname/uniname-tests (Makefile.am): Likewise.
36791         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
36792         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
36793         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
36794         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
36795         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
36796         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
36797         * modules/vprintf-posix-tests (Makefile.am): Likewise.
36798         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
36799         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
36800         * modules/xstrtoimax-tests (Makefile.am): Likewise.
36801         * modules/xstrtol-tests (Makefile.am): Likewise.
36802         * modules/xstrtoumax-tests (Makefile.am): Likewise.
36803         * modules/yesno-tests (Makefile.am): Likewise.
36804
36805 2007-10-03  Bruno Haible  <bruno@clisp.org>
36806
36807         * modules/trunc-tests: New file.
36808         * tests/test-trunc.c: New file.
36809
36810         * modules/trunc: New file.
36811         * lib/trunc.c: New file.
36812         * m4/trunc.m4: New file.
36813         * lib/math.in.h (trunc): New declaration.
36814         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
36815         HAVE_DECL_TRUNC.
36816         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
36817         HAVE_DECL_TRUNC.
36818         * doc/functions/trunc.texi: Mention the 'trunc' module.
36819
36820 2007-10-03  Bruno Haible  <bruno@clisp.org>
36821
36822         * tests/test-fpending.c: New file, mostly copied
36823         from coreutils/lib/t-fpending.c.
36824         * modules/fpending-tests: New file.
36825
36826 2007-10-03  Bruno Haible  <bruno@clisp.org>
36827
36828         Port the stdio extensions to QNX (untested).
36829         * lib/fseterr.c (fseterr): Add support for QNX.
36830         * lib/fbufmode.c (fbufmode): Likewise.
36831         * lib/freadable.c (freadable): Likewise.
36832         * lib/fwritable.c (fwritable): Likewise.
36833         * lib/freading.c (freading): Likewise.
36834         * lib/fwriting.c (fwriting): Likewise.
36835         * lib/freadahead.c (freadahed): Likewise.
36836         * lib/fpurge.c (fpurge): Likewise.
36837         * lib/fseeko.c (rpl_fseeko): Likewise.
36838
36839 2007-10-03  Bruno Haible  <bruno@clisp.org>
36840             Jim Meyering  <jim@meyering.net>
36841             Eric Blake  <ebb9@byu.net>
36842
36843         * doc/relocatable.texi: Use @command instead of @program.
36844
36845 2007-10-02  Jim Meyering  <jim@meyering.net>
36846
36847         Perform one more "_.h" -> ".in.h" substitution.
36848         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
36849         instead of unistd_.h here, too.
36850
36851 2007-10-01  Bruno Haible  <bruno@clisp.org>
36852
36853         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
36854         Needed for the alloca-opt module.
36855
36856 2007-09-30  Bruno Haible  <bruno@clisp.org>
36857
36858         * lib/alloca.in.h: Renamed from lib/alloca_.h.
36859         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
36860         alloca_.h.
36861         * lib/argz.in.h: Renamed from lib/argz_.h.
36862         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
36863         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
36864         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
36865         byteswap_.h.
36866         * lib/dirent.in.h: Renamed from lib/dirent_.h.
36867         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
36868         dirent_.h.
36869         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
36870         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
36871         fcntl_.h.
36872         * lib/float.in.h: Renamed from lib/float_.h.
36873         * modules/float (Files, Makefile.am): Use float.in.h instead of
36874         float_.h.
36875         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
36876         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
36877         fnmatch_.h.
36878         * lib/getopt.in.h: Renamed from lib/getopt_.h.
36879         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
36880         getopt_.h.
36881         * lib/glob.in.h: Renamed from lib/glob_.h.
36882         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
36883         * lib/iconv.in.h: Renamed from lib/iconv_.h.
36884         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
36885         iconv_.h.
36886         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
36887         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
36888         inttypes_.h.
36889         * lib/locale.in.h: Renamed from lib/locale_.h.
36890         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
36891         locale_.h.
36892         * lib/math.in.h: Renamed from lib/math_.h.
36893         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
36894         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
36895         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
36896         of netinet_in_.h. Add dependency.
36897         * lib/poll.in.h: Renamed from lib/poll_.h.
36898         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
36899         * lib/search.in.h: Renamed from lib/search_.h.
36900         * modules/search (Files, Makefile.am): Use search.in.h instead of
36901         search_.h.
36902         * lib/signal.in.h: Renamed from lib/signal_.h.
36903         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
36904         _signal.h.
36905         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
36906         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
36907         stdbool_.h.
36908         * lib/stdint.in.h: Renamed from lib/stdint_.h.
36909         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
36910         stdint_.h.
36911         * lib/stdio.in.h: Renamed from lib/stdio_.h.
36912         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
36913         stdio_.h.
36914         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
36915         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
36916         stdlib_.h.
36917         * lib/string.in.h: Renamed from lib/string_.h.
36918         * modules/string (Files, Makefile.am): Use string.in.h instead of
36919         string_.h.
36920         * doc/gnulib-tool.texi (Initial import): Update.
36921         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
36922         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
36923         of sys_select_.h. Add dependency.
36924         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
36925         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
36926         of sys_socket_.h.
36927         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
36928         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
36929         sys_stat_.h.
36930         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
36931         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
36932         sys_time_.h.
36933         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
36934         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
36935         sysexits_.h.
36936         * lib/time.in.h: Renamed from lib/time_.h.
36937         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
36938         * lib/unistd.in.h: Renamed from lib/unistd_.h.
36939         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
36940         unistd_.h.
36941         * lib/wchar.in.h: Renamed from lib/wchar_.h.
36942         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
36943         wchar_.h.
36944         * lib/wctype.in.h: Renamed from lib/wctype_.h.
36945         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
36946         wctype_.h.
36947         * build-aux/bootstrap (slurp): Update.
36948         * lib/.cppi-disable: Update.
36949
36950 2007-09-30  Bruno Haible  <bruno@clisp.org>
36951
36952         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
36953         Needed on BeOS.
36954
36955 2007-09-30  Bruno Haible  <bruno@clisp.org>
36956
36957         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
36958
36959 2007-09-29  Bruno Haible  <bruno@clisp.org>
36960
36961         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
36962
36963 2007-09-29  Bruno Haible  <bruno@clisp.org>
36964
36965         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
36966         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
36967         * build-aux/install-reloc: Compile also areadlink.c.
36968         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
36969
36970 2007-09-29  Bruno Haible  <bruno@clisp.org>
36971
36972         * gnulib-tool (func_emit_initmacro_done): Indentation.
36973
36974 2007-09-29  Bruno Haible  <bruno@clisp.org>
36975
36976         * README: Add CVS checkout update instructions.
36977         Info from Bob Proulx <bob@proulx.com>.
36978
36979 2007-09-28  Eric Blake  <ebb9@byu.net>
36980
36981         Provide move-if-change.
36982         * build-aux/move-if-change: New file, based on best practice
36983         rather than any canonical upstream location.
36984
36985 2007-09-28  Jim Meyering  <jim@meyering.net>
36986
36987         Fix canonicalize loop-detection corner case.
36988         Do not attempt to stat the symlink values stored via seen_triple.
36989         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
36990         on linux-2.6.18, (but not 2.6.22).
36991         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
36992         triple_compare.  The former compares dev,ino,filename, while the latter
36993         would actually stat dirname(filename) when dev and ino were equal.
36994         * lib/hash-triple.c: Install <string.h>.
36995         (STREQ): Define.
36996         (triple_compare_ino_str): New function.
36997         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
36998
36999 2007-09-28  Eric Blake  <ebb9@byu.net>
37000
37001         Enforce that AC_REPLACE_FUNCS files exist.
37002         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
37003         override check for typos.
37004
37005         Fix test-closein on Solaris 10.
37006         * tests/test-closein.c (main): Don't assume stdin can be inherited
37007         closed on all systems.
37008         * tests/test-closein.sh: Likewise.
37009         Reported by Piotr Tarnowski.
37010
37011 2007-09-28  Jim Meyering  <jim@meyering.net>
37012
37013         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
37014
37015 2007-09-27  Jim Meyering  <jim@meyering.net>
37016
37017         canonicalize: Avoid a false-positive cycle failure.
37018         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
37019         Sort.  Remove cycle-check.
37020         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
37021         not cycle-check.h.
37022         (seen_triple): New function.
37023         (canonicalize_filename_mode): Use it instead of cycle-check.
37024         * tests/test-canonicalize.c: Add a test for this bug.
37025         * tests/test-canonicalize.sh: Set up and run the test.
37026
37027         New module, file-set, from coreutils.
37028         * modules/file-set: Define it.
37029         * lib/file-set.c, lib/file-set.h: Implement.
37030
37031         New module, hash-triple, from coreutils.
37032         * modules/hash-triple: Define it.
37033         * lib/hash-triple.c, lib/hash-triple.h: Implement.
37034
37035 2007-09-25  Eric Blake  <ebb9@byu.net>
37036
37037         Fix strerror on Interix.
37038         * lib/string_.h (strerror): Declare replacement.
37039         * doc/functions/strerror.texi (strerror): Document the Interix
37040         shortcoming.
37041         * modules/string (Makefile.am): Support new hooks.
37042         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
37043         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
37044         gl_FUNC_STRERROR_SEPARATE.
37045         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
37046         * lib/strerror.c (rpl_strerror): Provide replacement.
37047         * modules/strerror (Depends-on): Add string.
37048         (configure.ac): Detect use of module.
37049         * tests/test-strerror.c: New file.
37050         * modules/strerror-tests: New test module.
37051         * modules/argp (Depends-on): Add strerror.
37052         * modules/error (Depends-on): Likewise.
37053         Reported by Martin Koeppe.
37054
37055 2007-09-24  Bruno Haible  <bruno@clisp.org>
37056
37057         * README: Update git instructions.
37058
37059 2007-09-24  Eric Blake  <ebb9@byu.net>
37060
37061         Revert fpending breakage from 2007-09-08.
37062         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
37063         __fpending.c.
37064
37065 2007-09-24  Jim Meyering  <jim@meyering.net>
37066
37067         filenamecat.c: Add a test.
37068         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
37069         showing how the function works when DIR is the empty string.
37070
37071 2007-09-21  Simon Josefsson  <simon@josefsson.org>
37072
37073         * tests/test-canonicalize.sh: Turn on executable bit.
37074
37075 2007-09-19  Eric Blake  <ebb9@byu.net>
37076
37077         * README: Update CVS instructions.
37078
37079 2007-09-18  Bruno Haible  <bruno@clisp.org>
37080
37081         * modules/areadlink: New file.
37082         * lib/areadlink.h (areadlink): New declaration.
37083         * lib/areadlink.c: New file, based on lib/xreadlink.c.
37084
37085 2007-09-17  Jim Meyering  <jim@meyering.net>
37086
37087         * lib/savewd.c (ESTALE) [!defined]: Define.
37088         Reported to be required on Interix by Martin Koeppe.
37089
37090 2007-09-17  Bruno Haible  <bruno@clisp.org>
37091
37092         * gnulib-tool (func_version): Use $version.
37093
37094 2007-09-16  Bruno Haible  <bruno@clisp.org>
37095
37096         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
37097         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
37098         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
37099         Reported by Greg Schafer <gschafer@zip.com.au>.
37100
37101 2007-09-15  Bruno Haible  <bruno@clisp.org>
37102
37103         * gnulib-tool (sed): Try a little harder to make bash understand the
37104         alias.
37105         Reported by Bruce Korb <bruce.korb@gmail.com>.
37106
37107 2007-09-13  Eric Blake  <ebb9@byu.net>
37108
37109         * ChangeLog: Remove conflict markers.
37110
37111 2007-09-13  Simon Josefsson  <simon@josefsson.org>
37112
37113         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
37114         Reported by Bruno Haible <bruno@clisp.org>.
37115
37116 2007-09-12  Bruno Haible  <bruno@clisp.org>
37117
37118         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
37119         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
37120         is not defined.
37121
37122 2007-09-12  Eric Blake  <ebb9@byu.net>
37123
37124         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
37125         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
37126         Autoconf definition.
37127         * modules/euidaccess (Depends-on): Add extensions, for
37128         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
37129         * modules/fnmatch (Depends-on): Likewise.
37130         * modules/getaddrinfo (Depends-on): Likewise.
37131         * modules/getdelim (Depends-on): Likewise.
37132         * modules/getline (Depends-on): Likewise.
37133         * modules/getsubopt (Depends-on): Likewise.
37134         * modules/gettext (Depends-on): Likewise.
37135         * modules/group-member (Depends-on): Likewise.
37136         * modules/mbchar (Depends-on): Likewise.
37137         * modules/memmem (Depends-on): Likewise.
37138         * modules/mempcpy (Depends-on): Likewise.
37139         * modules/memrchr (Depends-on): Likewise.
37140         * modules/pagealign_alloc (Depends-on): Likewise.
37141         * modules/readutmp (Depends-on): Likewise.
37142         * modules/stpcpy (Depends-on): Likewise.
37143         * modules/stpncpy (Depends-on): Likewise.
37144         * modules/strchrnul (Depends-on): Likewise.
37145         * modules/strndup (Depends-on): Likewise.
37146         * modules/strsep (Depends-on): Likewise.
37147         * modules/strverscmp (Depends-on): Likewise.
37148         * modules/vasprintf (Depends-on): Likewise.
37149         * modules/wcwidth (Depends-on): Likewise.
37150         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
37151         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
37152         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
37153         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
37154         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
37155         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
37156         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
37157         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
37158         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
37159         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
37160         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
37161         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
37162         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
37163         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
37164         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
37165         * m4/readutmp.m4 (gl_READUTMP): Likewise.
37166         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
37167         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
37168         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
37169         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
37170         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
37171         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
37172         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
37173         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
37174         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
37175         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
37176         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
37177         so that lock.m4 can be used in gettext without extensions module.
37178
37179 2007-09-11  Bruno Haible  <bruno@clisp.org>
37180
37181         * m4/isc-posix.m4: Remove file.
37182         Suggested by Eric Blake.
37183
37184 2007-09-11  Eric Blake  <ebb9@byu.net>
37185
37186         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
37187
37188 2007-09-10  Bruno Haible  <bruno@clisp.org>
37189
37190         * posix-modules: Fix typo in error message.
37191         Reported by Matt <mkraai@beckman.com>.
37192
37193 2007-09-09  Bruno Haible  <bruno@clisp.org>
37194
37195         * doc/functions/getdelim.texi: Update list of platforms lacking the
37196         function.
37197         * doc/functions/getline.texi: Likewise.
37198
37199 2007-09-09  Jim Meyering  <jim@meyering.net>
37200
37201         * lib/hash.c (hash_initialize): Detect calloc failure.
37202         Reported by Bruno Haible.
37203
37204 2007-09-09  Bruno Haible  <bruno@clisp.org>
37205
37206         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
37207         malloc or realloc fails.
37208
37209 2007-09-09  Bruno Haible  <bruno@clisp.org>
37210
37211         * modules/getcwd (Depends-on): Add malloc-posix.
37212         * modules/glob (Depends-on): Likewise.
37213         * modules/putenv (Depends-on): Likewise.
37214         * modules/strdup (Depends-on): Likewise.
37215         * modules/getdelim (Depends-on): Add realloc-posix.
37216         * modules/read-file (Depends-on): Likewise.
37217
37218 2007-09-09  Bruno Haible  <bruno@clisp.org>
37219
37220         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
37221         (gl_FUNC_MALLOC_POSIX): Require it.
37222         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
37223         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
37224         * modules/realloc (Files): Add m4/malloc.m4.
37225         * modules/calloc (Files): Likewise.
37226
37227 2007-09-09  Bruno Haible  <bruno@clisp.org>
37228
37229         * modules/malloc-posix: New file.
37230         * modules/malloc (Depends-on): Add malloc-posix.
37231         * lib/malloc.c: Include errno.h.
37232         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
37233         and a POSIX-compatible malloc into a single function. Set ENOMEM
37234         when returning NULL.
37235         * m4/malloc.m4: New file.
37236         * doc/functions/malloc.texi: Mention the malloc-posix module.
37237         * lib/stdlib_.h (malloc): New declaration.
37238         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
37239         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
37240         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
37241         and HAVE_MALLOC_POSIX.
37242
37243 2007-09-09  Bruno Haible  <bruno@clisp.org>
37244
37245         * modules/realloc-posix: New file.
37246         * modules/realloc (Depends-on): Add realloc-posix.
37247         * lib/realloc.c: Include errno.h.
37248         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
37249         and a POSIX-compatible realloc into a single function. Set ENOMEM
37250         when returning NULL.
37251         * m4/realloc.m4: New file.
37252         * doc/functions/realloc.texi: Mention the realloc-posix module.
37253         * lib/stdlib_.h (realloc): New declaration.
37254         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
37255         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
37256         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
37257         and HAVE_REALLOC_POSIX.
37258
37259 2007-09-09  Bruno Haible  <bruno@clisp.org>
37260
37261         * modules/calloc-posix: New file.
37262         * modules/calloc (Depends-on): Add calloc-posix.
37263         * lib/calloc.c: Include errno.h.
37264         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
37265         and a POSIX-compatible calloc into a single function. Set ENOMEM
37266         when returning NULL.
37267         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
37268         * doc/functions/calloc.texi: Mention the calloc-posix module.
37269         * lib/stdlib_.h (calloc): New declaration.
37270         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
37271         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
37272         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
37273         and HAVE_CALLOC_POSIX.
37274
37275 2007-09-09  Bruno Haible  <bruno@clisp.org>
37276
37277         Allow for modules to show an arbitrary notice.
37278         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
37279         * gnulib-tool: New option --extract-notice.
37280         (func_usage): Document it.
37281         (sed_extract_prog): Update.
37282         (func_get_notice): New function.
37283         (func_modules_notice): New function.
37284         (func_import, func_create_testdir): Invoke it.
37285         Suggested by Jim Meyering.
37286
37287 2007-09-09  Bruno Haible  <bruno@clisp.org>
37288
37289         * gnulib-tool: New options --verbose, --quiet.
37290         (func_usage): Document them.
37291         (verbose): New variable.
37292         (func_execute_command): New function.
37293         (func_import): Don't show the module list and the file list if
37294         $verbose < 0.
37295         (func_create_testdir): Likewise. Use func_execute_command.
37296         (func_create_megatestdir): Use func_execute_command.
37297
37298 2007-09-08  Bruno Haible  <bruno@clisp.org>
37299
37300         * gnulib-tool (func_import): Prefer rsync over wget when available,
37301         for fetching the PO files.
37302
37303 2007-09-08  Bruno Haible  <bruno@clisp.org>
37304
37305         * posix-modules: New file. Portions copied from gnulib-tool.
37306         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
37307
37308 2007-09-08  Jim Meyering  <jim@meyering.net>
37309
37310         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
37311         * lib/fpending.h: Rename from __fpending.h.
37312         * lib/fpending.c: Rename from __fpending.c.
37313         Include "fpending.h", not "__fpending.h".
37314         * lib/__fpending.h, lib/__fpending.c: Remove files.
37315         * modules/fpending (Files): Reflect new file names.
37316         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
37317
37318 2007-09-08  Bruno Haible  <bruno@clisp.org>
37319
37320         * m4/inttypes-h.m4: Remove stub file.
37321
37322 2007-09-07  Simon Josefsson  <simon@josefsson.org>
37323
37324         * doc/headers/stdint.texi: Discuss #include_next issue.
37325
37326 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
37327
37328         * build-aux/bootstrap: Remove obsolete comment about wget --help.
37329
37330 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37331
37332         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
37333         in variable name.
37334
37335 2007-09-03  Jim Meyering  <jim@meyering.net>
37336
37337         New module: git-version-gen.
37338         * modules/git-version-gen: New file.
37339
37340         Import changes from coreutils for bootstrap script.
37341
37342         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
37343
37344         bootstrap: uses rsync to download the .po files
37345         * build-aux/bootstrap (po_download_command_format): New global.
37346         (download_po_files): Use rsync.
37347         (update_po_files): Don't remove .po files after download,
37348         so future rsync runs can take advantage of the copies.
37349
37350         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
37351
37352         Solve the unnecessary-.po-file-regeneration problem once and for all.
37353         * build-aux/bootstrap (download_po_files): New function, renamed from
37354         get_translations.  Now, downloads, but doesn't update LINGUAS.
37355         (update_po_files): New function.
37356
37357         bootstrap: Ignore more.
37358         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
37359         uniwidth to e.g., lib/.gitignore.
37360         (slurp): Handle the sys_stat_.h -> sys mapping, too.
37361
37362         * build-aux/bootstrap: New setting: vc_ignore.
37363         (insert_sorted_if_absent): Create $file if absent.
37364         Adapt to new, possibly empty, list: $vc_ignore.
37365
37366         bootstrap: generate more ignorable names
37367         * build-aux/bootstrap (slurp): When generating ignorable names,
37368         also map .sin to .sed, .gperf to .c, and .y to .c.
37369
37370 2007-09-03  Jim Meyering  <jim@meyering.net>
37371
37372         * build-aux/git-version-gen: New file, from coreutils.  For details, see
37373         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
37374
37375 2007-09-02  Bruno Haible  <bruno@clisp.org>
37376
37377         Fix mis-recognition of 'mcs' on QNX 6.
37378         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
37379         output contains the string "Mono".
37380         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
37381         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
37382
37383 2007-09-01  Bruno Haible  <bruno@clisp.org>
37384
37385         Fix collision between uniwidth/* and linebreak modules.
37386         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
37387         u32_width): Remove declarations.
37388         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
37389         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
37390         streq3, streq2, streq1, streq0): Remove functions.
37391         (STREQ): Remove macro.
37392         (is_cjk_encoding): Remove function.
37393         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
37394         (uc_width, u8_width, u16_width, u32_width): Remove functions.
37395         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
37396         * NEWS: Document the change.
37397
37398 2007-09-01  Bruno Haible  <bruno@clisp.org>
37399
37400         * lib/streq.h: Add double-inclusion guard.
37401
37402 2007-09-01  Karl Berry  <karl@gnu.org>
37403
37404         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
37405
37406 2007-08-28  Jim Meyering  <jim@meyering.net>
37407
37408         Rename mreadlink_with_size to areadlink_with_size.
37409         * NEWS: Document the change.
37410         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
37411         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
37412         * lib/mreadlink.h: Rename this to...
37413         * lib/areadlink.h: ...this.
37414         * modules/mreadlink-with-size: Rename this to...
37415         * modules/areadlink-with-size: ...this.
37416         * lib/canonicalize.c: Reflect the renaming.
37417         * modules/canonicalize: Likewise.
37418
37419 2007-08-26  Bruno Haible  <bruno@clisp.org>
37420
37421         * gnulib-tool (func_import): When deciding which files to remove,
37422         consider also dangling symbolic links.
37423         Reported by Eric Blake.
37424
37425 2007-08-26  Bruno Haible  <bruno@clisp.org>
37426
37427         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
37428
37429 2007-08-23  Simon Josefsson  <simon@josefsson.org>
37430
37431         * lib/readline.c: Don't include getline.h, the prototype is now
37432         found in stdio.h.
37433
37434 2007-08-23  Jim Meyering  <jim@meyering.net>
37435
37436         Getdelim touchup.
37437         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
37438         around the funlockfile call, since funlockfile never sets errno.
37439         Don't set errno upon failed realloc.
37440
37441 2007-08-22  Eric Blake  <ebb9@byu.net>
37442
37443         Getline touchups.
37444         * lib/getdelim.c (getdelim): Revert regression that required *n to
37445         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
37446         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
37447         getdelim, rather than whether implementation is missing.
37448         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
37449         * lib/stdio_.h (getline): Also declare if replacement is
37450         required.
37451         * doc/functions/getdelim.texi: New file.
37452         * doc/functions/getline.texi: Likewise.
37453         * doc/gnulib.texi (Function Substitutes): Add new files.
37454         Reported by Bruno Haible.
37455
37456 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
37457
37458         * users.txt: Add Guile.
37459
37460 2007-08-22  Eric Blake  <ebb9@byu.net>
37461
37462         * tests/test-getdelim.c (main): Use remove, not unlink.
37463         * tests/test-getline.c (main): Likewise.
37464
37465         Move getline and getdelim into stdio.h, per POSIX 200x.
37466         * modules/getline (Files): Remove getline.h.
37467         (Depends-on): Add stdio.
37468         (configure.ac): Add module indicator.
37469         * modules/getdelim (Files): Remove getdelim.h.
37470         (Depends-on): Add stdio.
37471         (configure.ac): Add module indicator.
37472         * modules/stdio (Makefile.am): Work with new indicators.
37473         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
37474         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
37475         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
37476         * lib/getdelim.h: Delete.
37477         * lib/getline.h: Delete.
37478         * lib/stdio_.h (getdelim, getline): Declare.
37479         * modules/getdelim-tests: New module.
37480         * modules/getline-tests: Likewise.
37481         * tests/test-getdelim.c: New file.
37482         * tests/test-getline.c: Likewise.
37483         * NEWS: Document the change.
37484         * lib/getline.c: Update choice of header.
37485         * lib/csharpcomp.c: Likewise.
37486         * lib/getpass.c: Likewise.
37487         * lib/javacomp.c: Likewise.
37488         * lib/javaversion.c: Likewise.
37489         * lib/yesno.c: Likewise.
37490         * lib/getdelim.c: Likewise.
37491         (getdelim): Set errno on failure, and avoid memory leak.
37492
37493 2007-08-19  Bruno Haible  <bruno@clisp.org>
37494
37495         * modules/closein (Depends-on): Add freadahead.
37496         * lib/closein.c: Include freadahead.h.
37497         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
37498         is zero.
37499
37500 2007-08-19  Bruno Haible  <bruno@clisp.org>
37501
37502         * modules/freadahead-tests: New file.
37503         * tests/test-freadahead.sh: New file.
37504         * tests/test-freadahead.c: New file.
37505
37506         * modules/freadahead: New file.
37507         * lib/freadahead.h: New file.
37508         * lib/freadahead.c: New file.
37509         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
37510         fbufmode, fpurge, freadable, fwritable.
37511
37512 2007-08-19  Eric Blake  <ebb9@byu.net>
37513
37514         Test yesno in combination with closein.
37515         * lib/yesno.c (yesno): Document use of stdin.
37516         * modules/yesno-tests (Files): New module.
37517         * tests/test-yesno.c (main): New file.
37518         * tests/test-yesno.sh: Likewise.
37519
37520 2007-08-19  Bruno Haible  <bruno@clisp.org>
37521
37522         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
37523         * lib/fseeko.c (rpl_fseeko): Likewise.
37524         * lib/fseterr.c (fseterr): Likewise.
37525
37526 2007-08-19  Bruno Haible  <bruno@clisp.org>
37527
37528         * tests/test-lseek.c (main): Disable a test for BeOS.
37529         * doc/functions/lseek.texi: Document the BeOS bug.
37530
37531 2007-08-19  Bruno Haible  <bruno@clisp.org>
37532             Eric Blake  <ebb9@byu.net>
37533
37534         * lib/lseek.c: Include <sys/stat.h>.
37535         (rpl_lseek): Add workaround code also for Unix platforms.
37536         Needed for BeOS.
37537         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
37538         * doc/functions/lseek.texi: Document BeOS definiency.
37539
37540 2007-08-18  Bruno Haible  <bruno@clisp.org>
37541
37542         * modules/fstrcmp-tests: New file.
37543         * tests/test-fstrcmp.c: New file.
37544
37545 2007-08-18  Bruno Haible  <bruno@clisp.org>
37546
37547         * modules/fstrcmp: New file, from GNU gettext with modifications.
37548         * lib/fstrcmp.h: New file, from GNU gettext.
37549         * lib/fstrcmp.c: New file, from GNU gettext.
37550         * MODULES.html.sh (String handling): Add fstrcmp.
37551
37552 2007-08-18  Bruno Haible  <bruno@clisp.org>
37553
37554         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
37555         'bool'.
37556         (diag, compareseq): Remove const from the ctxt argument.
37557         (USE_HEURISTIC): Undefine at the end.
37558
37559 2007-08-18  Jim Meyering  <jim@meyering.net>
37560
37561         New file: lib/idcache.h
37562         * NEWS: Mention the addition.
37563         * modules/idcache (Files): Add lib/idcache.h
37564         * lib/idcache.c: Include "idcache.h".
37565         Don't include <sys/types.h>.
37566         Add a FIXME comment.
37567         Move file-scoped "static" declarations to the top.
37568         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
37569
37570 2007-08-17  Bruno Haible  <bruno@clisp.org>
37571         and Paul Eggert  <eggert@cs.ucla.edu>
37572
37573         * MODULES.html.sh: Add diffseq.
37574         * modules/diffseq: New file.
37575         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
37576         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
37577
37578 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
37579
37580         Import changes from coreutils for bootstrap script.
37581
37582         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
37583
37584         * build-aux/bootstrap (slurp): Work even in environments where
37585         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
37586         current code does not slurp files whose names start with ".", and
37587         this looks like it might be a troublesome area.
37588
37589         2007-07-11  Jim Meyering  <jim@meyering.net>
37590
37591         If there's a GPL vN copyright comment, require that N == 3.
37592
37593         2007-07-08  Jim Meyering  <jim@meyering.net>
37594
37595         Run the coreutils-specific code only if tests/Makefile.am.in exists.
37596         * build-aux/bootstrap (mam_template): Move definition out of loop.
37597
37598         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
37599
37600         * build-aux/bootstrap (symlink_to_dir): Rename function from
37601         symlink_to_gnulib.  Add a directory parameter.  Update all
37602         callers.
37603         (cp_mark_as_generated): Also check for -- and link to -- files in
37604         gl/.
37605
37606         2007-07-08  Jim Meyering  <jim@meyering.net>
37607
37608         Adapt to deeper hierarchy in gnulib.
37609         * build-aux/bootstrap (symlink_to_dir): If the destination
37610         directory doesn't exist, create it. This is required at least for
37611         "lib/uniwidth/cjk.h".
37612
37613         2007-05-15  Jim Meyering  <jim@meyering.net>
37614
37615         * build-aux/bootstrap: Now that generated Makefile.am files
37616         are no longer under version control, they must be created at
37617         bootstrap time.
37618
37619 2007-08-14  Ben Pfaff  <blp@gnu.org>
37620
37621         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
37622
37623 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
37624
37625         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
37626         given the changes below.
37627         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
37628         even on hosts that have padding bits beyond the supported 64.
37629
37630 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
37631
37632         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
37633         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
37634         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
37635         depends on it.
37636         (xstrtol_error): Remove.
37637         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
37638         but with a different signature.
37639         (ATTRIBUTE_NORETURN, __attribute__): New macros.
37640         * lib/xstrtol-error.c: Include exitfail.h.
37641         (xstrtol_fatal): New function, with a different signature from the
37642         old xstrtol_error, so that the caller need not worry about passing
37643         in an exit status, or about storage management of the option argument.
37644         (xstrtol_error): Now a static function.  Redo signature to
37645         implement xstrtol_fatal.  Output the correct number of hyphens in
37646         front of the option so that the caller need not worry about
37647         storage management.
37648         (N_): New macro.
37649         (_): Remove; not used now.
37650         * modules/xstrtol: Depend on getopt.
37651         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
37652         of old STRTOL_FATAL_ERROR macro.
37653         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
37654         of test program.
37655         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
37656         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
37657
37658 2007-08-08  Eric Blake  <ebb9@byu.net>
37659
37660         * lib/xstrtol-error.c: Add missing include.
37661
37662         Move xstrtol messages into gnulib domain, when --pobase is used.
37663         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
37664         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
37665         * modules/xstrtol (Files): Distribute new file.
37666         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
37667         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
37668         * tests/test-xstrtol.c: ...into new file.
37669         * tests/test-xstrtoul.c: Also test xstrtoul.
37670         * tests/test-xstrtoimax.c: Also test xstrtoimax.
37671         * tests/test-xstrtoumax.c: Also test xstrtoumax.
37672         * tests/test-xstrtol.sh: Drive the tests.
37673         * tests/test-xstrtoimax.sh: Likewise.
37674         * tests/test-xstrtoumax.sh: Likewise.
37675         * modules/xstrtol-tests: New module.
37676         * modules/xstrtoimax-tests: Likewise.
37677         * modules/xstrtoumax-tests: Likewise.
37678
37679 2007-08-08  Jim Meyering  <jim@meyering.net>
37680
37681         New function: mfile_name_concat.
37682         * lib/filenamecat.c (mfile_name_concat): New function, just like
37683         file_name_concat, but return NULL upon failure rather than exiting
37684         with a diagnostic.
37685         * lib/filenamecat.h: Declare it.
37686
37687 2007-08-07  Bruno Haible  <bruno@clisp.org>
37688
37689         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
37690         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
37691         warning from gcc.
37692         Reported by Eric Blake.
37693
37694 2007-08-07  Simon Josefsson  <simon@josefsson.org>
37695
37696         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
37697         * modules/crypto/arcfour (License): Likewise.
37698         * modules/crypto/des-tests (License): Likewise.
37699         * modules/crypto/gc-arctwo-tests (License): Likewise.
37700         * modules/crypto/gc-des-tests (License): Likewise.
37701         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
37702         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
37703         * modules/crypto/gc-md2-tests (License): Likewise.
37704         * modules/crypto/gc-md4-tests (License): Likewise.
37705         * modules/crypto/gc-md5-tests (License): Likewise.
37706         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
37707         * modules/crypto/gc-rijndael-tests (License): Likewise.
37708         * modules/crypto/gc-sha1-tests (License): Likewise.
37709         * modules/crypto/gc-tests (License): Likewise.
37710         * modules/crypto/hmac-md5 (License): Likewise.
37711         * modules/crypto/hmac-sha1 (License): Likewise.
37712         * modules/crypto/md2-tests (License): Likewise.
37713         * modules/crypto/md4-tests (License): Likewise.
37714         * modules/crypto/md5 (License): Likewise.
37715         * modules/crypto/rijndael (License): Likewise.
37716         * modules/crypto/sha1 (License): Likewise.
37717         * modules/memxor (License): Likewise.
37718
37719 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
37720         and Bruno Haible  <bruno@clisp.org>
37721
37722         * NEWS: Describe interface changes to human, xstrtol.
37723         * lib/human.h: Include <xstrtol.h>.
37724         (human_options): Return enum strtol_error, not int.  Remove
37725         bool arg; take int * instead.
37726         * lib/human.c: Don't include "gettext.h".
37727         (_): Remove; no longer used.
37728         Don't include <xstrtol.h>, since human.h does it.
37729         (human_options): Adjust to abovementioned interface changes.
37730         Do not report error to stderr; that's now the caller's
37731         responsibility.
37732         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
37733         interface change.
37734         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
37735         Str, Argument_type_string.  All uses changed.  Put " argument"
37736         in diagnostics to make them clearer.  Change wording of suffix
37737         message for clarity.
37738         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
37739         Argument_type_string.
37740         (STRTOL_FATAL_WARN): Remove; no longer used.
37741         * modules/human (Depends-on): Remove gettext-h.
37742
37743 2007-08-06  Simon Josefsson  <simon@josefsson.org>
37744
37745         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
37746
37747 2007-07-31  Bruno Haible  <bruno@clisp.org>
37748
37749         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
37750         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
37751         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
37752
37753 2007-07-31  Bruno Haible  <bruno@clisp.org>
37754
37755         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
37756         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
37757
37758 2007-07-30  Bruno Haible  <bruno@clisp.org>
37759
37760         * modules/base64 (License): Use the synonymous term "LGPLv2+".
37761         * modules/c-ctype (License): Likewise.
37762         * modules/c-strcase (License): Likewise.
37763         * modules/check-version (License): Likewise.
37764         * modules/iconv (License): Likewise.
37765         * modules/iconv_open (License): Likewise.
37766         * modules/read-file (License): Likewise.
37767         * modules/striconv (License): Likewise.
37768         * modules/strverscmp (License): Likewise.
37769         * modules/vasprintf (License): Likewise.
37770         * modules/crypto/des (License): Likewise.
37771         * modules/crypto/gc (License): Likewise.
37772         * modules/crypto/gc-arcfour (License): Likewise.
37773         * modules/crypto/gc-arctwo (License): Likewise.
37774         * modules/crypto/gc-des (License): Likewise.
37775         * modules/crypto/gc-hmac-md5 (License): Likewise.
37776         * modules/crypto/gc-hmac-sha1 (License): Likewise.
37777         * modules/crypto/gc-md2 (License): Likewise.
37778         * modules/crypto/gc-md4 (License): Likewise.
37779         * modules/crypto/gc-md5 (License): Likewise.
37780         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
37781         * modules/crypto/gc-random (License): Likewise.
37782         * modules/crypto/gc-rijndael (License): Likewise.
37783         * modules/crypto/gc-sha1 (License): Likewise.
37784         * modules/crypto/md2 (License): Likewise.
37785         * modules/crypto/md4 (License): Likewise.
37786
37787 2007-07-30  Jim Meyering  <jim@meyering.net>
37788
37789         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
37790         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
37791         it has valid stat data.  This bug would cause du not to count the
37792         sizes of inaccessible directories.
37793         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
37794         in <http://bugzilla.redhat.com/250077>.
37795
37796 2007-07-25  Peter O'Gorman  <peter@pogma.com>
37797             Bruno Haible  <bruno@clisp.org>
37798
37799         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
37800         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
37801         #include_next, gives a diagnostic about it, but reports no error in
37802         the exit code.
37803         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
37804
37805 2007-07-24  Ben Pfaff  <blp@gnu.org>
37806
37807         Improve name: "count-one-bits" is better than "popcount".
37808         * MODULES.html.sh: Update name.
37809         * lib/popcount.h: Renamed lib/count-one-bits.h.
37810         (popcount): Renamed count_one_bits.
37811         (popcountl): Renamed count_one_bits_l.
37812         (popcountll): Renamed count_one_bits_ll.
37813         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
37814         * modules/popcount: Renamed module/count-one-bits.
37815         * modules/popcount-tests: Renamed module/count-one-bits-tests.
37816         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
37817
37818 2007-07-23  Ben Pfaff  <blp@gnu.org>
37819
37820         * lib/popcount.h (popcount32): Reduce size of constants, to allow
37821         better code generation, and add U to large constants to avoid
37822         warnings, in non-GCC case.
37823         Suggested by Bruno Haible.
37824
37825 2007-07-23  Ben Pfaff  <blp@gnu.org>
37826
37827         * lib/popcount.h: Use verify_true instead of if...abort.
37828         * modules/popcount: Depend on verify module.
37829         Suggested by Jim Meyering.
37830
37831 2007-07-23  Bruno Haible  <bruno@clisp.org>
37832
37833         * gnulib-tool (func_import): Create a .cvsignore file also when the
37834         directory is not yet in CVS but the toplevel directory is. When
37835         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
37836         Reported by Karl Berry.
37837
37838 2007-07-22  Ben Pfaff  <blp@gnu.org>
37839
37840         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
37841         case.
37842         Suggested by Eric Blake.
37843
37844 2007-07-22  Ben Pfaff  <blp@gnu.org>
37845
37846         New module: popcount.
37847         * MODULES.html.sh: Add popcount.
37848         * modules/popcount: New file.
37849         * modules/popcount-tests: New file.
37850         * tests/test-popcount.c: New file.
37851         * lib/popcount.h: New file.
37852         * m4/popcount.m4: New file.
37853
37854 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
37855
37856         * build-aux/announce-gen: Update to GPLv3.
37857
37858         * build-aux/config.guess: Update from config.
37859
37860 2007-07-21  Bruno Haible  <bruno@clisp.org>
37861
37862         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
37863         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
37864
37865 2007-07-20  Jim Meyering  <jim@meyering.net>
37866
37867         * check-module: Diagnose a self-dependency.
37868
37869 2007-07-19  Bruno Haible  <bruno@clisp.org>
37870
37871         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
37872         empty.
37873         Reported by Eric Blake.
37874
37875 2007-07-18  Bruno Haible  <bruno@clisp.org>
37876
37877         * gnulib-tool: New options --po-base, --po-domain.
37878         (func_usage): Document them.
37879         (pobase, po_domain): New variables.
37880         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
37881         DEFAULT_TEXT_DOMAIN.
37882         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
37883         (func_import): Consider pobase and po_domain. Create a po/ directory.
37884         (func_create_testdir): Set pobase and po_domain to empty.
37885         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
37886         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
37887
37888 2007-07-18  Bruno Haible  <bruno@clisp.org>
37889
37890         * gnulib-tool (func_get_automake_snippet): Synthesize also an
37891         EXTRA_DIST augmentation for files in build-aux/.
37892
37893 2007-07-16  Bruno Haible  <bruno@clisp.org>
37894
37895         * modules/lseek (License): Use the synonymous term "LGPLv2+".
37896         * modules/getdelim (License): Likewise.
37897
37898 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37899
37900         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
37901         * modules/d-type (License): Likewise.
37902         * modules/extensions (License): Likewise.
37903         * modules/fnmatch (License): Likewise.
37904         * modules/fseeko (License): Likewise.
37905         * modules/getaddrinfo (License): Likewise.
37906         * modules/getline (License): Likewise.
37907         * modules/getlogin_r (License): Likewise.
37908         * modules/getpass (License): Likewise.
37909         * modules/gettimeofday (License): Likewise.
37910         * modules/glob (License): Likewise.
37911         * modules/inet_ntop (License): Likewise.
37912         * modules/malloc (License): Likewise.
37913         * modules/malloca (License): Likewise.
37914         * modules/memmem (License): Likewise.
37915         * modules/mempcpy (License): Likewise.
37916         * modules/memset (License): Likewise.
37917         * modules/minmax (License): Likewise.
37918         * modules/mktime (License): Likewise.
37919         * modules/netinet_in (License): Likewise.
37920         * modules/pathmax (License): Likewise.
37921         * modules/poll (License): Likewise.
37922         * modules/regex (License): Likewise.
37923         * modules/snprintf (License): Likewise.
37924         * modules/stdbool (License): Likewise.
37925         * modules/stdint (License): Likewise.
37926         * modules/stdio (License): Likewise.
37927         * modules/strcase (License): Likewise.
37928         * modules/strcasestr (License): Likewise.
37929         * modules/strdup (License): Likewise.
37930         * modules/string (License): Likewise.
37931         * modules/strndup (License): Likewise.
37932         * modules/strnlen (License): Likewise.
37933         * modules/strpbrk (License): Likewise.
37934         * modules/strptime (License): Likewise.
37935         * modules/strsep (License): Likewise.
37936         * modules/sys_select (License): Likewise.
37937         * modules/sys_socket (License): Likewise.
37938         * modules/sys_stat (License): Likewise.
37939         * modules/sys_time (License): Likewise.
37940         * modules/time (License): Likewise.
37941         * modules/time_r (License): Likewise.
37942         * modules/timegm (License): Likewise.
37943         * modules/unistd (License): Likewise.
37944         * modules/vsnprintf (License): Likewise.
37945         * modules/wctype (License): Likewise.
37946
37947 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37948
37949         * modules/argz (License): LGPLv2+.
37950
37951 2007-07-15  Karl Berry  <karl@gnu.org>
37952
37953         * doc/gnulib.texi: revise node structure per new fdl.texi.
37954
37955 2007-07-14  Bruno Haible  <bruno@clisp.org>
37956
37957         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
37958         the output file.
37959         * lib/uniname/uninames.h: Regenerated.
37960
37961 2007-07-14  Karl Berry  <karl@gnu.org>
37962
37963         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
37964         omitting sectioning and index commands.
37965
37966 2007-07-13  Bruno Haible  <bruno@clisp.org>
37967
37968         New gnulib-tool option --more-symlinks.
37969         * gnulib-tool (func_usage): Document --more-symlinks.
37970         (do_copyrights): New variable.
37971         Recognize option --more-symlinks.
37972         (func_import): Don't add a copyright notice transform to
37973         sed_transform_lib_file if do_copyrights is empty.
37974
37975 2007-07-13  Bruno Haible  <bruno@clisp.org>
37976
37977         * lib/vasnprintf.c (decimal_point_char): Define also if
37978         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
37979         && !NEED_PRINTF_DIRECTIVE_A.
37980         Reported by Clemens Koller <clemens.koller@anagramm.de> via
37981         Gary V. Vaughan <gary@gnu.org>.
37982
37983 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
37984
37985         * lib/inttypes_.h: Undo previous change, since it was fixed
37986         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
37987
37988 2007-07-13  Bruno Haible  <bruno@clisp.org>
37989
37990         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
37991         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
37992
37993 2007-07-13  Jim Meyering  <jim@meyering.net>
37994
37995         df: Don't fail for Tru64's "file-on-file mount".
37996         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
37997         so we fall through and use statfs instead.  Details here:
37998         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
37999         Reported by Albert Chin.
38000
38001 2007-07-13  Bruno Haible  <bruno@clisp.org>
38002
38003         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
38004         * modules/configmake (License): Likewise.
38005         * modules/gettext (License): Likewise.
38006         * modules/gettext-h (License): Likewise.
38007         * modules/include_next (License): Likewise.
38008         * modules/link-warning (License): Likewise.
38009         * modules/localcharset (License): Likewise.
38010         * modules/localename (License): Likewise.
38011         * modules/lock (License): Likewise.
38012         * modules/relocatable-lib-lgpl (License): Likewise.
38013         * modules/size_max (License): Likewise.
38014         * modules/vasnprintf (License): Likewise.
38015         * modules/wchar (License): Likewise.
38016         * modules/xsize (License): Likewise.
38017
38018 2007-07-13  Bruno Haible  <bruno@clisp.org>
38019
38020         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
38021         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
38022
38023 2007-07-12  Bruno Haible  <bruno@clisp.org>
38024
38025         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
38026         in the modules files.
38027
38028 2007-07-11  Karl Berry  <karl@gnu.org>
38029
38030         * MODULES.html.sh (func_module): use
38031          sed -e '\|^'"${includefile}"'$|d'
38032          instead of /.../d, to avoid errors on $includefile's containing /.
38033
38034 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
38035
38036         * gnulib-tool (func_import): Avoid duplication of --avoid
38037         statements
38038         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
38039         names to `_' in variable names.
38040
38041 2007-07-10  Eric Blake  <ebb9@byu.net>
38042
38043         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
38044         * NEWS: Document this change.
38045
38046 2007-07-08  Bruno Haible  <bruno@clisp.org>
38047
38048         Update to Unicode 5.0.
38049         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
38050         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
38051         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
38052         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
38053         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
38054         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
38055         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
38056         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
38057         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
38058         U+10A3F, U+1D242..U+1D244.
38059         (nonspacing_table_ind): Update.
38060         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
38061         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
38062
38063 2007-07-08  Bruno Haible  <bruno@clisp.org>
38064
38065         Update to Unicode 5.0.
38066         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
38067         code transform. Extend the name index field of unicode_name_to_code and
38068         unicode_code_to_name from 16 to 24 bits.
38069         * lib/uniname/uniname.c (unicode_character_name,
38070         unicode_name_character): Add the range 0x12xxx to the code transform.
38071         * lib/uniname/uninames.h: Regenerated.
38072         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
38073
38074 2007-07-07  Bruno Haible  <bruno@clisp.org>
38075
38076         * modules/wcwidth-tests: New file.
38077         * tests/test-wcwidth.c: New file.
38078
38079         Work around MacOS X wcwidth() bug.
38080         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
38081         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
38082         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
38083         original wcwidth in non-UTF-8 locales.
38084         * modules/wcwidth (Depends-on): Add localcharset, streq,
38085         uniwidth/width.
38086         * doc/functions/wcwidth.texi: Update.
38087
38088 2007-07-07  Bruno Haible  <bruno@clisp.org>
38089
38090         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
38091         (wcwidth): New declaration.
38092         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
38093         macros.
38094         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
38095         here. Prepare for creating <wchar.h> unconditionally.
38096         * modules/wchar (Depends-on): Add link-warning.
38097         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
38098         REPLACE_WCWIDTH, and GL_LINK_WARNING.
38099         * lib/wcwidth.h: Remove file.
38100         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
38101         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
38102         * modules/wcwidth (Files): Remove lib/wcwidth.h.
38103         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
38104         (Include): Replace wcwidth.h with <wchar.h>.
38105         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
38106         * lib/mbchar.h: Don't include wcwidth.h.
38107         * lib/mbswidth.c: Likewise.
38108         * NEWS: Mention the change.
38109
38110 2007-07-07  Bruno Haible  <bruno@clisp.org>
38111
38112         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
38113         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
38114         definition with an external declaration.
38115         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
38116         defined as a function. Remove AC_C_INLINE requirement.
38117         * modules/wcwidth (Files): Add lib/wcwidth.c.
38118         (Makefile.am): Remove redundant statement.
38119
38120 2007-07-07  Bruno Haible  <bruno@clisp.org>
38121
38122         * MODULES.html.sh (Unicode string functions): Add the new modules.
38123
38124         * tests/uniwidth/test-u32-strwidth.c: New file.
38125         * modules/uniwidth/u32-strwidth-tests: New file.
38126
38127         * lib/uniwidth/u32-strwidth.c: New file.
38128         * modules/uniwidth/u32-strwidth: New file.
38129
38130         * tests/uniwidth/test-u16-strwidth.c: New file.
38131         * modules/uniwidth/u16-strwidth-tests: New file.
38132
38133         * lib/uniwidth/u16-strwidth.c: New file.
38134         * modules/uniwidth/u16-strwidth: New file.
38135
38136         * tests/uniwidth/test-u8-strwidth.c: New file.
38137         * modules/uniwidth/u8-strwidth-tests: New file.
38138
38139         * lib/uniwidth/u8-strwidth.c: New file.
38140         * modules/uniwidth/u8-strwidth: New file.
38141
38142         * tests/uniwidth/test-u32-width.c: New file.
38143         * modules/uniwidth/u32-width-tests: New file.
38144
38145         * lib/uniwidth/u32-width.c: New file.
38146         * modules/uniwidth/u32-width: New file.
38147
38148         * tests/uniwidth/test-u16-width.c: New file.
38149         * modules/uniwidth/u16-width-tests: New file.
38150
38151         * lib/uniwidth/u16-width.c: New file.
38152         * modules/uniwidth/u16-width: New file.
38153
38154         * tests/uniwidth/test-u8-width.c: New file.
38155         * modules/uniwidth/u8-width-tests: New file.
38156
38157         * lib/uniwidth/u8-width.c: New file.
38158         * modules/uniwidth/u8-width: New file.
38159
38160         * tests/uniwidth/test-uc_width.c: New file.
38161         * modules/uniwidth/width-tests: New file.
38162
38163         * lib/uniwidth/width.c: New file, from GNU libiconv.
38164         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
38165         * modules/uniwidth/width: New file.
38166
38167         * lib/uniwidth.h: New file, from GNU libiconv.
38168         * modules/uniwidth/base: New file.
38169
38170 2007-07-07  Bruno Haible  <bruno@clisp.org>
38171
38172         * lib/uniname.h: New file, from GNU gettext.
38173         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
38174         * lib/uniname/uninames.h: New file, from GNU gettext.
38175         * lib/uniname/uniname.c: New file, from GNU gettext.
38176         * tests/uniname/test-uninames.sh: New file.
38177         * tests/uniname/test-uninames.c: New file, from GNU gettext.
38178         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
38179         * modules/uniname/base: New file.
38180         * modules/uniname/uniname: New file.
38181         * modules/uniname/uniname-tests: New file.
38182         * MODULES.html.sh (Unicode string functions): Add the new modules.
38183
38184 2007-07-06  Bruno Haible  <bruno@clisp.org>
38185
38186         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
38187
38188 2007-07-06  Bruno Haible  <bruno@clisp.org>
38189
38190         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
38191         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
38192         includes <cygwin/sys_time.h> which includes <sys/select.h> which
38193         include <sys/time.h>.
38194         Reported by Eric Blake.
38195
38196 2007-07-06  Eric Blake  <ebb9@byu.net>
38197
38198         Fix testing canonicalize on cygwin.
38199         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
38200         Revert patch from 2007-06-19.
38201         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
38202         canonicalize module is also in use.
38203         * tests/test-canonicalize.c: New file.
38204         * tests/test-canonicalize.sh: Likewise.
38205         * modules/canonicalize-tests: Likewise.
38206
38207 2007-07-06  Jim Meyering  <jim@meyering.net>
38208
38209         * lib/getugroups.c (getugroups): Detect getgrent failure.
38210         Adjust comment to reflect reality: this function may return -1.
38211
38212 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
38213
38214         * build-aux/bootstrap (TP_URL,get_translations): Update to use
38215         the new TP address.
38216         (usage): Fix typo
38217         (gnulib_mk): New variable.
38218
38219 2007-07-05  Jim Meyering  <jim@meyering.net>
38220
38221         Don't let endgrent clobber errno, no matter how improbable.
38222         * lib/getugroups.c (getugroups): Save and restore errno around
38223         endgrent call.
38224
38225         Close the group DB even when failing with 2^31 or more members.
38226         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
38227
38228 2007-07-04  Jim Meyering  <jim@meyering.net>
38229
38230         * lib/getugroups.h: New file.
38231         * lib/getugroups.c: Include "getugroups.h".
38232         Remove uses of "register" keyword.
38233         Move local variable, "cp", down into scope where used.
38234         Give "username" parameter the "const" attribute.
38235         * modules/getugroups (Files): Add lib/getugroups.h
38236
38237 2007-07-04  Karl Berry  <karl@gnu.org>
38238
38239         * MODULES.html.sh (func_all_modules): Complete rename of
38240         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
38241
38242 2007-07-02  Bruno Haible  <bruno@clisp.org>
38243
38244         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
38245         mode, when inttypes.h comes from gnulib.
38246         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
38247
38248 2007-07-02  Simon Josefsson  <simon@josefsson.org>
38249
38250         * NEWS: Mention lgpl module name change.
38251
38252         * modules/lgpl-2.1: Renamed from lgpl.
38253
38254         * NEWS: Mention gpl module name change.
38255
38256         * modules/gpl-3.0: New file, based on gpl-2.0.
38257
38258         * modules/gpl-2.0: Renamed from gpl.
38259
38260         * modules/gpl: Fix filename, doc/gpl.texi is now found at
38261         doc/gpl-2.0.texi.
38262
38263 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
38264
38265         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
38266         #define __STDC_LIMIT_MACROS temporarily while including
38267         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
38268         Problem reported by Joel E. Denny in
38269         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
38270
38271 2007-07-01  Bruno Haible  <bruno@clisp.org>
38272
38273         * lib/unistdio.h: New file.
38274         * lib/unistdio/u-asnprintf.h: New file.
38275         * lib/unistdio/u-asprintf.h: New file.
38276         * lib/unistdio/u-printf-args.c: New file.
38277         * lib/unistdio/u-printf-args.h: New file.
38278         * lib/unistdio/u-printf-parse.h: New file.
38279         * lib/unistdio/u-snprintf.h: New file.
38280         * lib/unistdio/u-sprintf.h: New file.
38281         * lib/unistdio/u-vasprintf.h: New file.
38282         * lib/unistdio/u-vsnprintf.h: New file.
38283         * lib/unistdio/u-vsprintf.h: New file.
38284         * lib/unistdio/ulc-asnprintf.c: New file.
38285         * lib/unistdio/ulc-asprintf.c: New file.
38286         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
38287         * lib/unistdio/ulc-printf-parse.c: New file.
38288         * lib/unistdio/ulc-snprintf.c: New file.
38289         * lib/unistdio/ulc-sprintf.c: New file.
38290         * lib/unistdio/ulc-vasnprintf.c: New file.
38291         * lib/unistdio/ulc-vasprintf.c: New file.
38292         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
38293         * lib/unistdio/ulc-vsnprintf.c: New file.
38294         * lib/unistdio/ulc-vsprintf.c: New file.
38295         * lib/unistdio/u8-asnprintf.c: New file.
38296         * lib/unistdio/u8-asprintf.c: New file.
38297         * lib/unistdio/u8-printf-parse.c: New file.
38298         * lib/unistdio/u8-snprintf.c: New file.
38299         * lib/unistdio/u8-sprintf.c: New file.
38300         * lib/unistdio/u8-vasnprintf.c: New file.
38301         * lib/unistdio/u8-vasprintf.c: New file.
38302         * lib/unistdio/u8-vsnprintf.c: New file.
38303         * lib/unistdio/u8-vsprintf.c: New file.
38304         * lib/unistdio/u8-u8-asnprintf.c: New file.
38305         * lib/unistdio/u8-u8-asprintf.c: New file.
38306         * lib/unistdio/u8-u8-snprintf.c: New file.
38307         * lib/unistdio/u8-u8-sprintf.c: New file.
38308         * lib/unistdio/u8-u8-vasnprintf.c: New file.
38309         * lib/unistdio/u8-u8-vasprintf.c: New file.
38310         * lib/unistdio/u8-u8-vsnprintf.c: New file.
38311         * lib/unistdio/u8-u8-vsprintf.c: New file.
38312         * lib/unistdio/u16-asnprintf.c: New file.
38313         * lib/unistdio/u16-asprintf.c: New file.
38314         * lib/unistdio/u16-printf-parse.c: New file.
38315         * lib/unistdio/u16-snprintf.c: New file.
38316         * lib/unistdio/u16-sprintf.c: New file.
38317         * lib/unistdio/u16-vasnprintf.c: New file.
38318         * lib/unistdio/u16-vasprintf.c: New file.
38319         * lib/unistdio/u16-vsnprintf.c: New file.
38320         * lib/unistdio/u16-vsprintf.c: New file.
38321         * lib/unistdio/u16-u16-asnprintf.c: New file.
38322         * lib/unistdio/u16-u16-asprintf.c: New file.
38323         * lib/unistdio/u16-u16-snprintf.c: New file.
38324         * lib/unistdio/u16-u16-sprintf.c: New file.
38325         * lib/unistdio/u16-u16-vasnprintf.c: New file.
38326         * lib/unistdio/u16-u16-vasprintf.c: New file.
38327         * lib/unistdio/u16-u16-vsnprintf.c: New file.
38328         * lib/unistdio/u16-u16-vsprintf.c: New file.
38329         * lib/unistdio/u32-asnprintf.c: New file.
38330         * lib/unistdio/u32-asprintf.c: New file.
38331         * lib/unistdio/u32-printf-parse.c: New file.
38332         * lib/unistdio/u32-snprintf.c: New file.
38333         * lib/unistdio/u32-sprintf.c: New file.
38334         * lib/unistdio/u32-vasnprintf.c: New file.
38335         * lib/unistdio/u32-vasprintf.c: New file.
38336         * lib/unistdio/u32-vsnprintf.c: New file.
38337         * lib/unistdio/u32-vsprintf.c: New file.
38338         * lib/unistdio/u32-u32-asnprintf.c: New file.
38339         * lib/unistdio/u32-u32-asprintf.c: New file.
38340         * lib/unistdio/u32-u32-snprintf.c: New file.
38341         * lib/unistdio/u32-u32-sprintf.c: New file.
38342         * lib/unistdio/u32-u32-vasnprintf.c: New file.
38343         * lib/unistdio/u32-u32-vasprintf.c: New file.
38344         * lib/unistdio/u32-u32-vsnprintf.c: New file.
38345         * lib/unistdio/u32-u32-vsprintf.c: New file.
38346         * tests/unistdio/test-ulc-asnprintf1.c: New file.
38347         * tests/unistdio/test-ulc-asnprintf1.h: New file.
38348         * tests/unistdio/test-ulc-printf1.h: New file.
38349         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
38350         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
38351         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
38352         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
38353         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
38354         * tests/unistdio/test-ulc-vasprintf1.c: New file.
38355         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
38356         * tests/unistdio/test-ulc-vsprintf1.c: New file.
38357         * tests/unistdio/test-u8-asnprintf1.c: New file.
38358         * tests/unistdio/test-u8-asnprintf1.h: New file.
38359         * tests/unistdio/test-u8-printf1.h: New file.
38360         * tests/unistdio/test-u8-vasnprintf1.c: New file.
38361         * tests/unistdio/test-u8-vasnprintf2.c: New file.
38362         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
38363         * tests/unistdio/test-u8-vasnprintf3.c: New file.
38364         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
38365         * tests/unistdio/test-u8-vasprintf1.c: New file.
38366         * tests/unistdio/test-u8-vsnprintf1.c: New file.
38367         * tests/unistdio/test-u8-vsprintf1.c: New file.
38368         * tests/unistdio/test-u16-asnprintf1.c: New file.
38369         * tests/unistdio/test-u16-asnprintf1.h: New file.
38370         * tests/unistdio/test-u16-printf1.h: New file.
38371         * tests/unistdio/test-u16-vasnprintf1.c: New file.
38372         * tests/unistdio/test-u16-vasnprintf2.c: New file.
38373         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
38374         * tests/unistdio/test-u16-vasnprintf3.c: New file.
38375         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
38376         * tests/unistdio/test-u16-vasprintf1.c: New file.
38377         * tests/unistdio/test-u16-vsnprintf1.c: New file.
38378         * tests/unistdio/test-u16-vsprintf1.c: New file.
38379         * tests/unistdio/test-u32-asnprintf1.c: New file.
38380         * tests/unistdio/test-u32-asnprintf1.h: New file.
38381         * tests/unistdio/test-u32-printf1.h: New file.
38382         * tests/unistdio/test-u32-vasnprintf1.c: New file.
38383         * tests/unistdio/test-u32-vasnprintf2.c: New file.
38384         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
38385         * tests/unistdio/test-u32-vasnprintf3.c: New file.
38386         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
38387         * tests/unistdio/test-u32-vasprintf1.c: New file.
38388         * tests/unistdio/test-u32-vsnprintf1.c: New file.
38389         * tests/unistdio/test-u32-vsprintf1.c: New file.
38390         * modules/unistdio/base: New file.
38391         * modules/unistdio/u-printf-args: New file.
38392         * modules/unistdio/ulc-asnprintf: New file.
38393         * modules/unistdio/ulc-asprintf: New file.
38394         * modules/unistdio/ulc-fprintf: New file.
38395         * modules/unistdio/ulc-printf-parse: New file.
38396         * modules/unistdio/ulc-snprintf: New file.
38397         * modules/unistdio/ulc-sprintf: New file.
38398         * modules/unistdio/ulc-vasnprintf: New file.
38399         * modules/unistdio/ulc-vasprintf: New file.
38400         * modules/unistdio/ulc-vfprintf: New file.
38401         * modules/unistdio/ulc-vsnprintf: New file.
38402         * modules/unistdio/ulc-vsprintf: New file.
38403         * modules/unistdio/u8-asnprintf: New file.
38404         * modules/unistdio/u8-asprintf: New file.
38405         * modules/unistdio/u8-printf-parse: New file.
38406         * modules/unistdio/u8-snprintf: New file.
38407         * modules/unistdio/u8-sprintf: New file.
38408         * modules/unistdio/u8-vasnprintf: New file.
38409         * modules/unistdio/u8-vasprintf: New file.
38410         * modules/unistdio/u8-vsnprintf: New file.
38411         * modules/unistdio/u8-vsprintf: New file.
38412         * modules/unistdio/u8-u8-asnprintf: New file.
38413         * modules/unistdio/u8-u8-asprintf: New file.
38414         * modules/unistdio/u8-u8-snprintf: New file.
38415         * modules/unistdio/u8-u8-sprintf: New file.
38416         * modules/unistdio/u8-u8-vasnprintf: New file.
38417         * modules/unistdio/u8-u8-vasprintf: New file.
38418         * modules/unistdio/u8-u8-vsnprintf: New file.
38419         * modules/unistdio/u8-u8-vsprintf: New file.
38420         * modules/unistdio/u16-asnprintf: New file.
38421         * modules/unistdio/u16-asprintf: New file.
38422         * modules/unistdio/u16-printf-parse: New file.
38423         * modules/unistdio/u16-snprintf: New file.
38424         * modules/unistdio/u16-sprintf: New file.
38425         * modules/unistdio/u16-vasnprintf: New file.
38426         * modules/unistdio/u16-vasprintf: New file.
38427         * modules/unistdio/u16-vsnprintf: New file.
38428         * modules/unistdio/u16-vsprintf: New file.
38429         * modules/unistdio/u16-u16-asnprintf: New file.
38430         * modules/unistdio/u16-u16-asprintf: New file.
38431         * modules/unistdio/u16-u16-snprintf: New file.
38432         * modules/unistdio/u16-u16-sprintf: New file.
38433         * modules/unistdio/u16-u16-vasnprintf: New file.
38434         * modules/unistdio/u16-u16-vasprintf: New file.
38435         * modules/unistdio/u16-u16-vsnprintf: New file.
38436         * modules/unistdio/u16-u16-vsprintf: New file.
38437         * modules/unistdio/u32-asnprintf: New file.
38438         * modules/unistdio/u32-asprintf: New file.
38439         * modules/unistdio/u32-printf-parse: New file.
38440         * modules/unistdio/u32-snprintf: New file.
38441         * modules/unistdio/u32-sprintf: New file.
38442         * modules/unistdio/u32-vasnprintf: New file.
38443         * modules/unistdio/u32-vasprintf: New file.
38444         * modules/unistdio/u32-vsnprintf: New file.
38445         * modules/unistdio/u32-vsprintf: New file.
38446         * modules/unistdio/u32-u32-asnprintf: New file.
38447         * modules/unistdio/u32-u32-asprintf: New file.
38448         * modules/unistdio/u32-u32-snprintf: New file.
38449         * modules/unistdio/u32-u32-sprintf: New file.
38450         * modules/unistdio/u32-u32-vasnprintf: New file.
38451         * modules/unistdio/u32-u32-vasprintf: New file.
38452         * modules/unistdio/u32-u32-vsnprintf: New file.
38453         * modules/unistdio/u32-u32-vsprintf: New file.
38454         * modules/unistdio/ulc-asnprintf-tests: New file.
38455         * modules/unistdio/ulc-vasnprintf-tests: New file.
38456         * modules/unistdio/ulc-vasprintf-tests: New file.
38457         * modules/unistdio/ulc-vsnprintf-tests: New file.
38458         * modules/unistdio/ulc-vsprintf-tests: New file.
38459         * modules/unistdio/u8-asnprintf-tests: New file.
38460         * modules/unistdio/u8-vasnprintf-tests: New file.
38461         * modules/unistdio/u8-vasprintf-tests: New file.
38462         * modules/unistdio/u8-vsnprintf-tests: New file.
38463         * modules/unistdio/u8-vsprintf-tests: New file.
38464         * modules/unistdio/u16-asnprintf-tests: New file.
38465         * modules/unistdio/u16-vasnprintf-tests: New file.
38466         * modules/unistdio/u16-vasprintf-tests: New file.
38467         * modules/unistdio/u16-vsnprintf-tests: New file.
38468         * modules/unistdio/u16-vsprintf-tests: New file.
38469         * modules/unistdio/u32-asnprintf-tests: New file.
38470         * modules/unistdio/u32-vasnprintf-tests: New file.
38471         * modules/unistdio/u32-vasprintf-tests: New file.
38472         * modules/unistdio/u32-vsnprintf-tests: New file.
38473         * modules/unistdio/u32-vsprintf-tests: New file.
38474         * MODULES.html.sh (Unicode string functions): Add the new modules.
38475
38476 2007-07-01  Bruno Haible  <bruno@clisp.org>
38477
38478         * lib/sprintf.c (sprintf): Limit the available length estimation,
38479         to avoid address wraparound.
38480         * lib/vsprintf.c (vsprintf): Likewise.
38481         * modules/sprintf-posix (Dependencies): Add stdint.
38482         * modules/vsprintf-posix (Dependencies): Likewise.
38483
38484 2007-07-01  Bruno Haible  <bruno@clisp.org>
38485
38486         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
38487         Windows PATH as well. Conservative double-quoting. Comments.
38488
38489 2007-07-01  Bruno Haible  <bruno@clisp.org>
38490             Eric Blake  <ebb9@byu.net>
38491             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38492
38493         * gnulib-tool (self_abspathname): Fix algorithm to cope with
38494         empty components in $PATH, denoting '.'.
38495
38496 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38497
38498         * gnulib-tool: Fix indentation.
38499         (func_create_megatestdir): Likewise.
38500         Report by Bruno Haible.
38501
38502 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38503
38504         Sync from Automake.
38505         * build-aux/gnupload: Fix shell portability issues with for loops.
38506         Report by Karl Berry.
38507
38508 2007-06-29  Simon Josefsson  <simon@josefsson.org>
38509
38510         * build-aux/maint.mk (POURL): Use translationproject.org.
38511
38512 2007-06-27  Simon Josefsson  <simon@josefsson.org>
38513             Bruno Haible  <bruno@clisp.org>
38514
38515         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
38516         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
38517         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
38518         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
38519         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
38520
38521 2007-06-27  Bruno Haible  <bruno@clisp.org>
38522
38523         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
38524         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
38525
38526 2007-06-26  Karl Berry  <karl@gnu.org>
38527
38528         * MODULES.html.sh: remove xreadlink-with-size.
38529
38530 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
38531
38532         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
38533         method that I hope also handles the double-include problem noted
38534         by Bruno Haible in
38535         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
38536
38537 2007-06-23  Bruno Haible  <bruno@clisp.org>
38538
38539         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
38540         Don't let the 'mostlyclean' target fail if the last subdirectory could
38541         not be removed.
38542         Reported by Karl Berry.
38543
38544 2007-06-23  Bruno Haible  <bruno@clisp.org>
38545
38546         * gnulib-tool (echo): Add a speedier workaround for ksh.
38547         * tests/test-echo.sh: Likewise.
38548
38549 2007-06-23  Bruno Haible  <bruno@clisp.org>
38550
38551         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
38552         * tests/test-echo.sh: Likewise.
38553
38554 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38555
38556         * gnulib-tool (IFS): Initialize early, so we don't set it to
38557         empty later.
38558         (self_abspathname): Rewrite algorithm to set it, reindent.
38559         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
38560         (func_create_megatestdir): Merge some sed scripts.
38561
38562 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
38563
38564         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
38565         exposed by Sun Studio 11 cc on Solaris 8.
38566
38567 2007-06-22  Bruno Haible  <bruno@clisp.org>
38568
38569         * gnulib-tool (echo): Ensure the echo primitive does not interpret
38570         backslashes.
38571         * tests/test-echo.sh: New file.
38572
38573 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38574
38575         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
38576         simplify `sed_replace_build_aux' scripts, they are portable but
38577         echoing them with `echo' is not.
38578         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
38579
38580 2007-06-21  Karl Berry  <karl@gnu.org>
38581
38582         * config/srclist.txt: guess we can't handle the licenses via
38583         srclist at the moment.
38584
38585 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
38586
38587         * MODULES.html.sh: Add include_next.
38588         * modules/include_next: New file.
38589
38590 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
38591
38592         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
38593         INCLUDE_NEXT.
38594         (gl_CHECK_NEXT_HEADERS): New macro.
38595         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
38596         the obsolescent gl_ABSOLUTE_HEADER.
38597         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
38598         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
38599         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
38600         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38601         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
38602         * m4/math_h.m4 (gl_MATH_H): Likewise.
38603         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
38604         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
38605         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
38606         * m4/stdint.m4 (gl_STDINT_H): Likewise.
38607         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
38608         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
38609         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
38610         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38611         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
38612         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
38613         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
38614         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
38615         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
38616         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
38617         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38618         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
38619         * m4/inttypes.m4 (gl_INTTYPES_H): Define
38620         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
38621         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
38622         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
38623         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
38624         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
38625         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
38626         * lib/float_.h: Likewise.
38627         * lib/inttypes_.h: Likewise.
38628         * lib/math_.h: Likewise.
38629         * lib/search_.h: Likewise.
38630         * lib/signal_.h: Likewise.
38631         * lib/stdint_.h: Likewise.
38632         * lib/stdio_.h: Likewise.
38633         * lib/stdlib_.h: Likewise.
38634         * lib/string_.h: Likewise.
38635         * lib/sys_stat_.h: Likewise.
38636         * lib/sys_time_.h: Likewise.
38637         * lib/time_.h: Likewise.
38638         * lib/unistd_.h: Likewise.
38639         * lib/wchar_.h: Likewise.
38640         * lib/wctype_.h: Likewise.
38641         * lib/dirent_.h: Likewise.
38642         * lib/iconv_.h: Likewise.
38643         * lib/locale_.h: Likewise.
38644         * lib/netinet_in_.h: Likewise.
38645         * lib/sys_select_.h: Likewise.
38646         * lib/sys_socket_.h: Likewise.
38647         * lib/sysexits_.h: Likewise.
38648         * modules/fcntl (Depends-on): Depend on include_next, not
38649         absolute_header.
38650         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
38651         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
38652         * modules/fchdir: Likewise.
38653         * modules/float: Likewise.
38654         * modules/iconv_open: Likewise.
38655         * modules/inttypes: Likewise.
38656         * modules/locale: Likewise.
38657         * modules/math: Likewise.
38658         * modules/netinet_in: Likewise.
38659         * modules/search: Likewise.
38660         * modules/signal: Likewise.
38661         * modules/stdint: Likewise.
38662         * modules/stdio: Likewise.
38663         * modules/stdlib: Likewise.
38664         * modules/string: Likewise.
38665         * modules/sys_select: Likewise.
38666         * modules/sys_socket: Likewise.
38667         * modules/sys_stat: Likewise.
38668         * modules/sys_time: Likewise.
38669         * modules/sysexits: Likewise.
38670         * modules/time: Likewise.
38671         * modules/unistd: Likewise.
38672         * modules/wchar: Likewise.
38673         * modules/wctype: Likewise.
38674         * modules/sys_stat: Change maintainer to "all".
38675         * modules/unistd: Likewise.
38676
38677 2007-06-20  Karl Berry  <karl@gnu.org>
38678
38679         * config/srclist.txt: track www changes in license files.
38680
38681 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
38682
38683         * build-aux/bootstrap: Remove stray dot.
38684         Make sure build_aux settings are honored when linking
38685         gnulib_extra_files.
38686
38687 2007-06-19  Eric Blake  <ebb9@byu.net>
38688
38689         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
38690         Allow compilation on cygwin.
38691
38692 2007-06-19  Jim Meyering  <jim@meyering.net>
38693
38694         xreadlink-with-size: Remove module.  No longer used.
38695         Ex-callers now use xreadlink or mreadlink-with-size.
38696         * modules/xreadlink-with-size: Remove module.
38697         * lib/xreadlink-with-size.c: Remove file.
38698         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
38699         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
38700         just before the function definition *is* accurate.
38701
38702         Eliminate one way canonicalize_filename_mode could exit.
38703         * lib/canonicalize.c (canonicalize_filename_mode):
38704         Use mreadlink_with_size, not xreadlink_with_size.
38705
38706 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
38707
38708         Detect porting problems to FreeBSD/arm, which has time_t wider than
38709         long int.  Original problem reported for GNU diff by Xin Li in
38710         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
38711         * modules/getdate (Depends-on): Add intprops, verify.
38712         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
38713         is an integer type no wider than long int.
38714
38715 2007-06-18  Jim Meyering  <jim@meyering.net>
38716
38717         New module: mreadlink-with-size.
38718         * MODULES.html.sh: Add mreadlink-with-size.
38719         * modules/mreadlink-with-size: New module
38720         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
38721         not xreadlink-with-size.
38722         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
38723
38724 2007-06-16  Bruno Haible  <bruno@clisp.org>
38725
38726         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
38727         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
38728         Reported by Gary V. Vaughan <gary@gnu.org>.
38729
38730 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
38731
38732         Revamp lchown so that it lives in unistd.h where it belongs.
38733         * lib/lchown.h: Remove.
38734         * lib/dirchownmod.c: Don't include lib/lchown.h.
38735         * lib/fchownat.c: Likewise.
38736         * lib/openat.c: Likewise.
38737         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
38738         does not follow symlinks.
38739         (EOPNOTSUPP): Define if not defined.
38740         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
38741         is defined to 0.
38742         (lchown): New decl.
38743         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
38744         Do not check for lchown decl.
38745         Set REPLACE_LCHOWN.
38746         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
38747         REPLACE_LCHOWN.
38748         * modules/chown: Make it clear it follows symlinks.
38749         * modules/lchown: Make it clear it doesn't follow symlinks.
38750         (Files): Remove lib/lchown.h
38751         (Depends-on): Add unistd.
38752         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
38753         (Include): Include <unistd.h>, not "lchown.h".
38754         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
38755         REPLACE_LCHOWN.
38756
38757 2007-06-15  Jim Meyering  <jim@meyering.net>
38758
38759         Change license (GPL to LGPL) of fsusage and dependents.
38760         * modules/fsusage (License): Change to LGPL.
38761         * modules/full-read (License): Likewise.
38762         * modules/full-write (License): Likewise.
38763         * modules/safe-read (License): Likewise.
38764         * modules/safe-write (License): Likewise.
38765
38766 2007-06-14  Ben Pfaff  <blp@gnu.org>
38767
38768         Missing part of allocsa -> malloca transition.
38769         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
38770         gl_MALLOCA.
38771
38772 2007-06-12  Bruno Haible  <bruno@clisp.org>
38773
38774         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
38775         to ia64, x86_64, i386.
38776         Reported by Eric Blake.
38777
38778 2007-06-12  Bruno Haible  <bruno@clisp.org>
38779
38780         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
38781         cross-compiling to x86_64.
38782
38783 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
38784
38785         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
38786         glitch reported by Ralf Wildenhues in
38787         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
38788
38789         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
38790         Vin Shelton.
38791
38792 2007-06-11  Bruno Haible  <bruno@clisp.org>
38793
38794         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
38795         replacement string.
38796         Reported by Eric Blake.
38797
38798 2007-06-10  Bruno Haible  <bruno@clisp.org>
38799
38800         Prepare vasnprintf code for use with Unicode strings.
38801         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
38802         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
38803         TYPE_U32_STRING.
38804         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
38805         a_u32_string variants.
38806         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
38807         * lib/printf-args.c: Don't include config.h and the specification
38808         header if PRINTF_FETCHARGS is already defined.
38809         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
38810         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
38811         TYPE_U16_STRING, TYPE_U32_STRING.
38812         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
38813         u16_directive, u16_directives, u32_directive, u32_directives): New
38814         types.
38815         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
38816         New declarations.
38817         * lib/printf-parse.c: Don't include config.h and the specification
38818         header if PRINTF_PARSE is already defined. Eliminate the set of
38819         parameters for WIDE_CHAR_VERSION; the user of this file must provide
38820         them now. Include c-ctype.h.
38821         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
38822         directive and CHAR_T_ONLY_ASCII.
38823         * lib/vasnprintf.c: Don't include config.h and the specification header
38824         if VASNPRINTF is already defined.
38825         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
38826         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
38827         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
38828         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
38829         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
38830         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
38831         code accordingly.
38832         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
38833         pad_ourselves also in this case, with the 'c' and 's' directives, and
38834         with a different notion of "width".
38835         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
38836
38837 2007-06-10  Bruno Haible  <bruno@clisp.org>
38838
38839         * modules/unistr/u32-mbsnlen: New file.
38840         * lib/unistr/u32-mbsnlen.c: New file.
38841
38842         * modules/unistr/u16-mbsnlen: New file.
38843         * lib/unistr/u16-mbsnlen.c: New file.
38844
38845         * modules/unistr/u8-mbsnlen: New file.
38846         * lib/unistr/u8-mbsnlen.c: New file.
38847
38848         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
38849         declarations.
38850
38851 2007-06-10  Bruno Haible  <bruno@clisp.org>
38852
38853         * lib/string_.h (mbsnlen): New declaration.
38854         * lib/mbsnlen.c: New file.
38855         * m4/mbsnlen.m4: New file.
38856         * modules/mbsnlen: New file.
38857         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
38858         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
38859         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
38860
38861 2007-06-10  Bruno Haible  <bruno@clisp.org>
38862
38863         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
38864
38865 2007-06-10  Bruno Haible  <bruno@clisp.org>
38866
38867         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
38868         * lib/mbuiter.h: Likewise.
38869
38870 2007-06-10  Bruno Haible  <bruno@clisp.org>
38871
38872         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
38873         declaration.
38874
38875 2007-06-10  Karl Berry  <karl@gnu.org>
38876
38877         * config/srclist.txt: remove gettext entries, Bruno prefers
38878         to update individually.
38879
38880 2007-06-10  Bruno Haible  <bruno@clisp.org>
38881
38882         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
38883         'maxlen'. Ensure only length + width bytes are allocated, not
38884         length + 1 + width.
38885
38886 2007-06-09  Bruno Haible  <bruno@clisp.org>
38887
38888         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
38889         (CHAR_T): Remove macro.
38890         (VASNPRINTF): Update.
38891
38892 2007-06-09  Bruno Haible  <bruno@clisp.org>
38893
38894         * MODULES.html.sh (Unicode string functions): Add the new modules.
38895
38896         * modules/uniconv/u32-conv-to-enc: New file.
38897         * lib/uniconv/u32-conv-to-enc.c: New file.
38898         * modules/uniconv/u32-conv-to-enc-tests: New file.
38899         * tests/uniconv/test-u32-conv-to-enc.c: New file.
38900
38901         * modules/uniconv/u16-conv-to-enc: New file.
38902         * lib/uniconv/u16-conv-to-enc.c: New file.
38903         * lib/uniconv/u-conv-to-enc.h: New file.
38904         * modules/uniconv/u16-conv-to-enc-tests: New file.
38905         * tests/uniconv/test-u16-conv-to-enc.c: New file.
38906
38907         * modules/uniconv/u8-conv-to-enc: New file.
38908         * lib/uniconv/u8-conv-to-enc.c: New file.
38909         * modules/uniconv/u8-conv-to-enc-tests: New file.
38910         * tests/uniconv/test-u8-conv-to-enc.c: New file.
38911
38912         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
38913         u32_conv_to_encoding): New declarations.
38914
38915 2007-06-09  Bruno Haible  <bruno@clisp.org>
38916
38917         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
38918
38919 2007-06-09  Bruno Haible  <bruno@clisp.org>
38920
38921         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
38922         * modules/malloca: Renamed from modules/allocsa, updated.
38923         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
38924         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
38925         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
38926         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
38927         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
38928         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
38929         * modules/xmalloca: Renamed from modules/xallocsa, updated.
38930         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
38931         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
38932         * modules/c-strcasestr (Depends-on): Update.
38933         * lib/c-strcasestr.c: Update.
38934         * modules/c-strstr (Depends-on): Update.
38935         * lib/c-strstr.c: Update.
38936         * modules/canonicalize-lgpl (Depends-on): Update.
38937         * lib/canonicalize-lgpl.c: Update.
38938         * modules/clean-temp (Depends-on): Update.
38939         * lib/clean-temp.c: Update.
38940         * modules/csharpcomp (Depends-on): Update.
38941         * lib/csharpcomp.c: Update.
38942         * modules/csharpexec (Depends-on): Update.
38943         * lib/csharpexec.c: Update.
38944         * modules/javacomp (Depends-on): Update.
38945         * lib/javacomp.c: Update.
38946         * modules/javaexec (Depends-on): Update.
38947         * lib/javaexec.c: Update.
38948         * modules/mbscasestr (Depends-on): Update.
38949         * lib/mbscasestr.c: Update.
38950         * modules/mbsstr (Depends-on): Update.
38951         * lib/mbsstr.c: Update.
38952         * modules/setenv (Depends-on): Update.
38953         * lib/setenv.c: Update.
38954         * modules/strcasestr (Depends-on): Update.
38955         * lib/strcasestr.c: Update.
38956         * modules/striconveha (Depends-on): Update.
38957         * lib/striconveha.c: Update.
38958         * modules/relocatable-prog-wrapper (Files): Update.
38959         * lib/relocwrapper.c: Update.
38960         * build-aux/install-reloc: Update.
38961         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
38962
38963 2007-06-08  Bruno Haible  <bruno@clisp.org>
38964
38965         Port to uClibc.
38966         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
38967         * lib/fpurge.c (fpurge): Likewise.
38968         * lib/freading.c (freading): Likewise.
38969         * lib/fseeko.c (rpl_fseeko): Likewise.
38970         * lib/fseterr.c (fseterr): Likewise.
38971         * lib/fwriting.c (fwriting): Likewise.
38972         * tests/test-fflush.c (main): Avoid a failure on uClibc.
38973
38974 2007-06-08  Bruno Haible  <bruno@clisp.org>
38975
38976         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
38977         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
38978         * modules/gettext (Files): Add m4/intlmacosx.m4.
38979
38980 2007-06-07  Bruno Haible  <bruno@clisp.org>
38981
38982         * modules/localename-tests: New file.
38983         * tests/test-localename.c: New file.
38984
38985         New module 'localename'.
38986         * lib/localename.h: New file.
38987         * lib/localename.c: New file, from GNU gettext.
38988         * m4/localename.m4: New file.
38989         * modules/localename: New file.
38990
38991 2007-06-07  Bruno Haible  <bruno@clisp.org>
38992
38993         Work around the lack of <wchar.h> on some builds of uClibc.
38994         * doc/headers/wchar.texi: Update.
38995         * lib/wchar_.h: Include <wchar.h> only if it exists.
38996         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
38997         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
38998         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
38999         doesn't exist.
39000         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
39001         * modules/mbfile (Depends-on): Add wchar.
39002         * modules/mbiter (Depends-on): Likewise.
39003         * modules/mbuiter (Depends-on): Likewise.
39004         Reported by Simon Josefsson.
39005
39006 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
39007
39008         Work around problem reported by Steven M. Schweda in
39009         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
39010         Tru64 5.1B with the Compaq compiler environment installed declares
39011         an 'isblank' function but does not define it in the C library.
39012         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
39013         * lib/regex_internal.h (isblank): Likewise.
39014         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
39015         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
39016
39017 2007-06-05  Bruno Haible  <bruno@clisp.org>
39018
39019         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
39020         ia64.
39021         * modules/printf-safe: New file.
39022         * modules/fprintf-posix (Depends-on): Add printf-safe.
39023         * modules/printf-posix (Depends-on): Likewise.
39024         * modules/snprintf-posix (Depends-on): Likewise.
39025         * modules/sprintf-posix (Depends-on): Likewise.
39026         * modules/vasnprintf-posix (Depends-on): Likewise.
39027         * modules/vasprintf-posix (Depends-on): Likewise.
39028         * modules/vfprintf-posix (Depends-on): Likewise.
39029         * modules/vprintf-posix (Depends-on): Likewise.
39030         * modules/vsnprintf-posix (Depends-on): Likewise.
39031         * modules/vsprintf-posix (Depends-on): Likewise.
39032         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
39033         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
39034         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
39035         "no" on i386, x86_64, ia64.
39036         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
39037         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
39038         on i386, x86_64, ia64.
39039         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
39040         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
39041         on i386, x86_64, ia64.
39042         * tests/test-vasnprintf-posix.c: Include float.h.
39043         (LDBL80_WORDS): New macro.
39044         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
39045         on i386, x86_64, ia64.
39046         * tests/test-vasprintf-posix.c: Include float.h.
39047         (LDBL80_WORDS): New macro.
39048         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
39049         on i386, x86_64, ia64.
39050         * tests/test-snprintf-posix.c: Include float.h.
39051         * tests/test-sprintf-posix.c: Likewise.
39052         * tests/test-vsnprintf-posix.c: Likewise.
39053         * tests/test-vsprintf-posix.c: Likewise.
39054
39055 2007-06-05  Bruno Haible  <bruno@clisp.org>
39056
39057         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
39058         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
39059         non-IEEE numbers on i386, x86_64, ia64.
39060         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
39061         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
39062         * tests/test-isnanl.h: Include float.h.
39063         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
39064
39065 2007-06-05  Bruno Haible  <bruno@clisp.org>
39066
39067         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
39068         also the %a / %A. Handle the %a / %A code before this extra handling.
39069
39070 2007-06-05  Bruno Haible  <bruno@clisp.org>
39071
39072         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
39073         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
39074
39075 2007-06-05  Bruno Haible  <bruno@clisp.org>
39076
39077         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
39078         typo in variable name.
39079
39080 2007-06-05  Eric Blake  <ebb9@byu.net>
39081
39082         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
39083         Reported by Simon Josefsson.
39084
39085 2007-06-04  Bruno Haible  <bruno@clisp.org>
39086
39087         Avoid test failures on some PowerPC platforms.
39088         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
39089         Define differently for PowerPC.
39090         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
39091         Reported by Gary V. Vaughan <gary@gnu.org>.
39092
39093 2007-06-02  Bruno Haible  <bruno@clisp.org>
39094
39095         Fix test-stdint failure on FreeBSD/ia64.
39096         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
39097         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
39098         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
39099         * doc/headers/stdint.texi: Update.
39100
39101 2007-06-01  Bruno Haible  <bruno@clisp.org>
39102
39103         * tests/test-binary-io.c (main): Pass a third argument to open().
39104         Reported by Gary V. Vaughan <gary@gnu.org>.
39105
39106 2007-06-01  Bruno Haible  <bruno@clisp.org>
39107
39108         * doc/functions/frexpl.texi: Update for mingw.
39109
39110 2007-06-01  Bruno Haible  <bruno@clisp.org>
39111
39112         * tests/test-lseek.c (main): Disable test of errno for invalid third
39113         argument.
39114         * doc/functions/lseek.texi: Update.
39115         Reported by Gary V. Vaughan <gary@gnu.org>.
39116
39117 2007-05-28  Bruno Haible  <bruno@clisp.org>
39118
39119         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
39120
39121 2007-05-31  Eric Blake  <ebb9@byu.net>
39122
39123         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
39124         cross compiling.
39125
39126 2007-05-30  Eric Blake  <ebb9@byu.net>
39127         and Bruno Haible  <bruno@clisp.org>
39128
39129         Work around mingw test failures exposed by m4-1.4.9b.
39130         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
39131         * tests/test-unistd.c: Disable uid_t and git_t tests for the
39132         moment.
39133
39134 2007-05-30  Bruno Haible  <bruno@clisp.org>
39135
39136         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
39137         assuming that they are closed. Needed on HP-UX 11.
39138
39139 2007-05-29  Bruno Haible  <bruno@clisp.org>
39140
39141         Fix a problem with #include_next.
39142         * lib/dirent_.h: Split the double-inclusion guard.
39143         * lib/fcntl_.h: Likewise.
39144         * lib/float_.h: Likewise.
39145         * lib/iconv_.h: Likewise.
39146         * lib/inttypes_.h: Likewise.
39147         * lib/locale_.h: Likewise.
39148         * lib/math_.h: Likewise.
39149         * lib/netinet_in_.h: Likewise.
39150         * lib/search_.h: Likewise.
39151         * lib/signal_.h: Likewise.
39152         * lib/stdint_.h: Likewise.
39153         * lib/stdio_.h: Likewise.
39154         * lib/stdlib_.h: Likewise.
39155         * lib/string_.h: Likewise.
39156         * lib/sys_select_.h: Likewise.
39157         * lib/sys_socket_.h: Likewise.
39158         * lib/sys_stat_.h: Likewise.
39159         * lib/sys_time_.h: Likewise.
39160         * lib/sysexits_.h: Likewise.
39161         * lib/time_.h: Likewise.
39162         * lib/unistd_.h: Likewise.
39163         * lib/wchar_.h: Likewise.
39164         * lib/wctype_.h: Likewise.
39165
39166 2007-05-29  Bruno Haible  <bruno@clisp.org>
39167
39168         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
39169         for the moment.
39170
39171 2007-05-29  Bruno Haible  <bruno@clisp.org>
39172
39173         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
39174         invocation.
39175         Reported by Eric Blake.
39176
39177 2007-05-29  Bruno Haible  <bruno@clisp.org>
39178
39179         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
39180         compiling case.
39181
39182 2007-05-29  Eric Blake  <ebb9@byu.net>
39183             Bruno Haible  <bruno@clisp.org>
39184
39185         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
39186         cross compiles.
39187
39188 2007-05-28  Eric Blake  <ebb9@byu.net>
39189
39190         * modules/closein-tests (test_closein_LDADD): Support test on
39191         cygwin with libtool.
39192
39193 2007-05-28  Bruno Haible  <bruno@clisp.org>
39194
39195         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
39196         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
39197         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
39198         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
39199         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
39200         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
39201         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
39202         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
39203         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
39204
39205 2007-05-28  Eric Blake  <ebb9@byu.net>
39206
39207         Unconditionally include <config.h> in unit tests.
39208         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
39209         * tests/test-allocsa.c, tests/test-arcfour.c,
39210         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
39211         tests/test-array_list.c, tests/test-array_oset.c,
39212         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
39213         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
39214         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
39215         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
39216         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
39217         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
39218         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
39219         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
39220         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
39221         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
39222         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
39223         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
39224         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
39225         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
39226         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
39227         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
39228         test-md5.c, test-memmem.c, test-printf-posix.c,
39229         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
39230         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
39231         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
39232         test-strcasestr.c, test-striconv.c, test-striconveh.c,
39233         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
39234         test-vasnprintf-posix2.c, test-vasnprintf.c,
39235         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
39236         test-vfprintf-posix.c, test-vprintf-posix.c,
39237         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
39238         test-xvasprintf.c: Likewise.
39239
39240 2007-05-28  Bruno Haible  <bruno@clisp.org>
39241
39242         * gnulib-tool (func_import): Remember the --with-tests command-line
39243         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
39244         Reported by Eric Blake.
39245
39246 2007-05-28  Bruno Haible  <bruno@clisp.org>
39247
39248         * modules/ftell-tests: New file.
39249         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
39250         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
39251
39252         * lib/ftell.c: New file.
39253         * modules/ftell: New file.
39254         * m4/ftell.m4: New file.
39255         * doc/functions/ftell.texi: Update.
39256         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
39257         REPLACE_FTELL.
39258         * lib/stdio_.h (rpl_ftell): New declaration.
39259         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
39260         REPLACE_FTELL.
39261
39262 2007-05-28  Eric Blake  <ebb9@byu.net>
39263
39264         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
39265
39266 2007-05-28  Bruno Haible  <bruno@clisp.org>
39267
39268         * modules/fseek-tests: New file.
39269         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
39270         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
39271
39272         * lib/fseek.c: New file.
39273         * modules/fseek: New file.
39274         * m4/fseek.m4: New file.
39275         * doc/functions/fseek.texi: Update.
39276         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
39277         REPLACE_FSEEK.
39278         * lib/stdio_.h (rpl_fseek): New declaration.
39279         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
39280         REPLACE_FSEEK.
39281
39282 2007-05-28  Bruno Haible  <bruno@clisp.org>
39283
39284         * lib/stdio_.h (fflush): More comments.
39285
39286 2007-05-28  Bruno Haible  <bruno@clisp.org>
39287
39288         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
39289         runtime test.
39290
39291 2007-05-28  Eric Blake  <ebb9@byu.net>
39292
39293         Improve lseek module.
39294         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
39295         * lib/unistd_.h (lseek): Scale back link warning message.
39296         * tests/test-lseek.c: Beef up test.
39297         * tests/test-lseek.sh: Exercise more facets of lseek.
39298         Reported by Bruno Haible.
39299
39300 2007-05-28  Bruno Haible  <bruno@clisp.org>
39301
39302         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
39303         to define.
39304
39305 2007-05-27  Bruno Haible  <bruno@clisp.org>
39306
39307         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
39308
39309 2007-05-27  Bruno Haible  <bruno@clisp.org>
39310
39311         * modules/openmp: New file.
39312         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
39313         Noah Misch.
39314
39315 2007-05-26  Bruno Haible  <bruno@clisp.org>
39316
39317         * modules/chdir-long (Depends-on): Add fchdir.
39318         * modules/chdir-safer (Depends-on): Likewise.
39319         * modules/fts (Depends-on): Likewise.
39320         * modules/fts-lgpl (Depends-on): Likewise.
39321         * modules/openat (Depends-on): Likewise.
39322         * modules/savewd (Depends-on): Likewise.
39323
39324 2007-05-24  Eric Blake  <ebb9@byu.net>
39325
39326         Fix lseek on mingw.
39327         * modules/lseek: New module.
39328         * m4/lseek.m4: New file.
39329         * lib/lseek.c: New file.
39330         * modules/lseek-tests: New file.
39331         * tests/test-lseek.c: New file.
39332         * tests/test-lseek.sh: New file.
39333         * MODULES.html.sh: Document lseek module.
39334         * modules/fflush (Depends-on): Add lseek, fseeko.
39335         * modules/fseeko (Depends-on): Likewise.
39336         * modules/ftello (Depends-on): Likewise.
39337         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
39338         broken.
39339         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
39340         broken.
39341         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
39342         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
39343         * lib/ftello.c (rpl_ftello): Likewise.
39344         * tests/test-fseeko.c (main): Test this.
39345         * tests/test-fseeko.sh: Likewise.
39346         * tests/test-ftello.c (main): Likewise.
39347         * tests/test-ftello.sh: Likewise.
39348         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
39349         implies replacing fseek.
39350         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
39351         HAVE_FTELLO.
39352         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
39353         * modules/unistd (Makefile.am): Likewise.
39354         * lib/unistd_.h (lseek): Declare a replacement.
39355         * doc/functions/lseek.texi (lseek): Document this fix.
39356         * doc/functions/fseek.texi (fseek): Likewise.
39357         * doc/functions/ftell.texi (ftell): Likewise.
39358
39359 2007-05-24  Bruno Haible  <bruno@clisp.org>
39360
39361         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
39362         in the printed representation of a NaN.
39363         * tests/test-vasprintf-posix.c (test_function): Likewise.
39364         * tests/test-snprintf-posix.h (test_function): Likewise.
39365         * tests/test-sprintf-posix.h (test_function): Likewise.
39366         Reported by Eric Blake.
39367
39368 2007-05-23  Eric Blake  <ebb9@byu.net>
39369
39370         Fix fseeko/ftello on cygwin 1.5.24.
39371         * doc/functions/fseeko.texi (fseeko): Document the fix.
39372         * doc/functions/ftello.texi (ftello): Document the fix.
39373         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
39374         * doc/functions/stdout.text (stdout): New file.
39375         * doc/functions/stderr.text (stderr): New file.
39376         * doc/gnulib.texi (Function Substitutes): Use new files.
39377         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
39378         prior to 1.7.0.
39379         * tests/test-ftello.c (main): Likewise for ftello.
39380         * tests/test-fseeko.sh: New file.
39381         * tests/test-ftello.sh: New file.
39382         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
39383         with seekable stdin.
39384         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
39385         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
39386         (gl_REPLACE_FSEEKO): New macro.
39387         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
39388         * modules/fseeko (Files): Distribute fseeko.c.
39389         * modules/ftello (Files): Distribute ftello.c.
39390         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
39391         mode.
39392         * lib/ftello.c (rpl_ftello): New file.
39393         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
39394         fseeko, ftello.
39395         (gl_STDIN_LARGE_OFFSET): New macro.
39396         * modules/stdio (Makefile.am): Perform the replacement.
39397         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
39398
39399 2007-05-23  Bruno Haible  <bruno@clisp.org>
39400
39401         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
39402         GNULIB_POSIXCHECK is defined.
39403
39404 2007-05-21  Bruno Haible  <bruno@clisp.org>
39405
39406         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
39407         Check also the output for NaN arguments. When cross-compiling, guess
39408         no on IRIX.
39409         * lib/vasnprintf.c: Update comments.
39410         * tests/test-vasnprintf-posix.c (strisnan): New function.
39411         (test_function): Use it.
39412         * tests/test-vasprintf-posix.c (strisnan): New function.
39413         (test_function): Use it.
39414         * tests/test-snprintf-posix.h (strisnan): New function.
39415         (test_function): Use it.
39416         * tests/test-sprintf-posix.h (strisnan): New function.
39417         (test_function): Use it.
39418         Reported by Eric Blake.
39419
39420 2007-05-20  Bruno Haible  <bruno@clisp.org>
39421
39422         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
39423         numbers that fails on BeOS.
39424         * doc/functions/frexpl.texi: Update.
39425
39426 2007-05-20  Jim Meyering  <jim@meyering.net>
39427
39428         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
39429         forced upon us by glibc-2.6.
39430
39431 2007-05-20  Bruno Haible  <bruno@clisp.org>
39432
39433         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
39434         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
39435         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
39436         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
39437         NEED_PRINTF_INFINITE.
39438         (is_infinitel): New function.
39439         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
39440         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
39441         gl_PREREQ_VASNPRINTF_INFINITE.
39442         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
39443         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39444         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
39445         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
39446         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
39447         gl_PREREQ_VASNPRINTF_INFINITE.
39448         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39449         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39450         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39451         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39452         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39453         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39454         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39455         * doc/functions/fprintf.texi: Update.
39456         * doc/functions/printf.texi: Update.
39457         * doc/functions/snprintf.texi: Update.
39458         * doc/functions/sprintf.texi: Update.
39459         * doc/functions/vfprintf.texi: Update.
39460         * doc/functions/vprintf.texi: Update.
39461         * doc/functions/vsnprintf.texi: Update.
39462         * doc/functions/vsprintf.texi: Update.
39463
39464 2007-05-20  Bruno Haible  <bruno@clisp.org>
39465
39466         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
39467         was not found in libc.
39468         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
39469
39470 2007-05-20  Bruno Haible  <bruno@clisp.org>
39471
39472         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
39473         printed as "-nan" instead of "nan".
39474         * tests/test-vasprintf-posix.c (test_function): Likewise.
39475         * tests/test-snprintf-posix.h (test_function): Likewise.
39476         * tests/test-sprintf-posix.h (test_function): Likewise.
39477         Needed for HP-UX 11.
39478
39479 2007-05-20  Jim Meyering  <jim@meyering.net>
39480
39481         Fix buggy test for the fchownat-deref bug.
39482         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
39483         symlink required for the run-test.  Without it, this test would
39484         always declare that fchownat doesn't work, and client code would
39485         unnecessarily use the replacement function with fixed libc.
39486         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
39487         Reported by Greg Schafer.
39488
39489 2007-05-19  Bruno Haible  <bruno@clisp.org>
39490
39491         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
39492         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
39493         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
39494         Needed for IRIX 6.5 and Solaris 2.5.1.
39495
39496 2007-05-19  Bruno Haible  <bruno@clisp.org>
39497
39498         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
39499         (test_function): Skip tests involving -0.0 on platforms where
39500         -0.0 = 0.0.
39501         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
39502         (test_function): Skip tests involving -0.0 on platforms where
39503         -0.0 = 0.0.
39504         * tests/test-snprintf-posix.h (have_minus_zero): New function.
39505         (test_function): Skip tests involving -0.0 on platforms where
39506         -0.0 = 0.0.
39507         * tests/test-sprintf-posix.h (have_minus_zero): New function.
39508         (test_function): Skip tests involving -0.0 on platforms where
39509         -0.0 = 0.0.
39510         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
39511         tests.
39512         * tests/test-printf-posix.h (test_function): Likewise.
39513         * tests/test-printf-posix.output: Remove all -0.0 related results.
39514         Needed for IRIX 6.5.
39515
39516 2007-05-19  Bruno Haible  <bruno@clisp.org>
39517
39518         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
39519         printed as "nan0x7fffffff" instead of "nan".
39520         * tests/test-vasprintf-posix.c (test_function): Likewise.
39521         * tests/test-snprintf-posix.h (test_function): Likewise.
39522         * tests/test-sprintf-posix.h (test_function): Likewise.
39523         * tests/test-fprintf-posix.h (NaN): Remove macro.
39524         (test_function): Remove all NaN related tests.
39525         * tests/test-printf-posix.h (NaN): Remove macro.
39526         (test_function): Remove all NaN related tests.
39527         * tests/test-printf-posix.output: Remove all NaN related results.
39528         Needed for IRIX 6.5.
39529
39530 2007-05-19  Bruno Haible  <bruno@clisp.org>
39531
39532         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
39533         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
39534
39535 2007-05-19  Bruno Haible  <bruno@clisp.org>
39536
39537         * lib/float_.h: New file.
39538         * m4/float_h.m4: New file.
39539         * modules/float: New file.
39540         * modules/isnanl (Dependencies): Add float.
39541         * modules/isnanl-nolibm (Dependencies): Likewise.
39542         * modules/mathl (Dependencies): Likewise.
39543         * modules/printf-frexpl (Dependencies): Likewise.
39544         * modules/signbit (Dependencies): Likewise.
39545         * modules/vasnprintf (Dependencies): Likewise.
39546         * doc/headers/float.texi: Update.
39547
39548 2007-05-19  Jim Meyering  <jim@meyering.net>
39549
39550         * lib/utimens.c (gl_futimens): Rename from futimens,
39551         now that glibc-2.6 declares futimens.
39552         * lib/utimens.h: Likewise.
39553
39554 2007-05-19  Bruno Haible  <bruno@clisp.org>
39555
39556         Avoid test failures on mingw.
39557         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
39558         * tests/test-printf-posix.sh: Likewise.
39559         * tests/test-vfprintf-posix.sh: Likewise.
39560         * tests/test-vprintf-posix.sh: Likewise.
39561
39562 2007-05-19  Bruno Haible  <bruno@clisp.org>
39563
39564         Fix *printf result for NaN, Inf, -0.0 on mingw.
39565         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
39566         * lib/vasnprintf.c: Include math.h and isnan.h.
39567         (is_infinite_or_zero): New function.
39568         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
39569         values in the %f, %F, %e, %E, %g, %G directives.
39570         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
39571         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39572         gl_PRINTF_INFINITE and test its result. Invoke
39573         gl_PREREQ_VASNPRINTF_INFINITE.
39574         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39575         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39576         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39577         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39578         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39579         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39580         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39581         * doc/functions/fprintf.texi: Update.
39582         * doc/functions/printf.texi: Update.
39583         * doc/functions/snprintf.texi: Update.
39584         * doc/functions/sprintf.texi: Update.
39585         * doc/functions/vfprintf.texi: Update.
39586         * doc/functions/vprintf.texi: Update.
39587         * doc/functions/vsnprintf.texi: Update.
39588         * doc/functions/vsprintf.texi: Update.
39589
39590 2007-05-19  Bruno Haible  <bruno@clisp.org>
39591
39592         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
39593         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
39594         Instead of multiplying with 10^k, set extra_zeroes to k.
39595         (scale10_round_long_double): Remove function.
39596
39597 2007-05-18  Bruno Haible  <bruno@clisp.org>
39598
39599         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
39600         introduced on 2007-05-06.
39601
39602 2007-05-18  Bruno Haible  <bruno@clisp.org>
39603
39604         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
39605         %g directives.
39606         * tests/test-vasprintf-posix.c (test_function): Likewise.
39607         * tests/test-snprintf-posix.h (test_function): Likewise.
39608         * tests/test-sprintf-posix.h (test_function): Likewise.
39609
39610 2007-05-18  Bruno Haible  <bruno@clisp.org>
39611
39612         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
39613         (strmatch): New function.
39614         (test_function): Test the %f directive on numbers of various exponents.
39615         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
39616         (strmatch): New function.
39617         (test_function): Test the %f directive on numbers of various exponents.
39618         * tests/test-snprintf-posix.h (strmatch): New function.
39619         (test_function): Test the %f directive on numbers of various exponents.
39620         * tests/test-sprintf-posix.h (strmatch): New function.
39621         (test_function): Test the %f directive on numbers of various exponents.
39622         * tests/test-snprintf-posix.c (SIZEOF): New macro.
39623         * tests/test-sprintf-posix.c (SIZEOF): New macro.
39624         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
39625         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
39626
39627 2007-05-18  Bruno Haible  <bruno@clisp.org>
39628
39629         Add support for 'long double' number output.
39630         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
39631         * lib/vasnprintf.c: Include math.h and float+.h.
39632         (mp_limb_t): New type.
39633         (GMP_LIMB_BITS): New macro.
39634         (mp_twolimb_t): New type.
39635         (GMP_TWOLIMB_BITS): New macro.
39636         (mpn_t): New type.
39637         (multiply, divide, convert_to_decimal, decode_long_double,
39638         scale10_round_long_double, scale10_round_decimal_long_double,
39639         floorlog10l): New functions.
39640         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
39641         for the %f, %F, %e, %E, %g, %G directives.
39642         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
39643         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39644         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
39645         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
39646         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39647         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39648         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39649         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39650         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39651         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39652         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39653         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
39654         * modules/snprintf-posix (Depends-on): Likewise.
39655         * modules/sprintf-posix (Depends-on): Likewise.
39656         * modules/vasnprintf-posix (Depends-on): Likewise.
39657         * modules/vasprintf-posix (Depends-on): Likewise.
39658         * modules/vfprintf-posix (Depends-on): Likewise.
39659         * modules/vsnprintf-posix (Depends-on): Likewise.
39660         * modules/vsprintf-posix (Depends-on): Likewise.
39661         * modules/vasnprintf (Files): Add lib/float+.h.
39662         * doc/functions/fprintf.texi: Update.
39663         * doc/functions/printf.texi: Update.
39664         * doc/functions/snprintf.texi: Update.
39665         * doc/functions/sprintf.texi: Update.
39666         * doc/functions/vfprintf.texi: Update.
39667         * doc/functions/vprintf.texi: Update.
39668         * doc/functions/vsnprintf.texi: Update.
39669         * doc/functions/vsprintf.texi: Update.
39670
39671 2007-05-18  Bruno Haible  <bruno@clisp.org>
39672
39673         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
39674
39675 2007-05-18  Bruno Haible  <bruno@clisp.org>
39676
39677         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
39678         for printing 64-bit integers. Needed for mingw.
39679
39680 2007-05-18  Bruno Haible  <bruno@clisp.org>
39681
39682         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
39683         gl_FUNC_FREXPL_WORKS.
39684         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
39685
39686 2007-05-18  Bruno Haible  <bruno@clisp.org>
39687
39688         * modules/frexpl-nolibm-tests: New file.
39689
39690         * modules/frexpl-nolibm: New file.
39691         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
39692
39693 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
39694
39695         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
39696         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
39697         GCC 4.2, which otherwise issues a lot of warnings.
39698         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
39699         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
39700         Likewise.
39701         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
39702         * modules/iconv_open (iconv.h): Likewise.
39703         * modules/locale (locale.h): Likewise.
39704         * modules/netinet_in (netinet/in.h): Likewise.
39705         * modules/sys_select (sys_select.h): Likewise.
39706         * modules/sys_socket (sys/socket.h): Likewise.
39707         * modules/sys_stat (sys/stat.h): Likewise.
39708         * modules/sysexits (sysexits.h): Likewise.
39709         * modules/unistd (unistd.h): Likewise.
39710
39711 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39712
39713         * modules/closein-tests (Makefile.am): Distribute
39714         `test-closein.sh'.
39715
39716 2007-05-17  Bruno Haible  <bruno@clisp.org>
39717
39718         * tests/test-printf-posix.output: Renamed from
39719         tests/test-fprintf-posix.out.
39720         * modules/fprintf-posix-tests: Update.
39721         * modules/printf-posix-tests: Update.
39722         * modules/vfprintf-posix-tests: Update.
39723         * modules/vprintf-posix-tests: Update.
39724         * tests/test-fprintf-posix.sh: Update.
39725         * tests/test-printf-posix.sh: Update.
39726         * tests/test-vfprintf-posix.sh: Update.
39727         * tests/test-vprintf-posix.sh: Update.
39728         Reported by Ralf Wildenhues.
39729
39730 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
39731
39732         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
39733         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
39734         GCC 4.2, which otherwise issues a lot of warnings.
39735         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
39736         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
39737         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
39738         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
39739         it should no longer be needed.
39740         * lib/string_.h: Likewise.
39741         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
39742         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
39743         * modules/inttypes (inttypes.h): Likewise.
39744         * modules/math (math.h): Likewise.
39745         * modules/search (search.h): Likewise.
39746         * modules/signal (signal.h): Likewise.
39747         * modules/stdint (stdint.h): Likewise.
39748         * modules/stdio (stdio.h): Likewise.
39749         * modules/stdlib (stdlib.h): Likewise.
39750         * modules/string (string.h): Likewise.
39751         * modules/sys_time (sys/time.h): Likewise.
39752         * modules/time (time.h): Likewise.
39753         * modules/wchar (wchar.h): Likewise.
39754         * modules/wctype (wtype.h): Likewise.
39755
39756 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
39757
39758         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
39759
39760 2007-05-13  Bruno Haible  <bruno@clisp.org>
39761
39762         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
39763         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
39764         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
39765         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
39766         (gl_PREREQ_STRTOK_R): Don't require it here.
39767
39768 2007-05-13  Bruno Haible  <bruno@clisp.org>
39769
39770         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
39771         when used in C++ mode.
39772
39773 2007-05-12  Bruno Haible  <bruno@clisp.org>
39774
39775         * lib/linebuffer.h: Tweak doc.
39776         * lib/linebuffer.c: Likewise.
39777
39778 2007-05-12  James Youngman  <jay@gnu.org>
39779
39780         * lib/linebuffer.c (readlinebuffer_delim): New function,
39781         like readlinebuffer, but use a caller-specified delimiter.
39782         (readlinebuffer): Just call readlinebuffer_delim with '\n'
39783         as the delimiter.
39784         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
39785
39786 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
39787
39788         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
39789         * modules/openat (Files): Remove openat-die.c.
39790         (Depends-on): Add openat-die.
39791         * modules/openat-die: New module.
39792
39793 2007-05-06  Bruno Haible  <bruno@clisp.org>
39794
39795         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
39796         Update with info about Cygwin.
39797         * doc/functions/fprintf.texi: Update.
39798         * doc/functions/printf.texi: Update.
39799         * doc/functions/snprintf.texi: Update.
39800         * doc/functions/sprintf.texi: Update.
39801         * doc/functions/vfprintf.texi: Update.
39802         * doc/functions/vprintf.texi: Update.
39803         * doc/functions/vsnprintf.texi: Update.
39804         * doc/functions/vsprintf.texi: Update.
39805         Reported by Eric Blake.
39806
39807 2007-05-06  Bruno Haible  <bruno@clisp.org>
39808
39809         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
39810         padding ourselves for the floating-point directives.
39811         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
39812         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
39813         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39814         gl_PRINTF_FLAG_ZERO and test its result. Invoke
39815         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
39816         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39817         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
39818         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39819         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39820         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39821         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39822         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39823         * tests/test-snprintf-posix.h (test_function): Also check the width
39824         and some flags in the %f directive.
39825         * tests/test-sprintf-posix.h (test_function): Likewise.
39826         * tests/test-vasnprintf-posix.c (test_function): Likewise.
39827         * tests/test-vasprintf-posix.c (test_function): Likewise.
39828         * doc/functions/fprintf.texi: Update.
39829         * doc/functions/printf.texi: Update.
39830         * doc/functions/snprintf.texi: Update.
39831         * doc/functions/sprintf.texi: Update.
39832         * doc/functions/vfprintf.texi: Update.
39833         * doc/functions/vprintf.texi: Update.
39834         * doc/functions/vsnprintf.texi: Update.
39835         * doc/functions/vsprintf.texi: Update.
39836
39837 2007-05-06  Bruno Haible  <bruno@clisp.org>
39838
39839         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
39840         pass the ' flag character to sprintf or snprintf.
39841         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
39842         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
39843         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39844         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
39845         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
39846         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39847         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
39848         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39849         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39850         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39851         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39852         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39853         * tests/test-snprintf-posix.h (test_function): Also check the grouping
39854         flag.
39855         * tests/test-sprintf-posix.h (test_function): Likewise.
39856         * tests/test-vasnprintf-posix.c (test_function): Likewise.
39857         * tests/test-vasprintf-posix.c (test_function): Likewise.
39858         * doc/functions/fprintf.texi: Update.
39859         * doc/functions/printf.texi: Update.
39860         * doc/functions/snprintf.texi: Update.
39861         * doc/functions/sprintf.texi: Update.
39862         * doc/functions/vfprintf.texi: Update.
39863         * doc/functions/vprintf.texi: Update.
39864         * doc/functions/vsnprintf.texi: Update.
39865         * doc/functions/vsprintf.texi: Update.
39866
39867 2007-05-01  Bruno Haible  <bruno@clisp.org>
39868
39869         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
39870
39871 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
39872
39873         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
39874         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
39875
39876 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
39877
39878         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
39879         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
39880         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
39881
39882 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
39883
39884         * lib/argp-help.c (struct hol_entry): New member `ord'.
39885         (HOL_ENTRY_PTRCMP): Use ord for comparison
39886         (hol_sort): Initialize ord.
39887
39888 2007-05-01  Bruno Haible  <bruno@clisp.org>
39889
39890         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
39891         Reported by Eric Blake.
39892         * doc/gnulib.texi (Function Substitutes): Update.
39893
39894 2007-05-01  Bruno Haible  <bruno@clisp.org>
39895
39896         * doc/functions.texi: Remove file, now redundant through
39897         doc/functions/*.texi.
39898
39899 2007-05-01  Bruno Haible  <bruno@clisp.org>
39900
39901         * modules/argp (Depends-on): Add sleep.
39902
39903 2007-05-01  Bruno Haible  <bruno@clisp.org>
39904
39905         * modules/sleep-tests: New file.
39906         * tests/test-sleep.c: New file.
39907
39908         * modules/sleep: New file.
39909         * lib/sleep.c: New file.
39910         * m4/sleep.m4: New file.
39911         * lib/unistd_.h (sleep): New declaration.
39912         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
39913         HAVE_SLEEP.
39914         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
39915         * doc/functions/sleep.texi: Document the sleep module.
39916
39917 2007-05-01  Bruno Haible  <bruno@clisp.org>
39918
39919         * lib/sigprocmask.h: Remove file.
39920         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
39921         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
39922         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
39923         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
39924         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
39925         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
39926         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
39927         HAVE_SIGSET_T as a shell variable.
39928         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
39929         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
39930         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
39931         (Depends-on): Add signal. Remove verify.
39932         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
39933         (Include): Mention <signal.h> instead of sigprocmask.h.
39934         * NEWS: Mention the change.
39935         * lib/fatal-signal.c: Don't include sigprocmask.h.
39936
39937 2007-05-01  Bruno Haible  <bruno@clisp.org>
39938
39939         * modules/signal: New file.
39940         * lib/signal_.h: New file.
39941         * m4/signal_h.m4: New file.
39942
39943 2007-05-01  Bruno Haible  <bruno@clisp.org>
39944
39945         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
39946         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
39947         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
39948         HAVE_WCTYPE_CTMP_BUG into wctype.h.
39949
39950 2007-05-01  Bruno Haible  <bruno@clisp.org>
39951
39952         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
39953         configure time.
39954         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
39955         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
39956         * modules/sys_stat (Makefile.am): Substitute their values into
39957         sys/stat.h.
39958
39959 2007-05-01  Bruno Haible  <bruno@clisp.org>
39960
39961         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
39962         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
39963         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
39964
39965 2007-05-01  Bruno Haible  <bruno@clisp.org>
39966
39967         * doc/header/assert.texi: Undo last change: don't mention the gnulib
39968         'assert' module here.
39969
39970 2007-05-01  Bruno Haible  <bruno@clisp.org>
39971
39972         * doc/functions/*.texi: New files.
39973         * doc/functions/google-ranking.txt: New file.
39974         * doc/gnulib.texi (Function Substitutes): New chapter.
39975         (ctime, inet_ntoa): Remove sections.
39976         * doc/ctime.texi: Remove file.
39977         * doc/inet_ntoa.texi: Remove file.
39978         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
39979         dependencies.
39980         (%.info): New rule, specifying a --reference-limit.
39981
39982 2007-05-01  Bruno Haible  <bruno@clisp.org>
39983
39984         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
39985
39986 2007-05-01  Bruno Haible  <bruno@clisp.org>
39987
39988         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
39989         the portability of 'mkdir' to mingw systems.
39990
39991 2007-05-01  Bruno Haible  <bruno@clisp.org>
39992
39993         * doc/headers/google-ranking.txt: New file.
39994
39995 2007-04-30  Eric Blake  <ebb9@byu.net>
39996
39997         Prefer fseeko to fseek.
39998         * modules/getpass (Depends-on): Add fseeko.
39999         * lib/getpass.c (getpass): Use fseeko, not fseek.
40000
40001 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
40002
40003         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
40004         assumes the sorting is stable, while most qsort implementations
40005         are not.  Use argument addresses to ensure they never compare as
40006         equal.
40007
40008         * tests/test-argp-2.sh (usage-indent test): Fix output
40009         (func_compare): Restore diff options
40010         * tests/test-argp.c: Restore #include "progname.h"
40011
40012 2007-04-29  Bruno Haible  <bruno@clisp.org>
40013
40014         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
40015         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
40016         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
40017         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40018         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
40019         (configure.ac): Define CHECK_SNPRINTF_POSIX.
40020         (TESTS, check_PROGRAMS): Add test-snprintf.
40021         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
40022         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
40023         (TESTS, check_PROGRAMS): Add test-vsnprintf.
40024         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
40025         assertions that fail on HP-UX, OSF/1, or IRIX.
40026         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
40027
40028 2007-04-29  Bruno Haible  <bruno@clisp.org>
40029
40030         * MODULES.html.sh (posix_functions): Remove 'contents'.
40031
40032 2007-04-29  Karl Berry  <karl@gnu.org>
40033
40034         * config/srclist.txt (gendocs_template_min): new entry.
40035
40036 2007-04-29  Bruno Haible  <bruno@clisp.org>
40037
40038         Work around fpurge bug on BSD systems.
40039         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
40040         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
40041         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
40042         fpurge to rpl_fpurge if the system already has this function.
40043         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
40044         the case where the system already has this function. Correct invariants
40045         on BSD systems.
40046         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
40047         BSD systems.
40048
40049 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
40050
40051         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
40052         proposed by Sven Verdoolaege.
40053
40054         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
40055         options.
40056         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
40057         (usage and help tests): Update
40058
40059 2007-04-29  Bruno Haible  <bruno@clisp.org>
40060
40061         * tests/test-fflush.c (main): Use a file of size 17, not 10.
40062         Print more information in case of failure. Disable a test on BeOS.
40063
40064 2007-04-29  Bruno Haible  <bruno@clisp.org>
40065
40066         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
40067         This helps debugging on systems on which no gdb is available.
40068
40069 2007-04-29  Bruno Haible  <bruno@clisp.org>
40070
40071         * lib/freading.h: Improve comments.
40072         * lib/fwriting.h: Likewise.
40073         * tests/test-freading.c (main): Don't check freading immediately after
40074         repositioning. Needed for glibc.
40075
40076 2007-04-29  Bruno Haible  <bruno@clisp.org>
40077
40078         * lib/freading.c (freading): Trivial simplification.
40079
40080 2007-04-28  Bruno Haible  <bruno@clisp.org>
40081
40082         * tests/test-fwriting.c (main): Also test the interaction between
40083         fflush and fwriting.
40084         * modules/fwriting-tests (Depends-on): Add fflush.
40085
40086         * tests/test-freading.c (main): Also test the interaction between
40087         fflush and freading.
40088         * modules/freading-tests (Depends-on): Add fflush.
40089
40090 2007-04-28  Bruno Haible  <bruno@clisp.org>
40091
40092         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
40093         fseeko and ftello.
40094         Suggested by Eric Blake.
40095
40096 2007-04-28  Jim Meyering  <jim@meyering.net>
40097
40098         Avoid false-negative in gl_STDINT_H's C99 conformance test.
40099         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
40100         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
40101
40102 2007-04-27  Eric Blake  <ebb9@byu.net>
40103
40104         * doc/headers/assert.texi (assert.h): Document assert module use.
40105
40106 2007-04-27  Bruno Haible  <bruno@clisp.org>
40107
40108         * doc/headers/*.texi: New files.
40109         * doc/gnulib.texi (Header File Substitutes): New chapter.
40110         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
40111         dependencies.
40112         (standards.info ,standards.html, standards.dvi): Update dependencies.
40113         (mostlyclean, clean): New targets.
40114
40115 2007-04-27  Bruno Haible  <bruno@clisp.org>
40116
40117         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
40118         * modules/sysexits (Files, Makefile.am): Update.
40119
40120         * lib/sys_socket_.h: Renamed from lib/socket_.h.
40121         * modules/sys_socket (Files, Makefile.am): Update.
40122
40123         * lib/sys_stat_.h: Renamed from lib/stat_.h.
40124         * modules/sys_stat (Files, Makefile.am): Update.
40125
40126 2007-04-27  Eric Blake  <ebb9@byu.net>
40127
40128         * lib/freading.h: Improve comments.
40129         * lib/fwriting.h: Likewise.
40130         * lib/fflush.c: Likewise.
40131
40132         Fix closein for mingw.
40133         * modules/closein-tests: Add tests for closein.
40134         * tests/test-closein.c: New file.
40135         * tests/test-closein.sh: Likewise.
40136         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
40137         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
40138
40139 2007-04-27  Bruno Haible  <bruno@clisp.org>
40140
40141         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
40142         version is < 6.
40143         * lib/math_.h [__DECC]: Likewise.
40144         * lib/stdio_.h [__DECC]: Likewise.
40145         * lib/stdlib_.h [__DECC]: Likewise.
40146         * lib/string_.h [__DECC]: Likewise.
40147         * lib/time_.h [__DECC]: Likewise.
40148         * lib/wchar_.h [__DECC]: Likewise.
40149         * lib/wctype_.h [__DECC]: Likewise.
40150
40151 2007-04-27  Bruno Haible  <bruno@clisp.org>
40152
40153         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
40154
40155 2007-04-27  Bruno Haible  <bruno@clisp.org>
40156
40157         * lib/fflush.c: Add comments.
40158         * modules/fpurge-tests (Depends-on): Add fflush.
40159         * modules/freadable-tests (Depends-on): Likewise.
40160         * modules/fwritable-tests (Depends-on): Likewise.
40161
40162 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
40163
40164         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
40165         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
40166         Report by Bruno Haible <bruno@clisp.org>.
40167
40168 2007-04-26  Eric Blake  <ebb9@byu.net>
40169
40170         Fix fflush on mingw.
40171         * modules/fflush (Depends-on): Add freading.
40172         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
40173         but unread data.
40174
40175 2007-04-26  Eric Blake  <ebb9@byu.net>
40176         and Bruno Haible  <bruno@clisp.org>
40177
40178         Implement freading and fwriting.
40179         * lib/freading.c: New file.
40180         * lib/freading.h: Likewise.
40181         * m4/freading.m4: Likewise.
40182         * modules/freading: Likewise.
40183         * modules/freading-tests: Likewise.
40184         * tests/test-freading.c: Likewise.
40185         * lib/fwriting.c: New file.
40186         * lib/fwriting.h: Likewise.
40187         * m4/fwriting.m4: Likewise.
40188         * modules/fwriting: Likewise.
40189         * modules/fwriting-tests: Likewise.
40190         * tests/test-fwriting.c: Likewise.
40191         * MODULES.html.sh (File stream based Input/Output): Mention them.
40192
40193 2007-04-26  Bruno Haible  <bruno@clisp.org>
40194
40195         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
40196         'long' when we assume it.
40197         Suggested by Eric Blake.
40198
40199 2007-04-26  Bruno Haible  <bruno@clisp.org>
40200
40201         Ensure fseeko, ftello are declared on glibc systems.
40202         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
40203         * modules/fseeko (configure.ac-early): Likewise.
40204         * modules/ftello (configure.ac-early): Likewise.
40205         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
40206         AC_FUNC_FSEEKO for this.
40207         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
40208         (gl_CHECK_FSEEKO): Remove macro.
40209
40210 2007-04-26  Bruno Haible  <bruno@clisp.org>
40211
40212         * tests/test-fflush.c (main): Also check the ftell result after
40213         fflush and fseek/fseeko.
40214         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
40215         file descriptor position cache in the stream.
40216         * lib/fseeko.c (rpl_fseeko): Likewise.
40217
40218 2007-04-26  Bruno Haible  <bruno@clisp.org>
40219
40220         * modules/fflush-tests (Depends-on): Add fseeko.
40221
40222 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
40223             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40224
40225         * lib/argz_.h: ensure error_t definition is obtained in same
40226         mechanism system argz.h would have.
40227         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
40228         argz facilities are known bad.  Err on the side of caution if
40229         cross-compiling.
40230
40231 2007-04-25  Eric Blake  <ebb9@byu.net>
40232
40233         * lib/fpurge.c (includes): Use stdlib.h for free.
40234         * tests/test-fflush.c (main): Also test fflush-fseeko.
40235
40236 2007-04-25  Bruno Haible  <bruno@clisp.org>
40237
40238         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
40239         * lib/fseeko.c: New file.
40240         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
40241         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
40242         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
40243         gl_FUNC_FSEEKO.
40244         (gl_FUNC_FSEEKO): Invoke it.
40245         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
40246         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
40247         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
40248
40249 2007-04-25  Bruno Haible  <bruno@clisp.org>
40250
40251         * modules/fflush (Depends-on): Add ftello.
40252
40253 2007-04-25  Bruno Haible  <bruno@clisp.org>
40254
40255         * modules/ftello-tests: New file.
40256         * tests/test-ftello.c: New file.
40257
40258         * modules/ftello: New file.
40259         * m4/ftello.m4: New file.
40260         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
40261         HAVE_FTELLO.
40262         * lib/stdio_.h (ftello): New declaration.
40263         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
40264         HAVE_FTELLO.
40265
40266 2007-04-25  Bruno Haible  <bruno@clisp.org>
40267
40268         * modules/fseeko-tests: New file.
40269         * tests/test-fseeko.c: New file.
40270
40271         * modules/fseeko: New file.
40272         * m4/fseeko.m4: New file.
40273         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
40274         HAVE_FSEEKO.
40275         * lib/stdio_.h (fseeko): New declaration.
40276         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
40277         HAVE_FSEEKO.
40278
40279 2007-04-25  Bruno Haible  <bruno@clisp.org>
40280
40281         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
40282
40283 2007-04-25  Bruno Haible  <bruno@clisp.org>
40284
40285         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
40286         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
40287         * tests/test-unistd.c: Likewise.
40288         * tests/test-fcntl.c: Likewise.
40289
40290 2007-04-23  Eric Blake  <ebb9@byu.net>
40291
40292         * lib/fflush.c: Fix missing include.
40293         Reported by Bruno Haible.
40294
40295 2007-04-23  Bruno Haible  <bruno@clisp.org>
40296
40297         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
40298         Reported by Eric Blake.
40299
40300 2007-04-23  Bruno Haible  <bruno@clisp.org>
40301
40302         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
40303
40304 2007-04-23  Bruno Haible  <bruno@clisp.org>
40305
40306         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
40307
40308 2007-04-23  Bruno Haible  <bruno@clisp.org>
40309
40310         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
40311         Needed on HP-UX 11.
40312
40313 2007-04-16  Eric Blake  <ebb9@byu.net>
40314
40315         Make fflush rely on fpurge.
40316         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
40317         open coding all variants.
40318         * modules/fflush (Depends-on): Add fpurge and unistd.
40319         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
40320         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
40321
40322         Fix --with-tests compilation on cygwin.
40323         * modules/argmatch-tests (Makefile.am): List gnulib library first
40324         in LDADD.
40325         * modules/argp-tests (Makefile.am): Likewise.
40326         * modules/array-list-tests (Makefile.am): Likewise.
40327         * modules/array-oset-tests (Makefile.am): Likewise.
40328         * modules/avltree-list-tests (Makefile.am): Likewise.
40329         * modules/avltree-oset-tests (Makefile.am): Likewise.
40330         * modules/avltreehash-list-tests (Makefile.am): Likewise.
40331         * modules/carray-list-tests (Makefile.am): Likewise.
40332         * modules/dirname-tests (Makefile.am): Likewise.
40333         * modules/frexp-tests (Makefile.am): Likewise.
40334         * modules/isnanl-tests (Makefile.am): Likewise.
40335         * modules/linked-list-tests (Makefile.am): Likewise.
40336         * modules/linkedhash-list-tests (Makefile.am): Likewise.
40337         * modules/lock-tests (Makefile.am): Likewise.
40338         * modules/rbtree-list-tests (Makefile.am): Likewise.
40339         * modules/rbtree-oset-tests (Makefile.am): Likewise.
40340         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
40341         * modules/tls-tests (Makefile.am): Likewise.
40342         * modules/tsearch-tests (Makefile.am): Likewise.
40343         * modules/xvasprintf-tests (Makefile.am): Likewise.
40344
40345         Fix fpurge for cygwin.
40346         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
40347         value.
40348         * modules/fpurge-tests (Depends-on): Clean up trash.
40349
40350 2007-04-16  Simon Josefsson  <simon@josefsson.org>
40351
40352         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
40353
40354         * m4/autobuild.m4: Re-indent.
40355
40356 2007-04-13  Bruno Haible  <bruno@clisp.org>
40357
40358         * modules/fpurge-tests: New file.
40359         * tests/test-fpurge.c: New file.
40360
40361         * modules/fpurge: New file.
40362         * lib/fpurge.h: New file.
40363         * lib/fpurge.c: New file.
40364         * m4/fpurge.m4: New file.
40365
40366 2007-04-13  Bruno Haible  <bruno@clisp.org>
40367
40368         * modules/fbufmode-tests: New file.
40369         * tests/test-fbufmode.c: New file.
40370
40371         * modules/fbufmode: New file.
40372         * lib/fbufmode.h: New file.
40373         * lib/fbufmode.c: New file.
40374         * m4/fbufmode.m4: New file.
40375
40376 2007-04-13  Bruno Haible  <bruno@clisp.org>
40377
40378         * modules/fwritable-tests: New file.
40379         * tests/test-fwritable.c: New file.
40380
40381         * modules/fwritable: New file.
40382         * lib/fwritable.h: New file.
40383         * lib/fwritable.c: New file.
40384         * m4/fwritable.m4: New file.
40385
40386 2007-04-13  Bruno Haible  <bruno@clisp.org>
40387
40388         * modules/freadable-tests: New file.
40389         * tests/test-freadable.c: New file.
40390
40391         * modules/freadable: New file.
40392         * lib/freadable.h: New file.
40393         * lib/freadable.c: New file.
40394         * m4/freadable.m4: New file.
40395
40396 2007-04-13  Bruno Haible  <bruno@clisp.org>
40397
40398         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
40399         MOSTLYCLEANFILES.
40400
40401 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
40402
40403         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
40404         gzip bootstrap.conf to avoid dragging in i18n machinery.
40405         (gnulib_tool_option): Use it.
40406
40407 2007-04-13  Bruno Haible  <bruno@clisp.org>
40408
40409         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
40410         %F directives.
40411         * tests/test-vasprintf-posix.c (test_function): Likewise.
40412         * tests/test-snprintf-posix.h (test_function): Likewise.
40413         * tests/test-sprintf-posix.h (test_function): Likewise.
40414         * tests/test-fprintf-posix.h (test_function): Likewise.
40415         * tests/test-printf-posix.h (test_function): Likewise.
40416         * tests/test-fprintf-posix.out: Likewise.
40417
40418 2007-04-13  Bruno Haible  <bruno@clisp.org>
40419
40420         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
40421         * modules/tls-tests (configure.ac): Likewise.
40422         Reported by Arto C. Nirkko <anirkko@insel.ch>.
40423
40424 2007-04-13  Bruno Haible  <bruno@clisp.org>
40425
40426         * lib/tls.c (glthread_tls_get): Fix return type.
40427         Patch by Arto C. Nirkko <anirkko@insel.ch>.
40428
40429 2007-04-12  Eric Blake  <ebb9@byu.net>
40430
40431         * modules/gettime (Depends-on): Remove gettime.
40432         Reported by Dmitry V. Levin.
40433
40434 2007-04-12  Bruno Haible  <bruno@clisp.org>
40435
40436         * modules/fflush (Include): Mention <stdio.h>.
40437         * modules/strtoimax (Include): Mention <inttypes.h>.
40438         * modules/strtoumax (Include): Likewise.
40439
40440 2007-04-12  Eric Blake  <ebb9@byu.net>
40441
40442         * .cvsignore: New file.
40443         * .gitignore: Likewise.
40444
40445 2007-04-12  Bruno Haible  <bruno@clisp.org>
40446
40447         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
40448         not before, since $(LDADD) often contains libgnu.a.
40449         * modules/striconv-tests (test_striconv_LDADD): Likewise.
40450         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
40451         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
40452         Needed on Cygwin.
40453
40454 2007-04-12  Eric Blake  <ebb9@byu.net>
40455
40456         Work around glibc's failure to flush stdin on fclose.
40457         * lib/closein.c (close_stdin): Flush stdin before closing.
40458
40459         Work around glibc's failure to reset seekable stdin on exit.
40460         * modules/closein: New module.
40461         * lib/closein.c: New file.
40462         * lib/closein.h: Likewise.
40463         * m4/closein.m4: Likewise.
40464         * MODULES.html.sh (File stream based Input/Output): Document it.
40465
40466 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40467
40468         * gnulib-tool: Rename generated 'autobuild' script to
40469         'do-autobuild' in --create-megatestdir output.
40470
40471         * doc/gnulib.texi (Build robot for gnulib): Fix.
40472
40473 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40474
40475         * modules/sysexits (Depends-on): Add absolute-header.
40476
40477 2007-04-12  Eric Blake  <ebb9@byu.net>
40478
40479         No need to preserve errno on success.
40480         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
40481         Reported by Bruno Haible.
40482
40483 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40484
40485         * MODULES.html.sh (Support for maintaining and releasing
40486         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
40487
40488 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40489
40490         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
40491
40492 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40493
40494         * modules/autobuild: New module.
40495
40496         * m4/autobuild.m4: New file.
40497
40498 2007-04-11  Bruno Haible  <bruno@clisp.org>
40499
40500         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
40501         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
40502         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
40503         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
40504         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40505         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40506         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40507         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
40508         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40509         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40510         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
40511         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40512         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40513         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
40514         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40515         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40516         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
40517         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40518         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40519         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
40520         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40521         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40522         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
40523         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40524         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40525         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
40526         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40527         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40528         Reported by Eric Blake.
40529
40530 2007-04-11  Bruno Haible  <bruno@clisp.org>
40531
40532         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
40533
40534 2007-04-10  Bruno Haible  <bruno@clisp.org>
40535
40536         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
40537         for NaN and Infinity. Needed on FreeBSD 6.1.
40538         * tests/test-vasnprintf-posix.c (test_function): Undo last change
40539         regarding results for "%010a" of Infinity and NaN.
40540         * tests/test-vasprintf-posix.c (test_function): Likewise.
40541         * tests/test-snprintf-posix.h (test_function): Likewise.
40542         * tests/test-sprintf-posix.h (test_function): Likewise.
40543         * tests/test-fprintf-posix.h (test_function): Likewise.
40544         * tests/test-printf-posix.h (test_function): Likewise.
40545         * tests/test-fprintf-posix.out: Likewise.
40546
40547 2007-04-10  Bruno Haible  <bruno@clisp.org>
40548
40549         * modules/locale-tests: New file.
40550         * tests/test-locale.c: New file.
40551
40552         * modules/locale: New file.
40553         * lib/locale_.h: New file.
40554         * m4/locale_h.m4: New file.
40555
40556 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
40557             Bruno Haible  <bruno@clisp.org>
40558
40559         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
40560         be determined, test for availability of the copysignf, copysign,
40561         copysignl functions.
40562         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
40563         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
40564         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
40565
40566 2007-04-09  Eric Blake  <ebb9@byu.net>
40567
40568         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
40569         * modules/stdio (Makefile.am): Support fflush.
40570         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40571         * modules/fflush: New file.
40572         * lib/fflush.c: Likewise.
40573         * m4/fflush.m4: Likewise.
40574         * modules/fflush-tests: New test.
40575         * tests/test-fflush.c: Likewise.
40576         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
40577
40578 2007-04-06  Bruno Haible  <bruno@clisp.org>
40579
40580         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
40581         (VASNPRINTF): Use signbit for faster determination whether to print a
40582         minus sign.
40583         * modules/vasnprintf (Files): Remove lib/float+.h.
40584         * modules/fprintf-posix (Depends-on): Add signbit.
40585         * modules/snprintf-posix (Depends-on): Likewise.
40586         * modules/sprintf-posix (Depends-on): Likewise.
40587         * modules/vasnprintf-posix (Depends-on): Likewise.
40588         * modules/vasprintf-posix (Depends-on): Likewise.
40589         * modules/vfprintf-posix (Depends-on): Likewise.
40590         * modules/vsnprintf-posix (Depends-on): Likewise.
40591         * modules/vsprintf-posix (Depends-on): Likewise.
40592
40593 2007-04-06  Bruno Haible  <bruno@clisp.org>
40594
40595         * tests/test-frexp.c (main): Test also the sign bit of zero results.
40596         * tests/test-frexpl.c (main): Likewise.
40597         * tests/test-ldexpl.c (main): Likewise.
40598         * modules/frexp-tests (Depends-on): Add signbit.
40599         * modules/frexpl-tests (Depdends-on): Likewise.
40600         * modules/ldexpl-tests (Depdends-on): Likewise.
40601
40602 2007-04-06  Bruno Haible  <bruno@clisp.org>
40603
40604         * modules/signbit-tests: New file.
40605         * tests/test-signbit.c: New file.
40606
40607         * modules/signbit: New file.
40608         * lib/signbitf.c: New file.
40609         * lib/signbitd.c: New file.
40610         * lib/signbitl.c: New file.
40611         * m4/signbit.m4: New file.
40612         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
40613         (signbit): New macro.
40614         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
40615         REPLACE_SIGNBIT.
40616         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
40617         REPLACE_FREXPL into math.h.
40618
40619 2007-04-06  Bruno Haible  <bruno@clisp.org>
40620
40621         * modules/isnanf-nolibm-tests: New file.
40622         * tests/test-isnanf.c: New file.
40623
40624         * modules/isnanf-nolibm: New file.
40625         * lib/isnanf.h: New file.
40626         * lib/isnanf.c: New file.
40627         * lib/isnan.c: Consider the USE_FLOAT macro.
40628         * m4/isnanf.m4: New file.
40629
40630 2007-04-06  Bruno Haible  <bruno@clisp.org>
40631
40632         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
40633         (Link): New section.
40634
40635         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
40636
40637 2007-04-06  Bruno Haible  <bruno@clisp.org>
40638
40639         Assume the 'long double' type.
40640         * m4/longdouble.m4: Remove file.
40641         * config/srclist.txt: Don't mention longdouble.m4.
40642         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
40643         * lib/float+.h: Likewise.
40644         * lib/frexp.c: Likewise.
40645         * lib/printf-args.h: Likewise.
40646         * lib/printf-args.c: Likewise.
40647         * lib/printf-frexp.c: Likewise.
40648         * lib/printf-parse.c: Likewise.
40649         * lib/vasnprintf.c: Likewise.
40650         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
40651         * m4/intl.m4: Likewise.
40652         * m4/isnanl.m4: Likewise.
40653         * m4/printf.m4: Likewise.
40654         * m4/printf-frexpl.m4: Likewise.
40655         * m4/vasnprintf.m4: Likewise.
40656         * modules/allocsa (Files): Remove m4/longdouble.m4.
40657         * modules/gettext (Files): Likewise.
40658         * modules/relocatable-prog-wrapper (Files): Likewise.
40659         * modules/vasnprintf (Files): Likewise.
40660         * modules/isnanl (Files): Likewise.
40661         (Include): Simplify.
40662         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
40663         (Include): Simplify.
40664         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
40665         (Include): Simplify.
40666         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
40667         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40668         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
40669         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40670         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
40671         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40672         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
40673         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40674         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
40675         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40676         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
40677         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40678         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
40679         * tests/test-isnanl.c: Likewise.
40680         * tests/test-snprintf-posix.h: Likewise.
40681         * tests/test-sprintf-posix.h: Likewise.
40682         * tests/test-vasnprintf-posix.c: Likewise.
40683         * tests/test-vasnprintf-posix2.c: Likewise.
40684         * tests/test-vasprintf-posix.c: Likewise.
40685
40686 2007-04-06  Bruno Haible  <bruno@clisp.org>
40687
40688         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
40689         * lib/math_.h [__DECC]: Include the overridden include file through
40690         #include_next, outside the double-inclusion guard.
40691         * lib/stdio_.h [__DECC]: Likewise.
40692         * lib/stdlib_.h [__DECC]: Likewise.
40693         * lib/string_.h [__DECC]: Likewise.
40694         * lib/time_.h [__DECC]: Likewise.
40695         * lib/wchar_.h [__DECC]: Likewise.
40696         * lib/wctype_.h [__DECC]: Likewise.
40697         * lib/inttypes_.h [__DECC]: Likewise.
40698         Reported by Albert Chin <china@thewrittenword.com> in
40699         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
40700
40701 2007-04-04  Eric Blake  <ebb9@byu.net>
40702
40703         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
40704         1.5.x.
40705
40706 2007-04-04  Bruno Haible  <bruno@clisp.org>
40707
40708         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
40709         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
40710
40711 2007-04-04  Bruno Haible  <bruno@clisp.org>
40712
40713         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
40714         results for "%010a" of Infinity and NaN.
40715         * tests/test-vasprintf-posix.c (test_function): Likewise.
40716         * tests/test-snprintf-posix.h (test_function): Likewise.
40717         * tests/test-sprintf-posix.h (test_function): Likewise.
40718         * tests/test-fprintf-posix.h (test_function): Remove these tests.
40719         * tests/test-printf-posix.h (test_function): Likewise.
40720         * tests/test-fprintf-posix.out: Update.
40721         Needed for FreeBSD 6.1.
40722
40723 2007-04-04  Bruno Haible  <bruno@clisp.org>
40724
40725         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
40726         directly used by the gnulib modules nor by gnulib-tool.
40727
40728 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
40729
40730         * DEPENDENCIES: Give overall description of version dependency
40731         desirability.  Use more-typical names for apps.
40732         Add shell, coreutils, diffutils, grep, tar, gzip.
40733
40734 2007-04-04  Simon Josefsson  <simon@josefsson.org>
40735
40736         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
40737
40738 2007-04-04  Karl Berry  <karl@gnu.org>
40739
40740         * MODULES.html.sh (func_module): missing '.
40741
40742 2007-04-03  Bruno Haible  <bruno@clisp.org>
40743
40744         * modules/argmatch-tests (Makefile.am): New variable
40745         test_argmatch_LDADD.
40746         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
40747         * modules/array-list-tests (Makefile.am): New variable
40748         test_array_list_LDADD.
40749         * modules/array-oset-tests (Makefile.am): New variable
40750         test_array_oset_LDADD.
40751         * modules/avltree-list-tests (Makefile.am): New variable
40752         test_avltree_list_LDADD.
40753         * modules/avltree-oset-tests (Makefile.am): New variable
40754         test_avltree_oset_LDADD.
40755         * modules/avltreehash-list-tests (Makefile.am): New variable
40756         test_avltreehash_list_LDADD.
40757         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
40758         test_canonicalize_lgpl_LDADD.
40759         * modules/carray-list-tests (Makefile.am): New variable
40760         test_carray_list_LDADD.
40761         * modules/dirname-tests (Makefile.am): New variable
40762         test_dirname_LDADD.
40763         * modules/linked-list-tests (Makefile.am): New variable
40764         test_linked_list_LDADD.
40765         * modules/linkedhash-list-tests (Makefile.am): New variable
40766         test_linkedhash_list_LDADD.
40767         * modules/rbtree-list-tests (Makefile.am): New variable
40768         test_rbtree_list_LDADD.
40769         * modules/rbtree-oset-tests (Makefile.am): New variable
40770         test_rbtree_oset_LDADD.
40771         * modules/rbtreehash-list-tests (Makefile.am): New variable
40772         test_rbtreehash_list_LDADD.
40773         * modules/xvasprintf-tests (Makefile.am): New variable
40774         test_xvasprintf_LDADD.
40775         Reported by Eric Blake.
40776
40777 2007-04-03  Eric Blake  <ebb9@byu.net>
40778
40779         * DEPENDENCIES: Weaken m4 requirements.
40780
40781 2007-04-03  Bruno Haible  <bruno@clisp.org>
40782
40783         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
40784         * modules/isnanl-tests (configure.ac): Likewise.
40785
40786 2007-04-03  Ben Pfaff  <blp@gnu.org>
40787
40788         * modules/iconv_open: Add $(srcdir)/ to source directory
40789         references in Makefile fragments that call gperf, to fix VPATH
40790         builds.
40791
40792 2007-04-03  Bruno Haible  <bruno@clisp.org>
40793
40794         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
40795         * lib/ldexpl.c: Undo last change.
40796
40797 2007-04-03  Bruno Haible  <bruno@clisp.org>
40798
40799         * modules/printf-frexpl (Depends-on): Undo last change.
40800         (Files): Add m4/ldexpl.m4.
40801
40802 2007-04-03  Bruno Haible  <bruno@clisp.org>
40803
40804         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
40805         * modules/isnanl (Link): New section.
40806
40807         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
40808         * modules/frexp (Link): New section.
40809
40810         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
40811         * modules/frexpl (Link): New section.
40812
40813         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
40814         * modules/ldexpl (Link): New section.
40815
40816 2007-04-03  Bruno Haible  <bruno@clisp.org>
40817
40818         * modules/TEMPLATE-EXTENDED: New file.
40819         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
40820
40821 2007-04-03  Bruno Haible  <bruno@clisp.org>
40822
40823         * DEPENDENCIES: New file.
40824         Suggested by Simon Josefsson.
40825
40826 2007-04-03  Bruno Haible  <bruno@clisp.org>
40827
40828         * doc/gnulib.texi: Escape @.
40829
40830 2007-04-03  James Youngman  <jay@gnu.org>
40831         and Paul Eggert  <eggert@cs.ucla.edu>
40832
40833         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
40834         birthtime on all systems that have birthtime, not just those which
40835         use st_birthtimensec rather than st_birthtim.  Putting zero in
40836         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
40837         that the birth time is not available for files on an NFS mount.
40838
40839 2007-04-03  Simon Josefsson  <simon@josefsson.org>
40840
40841         * modules/memxor: Move back from crypto/, suggested by Bruno.
40842         * modules/crypto/hmac-sha1: Fix memxor dependency.
40843
40844         * modules/crypto/gc: Moved from ../.
40845
40846 2007-04-02  Eric Blake  <ebb9@byu.net>
40847
40848         * lib/ldexpl.c (includes): Avoid libm.
40849
40850         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
40851
40852 2007-04-02  Bruno Haible  <bruno@clisp.org>
40853
40854         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
40855         on IRIX.
40856
40857 2007-04-02  Bruno Haible  <bruno@clisp.org>
40858
40859         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
40860         x86 or x86_64 platforms running MacOS X.
40861         Reported by Ryan Schmidt <@ryandesign.com>.
40862
40863 2007-04-02  Bruno Haible  <bruno@clisp.org>
40864
40865         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
40866         i386.
40867
40868 2007-04-01  Simon Josefsson  <simon@josefsson.org>
40869
40870         * modules/crypto/arcfour: Moved from ../.
40871         * modules/crypto/arcfour-tests: Moved from ../.
40872         * modules/crypto/arctwo: Moved from ../.
40873         * modules/crypto/arctwo-tests: Moved from ../.
40874         * modules/crypto/des: Moved from ../.
40875         * modules/crypto/des-tests: Moved from ../.
40876         * modules/crypto/gc-arcfour: Moved from ../.
40877         * modules/crypto/gc-arcfour-tests: Moved from ../.
40878         * modules/crypto/gc-arctwo: Moved from ../.
40879         * modules/crypto/gc-arctwo-tests: Moved from ../.
40880         * modules/crypto/gc-des: Moved from ../.
40881         * modules/crypto/gc-des-tests: Moved from ../.
40882         * modules/crypto/gc-hmac-md5: Moved from ../.
40883         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
40884         * modules/crypto/gc-hmac-sha1: Moved from ../.
40885         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
40886         * modules/crypto/gc-md2: Moved from ../.
40887         * modules/crypto/gc-md2-tests: Moved from ../.
40888         * modules/crypto/gc-md4: Moved from ../.
40889         * modules/crypto/gc-md4-tests: Moved from ../.
40890         * modules/crypto/gc-md5: Moved from ../.
40891         * modules/crypto/gc-md5-tests: Moved from ../.
40892         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
40893         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
40894         * modules/crypto/gc-random: Moved from ../.
40895         * modules/crypto/gc-rijndael: Moved from ../.
40896         * modules/crypto/gc-rijndael-tests: Moved from ../.
40897         * modules/crypto/gc-sha1: Moved from ../.
40898         * modules/crypto/gc-sha1-tests: Moved from ../.
40899         * modules/crypto/gc-tests: Moved from ../.
40900         * modules/crypto/hmac-md5: Moved from ../.
40901         * modules/crypto/hmac-md5-tests: Moved from ../.
40902         * modules/crypto/hmac-sha1: Moved from ../.
40903         * modules/crypto/hmac-sha1-tests: Moved from ../.
40904         * modules/crypto/md2: Moved from ../.
40905         * modules/crypto/md2-tests: Moved from ../.
40906         * modules/crypto/md4: Moved from ../.
40907         * modules/crypto/md4-tests: Moved from ../.
40908         * modules/crypto/md5: Moved from ../.
40909         * modules/crypto/md5-tests: Moved from ../.
40910         * modules/crypto/memxor: Moved from ../.
40911         * modules/crypto/rijndael: Moved from ../.
40912         * modules/crypto/rijndael-tests: Moved from ../.
40913         * modules/crypto/sha1: Moved from ../.
40914
40915 2007-03-30  James Youngman  <jay@gnu.org>
40916
40917         * tests/test-stat-time.c (prepare_test): use chmod() rather than
40918         rename() to change the ctime of a file (because ctime is unaffected
40919         by rename on jfs2 on AIX 5.1).
40920         (main): Start by doing cleanup, in case a previous run failed leaving
40921         test files behind.
40922
40923 2007-03-31  Bruno Haible  <bruno@clisp.org>
40924
40925         Support old proprietary implementations of iconv.
40926         * modules/iconv_open: New file.
40927         * lib/iconv_.h: New file.
40928         * m4/iconv_h.m4: New file.
40929         * lib/iconv_open.c: New file.
40930         * lib/iconv_open-aix.gperf: New file.
40931         * lib/iconv_open-hpux.gperf: New file.
40932         * lib/iconv_open-irix.gperf: New file.
40933         * lib/iconv_open-osf.gperf: New file.
40934         * m4/iconv_open.m4: New file.
40935         * modules/linebreak (Depends-on): Add iconv_open.
40936         * modules/striconv (Depends-on): Likewise.
40937         * modules/striconveh (Depends-on): Likewise.
40938         * modules/unicodeio (Depends-on): Likewise.
40939         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
40940         (iconv_t)(-1).
40941         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
40942         conversion if cd is (iconv_t)(-1).
40943         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
40944         is not possible.
40945
40946 2007-03-31  Bruno Haible  <bruno@clisp.org>
40947
40948         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
40949         work on Solaris either. Protect also second use of "autodetect_jp".
40950
40951 2007-03-31  Bruno Haible  <bruno@clisp.org>
40952
40953         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
40954         the function is not present.
40955
40956 2007-03-31  Bruno Haible  <bruno@clisp.org>
40957
40958         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
40959         the function is not present.
40960
40961 2007-03-31  Bruno Haible  <bruno@clisp.org>
40962
40963         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
40964         a bug in HP-UX iconv_open().
40965
40966 2007-03-31  Bruno Haible  <bruno@clisp.org>
40967
40968         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
40969         (Mathematics <math.h>): New section, add fpieee.
40970         (Input/output <stdio.h>): Add fseterr.
40971         (Mathematics <math.h>): New section, add printf-frexp.
40972         (Container data structures): Add sublist.
40973         (Core language properties): Add fpucw, inline.
40974         (Functions for greatest-width integer types <inttypes.h>): Add
40975         imaxabs, imaxdiv, inttypes.
40976         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
40977         isnanl-nolibm, ldexp.
40978         (Mathematics <math.h>): New section, add printf-frexpl.
40979         (Support for systems lacking POSIX:2001): Add fprintf-posix,
40980         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
40981         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
40982         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
40983         (Unicode string functions): Add unistr/u*-mbtoucr.
40984         (Java): Add javacomp-script, javaexec-script.
40985         (C#): Add csharpcomp-script, csharpexec-script.
40986         (Support for building libraries and executables): Add havelib,
40987         relocatable-*.
40988         (Support for maintaining and releasing projects): Renamed from
40989         'Support for maintaining and release projects'. Add announce-gen.
40990
40991 2007-03-31  Bruno Haible  <bruno@clisp.org>
40992
40993         * README: Talk primarily about git.
40994         (git and CVS): Renamed from CVS.
40995         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
40996         gnulib is available through git.
40997         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
40998
40999 2007-03-30  Bruno Haible  <bruno@clisp.org>
41000
41001         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
41002         * lib/poll_.h: Likewise.
41003         * lib/stat_.h: Likewise.
41004         * lib/sys_time_.h: Likewise.
41005         * lib/sysexit_.h: Likewise.
41006         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
41007         * lib/stdbool_.h: Likewise.
41008         * lib/byteswap_.h: Add double-inclusion guard.
41009
41010 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
41011
41012         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
41013
41014 2007-03-30  Karl Berry  <karl@gnu.org>
41015
41016         * config/srclist-update: double space after USA in the license
41017         substitution, since that's how it's usually (?) written.
41018
41019 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
41020
41021         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
41022         reported by Bruno Haible.
41023
41024 2007-03-29  Bruno Haible  <bruno@clisp.org>
41025
41026         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
41027         a bug in AIX iconv().
41028
41029 2007-03-29  Bruno Haible  <bruno@clisp.org>
41030
41031         * modules/ldexpl-tests: New file.
41032         * tests/test-ldexpl.c: New file.
41033
41034 2007-03-29  Bruno Haible  <bruno@clisp.org>
41035
41036         * lib/ldexpl.c: Include fpucw.h.
41037         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
41038         multiplication.
41039         * modules/ldexpl (Depends-on): Add fpucw.
41040
41041 2007-03-29  Bruno Haible  <bruno@clisp.org>
41042
41043         * modules/ldexpl: New file.
41044         * m4/ldexpl.m4: New file.
41045         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
41046         set.
41047         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
41048         REPLACE_LDEXPL.
41049         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
41050         REPLACE_LDEXPL.
41051         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
41052         gl_FUNC_LDEXPL_WORKS.
41053         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
41054         * modules/mathl (Files): Remove lib/ldexpl.c.
41055         (Depends-on): Add ldexpl.
41056
41057 2007-03-29  Bruno Haible  <bruno@clisp.org>
41058
41059         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
41060
41061 2007-03-29  Bruno Haible  <bruno@clisp.org>
41062
41063         * tests/test-striconveh.c (main): Don't assume that a direct conversion
41064         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
41065         and possibly also HP-UX.
41066         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
41067         work on AIX, IRIX, HP-UX, OSF/1.
41068         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
41069         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
41070         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
41071         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
41072         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
41073         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
41074
41075 2007-03-29  Bruno Haible  <bruno@clisp.org>
41076
41077         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
41078
41079 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
41080
41081         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
41082         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
41083
41084 2007-03-29  Eric Blake  <ebb9@byu.net>
41085
41086         * lib/acl-internal.h: Remove redundant include.
41087         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
41088         Cygwin when a file is locked.
41089
41090 2007-03-29  Bruno Haible  <bruno@clisp.org>
41091
41092         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
41093         file.
41094         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
41095
41096 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
41097
41098         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
41099         try to remove a parent directory if the child couldn't be removed
41100         (except for the first rmdir, which could fail because the child
41101         doesn't exist).  Problem reported by Jeff Blaine in
41102         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
41103
41104 2007-03-28  Bruno Haible  <bruno@clisp.org>
41105
41106         * lib/striconveh.c (utf8conv_carefully): New function.
41107         (mem_cd_iconveh_internal): Invoke it.
41108
41109 2007-03-28  Bruno Haible  <bruno@clisp.org>
41110
41111         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
41112         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
41113         input.
41114         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
41115         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
41116         unistr/u8-uctomb.
41117
41118 2007-03-28  Bruno Haible  <bruno@clisp.org>
41119
41120         * modules/unistr/u8-mbtoucr: New file.
41121         * lib/unistr/u8-mbtoucr.c: New file.
41122         * modules/unistr/u16-mbtoucr: New file.
41123         * lib/unistr/u16-mbtoucr.c: New file.
41124         * modules/unistr/u16-mbtoucr: New file.
41125         * lib/unistr/u16-mbtoucr.c: New file.
41126         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
41127
41128 2007-03-27  Simon Josefsson  <simon@josefsson.org>
41129             Bruno Haible  <bruno@clisp.org>
41130
41131         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
41132         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
41133         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
41134
41135         * m4/stdio_h.m4: Add stubs for vasprintf too.
41136
41137         * modules/stdio: Support vasprintf in sed command.
41138
41139         * modules/vasprintf: Depend on stdio for prototypes.  Remove
41140         vasprintf.h.  Add stdio module indicator.
41141
41142         * lib/stdio_.h: Declare asprintf and vasprintf, based on
41143         vasprintf.h.
41144
41145         * lib/vasprintf.h: File removed.
41146
41147         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
41148         * lib/vasprintf.c: Ditto.
41149         * lib/xvasprintf.c: Ditto.
41150         * tests/test-vasprintf-posix.c: Ditto.
41151         * tests/test-vasprintf.c: Ditto.
41152
41153 2007-03-27  Bruno Haible  <bruno@clisp.org>
41154
41155         Make vasnprintf multithread-safe.
41156         * lib/vasnprintf.c (decimal_point_char): New function.
41157         (VASNPRINTF): Use it.
41158         Suggested by Simon Josefsson.
41159
41160 2007-03-27  Eric Blake  <ebb9@byu.net>
41161
41162         Support sub-second birthtime on cygwin.
41163         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
41164         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
41165         (get_stat_birthtime): Also work with st_birthtim.
41166
41167 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
41168
41169         * lib/stat-time.h (USE_BIRTHTIME): Remove.
41170         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
41171         (get_stat_birthtime_ns): Do not try to use "spare" fields.
41172         (get_stat_birthtime_ns): Simplify compile-time tests.
41173         (get_stat_birthtime): Change the API to look like
41174         get_stat_mtime etc., except return a negative tv_nsec on error.
41175         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
41176         Don't check for "spare" fields.
41177         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
41178         or for struct stat.st_birthtime, as these tests aren't used.
41179         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
41180
41181 2007-03-27  Bruno Haible  <bruno@clisp.org>
41182
41183         * lib/stat-time.h: Include <sys/stat.h>.
41184
41185 2007-03-27  James Youngman  <jay@gnu.org>
41186
41187         * lib/stat-time.h (get_stat_birthtime): New function for
41188           retrieving st_birthtime as provided by UFS2 (hence *BSD).
41189         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
41190           and its variants.
41191         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
41192         * modules/stat-time-test: New file.
41193         * tests/test-stat-time.c: New test, devised by Bruno Haible.
41194
41195 2007-03-26  Bruno Haible  <bruno@clisp.org>
41196
41197         Better support of signalling NaNs.
41198         * lib/atanl.c: Include isnanl.h.
41199         (atanl): Perform test for NaN at the beginning of the function and
41200         through a call to isnanl.
41201         * lib/cosl.c: Include isnanl.h.
41202         (cosl): Perform test for NaN at the beginning of the function and
41203         through a call to isnanl.
41204         * lib/ldexpl.c: Include isnanl.h.
41205         (ldexpl): Perform test for NaN through a call to isnanl.
41206         * lib/logl.c: Include isnanl.h.
41207         (logl): Perform test for NaN at the beginning of the function and
41208         through a call to isnanl.
41209         * lib/sinl.c: Include isnanl.h.
41210         (sinl): Perform test for NaN at the beginning of the function and
41211         through a call to isnanl.
41212         * lib/sqrtl.c: Include isnanl.h.
41213         (sqrtl): Perform test for NaN at the beginning of the function and
41214         through a call to isnanl.
41215         * lib/tanl.c: Include isnanl.h.
41216         (tanl): Perform test for NaN at the beginning of the function and
41217         through a call to isnanl.
41218         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
41219         * modules/mathl (Depends-on): Add isnanl.
41220
41221 2007-03-26  Eric Blake  <ebb9@byu.net>
41222
41223         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
41224         regression in logic sense of previous patch.
41225
41226 2007-03-26  Bruno Haible  <bruno@clisp.org>
41227
41228         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
41229         unportable shell command "if ! ...".
41230         Reported by Ralf Wildenhues.
41231
41232 2007-03-25  Bruno Haible  <bruno@clisp.org>
41233
41234         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
41235         <sysexits.h> file, and only add EX_CONFIG.
41236         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
41237         absolute file name and whether it is sufficient. Substitute also
41238         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
41239         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
41240         ABSOLUTE_SYSEXITS_H into sysexits.h.
41241
41242 2007-03-25  Bruno Haible  <bruno@clisp.org>
41243
41244         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
41245         hints is NULL.
41246
41247 2007-03-25  Bruno Haible  <bruno@clisp.org>
41248
41249         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
41250         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
41251
41252 2007-03-25  Bruno Haible  <bruno@clisp.org>
41253
41254         * lib/vasnprintf.c: Include langinfo.h.
41255         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
41256         multithread-safe.
41257         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
41258         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
41259         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41260         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41261         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41262         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41263         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41264         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
41265         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41266         Reported by Simon Josefsson.
41267
41268 2007-03-25  Bruno Haible  <bruno@clisp.org>
41269
41270         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
41271         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
41272         * modules/vasnprintf (Depends-on): Add stdint.
41273
41274 2007-03-25  Bruno Haible  <bruno@clisp.org>
41275
41276         * modules/fpieee: New file.
41277         * m4/fpieee.m4: New file.
41278         * modules/isnan-nolibm (Depends-on): Add fpieee.
41279         * modules/isnanl-nolibm (Depends-on): Add fpieee.
41280         * modules/isnanl (Depends-on): Add fpieee.
41281
41282 2007-03-25  Bruno Haible  <bruno@clisp.org>
41283
41284         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
41285
41286 2007-03-25  Bruno Haible  <bruno@clisp.org>
41287
41288         Avoid test failures on IRIX 6.5.
41289         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
41290         (main): Use it.
41291         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
41292         macros.
41293         (main): Use them.
41294
41295 2007-03-25  Bruno Haible  <bruno@clisp.org>
41296
41297         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
41298         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
41299         exists but doesn't work.
41300         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
41301         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
41302         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
41303         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
41304
41305 2007-03-25  Bruno Haible  <bruno@clisp.org>
41306
41307         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
41308         returns inf. Needed on IRIX 6.5.
41309
41310 2007-03-25  Bruno Haible  <bruno@clisp.org>
41311
41312         * tests/test-frexpl.c: Include isnanl-nolibm.h.
41313         (main): Use isnanl instead of x != x idiom.
41314         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
41315
41316         * tests/test-frexp.c: Include isnan.h.
41317         (main): Use isnan instead of x != x idiom.
41318         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
41319
41320 2007-03-25  Bruno Haible  <bruno@clisp.org>
41321
41322         * tests/test-frexp.c (NaN): New function/macro.
41323         (main): Use it instead of 0.0 / 0.0.
41324         * tests/test-isnan.c (NaN): New function/macro.
41325         (main): Use it instead of 0.0 / 0.0.
41326         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
41327         (test_function): Use it instead of 0.0 / 0.0.
41328         * tests/test-vasprintf-posix.c (NaN): New function/macro.
41329         (test_function): Use it instead of 0.0 / 0.0.
41330         * tests/test-snprintf-posix.h (NaN): New function/macro.
41331         (test_function): Use it instead of 0.0 / 0.0.
41332         * tests/test-sprintf-posix.h (NaN): New function/macro.
41333         (test_function): Use it instead of 0.0 / 0.0.
41334         * tests/test-fprintf-posix.h (NaN): New function/macro.
41335         (test_function): Use it instead of 0.0 / 0.0.
41336         * tests/test-printf-posix.h (NaN): New function/macro.
41337         (test_function): Use it instead of 0.0 / 0.0.
41338
41339         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
41340
41341 2007-03-25  Bruno Haible  <bruno@clisp.org>
41342
41343         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
41344
41345 2007-03-25  Bruno Haible  <bruno@clisp.org>
41346
41347         * lib/regexec.c (merge_state_with_log): Make static.
41348
41349 2007-03-25  Bruno Haible  <bruno@clisp.org>
41350
41351         * lib/trigl.c (kernel_rem_pio2): Make static.
41352
41353 2007-03-25  Bruno Haible  <bruno@clisp.org>
41354
41355         * lib/sincosl.c (sincosl_table): Make static.
41356
41357 2007-03-25  Bruno Haible  <bruno@clisp.org>
41358
41359         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
41360         if the compiler does not support C99.
41361
41362 2007-03-25  Bruno Haible  <bruno@clisp.org>
41363
41364         * modules/time (Makefile.am): Ensure all rule action lines start with a
41365         tab.
41366
41367 2007-03-24  Bruno Haible  <bruno@clisp.org>
41368
41369         * modules/tsearch-tests: New file.
41370         * tests/test-tsearch.sh: New file.
41371         * tests/test-tsearch.c: New file, mostly copied from glibc.
41372
41373         * modules/search-tests: New file.
41374         * tests/test-search.c: New file.
41375
41376         * modules/search: New file.
41377         * lib/search_.h: New file, incorporating lib/tsearch.h.
41378         * m4/search_h.m4: New file.
41379         * lib/tsearch.h: Remove file.
41380         * lib/tsearch.c: Include search.h instead of tsearch.h.
41381         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
41382         HAVE_TSEARCH.
41383         * modules/tsearch (Files): Remove lib/tsearch.h.
41384         (Depends-on): Add search.
41385         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
41386         (Include): Change tsearch.h into search.h.
41387
41388 2007-03-24  Bruno Haible  <bruno@clisp.org>
41389
41390         * modules/fpucw: New file.
41391         * lib/fpucw.h: New file.
41392         * lib/frexp.c: Include fpucw.h.
41393         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
41394         (FUNC): Use them.
41395         * lib/printf-frexp.c: Include fpucw.h.
41396         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
41397         (FUNC): Use them.
41398         * lib/vasnprintf.c: Include fpucw.h.
41399         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
41400         'long double' calculations.
41401         * tests/test-frexpl.c: Include fpucw.h.
41402         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
41403         * tests/test-printf-frexpl.c: Include fpucw.h.
41404         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
41405         * modules/frexpl (Depends-on): Add fpucw.
41406         * modules/printf-frexpl (Depends-on): Likewise.
41407         * modules/fprintf-posix (Depends-on): Likewise.
41408         * modules/snprintf-posix (Depends-on): Likewise.
41409         * modules/sprintf-posix (Depends-on): Likewise.
41410         * modules/vasnprintf-posix (Depends-on): Likewise.
41411         * modules/vasprintf-posix (Depends-on): Likewise.
41412         * modules/vfprintf-posix (Depends-on): Likewise.
41413         * modules/vsnprintf-posix (Depends-on): Likewise.
41414         * modules/vsprintf-posix (Depends-on): Likewise.
41415         * modules/frexpl-tests (Depends-on): Likewise.
41416         * modules/printf-frexpl-tests (Depends-on): Likewise.
41417
41418 2007-03-24  Bruno Haible  <bruno@clisp.org>
41419
41420         * lib/float+.h: New file.
41421         * lib/isnan.c: Include float+.h.
41422         (SIZE): New macro.
41423         (FUNC): Compare only SIZE bytes of the value.
41424         * lib/vasnprintf.c: Include float+.h.
41425         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
41426         SIZEOF_LDBL or SIZEOF_DBL bytes.
41427         * modules/isnan-nolibm (Files): Add lib/float+.h.
41428         * modules/isnanl-nolibm (Files): Add lib/float+.h.
41429         * modules/isnanl (Files): Add lib/float+.h.
41430         * modules/vasnprintf (Files): Add lib/float+.h.
41431
41432 2007-03-24  Bruno Haible  <bruno@clisp.org>
41433
41434         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
41435         include isnanl-nolibm.h.
41436
41437 2007-03-24  Bruno Haible  <bruno@clisp.org>
41438
41439         * tests/test-read-file.c (main): Don't produce spurious output for
41440         expected situations. Make the test fail if it encountered unexpected
41441         results.
41442
41443 2007-03-24  Bruno Haible  <bruno@clisp.org>
41444
41445         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
41446         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
41447
41448 2007-03-24  Bruno Haible  <bruno@clisp.org>
41449
41450         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
41451
41452 2007-03-24  Bruno Haible  <bruno@clisp.org>
41453
41454         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
41455         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
41456
41457         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
41458         * modules/utf8-ucs4: Turn into a symbolic link to module
41459         unistr/u8-mbtouc.
41460
41461         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
41462         utf8-ucs4-unsafe.
41463         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
41464         unistr/u8-mbtouc-unsafe.
41465
41466         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
41467         * modules/utf16-ucs4: Turn into a symbolic link to module
41468         unistr/u16-mbtouc.
41469
41470         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
41471         utf16-ucs4-unsafe.
41472         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
41473         unistr/u16-mbtouc-unsafe.
41474
41475         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
41476         * modules/ucs4-utf8: Turn into a symbolic link to module
41477         unistr/u8-ubtomb.
41478
41479         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
41480         * modules/ucs4-utf16: Turn into a symbolic link to module
41481         unistr/u16-ubtomb.
41482
41483 2007-03-24  Bruno Haible  <bruno@clisp.org>
41484
41485         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
41486         Enable the function only if HAVE_INLINE.
41487         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
41488         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
41489         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
41490         Enable the function only if HAVE_INLINE.
41491         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
41492         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
41493         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
41494         Enable the function only if HAVE_INLINE.
41495         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
41496         Enable the function only if HAVE_INLINE.
41497         * modules/utf8-ucs4: Update.
41498         * modules/utf8-ucs4-unsafe: Update.
41499         * modules/utf16-ucs4: Update.
41500         * modules/utf16-ucs4-unsafe: Update.
41501         * modules/ucs4-utf8: Update.
41502         * modules/ucs4-utf16: Update.
41503
41504 2007-03-24  Bruno Haible  <bruno@clisp.org>
41505
41506         * lib/utf8-ucs4.h: Remove file.
41507         * lib/utf8-ucs4-unsafe.h: Remove file.
41508         * lib/utf16-ucs4.h: Remove file.
41509         * lib/utf16-ucs4-unsafe.h: Remove file.
41510         * lib/ucs4-utf8.h: Remove file.
41511         * lib/ucs4-utf16.h: Remove file.
41512         * lib/unistr.h: Include their previous contents.
41513         * m4/utf-ucs4.m4: Remove file.
41514         * m4/ucs4-utf.m4: Remove file.
41515         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
41516         (Depends-on): Add unistr/base.
41517         (configure.ac): Remove gl_UTF_UCS4.
41518         (Makefile.am): Update.
41519         (Include): Change to unistr.h.
41520         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
41521         (Depends-on): Add unistr/base.
41522         (configure.ac): Remove gl_UTF_UCS4.
41523         (Makefile.am): Update.
41524         (Include): Change to unistr.h.
41525         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
41526         (Depends-on): Add unistr/base.
41527         (configure.ac): Remove gl_UTF_UCS4.
41528         (Makefile.am): Update.
41529         (Include): Change to unistr.h.
41530         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
41531         (Depends-on): Add unistr/base.
41532         (configure.ac): Remove gl_UTF_UCS4.
41533         (Makefile.am): Update.
41534         (Include): Change to unistr.h.
41535         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
41536         (Depends-on): Add unistr/base.
41537         (configure.ac): Remove gl_UCS4_UTF.
41538         (Makefile.am): Update.
41539         (Include): Change to unistr.h.
41540         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
41541         (Depends-on): Add unistr/base.
41542         (configure.ac): Remove gl_UCS4_UTF.
41543         (Makefile.am): Update.
41544         (Include): Change to unistr.h.
41545         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
41546         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
41547         utf8-ucs4-unsafe.h.
41548         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
41549         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
41550         utf16-ucs4-unsafe.h.
41551         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
41552         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
41553         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
41554         * lib/unistr/u8-strchr.c: Likewise.
41555         * lib/unistr/u8-strrchr.c: Likewise.
41556         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
41557         * lib/unistr/u16-strchr.c: Likewise.
41558         * lib/unistr/u16-strrchr.c: Likewise.
41559         * lib/striconveh.c: Update.
41560         * lib/linebreak.c: Update.
41561
41562 2007-03-24  Bruno Haible  <bruno@clisp.org>
41563
41564         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
41565         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
41566
41567 2007-03-22  Bruno Haible  <bruno@clisp.org>
41568
41569         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
41570
41571 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
41572
41573         * MODULES.html.sh (File system functions): New module write-any-file.
41574         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
41575         * m4/write-any-file.m4: New files.
41576
41577 2007-03-23  Eric Blake  <ebb9@byu.net>
41578
41579         * gnulib-tool: Rearrange space-tab sequences, since some editors
41580         like to eat them.
41581
41582 2007-03-23  Eric Blake  <ebb9@byu.net>
41583
41584         * lib/version-etc.c (version_etc_va): Update license wording to
41585         be more concise.  Recommended by Richard Stallman.
41586
41587 2007-03-22  Bruno Haible  <bruno@clisp.org>
41588
41589         * lib/poll.c (MSG_PEEK): New fallback definition.
41590
41591 2007-03-22  Bruno Haible  <bruno@clisp.org>
41592
41593         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
41594         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
41595         (main): Update.
41596         Fixes a compilation error on BeOS.
41597
41598 2007-03-22  Bruno Haible  <bruno@clisp.org>
41599
41600         * modules/frexpl-tests: New file.
41601         * tests/test-frexpl.c: New file.
41602
41603         * modules/frexpl: New file.
41604         * m4/frexpl.m4: New file.
41605         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
41606         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
41607         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
41608         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
41609         (Depends-on): Add frexpl. Remove isnanl-nolibm.
41610         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
41611
41612 2007-03-22  Bruno Haible  <bruno@clisp.org>
41613
41614         * lib/frexpl.c: Share code with lib/frexp.c.
41615         * modules/mathl (Files): Add lib/frexp.c.
41616         (Depends-on): Add isnanl-nolibm.
41617
41618 2007-03-22  Bruno Haible  <bruno@clisp.org>
41619
41620         * modules/printf-frexp (Files): Add m4/frexp.m4.
41621         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
41622         only if the found frexp function actually works.
41623
41624 2007-03-22  Bruno Haible  <bruno@clisp.org>
41625
41626         * lib/frexp.c: Remove older implementation that uses divisions.
41627
41628 2007-03-21  Bruno Haible  <bruno@clisp.org>
41629
41630         * modules/frexp-tests: New file.
41631         * tests/test-frexp.c: New file.
41632
41633         * modules/frexp: New file.
41634         * lib/frexp.c: New file.
41635         * m4/frexp.m4: New file.
41636         * lib/math_.h (frexp): New declaration.
41637         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
41638         REPLACE_FREXP.
41639         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
41640
41641 2007-03-21  Bruno Haible  <bruno@clisp.org>
41642
41643         * modules/isnanl-tests: New file.
41644         * tests/test-isnanl.c: New file.
41645
41646         * modules/isnanl: New file.
41647         * lib/isnanl.h: New file.
41648         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
41649         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
41650         gl_FUNC_ISNANL_WORKS.
41651         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
41652         New macros.
41653
41654 2007-03-21  Bruno Haible  <bruno@clisp.org>
41655
41656         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
41657         lib/isnanl.h.
41658         (Include): Update.
41659         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
41660         * lib/vasnprintf.c: Update.
41661         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
41662         tests/test-isnanl.h, remove tests/test-isnanl.c.
41663         (Makefile.am): Update.
41664         * tests/test-isnanl-nolibm.c: New file.
41665         * tests/test-isnanl.h: New file.
41666         * tests/test-isnanl.c: Remove file.
41667
41668 2007-03-21  Jim Meyering  <jim@meyering.net>
41669
41670         When trying to open ".", treat ESTALE like EACCES.
41671         * lib/savewd.c (savewd_save): Resort to forking not just upon
41672         failure with EACCES, but also when errno is ESTALE.
41673
41674 2007-03-20  Bruno Haible  <bruno@clisp.org>
41675
41676         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
41677         Needed on AIX 5.1. Reported by Matthew Woehlke.
41678
41679 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
41680
41681         Suggestions by Bruno Haible:
41682         * lib/acl-internal.h: Include "gettext.h" rather than rolling
41683         our own.
41684         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
41685         * modules/acl (Depends-on): Add gettext.
41686
41687 2007-03-19  Bruno Haible  <bruno@clisp.org>
41688
41689         * modules/iconvme: Remove file.
41690         * lib/iconvme.h: Remove file.
41691         * lib/iconvme.c: Remove file.
41692         * m4/iconvme.m4: Remove file.
41693
41694 2007-03-19  Bruno Haible  <bruno@clisp.org>
41695
41696         * doc/relocatable-maint.texi: Break long shell script line.
41697         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
41698
41699 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
41700
41701         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
41702         handle file_has_acl.
41703         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
41704         * lib/acl.c: Move header inclusions and related macro defns into
41705         lib/acl-internal.h.
41706         (S_ISLNK): Remove defn, since that's now done for us.
41707         (file_has_acl): Move to lib/file-has-acl.c.
41708         Call acl_trivial if available.  This is the crucial part of the fix.
41709         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
41710         shared within the library.  Rewrite a bit, partly to make it compatible
41711         with the GNU coding style.
41712         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
41713         Remove unnecessary double-quotes.
41714         Don't test for acl_to_text; the build will catch that.
41715         Replace acl_entries if it doesn't exist and it is needed.
41716         Check for -lsec and acl_trivial (as used on Solaris 10).
41717         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
41718         lib/file-has-acl.c.
41719         (Depends-on): Add sys_stat, for S_ISLNK.
41720
41721 2007-03-19  Ben Pfaff  <blp@gnu.org>
41722
41723         * doc/gnulib.texi: Fix typos.
41724         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
41725
41726 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
41727
41728         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
41729         If size is zero here, buf must be zero.
41730
41731 2007-03-19  Simon Josefsson  <simon@josefsson.org>
41732
41733         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
41734         <bruno@clisp.org>.
41735
41736 2007-03-18  Bruno Haible  <bruno@clisp.org>
41737
41738         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
41739         Suggested by Eric Blake.
41740
41741 2007-03-18  Ben Pfaff  <blp@gnu.org>
41742
41743         * doc/relocatable.texi: Recommend using as prefix a directory
41744         that does not exist and will never be created.  Based on
41745         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
41746         and others.
41747
41748 2007-03-17  Bruno Haible  <bruno@clisp.org>
41749
41750         * lib/fchownat.c: Include lchown.h.
41751
41752 2007-03-17  Bruno Haible  <bruno@clisp.org>
41753
41754         Fix endless loop when the given allocated size was > INT_MAX.
41755         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
41756         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
41757         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
41758         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
41759         * lib/sprintf.c (sprintf): Likewise.
41760
41761 2007-03-17  Bruno Haible  <bruno@clisp.org>
41762
41763         * tests/test-argp-2.sh (func_compare): Output a context diff.
41764
41765 2007-03-17  Bruno Haible  <bruno@clisp.org>
41766
41767         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
41768         locale's decimal-point character.
41769
41770 2007-03-17  Bruno Haible  <bruno@clisp.org>
41771
41772         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
41773         before comparing it. Needed because on some platforms (e.g. x86) a
41774         'long double' occupies less bytes than sizeof (long double).
41775
41776 2007-03-17  Bruno Haible  <bruno@clisp.org>
41777
41778         * tests/test-crc.c (main): Make printf statements 64-bit clean.
41779         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
41780         * tests/test-getaddrinfo.c (simple): Likewise.
41781         * tests/test-read-file.c (main): Likewise.
41782
41783 2007-03-17  Bruno Haible  <bruno@clisp.org>
41784
41785         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
41786
41787 2007-03-17  Bruno Haible  <bruno@clisp.org>
41788
41789         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
41790         unused variable.
41791
41792 2007-03-17  Bruno Haible  <bruno@clisp.org>
41793
41794         * tests/test-c-strcasecmp.c: Include c-strcase.h.
41795         * tests/test-c-strncasecmp.c: Likewise.
41796
41797 2007-03-17  Bruno Haible  <bruno@clisp.org>
41798
41799         * modules/stdlib (Depends-on): Add unistd.
41800         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
41801         Needed for MacOS X 10.3.
41802
41803 2007-03-17  Bruno Haible  <bruno@clisp.org>
41804
41805         * lib/unistr/u-strdup.h: Include <stdlib.h>.
41806
41807 2007-03-17  Bruno Haible  <bruno@clisp.org>
41808
41809         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
41810
41811 2007-03-17  Bruno Haible  <bruno@clisp.org>
41812
41813         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
41814         to reflect files copied from gnulib (with or without modifications).
41815         Suggested by Jim Meyering.
41816
41817 2007-03-17  Eric Blake  <ebb9@byu.net>
41818
41819         * NEWS: Document stdlib change from 2007-02-18.
41820
41821 2007-03-17  Jim Meyering  <jim@meyering.net>
41822
41823         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
41824         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
41825         someone uses a name containing shell meta-characters.
41826         Reported by Alfred M. Szmidt.
41827
41828         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
41829
41830 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
41831
41832         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
41833         and copy gettext configuration files only if configure.ac contains
41834         a use of AM_GNU_GETTEXT_VERSION.
41835
41836 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
41837
41838         * build-aux/bootstrap (gnulib_name): New variable.
41839         (gnulib_tool_options): Use it.
41840
41841 2007-03-13  Simon Josefsson  <simon@josefsson.org>
41842
41843         * tests/test-des.c: Use new namespace.
41844
41845 2007-03-15  Bruno Haible  <bruno@clisp.org>
41846
41847         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
41848         Reported by James Youngman <jay@gnu.org>.
41849
41850 2007-03-15  Bruno Haible  <bruno@clisp.org>
41851
41852         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
41853         declared prototype. Needed with cc on OSF/1 5.1.
41854
41855 2007-03-15  Bruno Haible  <bruno@clisp.org>
41856
41857         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
41858         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
41859         (struct gl_list_implementation): Add dispose_fn argument to the
41860         'create_empty', 'create' methods.
41861         (struct gl_list_impl_base): Add field 'dispose_fn'.
41862         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
41863         argument.
41864         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
41865         dispose_fn argument.
41866         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
41867         dispose_fn on the dropped values.
41868         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
41869         dispose_fn argument.
41870         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
41871         dropped values.
41872         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
41873         (gl_tree_remove_node): Call dispose_fn on the dropped value.
41874         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
41875         (gl_tree_remove_node): Call dispose_fn on the dropped value.
41876         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
41877         argument.
41878         (gl_tree_list_free): Call dispose_fn on the dropped values.
41879         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
41880         the dropped values.
41881         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
41882         Add dispose_fn argument.
41883         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
41884         Call dispose_fn on the dropped values.
41885         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
41886         Add dispose_fn argument.
41887         (gl_sublist_create): Initialize the 'dispose_fn' field.
41888         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
41889         * tests/test-array_list.c (main): Update.
41890         * tests/test-carray_list.c (main): Update.
41891         * tests/test-avltree_list.c (main): Update.
41892         * tests/test-rbtree_list.c (main): Update.
41893         * tests/test-avltreehash_list.c (main): Update.
41894         * tests/test-rbtreehash_list.c (main): Update.
41895         * tests/test-linked_list.c (main): Update.
41896         * tests/test-linkedhash_list.c (main): Update.
41897         * tests/test-array_oset.c (main): Update.
41898
41899 2007-03-15  Bruno Haible  <bruno@clisp.org>
41900
41901         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
41902         (gl_oset_create_empty): Add dispose_fn argument.
41903         (struct gl_oset_implementation): Add dispose_fn argument to
41904         'create_empty' method.
41905         (struct gl_oset_impl_base): Add dispose_fn field.
41906         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
41907         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
41908         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
41909         values.
41910         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
41911         (gl_tree_oset_free): Call dispose_fn on the dropped values.
41912         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
41913         dropped value.
41914         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
41915         dropped value.
41916         * tests/test-array_oset.c (main): Update.
41917         * tests/test-avltree_oset.c (main): Update.
41918         * tests/test-rbtree_oset.c (main): Update.
41919         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
41920
41921 2007-03-13  Bruno Haible  <bruno@clisp.org>
41922
41923         * tests/test-stdbool.c (i): Update after last patch.
41924
41925 2007-03-12  Bruno Haible  <bruno@clisp.org>
41926
41927         * lib/quotearg.c: Include <wctype.h> early, before the definition of
41928         the iswprint macro. Needed on Solaris 2.5.1.
41929
41930 2007-03-12  Bruno Haible  <bruno@clisp.org>
41931
41932         * tests/test-printf-frexp.c (main): Declare x as volatile.
41933
41934 2007-03-12  Simon Josefsson  <simon@josefsson.org>
41935
41936         * doc/gnulib.texi (Build robot for gnulib): New section.
41937
41938 2007-03-12  Jim Meyering  <jim@meyering.net>
41939
41940         * build-aux/bootstrap: New file.
41941         * build-aux/bootstrap.conf: New file, from coreutils.
41942
41943 2007-03-11  Bruno Haible  <bruno@clisp.org>
41944
41945         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
41946
41947 2007-03-12  Simon Josefsson  <simon@josefsson.org>
41948
41949         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
41950         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
41951         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
41952
41953 2007-03-11  Bruno Haible  <bruno@clisp.org>
41954
41955         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
41956         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
41957
41958 2007-03-11  Bruno Haible  <bruno@clisp.org>
41959
41960         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
41961         formula. Needed for SunPRO C 5.0.
41962
41963 2007-03-11  Bruno Haible  <bruno@clisp.org>
41964
41965         * modules/long-options (Depends-on): Add getopt.
41966
41967 2007-03-11  Bruno Haible  <bruno@clisp.org>
41968
41969         * modules/modechange (Depends-on): Add stdbool.
41970
41971 2007-03-11  Bruno Haible  <bruno@clisp.org>
41972
41973         * modules/i-ring (Depends-on): Add stdbool.
41974
41975 2007-03-11  Bruno Haible  <bruno@clisp.org>
41976
41977         * modules/gc-des (Depends-on): Add stdbool.
41978
41979 2007-03-11  Bruno Haible  <bruno@clisp.org>
41980
41981         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
41982
41983 2007-03-11  Bruno Haible  <bruno@clisp.org>
41984
41985         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
41986
41987 2007-03-11  Bruno Haible  <bruno@clisp.org>
41988
41989         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
41990
41991 2007-03-11  Bruno Haible  <bruno@clisp.org>
41992
41993         * lib/vasnprintf.c (sprintf): Undefine.
41994
41995 2007-03-11  Bruno Haible  <bruno@clisp.org>
41996
41997         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
41998         initializers in SunPRO C and Compaq C compilers.
41999
42000 2007-03-11  Bruno Haible  <bruno@clisp.org>
42001
42002         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
42003         decrementing code ANSI C compliant.
42004
42005 2007-03-11  Bruno Haible  <bruno@clisp.org>
42006
42007         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
42008         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
42009
42010 2007-03-11  Bruno Haible  <bruno@clisp.org>
42011
42012         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
42013         <stdbool.h> substitute doesn't pass.
42014
42015 2007-03-11  Bruno Haible  <bruno@clisp.org>
42016
42017         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
42018
42019 2007-03-11  Bruno Haible  <bruno@clisp.org>
42020
42021         * gnulib-tool (func_create_megatestdir): Create also an autobuild
42022         script, for submission to autobuild.josefsson.org.
42023
42024 2007-03-10  Bruno Haible  <bruno@clisp.org>
42025
42026         * modules/canonicalize-lgpl-tests: New file.
42027         * tests/test-canonicalize-lgpl.sh: New file.
42028         * tests/test-canonicalize-lgpl.c: New file.
42029
42030         * modules/c-strcase-tests: New file.
42031         * tests/test-c-strcase.sh: New file.
42032         * tests/test-c-strcasecmp.c: New file.
42033         * tests/test-c-strncasecmp.c: New file.
42034
42035         * modules/atexit-tests: New file.
42036         * tests/test-atexit.sh: New file.
42037         * tests/test-atexit.c: New file.
42038
42039 2007-03-10  Bruno Haible  <bruno@clisp.org>
42040
42041         * tests/test-binary-io.sh: Use temporary filenames that are not so
42042         likely to clash with those of other tests (in a parallel make).
42043         * tests/test-binary-io.c: Likewise.
42044
42045 2007-03-10  Bruno Haible  <bruno@clisp.org>
42046
42047         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
42048         fallback; use #error instead.
42049         Suggested by Simon Josefsson.
42050
42051 2007-03-10  Bruno Haible  <bruno@clisp.org>
42052
42053         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
42054         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
42055         first and the last.
42056
42057 2007-03-10  Bruno Haible  <bruno@clisp.org>
42058
42059         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
42060
42061 2007-03-10  Bruno Haible  <bruno@clisp.org>
42062
42063         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
42064         "make distcheck".
42065         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
42066         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
42067         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
42068
42069 2007-03-10  Bruno Haible  <bruno@clisp.org>
42070
42071         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
42072         variable.
42073         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
42074         variable.
42075
42076 2007-03-09  Eric Blake  <ebb9@byu.net>
42077         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
42078
42079         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
42080         types are not being provided by gnulib.
42081         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
42082         types are supported.
42083
42084 2007-03-10  Bruno Haible  <bruno@clisp.org>
42085
42086         * lib/stdio_.h (__attribute__): New macro.
42087         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
42088         vsprintf): Specify __attribute__ __format__ for GCC.
42089         Suggested by Eric Blake.
42090
42091 2007-03-09  Bruno Haible  <bruno@clisp.org>
42092
42093         * modules/printf-posix-tests: New file.
42094         * tests/test-printf-posix.sh: New file.
42095         * tests/test-printf-posix.c: New file.
42096
42097         * modules/printf-posix: New file.
42098         * lib/printf.c: New file.
42099         * m4/printf-posix-rpl.m4: New file.
42100         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
42101         REPLACE_PRINTF.
42102         * lib/stdio_.h (printf): New declaration.
42103         (format, __format__, ____printf____, ____scanf____, ____strftime____,
42104         ____strfmon____): New macros.
42105         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
42106         REPLACE_PRINTF.
42107
42108 2007-03-09  Bruno Haible  <bruno@clisp.org>
42109
42110         * tests/test-vasnprintf-posix2.sh: New file.
42111         * tests/test-vasnprintf-posix2.c: New file.
42112         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
42113         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
42114         (Makefile.am): Activate test-vasnprintf-posix2.sh.
42115
42116         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
42117         a locale dependent decimal point, rather than always '.'.
42118
42119 2007-03-09  Eric Blake  <ebb9@byu.net>
42120
42121         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
42122         spite of platforms like Tandem/NSK that define it to -1.
42123
42124 2007-03-08  Bruno Haible  <bruno@clisp.org>
42125
42126         * modules/vprintf-posix-tests: New file.
42127         * tests/test-vprintf-posix.sh: New file.
42128         * tests/test-vprintf-posix.c: New file.
42129         * tests/test-printf-posix.h: New file.
42130
42131         * modules/vprintf-posix: New file.
42132         * lib/vprintf.c: New file.
42133         * m4/vprintf-posix.m4: New file.
42134         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
42135         REPLACE_VPRINTF.
42136         * lib/stdio_.h (vprintf): New declaration.
42137         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
42138         REPLACE_VPRINTF.
42139
42140 2007-03-08  Bruno Haible  <bruno@clisp.org>
42141
42142         * modules/fprintf-posix-tests: New file.
42143         * tests/test-fprintf-posix.sh: New file.
42144         * tests/test-fprintf-posix.c: New file.
42145
42146         * modules/fprintf-posix: New file.
42147         * lib/fprintf.c: New file.
42148         * m4/fprintf-posix.m4: New file.
42149         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
42150         REPLACE_FPRINTF.
42151         * lib/stdio_.h (fprintf): New declaration.
42152         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
42153         REPLACE_FPRINTF.
42154
42155 2007-03-08  Bruno Haible  <bruno@clisp.org>
42156
42157         * modules/vfprintf-posix-tests: New file.
42158         * tests/test-vfprintf-posix.sh: New file.
42159         * tests/test-vfprintf-posix.c: New file.
42160         * tests/test-fprintf-posix.h: New file.
42161         * tests/test-fprintf-posix.out: New file.
42162
42163         * modules/vfprintf-posix: New file.
42164         * lib/vfprintf.c: New file.
42165         * m4/vfprintf-posix.m4: New file.
42166         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
42167         REPLACE_VFPRINTF.
42168         * lib/stdio_.h (vfprintf): New declaration.
42169         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
42170         REPLACE_VFPRINTF.
42171
42172 2007-03-08  Bruno Haible  <bruno@clisp.org>
42173
42174         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
42175
42176 2007-03-08  Bruno Haible  <bruno@clisp.org>
42177
42178         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
42179         instead of 'expr' invocations.
42180         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42181         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42182         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42183         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42184         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42185         Suggested by Paul Eggert.
42186
42187 2007-03-08  Bruno Haible  <bruno@clisp.org>
42188
42189         * modules/fseterr-tests: New file.
42190         * tests/test-fseterr.c: New file.
42191
42192         * modules/fseterr: New file.
42193         * lib/fseterr.h: New file.
42194         * lib/fseterr.c: New file.
42195
42196 2007-03-08  Bruno Haible  <bruno@clisp.org>
42197
42198         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
42199         * lib/getopt_.h: Likewise.
42200         * lib/mbswidth.h: Likewise.
42201         * lib/setenv.h: Likewise.
42202         * lib/vasnprintf.h: Likewise.
42203         * lib/vasprintf.h: Likewise.
42204         * lib/verror.h: Likewise.
42205         * lib/xsetenv.h: Likewise.
42206         * lib/xvasprintf.h: Likewise.
42207
42208 2007-03-08  Jim Meyering  <jim@meyering.net>
42209
42210         * users.txt: Add parted.
42211
42212         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
42213
42214 2007-03-07  Bruno Haible  <bruno@clisp.org>
42215
42216         * m4/printf.m4: Make the shell script snippets copy&pastable.
42217
42218 2007-03-02  Bruno Haible  <bruno@clisp.org>
42219
42220         * lib/netinet_in_.h: New file.
42221         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
42222         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
42223         * modules/netinet_in (Files): Add lib/netinet_in_.h.
42224         (Depends-on): Add absolute-header.
42225         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
42226         into netinet/in.h.
42227
42228 2007-03-03  Bruno Haible  <bruno@clisp.org>
42229
42230         * lib/sys_select_.h: New file.
42231         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
42232         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
42233         * modules/sys_select (Files): Add lib/sys_select_.h.
42234         (Depends-on): Add absolute-header.
42235         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
42236         into sys/select.h.
42237
42238 2007-03-02  Bruno Haible  <bruno@clisp.org>
42239
42240         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
42241         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
42242         values.
42243         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
42244         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
42245         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
42246         * modules/sys_socket (Depends-on): Add absolute-header.
42247         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
42248         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
42249         (Include): Remove requirement of inclusion of <sys/types.h>.
42250
42251 2007-03-02  Bruno Haible  <bruno@clisp.org>
42252
42253         * lib/byteswap_.h (bswap_32): Fix formula.
42254
42255 2007-03-06  Bruno Haible  <bruno@clisp.org>
42256
42257         * modules/sprintf-posix-tests: New file.
42258         * tests/test-sprintf-posix.c: New file.
42259
42260         * modules/sprintf-posix: New file.
42261         * lib/sprintf.c: New file.
42262         * m4/sprintf-posix.m4: New file.
42263         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
42264         REPLACE_SPRINTF.
42265         * lib/stdio_.h (sprintf): New declaration.
42266         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
42267         REPLACE_SPRINTF.
42268
42269 2007-03-06  Bruno Haible  <bruno@clisp.org>
42270
42271         * modules/vsprintf-posix-tests: New file.
42272         * tests/test-vsprintf-posix.c: New file.
42273         * tests/test-sprintf-posix.h: New file.
42274
42275         * modules/vsprintf-posix: New file.
42276         * lib/vsprintf.c: New file.
42277         * m4/vsprintf-posix.m4: New file.
42278         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
42279         REPLACE_VSPRINTF.
42280         * lib/stdio_.h (vsprintf): New declaration.
42281         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
42282         REPLACE_VSPRINTF.
42283
42284 2007-03-06  Bruno Haible  <bruno@clisp.org>
42285
42286         * modules/vsnprintf (Depend-on): Remove minmax.
42287
42288 2007-03-06  Bruno Haible  <bruno@clisp.org>
42289
42290         * modules/snprintf-posix-tests: New file.
42291         * tests/test-snprintf-posix.c: New file.
42292
42293         * modules/snprintf-posix: New file.
42294         * m4/snprintf-posix.m4: New file.
42295         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
42296         gl_FUNC_SNPRINTF.
42297         (gl_FUNC_SNPRINTF): Invoke it.
42298         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
42299         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
42300         is set.
42301         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
42302
42303 2007-03-06  Bruno Haible  <bruno@clisp.org>
42304
42305         * modules/vsnprintf-posix-tests: New file.
42306         * tests/test-vsnprintf-posix.c: New file.
42307         * tests/test-snprintf-posix.h: New file.
42308
42309         * modules/vsnprintf-posix: New file.
42310         * m4/vsnprintf-posix.m4: New file.
42311         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
42312         gl_FUNC_VSNPRINTF.
42313         (gl_FUNC_VSNPRINTF): Invoke it.
42314         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
42315         * lib/stdio_.h (vsnprintf): Define as a replacement if
42316         REPLACE_VSNPRINTF is set.
42317         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
42318
42319 2007-03-06  Bruno Haible  <bruno@clisp.org>
42320
42321         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
42322         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
42323
42324 2007-03-06  Bruno Haible  <bruno@clisp.org>
42325
42326         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
42327         (asinl): Declare also if HAVE_DECL_ASINL is set.
42328         (atanl): Declare also if HAVE_DECL_ATANL is set.
42329         (ceill): Declare also if HAVE_DECL_CEILL is set.
42330         (cosl): Declare also if HAVE_DECL_COSL is set.
42331         (expl): Declare also if HAVE_DECL_EXPL is set.
42332         (floorl): Declare also if HAVE_DECL_FLOORL is set.
42333         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
42334         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
42335         (logl): Declare also if HAVE_DECL_LOGL is set.
42336         (sinl): Declare also if HAVE_DECL_SINL is set.
42337         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
42338         (tanl): Declare also if HAVE_DECL_TANL is set.
42339         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
42340         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
42341         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
42342         declaration of frexpl, ldexpl.
42343         * modules/printf-frexpl (Depends-on): Add math.
42344         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
42345
42346 2007-03-05  Bruno Haible  <bruno@clisp.org>
42347
42348         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
42349         frexpl and ldexpl are declared.
42350         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
42351
42352 2007-03-05  Bruno Haible  <bruno@clisp.org>
42353
42354         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
42355         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
42356
42357 2007-03-05  Bruno Haible  <bruno@clisp.org>
42358
42359         * lib/stdio_.h: Include <stddef.h>.
42360
42361 2007-03-05  Bruno Haible  <bruno@clisp.org>
42362
42363         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
42364
42365 2007-03-05  Bruno Haible  <bruno@clisp.org>
42366
42367         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
42368         NetBSD 4, from Ralf Wildenhues.
42369
42370 2007-03-04  Bruno Haible  <bruno@clisp.org>
42371
42372         * lib/vasprintf.h: Update #if logic for the case when the functions
42373         exist but are overridden.
42374
42375 2007-03-04  Bruno Haible  <bruno@clisp.org>
42376
42377         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
42378         implementations: glibc-2.4 and MacOS X 10.3.
42379         * tests/test-vasnprintf-posix.c (test_function): Test also the case
42380         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
42381         * tests/test-vasprintf-posix.c (test_function): Likewise.
42382
42383 2007-03-04  Bruno Haible  <bruno@clisp.org>
42384
42385         * modules/vasprintf-posix-tests: New file.
42386         * tests/test-vasprintf-posix.c: New file.
42387
42388         * modules/vasprintf-posix: New file.
42389         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
42390         defined.
42391         * m4/vasprintf-posix.m4: New file.
42392         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
42393         gl_FUNC_VASPRINTF.
42394         (gl_FUNC_VASPRINTF): Invoke it.
42395         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
42396         here.
42397         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
42398
42399 2007-03-04  Bruno Haible  <bruno@clisp.org>
42400
42401         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
42402         REPLACE_GETTIMEOFDAY.
42403         * modules/sys_time (Makefile.am): Likewise.
42404         * m4/sys_time_h.m4: Likewise.
42405         * m4/gettimeofday.m4: Likewise.
42406
42407 2007-03-04  Bruno Haible  <bruno@clisp.org>
42408
42409         * modules/vasnprintf-posix-tests: New file.
42410         * tests/test-vasnprintf-posix.c: New file.
42411
42412         * modules/vasnprintf-posix: New file.
42413         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
42414         printf-frexpl.h.
42415         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
42416         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
42417         REPLACE_VASNPRINTF is defined.
42418         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
42419         gl_FUNC_VASNPRINTF.
42420         (gl_FUNC_VASNPRINTF): Invoke it.
42421         * m4/vasnprintf-posix.m4: New file.
42422         * m4/printf.m4: New file.
42423
42424 2007-03-04  Bruno Haible  <bruno@clisp.org>
42425
42426         Compile progreloc.c only if --enable-relocatable is specified.
42427         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
42428         if --enable-relocatable was specified.
42429         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
42430         lib_SOURCES.
42431
42432 2007-03-04  Jim Meyering  <jim@meyering.net>
42433
42434         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
42435         Use it consistently, rather than enumerating errno constants.
42436
42437 2007-03-04  Bruno Haible  <bruno@clisp.org>
42438
42439         * modules/xvasprintf-tests: New file.
42440         * tests/test-xvasprintf.c: New file.
42441
42442         * modules/vasprintf-tests: New file.
42443         * tests/test-vasprintf.c: New file.
42444
42445         * modules/vasnprintf-tests: New file.
42446         * tests/test-vasnprintf.c: New file.
42447
42448         * modules/vsnprintf-tests: New file.
42449         * tests/test-vsnprintf.c: New file.
42450
42451         * modules/snprintf-tests: New file.
42452         * tests/test-snprintf.c: New file.
42453
42454 2007-03-04  Bruno Haible  <bruno@clisp.org>
42455
42456         Compile relocatable.c only if --enable-relocatable is specified.
42457         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
42458         gl_RELOCATABLE_LIBRARY.
42459         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
42460         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
42461         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
42462         gl_RELOCATABLE_LIBRARY.
42463         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
42464         (Makefile.am): Remove lib_SOURCES.
42465         * modules/relocatable-lib-lgpl (configure.ac): Invoke
42466         gl_RELOCATABLE_LIBRARY.
42467         (Makefile.am): Remove lib_SOURCES.
42468         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
42469         always.
42470         * modules/relocatable-prog-wrapper (configure.ac): Invoke
42471         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
42472
42473 2007-03-04  Bruno Haible  <bruno@clisp.org>
42474
42475         * modules/argmatch-tests: New file.
42476         * tests/test-argmatch.c: New file.
42477
42478         * tests/test-allocsa.c (main): Halve the number of loop runs.
42479
42480         * modules/alloca-opt-tests: New file.
42481         * tests/test-alloca-opt.c: New file.
42482
42483 2007-03-04  Jim Meyering  <jim@meyering.net>
42484
42485         Work around difference between Linux ACLs and Solaris 10 ZFS.
42486         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
42487         for EINVAL.
42488
42489 2007-03-03  Bruno Haible  <bruno@clisp.org>
42490
42491         * modules/relocatable-prog (Depends-on): Add back progreloc's
42492         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
42493
42494 2007-03-03  Bruno Haible  <bruno@clisp.org>
42495
42496         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
42497         * modules/relocatable-lib: New file.
42498
42499 2007-03-03  Bruno Haible  <bruno@clisp.org>
42500
42501         * modules/relocatable-prog: Renamed from modules/relocatable.
42502         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
42503
42504 2007-03-03  Bruno Haible  <bruno@clisp.org>
42505
42506         * modules/relocatable-script (Files): Add doc/relocatable.texi,
42507         m4/relocatable-lib.m4.
42508         (Depends-on): Remove 'relocatable'.
42509         (configure.ac): Add gl_RELOCATABLE_NOP.
42510
42511 2007-03-03  Bruno Haible  <bruno@clisp.org>
42512
42513         * modules/relocatable-prog-wrapper: New file.
42514         * modules/relocatable (Depends-on): Add it. Remove all other
42515         dependencies except progname.
42516         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
42517
42518         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
42519         (gl_FUNC_STRERROR): Nop.
42520         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
42521
42522         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
42523         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
42524
42525         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
42526         (gl_FUNC_READLINK): Update.
42527
42528         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
42529
42530 2007-03-03  Bruno Haible  <bruno@clisp.org>
42531
42532         * lib/xreadlink.c: Include <unistd.h> unconditionally.
42533         * modules/xreadlink (Depends-on): Add unistd.
42534         * modules/xreadlink-with-size (Depends-on): Likewise.
42535
42536 2007-03-03  Bruno Haible  <bruno@clisp.org>
42537
42538         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
42539         extracted from gt_FUNC_SETENV.
42540         (gt_FUNC_SETENV): Remove macro.
42541         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
42542         remove gt_FUNC_SETENV.
42543
42544 2007-03-03  Bruno Haible  <bruno@clisp.org>
42545
42546         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
42547         ENABLE_RELOCATABLE here.
42548         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
42549
42550 2007-03-03  Bruno Haible  <bruno@clisp.org>
42551
42552         * modules/rbtreehash-list-tests (Depends-on): Add progname.
42553         * tests/test-rbtreehash_list.c: Include progname.h.
42554         (main): Call set_program_name.
42555
42556         * modules/rbtree-oset-tests (Depends-on): Add progname.
42557         * tests/test-rbtree_oset.c: Include progname.h.
42558         (main): Call set_program_name.
42559
42560         * modules/rbtree-list-tests (Depends-on): Add progname.
42561         * tests/test-rbtree_list.c: Include progname.h.
42562         (main): Call set_program_name.
42563
42564         * modules/linked-list-tests (Depends-on): Add progname.
42565         * tests/test-linked_list.c: Include progname.h.
42566         (main): Call set_program_name.
42567
42568 2007-03-03  Bruno Haible  <bruno@clisp.org>
42569
42570         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
42571         All uses of __restrict changed to _Restrict_.
42572         * lib/glob_.h (__restrict): Remove macro.
42573
42574 2007-03-02  Bruno Haible  <bruno@clisp.org>
42575
42576         * modules/gettext (configure.ac): Require gettext infrastructure
42577         from version 0.16.1.
42578
42579 2007-03-02  Bruno Haible  <bruno@clisp.org>
42580
42581         * modules/linkedhash-list-tests (Depends-on): Add progname.
42582         * tests/test-linkedhash_list.c: Include progname.h.
42583         (main): Call set_program_name.
42584
42585         * modules/carray-list-tests (Depends-on): Add progname.
42586         * tests/test-carray_list.c: Include progname.h.
42587         (main): Call set_program_name.
42588
42589         * modules/avltreehash-list-tests (Depends-on): Add progname.
42590         * tests/test-avltreehash_list.c: Include progname.h.
42591         (main): Call set_program_name.
42592
42593         * modules/avltree-oset-tests (Depends-on): Add progname.
42594         * tests/test-avltree_oset.c: Include progname.h.
42595         (main): Call set_program_name.
42596
42597         * modules/avltree-list-tests (Depends-on): Add progname.
42598         * tests/test-avltree_list.c: Include progname.h.
42599         (main): Call set_program_name.
42600
42601         * modules/array-oset-tests (Depends-on): Add progname.
42602         * tests/test-array_oset.c: Include progname.h.
42603         (main): Call set_program_name.
42604
42605         * modules/array-list-tests (Depends-on): Add progname.
42606         * tests/test-array_list.c: Include progname.h.
42607         (main): Call set_program_name.
42608
42609         * modules/argp-tests (Depends-on): Add progname.
42610         * tests/test-argp.c: Include argp.h first. Include progname.h.
42611         (main): Call set_program_name.
42612
42613 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
42614
42615         * doc/gnulib-tool.texi (Initial import): Reword description of
42616         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
42617         limited effect even if defined after the first system include.
42618
42619 2007-03-01  Bruno Haible  <bruno@clisp.org>
42620
42621         * build-aux/config.libpath: Update to libtool-1.5.22.
42622         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42623
42624 2007-03-01  Bruno Haible  <bruno@clisp.org>
42625
42626         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
42627         foo_CFLAGS.
42628         Reported by Ralf Wildenhues.
42629
42630 2007-03-01  Bruno Haible  <bruno@clisp.org>
42631
42632         * build-aux/install-reloc: Remove object files left over by some
42633         compilers.
42634         Reported by Ralf Wildenhues.
42635
42636 2007-03-01  Bruno Haible  <bruno@clisp.org>
42637
42638         * build-aux/install-reloc: Break long lines.
42639
42640 2007-03-01  Bruno Haible  <bruno@clisp.org>
42641
42642         * doc/relocatable.texi: Document that it may not work on OpenBSD.
42643         Reported by Ralf Wildenhues.
42644
42645 2007-03-01  Bruno Haible  <bruno@clisp.org>
42646
42647         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
42648         include ordering constraints.
42649
42650 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
42651
42652         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
42653         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
42654         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
42655         as another example.
42656         * lib/time_.h: Fix misspelling.
42657         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
42658         Require gl_HEADER_TIME_H_DEFAULTS.
42659         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
42660         * m4/time_r.m4 (gl_TIME_R): Likewise.
42661         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
42662
42663 2007-03-01  Bruno Haible  <bruno@clisp.org>
42664
42665         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
42666         * m4/utimens.m4 (gl_UTIMENS): Likewise.
42667
42668 2007-03-01  Jim Meyering  <jim@meyering.net>
42669
42670         * modules/xreadlink (Maintainer): Add my name.
42671         * modules/xreadlink-with-size (Depends-on): Alphabetize.
42672
42673 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
42674             Bruno Haible  <bruno@clisp.org>
42675
42676         * build-aux/install-reloc: Compile also c-ctype.c.
42677         * build-aux/relocatable.sh.in: New file.
42678         * doc/relocatable.texi: New file.
42679         * doc/relocatable-maint.texi: New file.
42680         * doc/gnulib.texi: Include relocatable-maint.texi.
42681         * lib/progreloc.c: Include unistd.h unconditionally.
42682         * lib/relocwrapper.c: Include unistd.h unconditionally.
42683         Include c-ctype.h.
42684         (add_dotbin): Use c_tolower.
42685         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
42686         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
42687         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
42688         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
42689         to m4/relocatable-lib.m4.
42690         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
42691         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
42692         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
42693         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
42694         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
42695         * modules/relocatable: New file.
42696         * modules/relocatable-lib: New file.
42697         * modules/relocatable-script: New file.
42698
42699 2007-02-28  Bruno Haible  <bruno@clisp.org>
42700
42701         Import --enable-relocatable infrastructure.
42702         * build-aux/config.libpath: New file, from GNU gettext.
42703         * build-aux/install-reloc: New file, from GNU gettext.
42704         * build-aux/reloc-ldflags: New file, from GNU gettext.
42705         * lib/relocatable.h: New file, from GNU gettext.
42706         * lib/relocatable.c: New file, from GNU gettext.
42707         * lib/relocwrapper.c: New file, from GNU gettext.
42708         * m4/relocatable.m4: New file, from GNU gettext.
42709
42710 2007-02-28  Bruno Haible  <bruno@clisp.org>
42711
42712         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
42713
42714         * modules/xreadlink: New file, from GNU gettext with modifications.
42715         * lib/xreadlink.c: New file, from GNU gettext.
42716         * lib/xreadlink.h: Add comments.
42717         (xreadlink): New declaration.
42718
42719         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
42720         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
42721         lib/xreadlink-with-size.c.
42722         (configure.ac): Remove gl_XREADLINK invocation.
42723         (Makefile.am): Augment lib_SOURCES.
42724         * m4/xreadlink.m4: Remove file.
42725         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
42726         (xreadlink_with_size): Renamed from xreadink.
42727         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
42728         * modules/canonicalize (Depends-on): Replace xreadlink with
42729         xreadlink-with-size.
42730         * lib/canonicalize.c (canonicalize_filename_mode): Update.
42731
42732 2007-02-25  Jim Meyering  <jim@meyering.net>
42733
42734         * build-aux/announce-gen: When complaining about excess arguments,
42735         list them.
42736
42737 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
42738
42739         * README: Document signed integer overflow situation more
42740         accurately.
42741
42742 2007-02-25  Bruno Haible  <bruno@clisp.org>
42743
42744         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
42745         'a' or 'A' conversion.
42746
42747 2007-02-25  Bruno Haible  <bruno@clisp.org>
42748
42749         * modules/filename: Renamed from modules/pathname.
42750         (Files): Replace lib/pathname.h with lib/filename.h. Replace
42751         lib/concatpath.c with lib/concat-filename.c.
42752         (Makefile.am): Update.
42753         (Include): Replace pathname.h with filename.h.
42754         * lib/filename.h: Renamed from lib/pathname.h.
42755         (concatenated_filename): Renamed from concatenated_pathname.
42756         * lib/concat-filename.c: Renamed from lib/concatpath.c.
42757         (concatenated_filename): Renamed from concatenated_pathname.
42758         * lib/findprog.c: Include filename.h instead of pathname.h.
42759         (find_in_path): Update.
42760         * lib/javacomp.c: Include filename.h instead of pathname.h.
42761         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
42762         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
42763         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
42764         is_oldgcj_14_13_usable, is_javac_usable): Update.
42765         * lib/javaexec.c: Include filename.h instead of pathname.h.
42766         (execute_java_class): Update.
42767         * modules/findprog: Update.
42768         * modules/javacomp: Update.
42769         * modules/javaexec: Update.
42770         * MODULES.html.sh (File system functions): Add 'filename', remove
42771         'pathname'.
42772
42773 2007-02-25  Bruno Haible  <bruno@clisp.org>
42774
42775         * modules/printf-frexpl-tests: New file.
42776         * tests/test-printf-frexpl.c: New file.
42777
42778         * modules/printf-frexpl: New file.
42779         * lib/printf-frexpl.h: New file.
42780         * lib/printf-frexpl.c: New file.
42781         * m4/printf-frexpl.m4: New file.
42782
42783 2007-02-25  Bruno Haible  <bruno@clisp.org>
42784
42785         * modules/printf-frexp-tests: New file.
42786         * tests/test-printf-frexp.c: New file.
42787
42788         * modules/printf-frexp: New file.
42789         * lib/printf-frexp.h: New file.
42790         * lib/printf-frexp.c: New file.
42791         * m4/printf-frexp.m4: New file.
42792
42793 2007-02-25  Bruno Haible  <bruno@clisp.org>
42794
42795         Assume automake >= 1.10 for the tests.
42796         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
42797         * modules/arctwo-tests: Likewise.
42798         * modules/argp-tests: Likewise.
42799         * modules/avltree-list-tests: Likewise.
42800         * modules/avltree-oset-tests: Likewise.
42801         * modules/avltreehash-list-tests: Likewise.
42802         * modules/carray-list-tests: Likewise.
42803         * modules/crc-tests: Likewise.
42804         * modules/des-tests: Likewise.
42805         * modules/gc-arcfour-tests: Likewise.
42806         * modules/gc-arctwo-tests: Likewise.
42807         * modules/gc-des-tests: Likewise.
42808         * modules/gc-hmac-md5-tests: Likewise.
42809         * modules/gc-hmac-sha1-tests: Likewise.
42810         * modules/gc-md2-tests: Likewise.
42811         * modules/gc-md4-tests: Likewise.
42812         * modules/gc-md5-tests: Likewise.
42813         * modules/gc-pbkdf2-sha1-tests: Likewise.
42814         * modules/gc-rijndael-tests: Likewise.
42815         * modules/gc-sha1-tests: Likewise.
42816         * modules/gc-tests: Likewise.
42817         * modules/getaddrinfo-tests: Likewise.
42818         * modules/hmac-md5-tests: Likewise.
42819         * modules/hmac-sha1-tests: Likewise.
42820         * modules/linked-list-tests: Likewise.
42821         * modules/linkedhash-list-tests: Likewise.
42822         * modules/lock-tests: Likewise.
42823         * modules/md2-tests: Likewise.
42824         * modules/md4-tests: Likewise.
42825         * modules/md5-tests: Likewise.
42826         * modules/rbtree-list-tests: Likewise.
42827         * modules/rbtree-oset-tests: Likewise.
42828         * modules/rbtreehash-list-tests: Likewise.
42829         * modules/read-file-tests: Likewise.
42830         * modules/rijndael-tests: Likewise.
42831         * modules/stdint-tests: Likewise.
42832         * modules/tls-tests: Likewise.
42833
42834 2007-02-24  Bruno Haible  <bruno@clisp.org>
42835
42836         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
42837         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
42838         function; instead check whether isnan with a double argument links.
42839         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
42840         function; instead check whether isnan with a 'long double' argument
42841         links.
42842         Reported by Eric Blake <ebb9@byu.net>.
42843
42844 2007-02-24  Bruno Haible  <bruno@clisp.org>
42845
42846         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
42847         defined.
42848         * lib/isnanl.c: Remove all code. Just include isnan.c.
42849         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
42850
42851 2007-02-25  Jim Meyering  <jim@meyering.net>
42852
42853         Avoid conflicting types for 'unsetenv' on FreeBSD.
42854         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
42855         conflicting with FreeBSD's (5.0 and 6.1) function declaration
42856         in stdlib.h.
42857
42858 2007-02-24  Bruno Haible  <bruno@clisp.org>
42859
42860         * modules/isnanl-nolibm-tests: New file.
42861         * tests/test-isnanl.c: New file.
42862
42863         * modules/isnanl-nolibm: New file.
42864         * lib/isnanl.h: New file.
42865         * lib/isnanl.c: New file.
42866         * m4/isnanl.m4: New file.
42867
42868 2007-02-24  Bruno Haible  <bruno@clisp.org>
42869
42870         * modules/isnan-nolibm-tests: New file.
42871         * tests/test-isnan.c: New file.
42872
42873         * modules/isnan-nolibm: New file.
42874         * lib/isnan.h: New file.
42875         * lib/isnan.c: New file.
42876         * m4/isnan.m4: New file.
42877
42878 2007-02-24  Bruno Haible  <bruno@clisp.org>
42879
42880         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
42881         assume that an exponent fits in 20 bits.
42882
42883 2007-02-24  Jim Meyering  <jim@meyering.net>
42884
42885         * m4/regex.m4: Update the description of the configure-time option,
42886         --without-included-regex, to state accurately what the defaults are,
42887         and perhaps to give people an idea why using this option is risky.
42888
42889 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
42890
42891         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
42892         loops on small arguments.  This attempts to avoid the problem
42893         Bruno Haible reported for AIX 4.3.2 in
42894         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
42895
42896 2007-02-23  Bruno Haible  <bruno@clisp.org>
42897
42898         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
42899         Needed for help2man.
42900
42901 2007-02-23  Karl Berry  <karl@gnu.org>
42902
42903         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
42904         exists, foo.h should be cvs-ignored, not committed.
42905
42906 2007-02-23  Eric Blake  <ebb9@byu.net>
42907
42908         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
42909         * lib/stat-time.h (includes): Likewise.
42910         * lib/utimecmp.c (includes): Likewise.
42911         * lib/utimens.h (includes): Likewise.
42912         * lib/getdate.y (includes): Also include "timespec.h" for use
42913         internal to the module.
42914         * modules/utimens (Depends-on): Revert yesterday's patch.
42915         * modules/nanosleep (Depends-on): Add missing dependency.
42916
42917 2007-02-22  Bruno Haible  <bruno@clisp.org>
42918
42919         * lib/glob.c: Don't include getlogin_r.h.
42920
42921 2007-02-22  Jim Meyering  <jim@meyering.net>
42922
42923         * modules/utimens (Depends-on): Add timespec, required for
42924         utimens.h's inclusion of timespec.h.
42925
42926 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
42927
42928         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
42929         long unreadable paths in GNU/Linux.  Problem reported by Andreas
42930         Schwab in
42931         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
42932         I'll try to think of a better way to fix the Solaris problem.
42933
42934         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
42935         like glibc; on Solaris 10, it fails with errno == EINVAL.
42936         POSIX says the behavior is unspecified if the first argument is NULL,
42937         so play it safe and never pass NULL to the system getcwd.
42938
42939 2007-02-21  Jim Meyering  <jim@meyering.net>
42940
42941         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
42942         of gettimeofday.  It would conflict with the one now always
42943         provided via sys_time_.h.  Reported by Matthew Woehlke, as
42944         an IRIX 6.5 build failure.
42945
42946 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
42947
42948         Minor fixups to port to Solaris 10 with Sun C 5.8.
42949         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
42950         * modules/getcwd (Depends-on): Add dirfd.
42951         * lib/putenv.c (putenv): #undef it.
42952         (rpl_putenv): New decl.
42953         (malloc, free): Include <stdlib.h> rather than prototyping separately.
42954
42955 2007-02-20  Bruno Haible  <bruno@clisp.org>
42956
42957         * modules/stdio-tests: New file.
42958         * tests/test-stdio.c: New file.
42959
42960         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
42961         (Depends-on): Add stdio.
42962         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
42963         (Include): Use <stdio.h> instead of vsnprintf.h.
42964         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
42965         HAVE_DECL_VSNPRINTF.
42966         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
42967
42968         * modules/snprintf (Files): Remove lib/snprintf.h.
42969         (Depends-on): Add stdio.
42970         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
42971         (Include): Use <stdio.h> instead of snprintf.h.
42972         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
42973         HAVE_DECL_SNPRINTF.
42974         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
42975         * lib/getaddrinfo.c: Likewise.
42976
42977         * modules/stdio: New file.
42978         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
42979         * lib/snprintf.h: Remove file.
42980         * lib/vsnprintf.h: Remove file.
42981         * lib/.cppi-disable: Remove snprintf.h.
42982         * m4/stdio_h.m4: New file.
42983         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
42984
42985 2007-02-20  Jim Meyering  <jim@meyering.net>
42986
42987         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
42988         used by e.g., mingw.  From Bruno Haible.
42989
42990 2007-02-19  Bruno Haible  <bruno@clisp.org>
42991
42992         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
42993         warnings.
42994         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42995
42996 2007-02-19  Bruno Haible  <bruno@clisp.org>
42997
42998         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
42999         from mingw users.
43000
43001 2007-02-19  Bruno Haible  <bruno@clisp.org>
43002
43003         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
43004         warnings.
43005         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
43006
43007 2007-02-19  Jim Meyering  <jim@meyering.net>
43008
43009         Don't use FD after a successful "fdopendir (fd)".
43010         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
43011         Reset it by calling dirfd on the just-obtained DIR*.
43012
43013         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
43014         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
43015
43016 2007-02-18  Bruno Haible  <bruno@clisp.org>
43017
43018         * lib/readlink.c: Include <unistd.h>.
43019         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
43020         HAVE_READLINK.
43021         * modules/readlink (Depends-on): Add unistd.
43022         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43023         (Include): Add <unistd.h>.
43024
43025         * lib/getlogin_r.h: Remove file.
43026         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
43027         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
43028         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
43029         HAVE_DECL_GETLOGIN_R.
43030         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
43031         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43032         (Include): Use <unistd.h> instead of getlogin_r.h.
43033
43034         * lib/getcwd.h: Remove file.
43035         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
43036         * lib/xgetcwd.c: Likewise.
43037         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
43038         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
43039         * modules/getcwd (Files): Remove lib/getcwd.h.
43040         (Depends-on): Add unistd.
43041         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43042         (Include): Use <unistd.h> instad of getcwd.h.
43043
43044         * lib/ftruncate.c: Include <unistd.h> first.
43045         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
43046         Set HAVE_FTRUNCATE.
43047         * modules/ftruncate (Depends-on): Add unistd.
43048         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43049
43050         * lib/fchdir.c: Include <unistd.h> first.
43051         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
43052         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
43053         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
43054         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43055         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
43056
43057         * lib/dup2.c: Include <unistd.h> first.
43058         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
43059         HAVE_DUP2.
43060         * modules/dup2 (Depends-on): Add unistd.
43061         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43062
43063         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
43064         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
43065         REPLACE_CHOWN. Don't define chown as a macro here.
43066         * modules/chown (Depends-on): Add unistd.
43067         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43068
43069         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
43070         Add definition for GL_LINK_WARNING.
43071         (chown, dup2): New declarations.
43072         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
43073         link warning.
43074         (ftruncate): New declaration.
43075         (getcwd): New declaration, taken from old getcwd.h.
43076         (getlogin_r): New declaration, taken from old getlogin_r.h.
43077         (readlink): New declaration.
43078         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
43079         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
43080         (gl_PREREQ_UNISTD): Remove macro.
43081         (gl_UNISTD_MODULE_INDICATOR): New macro.
43082         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
43083         many new variables. Don't set UNISTD_H.
43084         * modules/unistd (Description): Change.
43085         (Depends-on): Add link-warning.
43086         (configure.ac): Update.
43087         (Makefile.am): Create unistd.h always. Substitute many new variables
43088         into it.
43089
43090 2007-02-18  Bruno Haible  <bruno@clisp.org>
43091
43092         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
43093         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
43094         HAVE_GETSUBOPT.
43095         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
43096         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
43097         * lib/getsubopt.h: Remove file.
43098         * modules/getsubopt (Files): Remove lib/getsubopt.h.
43099         (Depends-on): Add stdlib.
43100         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43101         (Includes): Use <stdlib.h> instead of getsubopt.h.
43102         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
43103         Set HAVE_GETSUBOPT.
43104         * lib/getsubopt.c: Don't include getsubopt.h.
43105
43106 2007-02-18  Bruno Haible  <bruno@clisp.org>
43107
43108         * modules/fchdir (Depends-on): Add dup2.
43109
43110 2007-02-18  Bruno Haible  <bruno@clisp.org>
43111
43112         * lib/stdlib_.h: Handle glibc's special invocation convention
43113         specially.
43114
43115 2007-02-18  Bruno Haible  <bruno@clisp.org>
43116
43117         * modules/stdlib-tests: New file.
43118         * tests/test-stdlib.c: New file.
43119
43120         * modules/mkstemp (Files): Remove lib/mkstemp.h.
43121         (Depends-on): Add stdlib.
43122         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43123         (Includes): Use <stdlib.h> instead of mkstemp.h.
43124         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
43125         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
43126         * lib/mkstemp.c: Don't include mkstemp.h.
43127         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
43128         * lib/stdlib--.h: Don't include mkstemp.h.
43129
43130         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
43131         (Depends-on): Add stdlib.
43132         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43133         (Includes): Use <stdlib.h> instead of mkdtemp.h.
43134         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
43135         HAVE_MKDTEMP.
43136         * lib/mkdtemp.c: Don't include mkdtemp.h.
43137         * lib/clean-temp.c: Don't include mkdtemp.h.
43138
43139         * modules/exit (Files): Remove lib/exit.h.
43140         (Depends-on): Add stdlib.
43141         (Makefile.am): Remove lib_SOURCES.
43142         (Include): Use <stdlib.h> instead of exit.h.
43143         * lib/argmatch.c: Don't include exit.h.
43144         * lib/execute.c: Likewise.
43145         * lib/pagealign_alloc.c: Likewise.
43146         * lib/pipe.c: Likewise.
43147         * lib/wait-process.c: Likewise.
43148         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
43149         * lib/exitfail.c: Likewise.
43150         * lib/savewd.c: Likewise.
43151         * lib/xsetenv.c: Likewise.
43152
43153         * modules/stdlib: New file.
43154         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
43155         and extra comments about mkstemp().
43156         * lib/exit.h: Remove file.
43157         * lib/mkdtemp.h: Remove file.
43158         * lib/mkstemp.h: Remove file.
43159         * m4/stdlib_h.m4: New file.
43160         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
43161
43162 2007-02-18  Bruno Haible  <bruno@clisp.org>
43163
43164         * modules/math-tests: New file.
43165         * tests/test-math.c: New file.
43166
43167         * modules/math: New file.
43168         * modules/mathl (Files): Remove lib/mathl.h.
43169         (Depends-on): Add math.
43170         (Makefile.am): Don't mention mathl.h.
43171         (Include): Use <math.h> instead of mathl.h.
43172         * lib/math_.h: New file.
43173         * lib/mathl.h: Remove file.
43174         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
43175         mathl.h.
43176         * lib/asinl.c: Likewise.
43177         * lib/atanl.c: Likewise.
43178         * lib/ceill.c: Likewise.
43179         * lib/cosl.c: Likewise.
43180         * lib/expl.c: Likewise.
43181         * lib/floorl.c: Likewise.
43182         * lib/frexpl.c: Likewise.
43183         * lib/ldexpl.c: Likewise.
43184         * lib/logl.c: Likewise.
43185         * lib/sincosl.c: Likewise.
43186         * lib/sinl.c: Likewise.
43187         * lib/sqrtl.c: Likewise.
43188         * lib/tanl.c: Likewise.
43189         * lib/trigl.c: Likewise.
43190         * m4/math_h.m4: New file.
43191         * MODULES.html.sh (Mathematics): Add math.
43192
43193 2007-02-17  Bruno Haible  <bruno@clisp.org>
43194
43195         * modules/wctype-tests: New file.
43196         * tests/test-wctype.c: New file.
43197
43198         * modules/wchar-tests: New file.
43199         * tests/test-wchar.c: New file.
43200
43201         * modules/unistd-tests: New file.
43202         * tests/test-unistd.c: New file.
43203
43204         * modules/time-tests: New file.
43205         * tests/test-time.c: New file.
43206
43207         * modules/sysexits-tests: New file.
43208         * tests/test-sysexits.c: New file.
43209
43210         * modules/sys_time-tests: New file.
43211         * tests/test-sys_time.c: New file.
43212
43213         * modules/sys_stat-tests: New file.
43214         * tests/test-sys_stat.c: New file.
43215
43216         * modules/sys_socket-tests: New file.
43217         * tests/test-sys_socket.c: New file.
43218
43219         * modules/sys_select-tests: New file.
43220         * tests/test-sys_select.c: New file.
43221
43222         * modules/string-tests: New file.
43223         * tests/test-string.c: New file.
43224
43225         * modules/stdbool-tests: New file.
43226         * tests/test-stdbool.c: New file.
43227
43228         * modules/netinet_in-tests: New file.
43229         * tests/test-netinet_in.c: New file.
43230
43231         * modules/inttypes-tests: New file.
43232         * tests/test-inttypes.c: New file.
43233
43234         * modules/fcntl-tests: New file.
43235         * tests/test-fcntl.c: New file.
43236
43237         * modules/byteswap-tests: New file.
43238         * tests/test-byteswap.c: New file.
43239
43240         * modules/arpa_inet-tests: New file.
43241         * tests/test-arpa_inet.c: New file.
43242
43243 2007-02-17  Bruno Haible  <bruno@clisp.org>
43244
43245         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
43246         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
43247         if the corresponding module is not enabled. Emit link warnings if
43248         the function is used nevertheless.
43249         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
43250         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
43251         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
43252         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
43253         * modules/inttypes (Depends-on): Add link-warning.
43254         (Makefile.am): Copy the contents of build-aux/link-warning.h into
43255         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
43256         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
43257         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
43258         * modules/imaxdiv (configure.ac): Likewise.
43259         * modules/strtoimax (configure.ac): Likewise.
43260         * modules/strtoumax (configure.ac): Likewise.
43261
43262 2007-02-17  Bruno Haible  <bruno@clisp.org>
43263
43264         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
43265         gl_STRING_MODULE_INDICATOR_DEFAULTS.
43266         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
43267         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
43268
43269 2007-02-17  Bruno Haible  <bruno@clisp.org>
43270
43271         * modules/link-warning: New file.
43272         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
43273         * lib/string_.h (GL_LINK_WARNING): Remove definition.
43274         * modules/string (Depends-on): Add link-warning.
43275         (Makefile.am): Copy the contents of build-aux/link-warning.h into
43276         string.h.
43277         * MODULES.html.sh (Support for building libraries and executables): Add
43278         link-warning.
43279
43280 2007-02-17  Bruno Haible  <bruno@clisp.org>
43281
43282         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
43283         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
43284         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
43285         long lines.
43286
43287 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
43288             Bruno Haible  <bruno@clisp.org>
43289
43290         * modules/tmpfile: New file.
43291         * lib/tmpfile.c: New file.
43292         * m4/tmpfile.m4: New file.
43293         * MODULES.html.sh (func_all_modules): New section "Input/output".
43294
43295 2007-02-15  Bruno Haible  <bruno@clisp.org>
43296
43297         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
43298         (supports_delete_on_close): New function.
43299         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
43300
43301 2007-02-14  Bruno Haible  <bruno@clisp.org>
43302
43303         * modules/mbspcasecmp-tests: New file.
43304         * tests/test-mbspcasecmp.sh: New file.
43305         * tests/test-mbspcasecmp.c: New file.
43306
43307         New module mbspcasecmp.
43308         * modules/mbspcasecmp: New file.
43309         * lib/mbspcasecmp.c: New file.
43310         * lib/string_.h (strncasecmp): Change warning message.
43311         (mbspcasecmp): New declaration.
43312         * m4/mbspcasecmp.m4: New file.
43313         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43314         GNULIB_MBSPCASECMP.
43315         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
43316         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
43317
43318 2007-02-14  Bruno Haible  <bruno@clisp.org>
43319
43320         * modules/mbsncasecmp-tests: New file.
43321         * tests/test-mbsncasecmp.sh: New file.
43322         * tests/test-mbsncasecmp.c: New file.
43323
43324         New module mbsncasecmp.
43325         * modules/mbsncasecmp: New file.
43326         * lib/mbsncasecmp.c: New file.
43327         * lib/string_.h (mbsncasecmp): New declaration.
43328         * m4/mbsncasecmp.m4: New file.
43329         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43330         GNULIB_MBSNCASECMP.
43331         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
43332         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
43333
43334 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
43335
43336         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
43337         Verify that it doesn't overlap with our flags.
43338         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
43339         do not have the desired effect in multibyte locales; instead, use
43340         mbscasecmp.
43341         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
43342         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
43343         we don't require GNU fnmatch ourselves (if our users require it, they
43344         should do so explicitly).
43345
43346         Fix regex code so it doesn't rely on strcasecmp.
43347         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
43348         Otherwise, include gnulib's langinfo.h.
43349         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
43350         undesirable behavior in non-C locales.  Instead, rely on localecharset.
43351         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
43352         * modules/regex (FILES): Remove m4/codeset.m4.
43353         (Depends-on): Add localcharset.  Remove strcase.
43354
43355 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43356
43357         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
43358         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
43359
43360 2007-02-13  Bruno Haible  <bruno@clisp.org>
43361
43362         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
43363         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43364
43365 2007-02-12  Bruno Haible  <bruno@clisp.org>
43366
43367         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
43368         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
43369         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
43370         time warning rather than a link error.
43371
43372 2007-02-12  Bruno Haible  <bruno@clisp.org>
43373
43374         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
43375         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
43376         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43377
43378 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
43379
43380         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
43381         args, not 2.
43382
43383 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
43384
43385         New module 'time', so that apps can include <time.h> as per
43386         POSIX and GNU instead of separate include files like time_r.h
43387         and timegm.h.  This implementation tries out a simpler approach
43388         for replacing decls in standard include files (as compared to
43389         the string module), somewhat as an experiment.
43390
43391         * config/srclist.txt: Comment out mktime.c for now.
43392         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
43393         since it doesn't apply any more.  Use generic wording instead.
43394         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
43395         'time'.
43396         * lib/time_.h, m4/time_h.m4, modules/time: New files.
43397         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
43398         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
43399         Don't include <sys/types.h>; no longer needed since we assume C89.
43400         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
43401         * lib/strftime.c: Likewise.
43402         * lib/time_r.c: Likewise.
43403         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
43404         * lib/nanosleep.c: Include <time.h> first, to check interface.
43405         * lib/strptime.c: Likewise.
43406         * lib/time_r.c: Likewise.
43407         * lib/timegm.c: Likewise.
43408         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
43409         needed.
43410         * lib/timegm.c: Don't include timegm.h; no longer needed.
43411         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
43412         time.h now handles any problems in that area.
43413         (struct timespec, nanosleep): Remove; time.h now arranges for these.
43414         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
43415         that time.h defines struct timespec.
43416         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
43417         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
43418         handles that.
43419         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
43420         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
43421         needed.  Set REPLACE_LOCALTIME.
43422         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
43423         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
43424         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
43425         nanosleep; time_h.m4 now does that.  Don't require
43426         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
43427         module handles this now.
43428         * modules/getdate (Depends-on): Remove timespec.  Add time.
43429         * modules/nanosleep (Depends-on): Likewise.
43430         * modules/stat-time (Depends-on): Likewise.
43431         * modules/nanosleep (Include): Include time.h, not timespec.h.
43432         * modules/strptime (Files): Remove lib/strptime.h.
43433         (Depends-on): Add extensions, time.
43434         (Include): Include time.h, not strptime.h.
43435         * modules/time_r (Files): Remove lib/time_r.h.
43436         (Depends-on): Add time.
43437         (Include): Include time.h, not time_r.h.
43438         * modules/timegm: Likewise.
43439         * modules/timespec (Description): Now does timespec-related decls
43440         of our own, instead of struct timespec itself.
43441         (Depends-on): Add time; remove extensions.
43442         (Maintainer): Add self.
43443         * modules/utimecmp (Depends-on): Add time; remove timespec.
43444         * modules/utimens (Depends-on): Likewise.
43445         * modules/xnanosleep (Depends-on): Likewise.
43446
43447 2007-02-11  Bruno Haible  <bruno@clisp.org>
43448
43449         * lib/c-strstr.c: Include allocsa.h.
43450         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
43451         * lib/c-strcasestr.c: Include allocsa.h.
43452         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
43453         * lib/strcasestr.c: Include allocsa.h.
43454         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
43455         * lib/mbsstr.c: Include allocsa.h.
43456         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
43457         allocsa/freesa instead of malloc/free.
43458         * lib/mbscasestr.c: Include allocsa.h.
43459         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
43460         allocsa/freesa instead of malloc/free.
43461         * modules/c-strstr (Depends-on): Add allocsa.
43462         * modules/c-strcasestr (Depends-on): Likewise.
43463         * modules/strcasestr (Depends-on): Likewise.
43464         * modules/mbsstr (Depends-on): Likewise.
43465         * modules/mbscasestr (Depends-on): Likewise.
43466
43467 2007-02-11  Bruno Haible  <bruno@clisp.org>
43468
43469         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
43470
43471         * modules/mbsspn-tests: New file.
43472         * tests/test-mbsspn.sh: New file.
43473         * tests/test-mbsspn.c: New file.
43474
43475 2007-02-11  Bruno Haible  <bruno@clisp.org>
43476
43477         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
43478
43479         * modules/mbspbrk-tests: New file.
43480         * tests/test-mbspbrk.sh: New file.
43481         * tests/test-mbspbrk.c: New file.
43482
43483 2007-02-11  Bruno Haible  <bruno@clisp.org>
43484
43485         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
43486         unneeded cast.
43487
43488         * modules/mbscspn-tests: New file.
43489         * tests/test-mbscspn.sh: New file.
43490         * tests/test-mbscspn.c: New file.
43491
43492 2007-02-11  Bruno Haible  <bruno@clisp.org>
43493
43494         * modules/mbscasecmp-tests: New file.
43495         * tests/test-mbscasecmp.sh: New file.
43496         * tests/test-mbscasecmp.c: New file.
43497
43498 2007-02-11  Bruno Haible  <bruno@clisp.org>
43499
43500         Ensure O(n) worst-case complexity of mbscasestr.
43501         * lib/mbscasestr.c: Include stdbool.h.
43502         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
43503         functions.
43504         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
43505         the bookkeeping indicates that it's worth it.
43506         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
43507
43508         * modules/mbscasestr-tests: New file.
43509         * tests/test-mbscasestr1.c: New file.
43510         * tests/test-mbscasestr2.sh: New file.
43511         * tests/test-mbscasestr2.c: New file.
43512         * tests/test-mbscasestr3.sh: New file.
43513         * tests/test-mbscasestr3.c: New file.
43514         * tests/test-mbscasestr4.sh: New file.
43515         * tests/test-mbscasestr4.c: New file.
43516         * m4/locale-tr.m4: New file.
43517
43518 2007-02-11  Bruno Haible  <bruno@clisp.org>
43519
43520         Ensure O(n) worst-case complexity of mbsstr.
43521         * lib/mbsstr.c: Include stdbool.h.
43522         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
43523         functions.
43524         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
43525         bookkeeping indicates that it's worth it.
43526         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
43527
43528         * modules/mbsstr-tests: New file.
43529         * tests/test-mbsstr1.c: New file.
43530         * tests/test-mbsstr2.sh: New file.
43531         * tests/test-mbsstr2.c: New file.
43532         * tests/test-mbsstr3.sh: New file.
43533         * tests/test-mbsstr3.c: New file.
43534         * m4/locale-fr.m4: New file.
43535
43536 2007-02-11  Bruno Haible  <bruno@clisp.org>
43537
43538         * lib/mbsrchr.c (mbsrchr): Fix bug.
43539
43540         * modules/mbsrchr-tests: New file.
43541         * tests/test-mbsrchr.sh: New file.
43542         * tests/test-mbsrchr.c: New file.
43543
43544 2007-02-11  Bruno Haible  <bruno@clisp.org>
43545
43546         * lib/mbschr.c (mbschr): Fix bug.
43547
43548         * modules/mbschr-tests: New file.
43549         * tests/test-mbschr.sh: New file.
43550         * tests/test-mbschr.c: New file.
43551         * m4/locale-zh.m4: New file.
43552
43553 2007-02-11  Bruno Haible  <bruno@clisp.org>
43554
43555         Support for copying multibyte string iterators.
43556         * lib/mbiter.h: Include <string.h>.
43557         (mbiter_multi_copy): New function.
43558         (mbi_copy): New macro.
43559         * lib/mbuiter.h: Include <string.h>.
43560         (mbuiter_multi_copy): New function.
43561         (mbui_copy): New macro.
43562
43563 2007-02-11  Bruno Haible  <bruno@clisp.org>
43564
43565         New module mbslen.
43566         * modules/mbslen: New file.
43567         * lib/mbslen.c: New file.
43568         * lib/string_.h (mbslen): New declaration.
43569         * m4/mbslen.m4: New file.
43570         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43571         GNULIB_MBSLEN.
43572         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
43573         * MODULES.html.sh (Internationalization functions): Add mbslen.
43574
43575 2007-02-11  Bruno Haible  <bruno@clisp.org>
43576
43577         Ensure O(n) worst-case complexity of strcasestr substitute.
43578         * lib/strcasestr.c: Include stdbool.h.
43579         (knuth_morris_pratt): New function.
43580         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
43581         bookkeeping indicates that it's worth it.
43582         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
43583
43584         * modules/strcasestr-tests: New file.
43585         * tests/test-strcasestr.c: New file.
43586
43587 2007-02-11  Bruno Haible  <bruno@clisp.org>
43588
43589         Ensure O(n) worst-case complexity of c_strcasestr.
43590         * lib/c-strcasestr.c: Include stdbool.h, string.h.
43591         (knuth_morris_pratt): New function.
43592         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
43593         the bookkeeping indicates that it's worth it.
43594         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
43595
43596         * modules/c-strcasestr-tests: New file.
43597         * tests/test-c-strcasestr.c: New file.
43598
43599 2007-02-11  Bruno Haible  <bruno@clisp.org>
43600
43601         Ensure O(n) worst-case complexity of c_strstr.
43602         * lib/c-strstr.c: Include stdbool.h, string.h.
43603         (knuth_morris_pratt): New function.
43604         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
43605         bookkeeping indicates that it's worth it.
43606         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
43607
43608         * lib/c-strstr.c: Complete rewrite for maintainability.
43609
43610         * modules/c-strstr-tests: New file.
43611         * tests/test-c-strstr.c: New file.
43612
43613 2007-02-11  Bruno Haible  <bruno@clisp.org>
43614
43615         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
43616         5.2.1 and earlier, whereby \055 was treated just like the range
43617         delimiter '-'.
43618         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
43619
43620 2007-02-08  Bruno Haible  <bruno@clisp.org>
43621
43622         * modules/regex (Depends-on): Add stdbool.
43623         Reported by Dalibor Topic <robilad@kaffe.org>.
43624
43625 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
43626
43627         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
43628         Prefer returning from main to exiting from it.
43629         Remove unnecessary parens after sizeof.
43630
43631 2007-02-05  Bruno Haible  <bruno@clisp.org>
43632
43633         New module mbssep.
43634         * modules/mbssep: New file.
43635         * lib/mbssep.c: New file.
43636         * lib/string_.h (strsep): Add a conditional link warning.
43637         (mbssep): New declaration.
43638         * m4/mbssep.m4: New file.
43639         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43640         GNULIB_MBSSEP.
43641         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
43642         * MODULES.html.sh (Internationalization functions): Add mbssep.
43643
43644 2007-02-05  Bruno Haible  <bruno@clisp.org>
43645
43646         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
43647         Optimize search in case of 1 delimiter.
43648
43649 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
43650
43651         * lib/acl.h: Include sys/types.h before sys/acl.h.
43652
43653 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
43654
43655         Merge upstream fix for glibc bugzilla #3957:
43656
43657         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
43658
43659         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
43660         bit for RE_HAT_LISTS_NOT_NEWLINE.
43661         (build_charclass_op): Remove bogus comment.
43662
43663 2007-02-05  Simon Josefsson  <simon@josefsson.org>
43664
43665         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
43666
43667 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
43668
43669         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
43670         * lib/memmem.c [!defined _LIBC]: Include config.h.
43671
43672 2007-02-04  Bruno Haible  <bruno@clisp.org>
43673
43674         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
43675         warning message.
43676
43677 2007-02-04  Bruno Haible  <bruno@clisp.org>
43678
43679         New module mbstok_r.
43680         * modules/mbstok_r: New file.
43681         * lib/mbstok_r.c: New file.
43682         * lib/string_.h (strtok_r): Change argument names to match the
43683         comments. Add a conditional link warning.
43684         (mbstok_r): New declaration.
43685         * m4/mbstok_r.m4: New file.
43686         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43687         GNULIB_MBSTOK_R.
43688         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
43689         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
43690
43691 2007-02-04  Bruno Haible  <bruno@clisp.org>
43692
43693         New module mbsspn.
43694         * modules/mbsspn: New file.
43695         * lib/mbsspn.c: New file.
43696         * lib/string_.h (strspn): Add a conditional link warning.
43697         (mbsspn): New declaration.
43698         * m4/mbsspn.m4: New file.
43699         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43700         GNULIB_MBSSPN.
43701         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
43702         * MODULES.html.sh (Internationalization functions): Add mbsspn.
43703
43704 2007-02-04  Bruno Haible  <bruno@clisp.org>
43705
43706         New module mbspbrk.
43707         * modules/mbspbrk: New file.
43708         * lib/mbspbrk.c: New file.
43709         * lib/string_.h (strpbrk): Add a conditional link warning.
43710         (mbspbrk): New declaration.
43711         * m4/mbspbrk.m4: New file.
43712         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43713         GNULIB_MBSPBRK.
43714         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
43715         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
43716
43717 2007-02-04  Bruno Haible  <bruno@clisp.org>
43718
43719         New module mbscspn.
43720         * modules/mbscspn: New file.
43721         * lib/mbscspn.c: New file.
43722         * lib/string_.h (strcspn): Add a conditional link warning.
43723         (mbscspn): New declaration.
43724         * m4/mbscspn.m4: New file.
43725         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43726         GNULIB_MBSCSPN.
43727         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
43728         * MODULES.html.sh (Internationalization functions): Add mbscspn.
43729
43730 2007-02-04  Bruno Haible  <bruno@clisp.org>
43731
43732         New module mbscasestr, reduced goal of strcasestr.
43733         * modules/mbscasestr: New file.
43734         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
43735         (mbscasestr): Renamed from strcasestr.
43736         * lib/strcasestr.c: Don't include mbuiter.h.
43737         (strcasestr): Remove support for multibyte locales.
43738         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
43739         Change the conditional link warning.
43740         (mbscasestr): New declaration.
43741         * m4/mbscasestr.m4: New file.
43742         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
43743         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
43744         REPLACE_STRCASESTR.
43745         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
43746         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43747         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
43748         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
43749         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
43750         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
43751         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
43752         (Depends-on): Remove mbuiter.
43753         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
43754
43755 2007-02-04  Bruno Haible  <bruno@clisp.org>
43756
43757         Simplify handling of strncasecmp.
43758         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
43759         the conditional link warning.
43760         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43761         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
43762         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
43763         * modules/strcase (configure.ac): Don't invoke
43764         gl_STRING_MODULE_INDICATOR.
43765         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
43766
43767 2007-02-04  Bruno Haible  <bruno@clisp.org>
43768
43769         New module mbscasecmp, reduced goal of strcasecmp.
43770         * modules/mbscasecmp: New file.
43771         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
43772         (mbscasecmp): Renamed from strcasecmp.
43773         * lib/strcasecmp.c: Don't include mbuiter.h.
43774         (strcasecmp): Remove support for multibyte locales.
43775         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
43776         Change the conditional link warning.
43777         (mbscasecmp): New declaration.
43778         * m4/mbscasecmp.m4: New file.
43779         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
43780         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
43781         REPLACE_STRCASECMP.
43782         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
43783         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43784         GNULIB_MBSCASECMP.
43785         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
43786         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
43787         * modules/strcase (Files): Remove m4/mbrtowc.m4.
43788         (Depends-on): Remove mbuiter.
43789         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
43790
43791 2007-02-04  Bruno Haible  <bruno@clisp.org>
43792
43793         New module mbsstr. Remove module strstr.
43794         * modules/mbsstr: New file.
43795         * modules/strstr: Remove file.
43796         * lib/mbsstr.c: Renamed from lib/strstr.c.
43797         (mbsstr): Renamed from strstr.
43798         * lib/string_.h (strstr): Remove declaration. Change the conditional
43799         link warning.
43800         (mbsstr): New declaration.
43801         * m4/mbsstr.m4: New file.
43802         * m4/strstr.m4: Remove file.
43803         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
43804         REPLACE_STRSTR.
43805         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
43806         Don't initialize GNULIB_STRSTR.
43807         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
43808         substitute GNULIB_STRSTR and REPLACE_STRSTR.
43809         * MODULES.html.sh (Internationalization functions): Add mbsstr.
43810         (Support for systems lacking ANSI C 89): Remove strstr.
43811
43812 2007-02-04  Bruno Haible  <bruno@clisp.org>
43813
43814         New module mbsrchr.
43815         * modules/mbsrchr: New file.
43816         * lib/mbsrchr.c: New file.
43817         * lib/string_.h (strrchr): Add a conditional link warning.
43818         (mbsrchr): New declaration.
43819         * m4/mbsrchr.m4: New file.
43820         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43821         GNULIB_MBSRCHR.
43822         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
43823         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
43824
43825 2007-02-04  Bruno Haible  <bruno@clisp.org>
43826
43827         New module mbschr.
43828         * modules/mbschr: New file.
43829         * lib/mbschr.c: New file.
43830         * lib/string_.h (strchr): Add a conditional link warning.
43831         (mbschr): New declaration.
43832         * m4/mbschr.m4: New file.
43833         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43834         GNULIB_MBSCHR.
43835         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
43836         * MODULES.html.sh (Internationalization functions): Add mbschr.
43837
43838 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
43839
43840         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
43841
43842         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
43843
43844 2007-02-04  Bruno Haible  <bruno@clisp.org>
43845
43846         New module description section 'configure.ac-early'.
43847         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
43848         (func_get_autoconf_early_snippet): New function.
43849         (func_import, func_create_testdir): Use it. Remove special cases for
43850         modules 'extensions' and 'lock'.
43851         * modules/extensions (configure.ac-early): Require
43852         gl_USE_SYSTEM_EXTENSIONS.
43853         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
43854
43855 2007-02-04  Bruno Haible  <bruno@clisp.org>
43856
43857         Make use of gcj-4.3's -fsource and -ftarget option.
43858         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
43859         and if so try the options -fsource and -ftarget.
43860         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
43861         source_version, ftarget_option, target_version arguments.
43862         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
43863         (is_envjavac_oldgcj_14_14_usable): Renamed from
43864         is_envjavac_gcj_14_14_usable.
43865         (is_envjavac_oldgcj_14_13_usable): Renamed from
43866         is_envjavac_gcj_14_13_usable.
43867         (is_gcj_present): Update.
43868         (is_gcj_43, is_gcj43_usable): New functions.
43869         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
43870         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
43871         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
43872         try the options -fsource and -ftarget.
43873
43874 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
43875
43876         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
43877         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
43878         larger value.
43879
43880 2007-02-03  Jim Meyering  <jim@meyering.net>
43881
43882         Give tools a better chance to allocate space for very large buffers.
43883         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
43884
43885         Make pwd and readlink work also when run with an unreadable parent dir
43886         on systems with openat support.
43887         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
43888         provided getcwd function, even when we have openat support.
43889         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
43890
43891 2007-02-02  Bruno Haible  <bruno@clisp.org>
43892
43893         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
43894         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
43895         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
43896         portability problems if one of these functions is only used on specific
43897         platforms.
43898         Reported by Paul Eggert.
43899
43900 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
43901
43902         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
43903         is causing more trouble than it's curing.
43904         * lib/regex_internal.h (__mempcpy): Remove.
43905         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
43906         (and make the code a tad smaller to boot).
43907         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
43908
43909 2007-02-02  Jim Meyering  <jim@meyering.net>
43910
43911         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
43912         section, not in the Makefile.am: one.
43913
43914 2007-02-02  Eric Blake  <ebb9@byu.net>
43915
43916         * lib/strchrnul.c: Always include config.h first.
43917
43918         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
43919         gnulib strstr is not necessary here.
43920
43921 2007-02-02  Simon Josefsson  <simon@josefsson.org>
43922
43923         * m4/socklen.m4: Fix typo.
43924
43925 2007-02-02  Eric Blake  <ebb9@byu.net>
43926
43927         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
43928         * modules/netinet_in (Makefile.am): Likewise.
43929
43930 2007-02-01  Bruno Haible  <bruno@clisp.org>
43931
43932         * lib/string_.h (GL_LINK_WARNING): New macro.
43933         (strcasecmp, strstr, strcasestr): If provided by the system,
43934         conditionally define as a macro that leads to a warning instead of to
43935         an error.
43936         (strncasecmp): Conditionally define as a macro that leads to a warning.
43937
43938 2007-02-01  Karl Berry  <karl@gnu.org>
43939
43940         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
43941
43942 2007-02-01  Bruno Haible  <bruno@clisp.org>
43943
43944         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
43945         renamings.
43946
43947 2007-02-01  Eric Blake  <ebb9@byu.net>
43948
43949         * modules/regex (Depends-on): Revert dependence on mempcpy.
43950         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
43951         module's definition of mempcpy.
43952         Reported by Paul Eggert.
43953
43954 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
43955
43956         * lib/string_.h: If the gnulib module XYZ is not present, undefine
43957         the symbol XYZ before redefining it.  This fixes a problem with
43958         programs that don't use XYZ, when compiled on systems that define
43959         XYZ to something else.
43960
43961 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
43962
43963         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
43964         occurs when "mkdir -m foo" creates a setgid directory that is (1)
43965         writeable to group or other and (2) is intended to have a special
43966         mode bit that is set or cleared.  In such a case, the directory
43967         should be neither group- nor other-writeable until the special
43968         mode bits are right.
43969
43970 2007-01-31  Eric Blake  <ebb9@byu.net>
43971
43972         * modules/mountlist (Depends-on): Add strstr.
43973
43974         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
43975         bug.
43976         * modules/string (Makefile.am): Remove redundant replacement.
43977         * modules/regex (Depends-on): Add mempcpy.
43978
43979 2007-01-31  Bruno Haible  <bruno@clisp.org>
43980
43981         New module description field 'Link'.
43982         * gnulib-tool (func_usage): Document --extract-link-directive.
43983         (sed_extract_prog): Recognize 'Link' directive.
43984         (func_get_link_directive): New function.
43985         (func_import): Show summary of link directives.
43986         Handle --extract-link-directive option.
43987         * modules/acl (Link): New section.
43988         * modules/clock-time (Link): New section.
43989         * modules/euidaccess (Link): New section.
43990         * modules/gettext (Link): New section.
43991         * modules/iconv (Link): New section.
43992         * modules/lock (Link): New section.
43993         * modules/nanosleep (Link): New section.
43994         * modules/readline (Link): New section.
43995
43996 2007-01-27  Bruno Haible  <bruno@clisp.org>
43997
43998         Enforce the use of gnulib modules for unportable <string.h> functions.
43999         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
44000         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
44001         (gl_HEADER_STRING_H_BODY): Require it.
44002         * lib/string_.h: If the gnulib module XYZ is not present, redefine
44003         the symbol XYZ to one that gives a link error.
44004         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
44005         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
44006         * modules/mempcpy (configure.ac): Likewise.
44007         * modules/memrchr (configure.ac): Likewise.
44008         * modules/stpcpy (configure.ac): Likewise.
44009         * modules/stpncpy (configure.ac): Likewise.
44010         * modules/strcase (configure.ac): Likewise.
44011         * modules/strcasestr (configure.ac): Likewise.
44012         * modules/strchrnul (configure.ac): Likewise.
44013         * modules/strdup (configure.ac): Likewise.
44014         * modules/strndup (configure.ac): Likewise.
44015         * modules/strnlen (configure.ac): Likewise.
44016         * modules/strpbrk (configure.ac): Likewise.
44017         * modules/strsep (configure.ac): Likewise.
44018         * modules/strstr (configure.ac): Likewise.
44019         * modules/strtok_r (configure.ac): Likewise.
44020
44021 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
44022
44023         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
44024
44025 2007-01-30  Jim Meyering  <jim@meyering.net>
44026
44027         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
44028
44029 2007-01-29  Bruno Haible  <bruno@clisp.org>
44030
44031         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
44032         * lib/execute.c: Likewise.
44033         * lib/pipe.c: Likewise.
44034         * lib/printf-args.h: Likewise.
44035         * lib/printf-args.c: Likewise.
44036         * lib/printf-parse.c: Likewise.
44037         * lib/vasnprintf.c: Likewise.
44038
44039 2007-01-29  Eric Blake  <ebb9@byu.net>
44040
44041         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
44042         declaration.
44043
44044 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
44045
44046         * lib/strptime.h (strptime): Use 'restrict' for args where
44047         POSIX requires this.
44048         * lib/strptime.c (strptime): Likewise.
44049         Change license notice from LGPL to GPL, since gnulib-tool will
44050         change this as needed.
44051         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
44052         defined.
44053         Include "strptime.h" first, to check interface.
44054         Do not #undef _LIBC and _NL_CURRENT.
44055         Do not include <stdlib.h>; no longer needed.
44056         Include "time_r.h" and declare ptime_locale_status
44057         only if _LIBC is not defined.
44058         (__P): Remove unused macro.
44059         (match_string): Bring back glibc version, but use it only if _LIBC
44060         is defined.
44061         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
44062         Remove unnecessary assertion and abort() call.
44063         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
44064         * m4/strptime.m4: Fix serial number comment.
44065         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
44066         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
44067         (Depends-on): Add time_r.
44068
44069 2007-01-29  Bruno Haible  <bruno@clisp.org>
44070
44071         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44072         strptime.
44073         * modules/strptime (Depends-on): Add stdbool.
44074         * lib/strptime.h: Include <time.h> always. Add comments.
44075
44076 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
44077
44078         * modules/strptime: New file.
44079         * lib/strptime.h: New file.
44080         * lib/strptime.c: New file.
44081         * m4/strptime.m4: New file.
44082
44083 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
44084
44085         * MODULES.html.sh: New module mpsort.
44086         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
44087
44088         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
44089         a circularity problem with HP-UX ia64 reported by Bob Proulx in
44090         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
44091         All uses changed.
44092         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
44093         All uses changed.
44094         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
44095         to _Restrict_.
44096         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
44097         the parameter matches the prototype.
44098
44099 2007-01-28  Jim Meyering  <jim@meyering.net>
44100
44101         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
44102         sys/time.h here, reverting that part of the previous patch:
44103         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
44104
44105 2007-01-28  Bruno Haible  <bruno@clisp.org>
44106
44107         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
44108         value of $(SYS_TIME_H).
44109         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
44110         remove it conditionally, too. [added by Jim Meyering]
44111         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
44112         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
44113         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
44114         GETTIMEOFDAY_REPLACEMENT to 1.
44115
44116 2007-01-28  Bruno Haible  <bruno@clisp.org>
44117
44118         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
44119         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
44120         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
44121         Set UNISTD_H instead of UNISTD_H2.
44122         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
44123
44124 2007-01-28  Bruno Haible  <bruno@clisp.org>
44125
44126         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
44127         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
44128
44129 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44130
44131         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
44132         (func_create_testdir): Ensure C locale for `grep' and `tr'
44133         character ranges.
44134         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
44135         ACLOCAL_AMFLAGS parsing state machine.
44136
44137 2007-01-27  Bruno Haible  <bruno@clisp.org>
44138
44139         * modules/unistr/base: Update.
44140
44141 2007-01-27  Bruno Haible  <bruno@clisp.org>
44142
44143         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
44144         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
44145         * modules/unistr/u32-mbtouc-unsafe: Renamed from
44146         modules/unistr/u32-mbtouc.
44147         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
44148         * lib/unistr.h: Update.
44149         * lib/linebreak.c: Update.
44150         * modules/unistr/u32-mbtouc: Renamed from
44151         modules/unistr/u32-mbtouc-safe.
44152         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
44153         * lib/unistr.h: Update.
44154         * lib/unistr/u32-to-u8.c: Update.
44155         * lib/unistr/u32-to-u16.c: Update.
44156
44157 2007-01-27  Bruno Haible  <bruno@clisp.org>
44158
44159         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
44160         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
44161         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
44162         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
44163         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
44164         * modules/unistr/u16-mbtouc-unsafe: Renamed from
44165         modules/unistr/u16-mbtouc.
44166         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
44167         * lib/unistr.h: Update.
44168         * lib/linebreak.c: Update.
44169         * modules/linebreak: Update.
44170         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
44171         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
44172         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
44173         * modules/unistr/u16-mbtouc: Renamed from
44174         modules/unistr/u16-mbtouc-safe.
44175         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
44176         * lib/unistr.h: Update.
44177         * lib/unistr/u16-to-u8.c: Update.
44178         * modules/unistr/u16-to-u8: Update.
44179         * lib/unistr/u16-to-u32.c: Update.
44180         * modules/unistr/u16-to-u32: Update.
44181
44182 2007-01-27  Bruno Haible  <bruno@clisp.org>
44183
44184         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
44185         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
44186         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
44187         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
44188         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
44189         * modules/unistr/u8-mbtouc-unsafe: Renamed from
44190         modules/unistr/u8-mbtouc.
44191         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
44192         * lib/unistr.h: Update.
44193         * lib/striconveh.c: Update.
44194         * modules/striconveh: Update.
44195         * lib/linebreak.c: Update.
44196         * modules/linebreak: Update.
44197         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
44198         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
44199         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
44200         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
44201         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
44202         * lib/unistr.h: Update.
44203         * lib/striconveh.c: Update.
44204         * modules/striconveh: Update.
44205         * lib/unistr/u8-to-u16.c: Update.
44206         * modules/unistr/u8-to-u16: Update.
44207         * lib/unistr/u8-to-u32.c: Update.
44208         * modules/unistr/u8-to-u32: Update.
44209
44210 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44211
44212         Sync from Libtool.
44213         * lib/argz.c: Do not include strings.h nor memory.h, include
44214         string.h unconditionally.  Patch by Simon Josefsson.
44215
44216 2007-01-27  Bruno Haible  <bruno@clisp.org>
44217
44218         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
44219         from gl_HEADER_STRING_H_BODY.
44220         (gl_HEADER_STRING_H_BODY): Require it.
44221         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
44222         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
44223         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
44224         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
44225         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
44226         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
44227         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44228         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
44229         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
44230         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
44231         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
44232         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
44233         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
44234         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
44235         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
44236
44237 2007-01-27  Bruno Haible  <bruno@clisp.org>
44238
44239         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
44240         check_PROGRAMS into noinst_PROGRAMS.
44241         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
44242         check_PROGRAMS in this case.
44243         (func_import): Set for_test to false.
44244         (func_create_testdir): Set for_test to true.
44245
44246 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
44247             Bruno Haible  <bruno@clisp.org>
44248
44249         * modules/strcasestr (Files): Remove lib/strcasestr.h.
44250         (Depends-on): Add string.
44251         (Includes): Use <string.h> instead of strcasestr.h.
44252         * modules/string (Makefile.am): Also substitute the value of
44253         REPLACE_STRCASESTR.
44254         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
44255         assume strcasestr is declared in <string.h> not <strings.h>. Also
44256         set REPLACE_STRCASESTR.
44257         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
44258         REPLACE_STRCASESTR.
44259         * lib/strcasestr.h: Remove file.
44260         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
44261         * lib/string_.h (strcasestr): New declaration.
44262
44263 2007-01-27  Bruno Haible  <bruno@clisp.org>
44264
44265         * lib/string_.h: Use 'extern'.
44266
44267 2007-01-27  Jim Meyering  <jim@meyering.net>
44268
44269         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
44270         of set-but-not-used local, "q".
44271
44272         * lib/mempcpy.c: Include <config.h> before <string.h>.
44273         This fixes a compilation error on HP-UX, due to the system's
44274         "restrict"-using mempcpy prototype.
44275
44276 2007-01-26  Bruno Haible  <bruno@clisp.org>
44277
44278         Small optimization.
44279         * lib/javacomp.c: Include c-strstr.h.
44280          (is_envjavac_gcj): Use c_strstr instead of strstr.
44281         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
44282
44283 2007-01-26  Bruno Haible  <bruno@clisp.org>
44284
44285         * MODULES.html.sh (Unicode string functions): Add the new modules.
44286
44287         * modules/uniconv/u32-strconv-to-locale: New file.
44288         * lib/uniconv/u32-strconv-to-locale.c: New file.
44289
44290         * modules/uniconv/u16-strconv-to-locale: New file.
44291         * lib/uniconv/u16-strconv-to-locale.c: New file.
44292
44293         * modules/uniconv/u8-strconv-to-locale: New file.
44294         * lib/uniconv/u8-strconv-to-locale.c: New file.
44295
44296         * modules/uniconv/u32-strconv-from-locale: New file.
44297         * lib/uniconv/u32-strconv-from-locale.c: New file.
44298
44299         * modules/uniconv/u16-strconv-from-locale: New file.
44300         * lib/uniconv/u16-strconv-from-locale.c: New file.
44301
44302         * modules/uniconv/u8-strconv-from-locale: New file.
44303         * lib/uniconv/u8-strconv-from-locale.c: New file.
44304
44305         * modules/uniconv/u32-strconv-to-enc: New file.
44306         * lib/uniconv/u32-strconv-to-enc.c: New file.
44307         * modules/uniconv/u32-strconv-to-enc-tests: New file.
44308         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
44309
44310         * modules/uniconv/u16-strconv-to-enc: New file.
44311         * lib/uniconv/u16-strconv-to-enc.c: New file.
44312         * lib/uniconv/u-strconv-to-enc.h: New file.
44313         * modules/uniconv/u16-strconv-to-enc-tests: New file.
44314         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
44315
44316         * modules/uniconv/u8-strconv-to-enc: New file.
44317         * lib/uniconv/u8-strconv-to-enc.c: New file.
44318         * modules/uniconv/u8-strconv-to-enc-tests: New file.
44319         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
44320
44321         * modules/uniconv/u32-strconv-from-enc: New file.
44322         * lib/uniconv/u32-strconv-from-enc.c: New file.
44323         * modules/uniconv/u32-strconv-from-enc-tests: New file.
44324         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
44325
44326         * modules/uniconv/u16-strconv-from-enc: New file.
44327         * lib/uniconv/u16-strconv-from-enc.c: New file.
44328         * modules/uniconv/u16-strconv-from-enc-tests: New file.
44329         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
44330
44331         * modules/uniconv/u8-strconv-from-enc: New file.
44332         * lib/uniconv/u8-strconv-from-enc.c: New file.
44333         * lib/uniconv/u-strconv-from-enc.h: New file.
44334         * modules/uniconv/u8-strconv-from-enc-tests: New file.
44335         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
44336
44337         * modules/uniconv/u32-conv-from-enc: New file.
44338         * lib/uniconv/u32-conv-from-enc.c: New file.
44339         * modules/uniconv/u32-conv-from-enc-tests: New file.
44340         * tests/uniconv/test-u32-conv-from-enc.c: New file.
44341
44342         * modules/uniconv/u16-conv-from-enc: New file.
44343         * lib/uniconv/u16-conv-from-enc.c: New file.
44344         * lib/uniconv/u-conv-from-enc.h: New file.
44345         * modules/uniconv/u16-conv-from-enc-tests: New file.
44346         * tests/uniconv/test-u16-conv-from-enc.c: New file.
44347
44348         * modules/uniconv/u8-conv-from-enc: New file.
44349         * lib/uniconv/u8-conv-from-enc.c: New file.
44350         * modules/uniconv/u8-conv-from-enc-tests: New file.
44351         * tests/uniconv/test-u8-conv-from-enc.c: New file.
44352
44353         * modules/uniconv/base: New file.
44354         * lib/uniconv.h: New file.
44355
44356 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
44357
44358         * doc/gnulib-tool.texi (Initial import): Update to match current
44359         behavior with strdup module.
44360         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
44361         * lib/memmem.h: Remove; all uses removed.  This is now done
44362         by <string.h>.
44363         * lib/mempcpy.h: Likewise.
44364         * lib/memrchr.h: Likewise.
44365         * lib/stpcpy.h: Likewise.
44366         * lib/stpncpy.h: Likewise.
44367         * lib/strcase.h: Likewise.
44368         * lib/strchrnul.h: Likewise.
44369         * lib/strdup.h: Likewise.
44370         * lib/strndup.h: Likewise.
44371         * lib/strnlen.h: Likewise.
44372         * lib/strpbrk.h: Likewise.
44373         * lib/strsep.h: Likewise.
44374         * lib/strstr.h: Likewise.
44375         * lib/strtok_r.h: Likewise.
44376         * lib/string_.h: New file.
44377         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
44378         Rely on <string.h> instead.
44379         * lib/canon-host.c: Likewise.
44380         * lib/chdir-long.c: Likewise.
44381         * lib/concatpath.c: Likewise.
44382         * lib/exclude.c: Likewise.
44383         * lib/fchdir.c: Likewise.
44384         * lib/getaddrinfo.c: Likewise.
44385         * lib/getcwd.c: Likewise.
44386         * lib/getsubopt.c: Likewise.
44387         * lib/glob.c: Likewise.
44388         * lib/hard-locale.c: Likewise.
44389         * lib/iconvme.c: Likewise.
44390         * lib/javacomp.c: Likewise.
44391         * lib/mempcpy.c: Likewise.
44392         * lib/memrchr.c: Likewise.
44393         * lib/regex_internal.h: Likewise.
44394         * lib/stpncpy.c: Likewise.
44395         * lib/strcasecmp.c: Likewise.
44396         * lib/strchrnul.c: Likewise.
44397         * lib/strdup.c: Likewise.
44398         * lib/striconv.c: Likewise.
44399         * lib/striconveh.c: Likewise.
44400         * lib/striconveha.c: Likewise.
44401         * lib/strncasecmp.c: Likewise.
44402         * lib/strndup.c: Likewise.
44403         * lib/strnlen.c: Likewise.
44404         * lib/strsep.c: Likewise.
44405         * lib/strstr.c: Likewise.
44406         * lib/strtok_r.c: Likewise.
44407         * lib/userspec.c: Likewise.
44408         * lib/w32spawn.h: Likewise.
44409         * lib/xstrndup.c: Likewise.
44410         * lib/mountlist.c (strstr): Remove decl.
44411         * m4/string_h.m4: New file.
44412         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
44413         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
44414         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
44415         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
44416         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
44417         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
44418         Set REPLACE_STRCASECMP if necessary.
44419         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
44420         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
44421         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
44422         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
44423         HAVE_DECL_STRDUP if necessary.
44424         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
44425         since gl_FUNC_STRNDUP does that now.
44426         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
44427         Check for decl here...
44428         (gl_PREREQ_STRNLEN): ... not here.
44429         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
44430         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
44431         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
44432         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
44433         necessary.
44434         * modules/string: New file.
44435         * modules/memmem (Files): Remove special-purpose include file.
44436         (Depends-on): Add string.
44437         (Include): Include <string.h>, not the removed file.
44438         * modules/mempcpy: Likewise.
44439         * modules/memrchr: Likewise.
44440         * modules/stpcpy: Likewise.
44441         * modules/stpncpy: Likewise.
44442         * modules/strcase: Likewise.
44443         * modules/strchrnul: Likewise.
44444         * modules/strdup: Likewise.
44445         * modules/strndup: Likewise.
44446         * modules/strnlen: Likewise.
44447         * modules/strpbrk: Likewise.
44448         * modules/strsep: Likewise.
44449         * modules/strstr: Likewise.
44450         * modules/strtok_r: Likewise.
44451         * tests/test-dirname.c: Don't include "strdup.h", since
44452         <string.h> now suffices.
44453         * tests/test-memmem.c: Don't include "memmem.h", since
44454         <string.h> now suffices.
44455
44456 2007-01-25  Bruno Haible  <bruno@clisp.org>
44457
44458         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
44459         *resultp is 0.
44460
44461         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
44462         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
44463         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
44464         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
44465
44466         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
44467         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
44468         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
44469         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
44470         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
44471         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
44472
44473 2007-01-24  Bruno Haible  <bruno@clisp.org>
44474
44475         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
44476         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
44477         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
44478         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
44479         gl_FUNC_FTS_CORE.
44480         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
44481         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
44482         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
44483         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
44484         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
44485         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
44486         gl_FUNC_FCHOWNAT.
44487         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
44488         gl_FUNC_STRFTIME.
44489         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
44490         Reported by Ralf Wildenhues.
44491
44492 2007-01-24  Bruno Haible  <bruno@clisp.org>
44493
44494         Drop AC_REQUIRE calls that are redundant with the module dependencies.
44495         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
44496         gl_GETADDRINFO.
44497         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
44498         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
44499         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
44500
44501 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
44502
44503         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
44504         Don't use 'exit'; just return from 'main'.
44505         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
44506
44507         * lib/fnmatch_.h: Readjust white space and comments to match
44508         glibc, to avoid spurious diffs.
44509
44510 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44511
44512         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
44513         2004-12-01 change by Jakub Jelinek, since this code won't compile
44514         if !LIBC.  Problem reported by Bob Proulx.
44515
44516 2007-01-23  Bruno Haible  <bruno@clisp.org>
44517
44518         * lib/striconveh.c: Include c-strcaseeq.h.
44519         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
44520         * modules/striconveh (Depends-on): Add c-strcaseeq.
44521
44522 2007-01-23  Bruno Haible  <bruno@clisp.org>
44523
44524         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
44525
44526         * modules/c-strcaseeq: New file.
44527         * lib/c-strcaseeq.h: New file.
44528
44529         * modules/streq: New file.
44530         * lib/streq.h: New file.
44531
44532 2007-01-23  Bruno Haible  <bruno@clisp.org>
44533
44534         * modules/striconveha-tests: New file.
44535         * tests/test-striconveha.c: New file.
44536
44537         * lib/striconveha.h: Include <stdbool.h>.
44538         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
44539         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
44540         (mem_iconveha_notranslit): Renamed from mem_iconveha.
44541         (mem_iconveha): New function.
44542         (str_iconveha_notranslit): Renamed from str_iconveha.
44543         (str_iconveha): New function.
44544         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
44545         c-strcase.
44546
44547 2007-01-23  Bruno Haible  <bruno@clisp.org>
44548
44549         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
44550         encodings without forgiving before trying any encoding with handler.
44551         (str_iconveha): Try all encodings without forgiving before trying any
44552         encoding with handler.
44553
44554 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44555
44556         Import the following changes from libc.
44557
44558         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
44559
44560         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
44561
44562         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
44563
44564         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
44565         normal_bracket label.
44566
44567         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
44568
44569         [BZ #361]
44570         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
44571         to normal_bracket after fetching the next character.
44572
44573 2007-01-22  Bruno Haible  <bruno@clisp.org>
44574
44575         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
44576         argument.
44577         * lib/striconveh.c (iconv_carefully_1): New function.
44578         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
44579         argument.
44580         (str_cd_iconveh): Update.
44581         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
44582         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
44583         * tests/test-striconveh.c (MAGIC): New macro.
44584         (new_offsets): New function.
44585         (main): Test call with and without offsets.
44586
44587 2007-01-22  Bruno Haible  <bruno@clisp.org>
44588
44589         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
44590         * modules/sys_select (Makefile.am): Likewise.
44591         * modules/sys_socket (Makefile.am): Likewise.
44592         * modules/sys_time (Makefile.am): Likewise.
44593
44594 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
44595
44596         * modules/gettimeofday (License): Change from GPL to LGPL, since
44597         gettimeofday is a library function.
44598
44599 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44600
44601         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
44602
44603 2007-01-21  Bruno Haible  <bruno@clisp.org>
44604
44605         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
44606
44607 2007-01-21  Bruno Haible  <bruno@clisp.org>
44608
44609         * modules/striconveha: New file.
44610         * lib/striconveha.h: New file.
44611         * lib/striconveha.c: New file.
44612         * MODULES.html.sh (Internationalization functions): Add striconveha.
44613         * lib/striconv.c (str_iconv): Optimize the case of an empty input
44614         string.
44615         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
44616
44617 2007-01-21  Bruno Haible  <bruno@clisp.org>
44618
44619         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
44620         * lib/striconveh.c (str_iconveh): Likewise.
44621
44622 2007-01-21  Bruno Haible  <bruno@clisp.org>
44623
44624         * lib/striconveh.h (mem_iconveh): New declaration.
44625         * lib/striconveh.c (mem_iconveh): New function.
44626         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
44627
44628 2007-01-21  Bruno Haible  <bruno@clisp.org>
44629
44630         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
44631
44632         * lib/striconveh.h (mem_cd_iconveh): Change specification.
44633         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
44634         original result buffer.
44635         (str_cd_iconveh): Update.
44636         * tests/test-striconveh.c (main): Update.
44637
44638         * lib/striconv.h (mem_cd_iconv): Change specification.
44639         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
44640         result buffer.
44641         (str_cd_iconv): Update.
44642         * tests/test-striconv.c (main): Update.
44643
44644 2007-01-21  Bruno Haible  <bruno@clisp.org>
44645
44646         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
44647
44648 2007-01-20  Jim Meyering  <jim@meyering.net>
44649
44650         * lib/userspec.c (parse_with_separator): If a user or group string
44651         starts with "+", skip the corresponding name-to-ID look-up, since
44652         such a look-up must fail: user and group names may not include "+".
44653
44654 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
44655
44656         * lib/poll.c: Include sys/time.h and time.h unconditionally,
44657         since we now assume the sys_time module.
44658         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
44659         check for sys/time.h; no longer needed.
44660         * modules/poll (Depends-on): Depend on sys_time.
44661
44662 2007-01-18  Bruno Haible  <bruno@clisp.org>
44663
44664         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
44665         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
44666
44667         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
44668         gettimeofday.
44669
44670         * tests/test-gettimeofday.c: Include <time.h>.
44671         (dummy): Remove variable.
44672
44673         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
44674         gl_HEADER_SYS_TIME_H.
44675         (gl_HEADER_SYS_TIME_H): New macro.
44676
44677         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
44678         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44679         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
44680         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
44681         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44682         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
44683         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
44684         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44685         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
44686         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
44687         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44688
44689         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
44690         last change; it caused a compilation error when cross-compiling to
44691         Cygwin.
44692
44693 2007-01-18  Jim Meyering  <jim@meyering.net>
44694
44695         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
44696         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
44697         than the race-prone "test -d sys || mkdir sys".
44698         (configure.ac): Use AC_PROG_MKDIR_P.
44699         * modules/sys_select: Likewise.
44700         * modules/sys_socket: Likewise.
44701         * modules/sys_time: Likewise.
44702
44703 2007-01-18  Eric Blake  <ebb9@byu.net>
44704
44705         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
44706         replace gettimeofday.
44707         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
44708         name, to avoid infinite recursion.
44709
44710 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
44711
44712         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
44713         module sys_time.
44714         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
44715         assume timespec.h defines struct timeval.
44716         * lib/settime.c: Likewise.
44717         * lib/utimens.c: Likewise.
44718         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
44719         since we now assume the gettimeofday module.
44720         * lib/tempname.c (__gen_tempname): Likewise.
44721         * lib/gettimeofday.h: Remove.
44722         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
44723         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
44724         Include <time.h>, for 'time()'.
44725         (localtime_buffer_addr): Also use this workaround if
44726         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
44727         to simplify the uses.  All uses changed.
44728         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
44729         that #undef is inside {}, and 'const' follows type name consistently.
44730         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
44731         (gettimeofday): Do not use the maximum possible value for
44732         tv->tv_usec, since that might break usages other than ls.c.
44733         Instead, we'll leave ls.c alone.  This undoes today's patch
44734         by Bruno.  Add a compile-time warning for 1s-clock resolution;
44735         we've never observed the problem but might as well keep the
44736         canary.
44737         * lib/nanosleep.c: Include timespec.h first, for interface check.
44738         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
44739         now assume the sys_time module.
44740         * lib/tempname.c: Likewise.
44741         * lib/timespec.h: Likewise.
44742         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
44743         needed.
44744         * lib/strftime.c: Likewise.
44745         * lib/timespec.h: Likewise.
44746         * lib/posixtm.c: Include posixtm.h first, for interface check.
44747         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
44748         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
44749         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
44750         * lib/sys_time_.h: New file.
44751         * lib/timespec.h (struct timespec): Use long int, not long.
44752         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
44753         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
44754         Remove obsolescent call to AC_HEADER_TIME.
44755         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
44756         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44757         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
44758         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
44759         Likewise.
44760         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
44761         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
44762         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
44763         into the sys_time module.  Check for gettimeofday just once.
44764         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
44765         for gettimeofday signature to just check the signature.  Merely
44766         compile it, since linking doesn't test signature.  Improve test for
44767         whether gettimeofday.o is actually needed.
44768         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
44769         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
44770         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
44771         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44772         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
44773         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
44774         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
44775         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
44776         than worrying about sys/time.h.
44777         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
44778         Don't bother worrying about TIME_WITH_SYS_TIME.
44779         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
44780         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
44781         * m4/sys_time_h.m4: New file.
44782         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
44783         Don't include sys/time.h.  Return from main rather than exiting.
44784         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
44785         all uses changed.
44786         * modules/gethrxtime (Depends-on): Add sys_time.
44787         * modules/gettime (Depends-on): Likewise.
44788         * modules/gettimeofday (Depends-on): Likewise.
44789         * modules/nanosleep (Depends-on): Likewise.
44790         * modules/settime (Depends-on): Likewise.
44791         * modules/tempname (Depends-on): Likewise.
44792         * modules/utimens (Depends-on): Likewise.
44793         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
44794         (Include:) Change back to <sys/time.h>.
44795         (Maintainer:) Add self.
44796         * modules/sys_time: New file.
44797         * modules/tempname (Depends-on): Add gettimeofday.
44798         * tests/test-gettimeofday.c: Include <sys/time.h>
44799         rather than gettimeofday.h.
44800
44801 2007-01-17  Bruno Haible  <bruno@clisp.org>
44802
44803         * gnulib-tool (func_get_license): Revert last patch. Instead, let
44804         the license default to GPL.
44805         (func_create_testdir): Don't complain if a module is LGPL and its
44806         tests module depends on GPLed modules.
44807
44808 2007-01-17  Bruno Haible  <bruno@clisp.org>
44809
44810         * lib/gettimeofday.c (gettimeofday): Add code for the case
44811         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
44812         maximum possible value for tv->tv_usec, rather than the minimum one.
44813
44814 2005-10-08  Martin Lambers  <marlam@marlam.de>
44815 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
44816 2007-01-16  Bruno Haible  <bruno@clisp.org>
44817
44818         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
44819         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
44820         gl_FUNC_GETTIMEOFDAY.
44821         (Include): Add gettimeofday.h.
44822         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
44823         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
44824         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
44825         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
44826         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
44827         * lib/gettimeofday.h: New file.
44828         * lib/gettimeofday.c: Include <sys/timeb.h>.
44829         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
44830         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44831         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
44832         fall back on time().
44833
44834         * tests/test-gettimeofday.c: New file.
44835         * modules/gettimeofday-tests: New file.
44836
44837 2007-01-16  Eric Blake  <ebb9@byu.net>
44838
44839         * modules/fnmatch (Depends-on): Depend on wchar.
44840         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
44841         * m4/fnmatch.m4: Likewise.
44842         * modules/mbchar (Makefile.am): Assume <wchar.h>.
44843         * m4/mbchar.m4: Likewise.
44844         * modules/mbswidth (Depends-on): Depend on wchar.
44845         * lib/mbswidth.c: Assume <wchar.h>.
44846         * m4/mbswidth.m4: Likewise.
44847         * modules/quotearg (Depends-on): Depend on wchar.
44848         * lib/quotearg.c: Assume <wchar.h>.
44849         * m4/quotearg.m4: Likewise.
44850         * modules/regex (Depends-on): Depend on wchar.
44851         * lib/regex_internal.h: Assume <wchar.h>.
44852         * m4/regex.m4: Likewise.
44853         * modules/stdint (Depends-on): Depend on wchar.
44854         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
44855         * m4/stdint.m4: Likewise.
44856         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
44857         * modules/strftime (Depends-on): Depend on wchar.
44858         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
44859         * modules/strtol (Depends-on): Depend on wchar.
44860         * lib/strtol.c: Assume <wchar.h>.
44861         * modules/wcwidth (Depends-on): Depend on wchar.
44862         * lib/wcwidth.h: Assume <wchar.h>.
44863         * m4/wcwidth.m4: Likewise.
44864
44865 2007-01-16  Bruno Haible  <bruno@clisp.org>
44866
44867         * modules/csharpexec-script: New, created from...
44868         * modules/csharpexec: ... this.
44869
44870 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
44871
44872         * modules/javaexec-script: New, created from...
44873         * modules/javaexec: ... this.
44874
44875 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44876
44877         * modules/poll (Dependencies): Add sys_select.
44878
44879 2007-01-15  Jim Meyering  <jim@meyering.net>
44880
44881         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
44882         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
44883         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
44884         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
44885
44886 2007-01-15  Bruno Haible  <bruno@clisp.org>
44887
44888         * modules/striconveh: New file.
44889         * lib/striconveh.h: New file.
44890         * lib/striconveh.c: New file.
44891         * MODULES.html.sh (Internationalization functions): Add striconveh.
44892
44893         * modules/striconveh-tests: New file.
44894         * tests/test-striconveh.c: New file.
44895
44896 2007-01-15  Bruno Haible  <bruno@clisp.org>
44897
44898         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
44899         not from GNU libiconv or GNU libc.
44900
44901 2007-01-15  Bruno Haible  <bruno@clisp.org>
44902
44903         * doc/gnulib-intro.texi (Copyright): Explain the different license
44904         terms for module descriptions, autoconf macros, tests, documentation.
44905
44906 2007-01-14  Bruno Haible  <bruno@clisp.org>
44907
44908         * modules/striconv-tests: New file.
44909         * tests/test-striconv.c: New file.
44910
44911 2007-01-14  Bruno Haible  <bruno@clisp.org>
44912
44913         * modules/iconv-tests: New file.
44914         * tests/test-iconv.c: New file.
44915
44916 2007-01-14  Bruno Haible  <bruno@clisp.org>
44917
44918         * gnulib-tool (func_get_license): For test modules, use the license of
44919         the main module.
44920
44921 2007-01-14  Bruno Haible  <bruno@clisp.org>
44922
44923         * modules/iconv (Include): Clarify that <iconv.h> can only be included
44924         if iconv is found to exist.
44925
44926 2007-01-14  Bruno Haible  <bruno@clisp.org>
44927
44928         * modules/c-ctype-tests: New file.
44929         * tests/test-c-ctype.c: New file.
44930
44931 2007-01-14  Bruno Haible  <bruno@clisp.org>
44932
44933         * modules/binary-io-tests: New file.
44934         * tests/test-binary-io.sh: New file.
44935         * tests/test-binary-io.c: New file.
44936
44937 2007-01-14  Bruno Haible  <bruno@clisp.org>
44938
44939         * modules/array-oset-tests: New file.
44940         * tests/test-array_oset.c: New file.
44941
44942 2007-01-14  Bruno Haible  <bruno@clisp.org>
44943
44944         * modules/array-list-tests: New file.
44945         * tests/test-array_list.c: New file.
44946
44947 2007-01-14  Bruno Haible  <bruno@clisp.org>
44948
44949         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
44950         and make.
44951         Reported by Simon Josefsson in
44952         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
44953
44954 2007-01-14  Bruno Haible  <bruno@clisp.org>
44955
44956         * modules/allocsa-tests: New file.
44957         * tests/test-allocsa.c: New file.
44958
44959 2007-01-14  Bruno Haible  <bruno@clisp.org>
44960
44961         * modules/fchdir (Depends-on): Add absolute-header.
44962         * modules/unistd (Depends-on): Likewise.
44963
44964 2006-12-30  Bruno Haible  <bruno@clisp.org>
44965
44966         * modules/fchdir: New file.
44967         * modules/unistd (Files): Add lib/unistd_.h.
44968         (Makefile.am): Generate unistd.h from unistd_.h.
44969         * lib/fchdir.c: New file.
44970         * lib/dirent_.h: New file.
44971         * lib/unistd_.h: New file.
44972         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
44973         * m4/fchdir.m4: New file.
44974         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
44975         (gl_HEADER_UNISTD): Invoke it.
44976         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
44977         function.
44978         * lib/backupfile.c (opendir, closedir): Undefine.
44979         * lib/chown.c (open, close): Undefine.
44980         * lib/clean-temp.c (open, close): Undefine.
44981         * lib/copy-file.c (open, close): Undefine.
44982         * lib/execute.c (open, close): Undefine.
44983         * lib/fsusage.c (open, close): Undefine.
44984         * lib/gc-gnulib.c (open, close): Undefine.
44985         * lib/getcwd.c (opendir, closedir): Undefine.
44986         * lib/glob.c (opendir, closedir): Undefine.
44987         * lib/javacomp.c (open, close): Undefine.
44988         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
44989         * lib/openat-proc.c (open, close): Undefine.
44990         * lib/pagealign_alloc.c (open, close): Undefine.
44991         * lib/pipe.c (open, close): Undefine.
44992         * lib/progreloc.c (open, close): Undefine.
44993         * lib/savedir.c (opendir, closedir): Undefine.
44994         * lib/utime.c (open, close): Undefine.
44995         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
44996
44997 2007-01-10  Bruno Haible  <bruno@clisp.org>
44998
44999         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
45000
45001 2007-01-12  Eric Blake  <ebb9@byu.net>
45002
45003         Provide a robust <wchar.h>.  Further simplifications are now
45004         possible in other modules, but not included here.
45005         * modules/wchar: New module.
45006         * m4/wchar.m4: New file.
45007         * lib/wchar_.h: Likewise.
45008         * modules/mbchar (Depends-on): Depend on wchar, as the first use
45009         of the new module.
45010         * MODULES.html.sh (Extended multibyte and wide character utilities):
45011         New section.
45012
45013 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
45014
45015         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
45016         to a reasonable default for memory allocation.
45017         (xreadlink): Don't allocate a huge buffer, to work around a buggy
45018         file system that reports garbage st_size values for symlinks.
45019         Problem reported by Liyang Hu.
45020
45021 2007-01-11  Simon Josefsson  <simon@josefsson.org>
45022
45023         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
45024         Emacs .#* auto-save files).
45025
45026 2007-01-11  Bruno Haible  <bruno@clisp.org>
45027
45028         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
45029         directory.
45030
45031 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
45032
45033         Use @...@ consistently in lib/wctype_.h.
45034         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
45035         on it being set to 1 or 0.
45036         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
45037         go back to AC_SUBSTing it.
45038         * modules/wctype (Makefile.am): Undo previous change.
45039
45040 2007-01-10  Eric Blake  <ebb9@byu.net>
45041
45042         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
45043         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
45044         * modules/wctype (Makefile.am): Likewise.
45045         Reported by Chris McGuire.
45046
45047 2007-01-10  Jim Meyering  <jim@meyering.net>
45048
45049         fts.c: a small readability/maintainability improvement
45050         * lib/fts.c (fts_read): Make this code slightly more readable and
45051         maintainable by hoisting the "sp->fts_cur = p" assignments to
45052         immediately follow the statements that set P.  Derived from
45053         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
45054
45055 2007-01-10  Eric Blake  <ebb9@byu.net>
45056
45057         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
45058         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
45059         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
45060         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
45061         Reported by Chris McGuire.
45062
45063 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45064
45065         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
45066         in sed script.
45067
45068 2007-01-09  Bruno Haible  <bruno@clisp.org>
45069
45070         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
45071         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
45072         variables.
45073         (func_module): Use them.
45074
45075 2007-01-09  Bruno Haible  <bruno@clisp.org>
45076
45077         * modules/unistr/base: New file.
45078         * lib/unistr.h: New file.
45079
45080         * modules/unistr/u8-to-u16: New file.
45081         * lib/unistr/u8-to-u16.c: New file.
45082
45083         * modules/unistr/u8-to-u32: New file.
45084         * lib/unistr/u8-to-u32.c: New file.
45085
45086         * modules/unistr/u16-to-u8: New file.
45087         * lib/unistr/u16-to-u8.c: New file.
45088
45089         * modules/unistr/u16-to-u32: New file.
45090         * lib/unistr/u16-to-u32.c: New file.
45091
45092         * modules/unistr/u32-to-u8: New file.
45093         * lib/unistr/u32-to-u8.c: New file.
45094
45095         * modules/unistr/u32-to-u16: New file.
45096         * lib/unistr/u32-to-u16.c: New file.
45097
45098         * modules/unistr/u8-check: New file.
45099         * modules/unistr/u16-check: New file.
45100         * modules/unistr/u32-check: New file.
45101         * lib/unistr/u8-check.c: New file.
45102         * lib/unistr/u16-check.c: New file.
45103         * lib/unistr/u32-check.c: New file.
45104
45105         * modules/unistr/u8-chr: New file.
45106         * modules/unistr/u16-chr: New file.
45107         * modules/unistr/u32-chr: New file.
45108         * lib/unistr/u8-chr.c: New file.
45109         * lib/unistr/u16-chr.c: New file.
45110         * lib/unistr/u32-chr.c: New file.
45111
45112         * modules/unistr/u8-cmp: New file.
45113         * modules/unistr/u16-cmp: New file.
45114         * modules/unistr/u32-cmp: New file.
45115         * lib/unistr/u8-cmp.c: New file.
45116         * lib/unistr/u16-cmp.c: New file.
45117         * lib/unistr/u32-cmp.c: New file.
45118
45119         * modules/unistr/u8-cpy: New file.
45120         * modules/unistr/u16-cpy: New file.
45121         * modules/unistr/u32-cpy: New file.
45122         * lib/unistr/u8-cpy.c: New file.
45123         * lib/unistr/u16-cpy.c: New file.
45124         * lib/unistr/u32-cpy.c: New file.
45125         * lib/unistr/u-cpy.h: New file.
45126
45127         * modules/unistr/u8-cpy-alloc: New file.
45128         * modules/unistr/u16-cpy-alloc: New file.
45129         * modules/unistr/u32-cpy-alloc: New file.
45130         * lib/unistr/u8-cpy-alloc.c: New file.
45131         * lib/unistr/u16-cpy-alloc.c: New file.
45132         * lib/unistr/u32-cpy-alloc.c: New file.
45133         * lib/unistr/u-cpy-alloc.h: New file.
45134
45135         * modules/unistr/u8-endswith: New file.
45136         * modules/unistr/u16-endswith: New file.
45137         * modules/unistr/u32-endswith: New file.
45138         * lib/unistr/u8-endswith.c: New file.
45139         * lib/unistr/u16-endswith.c: New file.
45140         * lib/unistr/u32-endswith.c: New file.
45141         * lib/unistr/u-endswith.h: New file.
45142
45143         * modules/unistr/u8-mblen: New file.
45144         * modules/unistr/u16-mblen: New file.
45145         * modules/unistr/u32-mblen: New file.
45146         * lib/unistr/u8-mblen.c: New file.
45147         * lib/unistr/u16-mblen.c: New file.
45148         * lib/unistr/u32-mblen.c: New file.
45149
45150         * modules/unistr/u8-mbtouc: New file.
45151         * modules/unistr/u16-mbtouc: New file.
45152         * modules/unistr/u32-mbtouc: New file.
45153         * lib/unistr/u8-mbtouc.c: New file.
45154         * lib/unistr/u16-mbtouc.c: New file.
45155         * lib/unistr/u32-mbtouc.c: New file.
45156
45157         * modules/unistr/u8-mbtouc-safe: New file.
45158         * modules/unistr/u16-mbtouc-safe: New file.
45159         * modules/unistr/u32-mbtouc-safe: New file.
45160         * lib/unistr/u8-mbtouc-safe.c: New file.
45161         * lib/unistr/u16-mbtouc-safe.c: New file.
45162         * lib/unistr/u32-mbtouc-safe.c: New file.
45163
45164         * modules/unistr/u8-move: New file.
45165         * modules/unistr/u16-move: New file.
45166         * modules/unistr/u32-move: New file.
45167         * lib/unistr/u8-move.c: New file.
45168         * lib/unistr/u16-move.c: New file.
45169         * lib/unistr/u32-move.c: New file.
45170         * lib/unistr/u-move.h: New file.
45171
45172         * modules/unistr/u8-next: New file.
45173         * modules/unistr/u16-next: New file.
45174         * modules/unistr/u32-next: New file.
45175         * lib/unistr/u8-next.c: New file.
45176         * lib/unistr/u16-next.c: New file.
45177         * lib/unistr/u32-next.c: New file.
45178
45179         * modules/unistr/u8-prev: New file.
45180         * modules/unistr/u16-prev: New file.
45181         * modules/unistr/u32-prev: New file.
45182         * lib/unistr/u8-prev.c: New file.
45183         * lib/unistr/u16-prev.c: New file.
45184         * lib/unistr/u32-prev.c: New file.
45185
45186         * modules/unistr/u8-set: New file.
45187         * modules/unistr/u16-set: New file.
45188         * modules/unistr/u32-set: New file.
45189         * lib/unistr/u8-set.c: New file.
45190         * lib/unistr/u16-set.c: New file.
45191         * lib/unistr/u32-set.c: New file.
45192         * lib/unistr/u-set.h: New file.
45193
45194         * modules/unistr/u8-startswith: New file.
45195         * modules/unistr/u16-startswith: New file.
45196         * modules/unistr/u32-startswith: New file.
45197         * lib/unistr/u8-startswith.c: New file.
45198         * lib/unistr/u16-startswith.c: New file.
45199         * lib/unistr/u32-startswith.c: New file.
45200         * lib/unistr/u-startswith.h: New file.
45201
45202         * modules/unistr/u8-stpcpy: New file.
45203         * modules/unistr/u16-stpcpy: New file.
45204         * modules/unistr/u32-stpcpy: New file.
45205         * lib/unistr/u8-stpcpy.c: New file.
45206         * lib/unistr/u16-stpcpy.c: New file.
45207         * lib/unistr/u32-stpcpy.c: New file.
45208         * lib/unistr/u-stpcpy.h: New file.
45209
45210         * modules/unistr/u8-stpncpy: New file.
45211         * modules/unistr/u16-stpncpy: New file.
45212         * modules/unistr/u32-stpncpy: New file.
45213         * lib/unistr/u8-stpncpy.c: New file.
45214         * lib/unistr/u16-stpncpy.c: New file.
45215         * lib/unistr/u32-stpncpy.c: New file.
45216         * lib/unistr/u-stpncpy.h: New file.
45217
45218         * modules/unistr/u8-strcat: New file.
45219         * modules/unistr/u16-strcat: New file.
45220         * modules/unistr/u32-strcat: New file.
45221         * lib/unistr/u8-strcat.c: New file.
45222         * lib/unistr/u16-strcat.c: New file.
45223         * lib/unistr/u32-strcat.c: New file.
45224         * lib/unistr/u-strcat.h: New file.
45225
45226         * modules/unistr/u8-strchr: New file.
45227         * modules/unistr/u16-strchr: New file.
45228         * modules/unistr/u32-strchr: New file.
45229         * lib/unistr/u8-strchr.c: New file.
45230         * lib/unistr/u16-strchr.c: New file.
45231         * lib/unistr/u32-strchr.c: New file.
45232
45233         * modules/unistr/u8-strcmp: New file.
45234         * modules/unistr/u16-strcmp: New file.
45235         * modules/unistr/u32-strcmp: New file.
45236         * lib/unistr/u8-strcmp.c: New file.
45237         * lib/unistr/u16-strcmp.c: New file.
45238         * lib/unistr/u32-strcmp.c: New file.
45239
45240         * modules/unistr/u8-strcpy: New file.
45241         * modules/unistr/u16-strcpy: New file.
45242         * modules/unistr/u32-strcpy: New file.
45243         * lib/unistr/u8-strcpy.c: New file.
45244         * lib/unistr/u16-strcpy.c: New file.
45245         * lib/unistr/u32-strcpy.c: New file.
45246         * lib/unistr/u-strcpy.h: New file.
45247
45248         * modules/unistr/u8-strcspn: New file.
45249         * modules/unistr/u16-strcspn: New file.
45250         * modules/unistr/u32-strcspn: New file.
45251         * lib/unistr/u8-strcspn.c: New file.
45252         * lib/unistr/u16-strcspn.c: New file.
45253         * lib/unistr/u32-strcspn.c: New file.
45254         * lib/unistr/u-strcspn.h: New file.
45255
45256         * modules/unistr/u8-strdup: New file.
45257         * modules/unistr/u16-strdup: New file.
45258         * modules/unistr/u32-strdup: New file.
45259         * lib/unistr/u8-strdup.c: New file.
45260         * lib/unistr/u16-strdup.c: New file.
45261         * lib/unistr/u32-strdup.c: New file.
45262         * lib/unistr/u-strdup.h: New file.
45263
45264         * modules/unistr/u8-strlen: New file.
45265         * modules/unistr/u16-strlen: New file.
45266         * modules/unistr/u32-strlen: New file.
45267         * lib/unistr/u8-strlen.c: New file.
45268         * lib/unistr/u16-strlen.c: New file.
45269         * lib/unistr/u32-strlen.c: New file.
45270         * lib/unistr/u-strlen.h: New file.
45271
45272         * modules/unistr/u8-strmblen: New file.
45273         * modules/unistr/u16-strmblen: New file.
45274         * modules/unistr/u32-strmblen: New file.
45275         * lib/unistr/u8-strmblen.c: New file.
45276         * lib/unistr/u16-strmblen.c: New file.
45277         * lib/unistr/u32-strmblen.c: New file.
45278
45279         * modules/unistr/u8-strmbtouc: New file.
45280         * modules/unistr/u16-strmbtouc: New file.
45281         * modules/unistr/u32-strmbtouc: New file.
45282         * lib/unistr/u8-strmbtouc.c: New file.
45283         * lib/unistr/u16-strmbtouc.c: New file.
45284         * lib/unistr/u32-strmbtouc.c: New file.
45285
45286         * modules/unistr/u8-strncat: New file.
45287         * modules/unistr/u16-strncat: New file.
45288         * modules/unistr/u32-strncat: New file.
45289         * lib/unistr/u8-strncat.c: New file.
45290         * lib/unistr/u16-strncat.c: New file.
45291         * lib/unistr/u32-strncat.c: New file.
45292         * lib/unistr/u-strncat.h: New file.
45293
45294         * modules/unistr/u8-strncmp: New file.
45295         * modules/unistr/u16-strncmp: New file.
45296         * modules/unistr/u32-strncmp: New file.
45297         * lib/unistr/u8-strncmp.c: New file.
45298         * lib/unistr/u16-strncmp.c: New file.
45299         * lib/unistr/u32-strncmp.c: New file.
45300
45301         * modules/unistr/u8-strncpy: New file.
45302         * modules/unistr/u16-strncpy: New file.
45303         * modules/unistr/u32-strncpy: New file.
45304         * lib/unistr/u8-strncpy.c: New file.
45305         * lib/unistr/u16-strncpy.c: New file.
45306         * lib/unistr/u32-strncpy.c: New file.
45307         * lib/unistr/u-strncpy.h: New file.
45308
45309         * modules/unistr/u8-strnlen: New file.
45310         * modules/unistr/u16-strnlen: New file.
45311         * modules/unistr/u32-strnlen: New file.
45312         * lib/unistr/u8-strnlen.c: New file.
45313         * lib/unistr/u16-strnlen.c: New file.
45314         * lib/unistr/u32-strnlen.c: New file.
45315         * lib/unistr/u-strnlen.h: New file.
45316
45317         * modules/unistr/u8-strpbrk: New file.
45318         * modules/unistr/u16-strpbrk: New file.
45319         * modules/unistr/u32-strpbrk: New file.
45320         * lib/unistr/u8-strpbrk.c: New file.
45321         * lib/unistr/u16-strpbrk.c: New file.
45322         * lib/unistr/u32-strpbrk.c: New file.
45323         * lib/unistr/u-strpbrk.h: New file.
45324
45325         * modules/unistr/u8-strrchr: New file.
45326         * modules/unistr/u16-strrchr: New file.
45327         * modules/unistr/u32-strrchr: New file.
45328         * lib/unistr/u8-strrchr.c: New file.
45329         * lib/unistr/u16-strrchr.c: New file.
45330         * lib/unistr/u32-strrchr.c: New file.
45331
45332         * modules/unistr/u8-strspn: New file.
45333         * modules/unistr/u16-strspn: New file.
45334         * modules/unistr/u32-strspn: New file.
45335         * lib/unistr/u8-strspn.c: New file.
45336         * lib/unistr/u16-strspn.c: New file.
45337         * lib/unistr/u32-strspn.c: New file.
45338         * lib/unistr/u-strspn.h: New file.
45339
45340         * modules/unistr/u8-strstr: New file.
45341         * modules/unistr/u16-strstr: New file.
45342         * modules/unistr/u32-strstr: New file.
45343         * lib/unistr/u8-strstr.c: New file.
45344         * lib/unistr/u16-strstr.c: New file.
45345         * lib/unistr/u32-strstr.c: New file.
45346         * lib/unistr/u-strstr.h: New file.
45347
45348         * modules/unistr/u8-strtok: New file.
45349         * modules/unistr/u16-strtok: New file.
45350         * modules/unistr/u32-strtok: New file.
45351         * lib/unistr/u8-strtok.c: New file.
45352         * lib/unistr/u16-strtok.c: New file.
45353         * lib/unistr/u32-strtok.c: New file.
45354         * lib/unistr/u-strtok.h: New file.
45355
45356         * modules/unistr/u8-uctomb: New file.
45357         * modules/unistr/u16-uctomb: New file.
45358         * modules/unistr/u32-uctomb: New file.
45359         * lib/unistr/u8-uctomb.c: New file.
45360         * lib/unistr/u16-uctomb.c: New file.
45361         * lib/unistr/u32-uctomb.c: New file.
45362
45363         * MODULES.html.sh (Unicode string functions): Add the new modules.
45364
45365 2007-01-08  Bruno Haible  <bruno@clisp.org>
45366
45367         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
45368         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
45369         subdirectories.
45370
45371 2007-01-08  Karl Berry  <karl@gnu.org>
45372
45373         * doc/error.texi: mention that main() fns must set program_name
45374         when progname is used.
45375
45376 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
45377
45378         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
45379         WCTYPE_H is empty, for the benefit of builds from non-distclean
45380         directories.  Problem reported by Eric Blake in
45381         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
45382
45383 2007-01-08  Bruno Haible  <bruno@clisp.org>
45384
45385         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
45386         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
45387         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
45388         PROVIDE_CANONICALIZE_FILENAME_MODE.
45389         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
45390
45391 2007-01-08  Bruno Haible  <bruno@clisp.org>
45392
45393         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
45394         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
45395         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
45396         * lib/fts.c: Likewise.
45397         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
45398
45399 2006-12-25  Bruno Haible  <bruno@clisp.org>
45400
45401         * modules/utf8-ucs4-safe: New file.
45402         * lib/utf8-ucs4-safe.h: New file.
45403         * lib/unistr/utf8-ucs4-safe.c: New file.
45404
45405         * modules/utf16-ucs4-safe: New file.
45406         * lib/utf16-ucs4-safe.h: New file.
45407         * lib/unistr/utf16-ucs4-safe.c: New file.
45408
45409         * MODULES.html.sh (Unicode string functions): Add the new modules.
45410
45411 2007-01-08  Bruno Haible  <bruno@clisp.org>
45412
45413         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
45414         (Depends-on): Add unitypes.
45415         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
45416         (u8_mbtouc_aux): Move out to separate file.
45417         (u8_mbtouc): Use ucs4_t, uint8_t types.
45418         * lib/unistr/utf8-ucs4.c: New file.
45419
45420         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
45421         (Depends-on): Add unitypes.
45422         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
45423         (u16_mbtouc_aux): Move out to separate file.
45424         (u16_mbtouc): Use ucs4_t, uint16_t types.
45425         * lib/unistr/utf16-ucs4.c: New file.
45426
45427         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
45428         (Depends-on): Add unitypes.
45429         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
45430         (u8_uctomb_aux): Move out to separate file.
45431         (u8_uctomb): Use ucs4_t, uint8_t types.
45432         * lib/unistr/ucs4-utf8.c: New file.
45433
45434         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
45435         (Depends-on): Add unitypes.
45436         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
45437         (u16_uctomb_aux): Move out to separate file.
45438         (u16_uctomb): Use ucs4_t, uint16_t types.
45439         * lib/unistr/ucs4-utf16.c: New file.
45440
45441 2006-12-25  Bruno Haible  <bruno@clisp.org>
45442
45443         * modules/unitypes: New file.
45444         * lib/unitypes.h: New file.
45445         * MODULES.html.sh (func_all_modules): New section "Unicode string
45446         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
45447         this section. Add unitypes.
45448
45449 2007-01-08  Bruno Haible  <bruno@clisp.org>
45450
45451         Avoid variable names that conflict with those from libtool.
45452         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
45453         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
45454         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
45455         library_names_spec to acl_library_names_spec, hardcode_* to
45456         acl_hardcode_*.
45457         Reported by Ralf Wildenhues.
45458
45459 2007-01-08  Bruno Haible  <bruno@clisp.org>
45460
45461         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
45462         definition.
45463         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
45464         definition.
45465         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
45466         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
45467         definition.
45468         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
45469         definition.
45470         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
45471         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
45472         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
45473         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
45474         definition.
45475         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
45476         definition.
45477         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
45478         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
45479         GC_USE_<algorithm>.
45480         * lib/gc-libgcrypt.c: Likewise.
45481         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
45482         * modules/gc-arctwo (configure.ac): Likewise.
45483         * modules/gc-des (configure.ac): Likewise.
45484         * modules/gc-hmac-md5 (configure.ac): Likewise.
45485         * modules/gc-hmac-sha1 (configure.ac): Likewise.
45486         * modules/gc-md2 (configure.ac): Likewise.
45487         * modules/gc-md4 (configure.ac): Likewise.
45488         * modules/gc-md5 (configure.ac): Likewise.
45489         * modules/gc-random (configure.ac): Likewise.
45490         * modules/gc-rijndael (configure.ac): Likewise.
45491         * modules/gc-sha1 (configure.ac): Likewise.
45492
45493 2007-01-08  Bruno Haible  <bruno@clisp.org>
45494
45495         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
45496         macro definition.
45497         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
45498         definition.
45499         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
45500         definition.
45501         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
45502         * modules/fcntl-safer (configure.ac): Likewise.
45503         * modules/fopen-safer (configure.ac): Likewise.
45504         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
45505         GNULIB_FWRITEERROR macro definition.
45506
45507 2007-01-08  Bruno Haible  <bruno@clisp.org>
45508
45509         * m4/gnulib-common.m4: New file.
45510         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
45511         (func_get_filelist): Add m4/gnulib-common.m4.
45512
45513 2007-01-08  Bruno Haible  <bruno@clisp.org>
45514
45515         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
45516         command.
45517
45518 2007-01-08  Jim Meyering  <jim@meyering.net>
45519
45520         Use a more robust test for a "can't happen" condition.
45521         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
45522         narrowed the st_size value.  Presuming the "can't happen" condition
45523         is true, that narrowing could conceivably convert an invalid st_size
45524         value into a valid one.  Instead, use a change based on Matthew
45525         Woehlke's original patch.
45526
45527         Slight readability improvement: use an assert-like macro
45528         in place of literal "abort ()" uses.
45529         * lib/fts.c (fts_assert): Define.
45530         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
45531         Use this macro instead of a bare 'abort'.
45532
45533 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
45534
45535         Don't worry about using IRIX 5.3's wctype.h broken definitions;
45536         simply work around them.
45537         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
45538         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
45539         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
45540         declaring.
45541         Don't bother to define as macros, since the standard doesn't require it.
45542         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
45543         longer worry about IRIX 5.3.
45544         (HAVE_WCTYPE_CTMP_BUG): Remove.
45545
45546 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
45547
45548         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
45549         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
45550         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
45551         Problems reported by Georg Schwarz for IRIX 5.3.
45552
45553         * gnulib-tool (autoconf_minversion): Take the maximum version number
45554         found, not the minimum.  Problem reported by James Youngman.
45555
45556 2007-01-03  Karl Berry  <karl@gnu.org>
45557
45558         * doc/error.texi: new file, explaining interaction with progname.
45559         * doc/gnulib.texi: include it.  Update copyright.
45560
45561 2007-01-03  Simon Josefsson  <simon@josefsson.org>
45562
45563         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
45564         AC_CANONICAL_HOST, to improve autobuild outputs.
45565
45566 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
45567             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
45568
45569         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
45570         sockets, server sockets, and other file descriptors.  Count errors
45571         to compute the return value.  Reorder the code a bit to be easier
45572         to follow.  Don't set event bits that were not requested (except
45573         POLLERR and POLLHUP).
45574
45575 2007-01-01  Bruno Haible  <bruno@clisp.org>
45576
45577         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
45578
45579 2007-01-03  Jim Meyering  <jim@meyering.net>
45580
45581         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
45582
45583 2007-01-02  Bruno Haible  <bruno@clisp.org>
45584
45585         * modules/settime (Include): Require timespec.h.
45586         * modules/nanosleep (Include): Likewise.
45587
45588 2007-01-01  Bruno Haible  <bruno@clisp.org>
45589
45590         * gnulib-tool (func_emit_copyright_notice): Bump year.
45591         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
45592
45593 2007-01-01  Bruno Haible  <bruno@clisp.org>
45594
45595         Improve support for OpenBSD.
45596         * build-aux/config.rpath (libname_spec): Export.
45597         (library_names_spec): New variable. Export.
45598         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
45599         library_names_spec from the config.rpath output. Locate shared library
45600         through the name pattern in library_names_spec.
45601
45602 2007-01-01  Eric Blake  <ebb9@byu.net>
45603
45604         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
45605
45606 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
45607
45608         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
45609         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
45610         assume the C locale, and avoid an "eval" that could cause trouble.
45611         Problem with SORT reported by Bob Proulx.
45612
45613         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
45614         Define.  Trivial patch from Henning Nielsen Lund, originally
45615         sent to bug-grep@gnu.org today.
45616
45617 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
45618
45619         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
45620         struct stat.  Problem reported by Henning Nielsen Lund.
45621         * lib/acl.c: Include acl.h first, to check interface.  Don't
45622         bother to include sys/types.h and sys/stat.h again.
45623
45624 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
45625
45626         Import the following change from libc; problem reported by
45627         Sven Verdoolaege.
45628
45629         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
45630
45631         [BZ #1373]
45632         * lib/argp.h: Remove __NTH for __argp_usage inline function.
45633
45634 2006-12-28  Jim Meyering  <jim@meyering.net>
45635
45636         * build-aux/announce-gen: Do not assume that the package
45637         builds any of tar.gz, tar.bz2, and .xdelta files.
45638         Suggestion from Simon Josefsson.
45639
45640 2006-12-28  Simon Josefsson  <simon@josefsson.org>
45641
45642         * modules/announce-gen: New file.
45643
45644 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
45645
45646         * lib/mbchar.h: Just include <wctype.h>; the wctype module
45647         handles its gotchas now.
45648         * lib/mbswidth.c: Likewise.
45649         * lib/wcwidth.h: Likewise.
45650         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
45651         and iswcntrl; the wctype module does this stuff now.
45652         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
45653         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
45654         * modules/mbchar (Depends-on): Add wctype.
45655         * modules/mbswidth (Depends-on): Likewise.
45656         * modules/wcwidth (Depends-on): Likewise.
45657
45658 2006-12-27  Eric Blake  <ebb9@byu.net>
45659
45660         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
45661         module uses more than what <wctype.h> is required to provide.
45662
45663 2006-12-26  Eric Blake  <ebb9@byu.net>
45664
45665         * gnulib-tool (sed_extract_prog): Avoid space-tab.
45666
45667 2006-12-26  Eric Blake  <ebb9@byu.net>
45668
45669         * modules/absolute-header: New module.
45670         * modules/fcntl (Depends-on): Depend on it.
45671         * modules/inttypes (Depends-on): Likewise.
45672         * modules/stdint (Depends-on): Likewise.
45673         * modules/sys_stat (Depends-on): Likewise.
45674         * modules/wctype (Depends-on): Likewise.
45675         * MODULES.html.sh (Support for building libraries and
45676         executables): Document it.
45677
45678 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
45679
45680         * gnulib-tool (SED): Remove, undoing previous change.
45681         The problem was that it broke coreutils on Solaris, because
45682         "sed --posix" leaked into a makefile.
45683         (sed): New alias, if 'alias' and GNU sed.
45684
45685 2006-12-24  Jim Meyering  <jim@meyering.net>
45686
45687         Work around an fchownat bug in glibc-2.4:
45688         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
45689         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
45690         in spite of the -P option.
45691         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
45692         New macros.
45693         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
45694         * modules/openat (Files): Add lib/fchownat.c.
45695         * lib/openat.c (fchownat): Don't define here.  Move to...
45696         * lib/fchownat.c: ...this new file.
45697
45698 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
45699
45700         Fix bug reported by Bruno Haible in
45701         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
45702         where quotearg.c didn't compile on Mac OS X 10.2 because it
45703         lacks <wchar.h> and wint_t.
45704         * lib/wctype_.h (__wctype_wint_t): New type.
45705         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
45706         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
45707         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
45708         Arg is now of type __wctype_wint_t, not wint_t.
45709         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
45710         substitute HAVE_WINT_T.
45711         * modules/wctype (Files): Add m4/wint_t.m4.
45712         (wctype.h): Substitute HAVE_WINT_T.
45713
45714 2006-12-23  Bruno Haible  <bruno@clisp.org>
45715
45716         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
45717
45718 2006-12-23  Bruno Haible  <bruno@clisp.org>
45719
45720         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
45721         S_ISLNK.
45722         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
45723         mingw.
45724
45725 2006-12-22  Bruno Haible  <bruno@clisp.org>
45726
45727         * lib/copy-file.c: Include acl.h.
45728         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
45729         Close the file descriptors only after being done with copy_acl.
45730         * modules/copy-file (Depends-on): Add acl.
45731
45732 2006-12-22  Bruno Haible  <bruno@clisp.org>
45733
45734         * gnulib-tool (SED): New variable.
45735         Use $SED instead of sed everywhere.
45736
45737 2006-12-22  Bruno Haible  <bruno@clisp.org>
45738
45739         * modules/no-c++: New file.
45740         * m4/no-c++.m4: New file.
45741         * MODULES.html.sh (Support for building libraries and executables):
45742         Add no-c++.
45743
45744 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
45745
45746         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
45747         Include <limits.h>, and use its INT_MAX to rewrite the
45748         j loop so that it does not overflow 'int'.  Problem reported by
45749         Ralf Wildenhues in
45750         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
45751         Play it safe by shifting left by 1 rather than multiplying by 2,
45752         as GCC is less likely to optimize this away when the value
45753         is signed (when it assumes overflow leads to undefined behavior).
45754         Also, don't assume time_t uses two's complement.
45755
45756 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
45757
45758         * MODULES.html.sh: New module wctype.
45759         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
45760         * lib/fnmatch.c: Don't bother to include <wchar.h> before
45761         <wctype.h>, since the new wctype module should fix this.
45762         * lib/quotearg.c: Include <wctype.h> unconditionally, since
45763         the wctype module should arrange for it.
45764         * lib/regex_internal.h: Likewise.
45765         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
45766         since the wctype module should handle this now.
45767         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
45768         * modules/fnmatch (Depends-on): Add wctype.
45769         * modules/quotearg (Depends-on): Likewise.
45770         * modules/regex (Depends-on): Likewise.
45771
45772 2006-12-19  Bruno Haible  <bruno@clisp.org>
45773
45774         * lib/strdup.h [C++]: Wrap definitions in extern "C".
45775         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
45776
45777 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45778
45779         * modules/savewd (Depends-on): Fix dependency on fcntl.
45780
45781 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
45782
45783         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
45784         conforms to C99, rather than relying on the user's environment
45785         setting of STDINT_H.
45786
45787 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
45788         and Eric Blake  <ebb9@byu.net>
45789
45790         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
45791         This is more consistent with the other defines here.
45792         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
45793         Port to z/OS.  Problem reported by Paul Gilmartin.
45794         Change local vars to use gl_ prefix rather than ac_.
45795         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
45796         with other defines.
45797         * modules/double-slash-root: New module.
45798         * modules/dirname (Files): Remove m4/double-slash-root.m4.
45799         (Depends-on): Add double-slash-root.
45800         * MODULES.html.sh (File system functions): Mention new module.
45801
45802 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
45803
45804         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
45805         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
45806         This is for the benefit of gzip, which doesn't do i18n.
45807
45808 2006-12-12  Jim Meyering  <jim@meyering.net>
45809
45810         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
45811         Reported by Andreas Schwab <schwab@suse.de>.
45812
45813 2006-12-12  Bruno Haible  <bruno@clisp.org>
45814
45815         Merge these changes.
45816         2006-09-05  Bruno Haible  <bruno@clisp.org>
45817         * lib/iconvme.c (iconv_string): No need to save and restore errno when
45818         iconv_alloc succeeded.
45819         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
45820         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
45821         test for " && dest " at the end - dest is always != NULL there. Call
45822         iconv with 4xNULL arguments initially, to reset the state. Call iconv
45823         with 2xNULL arguments, also to flush the state storage. Handle the
45824         IRIX iconv behaviour. Realloc the final result, to throw away unused
45825         memory.
45826
45827 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
45828
45829         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
45830         and fchmodat unconditionally, since glibc 2.4 has them.
45831         Problem reported by Arkadiusz Miskiewicz.
45832
45833 2006-12-10  Bruno Haible  <bruno@clisp.org>
45834
45835         * gnulib-tool (func_import): Show the include files only for those
45836         modules that are copied and specified.
45837         Reported by Karl Berry.
45838
45839 2006-12-08  Jim Meyering  <jim@meyering.net>
45840
45841         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
45842         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
45843
45844         * build-aux/announce-gen: Add two new options, both optional:
45845         --bootstrap-tools=TOOL_LIST
45846               a comma-separated list of tools, e.g.,
45847               autoconf,automake,bison,gnulib
45848         --gnulib-snapshot-date=DATE
45849               if gnulib is in the bootstrap tool list,
45850               then report this as the snapshot date.
45851               If not specified, use the current date/time.
45852               If you specify a date here, be sure it's UTC.
45853
45854 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45855
45856         * tests/test-argp-2.sh: Fix test to match actual output.
45857         (func_compare): Fix sed script to be portable.
45858
45859 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
45860
45861         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
45862         workaround for this case.  It is not autoconfigured now; offhand
45863         it's hard to see how to autoconfigure it.
45864
45865 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
45866
45867         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
45868         a directory that is about to be chowned.  Such a directory's
45869         initial file permissions should permit the owner only and this
45870         should not be changed until after the chown, since the group and
45871         other bits would be incorrect if they granted permission before
45872         the chown.
45873
45874         Fix porting problem for iswctype reported by Georg Schwarz in:
45875         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
45876         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
45877         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
45878         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
45879         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
45880
45881 2006-12-03  Jim Meyering  <jim@meyering.net>
45882
45883         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
45884         p->fts_statp may not yet be defined.
45885         (fts_read): Instead, set it in the caller, once p->fts_statp is
45886         sure to be defined, and corresponds to a top-level directory.
45887         This bug made du -x fail.  Here's the coreutils test case:
45888         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
45889         Reported by Mike Frysinger.
45890
45891 2006-12-01  Jim Meyering  <jim@meyering.net>
45892
45893         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
45894         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
45895         Reported by Simon Josefsson.
45896
45897 2006-11-30  Jim Meyering  <jim@meyering.net>
45898
45899         * m4/warning.m4: Use the all-permissive copyright notice
45900         recommended by RMS (rather than LGPL).
45901         * m4/vararrays.m4: Likewise.
45902         * m4/flexmember.m4: Likewise.
45903
45904 2006-11-29  Bruno Haible  <bruno@clisp.org>
45905
45906         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
45907         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
45908         using +=.
45909         Reported by Simon Josefsson <simon@josefsson.org>.
45910
45911 2006-11-28  James Youngman <jay@gnu.org>
45912
45913         * README: Advise users that they might find the bug-gnulib@gnu.org
45914         and autotools-announce@gnu.org mailing lists useful.
45915
45916 2006-11-28  Bruno Haible  <bruno@clisp.org>
45917
45918         * m4/ptrdiff_max.m4: Remove file.
45919
45920 2006-11-21  Bruno Haible  <bruno@clisp.org>
45921
45922         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
45923         _AC_COMPUTE_INT.
45924         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
45925         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
45926         _AC_COMPUTE_INT.
45927         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
45928         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
45929         _AC_COMPUTE_INT.
45930         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
45931
45932 2006-11-28  Jim Meyering  <jim@meyering.net>
45933
45934         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
45935         warning from "gcc -Wshadow" about shadowing the builtin.
45936
45937 2006-11-27  Bruno Haible  <bruno@clisp.org>
45938
45939         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
45940         _AC_COMPUTE_INT.
45941         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
45942
45943 2006-11-27  Bruno Haible  <bruno@clisp.org>
45944             Paul Eggert  <eggert@cs.ucla.edu>
45945
45946         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
45947
45948 2006-11-26  Bruno Haible  <bruno@clisp.org>
45949
45950         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
45951         noinst_LTLIBRARIES.
45952
45953 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
45954             Bruno Haible  <bruno@clisp.org>
45955
45956         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
45957         if compiling with "gcc -ansi".
45958
45959 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
45960
45961         Fix some incompatibilities with gcc -ansi -pedantic.
45962         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
45963         if compiling pedantically with GCC, unless it's C99 or later.
45964         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
45965         it mishandles gcc -ansi -pedantic as well.
45966         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
45967         if gcc -pedantic.
45968         * lib/regexec.c (check_node_accept_bytes): Don't use auto
45969         initializers for struct if -pedantic, unless it's C99 or later.
45970
45971 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
45972
45973         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
45974         Don't close an fd more than once. Identical atimes indicate
45975         success, not failure.
45976
45977 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
45978
45979         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
45980
45981 2006-11-23  Jim Meyering  <jim@meyering.net>
45982
45983         * build-aux/announce-gen: New file.  From coreutils.
45984
45985 2006-11-22  Jim Meyering  <jim@meyering.net>
45986
45987         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
45988         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
45989         (fts_read): Use a temporary to narrow the overused st_size member
45990         before using it in a switch statement.  Reported by Matthew Woehlke.
45991
45992         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
45993         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
45994
45995 2006-11-20  Bruno Haible  <bruno@clisp.org>
45996
45997         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
45998         changequote instead of pairs of brackets.
45999         Reported by Andreas Schwab <schwab@suse.de>.
46000
46001 2006-11-21  Jim Meyering  <jim@meyering.net>
46002
46003         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
46004         so as to remain compatible with older compilers.
46005         Patch from Michael Deutschmann.
46006
46007 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
46008
46009         * MODULES.html.sh (File system functions): Add openat.
46010
46011         * lib/openat.h (rpl_fstatat): New macro, if
46012         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
46013         (fstatat): Define to rpl_fstatat under the same conditions,
46014         unless COMPILING_FSTATAT.
46015         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
46016         seems to have the bug.
46017         * lib/fstatat.c: New file.
46018         * modules/openat (Files): Add it.
46019
46020 2006-11-20  Bruno Haible  <bruno@clisp.org>
46021
46022         * Makefile: New file.
46023
46024 2006-11-20  Jim Meyering  <jim@meyering.net>
46025
46026         The beginnings of syntax-related checks for gnulib.
46027         * lib/Makefile: New file.
46028         * lib/t-idcache: New script.  Ensure that the two halves of
46029         idcache.c stay in sync.
46030
46031         * lib/idcache.c: Adjust comments in user- and group- portions to
46032         be more accurate, and to be consistent with one another.
46033
46034 2006-11-20  Jim Meyering  <jim@meyering.net>
46035
46036         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
46037         continue using the flexible array member (thus, this module performs
46038         half as many malloc calls), with the addition that...
46039         (getgroup, getuser): Consistently record a non-match via an empty
46040         "name" string, and map an empty string match to a NULL return value.
46041         * modules/idcache (Depends-on): Re-add flexmember.
46042
46043         * lib/idcache.c (getuser): Remove all uses of the register keyword.
46044         (getuidbyname, getgroup, getgidbyname): Likewise.
46045
46046         Use cleaner syntax: NULL rather than 0.
46047         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
46048
46049 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
46050
46051         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
46052         It mishandled the case where the group was missing.
46053         Problem reported by Greg Schafer.
46054         * modules/idcache: Likewise.
46055
46056 2006-11-18  Jim Meyering  <jim@meyering.net>
46057
46058         * check-module (%exempt_header): Add exception for some
46059         conditionally-included headers.
46060
46061         * modules/i-ring (Depends-on): Add verify.
46062         (License): Change to LGPL.
46063
46064 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
46065
46066         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
46067         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
46068         and inttostr.h.  Use snprintf rather than uinttostr, so that
46069         LGPLed code doesn't depend on GPLed.
46070
46071 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
46072
46073         * modules/inline (License): Change from GPL to LGPL.
46074
46075 2006-11-17  Jim Meyering  <jim@meyering.net>
46076
46077         * modules/d-type (License): Switch to LGPL.
46078
46079 2006-11-15  Bruno Haible  <bruno@clisp.org>
46080
46081         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
46082
46083 2006-11-15  Eric Blake  <ebb9@byu.net>
46084
46085         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
46086         the module dependency.
46087
46088 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46089             Bruno Haible  <bruno@clisp.org>
46090
46091         * gnulib-tool (func_create_testdir): Add license consistency check.
46092
46093 2006-11-15  Eric Blake  <ebb9@byu.net>
46094
46095         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
46096         random "(cached)" in configure output.
46097
46098 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46099
46100         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
46101         test for conforming inttypes.h is both announced and cached.
46102
46103         * MODULES.html.sh (seen_modules, seen_files): New variables.
46104         (func_module): Rewrite to use a few less gnulib-tool and sed
46105         invocations.  Avoid a couple of quadratic algorithms for ...
46106         (missed_modules, missed_files): ... these, with ...
46107         (func_append, func_tmpdir): ... these new functions, from
46108         gnulib-tool.  Analogously, install traps for cleanup.
46109
46110         * tests/test-gc.c (main): Remove unused variables.
46111         * tests/test-read-file.c: Include stdlib.h, for 'free'.
46112
46113 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
46114
46115         * modules/inttostr (License): Change to LGPL.
46116
46117 2006-11-14  Eric Blake  <ebb9@byu.net>
46118
46119         * modules/tempname (License): Change to LGPL.
46120
46121 2006-11-14  Eric Blake  <ebb9@byu.net>
46122
46123         * doc/functions.texi (Function Portability): *printf functions on
46124         Cygwin now understand all POSIX size specifiers.
46125
46126 2006-11-14  Bruno Haible  <bruno@clisp.org>
46127
46128         * modules/c-ctype (License): Change to LGPL.
46129
46130 2006-11-12  Bruno Haible  <bruno@clisp.org>
46131
46132         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
46133         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
46134         for GNOME libraries, for which the include files are installed in
46135         subdirectories of $prefix/include.
46136
46137 2006-11-12  Bruno Haible  <bruno@clisp.org>
46138
46139         * m4/lib-link.m4: Require at least autoconf-2.54.
46140         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
46141         name to underscores for the --with option.
46142
46143 2006-11-13  Bruno Haible  <bruno@clisp.org>
46144
46145         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
46146         the tests directory.
46147         Reported by Ralf Wildenhues.
46148
46149 2006-11-13  Bruno Haible  <bruno@clisp.org>
46150
46151         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
46152         (func_emit_initmacro_end): Undo the override here.
46153         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
46154         Works around the famous automake error in coreutils.
46155
46156 2006-11-13  Eric Blake  <ebb9@byu.net>
46157
46158         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
46159         element, not its node.
46160
46161 2006-11-12  Bruno Haible  <bruno@clisp.org>
46162
46163         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
46164         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
46165
46166 2006-11-12  Bruno Haible  <bruno@clisp.org>
46167
46168         * gnulib-tool: New option --local-symlink.
46169         (func_usage): Document it.
46170         (lsymbolic): New variable.
46171         (func_import, func_create_testdir): If --symlink was not specified,
46172         test whether --local-symlink was specified and the file comes from
46173         the local_gnulib_dir.
46174
46175 2006-11-12  Bruno Haible  <bruno@clisp.org>
46176
46177         * gnulib-tool (func_ln): New function.
46178         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
46179
46180 2006-11-12  Bruno Haible  <bruno@clisp.org>
46181
46182         Finish support for source files in subdirectories.
46183         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
46184         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
46185         AUTOMAKE_OPTIONS.
46186         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
46187
46188 2006-11-12  Bruno Haible  <bruno@clisp.org>
46189
46190         * gnulib-tool (func_get_automake_snippet): Synthesize also an
46191         EXTRA_lib_SOURCES augmentation.
46192         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
46193
46194 2006-11-12  Jim Meyering  <jim@meyering.net>
46195
46196         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
46197         file descriptors.  This also averts a failure on systems with
46198         native openat support when a traversed directory lacks "x" access.
46199         * lib/fts_.h: Include "i-ring.h"
46200         (struct FTS) [fts_fd_ring]: New member.
46201         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
46202         (FCHDIR): Add parentheses.
46203         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
46204         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
46205         When descending, rather than simply closing the previous
46206         fts_cwd_fd value, push that file descriptor onto the ring.
46207         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
46208         (fts_open): Initialize the new fd_ring member.
46209         (fts_close): Clear the ring.
46210         (fts_safe_changedir): When possible, use our new fd_ring to skip
46211         the diropen and fstat and dev/ino comparison that would normally
46212         accompany a virtual `chdir ("..")'.
46213
46214         * modules/fts (Depends-on): Add i-ring.
46215         * modules/i-ring: New module.
46216         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
46217         * m4/i-ring.m4: New file.
46218
46219 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46220
46221         * gnulib-tool (func_create_testdir): Fix replacement of
46222         `build-aux' in configure.ac.  Run autotools in gltests
46223         subdirectory.
46224         (func_create_testdir, func_create_megatestdir, test): There is
46225         no need for '--force' in most autotool invocations in a new
46226         tree.  Actually fail the whole test if any of the tools, or the
46227         configure or make stages fail.
46228
46229         Sync from Automake.
46230         * build-aux/gnupload: Revert last change.  Add pointer to upload
46231         instructions of the GNU Maintenance Instructions.
46232         Suggestion by Karl Berry.
46233
46234 2006-11-10  Jim Meyering  <jim@meyering.net>
46235
46236         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
46237
46238 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
46239
46240         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
46241         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
46242         (bind_textdomain_codeset) [! ENABLE_NLS]:
46243         Evaluate all the arguments.  That way, callers get compatible behavior
46244         if the arguments have side effects.  Also, it avoids some GCC
46245         diagnostics in some cases; Joel E. Denny reported problems when Bison
46246         was configured with --enable-gcc-warnigs.
46247
46248 2006-11-10  Jim Meyering  <jim@meyering.net>
46249
46250         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
46251         relevant options in CFLAGS (like -O, -fno-inline) are taken into
46252         account.
46253
46254 2006-11-10  Jim Meyering  <jim@meyering.net>
46255
46256         * modules/inline: New file/module.
46257         * modules/xalloc (Files): Remove m4/inline.m4.
46258         (Depends-on): Add inline, instead.
46259         * modules/oset: Likewise.
46260         * modules/list: Likewise.
46261
46262 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
46263
46264         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
46265         Problem reported by Matthew Woehlke.
46266
46267 2006-11-09  Bruno Haible  <bruno@clisp.org>
46268
46269         * lib/tempname.c (gen_tempname): Remove variant that invokes
46270         __gen_tempname.
46271         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
46272         __gen_tempname.
46273
46274 2006-11-08  Bruno Haible  <bruno@clisp.org>
46275
46276         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
46277         to 'yes' instead of 'cross-compiling'.
46278
46279 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
46280
46281         * lib/quotearg.h (quotearg_free): New decl.
46282         * lib/quotearg.c (quotearg_free): New function.
46283         (slot0, nslots, slotvec0, slotvec):
46284         Now file-scope so that quotearg_free can get at them.
46285
46286 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46287
46288         Sync from Automake.
46289         * build-aux/gnupload: Add missing 'gnu' to example URL.
46290         Report by Karl Berry.
46291
46292 2006-11-08  Bruno Haible  <bruno@clisp.org>
46293
46294         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
46295         Suggested by Paul Eggert.
46296
46297 2006-11-08  Jim Meyering  <jim@meyering.net>
46298
46299         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
46300         It's already included if !_LIBC.
46301         (fts_safe_changedir): Add a comment.
46302
46303 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
46304
46305         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
46306         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
46307         Matthew Woehlke.
46308
46309         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
46310         definitions up, to avoid colliding with change below.
46311         (static_inline) [HAVE_INLINE]: New macro.
46312         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
46313         Provide extern decls when !HAVE_INLINE.  Do not define unless
46314         static_inline is defined, either by us or by xmalloc.c.  Use
46315         static_inline rather than static inline.
46316         (XCALLOC): Optimize sizeof(T) = 1 case.
46317         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
46318
46319 2006-11-07  Bruno Haible  <bruno@clisp.org>
46320
46321         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
46322         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
46323         AC_C_INLINE.
46324         * modules/xalloc (Files): Add m4/inline.m4.
46325
46326 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46327
46328         * README: Fix typo.
46329         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
46330         (Miscellanous Notes): ...from this.
46331
46332 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
46333
46334         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
46335         Mention that offsetof should be used instead of sizeof.
46336         From Bruno Haible.
46337
46338 2006-11-07  Bruno Haible  <bruno@clisp.org>
46339
46340         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
46341
46342 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
46343
46344         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
46345         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
46346         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
46347         (gl_tree_add_before, gl_tree_add_after):
46348         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
46349         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
46350         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
46351         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
46352         (gl_linked_add_after, gl_linked_add_at): Likewise.
46353         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
46354         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
46355         (gl_tree_add_before, gl_tree_add_after): Likewise.
46356         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
46357         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
46358         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
46359
46360 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46361
46362         * lib/gl_oset.h: Use C comment style, not C++ comment style.
46363
46364 2006-11-06  Bruno Haible  <bruno@clisp.org>
46365
46366         * m4/inline.m4: New file.
46367         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
46368         * modules/list (Files): Add m4/inline.m4.
46369         * modules/oset (Files): Likewise.
46370
46371 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
46372
46373         * lib/idcache.c: Include <stddef.h>, for offsetof.
46374         (struct userid.name): Change from char * to a flexible array member.
46375         All uses changed.
46376         * modules/idcache (Depends-on): Add flexmember.
46377
46378         * MODULES.html.sh (Core language properties): New module flexmember.
46379         * modules/flexmember, m4/flexmember.m4: New files.
46380
46381         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
46382         inline functions that are identical with the old xnmalloc_inline,
46383         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
46384         that we can avoid some unnecessary integer multiplications and
46385         divisions in the common case where the element size is known at
46386         compile time.
46387         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
46388         needed.
46389         (xnboundedmalloc): Remove.
46390         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
46391         arguments, for consistency with rest of this header.
46392         (xcharalloc): Rewrite using XNMALLOC.
46393         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
46394         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
46395         versions have been moved to lib/xalloc.h and renamed to be the
46396         non-*_inline versions.
46397         (xmalloc, xrealloc): Implement without reference to the xnmalloc
46398         and xnrealloc functions, since those functions are now inline and
46399         now call us.
46400         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
46401         renaming described above.
46402         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
46403         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
46404         captures the dependency in AC_C_INLINE.
46405
46406         New module canonicalize-lgpl, proposed by Charles Wilson in
46407         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
46408         with a few small changes afterwards.
46409         * MODULES.html.sh (File system functions): New module
46410         canonicalize-lgpl.
46411         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
46412         and canonicalize_file_name.
46413         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
46414         * modules/canonicalize-lgpl: New files.
46415
46416 2006-11-05  Bruno Haible  <bruno@clisp.org>
46417
46418         * gnulib-tool (func_import, func_create_testdir): Create directories
46419         also for files in subdirectories of lib/.
46420
46421 2006-11-05  Bruno Haible  <bruno@clisp.org>
46422
46423         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
46424         ANSI C compliant.
46425
46426 2006-11-03  Bruno Haible  <bruno@clisp.org>
46427
46428         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
46429         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
46430         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
46431         (xnboundedmalloc): New inline function.
46432         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
46433         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
46434         xmalloc.
46435         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
46436         xmalloc.
46437         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
46438         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
46439         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
46440         xmalloc.
46441         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
46442         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
46443         xmalloc.
46444         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
46445         gl_tree_add_after): Use XMALLOC instead of xmalloc.
46446         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
46447         xmalloc.
46448         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
46449         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
46450         gl_tree_add_after): Use XMALLOC instead of xmalloc.
46451         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
46452         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
46453         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
46454         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
46455
46456 2006-11-03  Bruno Haible  <bruno@clisp.org>
46457
46458         * lib/c-ctype.h [C++]: Define functions without name mangling.
46459         * lib/fwriteerror.h [C++]: Likewise.
46460         * lib/gcd.h [C++]: Likewise.
46461         * lib/linebreak.h [C++]: Likewise.
46462
46463 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
46464
46465         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
46466         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
46467         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
46468         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
46469         Check for functions and headers just once.
46470         Check for declaration of canonicalize_file_name.
46471         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
46472
46473 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
46474
46475         * gnulib-tool (func_import): Fix typo in actioncmd.
46476
46477 2006-11-02  Bruno Haible  <bruno@clisp.org>
46478
46479         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
46480         newline sequence in the Makefile.am snippet as a space, like "make"
46481         does.
46482         Reported by Roger Persson <perrog@gmail.com>.
46483
46484 2006-11-01  Bruno Haible  <bruno@clisp.org>
46485
46486         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
46487         already declared in <string.h>.
46488         * lib/strcase.h (strncasecmp): Don't declare it if yes.
46489
46490 2006-11-01  Bruno Haible  <bruno@clisp.org>
46491
46492         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
46493         * lib/strcase.h: Include <string.h>.
46494         (strcasecmp): Define to rpl_strcasecmp here.
46495
46496 2006-11-01  Bruno Haible  <bruno@clisp.org>
46497
46498         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
46499
46500 2006-11-01  Eric Blake  <ebb9@byu.net>
46501
46502         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
46503
46504         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
46505
46506 2006-10-29  Bruno Haible  <bruno@clisp.org>
46507
46508         Make it compile in C++ mode.
46509         * lib/full-write.c (full_rw): Add a cast.
46510
46511 2006-11-01  Bruno Haible  <bruno@clisp.org>
46512
46513         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
46514         be POSIX compliant.
46515         Reported by Roger Persson <perrog@gmail.com>.
46516
46517 2006-11-01  Eric Blake  <ebb9@byu.net>
46518
46519         * lib/getopt_.h: Fix comments.
46520
46521 2006-10-31  Eric Blake  <ebb9@byu.net>
46522
46523         * modules/tmpdir (Depends-on): Add sys_stat.
46524         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
46525         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
46526         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
46527         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
46528         tempname.
46529
46530 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
46531
46532         Avoid some C++ diagnostics reported by Bruno Haible.
46533         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
46534         xmalloc.
46535         (quotearg_alloc): Use xcharalloc rather than xmalloc.
46536         (struct slotvec): Move to top level.
46537         (quotearg_n_options): Rewrite to avoid xmalloc.
46538         * lib/xalloc.h (xcharalloc): New function.
46539         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
46540         [defined __cplusplus]: Add function template that provides result
46541         type propagation.  This part of the change is from Bruno Haible.
46542
46543 2006-10-29  Bruno Haible  <bruno@clisp.org>
46544
46545         Make it compile in C++ mode.
46546         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
46547         * lib/strnlen1.c (strnlen1): Cast memchr result.
46548         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
46549         * lib/clean-temp.c (string_equals, string_hash): Add casts.
46550         (create_temp_dir): Rename local variable 'template'.
46551         (compile_csharp_using_sscli): Add cast.
46552         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
46553         * lib/findprog.c (find_in_path): Likewise.
46554         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
46555         * lib/wait-process.c (register_slave_subprocess): Likewise.
46556
46557 2006-10-22  Bruno Haible  <bruno@clisp.org>
46558
46559         * modules/tsearch: New file.
46560         * lib/tsearch.h: New file.
46561         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
46562         * m4/tsearch.m4: New file.
46563         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
46564
46565 2006-10-29  Eric Blake  <ebb9@byu.net>
46566
46567         * lib/arcfour.c: Assume config.h.
46568         * lib/arctwo.c: Likewise.
46569         * lib/base64.c: Likewise.
46570         * lib/check-version.c: Likewise.
46571         * lib/crc.c: Likewise.
46572         * lib/des.c: Likewise.
46573         * lib/gc-gnulib.c: Likewise.
46574         * lib/gc-libgcrypt.c: Likewise.
46575         * lib/gc-pbkdf2-sha1.c: Likewise.
46576         * lib/getaddrinfo.c: Likewise.
46577         * lib/getdelim.c: Likewise.
46578         * lib/getline.c: Likewise.
46579         * lib/hmac-md5.c: Likewise.
46580         * lib/hmac-sha1.c: Likewise.
46581         * lib/iconvme.c: Likewise.
46582         * lib/md2.c: Likewise.
46583         * lib/md4.c: Likewise.
46584         * lib/memxor.c: Likewise.
46585         * lib/read-file.c: Likewise.
46586         * lib/readline.c: Likewise.
46587         * lib/rijndael-alg-fst.c: Likewise.
46588         * lib/rijndael-api-fst.c: Likewise.
46589         * lib/xgetdomainname.c: Likewise.
46590
46591 2006-10-28  Eric Blake  <ebb9@byu.net>
46592
46593         * lib/xstrndup.c: Assume config.h.
46594
46595 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
46596
46597         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
46598         stat-macros.h is now for our own macros, whereas stat_h is for
46599         macros in the <sys/stat.h> name space.
46600         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
46601         (STAT_MACROS_H): Remove.
46602         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
46603         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
46604         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
46605         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
46606         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
46607         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
46608         Move these macros to ...
46609         * lib/stat_.h: here.  Don't include stat-macros.h.
46610         * lib/canonicalize.c: Don't include stat-macros.h.
46611         * lib/chown.c: Likewise.
46612         * lib/euidaccess.c: Likewise.
46613         * lib/file-type.c: Likewise.
46614         * lib/filemode.c: Likewise.
46615         * lib/glob.c: Likewise.
46616         * lib/isapipe.c: Likewise.
46617         * lib/lchown.c: Likewise.
46618         * lib/lstat.c: Likewise.
46619         * lib/mkdir-p.c: Likewise.
46620         * lib/rmdir.c: Likewise.
46621         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
46622         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
46623         unless mkdir isn't declared, to speed up 'configure'.
46624         Always create sys/stat.h, since it's unlikely any real sys/stat.h
46625         would define all the S_* symbols.
46626         * modules/canonicalize (Depends-on):
46627         Depend on sys_stat, not stat-macros.
46628         * modules/chown: Likewise.
46629         * modules/euidaccess: Likewise.
46630         * modules/filemode: Likewise.
46631         * modules/file-type: Likewise.
46632         * modules/glob: Likewise.
46633         * modules/isapipe: Likewise.
46634         * modules/lchown: Likewise.
46635         * modules/lstat: Likewise.
46636         * modules/mkancesdirs: Likewise.
46637         * modules/rmdir: Likewise.
46638         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
46639         * modules/modechange: Likewise.
46640         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
46641         (configure.ac): Remove gl_STAT_MACROS.
46642         * modules/sys_stat (Depends-on): Remove stat-macros.
46643
46644 2006-10-27  Bruno Haible  <bruno@clisp.org>
46645
46646         * m4/signed.m4: Remove file.
46647         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
46648         invocation.
46649         * modules/vasnprintf (Files): Remove m4/signed.m4.
46650
46651 2006-10-27  Bruno Haible  <bruno@clisp.org>
46652
46653         Update to GNU gettext 0.16.
46654         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
46655         m4/inttypes-h.m4, m4/signed.m4.
46656         * m4/gettext.m4: Update to GNU gettext 0.16.
46657         * m4/intl.m4: New file, from GNU gettext.
46658         * m4/intldir.m4: New file, from GNU gettext.
46659         * config/srclist.txt: Update
46660
46661 2006-10-27  Eric Blake  <ebb9@byu.net>
46662
46663         * MODULES.html.sh: Document tempname.
46664         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
46665         dependencies.
46666         (Files): Move lib/tempname.c...
46667         * modules/tempname: ...to this new module.
46668         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
46669         (gl_PREREQ_TEMPNAME): Move...
46670         * m4/tempname.m4: ...to this new file.
46671         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
46672         * modules/sys_stat (Depends-on): Add stat-macros.
46673         * lib/stat_.h (includes): Pick up stat macros.
46674         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
46675         if stat macros are broken.
46676         * lib/tempname.c (includes): No need to include "stat-macros.h".
46677         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
46678         (direxists, __path_search) [!_LIBC]: Don't compile these in
46679         gnulib; the tmpdir module covers that.
46680         * lib/tempname.h: New file.
46681
46682 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
46683
46684         * COPYING: Explain how gnulib-tool converts licence headers.
46685         Almost all wording by Eric Blake.
46686
46687 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
46688
46689         * lib/mbchar.h (is_basic_table): Make read-only.
46690         * lib/mbchar.c (is_basic_table): Likewise.
46691         Reported by John Darrington.
46692
46693 2006-10-25  Bruno Haible  <bruno@clisp.org>
46694
46695         * lib/progname.h (set_program_name): Undefine before defining.
46696
46697 2006-10-25  Bruno Haible  <bruno@clisp.org>
46698
46699         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
46700         false for non-gcc C++ compilers.
46701         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
46702
46703 2006-10-24  Bruno Haible  <bruno@clisp.org>
46704
46705         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
46706         iconv implementations like Irix iconv.
46707
46708 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46709
46710         * modules/vararrays: New file.
46711         * m4/vararrays.m4: New file, taken from diffutils.
46712         * MODULES.html.sh: New module vararrays.
46713
46714 2006-10-24  Karl Berry  <karl@gnu.org>
46715
46716         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
46717         Don't call GNU Unix.
46718
46719 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46720
46721         * users.txt: Add Libtool.
46722
46723         Sync from Libtool:
46724
46725         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46726
46727         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
46728         to gnulib's policy of including config.h unconditionally.
46729
46730 2006-10-24  Bruno Haible  <bruno@clisp.org>
46731
46732         * modules/wcwidth (Files): Add m4/wint_t.m4.
46733         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
46734         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
46735
46736 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46737
46738         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
46739         to pacify GCC with some -W flags enabled.  Problem reported by
46740         Bruno Haible.
46741
46742 2006-10-24  Jim Meyering  <jim@meyering.net>
46743
46744         * MODULES.html.sh: Remove uinttostr.  It's not a module.
46745         Reported by Karl Berry.
46746
46747 2006-10-23  Bruno Haible  <bruno@clisp.org>
46748
46749         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
46750
46751 2006-10-24  Bruno Haible  <bruno@clisp.org>
46752
46753         * lib/gl_list.h: Use C comment style, not C++ comment style.
46754
46755 2006-10-23  Eric Blake  <ebb9@byu.net>
46756
46757         * lib/getaddrinfo.c (includes): Add missing include.
46758
46759 2006-10-23  Bruno Haible  <bruno@clisp.org>
46760             Paul Eggert  <eggert@cs.ucla.edu>
46761
46762         Ability to rename obstack_free.
46763         * lib/obstack.h (__obstack_free): New macro. Declare instead of
46764         obstack_free.
46765         (obstack_free): Invoke the __obstack_free macro.
46766         * lib/obstack.c (obstack_free): Use __obstack_free macro.
46767
46768 2006-10-23  Bruno Haible  <bruno@clisp.org>
46769             Paul Eggert  <eggert@cs.ucla.edu>
46770
46771         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
46772         __argc, __argv from the declaration. (They are defined as macros on
46773         mingw.)
46774
46775 2006-10-22  Bruno Haible  <bruno@clisp.org>
46776
46777         * doc/gnulib-intro.texi: New file.
46778         * doc/gnulib.texi: Include it.
46779
46780 2006-10-21  Bruno Haible  <bruno@clisp.org>
46781
46782         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
46783         "Introduction", "Miscellanous Notes", "Particular Modules".
46784
46785 2006-10-21  Bruno Haible  <bruno@clisp.org>
46786
46787         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46788         Change mostlyclean-local rule to avoid sh syntax error from bash
46789         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
46790
46791 2006-10-23  Jim Meyering  <jim@meyering.net>
46792
46793         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
46794         in place of snprintf.
46795
46796         * modules/inttostr (Files): Add lib/uinttostr.c.
46797         * lib/uinttostr.c (inttostr): New file/function.
46798         * lib/inttostr.h (uinttostr): Declare.
46799         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
46800         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
46801         Add uinttostr.
46802         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
46803
46804 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
46805
46806         * lib/canonicalize.c (ELOOP): Define if not already defined.
46807         Problem reported by Bruno Haible in
46808         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
46809
46810 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
46811
46812         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
46813         Problem reported by Perry Smith and Ville Laurikari.
46814
46815         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
46816         uses.
46817
46818 2006-10-19  Bruno Haible  <bruno@clisp.org>
46819
46820         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
46821         for mingw.
46822
46823 2006-10-19  Bruno Haible  <bruno@clisp.org>
46824
46825         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
46826         Needed for mingw.
46827
46828 2006-10-19  Bruno Haible  <bruno@clisp.org>
46829
46830         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
46831
46832 2006-10-19  Bruno Haible  <bruno@clisp.org>
46833
46834         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
46835         it.
46836
46837 2006-10-19  Bruno Haible  <bruno@clisp.org>
46838
46839         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
46840         invocation.
46841
46842 2006-10-19  Bruno Haible  <bruno@clisp.org>
46843
46844         * gnulib-tool (func_create_testdir): Don't include ftruncate and
46845         mountlist by default.
46846
46847 2006-10-16  Bruno Haible  <bruno@clisp.org>
46848
46849         * lib/c-strstr.c: Include c-strstr.h.
46850
46851 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
46852
46853         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
46854         in a slash.
46855
46856 2006-10-18  Bruno Haible  <bruno@clisp.org>
46857
46858         * lib/lock.h [C++]: Wrap definitions in extern "C".
46859
46860 2006-10-18  Bruno Haible  <bruno@clisp.org>
46861
46862         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
46863         gl_LIBOBJS list.
46864
46865 2006-10-18  Bruno Haible  <bruno@clisp.org>
46866
46867         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
46868
46869 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
46870
46871         * lib/xstrtol.h: Include gettext.h.
46872         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
46873         Problem reported by Eric Blake.
46874         * modules/xstrtol (Depends-on): Add gettext-h.
46875
46876 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
46877
46878         * lib/strftime.c (advance): New macro.
46879         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
46880         incomplete type, so you can't add 0 to it.  Problem and patch
46881         reported by Eelco Dolstra for dietlibc.
46882
46883 2006-10-18  Jim Meyering  <jim@meyering.net>
46884
46885         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
46886         type for a local, and rename it: s/up/user_proc/.
46887
46888 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
46889
46890         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
46891         READ_UTMP_USER_PROCESS.
46892         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
46893
46894 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
46895
46896         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
46897         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
46898
46899 2006-10-17  Eric Blake  <ebb9@byu.net>
46900
46901         * lib/sigprocmask.c (sigprocmask): Fix typo.
46902
46903         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
46904
46905         * modules/clean-temp (Makefile.am): Don't add to make output...
46906         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
46907         config.h.
46908
46909 2006-10-17  Bruno Haible  <bruno@clisp.org>
46910
46911         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
46912         differently if DEFAULT_TEXT_DOMAIN is set.
46913
46914 2006-10-16  Bruno Haible  <bruno@clisp.org>
46915
46916         * lib/clean-temp.c: Include fwriteerror.h.
46917
46918 2006-10-16  Bruno Haible  <bruno@clisp.org>
46919
46920         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
46921
46922 2006-10-16  Bruno Haible  <bruno@clisp.org>
46923
46924         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
46925         * lib/sigprocmask.h: Include <sys/types.h>.
46926         (sigset_t): Use the system's definition if present.
46927
46928 2006-10-17  Eric Blake  <ebb9@byu.net>
46929
46930         * lib/xvasprintf.c (includes): Assume config.h.
46931         * lib/xasprintf.c (includes): Likewise.
46932
46933 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46934
46935         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
46936         at least as wide as intmax_t.
46937
46938 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
46939
46940         (Imported from Automake.)
46941         * build-aux/gnupload: Update to version 1.1 of directive file.
46942
46943 2006-10-16  Eric Blake  <ebb9@byu.net>
46944
46945         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
46946         match Automake 1.10a.
46947
46948 2006-10-14  Bruno Haible  <bruno@clisp.org>
46949
46950         * modules/sigprocmask: New file.
46951         * lib/sigprocmask.h: New file.
46952         * lib/sigprocmask.c: New file.
46953         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
46954         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
46955         request sigprocmask.o.
46956         (gl_PREREQ_SIGPROCMASK): New macro.
46957         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
46958         (Depends-on): Add sigprocmask.
46959         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
46960         gt_SIGNALBLOCKING. Test for 'raise' only once.
46961         * lib/fatal-signal.c: Include sigprocmask.h.
46962         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
46963         unblock_fatal_signals): Define always.
46964         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46965         sigprocmask.
46966
46967 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
46968
46969         Sync from Automake.
46970         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
46971         which incorrectly sets the mode of an existing destination
46972         directory.  In some cases the unpatched install-sh could do the
46973         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
46974         system.  We hope this is rare in practice, but it's clearly worth
46975         fixing.  Problem reported by Alex Unleashed in
46976         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
46977         Also, don't bother to check for -m bugs unless we're using -m;
46978         suggested by Stepan Kasal.
46979
46980 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46981
46982         Sync from Automake.
46983         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
46984         `-c' flag, so they appear at the same position as in %FASTDEP%
46985         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
46986         which ignores unknown options only after the first non-option.
46987         Bug report against M4 by Nelson H. F. Beebe.
46988
46989 2006-10-13  Jim Meyering  <jim@meyering.net>
46990
46991         Fix a bug in yesterday's change.
46992         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
46993         p->fts_statp->st_dev would be used uninitialized.
46994         Ensures that we always call fts_stat on the very first entry.
46995         Miklos Szeredi reported that find -xdev stopped working.
46996
46997 2006-10-12  Bruno Haible  <bruno@clisp.org>
46998
46999         * gnulib-tool (func_get_automake_snippet): Append an automatically
47000         computed EXTRA_DIST augmentation.
47001         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
47002         * modules/alloca-opt (Makefile.am): Likewise.
47003         * modules/allocsa (Makefile.am): Likewise.
47004         * modules/arcfour (Makefile.am): Likewise.
47005         * modules/arctwo (Makefile.am): Likewise.
47006         * modules/argmatch (Makefile.am): Likewise.
47007         * modules/argz (Makefile.am): Likewise.
47008         * modules/atexit (Makefile.am): Likewise.
47009         * modules/backupfile (Makefile.am): Likewise.
47010         * modules/byteswap (Makefile.am): Likewise.
47011         * modules/c-strtod (Makefile.am): Likewise.
47012         * modules/c-strtold (Makefile.am): Likewise.
47013         * modules/calloc (Makefile.am): Likewise.
47014         * modules/canon-host (Makefile.am): Likewise.
47015         * modules/canonicalize (Makefile.am): Likewise.
47016         * modules/chdir-long (Makefile.am): Likewise.
47017         * modules/chdir-safer (Makefile.am): Likewise.
47018         * modules/check-version (Makefile.am): Likewise.
47019         * modules/chown (Makefile.am): Likewise.
47020         * modules/cloexec (Makefile.am): Likewise.
47021         * modules/close-stream (Makefile.am): Likewise.
47022         * modules/closeout (Makefile.am): Likewise.
47023         * modules/crc (Makefile.am): Likewise.
47024         * modules/csharpexec (Makefile.am): Likewise.
47025         * modules/cycle-check (Makefile.am): Likewise.
47026         * modules/des (Makefile.am): Likewise.
47027         * modules/dev-ino (Makefile.am): Likewise.
47028         * modules/dirfd (Makefile.am): Likewise.
47029         * modules/dirname (Makefile.am): Likewise.
47030         * modules/dup2 (Makefile.am): Likewise.
47031         * modules/eealloc (Makefile.am): Likewise.
47032         * modules/error (Makefile.am): Likewise.
47033         * modules/euidaccess (Makefile.am): Likewise.
47034         * modules/exclude (Makefile.am): Likewise.
47035         * modules/exitfail (Makefile.am): Likewise.
47036         * modules/fcntl-safer (Makefile.am): Likewise.
47037         * modules/fcntl (Makefile.am): Likewise.
47038         * modules/file-type (Makefile.am): Likewise.
47039         * modules/fileblocks (Makefile.am): Likewise.
47040         * modules/filemode (Makefile.am): Likewise.
47041         * modules/filenamecat (Makefile.am): Likewise.
47042         * modules/fnmatch (Makefile.am): Likewise.
47043         * modules/fopen-safer (Makefile.am): Likewise.
47044         * modules/fpending (Makefile.am): Likewise.
47045         * modules/fprintftime (Makefile.am): Likewise.
47046         * modules/free (Makefile.am): Likewise.
47047         * modules/fsusage (Makefile.am): Likewise.
47048         * modules/ftruncate (Makefile.am): Likewise.
47049         * modules/fts (Makefile.am): Likewise.
47050         * modules/gc-arcfour (Makefile.am): Likewise.
47051         * modules/gc-des (Makefile.am): Likewise.
47052         * modules/gc-hmac-md5 (Makefile.am): Likewise.
47053         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
47054         * modules/gc-md4 (Makefile.am): Likewise.
47055         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
47056         * modules/gc-sha1 (Makefile.am): Likewise.
47057         * modules/gc (Makefile.am): Likewise.
47058         * modules/getaddrinfo (Makefile.am): Likewise.
47059         * modules/getcwd (Makefile.am): Likewise.
47060         * modules/getdelim (Makefile.am): Likewise.
47061         * modules/getdomainname (Makefile.am): Likewise.
47062         * modules/getgroups (Makefile.am): Likewise.
47063         * modules/gethostname (Makefile.am): Likewise.
47064         * modules/gethrxtime (Makefile.am): Likewise.
47065         * modules/getline (Makefile.am): Likewise.
47066         * modules/getloadavg (Makefile.am): Likewise.
47067         * modules/getlogin_r (Makefile.am): Likewise.
47068         * modules/getndelim2 (Makefile.am): Likewise.
47069         * modules/getopt (Makefile.am): Likewise.
47070         * modules/getpagesize (Makefile.am): Likewise.
47071         * modules/getpass-gnu (Makefile.am): Likewise.
47072         * modules/getpass (Makefile.am): Likewise.
47073         * modules/getsubopt (Makefile.am): Likewise.
47074         * modules/gettime (Makefile.am): Likewise.
47075         * modules/gettimeofday (Makefile.am): Likewise.
47076         * modules/getugroups (Makefile.am): Likewise.
47077         * modules/getusershell (Makefile.am): Likewise.
47078         * modules/glob (Makefile.am): Likewise.
47079         * modules/group-member (Makefile.am): Likewise.
47080         * modules/hard-locale (Makefile.am): Likewise.
47081         * modules/hash (Makefile.am): Likewise.
47082         * modules/hmac-md5 (Makefile.am): Likewise.
47083         * modules/hmac-sha1 (Makefile.am): Likewise.
47084         * modules/human (Makefile.am): Likewise.
47085         * modules/idcache (Makefile.am): Likewise.
47086         * modules/imaxabs (Makefile.am): Likewise.
47087         * modules/imaxdiv (Makefile.am): Likewise.
47088         * modules/inet_ntop (Makefile.am): Likewise.
47089         * modules/inet_pton (Makefile.am): Likewise.
47090         * modules/intprops (Makefile.am): Likewise.
47091         * modules/inttostr (Makefile.am): Likewise.
47092         * modules/inttypes (Makefile.am): Likewise.
47093         * modules/isapipe (Makefile.am): Likewise.
47094         * modules/javaversion (Makefile.am): Likewise.
47095         * modules/lchmod (Makefile.am): Likewise.
47096         * modules/lchown (Makefile.am): Likewise.
47097         * modules/localcharset (Makefile.am): Likewise.
47098         * modules/long-options (Makefile.am): Likewise.
47099         * modules/lstat (Makefile.am): Likewise.
47100         * modules/malloc (Makefile.am): Likewise.
47101         * modules/mathl (Makefile.am): Likewise.
47102         * modules/mbchar (Makefile.am): Likewise.
47103         * modules/md2 (Makefile.am): Likewise.
47104         * modules/md4 (Makefile.am): Likewise.
47105         * modules/md5 (Makefile.am): Likewise.
47106         * modules/memcasecmp (Makefile.am): Likewise.
47107         * modules/memchr (Makefile.am): Likewise.
47108         * modules/memcmp (Makefile.am): Likewise.
47109         * modules/memcoll (Makefile.am): Likewise.
47110         * modules/memcpy (Makefile.am): Likewise.
47111         * modules/memmem (Makefile.am): Likewise.
47112         * modules/memmove (Makefile.am): Likewise.
47113         * modules/mempcpy (Makefile.am): Likewise.
47114         * modules/memrchr (Makefile.am): Likewise.
47115         * modules/memset (Makefile.am): Likewise.
47116         * modules/memxor (Makefile.am): Likewise.
47117         * modules/mkancesdirs (Makefile.am): Likewise.
47118         * modules/mkdir-p (Makefile.am): Likewise.
47119         * modules/mkdir (Makefile.am): Likewise.
47120         * modules/mkdtemp (Makefile.am): Likewise.
47121         * modules/mkstemp (Makefile.am): Likewise.
47122         * modules/mktime (Makefile.am): Likewise.
47123         * modules/modechange (Makefile.am): Likewise.
47124         * modules/mountlist (Makefile.am): Likewise.
47125         * modules/nanosleep (Makefile.am): Likewise.
47126         * modules/obstack (Makefile.am): Likewise.
47127         * modules/openat (Makefile.am): Likewise.
47128         * modules/pagealign_alloc (Makefile.am): Likewise.
47129         * modules/pathmax (Makefile.am): Likewise.
47130         * modules/physmem (Makefile.am): Likewise.
47131         * modules/poll (Makefile.am): Likewise.
47132         * modules/posixtm (Makefile.am): Likewise.
47133         * modules/posixver (Makefile.am): Likewise.
47134         * modules/putenv (Makefile.am): Likewise.
47135         * modules/quote (Makefile.am): Likewise.
47136         * modules/quotearg (Makefile.am): Likewise.
47137         * modules/raise (Makefile.am): Likewise.
47138         * modules/read-file (Makefile.am): Likewise.
47139         * modules/readline (Makefile.am): Likewise.
47140         * modules/readlink (Makefile.am): Likewise.
47141         * modules/readtokens (Makefile.am): Likewise.
47142         * modules/readutmp (Makefile.am): Likewise.
47143         * modules/realloc (Makefile.am): Likewise.
47144         * modules/regex (Makefile.am): Likewise.
47145         * modules/rename-dest-slash (Makefile.am): Likewise.
47146         * modules/rename (Makefile.am): Likewise.
47147         * modules/rijndael (Makefile.am): Likewise.
47148         * modules/rmdir (Makefile.am): Likewise.
47149         * modules/rpmatch (Makefile.am): Likewise.
47150         * modules/safe-read (Makefile.am): Likewise.
47151         * modules/safe-write (Makefile.am): Likewise.
47152         * modules/same-inode (Makefile.am): Likewise.
47153         * modules/same (Makefile.am): Likewise.
47154         * modules/save-cwd (Makefile.am): Likewise.
47155         * modules/savedir (Makefile.am): Likewise.
47156         * modules/setenv (Makefile.am): Likewise.
47157         * modules/settime (Makefile.am): Likewise.
47158         * modules/sha1 (Makefile.am): Likewise.
47159         * modules/sig2str (Makefile.am): Likewise.
47160         * modules/snprintf (Makefile.am): Likewise.
47161         * modules/stat-macros (Makefile.am): Likewise.
47162         * modules/stat-time (Makefile.am): Likewise.
47163         * modules/stdbool (Makefile.am): Likewise.
47164         * modules/stdint (Makefile.am): Likewise.
47165         * modules/stdlib-safer (Makefile.am): Likewise.
47166         * modules/stpcpy (Makefile.am): Likewise.
47167         * modules/stpncpy (Makefile.am): Likewise.
47168         * modules/strcase (Makefile.am): Likewise.
47169         * modules/strcasestr (Makefile.am): Likewise.
47170         * modules/strchrnul (Makefile.am): Likewise.
47171         * modules/strcspn (Makefile.am): Likewise.
47172         * modules/strdup (Makefile.am): Likewise.
47173         * modules/strerror (Makefile.am): Likewise.
47174         * modules/strftime (Makefile.am): Likewise.
47175         * modules/strndup (Makefile.am): Likewise.
47176         * modules/strnlen (Makefile.am): Likewise.
47177         * modules/strpbrk (Makefile.am): Likewise.
47178         * modules/strsep (Makefile.am): Likewise.
47179         * modules/strstr (Makefile.am): Likewise.
47180         * modules/strtod (Makefile.am): Likewise.
47181         * modules/strtoimax (Makefile.am): Likewise.
47182         * modules/strtok_r (Makefile.am): Likewise.
47183         * modules/strtol (Makefile.am): Likewise.
47184         * modules/strtoll (Makefile.am): Likewise.
47185         * modules/strtoul (Makefile.am): Likewise.
47186         * modules/strtoull (Makefile.am): Likewise.
47187         * modules/strtoumax (Makefile.am): Likewise.
47188         * modules/strverscmp (Makefile.am): Likewise.
47189         * modules/sys_socket (Makefile.am): Likewise.
47190         * modules/sys_stat (Makefile.am): Likewise.
47191         * modules/sysexits (Makefile.am): Likewise.
47192         * modules/time_r (Makefile.am): Likewise.
47193         * modules/timegm (Makefile.am): Likewise.
47194         * modules/timespec (Makefile.am): Likewise.
47195         * modules/tmpfile-safer (Makefile.am): Likewise.
47196         * modules/trim (Makefile.am): Likewise.
47197         * modules/unistd-safer (Makefile.am): Likewise.
47198         * modules/unlinkdir (Makefile.am): Likewise.
47199         * modules/unlocked-io (Makefile.am): Likewise.
47200         * modules/userspec (Makefile.am): Likewise.
47201         * modules/utime (Makefile.am): Likewise.
47202         * modules/utimecmp (Makefile.am): Likewise.
47203         * modules/utimens (Makefile.am): Likewise.
47204         * modules/vasnprintf (Makefile.am): Likewise.
47205         * modules/vasprintf (Makefile.am): Likewise.
47206         * modules/vsnprintf (Makefile.am): Likewise.
47207         * modules/xalloc (Makefile.am): Likewise.
47208         * modules/xgetcwd (Makefile.am): Likewise.
47209         * modules/xnanosleep (Makefile.am): Likewise.
47210         * modules/xreadlink (Makefile.am): Likewise.
47211         * modules/xstrtod (Makefile.am): Likewise.
47212         * modules/xstrtol (Makefile.am): Likewise.
47213         * modules/xstrtold (Makefile.am): Likewise.
47214         * modules/yesno (Makefile.am): Likewise.
47215         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
47216
47217 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
47218
47219         * modules/error (Makefile.am): Distribute files through
47220         EXTRA_DIST, not lib_SOURCES.
47221
47222 2006-10-12  Eric Blake  <ebb9@byu.net>
47223
47224         * modules/error (Makefile.am): Distribute files in /lib.
47225         * modules/obstack (Makefile.am): Likewise.
47226
47227 2006-10-12  Bruno Haible  <bruno@clisp.org>
47228
47229         * modules/acl (Makefile.am): Distribute all files in lib/ through
47230         EXTRA_DIST.
47231         * modules/arcfour (Makefile.am): Likewise.
47232         * modules/arctwo (Makefile.am): Likewise.
47233         * modules/argmatch (Makefile.am): Likewise.
47234         * modules/argz (Makefile.am): Likewise.
47235         * modules/atexit (Makefile.am): Likewise.
47236         * modules/backupfile (Makefile.am): Likewise.
47237         * modules/c-strtod (Makefile.am): Likewise.
47238         * modules/c-strtold (Makefile.am): Likewise.
47239         * modules/calloc (Makefile.am): Likewise.
47240         * modules/canon-host (Makefile.am): Likewise.
47241         * modules/canonicalize (Makefile.am): Likewise.
47242         * modules/chdir-long (Makefile.am): Likewise.
47243         * modules/chdir-safer (Makefile.am): Likewise.
47244         * modules/check-version (Makefile.am): Likewise.
47245         * modules/chown (Makefile.am): Likewise.
47246         * modules/cloexec (Makefile.am): Likewise.
47247         * modules/close-stream (Makefile.am): Likewise.
47248         * modules/closeout (Makefile.am): Likewise.
47249         * modules/crc (Makefile.am): Likewise.
47250         * modules/cycle-check (Makefile.am): Likewise.
47251         * modules/des (Makefile.am): Likewise.
47252         * modules/dirfd (Makefile.am): Likewise.
47253         * modules/dirname (Makefile.am): Likewise.
47254         * modules/dup2 (Makefile.am): Likewise.
47255         * modules/euidaccess (Makefile.am): Likewise.
47256         * modules/exclude (Makefile.am): Likewise.
47257         * modules/exitfail (Makefile.am): Likewise.
47258         * modules/fcntl-safer (Makefile.am): Likewise.
47259         * modules/file-type (Makefile.am): Likewise.
47260         * modules/fileblocks (Makefile.am): Likewise.
47261         * modules/filemode (Makefile.am): Likewise.
47262         * modules/filenamecat (Makefile.am): Likewise.
47263         * modules/fnmatch (Makefile.am): Likewise.
47264         * modules/fopen-safer (Makefile.am): Likewise.
47265         * modules/fpending (Makefile.am): Likewise.
47266         * modules/fprintftime (Makefile.am): Likewise.
47267         * modules/free (Makefile.am): Likewise.
47268         * modules/fsusage (Makefile.am): Likewise.
47269         * modules/ftruncate (Makefile.am): Likewise.
47270         * modules/fts (Makefile.am): Likewise.
47271         * modules/gc (Makefile.am): Likewise.
47272         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
47273         * modules/getaddrinfo (Makefile.am): Likewise.
47274         * modules/getcwd (Makefile.am): Likewise.
47275         * modules/getdelim (Makefile.am): Likewise.
47276         * modules/getdomainname (Makefile.am): Likewise.
47277         * modules/getgroups (Makefile.am): Likewise.
47278         * modules/gethostname (Makefile.am): Likewise.
47279         * modules/gethrxtime (Makefile.am): Likewise.
47280         * modules/getline (Makefile.am): Likewise.
47281         * modules/getloadavg (Makefile.am): Likewise.
47282         * modules/getlogin_r (Makefile.am): Likewise.
47283         * modules/getopt (Makefile.am): Likewise.
47284         * modules/getpass (Makefile.am): Likewise.
47285         * modules/getpass-gnu (Makefile.am): Likewise.
47286         * modules/getsubopt (Makefile.am): Likewise.
47287         * modules/gettime (Makefile.am): Likewise.
47288         * modules/gettimeofday (Makefile.am): Likewise.
47289         * modules/getugroups (Makefile.am): Likewise.
47290         * modules/getusershell (Makefile.am): Likewise.
47291         * modules/glob (Makefile.am): Likewise.
47292         * modules/group-member (Makefile.am): Likewise.
47293         * modules/hard-locale (Makefile.am): Likewise.
47294         * modules/hash (Makefile.am): Likewise.
47295         * modules/hmac-md5 (Makefile.am): Likewise.
47296         * modules/hmac-sha1 (Makefile.am): Likewise.
47297         * modules/human (Makefile.am): Likewise.
47298         * modules/idcache (Makefile.am): Likewise.
47299         * modules/imaxabs (Makefile.am): Likewise.
47300         * modules/imaxdiv (Makefile.am): Likewise.
47301         * modules/inet_ntop (Makefile.am): Likewise.
47302         * modules/inet_pton (Makefile.am): Likewise.
47303         * modules/inttostr (Makefile.am): Likewise.
47304         * modules/isapipe (Makefile.am): Likewise.
47305         * modules/lchown (Makefile.am): Likewise.
47306         * modules/long-options (Makefile.am): Likewise.
47307         * modules/lstat (Makefile.am): Likewise.
47308         * modules/malloc (Makefile.am): Likewise.
47309         * modules/mathl (Makefile.am): Likewise.
47310         * modules/mbchar (Makefile.am): Likewise.
47311         * modules/md2 (Makefile.am): Likewise.
47312         * modules/md4 (Makefile.am): Likewise.
47313         * modules/md5 (Makefile.am): Likewise.
47314         * modules/memcasecmp (Makefile.am): Likewise.
47315         * modules/memchr (Makefile.am): Likewise.
47316         * modules/memcmp (Makefile.am): Likewise.
47317         * modules/memcoll (Makefile.am): Likewise.
47318         * modules/memcpy (Makefile.am): Likewise.
47319         * modules/memmem (Makefile.am): Likewise.
47320         * modules/memmove (Makefile.am): Likewise.
47321         * modules/mempcpy (Makefile.am): Likewise.
47322         * modules/memrchr (Makefile.am): Likewise.
47323         * modules/memset (Makefile.am): Likewise.
47324         * modules/memxor (Makefile.am): Likewise.
47325         * modules/mkancesdirs (Makefile.am): Likewise.
47326         * modules/mkdir (Makefile.am): Likewise.
47327         * modules/mkdir-p (Makefile.am): Likewise.
47328         * modules/mkdtemp (Makefile.am): Likewise.
47329         * modules/mkstemp (Makefile.am): Likewise.
47330         * modules/mktime (Makefile.am): Likewise.
47331         * modules/modechange (Makefile.am): Likewise.
47332         * modules/mountlist (Makefile.am): Likewise.
47333         * modules/nanosleep (Makefile.am): Likewise.
47334         * modules/openat (Makefile.am): Likewise.
47335         * modules/pagealign_alloc (Makefile.am): Likewise.
47336         * modules/physmem (Makefile.am): Likewise.
47337         * modules/poll (Makefile.am): Likewise.
47338         * modules/posixtm (Makefile.am): Likewise.
47339         * modules/posixver (Makefile.am): Likewise.
47340         * modules/putenv (Makefile.am): Likewise.
47341         * modules/quote (Makefile.am): Likewise.
47342         * modules/quotearg (Makefile.am): Likewise.
47343         * modules/raise (Makefile.am): Likewise.
47344         * modules/read-file (Makefile.am): Likewise.
47345         * modules/readline (Makefile.am): Likewise.
47346         * modules/readlink (Makefile.am): Likewise.
47347         * modules/readtokens (Makefile.am): Likewise.
47348         * modules/readutmp (Makefile.am): Likewise.
47349         * modules/realloc (Makefile.am): Likewise.
47350         * modules/regex (Makefile.am): Likewise.
47351         * modules/rename (Makefile.am): Likewise.
47352         * modules/rename-dest-slash (Makefile.am): Likewise.
47353         * modules/rijndael (Makefile.am): Likewise.
47354         * modules/rmdir (Makefile.am): Likewise.
47355         * modules/rpmatch (Makefile.am): Likewise.
47356         * modules/safe-read (Makefile.am): Likewise.
47357         * modules/safe-write (Makefile.am): Likewise.
47358         * modules/same (Makefile.am): Likewise.
47359         * modules/save-cwd (Makefile.am): Likewise.
47360         * modules/savedir (Makefile.am): Likewise.
47361         * modules/setenv (Makefile.am): Likewise.
47362         * modules/settime (Makefile.am): Likewise.
47363         * modules/sha1 (Makefile.am): Likewise.
47364         * modules/sig2str (Makefile.am): Likewise.
47365         * modules/snprintf (Makefile.am): Likewise.
47366         * modules/stdlib-safer (Makefile.am): Likewise.
47367         * modules/stpcpy (Makefile.am): Likewise.
47368         * modules/stpncpy (Makefile.am): Likewise.
47369         * modules/strcase (Makefile.am): Likewise.
47370         * modules/strcasestr (Makefile.am): Likewise.
47371         * modules/strchrnul (Makefile.am): Likewise.
47372         * modules/strcspn (Makefile.am): Likewise.
47373         * modules/strdup (Makefile.am): Likewise.
47374         * modules/strerror (Makefile.am): Likewise.
47375         * modules/strftime (Makefile.am): Likewise.
47376         * modules/strndup (Makefile.am): Likewise.
47377         * modules/strnlen (Makefile.am): Likewise.
47378         * modules/strpbrk (Makefile.am): Likewise.
47379         * modules/strsep (Makefile.am): Likewise.
47380         * modules/strstr (Makefile.am): Likewise.
47381         * modules/strtod (Makefile.am): Likewise.
47382         * modules/strtoimax (Makefile.am): Likewise.
47383         * modules/strtok_r (Makefile.am): Likewise.
47384         * modules/strtol (Makefile.am): Likewise.
47385         * modules/strtoll (Makefile.am): Likewise.
47386         * modules/strtoul (Makefile.am): Likewise.
47387         * modules/strtoull (Makefile.am): Likewise.
47388         * modules/strtoumax (Makefile.am): Likewise.
47389         * modules/strverscmp (Makefile.am): Likewise.
47390         * modules/time_r (Makefile.am): Likewise.
47391         * modules/timegm (Makefile.am): Likewise.
47392         * modules/tmpfile-safer (Makefile.am): Likewise.
47393         * modules/unistd-safer (Makefile.am): Likewise.
47394         * modules/unlinkdir (Makefile.am): Likewise.
47395         * modules/userspec (Makefile.am): Likewise.
47396         * modules/utime (Makefile.am): Likewise.
47397         * modules/utimecmp (Makefile.am): Likewise.
47398         * modules/utimens (Makefile.am): Likewise.
47399         * modules/vasnprintf (Makefile.am): Likewise.
47400         * modules/vasprintf (Makefile.am): Likewise.
47401         * modules/vsnprintf (Makefile.am): Likewise.
47402         * modules/xalloc (Makefile.am): Likewise.
47403         * modules/xgetcwd (Makefile.am): Likewise.
47404         * modules/xnanosleep (Makefile.am): Likewise.
47405         * modules/xreadlink (Makefile.am): Likewise.
47406         * modules/xstrtod (Makefile.am): Likewise.
47407         * modules/xstrtol (Makefile.am): Likewise.
47408         * modules/xstrtold (Makefile.am): Likewise.
47409         * modules/yesno (Makefile.am): Likewise.
47410
47411 2006-10-12  Jim Meyering  <jim@meyering.net>
47412
47413         * m4/getloadavg.m4: Revert the change below.
47414
47415         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
47416         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
47417         fail with a symlink, which is what coreutils' ./bootstrap now
47418         creates by default.
47419
47420 2006-10-12  Bruno Haible  <bruno@clisp.org>
47421
47422         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
47423         mingw.
47424         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
47425         MSVC and mingw explicitly.
47426
47427 2006-10-11  Simon Josefsson  <jas@extundo.com>
47428             Bruno Haible  <bruno@clisp.org>
47429
47430         Add support for multiple gnulib-tool invocations in the scope of a
47431         single configure.ac file.
47432         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
47433         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
47434         with the same contents as the _LIBADD variable.
47435         (func_emit_initmacro_start, func_emit_initmacro_end,
47436         func_emit_initmacro_done): New functions.
47437         (func_import, func_create_testdir): Invoke them. Allow the identifiers
47438         gl_LIBOBJS and gl_LTLIBOBJS.
47439
47440 2006-10-11  Bruno Haible  <bruno@clisp.org>
47441
47442         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
47443         (func_create_testdir): Don't create po/Makefile.am, don't invoke
47444         autoreconf. Instead, invoke autopoint explicitly but move back the
47445         *.m4 files from gnulib.
47446
47447 2006-10-11  Bruno Haible  <bruno@clisp.org>
47448
47449         * gnulib-tool (func_usage): Make module names after --create-testdir
47450         optional.
47451         (func_create_testdir): If no module was specified, use nearly all
47452         modules.
47453
47454 2006-10-12  Jim Meyering  <jim@meyering.net>
47455
47456         Big performance improvement for fts-based tools that use FTS_NOSTAT.
47457         Avoid spurious inode-mismatch problems on non-POSIX file systems.
47458         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
47459         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
47460         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
47461         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
47462         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
47463         (fts_set_stat_required): New function.
47464         (fts_open): Defer the calls to fts_stat, if possible or requested.
47465         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
47466         into fts_stat itself.
47467         (fts_read): Perform any required (deferred) fts_stat call.
47468         (fts_build): Likewise, for the directory we're about to open and read.
47469         In the readdir loop, carefully decide whether each entry will require
47470         an eventual call to fts_stat, using dirent.d_type info if available.
47471         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
47472         a command line argument into this function.  Update all callers.
47473         Map a return value of FTS_DOT to FTS_D for a command line argument.
47474         * modules/fts (Depends-on): Add d-type.  Alphabetize.
47475         Thanks to Miklos Szeredi for his tenacity and for the initial
47476         bug report about "find" failing on a FUSE-based file system.
47477
47478         * lib/fts.c (fts_open): Use consistent indentation.
47479
47480 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
47481
47482         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
47483         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
47484         reported by Jim Meyering.  All uses of cache variables renamed
47485         to match Autoconf's.
47486         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
47487         the other one.
47488
47489         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
47490         Fix misspelling in diagnostic.
47491
47492 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
47493
47494         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
47495         defined.  Problem reported by Matthew Woehlke.
47496
47497         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
47498         Add support for Tandem NonStop R series.
47499         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
47500         Use new macro.
47501
47502         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
47503         (has_trailing_slash): Omit size arg; all callers changed.
47504         Omit 'inline', since it doesn't help performance and we'd
47505         need to configure it.
47506         Don't count //, ///, etc. as having a trailing slash.
47507         As a side effect, this removes a C99ism reported by Matthew Woehlke.
47508         (rpl_rename_dest_slash): On failure, use rename's errno rather
47509         than (in some cases) an incorrect or junk errno.
47510         Simplify code by removing need to compute length; this does
47511         cause it to make two passes instead of one over the file name,
47512         but it's worth it.
47513
47514         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
47515         change, since Autoconf's version may no longer be appropriate now
47516         that we are using CVS Autoconf's version.  Add support for Tandem.
47517
47518 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
47519             Bruno Haible  <bruno@clisp.org>
47520
47521         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
47522         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
47523         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
47524         gl_AC_TYPE_LONG_LONG.
47525
47526         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
47527         instead of HAVE_LONG_LONG.
47528         * lib/printf-args.c (printf_fetchargs): Likewise.
47529         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
47530         * lib/vasnprintf.c (VASNPRINTF): Likewise.
47531         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
47532         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
47533         gl_AC_TYPE_LONG_LONG.
47534
47535 2006-10-11  Bruno Haible  <bruno@clisp.org>
47536
47537         * m4/longlong.m4: Add comments.
47538         * m4/ulonglong.m4: Likewise.
47539
47540 2006-10-10  Bruno Haible  <bruno@clisp.org>
47541
47542         Make it possible to #define stpcpy, strdup to aliases.
47543         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
47544         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
47545
47546 2006-10-10  Bruno Haible  <bruno@clisp.org>
47547
47548         Make it possible to #define gcd to an alias.
47549         * lib/gcd.c: Include config.h.
47550
47551 2006-10-10  Bruno Haible  <bruno@clisp.org>
47552
47553         Make it possible to #define c_isascii to an alias.
47554         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
47555         defined. Undefine the macros before defining them, to avoid gcc
47556         warnings.
47557         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
47558         define NO_C_CTYPE_MACROS early.
47559
47560 2006-10-10  Bruno Haible  <bruno@clisp.org>
47561
47562         Make it possible to #define set_program_name to an alias.
47563         * lib/progname.c: Don't undefine set_program_name; instead, undefine
47564         ENABLE_RELOCATABLE early.
47565
47566 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
47567
47568         Port to Tandem NSK OSS, which has 64-bit signed int but at most
47569         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
47570         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
47571         More generally, don't assume that 64-bit signed int is available
47572         if unsigned int is, and vice versa.
47573         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
47574         unsigned symbols, not on their signed counterparts.
47575         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
47576         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
47577         (UINT64_C, UINTMAX_C):
47578         Likewise.
47579         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
47580         unsigned counterparts.
47581         (Have_long_long, Unsigned): New macros.
47582         (Int): Renamed from INT.
47583         (strtoimax): Use the new macros.
47584         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
47585         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
47586         * modules/inttypes (inttypes.h): Substitute
47587         HAVE_UNSIGNED_LONG_LONG_INT.
47588         * modules/stdint (stdint.h): Likewise.
47589         (Files): Add m4/ulonglong.m4.
47590
47591 2006-10-10  Bruno Haible  <bruno@clisp.org>
47592
47593         Fix a gcc -Wshadow warning.
47594         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
47595         to 'bucket'.
47596         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
47597         gl_linked_indexof_from_to): Likewise.
47598         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
47599         Likewise.
47600         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
47601         Likewise.
47602         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
47603         Reported by Eric Blake.
47604
47605 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
47606
47607         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
47608         for NetBSD.  Problem reported by Bruno Haible.
47609
47610 2006-10-09  Jim Meyering  <jim@meyering.net>
47611
47612         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
47613         Patch from Bruno Haible.
47614
47615 2006-10-09  Jim Meyering  <jim@meyering.net>
47616
47617         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
47618         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
47619         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
47620
47621 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
47622
47623         Don't include <config.h> twice; this doesn't work in some cases,
47624         e.g., when config.h has "#define intmax_t long long int" and
47625         we include <config.h>, <inttypes.h>, <config.h> in that order.
47626         Problem reported by Matthew Woehlke in:
47627         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
47628         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
47629         * lib/fts-cycle.c: Don't include config.h.
47630         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
47631         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
47632         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
47633         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
47634         inttypes.h.
47635         * lib/xstrtoumax.c: Likewise.
47636         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
47637         __strtol and the like, so that this module is more like its siblings.
47638         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
47639         Remove; no longer needed now that we assume gnulib inttypes.h.
47640
47641 2006-10-08  Bruno Haible  <bruno@clisp.org>
47642
47643         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
47644         option.
47645
47646 2006-10-07  Jim Meyering  <jim@meyering.net>
47647
47648         * modules/inttypes (inttypes.h): Revert what seems to have been
47649         an inadvertent part of today's change: use "|", not "/" in the
47650         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
47651
47652 2006-10-07  Bruno Haible  <bruno@clisp.org>
47653
47654         * modules/sublist: New file.
47655
47656 2006-10-07  Bruno Haible  <bruno@clisp.org>
47657
47658         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
47659         * modules/argz (argz.h): Likewise.
47660         * modules/arpa_inet (arpa/inet.h): Likewise.
47661         * modules/byteswap (byteswap.h): Likewise.
47662         * modules/configmake (configmake.h): Likewise.
47663         * modules/fcntl (fcntl.h): Likewise.
47664         * modules/fnmatch (fnmatch.h): Likewise.
47665         * modules/getopt (getopt.h): Likewise.
47666         * modules/glob (glob.h): Likewise.
47667         * modules/inttypes (inttypes.h): Likewise.
47668         * modules/netinet_in (netinet/in.h): Likewise.
47669         * modules/poll (poll.h): Likewise.
47670         * modules/stdbool (stdbool.h): Likewise.
47671         * modules/stdint (stdint.h): Likewise.
47672         * modules/sys_select (sys/select.h): Likewise.
47673         * modules/sys_socket (sys/socket.h): Likewise.
47674         * modules/sys_stat (sys/stat.h): Likewise.
47675         * modules/sysexits (sysexits.h): Likewise.
47676         * modules/unistd (unistd.h): Likewise.
47677         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47678         Add a "DO NOT EDIT" comment to the generated file.
47679         (func_import): Likewise for gnulib-comp.m4.
47680
47681 2006-10-07  Bruno Haible  <bruno@clisp.org>
47682
47683         * lib/gl_sublist.h: New file.
47684         * lib/gl_sublist.c: New file.
47685
47686 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
47687
47688         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
47689         name (relative to the original working directory) and the file
47690         name component (relative to the temporary working directory).  All
47691         callers changed.
47692         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
47693         * lib/mkdir-p.c (make_dir_parents): Likewise.
47694         * lib/mkdir-p.h (make_dir_parents): Likewise.
47695
47696 2006-10-06  Eric Blake  <ebb9@byu.net>
47697
47698         Define several macros for use by the clean-temp module.
47699         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
47700         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
47701         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
47702
47703         * lib/clean-temp.h (close_stream_temp): New declaration.
47704         * lib/clean-temp.c (includes): Pull in headers according to what
47705         other modules are in use.
47706         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
47707
47708 2006-10-06  Bruno Haible  <bruno@clisp.org>
47709
47710         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
47711         instead of fopen, fwriteerror.
47712
47713 2006-10-06  Bruno Haible  <bruno@clisp.org>
47714
47715         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
47716         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
47717         int.
47718         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
47719         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
47720         Return an error indicator.
47721         Suggested by Eric Blake.
47722
47723 2006-10-06  Bruno Haible  <bruno@clisp.org>
47724
47725         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
47726         Reported by Eric Blake.
47727
47728 2006-10-06  Bruno Haible  <bruno@clisp.org>
47729
47730         * modules/closeout (Description): Mention stderr too.
47731
47732 2006-10-06  Bruno Haible  <bruno@clisp.org>
47733         and Paul Eggert  <eggert@cs.ucla.edu>
47734
47735         * lib/closeout.c (close_stdout): Also close stderr.
47736         * lib/closeout.h: Update comment.
47737
47738 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
47739
47740         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
47741         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
47742         * lib/dirchownmod.c: Include lchown.h.
47743         * lib/lchown.c: Don't include files that lchown.h now includes.
47744         Don't declare chown, since lchown.h now does that.
47745         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
47746         (lchown): Define to rpl_chown if lchown is declared but
47747         does not exist.  Declare using a prototype if lchown is not
47748         declared.  Add a copyright notice.
47749         * lib/mkstemp.h: Include <unistd.h>.
47750         * lib/openat.c: Include lchown.h.
47751
47752         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
47753         we now test for that separately.
47754         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
47755         rather than O_NOFOLLOW, when testing whether it's possible to
47756         avoid a race condition reliably.
47757         * lib/savewd.c (savewd_chdir): Likewise.
47758
47759         Remove macros that are no longer needed now that stdint.h is
47760         reliable.
47761         * lib/fsusage.c (UINTMAX_MAX): Remove.
47762         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
47763         * lib/utimecmp.c (SIZE_MAX): Remove.
47764
47765         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
47766
47767         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
47768         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
47769         O_NOATIME works.
47770
47771 2006-10-05  Bruno Haible  <bruno@clisp.org>
47772
47773         * lib/gl_list.h (gl_sortedlist_search_from_to,
47774         gl_sortedlist_indexof_from_to): New declarations.
47775         (gl_list_implementation): New fields sortedlist_search_from_to,
47776         sortedlist_indexof_from_to.
47777         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
47778         inline functions.
47779         * lib/gl_list.c (gl_sortedlist_search_from_to,
47780         gl_sortedlist_indexof_from_to): New functions.
47781         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
47782         function.
47783         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
47784         (gl_array_sortedlist_search_from_to): New function.
47785         (gl_array_list_implementation): Update.
47786         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
47787         function.
47788         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
47789         (gl_carray_sortedlist_search_from_to): New function.
47790         (gl_carray_list_implementation): Update.
47791         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
47792         gl_linked_sortedlist_indexof_from_to): New functions.
47793         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
47794         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
47795         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
47796         gl_tree_sortedlist_indexof_from_to): New functions.
47797         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
47798         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
47799         Update.
47800         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
47801         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
47802         Update.
47803
47804 2006-10-05  Bruno Haible  <bruno@clisp.org>
47805
47806         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
47807         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
47808         (struct gl_list_implementation): Add fields search_from_to,
47809         indexof_from_to. Remove fields search, indexof.
47810         (gl_list_search): Use the search_from_to method.
47811         (gl_list_search_from, gl_list_search_from_to): New functions.
47812         (gl_list_indexof): Use the indexof_from_to method.
47813         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
47814         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
47815         (gl_list_search_from, gl_list_search_from_to): New functions.
47816         (gl_list_indexof): Use the indexof_from_to method.
47817         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
47818         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
47819         gl_array_indexof. Add start_index, end_index arguments.
47820         (gl_array_search_from_to): Renamed from gl_array_search. Add
47821         start_index, end_index arguments.
47822         (gl_array_remove, gl_array_list_implementation): Update.
47823         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
47824         gl_carray_indexof. Add start_index, end_index arguments.
47825         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
47826         start_index, end_index arguments.
47827         (gl_carray_remove, gl_carray_list_implementation): Update.
47828         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
47829         gl_linked_search. Add start_index, end_index arguments.
47830         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
47831         start_index, end_index arguments.
47832         (gl_linked_remove): Update.
47833         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
47834         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
47835         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
47836         field to 'size_t'.
47837         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
47838         gl_tree_search. Add start_index, end_index arguments.
47839         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
47840         start_index, end_index arguments.
47841         (gl_tree_remove): Update.
47842         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
47843         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
47844         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
47845         function.
47846         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
47847         gl_tree_search. Add start_index, end_index arguments.
47848         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
47849         start_index, end_index arguments.
47850         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
47851         Update.
47852         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
47853
47854 2006-10-05  Bruno Haible  <bruno@clisp.org>
47855
47856         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
47857
47858         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
47859         fwriteerror_temp): New declarations.
47860         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
47861         (descriptors): New variable.
47862         (cleanup): First, close the descriptors.
47863         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
47864         fclose_temp, fwriteerror_temp): New functions.
47865
47866 2006-10-04  Jim Meyering  <jim@meyering.net>
47867
47868         * lib/fts.c (fts_open): Tiny comment change.
47869
47870 2006-10-04  Bruno Haible  <bruno@clisp.org>
47871
47872         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
47873         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
47874         gl_LOCK_BODY.
47875         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
47876         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
47877         gl_LOCK_EARLY_BODY.
47878         (gl_LOCK): Require gl_LOCK_BODY.
47879
47880 2006-10-04  Bruno Haible  <bruno@clisp.org>
47881
47882         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
47883         (gl_oset_search_atleast): New declaration.
47884         (struct gl_oset_implementation): Add field 'search_atleast'.
47885         (gl_oset_search_atleast): New inline function.
47886         * lib/gl_oset.c (gl_oset_search_atleast): New function.
47887         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
47888         (gl_array_oset_implementation): Update.
47889         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
47890         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
47891         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
47892
47893 2006-10-04  Bruno Haible  <bruno@clisp.org>
47894
47895         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
47896
47897 2006-10-03  Bruno Haible  <bruno@clisp.org>
47898
47899         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
47900         from gl_avltreehash_list_implementation.
47901
47902 2006-10-03  Bruno Haible  <bruno@clisp.org>
47903
47904         * lib/gl_oset.c (gl_oset_add): Fix return type.
47905
47906 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
47907
47908         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
47909
47910 2006-10-02  Eric Blake  <ebb9@byu.net>
47911
47912         * modules/strnlen (Depends-on): Add extensions.
47913
47914 2006-10-02  Eric Blake  <ebb9@byu.net>
47915
47916         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
47917         definition in 2.60+.
47918
47919 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
47920
47921         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
47922         checks.
47923
47924 2006-10-02  Bruno Haible  <bruno@clisp.org>
47925
47926         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
47927         to the AUTOMAKE_OPTIONS.
47928         Reported by Jim Meyering.
47929
47930 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
47931
47932         Work around bug in Solaris 10 /proc file system:
47933         /proc/self/fd/NNN/.. isn't the parent directory of
47934         the directory whose file descriptor is NNN.  This needs to
47935         be worked around at run time, not compile time, since a
47936         program might be built on Solaris 8, where things work, and
47937         run on Solaris 10.
47938         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
47939         to use the following interface instead:
47940         (OPENAT_BUFFER_SIZE): New macro.
47941         (openat_proc_name): New function.
47942         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
47943         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
47944         Likewise.
47945         * lib/openat-proc.c: New file.
47946         * modules/openat (Files): Add lib/openat-proc.c.
47947         (Depends-on): Add same-inode, stdbool.
47948         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
47949
47950 2006-09-29  Bruno Haible  <bruno@clisp.org>
47951
47952         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
47953         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
47954         argument. Set stdout_closed before testing for ferror, not after.
47955         (fwriteerror, fwriteerror_no_ebadf): New functions.
47956
47957 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47958
47959         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
47960
47961 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
47962
47963         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
47964         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
47965
47966 2006-09-28  Jim Meyering  <jim@meyering.net>
47967
47968         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
47969         Include <unistd.h>.
47970
47971 2006-09-28  Bruno Haible  <bruno@clisp.org>
47972
47973         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
47974         * modules/linkedhash-list (Depends-on): Likewise.
47975         * modules/rbtreehash-list (Depends-on): Likewise.
47976
47977 2006-09-28  Bruno Haible  <bruno@clisp.org>
47978
47979         * lib/strndup.h: Simplify the redefinition of strndup.
47980         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
47981         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
47982
47983 2006-09-28  Bruno Haible  <bruno@clisp.org>
47984
47985         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
47986         * lib/gl_linkedhash_list.c: Likewise.
47987         * lib/gl_rbtreehash_list.c: Likewise.
47988
47989 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
47990
47991         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
47992         getaddrinfo.
47993
47994         * lib/__fpending.h: Don't include <stdio_ext.h> unless
47995         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
47996         it causes <stdio_ext.h> to cause a compile-time error.
47997         Problem reported by Nelson H. F. Beebe.
47998         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
47999         of HAVE_DECL___PENDING.
48000
48001         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
48002         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
48003         declaration.
48004
48005 2006-09-27  Jim Meyering  <jim@meyering.net>
48006
48007         This file could end up with a definition for a function
48008         named __strndup, rather than rpl_strndup on a system with
48009         incomplete weak_alias support.
48010         * lib/strndup.c (strndup): Rename from __strndup.
48011         Remove #defines that used to map __strndup to strndup.
48012         Don't use K&R prototypes.
48013         Remove LIBC-related code, since this file is not sync'd with glibc.
48014         * lib/strndup.h: Revamp, accordingly.
48015         * m4/strndup.m4: Modernize.
48016
48017 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
48018
48019         * modules/savewd (Depends-on): Add 'raise'.
48020         * lib/savewd.c: Include <signal.h>, for 'raise'.
48021
48022 2006-09-26  Jim Meyering  <jim@meyering.net>
48023
48024         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
48025         when we detect Darwin 8.7.0's acl_get_file bug.
48026         Rearrange to perform the new (below) run-test while $LIBS
48027         contains any acl-related library.  Set USE_ACL at the end.
48028         (gl_ACL_GET_FILE): New function.
48029
48030 2006-09-26  Eric Blake  <ebb9@byu.net>
48031
48032         * lib/verror.c: Include <config.h> unconditionally.
48033
48034 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
48035
48036         * modules/clock-time (Maintainer): Add self.
48037         * modules/getlogin_r (Depends-on): Add extensions.
48038
48039 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48040
48041         * modules/clock-time: New module.
48042         * modules/nanosleep (Depends-on): Add clock-time.
48043         * modules/gethrxtime (Depends-on): Likewise.
48044         * modules/gettime (Depends-on): Likewise.
48045         * modules/settime (Depends-on): Likewise.
48046
48047         * modules/fts-lgpl: Depend on openat.
48048         * modules/mkancesdirs: Depend on savewd.
48049         * modules/mkdir-p: Likewise.
48050
48051 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48052
48053         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
48054
48055         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
48056         `gl_have_arbitrary_file_name_length_limit' to
48057         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
48058         actually works between configure runs.
48059
48060 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48061             Bruno Haible  <bruno@clisp.org>
48062
48063         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
48064
48065 2006-09-25  Jim Meyering  <jim@meyering.net>
48066
48067         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
48068         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
48069
48070 2006-09-25  Eric Blake  <ebb9@byu.net>
48071
48072         * gnulib-tool (func_import, func_create_testdir): Fix typos in
48073         exec's in 2006-09-18 patch when shuffling fds.
48074
48075 2006-09-25  Bruno Haible  <bruno@clisp.org>
48076
48077         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
48078         Reported by Jim Meyering.
48079
48080 2006-09-24  Jim Meyering  <jim@meyering.net>
48081
48082         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
48083         compare a pointer against a literal "0".  That caused failures with
48084         at least HP-UX's hpcc.
48085
48086 2006-09-22  Simon Josefsson  <jas@extundo.com>
48087
48088         * modules/gc-sha1:
48089         * modules/gc-md4:
48090         * modules/gc-hmac-sha1:
48091         * modules/gc-hmac-md5:
48092         * modules/gc-des:
48093         * modules/gc-arcfour: Distribute more files.
48094
48095 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48096
48097         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
48098         (gl_linked_iterator_from_to): Initialize struct completely.
48099         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
48100         (gl_tree_iterator_from_to): Likewise
48101         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
48102         * lib/gl_array_list.c [lint] (gl_array_iterator)
48103         (gl_array_iterator_from_to): Likewise.
48104         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
48105         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
48106         (gl_carray_iterator_from_to): Likewise.
48107
48108         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
48109         * lib/md4.c (md4_process_block): Remove unused variable.
48110         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
48111         parentheses for clarity.
48112
48113 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48114
48115         * modules/bison-i18n (Depends-on): Add gettext.
48116
48117 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48118
48119         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
48120         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
48121         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
48122         also add missing comma that caused broken test.
48123         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
48124         stdlib.h, for `abort'.
48125         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
48126         variables.
48127         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
48128         include unistd.h if present, for `rmdir'.
48129         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
48130         variables.
48131         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
48132         in the process include standard headers for prototypes.
48133         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
48134         gets declared on GNU/Linux.
48135         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
48136         unistd.h, for `rmdir'.
48137         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
48138
48139         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
48140         always true.
48141         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
48142
48143         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
48144
48145 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48146
48147         * gnulib-tool (func_version): Create output all at once.  This
48148         may help avoid triggering unnecessary SIGPIPEs, and at any
48149         rate it doesn't hurt.
48150
48151 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48152             Bruno Haible  <bruno@clisp.org>
48153
48154         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
48155         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
48156         * m4/signed.m4 (bh_C_SIGNED): Likewise.
48157
48158         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
48159         (gl_FUNC_VASPRINTF): Invoke it.
48160
48161 2006-09-22  Bruno Haible  <bruno@clisp.org>
48162
48163         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
48164         getloadavg.c as first argument.
48165
48166 2006-09-22  Bruno Haible  <bruno@clisp.org>
48167
48168         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
48169         at the beginning of the gl_INIT macro.
48170         * modules/getloadavg (configure.ac): Pass $gl_source_base to
48171         gl_GETLOADAVG.
48172
48173 2006-09-22  Bruno Haible  <bruno@clisp.org>
48174
48175         * gnulib-tool (func_create_megatestdir): Don't include the config-h
48176         module.
48177         Suggested by Ralf Wildenhues.
48178
48179 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
48180
48181         Import this patch from libc:
48182
48183         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
48184
48185         * lib/regex_internal.c (re_string_reconstruct): Handle
48186         offset < pstr->valid_raw_len && pstr->offsets_needed case.
48187         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
48188         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
48189         re_string_context_at.
48190
48191         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
48192         now requires it.
48193         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
48194         gl_REGEX now does it for us.
48195         (gl_REGEX): Add test taken from
48196         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
48197
48198         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
48199         Check that large offsets work.  Modernize Autoconf usages.
48200         Prefer "yes" to mean a good thing rather than a bad.
48201         Don't put "#define mkstemp" in config.h, as this might interfere
48202         with standard system headers that "#define mkstemp mkstemp64".
48203
48204         * modules/mkstemp (Depends-on): Add extensions, so that
48205         mkstemp is visible on some platforms.
48206         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
48207         (Include): Change to "mkstemp.h" from <stdlib.h>.
48208         (Files): Add mkstemp.h.
48209
48210         * lib/mkstemp.h: New file, since some standard headers
48211         #define mkstemp.
48212         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
48213         Include "mkstemp.h".
48214         Make the _LIBC code resemble glibc original more,
48215         e.g., use K&R style.
48216         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
48217         (mkstemp): Remove, since mkstemp.h does this for us.
48218         * lib/stdlib--.h: Include mkstemp.h.
48219
48220         Import this patch from libc:
48221
48222         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
48223
48224         * lib/tempname.c (__gen_tempname): Change attempts_min
48225         into a macro.  Use preprocessor to decide how to initialize
48226         attempts [Coverity CID 67].
48227
48228 2006-09-20  Bruno Haible  <bruno@clisp.org>
48229
48230         * lib/mkdtemp.c: Import from libc.
48231         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
48232                 * sysdeps/posix/tempname.c (__gen_tempname): Change
48233                 attempts_min into a macro.  Use preprocessor to decide how to
48234                 initialize attempts [Coverity CID 67].
48235         2001-11-27  Paul Eggert  <eggert@twinsun.com>
48236                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
48237                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
48238
48239 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48240
48241         * gnulib-tool (func_exit): New function, to allow to pass the
48242         exit status portably through the trap.  Use everywhere.
48243         (--help, --version): Signal a write error.
48244         (trap): catch SIGPIPE, for write errors.
48245         Exit at the end of the trap, with the correct exit status.
48246
48247 2006-09-19  Karl Berry  <karl@gnu.org>
48248
48249         * doc/gnulib.texi: note about the license texinfo files.
48250
48251 2006-09-19  Eric Blake  <ebb9@byu.net>
48252
48253         * gnulib-tool: Avoid space-tab.
48254
48255 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
48256
48257         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
48258         that prevented coreutils 6.1 from building.  Problem reported
48259         by Petter Reinholdtsen.
48260
48261 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
48262
48263         * gnulib-tool (avoidlist): Fix typo that broke options like
48264         --avoid=lock that are used by coreutils bootstrap.
48265
48266 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
48267
48268         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
48269         more systematically.
48270
48271 2006-09-18  Jim Meyering  <jim@meyering.net>
48272
48273         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
48274
48275 2006-09-18  Bruno Haible  <bruno@clisp.org>
48276
48277         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
48278
48279 2006-09-18  Bruno Haible  <bruno@clisp.org>
48280
48281         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
48282         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
48283         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
48284         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
48285         * m4/gettext.m4: Require autoconf >= 2.52.
48286         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
48287         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
48288         of gl_cv_header_inttypes_h.
48289
48290 2006-09-18  Bruno Haible  <bruno@clisp.org>
48291
48292         * lib/javaversion.c: Include configmake.h.
48293
48294 2006-09-18  Bruno Haible  <bruno@clisp.org>
48295
48296         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
48297         avoid that the while loops be executed in a subshell.
48298
48299 2006-09-18  Bruno Haible  <bruno@clisp.org>
48300
48301         * MODULES.html.sh (func_module): Break long lines.
48302         Suggested by Bruce Korb <bkorb@gnu.org>.
48303
48304 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48305
48306         Speed up by a factor of 1.12.
48307         * gnulib-tool (nl): New variable.
48308         (func_import): Rewrite include directive extraction to only read each
48309         directive once.
48310
48311 2006-09-17  Bruno Haible  <bruno@clisp.org>
48312
48313         * modules/javaversion (Makefile.am): Remove DEFS setting.
48314         (Depends-on): Add configmake, for PKGDATADIR definition.
48315
48316 2006-09-17  Bruno Haible  <bruno@clisp.org>
48317
48318         * gnulib-tool (func_create_testdir): Rewrite all files at once.
48319
48320 2006-09-17  Bruno Haible  <bruno@clisp.org>
48321
48322         * gnulib-tool (func_append): New function, stolen from libtool.m4.
48323         (func_modules_transitive_closure, func_modules_add_dummy,
48324         func_modules_to_filelist, func_import, func_create_testdir,
48325         func_create_megatestdir, ...): Use it wherever possible.
48326         Suggested by Ralf Wildenhues.
48327
48328 2006-09-16  Karl Berry  <karl@gnu.org>
48329
48330         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
48331         to avoid sectioning errors.
48332         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
48333         [ifinfo]: blank line after @center-ed titles.
48334         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
48335         Spell FSF address consistently with others.
48336         (These changes approved by rms.)
48337
48338 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48339
48340         Speed up by a factor of 1.61.
48341         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
48342         already checked module names again.
48343
48344 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48345
48346         Speed up by a factor of 1.13.
48347         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
48348         for new_files, and the input to func_add_or_update.
48349
48350 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48351
48352         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
48353         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
48354
48355 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
48356
48357         * modules/mkancesdirs (Depends-on): Add fcntl.
48358         * modules/savewd: New file.
48359         * MODULES.html.sh (File system functions): Add savewd.
48360
48361         * modules/configmake (Makefile.am): Add support for the
48362         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
48363
48364 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
48365
48366         * m4/savewd.m4: New file.
48367
48368 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
48369
48370         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
48371         (dirchownmod): New arg FD.  All callers changed.
48372         Use FD rather than opening the directory ourself, as opening is
48373         now the caller's responsibility.
48374         * lib/dirchownmod.h: Likewise.
48375         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
48376         hosts that require <sys/types.h> before <sys/stat.h>.  Include
48377         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
48378         (test_dir): Remove.
48379         (mkancesdirs): Return length of prefix of FILE that has already
48380         been made, or -2 if there is a child doing the work.  Redo
48381         algorithm so that it is O(N) rather than O(N**2).  Optimize away
48382         ".", and treat ".." specially since it might stray back into
48383         already-created areas.  Use a subprocess if necessary.  New arg
48384         WD; all users changed.  MAKE_DIR function should now return 1
48385         if it creates a directory that is not readable.  Return -2 if
48386         a child process is spun off.
48387         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
48388         Adjust signature to match code.
48389         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
48390         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
48391         all users changed.
48392         * lib/savewd.c, lib/savewd.h: New files.
48393
48394 2006-09-15  Jim Meyering  <jim@meyering.net>
48395
48396         * modules/rename-dest-slash: New module.
48397         * MODULES.html.sh (posix_compat): Add it here.
48398
48399         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
48400
48401 2006-09-15  Jim Meyering  <jim@meyering.net>
48402
48403         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
48404         file.
48405
48406         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
48407
48408 2006-09-15  Jim Meyering  <jim@meyering.net>
48409
48410         * lib/rename-dest-slash.c (has_trailing_slash): Use
48411         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
48412         (rpl_rename_dest_slash): Perform the cheaper trailing slash
48413         test before testing whether SRC is a directory.
48414         Suggestions from Bruno Haible.
48415
48416         Avoid a warning about an unused variable.
48417         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
48418         into the #ifdef block where it's used.
48419
48420         * lib/rename-dest-slash.c: New file.
48421
48422 2006-09-14  Bruno Haible  <bruno@clisp.org>
48423
48424         * lib/allocsa.c: Include <config.h> unconditionally.
48425         * lib/asnprintf.c: Likewise.
48426         * lib/asprintf.c: Likewise.
48427         * lib/c-strcasecmp.c: Likewise.
48428         * lib/c-strcasestr.c: Likewise.
48429         * lib/c-strncasecmp.c: Likewise.
48430         * lib/c-strstr.c: Likewise.
48431         * lib/classpath.c: Likewise.
48432         * lib/clean-temp.c: Likewise.
48433         * lib/concatpath.c: Likewise.
48434         * lib/copy-file.c: Likewise.
48435         * lib/csharpcomp.c: Likewise.
48436         * lib/csharpexec.c: Likewise.
48437         * lib/execute.c: Likewise.
48438         * lib/fatal-signal.c: Likewise.
48439         * lib/findprog.c: Likewise.
48440         * lib/fwriteerror.c: Likewise.
48441         * lib/gl_array_list.c: Likewise.
48442         * lib/gl_array_oset.c: Likewise.
48443         * lib/gl_avltree_list.c: Likewise.
48444         * lib/gl_avltree_oset.c: Likewise.
48445         * lib/gl_avltreehash_list.c: Likewise.
48446         * lib/gl_carray_list.c: Likewise.
48447         * lib/gl_linked_list.c: Likewise.
48448         * lib/gl_linkedhash_list.c: Likewise.
48449         * lib/gl_list.c: Likewise.
48450         * lib/gl_oset.c: Likewise.
48451         * lib/gl_rbtree_list.c: Likewise.
48452         * lib/gl_rbtree_oset.c: Likewise.
48453         * lib/gl_rbtreehash_list.c: Likewise.
48454         * lib/imaxabs.c: Likewise.
48455         * lib/imaxdiv.c: Likewise.
48456         * lib/javacomp.c: Likewise.
48457         * lib/javaexec.c: Likewise.
48458         * lib/javaversion.c: Likewise.
48459         * lib/linebreak.c: Likewise.
48460         * lib/localcharset.c: Likewise.
48461         * lib/lock.c: Likewise.
48462         * lib/mbchar.c: Likewise.
48463         * lib/mbswidth.c: Likewise.
48464         * lib/mkdtemp.c: Likewise.
48465         * lib/pipe.c: Likewise.
48466         * lib/printf-args.c: Likewise.
48467         * lib/printf-parse.c: Likewise.
48468         * lib/progname.c: Likewise.
48469         * lib/progreloc.c: Likewise.
48470         * lib/readlink.c: Likewise.
48471         * lib/sh-quote.c: Likewise.
48472         * lib/stpcpy.c: Likewise.
48473         * lib/stpncpy.c: Likewise.
48474         * lib/strcasecmp.c: Likewise.
48475         * lib/strcasestr.c: Likewise.
48476         * lib/strcspn.c: Likewise.
48477         * lib/striconv.c: Likewise.
48478         * lib/strncasecmp.c: Likewise.
48479         * lib/strnlen1.c: Likewise.
48480         * lib/strstr.c: Likewise.
48481         * lib/strtok_r.c: Likewise.
48482         * lib/tls.c: Likewise.
48483         * lib/tmpdir.c: Likewise.
48484         * lib/unicodeio.c: Likewise.
48485         * lib/unsetenv.c: Likewise.
48486         * lib/vasnprintf.c: Likewise.
48487         * lib/vasprintf.c: Likewise.
48488         * lib/wait-process.c: Likewise.
48489         * lib/xallocsa.c: Likewise.
48490         * lib/xsetenv.c: Likewise.
48491         * lib/xstriconv.c: Likewise.
48492
48493 2006-09-13  Simon Josefsson  <jas@extundo.com>
48494
48495         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
48496         that internally, suggested by Ralf Wildenhues
48497         <Ralf.Wildenhues@gmx.de>.
48498
48499 2006-09-13  Simon Josefsson  <jas@extundo.com>
48500
48501         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
48502         @LIBOBJS@.
48503         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48504
48505 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
48506
48507         * lib/_fpending.c: Include <config.h> unconditionally, since we no
48508         longer worry about uses that don't define HAVE_CONFIG_H.
48509         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
48510         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
48511         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
48512         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
48513         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
48514         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
48515         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
48516         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
48517         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
48518         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
48519         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
48520         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
48521         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
48522         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
48523         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
48524         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
48525         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
48526         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
48527         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
48528         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
48529         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
48530         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
48531         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
48532         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
48533         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
48534         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
48535         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
48536         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
48537         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
48538         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
48539         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
48540         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
48541         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
48542         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
48543         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
48544         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
48545         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
48546         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
48547         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
48548         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
48549         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
48550         Likewise.
48551
48552 2006-09-13  Eric Blake  <ebb9@byu.net>
48553
48554         * lib/getopt.c: Fix typo in last commit.
48555
48556 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48557
48558         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
48559         dgettext.
48560
48561 2006-09-12  Jim Meyering  <jim@meyering.net>
48562
48563         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
48564         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
48565         Reported by Nelson H. F. Beebe.
48566
48567 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48568
48569         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
48570         program_invocation_name and program_invocation_short_name are
48571         initialized.
48572         * lib/argp-namefrob.h: Move declarations of program_invocation_name
48573         and program_invocation_short_name to argp.h, so they are visible
48574         to user programs.
48575         * lib/argp.h: Likewise
48576
48577 2006-09-10  Bruno Haible  <bruno@clisp.org>
48578
48579         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
48580         m4/inttypes_h.m4, m4/uintmax_t.m4.
48581
48582 2006-09-10  Bruno Haible  <bruno@clisp.org>
48583
48584         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
48585         gl_AC_TYPE_UINTMAX_T.
48586
48587 2006-09-10  Bruno Haible  <bruno@clisp.org>
48588
48589         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
48590
48591 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48592
48593         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
48594         convention.  Text proposed by Bruno Haible.
48595         (struct argp_option): Document the use of N_() wrappers.
48596
48597         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
48598         '\v', and translate the two parts separately, instead of feeding
48599         the whole string to gettext.  This allows to exclude
48600         '\v' from the strings visible to the translator by writing doc
48601         strings as N_("..") "\v" N_("..").
48602
48603 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
48604
48605         * config/srclist.txt: Undo latest change; the bug was fixed.
48606
48607 2006-09-09  Bruno Haible  <bruno@clisp.org>
48608
48609         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
48610         assignments if building a library without libtool.
48611         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
48612         in func_emit_lib_Makefile_am.
48613         (func_import): When building a static library libfoo.a, arrange to
48614         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
48615         (func_create_testdir): Likewise.
48616         * modules/gc (configure.ac, Makefile.am): If building statically,
48617         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
48618         * modules/iconvme (configure.ac, Makefile.am): Likewise.
48619         * modules/striconv (configure.ac, Makefile.am): Likewise.
48620         Based on a suggestion by Ralf Wildenhues.
48621
48622 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48623
48624         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
48625         Check for unistd.h too, since Autoconf doesn't assume POSIX.
48626         Also:
48627
48628         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48629         Add year_2050_test to catch glibc bug 2821
48630         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
48631
48632         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48633         Prefer #ifdef to #if.
48634
48635         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
48636         Return from 'main' instead of calling 'exit'.
48637
48638 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48639
48640         * lib/mktime.c (guess_time_tm): Fix bug where mktime
48641         returned the maximum time_t value rather than (time_t) -1.
48642         Problem originally reported by William Bardwell
48643         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
48644
48645         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
48646         Moved to here ...
48647         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
48648         ... from here.
48649
48650 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48651
48652         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
48653         2821 is fixed.
48654
48655 2006-09-08  Jim Meyering  <jim@meyering.net>
48656
48657         Don't make generated files read-only.  That would bother too many
48658         people.  However, do retain the ability to work when targets are
48659         read-only: remove the destination and temporary files before writing
48660         them (when generated via sed or echo), or by using the -f option for
48661         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
48662         * modules/alloca-opt, modules/argz, modules/arpa_inet:
48663         * modules/byteswap, modules/configmake, modules/fcntl:
48664         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
48665         * modules/localcharset, modules/netinet_in, modules/poll:
48666         * modules/stdbool, modules/stdint, modules/sys_select:
48667         * modules/sys_socket, modules/sys_stat, modules/sysexits:
48668
48669 2006-09-08  Jim Meyering  <jim@meyering.net>
48670
48671         Avoid new build failure on FreeBSD 6.0.
48672         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
48673         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
48674         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
48675
48676 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48677
48678         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
48679
48680 2006-09-07  Jim Meyering  <jim@meyering.net>
48681
48682         Fix global typo in last change: use chmod u-w, not chmod u-x.
48683         Spotted by Paul Eggert and Bruce Korb.
48684         * modules/alloca-opt, modules/argz, modules/arpa_inet:
48685         * modules/byteswap, modules/configmake, modules/fcntl:
48686         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
48687         * modules/localcharset, modules/netinet_in, modules/poll:
48688         * modules/stdbool, modules/stdint, modules/sys_select:
48689         * modules/sys_socket, modules/sys_stat, modules/sysexits:
48690
48691 2006-09-06  Jim Meyering  <jim@meyering.net>
48692
48693         Make generated files be read-only.
48694         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
48695         Ensure that each generated file is now read-only.
48696         * modules/argz: Likewise.
48697         * modules/arpa_inet: Likewise.
48698         * modules/byteswap: Likewise.
48699         * modules/configmake: Likewise.
48700         * modules/fcntl: Likewise.
48701         * modules/fnmatch: Likewise.
48702         * modules/getopt: Likewise.
48703         * modules/glob: Likewise.
48704         * modules/inttypes: Likewise.
48705         * modules/netinet_in: Likewise.
48706         * modules/poll: Likewise.
48707         * modules/stdbool: Likewise.
48708         * modules/stdint: Likewise.
48709         * modules/sys_select: Likewise.
48710         * modules/sys_socket: Likewise.
48711         * modules/sys_stat: Likewise.
48712         * modules/sysexits: Likewise.
48713         * modules/localcharset: Same as above, but continue using temporary
48714         file named "t-$@" (why different?) rather than the "$@-t" used
48715         everywhere else.
48716
48717         * modules/sysexits (Makefile.am): Replace literal occurrences
48718         of "sysexit.h" more readable, and more consistent, "$@".
48719
48720 2006-09-06  Bruno Haible  <bruno@clisp.org>
48721
48722         * modules/striconv: New file.
48723         * modules/xstriconv: New file.
48724         * MODULES.html.sh (Internationalization functions): Add striconv,
48725         xstriconv.
48726
48727 2006-09-06  Bruno Haible  <bruno@clisp.org>
48728
48729         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
48730         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
48731         not using libtool correctly.
48732
48733 2006-09-06  Bruno Haible  <bruno@clisp.org>
48734
48735         * lib/striconv.h: New file.
48736         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
48737         iconvstring.c.
48738         * lib/xstriconv.h: New file.
48739         * lib/xstriconv.c: New file.
48740
48741 2006-09-06  Bruno Haible  <bruno@clisp.org>
48742
48743         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
48744         lib_..._LDFLAGS.
48745
48746 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48747
48748         * lib/argz_.h: Sync from Libtool.
48749
48750         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
48751                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
48752
48753         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
48754
48755 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
48756
48757         * modules/trim: New file.
48758
48759 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
48760
48761         * lib/trim.h: New file.
48762         * lib/trim.c: New file.
48763
48764 2006-09-05  Bruno Haible  <bruno@clisp.org>
48765
48766         * MODULES.html.sh (String handling): Add trim.
48767
48768 2006-09-04  Karl Berry  <karl@gnu.org>
48769
48770         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
48771         until next release.
48772
48773 2006-09-03  Bruno Haible  <bruno@clisp.org>
48774
48775         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
48776         correctly.
48777
48778 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48779
48780         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
48781         not gl_GETLOADAVG.  Omit unneeded semicolons.
48782         Problems reported by Ralf Wildenhues in
48783         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
48784         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
48785         at the end, which is the usual gnulib style.
48786
48787         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
48788         of doing all the work ourselves.
48789         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
48790         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
48791
48792 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48793
48794         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
48795         Problem reported by Ralf Wildenhues in
48796         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
48797
48798         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
48799         HAVE_STRUCT_STATFS_F_FSTYPENAME.
48800
48801 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48802
48803         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
48804         yesterday's patch by changing test -n to test -z.
48805
48806 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48807
48808         * modules/getloadavg (Files): Add m4/getloadavg.m4.
48809         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
48810         the former is now obsolescent.
48811
48812         * modules/chdir-long (Depends-on): Add fcntl.
48813
48814 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48815
48816         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
48817         obsolescent, and programs should use gnulib instead.
48818         * m4/getloadavg.m4: New file, with contents taken from Autoconf
48819         but with prefixes changed.
48820
48821 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48822
48823         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
48824         or stdbool.h, because they might not exist while configuring.
48825
48826         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
48827         Don't include unistd.h or limits.h; not needed, since chdir-long.h
48828         does that for us.
48829         (O_DIRECTORY): Remove.
48830
48831 2006-08-31  Eric Blake  <ebb9@byu.net>
48832
48833         * gnulib-tool: Don't let emacs change spaces to TAB.
48834
48835 2006-08-31  Bruno Haible  <bruno@clisp.org>
48836
48837         * gnulib-tool: When calling func_import more than once, do it in a
48838         subshell.
48839         Reported by Eric Blake <ebb9@byu.net>.
48840
48841 2006-08-31  Bruno Haible  <bruno@clisp.org>
48842
48843         * gnulib-tool (nl): Remove variable.
48844         (sed_transform_lib_file): Use more robust test for config-h module.
48845         (func_import): Fix typo in 2006-08-25 patch.
48846
48847 2006-08-31  Bruno Haible  <bruno@clisp.org>
48848
48849         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
48850         specified, augment Makefile.am variables instead of assigning them.
48851
48852 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48853
48854         Work around a bug in both the Linux and SunOS 64-bit kernels:
48855         nanosleep mishandles sleeps for longer than 2**31 seconds.
48856         Problem reported by Frank v Waveren in
48857         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
48858         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
48859         Check for nanosleep bug.
48860         (LIB_NANOSLEEP): Append clock_gettime library if needed.
48861
48862 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48863
48864         Work around a bug in both the Linux and SunOS 64-bit kernels:
48865         nanosleep mishandles sleeps for longer than 2**31 seconds.
48866         Problem reported by Frank v Waveren in
48867         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
48868         * lib/nanosleep.c (BILLION): New constant.
48869         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
48870         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
48871         implementation.
48872
48873 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48874
48875         * modules/nanosleep (Depends-on): Add gettime.
48876
48877 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48878         and Simon Josefsson  <jas@extundo.com>
48879         and Oskar Liljeblad  <oskar@osk.mine.nu>
48880
48881         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
48882         * gnulib-tool (func_import): New license type 'unmodifiable license
48883         text'.
48884         * modules/fdl: Use it.  Longer description.
48885         * module/gpl, module/lgpl: New files.
48886
48887 2006-08-30  Jim Meyering  <jim@meyering.net>
48888
48889         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
48890         shadowing the parameter.
48891
48892 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48893
48894         Sync from Libtool:
48895
48896         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48897
48898         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
48899         sharing with gnulib.  Report by Eric Blake.
48900
48901 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
48902
48903         * modules/isapipe: New file.
48904         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
48905
48906 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
48907
48908         * modules/configmake (Makefile.am): Add a comment, and omit
48909         the CONFIGMAKE_ prefix from generated macro names.  Suggested
48910         by Bruno Haible.
48911
48912 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
48913
48914         * m4/isapipe.m4: New file.
48915
48916 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
48917
48918         * lib/isapipe.c, lib/isapipe.h: New files.
48919
48920 2006-08-29  Jim Meyering  <jim@meyering.net>
48921
48922         * modules/configmake (Makefile.am): Make configmake.h depend on
48923         Makefile.  Otherwise, a stale configmake.h could hang around.
48924
48925 2006-08-29  Eric Blake  <ebb9@byu.net>
48926
48927         * lib/error.c (error_at_line, print_errno_message): Match libc, after
48928         resolution of upstream bug 3044.
48929
48930 2006-08-29  Bruno Haible  <bruno@clisp.org>
48931
48932         * modules/localcharset (Depends-on): Add configmake.
48933         (Makefile.am): Remove setting of LIBDIR through DEFS.
48934
48935 2006-08-29  Bruno Haible  <bruno@clisp.org>
48936
48937         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
48938         defined.
48939
48940 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
48941
48942         * modules/fcntl: New file.
48943         * modules/chdir-safer (Depends-on): Add fcntl.
48944         * modules/fts: Likewise.
48945         * modules/mkdir-p: Likewise.
48946
48947         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
48948         This undoes the most recent change, since we're now addressing the
48949         problem in a different way.
48950
48951         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
48952         into output, since the output might be called Makefile.am even
48953         if $makefile_name is something different.
48954         (func_import): Use $makefile_am rather than
48955         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
48956         empty.
48957
48958         * modules/inttypes (Files): Add m4/inttypes-h.m4.
48959
48960 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
48961
48962         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
48963         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
48964         recent change to stdint.m4, since we're now addressing the problem in a
48965         different way.
48966
48967 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
48968
48969         * m4/fcntl_h.m4: New file.
48970
48971 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
48972
48973         * lib/fcntl_.h: New file.
48974         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
48975         the fcntl module.
48976         * lib/dirchownmod.c: Likewise.
48977         * lib/fts.c: Likewise.
48978
48979         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
48980         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
48981         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
48982         just before including <inttypes.h>, to avoid circular inclusion.
48983
48984 2006-08-28  Jim Meyering  <jim@meyering.net>
48985
48986         * doc/visibility.texi: Actually read and correct the grammar of the
48987         sentence affected by yesterday's change.
48988
48989 2006-08-28  Eric Blake  <ebb9@byu.net>
48990
48991         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
48992         needs wrapper.
48993
48994 2006-08-28  Eric Blake  <ebb9@byu.net>
48995
48996         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
48997
48998 2006-08-28  Eric Blake  <ebb9@byu.net>
48999
49000         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
49001
49002 2006-08-28  Bruno Haible  <bruno@clisp.org>
49003
49004         * modules/c-strstr: New file, from GNU gettext.
49005         * MODULES.html.sh (String handling): Add c-strstr.
49006
49007 2006-08-28  Bruno Haible  <bruno@clisp.org>
49008
49009         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
49010         macros.
49011         Reported by Eric Blake.
49012
49013 2006-08-28  Bruno Haible  <bruno@clisp.org>
49014
49015         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
49016         (VASNPRINTF): Return a string of length > INT_MAX without failing.
49017         * lib/vasprintf.c: Include errno.h, limits.h.
49018         (EOVERFLOW): New fallback definition.
49019         (vasprintf): Test here whether the string length is > INT_MAX.
49020         * lib/vsnprintf.c: Include errno.h, limits.h.
49021         (EOVERFLOW): New fallback definition.
49022         (vsnprintf): Fix bug when generated string was too long for the buffer.
49023         Test here whether the string length is > INT_MAX.
49024
49025 2006-08-28  Bruno Haible  <bruno@clisp.org>
49026
49027         * lib/inttypes_.h (SCNX*): Remove definitions.
49028         Reported by Eric Blake.
49029
49030 2006-08-28  Bruno Haible  <bruno@clisp.org>
49031
49032         * lib/c-strstr.h: New file, from GNU gettext.
49033         * lib/c-strstr.c: New file, from GNU gettext.
49034
49035 2006-08-28  Bruno Haible  <bruno@clisp.org>
49036
49037         * gnulib-tool: Reorder some statements.
49038
49039 2006-08-28  Bruno Haible  <bruno@clisp.org>
49040
49041         * gnulib-tool: New option --makefile-name.
49042         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
49043         $makefile_name.
49044         (func_import): Write $makefile_name to the cache file, and read it from
49045         there unless explicitly specified. Use $makefile_name as file name
49046         instead of Makefile.am. Adjust the recommendations accordingly.
49047
49048 2006-08-28  Bruno Haible  <bruno@clisp.org>
49049
49050         * gnulib-tool (func_verify_module): Check against misapplying patch.
49051
49052 2006-08-28  Bruno Haible  <bruno@clisp.org>
49053
49054         * gnulib-tool (func_relativize, func_relconcat): New functions.
49055         Give an error if --local-dir is given with --update.
49056         Remove trailing slashes from $local_gnulib_dir.
49057         (func_import): Store the relativized $local_gnulib_dir in
49058         gnulib-cache.m4, and read it from there if not specified explicitly.
49059
49060 2006-08-28  Bruno Haible  <bruno@clisp.org>
49061
49062         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
49063         is the current directory. Respect also $local_gnulib_dir.
49064
49065 2006-08-28  Bruno Haible  <bruno@clisp.org>
49066             Simon Josefsson  <jas@extundo.com>
49067
49068         BeOS portability.
49069         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
49070
49071 2006-08-27  Jim Meyering  <jim@meyering.net>
49072
49073         * doc/visibility.texi: Remove duplicate word: "pointer".
49074
49075 2006-08-26  Bruno Haible  <bruno@clisp.org>
49076
49077         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
49078         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
49079         (Makefile.am): Create inttypes.h from inttypes_.h.
49080         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
49081
49082         * modules/imaxabs: New file.
49083
49084         * modules/imaxdiv: New file.
49085
49086 2006-08-26  Bruno Haible  <bruno@clisp.org>
49087
49088         * m4/inttypes.m4: New file.
49089         * m4/_inttypes_h.m4: Remove file.
49090         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
49091         PRI_MACROS_BROKEN.
49092         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
49093
49094         * m4/imaxabs.m4: New file.
49095
49096         * m4/imaxdiv.m4: New file.
49097
49098 2006-08-26  Bruno Haible  <bruno@clisp.org>
49099
49100         * lib/inttypes_.h: New file.
49101         * lib/inttypes.h: Remove file.
49102         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
49103
49104         * lib/imaxabs.c: New file.
49105
49106         * lib/imaxdiv.c: New file.
49107
49108 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49109
49110         New config-h module, so that "make" output needn't be cluttered
49111         by -DHAVE_CONFIG_H.
49112         * MODULES.html.sh (Support for building libraries and executables):
49113         Add config-h.
49114         * modules/config-h: New file.
49115         * gnulib-tool (nl, sed_transform_lib_file): New vars.
49116         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
49117         the config-h module is used.
49118
49119         New configmake module, so that "make" output needn't be cluttered
49120         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
49121         * MODULES.html.sh (Support for building libraries and executables):
49122         Add configmake.
49123         * modules/configmake: New file.
49124
49125 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49126
49127         * m4/config-h.m4: New file.
49128
49129 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49130
49131         * config/srclist.txt: Add elisp-comp.
49132
49133 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49134
49135         * MODULES.html.sh (Support for building libraries and executables):
49136         Add elisp-comp.
49137         * build-aux/elisp-comp: New file.
49138         * modules/elisp-comp: New file.
49139
49140 2006-08-24  Bruno Haible  <bruno@clisp.org>
49141
49142         * gnulib-tool (func_create_testdir): Use non-default values of
49143         sourcebase and m4base.
49144
49145 2006-08-24  Bruno Haible  <bruno@clisp.org>
49146
49147         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
49148         HTML structure.
49149
49150 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
49151
49152         * modules/openat (Depends-on): Add lchown.
49153
49154 2006-08-23  Bruno Haible  <bruno@clisp.org>
49155
49156         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
49157         of gl_LOCK_EARLY instead of gl_LOCK.
49158
49159 2006-08-23  Bruno Haible  <bruno@clisp.org>
49160
49161         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
49162         on OSF/1 to no.
49163         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
49164
49165 2006-08-23  Bruno Haible  <bruno@clisp.org>
49166
49167         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
49168         as unusable.
49169
49170         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
49171         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
49172         (gl_LOCK): New macro.
49173
49174 2006-08-22  Simon Josefsson  <jas@extundo.com>
49175
49176         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
49177         to md5 module.
49178
49179 2006-08-22  Simon Josefsson  <jas@extundo.com>
49180
49181         * MODULES.html.sh: Add "Support for maintaining and release
49182         projects".
49183
49184         * build-aux/gnupload: New file, from coreutils.
49185
49186 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
49187
49188         Avoid the need for AC_LIBSOURCES in m4 macros.
49189         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
49190         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
49191         * modules/check-version (EXTRA_DIST): Add check-version.h.
49192         * modules/crc (EXTRA_DIST): Add crc.h.
49193         * modules/des (EXTRA_DIST): Add des.h.
49194         * modules/gc (EXTRA_DIST): Add gc.h.
49195         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
49196         * modules/getline (EXTRA_DIST): Add getline.h.
49197         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
49198         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
49199         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
49200         * modules/md2 (EXTRA_DIST): Add md2.h.
49201         * modules/md4 (EXTRA_DIST): Add md4.h.
49202         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
49203         * modules/read-file (EXTRA_DIST): Add read-file.h.
49204         * modules/readline (EXTRA_DIST): Add readline.h.
49205         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
49206         rijndael-api-fst.h.
49207
49208 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
49209
49210         * m4/rijndael.m4 (gl_ARCFOUR):
49211         * m4/arctwo.m4 (gl_ARCTWO):
49212         * m4/check-version.m4 (gl_CHECK_VERSION):
49213         * m4/crc.m4 (gl_CRC):
49214         * m4/des.m4 (gl_DES):
49215         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
49216         * m4/gc.m4 (gl_GC):
49217         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
49218         * m4/getline.m4 (gl_FUNC_GETLINE):
49219         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
49220         * m4/hmac-md5.m4 (gl_HMAC_MD5):
49221         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
49222         * m4/md2.m4 (gl_MD2):
49223         * m4/md4.m4 (gl_MD4):
49224         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
49225         * m4/read-file.m4 (gl_FUNC_READ_FILE):
49226         * m4/readline.m4 (gl_FUNC_READLINE):
49227         * m4/rijndael.m4 (gl_RIJNDAEL):
49228         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
49229         to get the necessary .h files and whatnot.
49230
49231 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
49232
49233         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
49234         gnulib rather than the other way around.
49235         * config/srclistvars.sh (COREUTILS): Remove.
49236
49237 2006-08-22  Jim Meyering  <jim@meyering.net>
49238
49239         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
49240
49241         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
49242
49243 2006-08-22  Eric Blake  <ebb9@byu.net>
49244
49245         * modules/regexprops-generic: New file.
49246         * MODULES.html.sh (Support for building documentation): List it.
49247
49248 2006-08-22  Eric Blake  <ebb9@byu.net>
49249
49250         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
49251         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
49252         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
49253         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
49254
49255 2006-08-22  Bruno Haible  <bruno@clisp.org>
49256
49257         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
49258         and lib_LTLIBRARIES like the other lib_* variables.
49259
49260 2006-08-22  Bruno Haible  <bruno@clisp.org>
49261
49262         * build-aux/x-to-1.in: New file, from GNU gettext.
49263
49264 2006-08-22  Bruno Haible  <bruno@clisp.org>
49265
49266         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
49267         <utmpx.h> exists.
49268
49269 2006-08-22  Bruno Haible  <bruno@clisp.org>
49270
49271         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
49272         <utmpx.h> exists.
49273
49274 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
49275
49276         BeOS portability.
49277         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
49278         exist.
49279         Problem reported by Bruno Haible.
49280
49281 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
49282
49283         Avoid the need for AC_LIBSOURCES in m4 macros.
49284         * modules/acl (EXTRA_DIST): Add acl.h.
49285         * modules/argmatch (Files): Add m4/argmatch.m4.
49286         (configure.ac): Add gl_ARGMATCH.
49287         (EXTRA_DIST): Renamed from lib_SOURCES, for
49288         consistency with the other modules.  Remove argmatch.c.
49289         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
49290         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
49291         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
49292         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
49293         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
49294         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
49295         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
49296         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
49297         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
49298         * modules/closeout (EXTRA_DIST): Add closeout.h.
49299         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
49300         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
49301         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
49302         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
49303         dirname.h; remove basename.c and stripslash.c.
49304         * modules/exclude (EXTRA_DIST): Add exclude.h.
49305         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
49306         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
49307         * modules/file-type (EXTRA_DIST): Add file-type.h.
49308         * modules/filemode (EXTRA_DIST): Add filemode.h.
49309         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
49310         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
49311         * modules/fpending (EXTRA_DIST): Add __fpending.h.
49312         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
49313         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
49314         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
49315         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
49316         * modules/getdate (EXTRA_DIST): Add getdate.c.
49317         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
49318         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
49319         * modules/getpass (EXTRA_DIST): Add getpass.h.
49320         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
49321         * modules/group-member (EXTRA_DIST): Add group-member.h.
49322         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
49323         * modules/hash (EXTRA_DIST): Add hash.h.
49324         * modules/human (EXTRA_DIST): Add human.h.
49325         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
49326         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
49327         * modules/lchown (EXTRA_DIST): Add lchown.h.
49328         * modules/long-options (EXTRA_DIST): Add long-options.h.
49329         * modules/lstat (EXTRA_DIST): Add lstat.h.
49330         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
49331         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
49332         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
49333         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
49334         * modules/memxor (EXTRA_DIST): Add memxor.h.
49335         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
49336         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
49337         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
49338         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
49339         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
49340         * modules/physmem (EXTRA_DIST): Add physmem.h.
49341         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
49342         * modules/posixver (EXTRA_DIST): Add posixver.h.
49343         * modules/quote (EXTRA_DIST): Add quote.h.
49344         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
49345         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
49346         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
49347         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
49348         regex_internal.h regexec.c.
49349         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
49350         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
49351         * modules/same (EXTRA_DIST): Add same.h.
49352         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
49353         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
49354         * modules/savedir (EXTRA_DIST): Add savedir.h.
49355         * modules/sha1 (EXTRA_DIST): Add sha1.h.
49356         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
49357         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
49358         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
49359         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
49360         * modules/strdup (EXTRA_DIST): Add strdup.h.
49361         * modules/strftime (EXTRA_DIST): Add strftime.h.
49362         * modules/strndup (EXTRA_DIST): Add strndup.h.
49363         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
49364         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
49365         * modules/time_r (EXTRA_DIST): Add time_r.h.
49366         * modules/timespec (EXTRA_DIST): Add timespec.h.
49367         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
49368         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
49369         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
49370         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
49371         * modules/userspec (EXTRA_DIST): Add userspec.h.
49372         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
49373         * modules/utimens (EXTRA_DIST): Add utimens.h.
49374         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
49375         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
49376         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
49377         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
49378         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
49379         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
49380         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
49381         * modules/yesno (EXTRA_DIST): Add yesno.h.
49382
49383 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
49384
49385         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
49386
49387         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
49388         * m4/dev-ino.m4, same-inode.m4: Remove.
49389
49390         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
49391         * m4/acl.m4 (AC_FUNC_ACL):
49392         * m4/backupfile.m4 (gl_BACKUPFILE):
49393         * m4/c-strtod.m4 (gl_C99_STRTOLD):
49394         * m4/canon-host.m4 (gl_CANON_HOST):
49395         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
49396         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
49397         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
49398         * m4/cloexec.m4 (gl_CLOEXEC):
49399         * m4/close-stream.m4 (gl_CLOSE_STREAM):
49400         * m4/closeout.m4 (gl_CLOSEOUT):
49401         * m4/dirfd.m4 (gl_FUNC_DIRFD):
49402         * m4/dirname.m4 (gl_DIRNAME):
49403         * m4/exclude.m4 (gl_EXCLUDE):
49404         * m4/exitfail.m4 (gl_EXITFAIL):
49405         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
49406         * m4/file-type.m4 (gl_FILE_TYPE):
49407         * m4/filemode.m4 (gl_FILEMODE):
49408         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
49409         * m4/fpending.m4 (gl_FUNC_FPENDING):
49410         * m4/fprintftime.m4 (gl_FPRINTFTIME):
49411         * m4/fts.m4 (gl_FUNC_FTS):
49412         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
49413         * m4/getdate.m4 (gl_GETDATE):
49414         * m4/gethrxtime.m4 (gl_GETHRXTIME):
49415         * m4/getpagesize.m4 (gl_GETPAGESIZE):
49416         * m4/getpass.m4 (gl_FUNC_GETPASS):
49417         * m4/gettime.m4 (gl_GETTIME):
49418         * m4/getugroups.m4 (gl_GETUGROUPS):
49419         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
49420         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
49421         * m4/hard-locale.m4 (gl_HARD_LOCALE):
49422         * m4/hash.m4 (gl_HASH):
49423         * m4/idcache.m4 (gl_IDCACHE):
49424         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
49425         * m4/lchown.m4 (gl_FUNC_LCHOWN):
49426         * m4/long-options.m4 (gl_LONG_OPTIONS):
49427         * m4/lstat.m4 (gl_FUNC_LSTAT):
49428         * m4/md5.m4 (gl_MD5):
49429         * m4/memcasecmp.m4 (gl_MEMCASECMP):
49430         * m4/memcoll.m4 (gl_MEMCOLL):
49431         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
49432         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
49433         * m4/memxor.m4 (gl_MEMXOR):
49434         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
49435         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
49436         * m4/modechange.m4 (gl_MODECHANGE):
49437         * m4/mountlist.m4 (gl_MOUNTLIST):
49438         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
49439         * m4/openat.m4 (gl_FUNC_OPENAT):
49440         * m4/pathmax.m4 (gl_PATHMAX):
49441         * m4/physmem.m4 (gl_PHYSMEM):
49442         * m4/posixtm.m4 (gl_POSIXTM):
49443         * m4/posixver.m4 (gl_POSIXVER):
49444         * m4/quote.m4 (gl_QUOTE):
49445         * m4/quotearg.m4 (gl_QUOTEARG):
49446         * m4/readtokens.m4 (gl_READTOKENS):
49447         * m4/readutmp.m4 (gl_READUTMP):
49448         * m4/regex.m4 (gl_REGEX):
49449         * m4/safe-read.m4 (gl_SAFE_READ):
49450         * m4/safe-write.m4 (gl_SAFE_WRITE):
49451         * m4/same.m4 (gl_SAME):
49452         * m4/save-cwd.m4 (gl_SAVE_CWD):
49453         * m4/savedir.m4 (gl_SAVEDIR):
49454         * m4/settime.m4 (gl_SETTIME):
49455         * m4/sha1.m4 (gl_SHA1):
49456         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
49457         * m4/stat-macros.m4 (gl_STAT_MACROS):
49458         * m4/stat-time.m4 (gl_STAT_TIME):
49459         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
49460         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
49461         * m4/strdup.m4 (gl_FUNC_STRDUP):
49462         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
49463         * m4/strndup.m4 (gl_FUNC_STRNDUP):
49464         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
49465         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
49466         * m4/time_r.m4 (gl_TIME_R):
49467         * m4/timespec.m4 (gl_TIMESPEC):
49468         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
49469         * m4/unlinkdir.m4 (gl_UNLINKDIR):
49470         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
49471         * m4/userspec.m4 (gl_USERSPEC):
49472         * m4/utimecmp.m4 (gl_UTIMECMP):
49473         * m4/utimens.m4 (gl_UTIMENS):
49474         * m4/xalloc.m4 (gl_XALLOC):
49475         * m4/xgetcwd.m4 (gl_XGETCWD):
49476         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
49477         * m4/xreadlink.m4 (gl_XREADLINK):
49478         * m4/xstrtod.m4 (gl_XSTRTOD):
49479         * m4/yesno.m4 (gl_YESNO):
49480         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
49481         to get the necessary .h files and whatnot.
49482
49483 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
49484             Bruno Haible  <bruno@clisp.org>
49485
49486         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
49487         /bin/sh understanding of '!' conditional negation.
49488
49489 2006-08-21  Jim Meyering  <jim@meyering.net>
49490
49491         * modules/openat (Depends-on): Really alphabetize.
49492
49493         * modules/acl (Depends-on): Add error and quote.
49494
49495         * check-module (find_included_lib_files): Add at-func.c to the
49496         ok-to-include-more-than-once white list.
49497
49498         * modules/openat (Depends-on): Add lstat.  Alphabetize.
49499
49500 2006-08-21  Bruno Haible  <bruno@clisp.org>
49501
49502         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49503         Emit a pkgdata_DATA variable only if some snippets add contents to it.
49504         Reported by Martin Lambers <marlam@marlam.de>.
49505
49506 2006-08-21  Bruno Haible  <bruno@clisp.org>
49507
49508         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
49509         specify an installation location, don't emit a noinst_LIBRARIES or
49510         noinst_LTLIBRARIES assignment.
49511
49512 2006-08-21  Bruno Haible  <bruno@clisp.org>
49513
49514         BeOS portability.
49515         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
49516         BeOS has mbrtowc() but no <wctype.h>.
49517
49518 2006-08-21  Bruno Haible  <bruno@clisp.org>
49519
49520         BeOS portability.
49521         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
49522         exist.
49523
49524 2006-08-21  Bruno Haible  <bruno@clisp.org>
49525
49526         BeOS portability.
49527         * lib/mbchar.h: Include <wctype.h> only if it exists.
49528
49529 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49530
49531         Remove files that are no longer needed by their respective modules.
49532         * m4/obstack.m4: Remove.
49533         * m4/strerror_r.m4: Remove.
49534         * m4/uint32_t.m4: Remove.
49535         * m4/uintptr_t.m4: Remove.
49536         * m4/ullong_max.m4: Remove.
49537         * m4/xstrtoimax.m4: Remove.
49538         * m4/xstrtoumax.m4: Remove.
49539
49540         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
49541         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
49542         dependencies now capture this.
49543
49544         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
49545         Do not use AC_LIBSOURCES, since gnulib modules now do this.
49546         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
49547         * m4/human.m4 (gl_HUMAN): Likewise.
49548         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
49549         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
49550
49551         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
49552
49553         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
49554         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
49555         stdint.
49556         * m4/human.m4 (gl_HUMAN): Likewise.
49557         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
49558         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
49559         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
49560         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
49561         * m4/xstrtol (gl_XSTRTOL): Likewise.
49562
49563         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
49564         AC_TYPE_LONG_LONG_INT.
49565         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
49566         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
49567         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
49568         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
49569
49570         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
49571         on stdbool.
49572
49573         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
49574         (gl_PREREQ_XSTRTOUL): Remove.
49575
49576         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
49577
49578         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
49579         mode.
49580
49581 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49582
49583         Add and change modules to make it easier for coreutils to use
49584         gnulib-tool.
49585         * modules/backupfile (Files): Remove m4/d-ino.m4.
49586         (Depends-on): Add d-ino.
49587         * modules/cycle-check (Depends-on): Add stdint.
49588         (lib_SOURCES): Add cycle-check.h.
49589         * modules/d-ino: New module.
49590         * modules/d-type: New module.
49591         * modules/error (Files): Remove m4/strerror_r.m4.
49592         * modules/filemode (Files): Add m4/st_dm_mode.m4.
49593         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
49594         m4/inttypes_h.m4, m4/uintmax_t.m4.
49595         (Depends-on): Add stdint.
49596         (lib_SOURCES): Add fsusage.h.
49597         * modules/getcwd (Files): Remove d-ino.m4.
49598         (Depends-on): Add d-ino.
49599         * modules/getndelim2 (Depends-on): Add stdint.
49600         * modules/glob (Files): Remove m4/d-type.m4.
49601         (Depends-on): Add d-type.
49602         * modules/host-os: New module.
49603         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
49604         m4/inttypes_h.m4, m4/uintmax_t.m4.
49605         * Depends-on: Add stdint.
49606         (lib_SOURCES): Add human.h.
49607         * modules/inttostr (Files): Remove m4/intmax_t.m4,
49608         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
49609         m4/uintmax_t.m4, m4/ulonglong.m4.
49610         (Depends-on): Add stdint.
49611         (EXTRA_DIST): Add inttostr.h.
49612         * modules/lchmod: New module.
49613         * modules/link-follow: New module.
49614         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
49615         (Depends-on): Add lchmod.
49616         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
49617         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
49618         (Depends-on): Add stdint.
49619         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
49620         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
49621         (Depends-on): Add stdint.
49622         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
49623         * modules/perl: New module.
49624         * modules/regex (Depends-on): Add stdint.
49625         * modules/rmdir-errno: New module.
49626         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
49627         m4/intmax_t.m4.
49628         (Depends-on): Add stdint.
49629         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
49630         m4/uintmax_t.m4.
49631         (Depends-on): Add stdint.
49632         * modules/unlink-busy: New module.
49633         * modules/utimecmp (Depends-on): Add stdint.
49634         * modules/uptime: New module.
49635         * modules/winsz-ioctl: New module.
49636         * modules/winsz-termios: New module.
49637         * modules/xnanosleep (Depends-on): Add nanosleep.
49638         * modules/ullong_max: Remove.
49639         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
49640         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
49641         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
49642         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
49643         (Depends-on): Add inttypes.
49644         (lib_SOURCES): Add xstrtol.h.
49645         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
49646         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
49647         * MODULES.html.sh: Move 'assert' into the assert section.
49648         Move 'dummy' into the linking section.
49649         Remove ullong_max.
49650         Add section for compatibility checks for POSIX:2001 functions,
49651         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
49652         winsz-ioctl, and winsz-termios into it.
49653         Add lchmod.
49654         Add top-level Misc section and put host-os, perl, and uptime
49655         into it.
49656
49657 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49658
49659         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
49660         now assume the stdint module.  Do not include inttypes.h.
49661         * lib/fsusage.h: Likewise.
49662         * lib/getndelim2.c: Likewise.
49663         * lib/human.h: Likewise.
49664         * lib/inttostr.h: Likewise.
49665         * lib/obstack.c: Likewise.
49666         * lib/regex_internal.h: Likewise.
49667         * lib/tempname.c: Likewise.
49668         * lib/utimecmp.c: Likewise.
49669         * lib/xstrtol.h: Likewise.
49670
49671         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
49672
49673         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
49674         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
49675         * lib/xtime.h: Likewise.
49676
49677 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49678
49679         * modules/openat (Files): Add lib/fchmodat.c.
49680         Fixes problem reported by Jay Youngman.
49681
49682 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49683
49684         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
49685         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
49686
49687 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
49688             Bruno Haible  <bruno@clisp.org>
49689
49690         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
49691         and is a script that invokes bison. Tighten the code. Add comments.
49692
49693 2006-08-18  Jim Meyering  <jim@meyering.net>
49694
49695         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
49696         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
49697         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
49698         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
49699
49700 2006-08-18  Bruno Haible  <bruno@clisp.org>
49701
49702         * modules/bison-i18n: New file.
49703         * MODULES.html.sh (Internationalization functions): Add it.
49704
49705 2006-08-18  Bruno Haible  <bruno@clisp.org>
49706
49707         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
49708         sys/statvfs.h. When getmntinfo was found, check its declaration and
49709         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
49710
49711 2006-08-18  Bruno Haible  <bruno@clisp.org>
49712
49713         * m4/bison-i18n.m4: New file, from bison.
49714
49715 2006-08-18  Bruno Haible  <bruno@clisp.org>
49716
49717         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
49718         (ME_DUMMY): Treat "kernfs" as a dummy.
49719         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
49720
49721 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
49722
49723         Update from coreutils.
49724
49725         2006-08-15  Jim Meyering  <jim@meyering.net>
49726
49727         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
49728
49729         2006-01-17  Jim Meyering  <jim@meyering.net>
49730
49731         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
49732
49733         2006-01-11  Jim Meyering  <jim@meyering.net>
49734
49735         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
49736         Check for the lchmod function.
49737
49738 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
49739
49740         Update from coreutils.
49741
49742         * lib/__fpending.h: Add copyright notice.
49743         * lib/fprintftime.h: Likewise.
49744         * lib/savedir.c: Use (C) in copyright notice.
49745         * lib/savedir.h: Likewise.
49746
49747         2006-08-15  Jim Meyering  <jim@meyering.net>
49748
49749         * lib/at-func.c: New file, with the logic of all emulated at-functions.
49750         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
49751         in support of the EXPECTED_ERRNO macro.
49752         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
49753         definitions.  Instead, define the appropriate symbols and include
49754         "at-func.c".
49755         * lib/mkdirat.c (mkdirat): Likewise.
49756         * lib/fchmodat.c (fchmodat): Likewise.
49757         (ENOSYS): Remove definition.
49758         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
49759         it.  Don't include "unistd--.h" -- it wasn't ever used.
49760
49761         2006-01-17  Jim Meyering  <jim@meyering.net>
49762
49763         Rewrite fts.c not to change the current working directory,
49764         by using openat, fstatat, fdopendir, etc..
49765
49766         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
49767         (HAVE_OPENAT_SUPPORT): Define.
49768         [_LIBC] (fchdir): Don't undef or define; no longer used.
49769         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
49770         Now, this `function' always succeeds, and consumes its file descriptor
49771         parameter -- so callers must not close such FDs.  Update callers.
49772         (diropen_fd, opendirat, cwd_advance_fd): New functions.
49773         (diropen): Add parameter, SP.  Adjust all callers.
49774         Implement using diropen_fd, rather than open.
49775         (fts_open): Initialize new member, fts_cwd_fd.
49776         Remove fts_rft-setting code.
49777         (fts_close): Close fts_cwd_fd, if necessary.
49778         (__opendir2): Define in terms of opendir or opendirat,
49779         depending on whether the FST_NOCHDIR flag is set.
49780         (fts_build): Since fts_safe_changedir consumes its FD, and since
49781         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
49782         and close the dup'd file descriptor upon failure.
49783         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
49784         (fts_safe_changedir): Tweak semantics to reflect that this function
49785         now calls cwd_advance_fd and hence consumes its FD argument.
49786         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
49787         [struct FTS] (fts_rft): Remove now-unused member.
49788         [struct FTS] (fts_cycle.state): Improve comment.
49789
49790         * lib/openat.c (openat_needs_fchdir): New function.
49791         * lib/openat.h (openat_needs_fchdir): Declare it.
49792
49793 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
49794
49795         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
49796         Problem and fix reported by Pádraig Brady in
49797         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
49798
49799 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49800
49801         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
49802
49803 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49804
49805         * lib/memcoll.c (memcoll): Optimize for the common case where the
49806         arguments are bytewise equal.
49807
49808 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49809
49810         * doc/regexprops-generic.texi: Add a copyright notice.
49811
49812 2006-08-15  Bruno Haible  <bruno@clisp.org>
49813
49814         * modules/tmpdir (License): Change to LGPL.
49815
49816 2006-08-15  Bruno Haible  <bruno@clisp.org>
49817
49818         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
49819         module.
49820
49821 2006-08-14  Simon Josefsson  <jas@extundo.com>
49822
49823         * config/srclist.txt: Add gnupload.
49824
49825 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49826
49827         Change copyright notice from LGPL 2 to GPL 2, since that's the
49828         standard form used in the gnulib repository.
49829         * tests/test-lock.c: Likewise.
49830         * tests/test-stdint.c: Likewise.
49831         * tests/test-tls.c: Likewise.
49832
49833         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
49834         prelude-manager.  User shorter URLs for GNU projects, without '?'.
49835         Add copyright notice.
49836
49837         * check-module: Add copyright notice.  Output a copyright
49838         notice if "--version" is specified.
49839         * modules/COPYING: New file.
49840         * tests/test-getaddrinfo.c: Add copyright notice.
49841         * tests/test-verify.c: Likewise.
49842
49843 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49844
49845         Change copyright notice from LGPL 2 to GPL 2, since that's the
49846         standard form used in the gnulib repository.
49847         * lib/lock.c: LGPL -> GPL.
49848         * lib/lock.h: Likewise.
49849         * lib/strnlen1.c: Likewise.
49850         * lib/strnlen1.h: Likewise.
49851         * lib/tls.c: Likewise.
49852         * lib/tls.h: Likewise.
49853         * lib/tmpdir.c: Likewise.
49854
49855         * lib/TODO: Remove; this belongs only in coreutils.
49856
49857 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49858
49859         Add copyright notices to long-enough files that lack them, since
49860         otherwise the files aren't clearly free.  Use the same notice that
49861         getdate.texi already uses.
49862         * doc/alloca-opt.texi: Add copyright notice.
49863         * doc/alloca.texi: Likewise.
49864         * doc/ctime.texi: Likewise.
49865         * doc/functions.texi: Likewise.
49866         * doc/gcd.texi: Likewise.
49867         * doc/gnulib-tool.texi: Likewise.
49868         * doc/inet_ntoa.texi: Likewise.
49869         * doc/visibility.texi: Likewise.
49870
49871         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
49872         * doc/quote.texi: Add copyright notice.
49873
49874         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
49875         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
49876         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
49877         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
49878         is now obsolete, and give a pointer to the Sun list.
49879         Add copyright notice.
49880
49881 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49882
49883         * config/srclistvars.sh: Add copyright notice.
49884
49885 2006-08-14  Eric Blake  <ebb9@byu.net>
49886
49887         Import the following change from libc:
49888
49889         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
49890
49891         Upstream bug 2997.
49892         * lib/misc/error.c: Add space between program name and message if file
49893         name is missing.
49894
49895 2006-08-12  Karl Berry  <karl@gnu.org>
49896
49897         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
49898         remove, these originate in gnulib now.
49899
49900 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49901
49902         * doc/Makefile (standards.info standards.html standards.dvi):
49903         Also depend on make-stds.texi.
49904
49905 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
49906
49907         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
49908         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
49909
49910         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
49911         in wchar_t.  Problem reported by Eric Blake.
49912
49913         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
49914         LEN is smaller than SIZE.  Suggested by Bruno Haible.
49915         Also, help the compiler to keep LEN in a register.
49916
49917 2006-08-11  Eric Blake  <ebb9@byu.net>
49918
49919         * users.txt: Sort.  Add tar.
49920
49921 2006-08-11  Bruno Haible  <bruno@clisp.org>
49922
49923         * users.txt: New file.
49924
49925 2006-08-11  Bruno Haible  <bruno@clisp.org>
49926
49927         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
49928         before <wchar.h>. Needed for OSF/1 and BSD/OS.
49929
49930 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
49931
49932         * modules/snprintf (Depends-on): Remove minmax.
49933         (Maintainer): Add self and Bruno.
49934
49935 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
49936
49937         * lib/.cppi-disable: Add snprintf.h, socket_.h.
49938         * lib/snprintf.c: Include <errno.h> and <limits.h>.
49939         (EOVERFLOW): Define if the system does not.
49940         Do not include "minmax.h"; it wasn't used.
49941         (snprintf): Don't assume size_t promotes to an unsigned type.
49942         Fix bug when generated string was too long for the buffer: the
49943         buffer's contents are supposed to be the initial prefix of the
49944         output.  Don't assume vasnprintf returns EOVERFLOW if the size
49945         exceeds INT_MAX; do the check ourselves.
49946
49947         Import the following changes from libc:
49948
49949         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
49950
49951         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
49952         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
49953         set wc to the byte which couldn't be converted.
49954         (re_string_reconstruct): Don't clear valid_raw_len before calling
49955         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
49956         tip_context using re_string_context_at.
49957
49958         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
49959
49960         * lib/posix/regex.h: g++ still cannot handled [restrict].
49961
49962         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
49963
49964         * lib/posix/regex.h: Remove special handling for VMS.
49965
49966 2006-08-10  Jim Meyering  <jim@meyering.net>
49967
49968         * modules/same-inode: New module.
49969         * modules/dev-ino: New module.
49970         * modules/cycle-check: Depend on these modules, rather than simply
49971         including their .h files.
49972         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
49973         required via m4/cycle-check.m4.
49974         * modules/same: Depend on new same-inode module, rather than
49975         including same-inode.h.
49976         * modules/chdir-safer: New file.
49977
49978         * modules/chown (Depends-on): Add stat-macros.
49979
49980 2006-08-10  Jim Meyering  <jim@meyering.net>
49981
49982         * m4/cycle-check.m4: New file.
49983         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
49984         * m4/dev-ino.m4, m4/same-inode.m4: New files.
49985
49986 2006-08-10  Eric Blake  <ebb9@byu.net>
49987
49988         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
49989         in from original proposal.
49990
49991 2006-08-10  Eric Blake  <ebb9@byu.net>
49992         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
49993
49994         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
49995         namespace.
49996
49997 2006-08-10  Bruno Haible  <bruno@clisp.org>
49998
49999         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
50000         as well.
50001
50002 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
50003
50004         Sync from coreutils.
50005
50006         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
50007
50008         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
50009         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
50010
50011 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
50012
50013         * modules/restrict: Remove; no longer needed now that we assume
50014         Autoconf 2.59 or later.
50015         * MODULES.html.sh: Remove 'restrict'.
50016         * modules/argp (Depends-on): Remove 'restrict'.
50017         * modules/base64 (Depends-on): Likewise.
50018         * modules/gc (Depends-on): Likewise.
50019         * modules/getaddrinfo (Depends-on): Likewise.
50020         * modules/glob (Depends-on): Likewise.
50021         * modules/inet_ntop (Depends-on): Likewise.
50022         * modules/inet_pton (Depends-on): Likewise.
50023         * modules/memxor (Depends-on): Likewise.
50024         * modules/regex (Depends-on): Likewise.
50025         * modules/strtok_r (Depends-on): Likewise.
50026         * modules/time_r (Depends-on): Likewise.
50027
50028 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
50029
50030         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
50031         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
50032         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
50033         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
50034         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
50035         * m4/memxor.m4 (gl_MEMXOR): Likewise.
50036         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
50037         gl_C_RESTRICT replaced by AC_C_RESTRICT.
50038
50039         Merge from coreutils.
50040         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
50041         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
50042         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
50043         * m4/time_r.m4 (gl_TIME_R): Likewise.
50044
50045 2006-08-09  Karl Berry  <karl@gnu.org>
50046
50047         * config/srclist.txt: no more gettext-tools, per Bruno.
50048
50049 2006-08-08  Eric Blake  <ebb9@byu.net>
50050
50051         * modules/verror: New module.
50052         * MODULES.html.sh: Document it.
50053
50054 2006-08-08  Eric Blake  <ebb9@byu.net>
50055
50056         * lib/verror.h, lib/verror.c: New files.
50057
50058 2006-08-08  Eric Blake  <ebb9@byu.net>
50059
50060         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
50061         verror_at_line output complies with GNU Coding Standards even when
50062         file is NULL.
50063
50064 2006-08-07  Bruno Haible  <bruno@clisp.org>
50065
50066         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
50067         versions of AIX.
50068         Reported by Ralf Wildenhues.
50069
50070 2006-08-07  Bruno Haible  <bruno@clisp.org>
50071
50072         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
50073         in an AC_DEFUN. Needed so that the autoconf snippets can use
50074         AC_REQUIRE.
50075
50076 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50077
50078         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50079         Initialize pkgdata_DATA.
50080         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
50081         overriding it.
50082
50083 2006-08-06  Eric Blake  <ebb9@byu.net>
50084
50085         * lib/error.h: Fold in some upstream changes from glibc.
50086         * lib/error.c: Likewise.
50087
50088 2006-08-04  Bruno Haible  <bruno@clisp.org>
50089
50090         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50091         Make the mostlyclean-local rule depend on mostlyclean-generic.
50092         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
50093
50094 2006-07-31  Bruno Haible  <bruno@clisp.org>
50095
50096         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
50097         <stdlib.h>, <string.h>.
50098
50099 2006-07-30  Bruno Haible  <bruno@clisp.org>
50100
50101         * modules/readlink (License): Change to LGPL.
50102
50103 2006-07-30  Bruno Haible  <bruno@clisp.org>
50104
50105         * modules/javaversion (Makefile.am): Distribute javaversion.java and
50106         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
50107         set PKGDATADIR to point to it.
50108
50109 2006-07-30  Bruno Haible  <bruno@clisp.org>
50110
50111         * modules/csharpexec (configure.ac): Comment out macro invocation.
50112         * modules/javaexec (configure.ac): Likewise.
50113         * modules/javacomp-script (configure.ac): Likewise.
50114
50115         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
50116
50117 2006-07-30  Bruno Haible  <bruno@clisp.org>
50118
50119         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
50120         linked-list.
50121
50122 2006-07-30  Bruno Haible  <bruno@clisp.org>
50123
50124         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
50125
50126 2006-07-30  Bruno Haible  <bruno@clisp.org>
50127
50128         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50129         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
50130         get removed.
50131
50132 2006-07-29  Bruno Haible  <bruno@clisp.org>
50133
50134         Make it possible for gnulib-tool to work with locally modified or
50135         augmented gnulib repositories.
50136         * gnulib-tool (func_usage): Document --local-dir option.
50137         (local_gnulib_dir): New variable.
50138         Handle --local-dir option.
50139         (func_lookup_file): New function.
50140         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
50141         (func_get_description, func_get_filelist, func_get_description,
50142         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
50143         func_get_automake_snippet, func_get_include_directive,
50144         func_get_license, func_get_maintainer): Use func_lookup_file.
50145         (func_import, func_create_testdir): Use func_lookup_file.
50146
50147 2006-07-29  Bruno Haible  <bruno@clisp.org>
50148
50149         * modules/setenv (Depends-on): Add unistd.
50150
50151 2006-07-29  Bruno Haible  <bruno@clisp.org>
50152
50153         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
50154
50155 2006-07-29  Bruno Haible  <bruno@clisp.org>
50156
50157         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
50158
50159 2006-07-29  Bruno Haible  <bruno@clisp.org>
50160
50161         * gnulib-tool (import, update): If there is no Makefile.am, look at
50162         aclocal.m4, instead of bailing out.
50163
50164 2006-07-29  Bruno Haible  <bruno@clisp.org>
50165
50166         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
50167         Categorize the options by when they are useful.
50168
50169 2006-07-29  Bruno Haible  <bruno@clisp.org>
50170
50171         * gnulib-tool (func_usage): Document option --no-libtool.
50172         Handle option --no-libtool.
50173         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
50174         for changed semantics of $libtool variable.
50175         (func_import): Likewise. If libtool is not used, show this through
50176         an option --no-libtool.
50177         (func_create_testdir): Update.
50178
50179 2006-07-29  Bruno Haible  <bruno@clisp.org>
50180
50181         * gnulib-tool (func_import): Extend error message about missing
50182         --doc-base.
50183
50184 2006-07-29  Bruno Haible  <bruno@clisp.org>
50185
50186         * gnulib-tool (func_import): Don't create the $docbase directory if
50187         there is no file to store there.
50188
50189 2006-07-29  Bruno Haible  <bruno@clisp.org>
50190
50191         * gnulib-tool (autoconf_minversion): If a --dir option is given and
50192         relevant, look for configure.ac there, not in the current directory.
50193         Also use a simple search for AC_PREREQ, not "autoconf --trace".
50194
50195 2006-07-29  Bruno Haible  <bruno@clisp.org>
50196
50197         * gnulib-tool (SORT): New variable.
50198         (func_usage): Undocument --assume-autoconf option.
50199         Remove --assume-autoconf option handling.
50200         (autoconf_minversion): Determine from the contents of configure.ac.
50201         (func_import): Remove autoconf_minversion handling.
50202         Suggested by Eric Blake.
50203
50204 2006-07-29  Bruno Haible  <bruno@clisp.org>
50205
50206         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
50207
50208 2006-07-29  Bruno Haible  <bruno@clisp.org>
50209
50210         * config/srclist.txt (*setenv.[ch]): Remove rules.
50211
50212 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50213
50214         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
50215
50216 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50217
50218         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
50219         arpa/inet.h.
50220
50221 2006-07-28  Simon Josefsson  <jas@extundo.com>
50222
50223         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
50224         * modules/inet_pton (Depends-on): Likewise.
50225
50226 2006-07-28  Simon Josefsson  <jas@extundo.com>
50227
50228         * m4/netinet_in_h.m4: New file.
50229
50230 2006-07-28  Simon Josefsson  <jas@extundo.com>
50231
50232         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
50233         #include's.
50234
50235 2006-07-28  Simon Josefsson  <jas@extundo.com>
50236
50237         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
50238         #include's.
50239
50240 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
50241
50242         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
50243         setgid on directories only if they set these bits.
50244         * lib/modechange.h: Remove obsolete comment about masks.
50245
50246 2006-07-28  Eric Blake  <ebb9@byu.net>
50247
50248         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
50249         macro expansion.
50250
50251 2006-07-28  Bruno Haible  <bruno@clisp.org>
50252
50253         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
50254
50255 2006-07-28  Bruno Haible  <bruno@clisp.org>
50256
50257         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
50258
50259 2006-07-28  Bruno Haible  <bruno@clisp.org>
50260
50261         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
50262         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
50263         Define fallbacks.
50264         Avoids link error on FreeBSD 4.x.
50265         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50266
50267         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
50268         encoding.
50269         * lib/mbswidth.c (iswcntrl): Likewise.
50270
50271 2006-07-27  Bruno Haible  <bruno@clisp.org>
50272
50273         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
50274         test.
50275
50276 2006-07-27  Bruno Haible  <bruno@clisp.org>
50277
50278         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
50279         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
50280         defined.
50281
50282 2006-07-26  Eric Blake  <ebb9@byu.net>
50283
50284         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
50285
50286 2006-07-26  Eric Blake  <ebb9@byu.net>
50287
50288         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
50289         like mingw that lack mkstemp.
50290         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
50291         avoid compilation warning on mingw.
50292
50293 2006-07-26  Bruno Haible  <bruno@clisp.org>
50294
50295         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
50296         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
50297         INT_FAST*_MIN, INTPTR_MIN.
50298
50299 2006-07-25  Bruno Haible  <bruno@clisp.org>
50300
50301         * modules/version-etc (Depends-on): Add stdarg.
50302
50303 2006-07-25  Bruno Haible  <bruno@clisp.org>
50304
50305         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
50306         complex commands.
50307
50308 2006-07-25  Bruno Haible  <bruno@clisp.org>
50309
50310         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
50311         defined in <stdarg.h> or config.h.
50312
50313 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
50314
50315         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
50316         (gl_STDIO_SAFER): Remove.
50317
50318 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
50319
50320         * MODULES.html.sh (File stream based Input/Output):
50321         Add fopen-safer, tmpfile-safer; remove stdio-safer.
50322         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
50323         * modules/fopen-safer, modules/tmpfile-safer: New files.
50324         * modules/stdio-safer: Remove.
50325
50326 2006-07-24  Bruno Haible  <bruno@clisp.org>
50327
50328         * modules/tmpdir: New file.
50329         * MODULES.html.sh (File system functions): Add it.
50330
50331 2006-07-24  Bruno Haible  <bruno@clisp.org>
50332
50333         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
50334         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
50335
50336 2006-07-24  Bruno Haible  <bruno@clisp.org>
50337
50338         * modules/clean-temp: New file.
50339
50340 2006-07-24  Bruno Haible  <bruno@clisp.org>
50341
50342         * m4/tmpdir.m4: New file, from GNU gettext.
50343
50344 2006-07-24  Bruno Haible  <bruno@clisp.org>
50345
50346         * lib/tmpdir.h: New file, from GNU gettext.
50347         * lib/tmpdir.c: New file, from GNU gettext.
50348
50349 2006-07-24  Bruno Haible  <bruno@clisp.org>
50350
50351         * lib/clean-temp.h: New file, from GNU gettext.
50352         * lib/clean-temp.c: New file, from GNU gettext.
50353
50354 2006-07-23  Eric Blake  <ebb9@byu.net>
50355
50356         * modules/stdio-safer (Files): Add tmpfile-safer.c.
50357         (Depends-on): Add binary-io.
50358
50359 2006-07-23  Eric Blake  <ebb9@byu.net>
50360
50361         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
50362
50363 2006-07-23  Eric Blake  <ebb9@byu.net>
50364
50365         * lib/tmpfile-safer.c: New file.
50366         * lib/stdio-safer.h (fopen_safer): Add prototype.
50367         * lib/stdio--.h (tmpfile): Make safer.
50368
50369 2006-07-23  Bruno Haible  <bruno@clisp.org>
50370
50371         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
50372         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
50373         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
50374         gl_linked_remove_at): Use it.
50375
50376 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50377         and Simon Josefsson <jas@extundo.com>
50378
50379         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
50380
50381         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
50382
50383 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50384
50385         * modules/close-stream: New file.
50386         * modules/closeout (Description): Make it clear that it exits
50387         with a diagnostic on error.
50388         (Depends-on): Add close-stream.  Remove fpending, stdbool.
50389         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
50390
50391 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50392
50393         * m4/close-stream.m4: New file.
50394
50395 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50396
50397         * lib/close-stream.c, lib/close-stream.h: New files.
50398
50399 2006-07-22  Bruno Haible  <bruno@clisp.org>
50400
50401         Merge from GNU gettext 0.15.
50402
50403         2006-05-01  Bruno Haible  <bruno@clisp.org>
50404
50405                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
50406
50407         2006-07-22  Bruno Haible  <bruno@clisp.org>
50408
50409                 * modules/javaversion: New file.
50410                 * MODULES.html.sh (Java): Add javaversion.
50411
50412         2006-03-12  Bruno Haible  <bruno@clisp.org>
50413
50414                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
50415
50416         2005-12-04  Bruno Haible  <bruno@clisp.org>
50417
50418                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
50419                 (untested).
50420
50421         2006-06-21  Bruno Haible  <bruno@clisp.org>
50422
50423                 Avoid warnings from recent versions of mcs.
50424                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
50425                 -o, -L, -r any more. Use options documented since mcs-1.0
50426                 instead. Similarly for -g.
50427
50428         2005-12-04  Bruno Haible  <bruno@clisp.org>
50429
50430                 * build-aux/csharpcomp.sh.in: Suffix for resources is
50431                 .resources, not .resource.
50432
50433         2005-07-09  Bruno Haible  <bruno@clisp.org>
50434
50435                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
50436                 add a .dll suffix.
50437                 Reported by Mark Junker <mjscod@gmx.de>.
50438
50439         2006-07-22  Bruno Haible  <bruno@clisp.org>
50440
50441                 * modules/gettext: Upgrade to gettext-0.15.
50442                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
50443                 m4/visibility.m4.
50444                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
50445
50446 2006-07-22  Bruno Haible  <bruno@clisp.org>
50447
50448         Merge from GNU gettext 0.15.
50449
50450         2006-03-25  Bruno Haible  <bruno@clisp.org>
50451
50452                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
50453
50454         2006-07-21  Bruno Haible  <bruno@clisp.org>
50455
50456                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
50457                 "1.1".
50458
50459         2006-05-09  Bruno Haible  <bruno@clisp.org>
50460
50461                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
50462                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
50463                 for the conftestver execution.
50464
50465         2006-05-01  Bruno Haible  <bruno@clisp.org>
50466
50467                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
50468                 optional target-version argument. Verify that the compiler
50469                 groks source of the specified source-version, or add -source
50470                 option as necessary. Verify that the compiler produces
50471                 bytecode in the specified target-version, or add -target and
50472                 -source options as necessary. Make the result of the test
50473                 available as variable CONF_JAVAC. Also log error output in
50474                 config.log.
50475
50476         2006-03-11  Bruno Haible  <bruno@clisp.org>
50477
50478                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
50479
50480         2006-05-09  Bruno Haible  <bruno@clisp.org>
50481
50482                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
50483                 CLASSPATH_SEPARATOR to a semicolon.
50484
50485         2006-03-12  Bruno Haible  <bruno@clisp.org>
50486
50487                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
50488                 available as variable CONF_JAVA, for subsequent autoconf
50489                 tests. Also log error output in config.log.
50490
50491         2006-07-19  Bruno Haible  <bruno@clisp.org>
50492
50493                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
50494                 that getline works on glibc2 systems. Needed to avoid trouble
50495                 in relocatable.c.
50496                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
50497
50498         2005-12-04  Bruno Haible  <bruno@clisp.org>
50499
50500                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
50501                 launcher (untested).
50502
50503         2005-12-04  Bruno Haible  <bruno@clisp.org>
50504
50505                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
50506
50507         2006-07-22  Bruno Haible  <bruno@clisp.org>
50508
50509                 * gettext.m4: Update from GNU gettext-0.15.
50510                 * nls.m4: Likewise.
50511                 * po.m4: Likewise.
50512                 * inttypes-pri.m4: Likewise.
50513                 * inttypes-h.m4: Renamed from inttypes.m4.
50514                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
50515
50516 2006-07-22  Bruno Haible  <bruno@clisp.org>
50517
50518         Merge from GNU gettext 0.15.
50519
50520         2005-07-05  Bruno Haible  <bruno@clisp.org>
50521
50522                 * printf-args.c (printf_fetchargs): Work around broken
50523                 definition of wint_t on mingw.
50524
50525         2005-02-12  Bruno Haible  <bruno@clisp.org>
50526
50527                 * xallocsa.h: Add extern "C" for C++.
50528
50529         2006-05-17  Bruno Haible  <bruno@clisp.org>
50530
50531                 Cygwin portability.
50532                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
50533
50534         2006-04-30  Bruno Haible  <bruno@clisp.org>
50535
50536                 * progreloc.c: Include <mach-o/dyld.h> if available.
50537                 (find_executable): Use _NSGetExecutablePath when possible.
50538
50539         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
50540
50541                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
50542                 function.
50543
50544         2005-12-29  Bruno Haible  <bruno@clisp.org>
50545
50546                 * progreloc.c (set_program_name_and_installdir): Fix
50547                 compilation error.
50548
50549         2005-12-04  Bruno Haible  <bruno@clisp.org>
50550
50551                 Cygwin portability.
50552                 * progreloc.c: Include <windows.h> also on Cygwin.
50553                 (find_executable): Add support for Cygwin.
50554                 (set_program_name_and_installdir): Handle also platforms with
50555                 nonempty EXEEXT.
50556
50557         2006-07-11  Bruno Haible  <bruno@clisp.org>
50558
50559                 * javacomp.c: Fix a comment.
50560                 Reported by Jim Meyering.
50561
50562         2006-04-30  Bruno Haible  <bruno@clisp.org>
50563
50564                 * javacomp.h (compile_java_class): Add source_version,
50565                 target_version arguments.
50566                 * javacomp.c: Rewritten to choose only a compiler that
50567                 respects the specified source_version and target_version.
50568
50569         2006-06-27  Bruno Haible  <bruno@clisp.org>
50570
50571                 Assume correct S_ISDIR macro.
50572                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
50573
50574         2006-07-22  Bruno Haible  <bruno@clisp.org>
50575
50576                 * javaversion.h: New file, from GNU gettext.
50577                 * javaversion.c: New file, from GNU gettext.
50578                 * javaversion.java: New file, from GNU gettext.
50579                 * javaversion.class: New file, from GNU gettext.
50580
50581         2006-05-17  Bruno Haible  <bruno@clisp.org>
50582
50583                 Cygwin portability.
50584                 * javaexec.c (execute_java_class): Test for jview program
50585                 also on Cygwin.
50586
50587         2006-04-09  Bruno Haible  <bruno@clisp.org>
50588
50589                 * fatal-signal.c: Don't include string.h.
50590                 (at_fatal_signal): Use a copying loop instead of memcpy.
50591
50592         2005-12-04  Bruno Haible  <bruno@clisp.org>
50593
50594                 * csharpexec.c: Add support for 'clix' launcher (untested).
50595                 (execute_csharp_using_sscli): New function.
50596                 (execute_csharp_program): Call it.
50597
50598         2006-06-21  Bruno Haible  <bruno@clisp.org>
50599
50600                 Avoid warnings from recent versions of mcs.
50601                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
50602                 -o, -L, -r any more. Use options documented since mcs-1.0
50603                 instead. Similarly for -g.
50604
50605         2005-07-09  Bruno Haible  <bruno@clisp.org>
50606
50607                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
50608                 add a .dll suffix.
50609                 Reported by Mark Junker <mjscod@gmx.de>.
50610
50611         2006-06-17  Bruno Haible  <bruno@clisp.org>
50612
50613                 * config.charset: Update for NetBSD 3.0.
50614
50615         2006-05-17  Bruno Haible  <bruno@clisp.org>
50616
50617                 Cygwin portability.
50618                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
50619
50620         2006-05-16  Bruno Haible  <bruno@clisp.org>
50621
50622                 * localcharset.c [CYGWIN]: Include <windows.h>.
50623                 (get_charset_aliases): For Cygwin, return the same CPxxx
50624                 aliases list as under WIN32.
50625                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
50626                 the environment variables. Fall back to GetACP().
50627
50628         2006-04-05  Bruno Haible  <bruno@clisp.org>
50629
50630                 * config.charset: Update Juan Manuel Guerrero's address.
50631
50632         2005-02-12  Bruno Haible  <bruno@clisp.org>
50633
50634                 * allocsa.h: Add extern "C" for C++.
50635
50636         2005-02-10  Bruno Haible  <bruno@clisp.org>
50637
50638                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
50639                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
50640
50641         2006-07-22  Bruno Haible  <bruno@clisp.org>
50642
50643                 * gettext.h: Update to GNU gettext-0.15.
50644
50645 2006-07-22  Bruno Haible  <bruno@clisp.org>
50646
50647         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
50648         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
50649         lib-prefix.m4, longdouble.m4, ssize_t.m4.
50650
50651 2006-07-21  Eric Blake  <ebb9@byu.net>
50652
50653         * modules/stdlib-safer: New file.
50654         * MODULES.html.sh (File stream based Input/Output): Add
50655         stdlib-safer.
50656
50657 2006-07-21  Eric Blake  <ebb9@byu.net>
50658
50659         * lib/stdlib-safer.h: New file from coreutils, required by
50660         stdlib--.h.
50661
50662 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
50663
50664         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
50665
50666 2006-07-20  Bruno Haible  <bruno@clisp.org>
50667
50668         * gnulib-tool: Recognize new option --assume-autoconf.
50669         (autoconf_minversion): New variable.
50670         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
50671
50672 2006-07-20  Bruno Haible  <bruno@clisp.org>
50673
50674         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
50675
50676 2006-07-19  Derek R. Price  <derek@ximbiot.com>
50677
50678         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
50679         Reindent and repaginate.
50680
50681 2006-07-19  Derek Price  <derek@ximbiot.com>
50682
50683         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
50684         Correct grammar.
50685
50686 2006-07-17  Bruno Haible  <bruno@clisp.org>
50687
50688         * modules/list: New file.
50689         * modules/array-list: New file.
50690         * modules/carray-list, modules/carray-list-tests: New files.
50691         * modules/linked-list, modules/linked-list-tests: New files.
50692         * modules/avltree-list, modules/avltree-list-tests: New files.
50693         * modules/rbtree-list, modules/rbtree-list-tests: New files.
50694         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
50695         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
50696         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
50697         * modules/oset: New file.
50698         * modules/array-oset: New file.
50699         * modules/avltree-oset, modules/avltree-oset-tests: New files.
50700         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
50701         * tests/test-carray_list.c: New file.
50702         * tests/test-linked_list.c: New file.
50703         * tests/test-avltree_list.c: New file.
50704         * tests/test-rbtree_list.c: New file.
50705         * tests/test-linkedhash_list.c: New file.
50706         * tests/test-avltreehash_list.c: New file.
50707         * tests/test-rbtreehash_list.c: New file.
50708         * tests/test-avltree_oset.c: New file.
50709         * tests/test-rbtree_oset.c: New file.
50710         * MODULES.html.sh (Container data structures): New section.
50711
50712 2006-07-17  Bruno Haible  <bruno@clisp.org>
50713
50714         * m4/gl_list.m4: New file.
50715
50716 2006-07-17  Bruno Haible  <bruno@clisp.org>
50717
50718         * lib/gl_list.h: New file.
50719         * lib/gl_list.c: New file.
50720         * lib/gl_array_list.h: New file.
50721         * lib/gl_array_list.c: New file.
50722         * lib/gl_carray_list.h: New file.
50723         * lib/gl_carray_list.c: New file.
50724         * lib/gl_linked_list.h: New file.
50725         * lib/gl_linked_list.c: New file.
50726         * lib/gl_anylinked_list1.h: New file.
50727         * lib/gl_anylinked_list2.h: New file.
50728         * lib/gl_avltree_list.h: New file.
50729         * lib/gl_avltree_list.c: New file.
50730         * lib/gl_anyavltree_list1.h: New file.
50731         * lib/gl_anyavltree_list2.h: New file.
50732         * lib/gl_rbtree_list.h: New file.
50733         * lib/gl_rbtree_list.c: New file.
50734         * lib/gl_anyrbtree_list1.h: New file.
50735         * lib/gl_anyrbtree_list2.h: New file.
50736         * lib/gl_anytree_list1.h: New file.
50737         * lib/gl_anytree_list2.h: New file.
50738         * lib/gl_linkedhash_list.h: New file.
50739         * lib/gl_linkedhash_list.c: New file.
50740         * lib/gl_anyhash_list1.h: New file.
50741         * lib/gl_anyhash_list2.h: New file.
50742         * lib/gl_avltreehash_list.h: New file.
50743         * lib/gl_avltreehash_list.c: New file.
50744         * lib/gl_rbtreehash_list.h: New file.
50745         * lib/gl_rbtreehash_list.c: New file.
50746         * lib/gl_anytreehash_list1.h: New file.
50747         * lib/gl_anytreehash_list2.h: New file.
50748
50749         * lib/gl_oset.h: New file.
50750         * lib/gl_oset.c: New file.
50751         * lib/gl_array_oset.h: New file.
50752         * lib/gl_array_oset.c: New file.
50753         * lib/gl_avltree_oset.h: New file.
50754         * lib/gl_avltree_oset.c: New file.
50755         * lib/gl_rbtree_oset.h: New file.
50756         * lib/gl_rbtree_oset.c: New file.
50757         * lib/gl_anytree_oset.h: New file.
50758
50759 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
50760
50761         * m4/mkancesdirs.m4: New file.
50762         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
50763         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
50764         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
50765         it.
50766
50767 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
50768
50769         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
50770         * lib/mkancesdirs.h: New files.
50771         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
50772         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
50773         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
50774         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
50775         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
50776         callers changed.  Revamp internals significantly, by not
50777         attempting to create directories that are temporarily more
50778         permissive than the final results.  Do not attempt to use
50779         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
50780         This removes some race conditions, fixes some bugs, and simplifies
50781         things.  Use new dirchownmod function to do owner and mode changes.
50782         * lib/mkdir-p.h: Likewise.
50783         * lib/modechange.c (octal_to_mode): New function.
50784         (struct mode_change): New member mentioned.
50785         (make_node_op_equals): New arg mentioned.  All callers changed.
50786         (mode_compile): Keep track of which mode bits the user has explicitly
50787         mentioned.
50788         (mode_adjust): New arg DIR, so that we implement the X op correctly.
50789         New arg PMODE_BITS, to keep track of which mode bits the user
50790         mentioned; it treats S_ISUID and S_ISGID speciall.
50791         All callers changed.
50792         * lib/modechange.h: Likewise.
50793
50794 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
50795
50796         * MODULES.html.sh: Add mkancestors.
50797         * modules/mkancesdirs: New module.
50798         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
50799         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
50800         The chdir-safer and afs files are now orphans; I'll remove them
50801         unless someone speaks up.
50802         Add lib/dirchownmod.c, lib/dirchownmod.h.
50803         (Depends-on): Remove alloca, chown, save-cwd, dirname.
50804         Add lchown, mkancesdirs.
50805         (Maintainer): Add self.
50806
50807 2006-07-15  Karl Berry  <karl@gnu.org>
50808
50809         * gnulib-tool: help message wording/arrangement.
50810
50811 2006-07-14  Simon Josefsson  <jas@extundo.com>
50812
50813         * doc/gnulib.texi (Libtool and Windows): New section.
50814
50815 2006-07-12  Simon Josefsson  <jas@extundo.com>
50816
50817         * modules/gendocs (License): Fix license, approved by Karl.
50818
50819 2006-07-12  Eric Blake  <ebb9@byu.net>
50820
50821         * MODULES.html.sh: Add gendocs.
50822
50823 2006-07-11  Eric Blake  <ebb9@byu.net>
50824
50825         * modules/fdl: New module, to install doc/fdl.texi.
50826         * MODULES.html.sh: Add new section for documentation modules.
50827         * gnulib-tool: Avoid space-tab.
50828         (--doc-base): New option, to manage files from doc.
50829
50830 2006-07-11  Eric Blake  <ebb9@byu.net>
50831
50832         * m4/absolute-header.m4: Fix comments to match recent change.
50833
50834 2006-07-11  Eric Blake  <ebb9@byu.net>
50835
50836         * gnulib-tool: List --doc-base before --tests-base.
50837
50838 2006-07-11  Derek R. Price  <derek@ximbiot.com>
50839
50840         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
50841
50842 2006-07-11  Bruno Haible  <bruno@clisp.org>
50843
50844         * README: Mention where to put documentation.
50845
50846 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50847
50848         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
50849
50850 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
50851
50852         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
50853         to stdint.m4.
50854
50855 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
50856
50857         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
50858         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
50859         "no/such/file/stdint.h" when there is no such file, so that
50860         the resulting C code can be parsed by dodgy compilers.
50861         Problems reported by Bob Proulx.
50862
50863 2006-07-10  Derek R. Price  <derek@ximbiot.com>
50864
50865         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
50866         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
50867         macros into the GNU _D_EXACT_NAMLEN.
50868         * lib/savedir.c:  Likewise.
50869         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
50870
50871 2006-07-10  Derek R. Price  <derek@ximbiot.com>
50872         and Paul Eggert  <eggert@cs.ucla.edu>
50873
50874         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
50875         * m4/savedir.m4:
50876         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
50877         macros into the GNU _D_EXACT_NAMLEN.
50878
50879 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50880
50881         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
50882         around the absolute name, to work around a problem with the HP-UX
50883         11.23 native C compiler, reported by Bob Proulx.
50884
50885 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50886
50887         * doc/maintain.texi, make-stds.texi: Sync from
50888         <http://savannah.gnu.org/projects/gnustandards>.
50889
50890 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50891
50892         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
50893
50894 2006-07-09  Jim Meyering  <jim@meyering.net>
50895
50896         * m4/glob.m4: Remove a doubled word in a comment.
50897
50898 2006-07-09  Jim Meyering  <jim@meyering.net>
50899
50900         * lib/argp-pv.c: Remove a doubled word in a comment.
50901         * lib/check-version.c (check_version): Likewise.
50902         * lib/javacomp.c (compile_java_class): Likewise.
50903
50904 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
50905
50906         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
50907         for the benefit of people using Autoconf 2.60.  If you want to
50908         support older Autoconf versions you can copy m4/onceonly_2_57.m4
50909         (or m4/onceonly.m4, if pre-2.57) manually.
50910
50911 2006-07-08  Jim Meyering  <jim@meyering.net>
50912
50913         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
50914         comment.
50915         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
50916         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
50917         comment.
50918
50919 2006-07-08  Jim Meyering  <jim@meyering.net>
50920
50921         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
50922
50923 2006-07-07  Simon Josefsson  <jas@extundo.com>
50924
50925         * tests/test-crc.c: Change expected crc value, the test vector
50926         were probably computed using the old broken crc.c?
50927
50928 2006-07-06  Simon Josefsson  <jas@extundo.com>
50929
50930         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
50931         now the canonical place for the M4 file).
50932
50933         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
50934         from the sys_socket dependency now.
50935
50936         * modules/inet_pton (Files): Ditto.
50937
50938         * modules/inet_ntop (Files): Ditto.
50939
50940 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
50941
50942         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
50943         not gl_PREREQ_GETUSERSHELL.
50944
50945 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50946
50947         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
50948         with only one argument, for Autoconf 2.60.
50949         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
50950         expand to nothing, so add a shell command to avoid syntax error.
50951         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
50952
50953 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50954
50955         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
50956
50957 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50958
50959         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
50960         no longer needed.  Check for isblank decl.
50961         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
50962         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
50963         of existence.
50964
50965 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50966
50967         * lib/getloadavg.c: Use __VMS, not VMS.
50968         * lib/getopt.c: Likewise.
50969         * lib/getpagesize.h: Likewise.
50970         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
50971         and probably does not work.
50972
50973 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50974
50975         * lib/.cppi-disable: Add wcwidth.
50976         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
50977         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
50978         (ISGRAPH): Remove.  All uses changed to isgraph.
50979         (FOLD) [!defined _LIBC]: Remove special case.
50980         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
50981         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
50982         HAVE_ISBLANK.
50983         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
50984         case.
50985
50986 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
50987
50988         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
50989         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
50990         brackets.  Other minor changes to suppress some compiler
50991         warnings.
50992
50993 2006-07-06  Derek R. Price  <derek@ximbiot.com>
50994         and Paul Eggert  <eggert@cs.ucla.edu>
50995
50996         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
50997         of invoking obsolescent AC_HEADER_DIRENT macro.
50998         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
50999         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
51000         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
51001         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
51002         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
51003         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
51004         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
51005         * m4/readdir.m4: Remove; no longer needed.
51006
51007 2006-07-06  Derek R. Price  <derek@ximbiot.com>
51008         and Paul Eggert  <eggert@cs.ucla.edu>
51009
51010         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
51011         Don't worry about this obsolete case any more.
51012         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
51013         directories.
51014         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
51015         worry about this obsolete case any more.
51016         * lib/fts.c: Likewise.
51017         * lib/getcwd.c: Likewise.
51018         * lib/glob.h: Likewise.
51019         * lib/savedir.c: Likewise.
51020
51021 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
51022
51023         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
51024         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
51025         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
51026         needed.
51027         All uses removed.
51028         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
51029         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
51030         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
51031         needed.
51032         * m4/getdate.m4 (gl_GETDATE): Likewise.
51033         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
51034         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
51035         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
51036         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
51037         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
51038         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
51039         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
51040         needed.
51041
51042 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
51043
51044         * lib/memcasecmp.c: Include <limits.h>.
51045         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
51046         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
51047         Don't assume isdigit succeeds only on '0' through '9'.
51048
51049 2006-07-05  Eric Blake  <ebb9@byu.net>
51050
51051         * modules/getaddrinfo (Depends-on): Add snprintf.
51052
51053 2006-07-05  Eric Blake  <ebb9@byu.net>
51054
51055         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
51056         to avoid 'header present but could not be compiled' on cygwin.
51057
51058 2006-07-05  Eric Blake  <ebb9@byu.net>
51059
51060         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
51061         missing from netdb.h.
51062         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
51063
51064 2006-07-05  Derek R. Price  <derek@ximbiot.com>
51065
51066         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
51067         no longer needed.
51068         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
51069         * m4/getdate.m4 (gl_GETDATE): Likewise.
51070         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
51071         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
51072         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
51073         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
51074         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
51075
51076 2006-07-05  Derek R. Price  <derek@ximbiot.com>
51077
51078         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
51079         All uses of is_space replaced by isspace.
51080         * lib/exit.h: Don't talk about STDC_HEADERS.
51081         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
51082         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
51083         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
51084         replaced by isprint etc.
51085         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
51086         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
51087         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
51088         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
51089         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
51090         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
51091
51092 2006-07-05  Bruno Haible  <bruno@clisp.org>
51093
51094         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
51095         the function exists, before testing against AIX.
51096         Reported by Martin Lambers <marlam@marlam.de>.
51097
51098 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
51099
51100         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
51101         From Mark D. Baushke.
51102
51103 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
51104
51105         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
51106         to the absolute name, not just one, to bypass Sun C 5.8's
51107         "warning: #include of /usr/include/... may be non-portable".
51108
51109 2006-07-04  Eric Blake  <ebb9@byu.net>
51110
51111         * modules/dirname-tests: New test module.
51112         * tests/test-dirname.c: New file, replacing dirname.c
51113         TEST_DIRNAME section that was recently deleted.
51114
51115 2006-07-04  Bruno Haible  <bruno@clisp.org>
51116
51117         Assume ANSI C header files and <ctype.h> functions.
51118         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
51119         (mbsnwidth): Use isprint, iscntrl instead.
51120
51121 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51122
51123         Merge from coreutils.
51124         * MODULES.html.sh: Add xstrtold.
51125         * modules/xstrtold: New file.
51126         * modules/cycle-check (Files): Add lib/same-inode.h.
51127         * modules/dirname (Files): Add m4/double-slash-root.m4.
51128         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
51129         * modules/mkdir-p (Files): Add lib/same-inode.h.
51130         * modules/same (Files): Add lib/same-inode.h.
51131
51132 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51133
51134         * m4/absolute-header.m4: Renamed from full-header-path.m4.
51135         This is to keep the terminology clean; POSIX talks about
51136         "absolute pathnames", not "full pathnames", but the GNU
51137         Coding Standards say to use "path" for something else;
51138         so use "absolute" to keep both sides happy.
51139         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
51140         Set gl_absolute_header, not gl_full_header_path.
51141         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
51142         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
51143         All uses changed.
51144
51145         Merge from coreutils.
51146
51147         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
51148
51149         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
51150         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
51151         want to require the building of c-strtod.o.
51152         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
51153         needs -lm directly.
51154         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
51155
51156         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
51157
51158         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
51159         --as-needed option if available.  Problem reported by Albert Chin in
51160         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
51161         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
51162         cc merely issues a bunch of annoying warnings for --as-needed
51163         (this problem was reported by Bob Proulx).  Also, try linking with
51164         -lm to detect a bug in binutils 2.16 (this problem was reported
51165         by Ralf Wildenhues).
51166
51167         2006-06-18  Jim Meyering  <jim@meyering.net>
51168
51169         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
51170         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
51171         macro.
51172         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
51173         also check for glibc-2.4's abort-inducing bug.
51174
51175         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
51176         Low-probability clean-up should be to use rmdir to get rid of
51177         the just-created directory, not unlink.
51178
51179         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
51180         configure fail, and request a bug report to inform us about it.
51181         Add a comment that, barring reports to the contrary, in 2007 we'll
51182         assume ftruncate is universally available.
51183
51184         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
51185
51186         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
51187
51188         2006-03-12  Jim Meyering  <jim@meyering.net>
51189
51190         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
51191         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
51192         * m4/same.m4 (gl_SAME): Likewise.
51193         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
51194
51195         2006-03-11  Eric Blake  <ebb9@byu.net>
51196
51197         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
51198         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
51199         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
51200         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
51201
51202 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51203
51204         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
51205         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
51206         reported by Mark D. Baushke, one in
51207         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
51208
51209         Merge from coreutils.
51210
51211         * lib/.cppi-disable: Add stdint_.h.
51212         * lib/.cvsignore: Add stdint.h.
51213
51214         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
51215
51216         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
51217         both double and long double versions.
51218         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
51219         * lib/xstrtold.c: New file.
51220         * lib/xstrtod.h (xstrtold): New decl.
51221
51222         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
51223
51224         * lib/filemode.c (setst): Remove.
51225         (strmode): Rewrite to avoid setst.  This makes the code shorter,
51226         (arguably) clearer, and the generated code is a bit smaller on my
51227         Debian GNU/Linux stable x86 host.
51228
51229         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
51230
51231         * lib/filemode.c: Include "filemode.h" first, to test the interface.
51232         Assume that filemode.h includes sys/types.h and sys/stat.h.
51233         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
51234         (ftypelet): Reorder to put common cases first, for efficiency.
51235         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
51236         to do 'M'.
51237         (strmode): Renamed from mode_string, and now stores 12 bytes instead
51238         of 10, for compatibility with FreeBSD.  All callers changed.
51239         (filemodestring): Now stores 12 bytes instead of 10, and sets file
51240         types that can't be deduced solely from st_mode.  First arg is now a
51241         const pointer.
51242         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
51243         (strmode): Renamed from mode_string.
51244         (filemodestring): New decl.
51245         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
51246         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
51247         needed.
51248         (S_ISPORT, S_ISWHT): New macros, if not already defined.
51249
51250         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
51251
51252         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
51253         fsusage.h now does that.  Include fsusage.h first, to test interface.
51254         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
51255         at most one method (the old code could have generated decls that
51256         didn't conform to C89, not that this was ever exercised).
51257         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
51258
51259         2006-03-19  Jim Meyering  <jim@meyering.net>
51260
51261         Work even in a chroot where d_ino values for entries in "/"
51262         don't match the stat.st_ino values for the same names.
51263         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
51264         number, iterate through all entries again, using lstat instead.
51265         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
51266         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
51267
51268         * lib/getcwd.c (__getcwd): Clarify a comment.
51269         Use memcpy in place of a call to strcpy.
51270
51271         2006-03-12  Jim Meyering  <jim@meyering.net>
51272
51273         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
51274         matches that of the current directory (which we're about to chdir ".."
51275         out of), then save the dev-ino of the parent, instead.
51276
51277         * lib/same-inode.h (SAME_INODE): New file/macro.
51278         * lib/chdir-safer.c (SAME_INODE): Remove definition.
51279         Include "same-inode.h", instead.
51280         * lib/same.c: Likewise.
51281         * lib/cycle-check.h: Include "same-inode.h".
51282         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
51283         * lib/cycle-check.c (SAME_INODE): Remove definition.
51284         * lib/root-dev-ino.h: Include "same-inode.h".
51285
51286         2006-03-11  Eric Blake  <ebb9@byu.net>
51287
51288         * lib/same.c (same_name): s/base_name/last_component/
51289         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
51290         * lib/filenamecat.c (file_name_concat): Likewise.
51291
51292         2006-03-11  Eric Blake  <ebb9@byu.net>,
51293                     Paul Eggert  <eggert@cs.ucla.edu>
51294
51295         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
51296         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
51297         drive prefix.
51298         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
51299         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
51300         (last_component): New method.
51301         * lib/dirname.c (dir_len): Determine when drive letters need a
51302         subsequent slash.  Preserve // when it is special.
51303         (dir_name): Don't append dot when drive letter is absolute.
51304         [TEST_DIRNAME]: Move into a full-blown gnulib test.
51305         * lib/basename.c (base_name): New semantics - malloc the result.
51306         Preserve // when it is special.  Preserve relative files that look
51307         like drive letters.
51308         (base_len): Preserve // when it is special.
51309         (last_component): New method, similar to old base_name semantics.
51310         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
51311         base_name.  Strip redundant slashes from ///.
51312
51313 2006-07-03  Jim Meyering  <jim@meyering.net>
51314
51315         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
51316         macro is used before the first cycle_check call.
51317
51318 2006-07-03  Eric Blake  <ebb9@byu.net>
51319
51320         * modules/dirname (Depends-on): Add xstrndup.
51321
51322 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
51323
51324         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
51325         test cases, so that config.log is a bit easier to follow.
51326
51327 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
51328
51329         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
51330         both are 64 bits, since this seems to be the tradition, and this
51331         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
51332         we ever run into a host that prefers long long to long in this
51333         case, we'll need another configure-time test.  Problem reported by
51334         Jim Meyering.
51335
51336 2006-07-02  Eric Blake  <ebb9@byu.net>
51337
51338         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
51339
51340 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
51341
51342         * modules/inttypes (Depends-on): No longer depends on stdint.
51343         * modules/stdint (Description): Say more about assumptions.
51344         Say that the fast types might differ.  Say macros are used.
51345         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
51346         (Makefile.am): Revise list of substituted symbols to match
51347         new stdint.m4.
51348         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
51349         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
51350         * tests/test-stdint.c (verify_same_types)
51351         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
51352         the code conforms to C99/C89.
51353         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
51354         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
51355
51356 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
51357
51358         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
51359         but fix a bug, by requiring at least 64 bits.
51360         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
51361         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
51362         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
51363         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
51364
51365         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
51366         changes.  Make 2.59 a prerequisite.  Check and substitute for
51367         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
51368         inttypes.h.  Do not use special include files; just use the
51369         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
51370         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
51371         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
51372         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
51373         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
51374         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
51375         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
51376         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
51377         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
51378         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
51379         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
51380         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
51381         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
51382         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
51383         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
51384         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
51385         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
51386         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
51387         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
51388         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
51389         WINT_MAX.  Check for C99 conformance more strictly, by detecting
51390         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
51391         not check for things that C99 does not require, e.g., int8_t.  If
51392         a test isn't needed unless <stdint.h> isn't working, and is
51393         unlikely to be needed for any other reason, then don't do it
51394         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
51395         size_t, since we assume C89 freestanding at least.  Do not check
51396         for sig_atomic_t, wchar_t, or wint_t, since the code now does
51397         the right thing even if the types are not defined.  Instead use:
51398         (gl_STDINT_TYPE_PROPERTIES): New macro.
51399         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
51400         testing whether <sys/types.h> clashes, as Autoconf does this for
51401         us now.  All uses removed.
51402         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
51403         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
51404         (gl_CHECK_TYPE_SAME):
51405         Remove; no longer needed.
51406         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
51407         exists, since we'll return 0 anyway in that case.
51408         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
51409
51410 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
51411
51412         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
51413         possible collision with system files.
51414         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
51415         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
51416         WCHAR_MIN and WCHAR_MAX in this case.
51417         (<stddef.h>): Do not include; no longer needed.
51418         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
51419         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
51420         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
51421         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
51422         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
51423         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
51424         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
51425         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
51426         !defined(__c99))]: Include in this case too, since it's harmless
51427         now.
51428         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
51429         dangerous to do so.
51430         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
51431         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
51432         (_STDINT_MIN, _STDINT_MAX): New macros.
51433         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
51434         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
51435         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
51436         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
51437         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
51438         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
51439         macros, not typedefs; this simplifies things quite a bit.
51440         Use long int for all types narrower than int64_t.
51441         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
51442         Define in terms of long long int or int64_t or long int,
51443         not int64_t or int32_t.  This saves some compile-time testing.
51444         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
51445         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
51446         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
51447         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
51448         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
51449         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
51450         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
51451         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
51452         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
51453         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
51454         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
51455         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
51456         undef any previous version and define our own version, for
51457         simplicity and consistency with the new macros for types.
51458         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
51459         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
51460         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
51461         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
51462         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
51463         @WINT_T_SUFFIX@ to keep things simple here.
51464         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
51465         Simplify by assuming typical 8/16/32/64 host, since we're
51466         already doing that elsewhere anyway.
51467         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
51468         and assume long long int is 64 bits if available.  This
51469         speeds up 'configure'.
51470
51471 2006-07-01  Eric Blake  <ebb9@byu.net>
51472
51473         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
51474         Reported by Andreas Buening.
51475
51476 2006-07-01  Eric Blake  <ebb9@byu.net>
51477
51478         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
51479
51480 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
51481
51482         * lib/getaddrinfo.c: fixed typo
51483
51484 2006-06-29  Jim Meyering  <jim@meyering.net>
51485
51486         * modules/strftime (Maintainer): Add my name, since with the
51487         FPRINTFTIME changes strftime.c has forked from glibc.
51488
51489 2006-06-29  Eric Blake  <ebb9@byu.net>
51490
51491         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
51492
51493 2006-06-29  Eric Blake  <ebb9@byu.net>
51494
51495         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
51496
51497 2006-06-29  Eric Blake  <ebb9@byu.net>
51498
51499         * lib/stat_.h: New file.
51500
51501 2006-06-29  Eric Blake  <ebb9@byu.net>
51502
51503         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
51504         unused static function.
51505
51506 2006-06-29  Eric Blake  <ebb9@byu.net>
51507
51508         * doc/functions.texi (Function Portability): Document missing lstat
51509         on mingw.
51510
51511 2006-06-29  Eric Blake  <ebb9@byu.net>
51512
51513         * MODULES.html.sh: Add sys_stat.
51514         * modules/sys_stat: New module.
51515         * modules/mkstemp (Depends-on): Add sys_stat.
51516
51517 2006-06-29  Derek R. Price  <derek@ximbiot.com>
51518
51519         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
51520
51521 2006-06-29  Derek R. Price  <derek@ximbiot.com>
51522
51523         * m4/c-bs-a.m4: Removed.
51524
51525 2006-06-29  Derek R. Price  <derek@ximbiot.com>
51526
51527         * lib/strftime.c: Assume strftime() exists.
51528
51529 2006-06-29  Derek Price  <derek@ximbiot.com>
51530
51531         * modules/c-bs-a: Removed - \a is C89.
51532         * MODULES.html.sh: Remove c-bs-a.
51533
51534 2006-06-29  Bruno Haible  <bruno@clisp.org>
51535
51536         * modules/wcwidth (License): Change to LGPL.
51537
51538 2006-06-28  Simon Josefsson  <jas@extundo.com>
51539
51540         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
51541         on _WIN32.
51542
51543         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
51544         getnameinfo.
51545
51546 2006-06-28  Simon Josefsson  <jas@extundo.com>
51547
51548         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
51549
51550 2006-06-28  Simon Josefsson  <jas@extundo.com>
51551
51552         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
51553         functions there.  It will succeed on Windows XP, but on Windows
51554         2000 and (presumably) earlier, it will fail, and use the internal
51555         re-implementation.
51556         (use_win32_p): New function.
51557         (getaddrinfo): Use strtoul on servname, to support numeric ports.
51558         Support AI_NUMERICSERV to disable getservbyname.
51559         (getnameinfo): New function, only supports
51560         NI_NUMERICHOST|NI_NUMERICSERV for now.
51561
51562         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
51563         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
51564         getnameinfo.
51565
51566 2006-06-28  Eric Blake  <ebb9@byu.net>
51567
51568         * modules/wcwidth: New file.
51569         * modules/mbchar (Depends-on): Add wcwidth.
51570         * modules/mbswidth (Depends-on): Add wcwidth.
51571         * MODULES.html.sh: Add wcwidth.
51572
51573 2006-06-28  Eric Blake  <ebb9@byu.net>
51574
51575         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
51576         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
51577
51578 2006-06-28  Eric Blake  <ebb9@byu.net>
51579
51580         * lib/xvasprintf.h: Fix comments.
51581
51582 2006-06-28  Eric Blake  <ebb9@byu.net>
51583
51584         * lib/mbchar.h (wcwidth): Include wcwidth.h.
51585         * lib/mbswidth.c (wcwidth): Move from here...
51586         * lib/wcwidth.h: ...to this new file.
51587
51588 2006-06-28  Derek R. Price  <derek@ximbiot.com>
51589
51590         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
51591
51592         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
51593         it's obsolete.
51594         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
51595
51596 2006-06-28  Derek R. Price  <derek@ximbiot.com>
51597
51598         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
51599         Autoconf 2.60 says this stuff was obsolete.
51600
51601 2006-06-28  Bruno Haible  <bruno@clisp.org>
51602
51603         * modules/wcwidth (Files): Add m4/wchar_t.m4.
51604
51605 2006-06-28  Bruno Haible  <bruno@clisp.org>
51606
51607         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
51608         gt_TYPE_WCHAR_T.
51609
51610 2006-06-28  Bruno Haible  <bruno@clisp.org>
51611
51612         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
51613         declaration for wcwidth.
51614         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
51615
51616 2006-06-28  Bruno Haible  <bruno@clisp.org>
51617
51618         * lib/mkdtemp.c [MINGW]: Include <io.h>.
51619         (mkdir): Define using _mkdir.
51620
51621 2006-06-28  Bruno Haible  <bruno@clisp.org>
51622
51623         * lib/getaddrinfo.h: Fix POSIX URL.
51624         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
51625         _WIN32.
51626         (use_win32_p): Make static.
51627         (getaddrinfo): Reject service name if it is empty or does not consist
51628         solely of decimal digits, or if its value is > 65535.
51629         (getnameinfo): Remove useless casts.
51630
51631 2006-06-27  Simon Josefsson  <jas@extundo.com>
51632
51633         * modules/sys_select: New file, suggested by Bruno Haible, Paul
51634         Eggert and Martin Lambers.
51635
51636 2006-06-27  Simon Josefsson  <jas@extundo.com>
51637
51638         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
51639         Eggert and Martin Lambers.
51640
51641 2006-06-27  Bruno Haible  <bruno@clisp.org>
51642
51643         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
51644         result to 0, not to empty.
51645         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
51646
51647 2006-06-27  Bruno Haible  <bruno@clisp.org>
51648
51649         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
51650
51651 2006-06-26  Simon Josefsson  <jas@extundo.com>
51652
51653         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
51654         present.
51655
51656 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
51657
51658         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
51659         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
51660         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
51661
51662 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
51663
51664         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
51665
51666 2006-06-26  Bruno Haible  <bruno@clisp.org>
51667
51668         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
51669
51670 2006-06-26  Bruno Haible  <bruno@clisp.org>
51671
51672         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
51673
51674 2006-06-26  Bruno Haible  <bruno@clisp.org>
51675
51676         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
51677         SGI C compiler in pre-C99 mode.
51678         Suggested by Mark D. Baushke and Larry Jones.
51679
51680 2006-06-26  Bruno Haible  <bruno@clisp.org>
51681
51682         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
51683         WCHAR_MAX.
51684         Reported by Mark D. Baushke and Larry Jones.
51685
51686 2006-06-26  Bruno Haible  <bruno@clisp.org>
51687
51688         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
51689         in pre-C99 mode.
51690         Suggested by Mark D. Baushke and Larry Jones.
51691
51692 2006-06-23  Simon Josefsson  <jas@extundo.com>
51693             Bruno Haible  <bruno@clisp.org>
51694
51695         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
51696         Emit mostlyclean-local rule.
51697         (func_emit_tests_Makefile_am): Likewise.
51698         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
51699
51700 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
51701
51702         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
51703
51704 2006-06-23  Bruno Haible  <bruno@clisp.org>
51705
51706         * tests/test-stdint.c: Update to match ISO C 99 Technical
51707         Corrigendum 1.
51708
51709 2006-06-23  Bruno Haible  <bruno@clisp.org>
51710
51711         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
51712
51713 2006-06-23  Bruno Haible  <bruno@clisp.org>
51714
51715         * lib/stdint_.h: Treat IRIX like OpenBSD.
51716
51717 2006-06-23  Bruno Haible  <bruno@clisp.org>
51718
51719         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
51720         ISO C 99 Technical Corrigendum 1.
51721
51722 2006-06-22  Simon Josefsson  <jas@extundo.com>
51723
51724         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
51725         MinGW.
51726
51727 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51728
51729         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
51730         needed.  Some compiler complained about some of them.  Problem reported
51731         by Larry Jones in
51732         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
51733
51734 2006-06-21  Simon Josefsson  <jas@extundo.com>
51735
51736         * tests/test-getaddrinfo.c: New file.
51737
51738         * modules/getaddrinfo-tests: New file.
51739
51740         * MODULES.html.sh: Add inet_pton.
51741
51742         * modules/inet_pton: New file.
51743
51744 2006-06-21  Simon Josefsson  <jas@extundo.com>
51745
51746         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
51747         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
51748         of using the (limited) gnulib implementation on Windows XP.
51749
51750         * m4/inet_pton.m4: New file.
51751
51752 2006-06-21  Simon Josefsson  <jas@extundo.com>
51753
51754         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
51755         variable.
51756
51757         * lib/socket_.h: Don't define WINVER.
51758
51759         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
51760         slightly modified to work in gnulib.
51761
51762 2006-06-21  Simon Josefsson  <jas@extundo.com>
51763
51764         * doc/gnulib.texi (Windows sockets): Add.
51765
51766 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
51767
51768         * lib/read-file.c (fread_file): Start with buffer allocation of
51769         0 bytes rather than 1 byte; this simplifies the code.
51770         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
51771         code to free buffer and save/restore errno.
51772         (internal_read_file): Remove unused local.
51773
51774 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
51775
51776         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
51777         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
51778         Problem reported by Denis Excoffier in
51779         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
51780
51781 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51782
51783         * modules/sys_socket, modules/socklen: Include sys/types since
51784         FreeBSD 4.x's sys/socket.h needs it.
51785
51786 2006-06-19  Simon Josefsson  <jas@extundo.com>
51787
51788         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
51789
51790 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
51791
51792         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
51793
51794 2006-06-19  Bruno Haible  <bruno@clisp.org>
51795
51796         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
51797         and FULL_PATH_INTTYPES_H in angle brackets.
51798         Reported by Mark D. Baushke <mdb@gnu.org>.
51799
51800 2006-06-17  Eric Blake  <ebb9@byu.net>
51801
51802         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
51803         errno.
51804
51805 2006-06-17  Bruno Haible  <bruno@clisp.org>
51806
51807         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
51808         <sys/inttypes.h>.
51809
51810 2006-06-17  Bruno Haible  <bruno@clisp.org>
51811
51812         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
51813         whether errno is declared. Assume <errno.h> declares errno.
51814
51815 2006-06-17  Bruno Haible  <bruno@clisp.org>
51816
51817         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
51818
51819 2006-06-17  Bruno Haible  <bruno@clisp.org>
51820
51821         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
51822         problem on Solaris 2.5.1.
51823
51824 2006-06-16  Eric Blake  <ebb9@byu.net>
51825
51826         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
51827         * lib/unicodeio.c [!defined errno]: Likewise.
51828         * lib/strtol.c [!defined errno]: Likewise.
51829         * lib/strtod.c [!defined errno]: Likewise.
51830
51831 2006-06-15  Eric Blake  <ebb9@byu.net>
51832
51833         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
51834
51835 2006-06-15  Eric Blake  <ebb9@byu.net>
51836
51837         * config/srclist.txt (ssize_t.m4): Lose sync.
51838
51839 2006-06-15  Bruno Haible  <bruno@clisp.org>
51840
51841         * modules/stdint (Files): Include m4/full-header-path.m4,
51842         m4/size_max.m4, m4/wchar_t.m4.
51843         (Makefile.am): Many more substitutions.
51844         * modules/stdint-tests: New file.
51845         * tests/test-stdint.c: New file.
51846
51847 2006-06-15  Bruno Haible  <bruno@clisp.org>
51848
51849         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
51850         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
51851         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
51852         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
51853         gl_CHECK_TYPE_SAME): New macros.
51854
51855 2006-06-15  Bruno Haible  <bruno@clisp.org>
51856
51857         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
51858
51859 2006-06-15  Bruno Haible  <bruno@clisp.org>
51860
51861         * lib/stdint_.h: Rewritten to be fully auto-configured.
51862         Fixes bug on HP-UX/IA64.
51863
51864 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
51865
51866         * lib/getdate.y (__attribute__): Don't define if already defined.
51867         Problem reported by Larry Jones.
51868         * lib/utimens.c (__attribute__): Likewise.
51869
51870 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
51871
51872         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
51873         reported by Andreas Schwab.
51874
51875 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51876             Bruno Haible  <bruno@clisp.org>
51877
51878         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
51879         check for the declaration of strnlen and a run test that exposes the
51880         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
51881         rpl_strndup.
51882
51883 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51884             Bruno Haible  <bruno@clisp.org>
51885
51886         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
51887
51888 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51889
51890         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
51891         compile test, for Tru64 4.0D.
51892
51893 2006-05-28  Karl Berry  <karl@gnu.org>
51894
51895         * config/srclist.txt (printf-args.c): lose sync.
51896
51897 2006-05-26  Martin Lambers  <marlam@marlam.de>
51898
51899         * lib/getpass.c: Updates the test for the native W32 API, and adds
51900         missing includes, thus fixing compilation warnings.
51901
51902 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
51903
51904         * lib/exclude.c (exclude_fnmatch): New function.
51905         (excluded_file_name): Call exclude_fnmatch.
51906         * lib/exclude.h (excluded_file_name): New prototype
51907
51908 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
51909
51910         * lib/tempname.c (small_open, large_open): New macros.
51911         (__open, __open64) [!_LIBC]: Remove.
51912         (__gen_tempname): Use small_open and large_open instead of __open
51913         and __open64.  This fixes a portability bug on HP-UX 11.11i
51914         reported by Simon Wing-Tang in
51915         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
51916
51917 2006-05-24  Bruno Haible  <bruno@clisp.org>
51918
51919         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
51920         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
51921         Reported by Thorsten Maerz <torte@netztorte.de> via
51922         Aaron Stone <aaron@serendipity.cx>.
51923
51924 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
51925
51926         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
51927         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
51928         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
51929         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
51930         not really conditional on the cache.
51931         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
51932
51933 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
51934
51935         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
51936         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
51937         (my_usleep): Don't mishandle maximum value.
51938
51939 2006-05-19  Jim Meyering  <jim@meyering.net>
51940
51941         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
51942
51943 2006-05-17  Bruno Haible  <bruno@clisp.org>
51944
51945         Cygwin portability.
51946         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
51947
51948 2006-05-17  Bruno Haible  <bruno@clisp.org>
51949
51950         * lib/stdint_.h: Fix recognition of Cygwin.
51951
51952 2006-05-15  Bruno Haible  <bruno@clisp.org>
51953
51954         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
51955         on libtool patch by Ralf Wildenhues.
51956
51957 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
51958
51959         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
51960         test for C99 conformance; (bool) 0.5 is an integer constant
51961         expression, but (bool) -0.5 is not.  Problem reported by Fedor
51962         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
51963
51964 2006-05-11  Simon Josefsson  <jas@extundo.com>
51965
51966         * m4/xvasprintf.m4: Fix obvious typo.
51967
51968 2006-05-11  Jim Meyering  <jim@meyering.net>
51969
51970         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
51971         James Lemley.
51972
51973 2006-05-10  Simon Josefsson  <jas@extundo.com>
51974
51975         * lib/md4.c: Typo fix, update copyright years.
51976         (K1, K2): Don't use L because it turn computations into 64-bit on
51977         64-bit platforms.
51978
51979 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
51980
51981         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
51982         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
51983         unwanted sign propagation, e.g., on hosts with 64-bit int.
51984         There still are some problems with reeelly weird theoretical hosts
51985         (e.g., 33-bit int) but it's not worth worrying about now.
51986         * lib/sha1.c (rol): Likewise.
51987         (K1, K2, K3, K4): Remove unnecessary L suffix.
51988
51989 2006-05-10  Bruno Haible  <bruno@clisp.org>
51990
51991         * lib/des.c: Cast to avoid warnings.
51992
51993 2006-05-09  Bruno Haible  <bruno@clisp.org>
51994
51995         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
51996         (Depends-on): Depend also on xsize, stdarg.
51997         (configure.ac): Add gl_XVASPRINTF.
51998
51999 2006-05-09  Bruno Haible  <bruno@clisp.org>
52000
52001         * m4/xvasprintf.m4: New file.
52002
52003 2006-05-09  Bruno Haible  <bruno@clisp.org>
52004
52005         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
52006         (EOVERFLOW): Define fallback value.
52007         (xstrcat): New function.
52008         (xvasprintf): Recognize the special case of a string concatenation.
52009
52010 2006-05-08  Eric Blake  <ebb9@byu.net>
52011
52012         * gnulib-tool (func_version): Base copyright year on CVS date.
52013         (func_emit_copyright_notice): New function.
52014         (func_emit_lib_Makefile_am): Use it.
52015         (func_emit_tests_Makefile_am): Likewise.
52016         (func_import): Likewise.
52017
52018 2006-05-08  Bruno Haible  <bruno@clisp.org>
52019
52020         * modules/stdarg: New file.
52021         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
52022
52023 2006-05-08  Bruno Haible  <bruno@clisp.org>
52024
52025         * m4/stdarg.m4: New file, from GNU gettext.
52026
52027 2006-05-08  Bruno Haible  <bruno@clisp.org>
52028
52029         * config/srclist.txt (build-aux/config.rpath): different from latest
52030         release.
52031
52032 2006-05-08  Bruno Haible  <bruno@clisp.org>
52033
52034         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
52035
52036 2006-05-05  Jim Meyering  <jim@meyering.net>
52037
52038         * m4/warning.m4: New file, derived from bison's file by the same name.
52039
52040 2006-05-03  Bruno Haible  <bruno@clisp.org>
52041
52042         * lib/stdint_.h: Shorter URL.
52043         * lib/inttypes.h: Likewise.
52044
52045 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
52046
52047         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
52048
52049 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
52050
52051         * lib/verify.h: Document the internals better.  Most of this change
52052         was written by Bruno Haible.
52053
52054 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
52055
52056         * doc/verify.texi: New file, partly based on a proposal by
52057         Bruno Haible.
52058
52059 2006-05-02  Bruno Haible  <bruno@clisp.org>
52060
52061         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
52062         test from here...
52063         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
52064
52065 2006-04-29  Bruno Haible  <bruno@clisp.org>
52066
52067         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
52068         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
52069
52070 2006-04-29  Bruno Haible  <bruno@clisp.org>
52071
52072         * gnulib-tool: Make --update option actually work.
52073
52074 2006-04-29  Bruno Haible  <bruno@clisp.org>
52075
52076         * doc/gcd.texi: New file.
52077         * doc/gnulib.texi: Include it.
52078
52079 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
52080
52081         * lib/getdate.y (get_date): When adding relative date, start with the
52082         initial time, not with the result of the first mktime call.
52083
52084 2006-04-25  Bruno Haible  <bruno@clisp.org>
52085
52086         * gnulib-tool (func_import): Output the include directives in three
52087         blocks, sorted separately.
52088         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52089
52090 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
52091
52092         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
52093         to define main with arguments, for C++.  Reported by Eric Blake.
52094         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
52095         Prefer 'int main ()' to 'int main (void)', for C++.
52096         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
52097         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
52098         for 'main', for C99 and C++.
52099
52100 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
52101
52102         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
52103         Don't assume that exit status -1 is valid.
52104         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
52105         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
52106         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
52107         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
52108         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
52109         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
52110         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
52111         functions can be used without declaring them, or that you can
52112         exit with status -1.
52113         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
52114
52115 2006-04-24  Karl Berry  <karl@gnu.org>
52116
52117         * config/srclist.txt (longdouble.m4): sync lost.
52118
52119 2006-04-24  Eric Blake  <ebb9@byu.net>
52120
52121         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
52122
52123 2006-04-24  Bruno Haible  <bruno@clisp.org>
52124
52125         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
52126         poll() implementation in AIX.
52127         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52128
52129 2006-04-24  Bruno Haible  <bruno@clisp.org>
52130
52131         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
52132         assigned exactly once.
52133
52134 2006-04-23  Claudio Fontana  <claudio@gnu.org>
52135             Bruno Haible  <bruno@clisp.org>
52136
52137         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
52138         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
52139         for AM_CPPFLAGS.
52140
52141 2006-04-23  Bruno Haible  <bruno@clisp.org>
52142
52143         * modules/copy-file: Depend on unistd.
52144         * modules/execute: Likewise.
52145         * modules/fatal-signal: Likewise.
52146         * modules/findprog: Likewise.
52147         * modules/mkdtemp : Likewise.
52148         * modules/pipe: Likewise.
52149         * modules/wait-process: Likewise.
52150
52151 2006-04-23  Bruno Haible  <bruno@clisp.org>
52152
52153         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
52154         condition was already detected.
52155         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52156
52157 2006-04-23  Bruno Haible  <bruno@clisp.org>
52158
52159         * lib/copy-file.c: Include <unistd.h> unconditionally.
52160         * lib/execute.c: Likewise.
52161         * lib/fatal-signal.c: Likewise.
52162         * lib/findprog.c: Likewise.
52163         * lib/mkdtemp.c: Likewise.
52164         * lib/pipe.h: Likewise.
52165         * lib/pipe.c: Likewise.
52166         * lib/wait-process.h: Likewise.
52167
52168 2006-04-23  Bruno Haible  <bruno@clisp.org>
52169
52170         * gnulib-tool (func_usage): Fix --import description. Document
52171         --update.
52172         (func_import): Create temporary file in a temporary directory, if
52173         --dry-run is specified. Silence errors from 'grep' when there are no
52174         m4 files in $m4dir.
52175         (func_create_testdir): Silence errors from 'grep' when there are no
52176         m4 files in $m4dir.
52177         Reported by Karl Berry <karl@freefriends.org>.
52178
52179 2006-04-20  Bruno Haible  <bruno@clisp.org>
52180
52181         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
52182         one argument, so that the code will be portable to Autoconf 2.60.
52183         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
52184         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
52185         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
52186
52187 2006-04-19  Derek Price  <derek@ximbiot.com>
52188             Eric Blake  <ebb9@byu.net>
52189
52190         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
52191         rather than "/full/path.h".  Update comment to match.  Shorten &
52192         generalize m4_translit call via AS_TR_CPP.
52193
52194 2006-04-19  Derek Price  <derek@ximbiot.com>
52195             Eric Blake  <ebb9@byu.net>
52196
52197         * lib/inttypes.h: Correct grammar in comment.
52198
52199 2006-04-18  Derek Price  <derek@ximbiot.com>
52200             Paul Eggert  <eggert@cs.ucla.edu>
52201
52202         * modules/inttypes: New file.
52203         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
52204
52205 2006-04-18  Derek Price  <derek@ximbiot.com>
52206             Paul Eggert  <eggert@cs.ucla.edu>
52207
52208         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
52209         New files.
52210
52211 2006-04-18  Derek Price  <derek@ximbiot.com>
52212             Paul Eggert  <eggert@cs.ucla.edu>
52213
52214         * lib/inttypes.h: New file.
52215         * lib/strtoimax.c: Assume <inttypes.h>.
52216
52217 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
52218
52219         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
52220         isn't mounted.  Problem reported by Kir Kolyshkin.
52221
52222 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
52223
52224         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
52225         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
52226         Derek R. Price.
52227         * lib/regex.h (RE_DUP_MAX): Update comment to match current
52228         implementation.
52229
52230 2006-04-12  Eric Blake  <ebb9@byu.net>
52231
52232         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
52233         is now done automatically by the corresponding Autoconf macro.
52234
52235 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
52236
52237         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
52238         time_r.h.
52239
52240 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52241
52242         Merge regex changes from libc, removing some of our
52243         POSIX-conformance changes that were rejected and redoing them in a
52244         less-intrusive way.
52245
52246         * lib/regcomp.c (re_compile_internal, init_dfa):
52247         Length arg is now size_t, not Idx.  All uses changed.
52248         (peek_token): Forward decl now says internal_function.
52249         (__re_error_msgid, __re_error_msgid_idx):
52250         Now static rather than extern with attribute_hidden.
52251         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
52252         For some reason libc prefers K&R style defns for external functions.
52253         (regerror) [!defined _LIBC]: Likewise.
52254         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
52255         (seek_collating_symbol_entry, lookup_collation_sequence_value):
52256         (build_range_exp, build_collating_symbol):
52257         Use K&R-style defn.
52258         (re_compile_fastmap): Use '\0' to memset, not 0.
52259         (utf8_sb_map): Make the calculations more obvious.
52260         (init_dfa, parse_bracket_exp, build_charclass_op):
52261         Call calloc and cast result, as glibc does.
52262         (init_word_char, fetch_token, peek_token, peek_token_bracket):
52263         (build_range_exp, build_collating_symbol):
52264         Now internal functions.
52265
52266         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
52267
52268         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
52269         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
52270         Don't depend on VMS; depend on __VMS instead, for POSIX
52271         namespace cleanness.
52272         (regoff_t): Define to ssize_t, not long int.
52273
52274         Remove the REG_ macros named below.  Instead, make the old names
52275         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
52276         __USE_GNU_REGEX.
52277         (REG_BACKSLASH_ESCAPE_IN_LISTS):
52278         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
52279         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
52280         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
52281         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
52282         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
52283         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
52284         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
52285         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
52286         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
52287         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
52288         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
52289         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
52290         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
52291         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
52292         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
52293         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
52294         (REG_NREGS):
52295         Remove.  All uses replaced by the old RE_* names.
52296         (RE_BACKSLASH_ESCAPE_IN_LISTS):
52297         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
52298         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
52299         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
52300         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
52301         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
52302         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
52303         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
52304         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
52305         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
52306         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
52307         Don't bother having these macros be independent of each others'
52308         values, since they no longer exist in the POSIX name space.
52309
52310         Rename the following member names back to their old names,
52311         unless !__USE_GNU_REGEX.  All uses changed back.
52312         (buffer): Renamed from re_buffer.
52313         (allocated): Renamed from re_allocated.
52314         (used): Renamed from re_used.
52315         (syntax): Renamed from re_syntax.
52316         (fastmap): Renamed from re_fastmap.
52317         (translate): Renamed from re_translate.
52318         (can_be_null): Renamed from re_can_be_null.
52319         (regs_allocated): Renamed from re_regs_allocated.
52320         (fastmap_accurate): Renamed from re_fastmap_accurate.
52321         (no_sub): Renamed from re_no_sub.
52322         (not_bol): Renamed from re_not_bol.
52323         (not_eol): Renamed from re_not_eol.
52324         (newline_anchor): Renamed from re_newline_anchor.
52325         (num_regs): Renamed from rm_num_regs.
52326         (start): Renamed from rm_start.
52327         (end): Renamed from rm_end.
52328
52329         (free_state): Move up a bit.
52330
52331         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
52332         #define to be empty.
52333         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
52334         when that is what is intended.
52335         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
52336         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
52337         (MAX): New macro.
52338         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
52339         All uses changed back to re_malloc, etc.  It's now the caller's
52340         responsibility to check for overflow; all callers changed.
52341         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
52342         (re_x2nrealloc): Remove.
52343         (free_state): Remove decl.
52344
52345         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
52346         (re_set_registers, re_exec):
52347         Use K&R-style defn.
52348
52349         2006-01-31  Roland McGrath  <roland@redhat.com>
52350
52351         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
52352         Reported by Mike Frysinger <vapier@gentoo.org>.
52353
52354         2006-01-15  Andreas Jaeger  <aj@suse.de>
52355
52356         [BZ #1950]
52357         * lib/regex_internal.c (re_string_reconstruct): Adjust for
52358         build_wcs_upper_buffer change.
52359         (build_wcs_upper_buffer): Change return type.
52360
52361         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
52362
52363         * lib/regex_internal.h: Include <stdint.h> if available.
52364
52365         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
52366
52367         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
52368
52369         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
52370
52371         * lib/regcomp.c: Adjust for changed secondary hash function.
52372
52373         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
52374
52375         * lib/regex.h: Pretty printing.
52376         Clean up namespace a bit.
52377
52378         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
52379
52380         * lib/regexec.c (update_cur_sifted_state, check_arrival,
52381         check_arrival_add_next_nodes): Avoid using uninitialized variable.
52382
52383         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
52384                     Ulrich Drepper  <drepper@redhat.com>
52385
52386         [BZ #1302]
52387         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
52388         changed.
52389         (bitset_word_t): Renamed from bitset_word.  All uses changed.
52390
52391         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
52392
52393         [BZ #281]
52394         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
52395         * lib/regcomp.c: Remove unnecessary uses of
52396         unsigned RE_TRANSLATE_TYPE.
52397         * lib/regex_internal.h: Likewise.
52398         * lib/regex_internal.c: Likewise.
52399         * lib/regexec.c: Likewise.
52400         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
52401
52402         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
52403
52404         * lib/regexec.c (find_recover_state): Remove unnecessary
52405         initialization.
52406         (transit_state_bkref): Make DFA a const pointer.
52407         (get_subexp): Likewise.
52408         (check_arrival): Likewise.
52409         (update_cur_sifted_state): Likewise.
52410         (re_search_internal): Likewise.
52411         (prune_impossible_nodes): Likewise.
52412         (acquire_init_state_context): Likewise.
52413         (proceed_next_node): Likewise.
52414         (set_regs): Likewise.
52415         (free_fail_stack_return): Likewise.
52416         (check_arrival_expand_ecl): Mark DFA parameter as const.
52417         (check_arrival_expand_ecl_sub): Likewise.
52418         (check_subexp_limits): Likewise.
52419         (sub_epsilon_src_nodes):  Likewise.
52420         (add_epsilon_src_nodes):  Likewise.
52421         (merge_state_array): Likewise.
52422         (update_regs): Likewise.
52423         (build_trtable): Likewise.
52424         (sift_states_backward): Mark MCTX parameter as const.
52425         (build_sifted_states): Likewise.
52426         (update_cur_sifted_state): Likewise.
52427         (sift_states_mkref): Likewise.
52428         (check_arrival_expand_ecl): Mark eclosure as const.
52429         (check_dst_limits_calc_pos_1): Likewise.
52430         * lib/regex_internal.h (re_match_context_t): Make dfa a const
52431         pointer.
52432
52433         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
52434
52435         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
52436         (transit_state_sb): Likewise.
52437         (transit_state_mb): Likewise.
52438         (sift_states_iter_mb): Likewise.
52439         (check_arrival_add_next_nodes): Likewise.
52440         (check_node_accept_bytes): Change first parameter to pointer-to-const.
52441         [_LIBC] (re_search_2_stub): Use mempcpy.
52442
52443         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
52444         mbrtowc for very simple UTF-8 case.
52445
52446         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
52447         a pointer-to-const.
52448         (re_acquire_state_context): Likewise.
52449         * lib/regex_internal.h: Adjust prototypes.
52450
52451         * lib/regex.c: Prevent using C++ compilers.
52452
52453         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
52454         (re_acquire_state_context): Likewise.
52455
52456 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52457
52458         * modules/regex (Depends-on): Add ssize_t.
52459
52460 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52461
52462         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
52463         translation table.
52464
52465 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52466
52467         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
52468
52469 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
52470             Bruno Haible  <bruno@clisp.org>
52471
52472         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
52473         <sys/types.h> and <inttypes.h>.
52474
52475 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52476
52477         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
52478         `__error_t_defined', so argp.h will not typedef the former.
52479
52480 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
52481
52482         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
52483         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
52484         glibc names.  Even if glibc is changed to conform to POSIX, the
52485         traditional names will be available anyway, since regex depends on
52486         the extensions module.  Also, fix a longstanding typo in the
52487         implementation of Spencer ERE test #75 from grep 2.3.  Problems
52488         reported by Emanuele Giaquinta.  Also, change sense of cached
52489         variable, so that the message makes sense.
52490
52491 2006-03-24  Simon Josefsson  <jas@extundo.com>
52492
52493         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
52494         including some doc fixes.
52495         (base64_encode_alloc): Fix +1 bug on allocation failures.
52496
52497 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52498
52499         * lib/base64.c (base64_encode): Do not read past end of array with
52500         unsanitized input on systems with CHAR_BIT > 8.
52501
52502 2006-03-24  Eric Blake  <ebb9@byu.net>
52503
52504         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
52505
52506 2006-03-22  Karl Berry  <karl@gnu.org>
52507
52508         * config/srclist.txt (*setenv.[ch]): get from coreutils.
52509         * config/srclistvars.sh (COREUTILS): new var.
52510
52511 2006-03-17  Jim Meyering  <jim@meyering.net>
52512
52513         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
52514         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
52515
52516 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
52517
52518         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
52519         no longer needs it.  Instead, check that regoff_t is as least
52520         as wide as ptrdiff_t.
52521
52522         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
52523         so that our regex.h stays compatible with the installed regex.
52524         This is helpful for installers who configure --without-included-regex.
52525         Problem reported by Emanuele Giaquinta.
52526
52527 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
52528
52529         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
52530         Typedef to long int, not to off_, as POSIX will likely change
52531         in that direction.
52532
52533 2006-03-15  Eric Blake  <ebb9@byu.net>
52534
52535         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
52536
52537 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
52538
52539         * lib/argp-help.c (validate_uparams): Fix typo
52540         * lib/argp-parse.c (argp_default_options): Consistently begin help
52541         messages with a lowercase letter.
52542
52543 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
52544
52545         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
52546         overrun buffers and shouldn't be used (much as gets shouldn't be
52547         used).
52548         * lib/time_r.c (asctime_r, ctime_r): Likewise.
52549
52550 2006-03-08  Simon Josefsson  <jas@extundo.com>
52551
52552         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
52553         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52554
52555 2006-03-08  Simon Josefsson  <jas@extundo.com>
52556
52557         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
52558         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52559
52560 2006-03-08  Simon Josefsson  <jas@extundo.com>
52561
52562         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
52563         signal that configure disabled the device.
52564
52565 2006-03-08  Simon Josefsson  <jas@extundo.com>
52566
52567         * build-aux/maint.mk: Fix refresh-po, to handle no translated
52568         languages.
52569
52570 2006-03-07  Simon Josefsson  <jas@extundo.com>
52571
52572         * modules/getopt (Depends-on): Add unistd.
52573
52574         * modules/unistd: New file.
52575
52576 2006-03-07  Simon Josefsson  <jas@extundo.com>
52577
52578         * modules/gc-random: New file.
52579
52580 2006-03-07  Simon Josefsson  <jas@extundo.com>
52581
52582         * m4/unistd_h.m4: New file.
52583
52584 2006-03-07  Simon Josefsson  <jas@extundo.com>
52585
52586         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
52587         test to be side-effect free by storing the result in the cache
52588         variable gl_cv_lib_readline, and moving the assignment of
52589         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
52590         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52591
52592 2006-03-07  Simon Josefsson  <jas@extundo.com>
52593
52594         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
52595         error on missing devices (the functions will return an error).
52596
52597         * m4/gc.m4: Move random stuff to gc-random.m4
52598
52599 2006-03-07  Simon Josefsson  <jas@extundo.com>
52600
52601         * lib/unistd_.h: New file.
52602
52603 2006-03-07  Simon Josefsson  <jas@extundo.com>
52604
52605         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
52606
52607 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
52608
52609         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
52610         Problem reported by Juan Manuel Guerrero.
52611
52612 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
52613
52614         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
52615         the unistd module.
52616         * lib/getlogin_r.c: Likewise.
52617         * lib/getlogin_r.h: Likewise.
52618         * lib/glob.c: Likewise.
52619         * lib/pagealign_alloc.c: Likewise.
52620         * lib/unistd_.h: Remove; no longer needed.
52621
52622 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
52623
52624         * MODULES.html.sh (Support for systems lacking POSIX:2001):
52625         Add unistd.
52626         * modules/c-stack (Depends-on): Add unistd.
52627         * modules/getlogin_r: Likewise.
52628         * modules/glob: Likewise.
52629         * modules/pagealign_alloc: Likewise.
52630         * modules/unistd (Files): Remove lib/unistd_.h.
52631         (EXTRA_DIST): Remove.
52632         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
52633         need unistd_.h.
52634         (MOSTLYCLEANFILES): Remove unistd.h-t.
52635
52636 2006-03-03  Simon Josefsson  <jas@extundo.com>
52637
52638         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
52639
52640 2006-03-03  Simon Josefsson  <jas@extundo.com>
52641
52642         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
52643         libidn and bison.
52644
52645 2006-03-03  Simon Josefsson  <jas@extundo.com>
52646
52647         * build-aux/maint.mk: Add indent target.
52648
52649 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
52650
52651         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
52652         our replacement poll.h in any case, to avoid a differing
52653         declaration from a system header.  Seen on AIX.
52654
52655 2006-03-01  Simon Josefsson  <jas@extundo.com>
52656
52657         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
52658         <kasal@ucw.cz>.
52659
52660 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52661
52662         * modules/gettime (Depends-on): Add extensions module.
52663         * modules/nanosleep (Depends-on): Likewise.
52664         * modules/settime (Depends-on): Likewise.
52665
52666 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52667
52668         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
52669         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
52670         pedantically.
52671         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
52672         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
52673
52674         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
52675         not "==".  Reported by Ralf Wildenhues.
52676
52677 2006-03-01  Karl Berry  <karl@gnu.org>
52678
52679         * doc/Copyright/request-*: new files, synced from gnuorg.
52680
52681 2006-03-01  Karl Berry  <karl@gnu.org>
52682
52683         * config/srclist.txt (Copyright/*): new entries.
52684
52685 2006-02-28  Simon Josefsson  <jas@extundo.com>
52686
52687         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
52688
52689 2006-02-27  Simon Josefsson  <jas@extundo.com>
52690
52691         * lib/base64.h: Indent #define's.  From Jim Meyering
52692         <jim@meyering.net>.
52693
52694 2006-02-27  Jim Meyering  <jim@meyering.net>
52695
52696         Revert the change of 2006-02-24, so these files can continue
52697         to be sync'd from gettext.
52698         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
52699         of `config.h'.
52700
52701 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
52702
52703         * modules/intprops: New file.
52704         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
52705         Add intprops.
52706         * modules/getloadavg (Files): Remove lib/intprops.h.
52707         (Depends-on): Add intprops.
52708         * modules/human: Likewise.
52709         * modules/inttostr: Likewise.
52710         * modules/openat: Likewise.
52711         * modules/sig2str: Likewise.
52712         * modules/userspec: Likewise.
52713         * modules/utimecmp: Likewise.
52714         * modules/xnanosleep: Likewise.
52715         * modules/xstrtol: Likewise.
52716
52717 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
52718
52719         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
52720         * modules/lock-tests (TESTS): Use $(EXEEXT).
52721         * modules/tls-tests: Likewise.
52722         * modules/argp-tests: Likewise.
52723         (check_PROGRAMS): New var, replacing...
52724         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
52725
52726 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52727
52728         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
52729         `config.h'.
52730
52731 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
52732
52733         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
52734
52735 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52736
52737         Sync from coreutils.
52738         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
52739         gl_CHDIR_SAFER.
52740
52741 2006-02-22  Jim Meyering  <jim@meyering.net>
52742
52743         Sync from coreutils.
52744         * m4/chdir-safer.m4: New file.
52745
52746 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
52747
52748         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
52749         AT_FDCWD exceeds INT_MAX.
52750         * lib/openat.h (AT_FDCWD): Likewise.
52751
52752 2006-02-17  Eric Blake  <address@hidden>
52753
52754         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
52755
52756 2006-02-16  Simon Josefsson  <jas@extundo.com>
52757
52758         * modules/getaddrinfo (Depends-on): Add sys_socket.
52759
52760 2006-02-15  Simon Josefsson  <jas@extundo.com>
52761
52762         * build-aux/maint.mk: Add dsyntax-check rule.
52763
52764 2006-02-15  Eric Blake  <ebb9@byu.net>
52765
52766         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
52767         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
52768         'present but cannot compile' warnings on cygwin.
52769         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
52770         use ws2tcpip.h if sys/socket.h works.
52771         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
52772         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
52773
52774 2006-02-14  Simon Josefsson  <jas@extundo.com>
52775
52776         * modules/maintainer-makefile (Files): Rename.
52777
52778         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
52779         and (the local) Makefile.cfg to maint-cfg.mk.
52780
52781         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
52782         to the latter.
52783
52784         * modules/maintainer-makefile: New module.
52785
52786         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
52787         severaly stripped to make it possible to build it up from scratch
52788         with reliable tests.
52789
52790         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
52791         fixes to permit overriding the default actions when configure and
52792         makefile are not available.
52793
52794 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
52795
52796         Sync from coreutils.
52797         * modules/lstat (Depends-on): Don't depend on xalloc.
52798         (License): Change from GPL to LGPL, since this is now simply a
52799         replacement for a libc function.
52800
52801 2006-02-14  Jim Meyering  <jim@meyering.net>
52802
52803         Sync from coreutils.
52804
52805         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
52806         failure on deficient systems, and simplify gnulib lgpl dependencies.
52807         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
52808         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
52809
52810         * lib/xalloc-die.c: Remove unused definition of N_.
52811
52812 2006-02-14  Jim Meyering  <jim@meyering.net>
52813
52814         Sync from coreutils.
52815         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
52816         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
52817         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
52818         double-quote uses of that variable, to accommodate the rare case in
52819         which getmntent is available in none of the libraries checked.  This
52820         happens at least on FreeBSD 5.0.
52821
52822 2006-02-13  Simon Josefsson  <jas@extundo.com>
52823
52824         * gnulib-tool (Usage): Fix --import, from
52825         karl@freefriends.org (Karl Berry).
52826
52827 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
52828
52829         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
52830
52831 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
52832
52833         * lib/argp-namefrob.h: Restore changes accidentally lost during the
52834         "autoupdate" on 2005-12-12.
52835
52836 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
52837
52838         * modules/closeout (Depends-on): Remove atexit.
52839
52840 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
52841
52842         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
52843         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
52844
52845 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
52846
52847         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
52848         __EXTENSIONS__ if this causes compilation to fail.  Problem
52849         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
52850         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
52851
52852 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
52853
52854         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
52855         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
52856         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
52857         All uses changed.
52858
52859 2006-01-26  Simon Josefsson  <jas@extundo.com>
52860
52861         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
52862         prototype is visible on mingw32.
52863
52864         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
52865         for mingw32.
52866
52867         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
52868         mingw32).
52869
52870 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
52871
52872         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
52873         attempt to open for write; this always fails, at least on POSIX
52874         hosts.  This reinstates the 2006-01-09 change, which was
52875         inadvertently removed.
52876
52877 2006-01-26  Bruno Haible  <bruno@clisp.org>
52878
52879         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
52880         Reported by Paul Eggert.
52881
52882 2006-01-26  Bruno Haible  <bruno@clisp.org>
52883             Paul Eggert  <eggert@cs.ucla.edu>
52884
52885         * lib/stdbool_.h (_Bool)
52886         [(! (defined __cplusplus || defined __BEOS__)
52887           && !defined __GNUC__
52888           && !(defined __HP_cc || defined __xlc__
52889                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
52890                || defined __sgi))]:
52891         #define to signed char in these cases too; this simplifies
52892         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
52893         etc., separately) and makes it more conservative.
52894
52895 2006-01-25  Simon Josefsson  <jas@extundo.com>
52896
52897         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
52898         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
52899         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
52900
52901 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
52902
52903         * lib/argp-namefrob.h: Bugfix. Remove stray #
52904
52905 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
52906
52907         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
52908         so that we test the test.
52909         Check for yet another HP-UX cc bug involving *bool |= bool.
52910
52911 2006-01-25  Karl Berry  <karl@gnu.org>
52912
52913         * config/srclist.txt (vasnprintf.c): sync lost.
52914
52915 2006-01-25  Jim Meyering  <jim@meyering.net>
52916
52917         Sync from the stable (b5) branch of coreutils:
52918
52919         * lib/fts.c (fts_children): Don't let close() clobber errno from
52920         failed fchdir().
52921
52922         * lib/fts.c (fts_stat): When following a symlink-to-directory,
52923         don't necessarily interpret stat-fails+lstat-succeeds as indicating
52924         a dangling symlink.  That can also happen at least for ELOOP.
52925         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
52926         FYI, this bug predates the inclusion of fts.c in coreutils.
52927
52928         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
52929         in their own block, so pre-c99 compilers don't object.
52930
52931         Avoid the double-free (first in fts_read, second in fts_close) that
52932         would occur when an `active' directory is made inaccessible (e.g.,
52933         via chmod a-x) during a traversal.
52934         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
52935         before returning.  Reproduce this failure by
52936         mkdir -p a/b; cd a; chmod a-x . b
52937         Reported by Stavros Passas.
52938
52939 2006-01-25  Jim Meyering  <jim@meyering.net>
52940
52941         * lib/fileblocks.c: Remove more useless parentheses.
52942         * lib/readutmp.h: Likewise.
52943
52944 2006-01-25  Bruno Haible  <bruno@clisp.org>
52945
52946         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
52947         warnings.
52948         Reported by Paul Eggert.
52949
52950 2006-01-25  Bruno Haible  <bruno@clisp.org>
52951
52952         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
52953         rid of a trap command. For Solaris sh.
52954         Reported by Mark D. Baushke <mdb@gnu.org>.
52955
52956 2006-01-24  Simon Josefsson  <jas@extundo.com>
52957
52958         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
52959         Bruno.
52960
52961 2006-01-24  Karl Berry  <karl@gnu.org>
52962
52963         * config/srclist.txt (argp-namefrob.h): sync lost.
52964
52965 2006-01-24  Jim Meyering  <jim@meyering.net>
52966
52967         * modules/openat (Files): Add lib/intprops.h.
52968         From Mark D. Baushke.
52969
52970 2006-01-24  Jim Meyering  <jim@meyering.net>
52971
52972         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
52973         Reported by Mark D. Baushke.
52974
52975 2006-01-24  Jim Meyering  <jim@meyering.net>
52976
52977         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
52978
52979 2006-01-24  Bruno Haible  <bruno@clisp.org>
52980
52981         * modules/strnlen (Maintainer): Change from glibc to all.
52982
52983 2006-01-24  Bruno Haible  <bruno@clisp.org>
52984
52985         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
52986         Patch by Paul Eggert.
52987
52988 2006-01-24  Bruno Haible  <bruno@clisp.org>
52989
52990         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
52991         already has it.
52992         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
52993         2005-11-26.
52994
52995         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
52996         'signed char' to avoid problems with the built-in _Bool type.
52997         Reported by Paul Eggert on 2005-11-26.
52998
52999 2006-01-24  Bruno Haible  <bruno@clisp.org>
53000
53001         * gnulib-tool (func_import): Avoid constructing complicated sed
53002         expressions inside backquote.
53003         Report and solution by Mark D. Baushke <mdb@gnu.org>.
53004
53005 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
53006
53007         These changes imported from libc.
53008         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
53009         test and two separate function calls.
53010         * lib/strndup.c (__strndup): Add libc_hidden_def.
53011
53012 2006-01-23  Simon Josefsson  <jas@extundo.com>
53013
53014         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
53015         Remove the test_*_SOURCES variable: automake infers it by default.
53016         * modules/tls-tests: Likewise.
53017
53018 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53019
53020         Work around porting bugs reported by Dieter in
53021         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
53022         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
53023         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
53024         Include "getopt.h" first, to check interface.
53025         (getenv): Declare only if defined HAVE_DECL_GETENV &&
53026         !HAVE_DECL_GETENV.
53027         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
53028         (__strndup): Revert to K&R-style function dfns, the glibc style.
53029         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
53030         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
53031         Include strnlen.h first, to get prototype properly.
53032         (strnlen): Renamed from __strnlen.
53033         Remove weak alias.
53034
53035 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53036
53037         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
53038
53039 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53040
53041         * config/srclist.txt: Adjust to reflect glibc reorganization.
53042         This affects only comments.
53043
53044 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
53045
53046          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
53047          Reported by Bruce Korb <bkorb@gnu.org>.
53048
53049 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
53050
53051         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
53052         to pacify gcc -Wswitch-default.
53053
53054 2006-01-22  Bruno Haible  <bruno@clisp.org>
53055
53056         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
53057         temporary buffer for sprintf, take into account the precision also
53058         for 'd', 'i', 'u', 'o', 'x', 'X'.
53059
53060 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
53061
53062         * modules/argp-tests: New module
53063         * tests/test-argp.c: New file
53064         * tests/test-argp-2.sh: New file
53065
53066 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
53067
53068         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
53069         (__argp_base_name): Removed
53070         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
53071         typo.
53072         (__argp_base_name): Provide macro definition or extern declaration
53073         depending on the configuration
53074
53075 2006-01-20  Simon Josefsson  <jas@extundo.com>
53076
53077         * modules/inet_ntop (Depends-on): Depend on sys_socket.
53078
53079 2006-01-20  Simon Josefsson  <jas@extundo.com>
53080
53081         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
53082
53083 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53084
53085         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
53086         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
53087         Suggested by Bruno Haible.
53088
53089 2006-01-20  Karl Berry  <karl@gnu.org>
53090
53091         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
53092         until changes propagate, I guess.
53093
53094 2006-01-19  Simon Josefsson  <jas@extundo.com>
53095
53096         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
53097
53098 2006-01-19  Simon Josefsson  <jas@extundo.com>
53099
53100         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
53101
53102 2006-01-19  Simon Josefsson  <jas@extundo.com>
53103
53104         * gnulib-tool: Set check_PROGRAMS.
53105
53106         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
53107         modules/des-tests, modules/gc-arcfour-tests,
53108         modules/gc-arctwo-tests, modules/gc-des-tests,
53109         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
53110         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
53111         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
53112         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
53113         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
53114         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
53115         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
53116         test_*_SOURCES.
53117
53118 2006-01-18  Simon Josefsson  <jas@extundo.com>
53119
53120         * modules/socklen (Depends-on): Depend on sys_socket.
53121
53122 2006-01-18  Simon Josefsson  <jas@extundo.com>
53123
53124         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
53125         modules/des-tests, modules/gc-arcfour-tests,
53126         modules/gc-arctwo-tests, modules/gc-des-tests,
53127         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
53128         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
53129         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
53130         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
53131         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
53132         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
53133         $(EXEEXT) to automake TESTS variable, for mingw32.
53134
53135 2006-01-17  Simon Josefsson  <jas@extundo.com>
53136
53137         * modules/socklen (Include): Need sys/socket.h.
53138
53139 2006-01-17  Bruno Haible  <bruno@clisp.org>
53140
53141         * modules/ssize_t (Include): Add <sys/types.h>.
53142
53143 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
53144
53145         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
53146         it's not portable and it doesn't work with cross-compiles.
53147         Problem reported by Bruno Haible.  Fix missing-$ typo in
53148         'test "gl_cv_ignore_unused_libraries" ...' that prevented
53149         -zignore from being used with Sun's C compiler.
53150
53151 2006-01-12  Simon Josefsson  <jas@extundo.com>
53152
53153         * lib/base64.c: Fix warning, reported by Bruno Haible
53154         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
53155
53156 2006-01-12  Bruno Haible  <bruno@clisp.org>
53157
53158         * modules/ldd: New file.
53159         * build-aux/ldd.sh.in: New file.
53160         * MODULES.html.sh (Support for building libraries and executables): Add
53161         ldd.
53162
53163 2006-01-12  Bruno Haible  <bruno@clisp.org>
53164
53165         * m4/ldd.m4: New file.
53166
53167 2006-01-12  Bruno Haible  <bruno@clisp.org>
53168
53169         * gnulib-tool (func_import, func_create_testdir): Don't go into an
53170         endless loop while replacing $auxdir with build-aux.
53171
53172 2006-01-11  Simon Josefsson  <jas@extundo.com>
53173
53174         * lib/stdint_.h (SIZE_MAX): Add missing (.
53175
53176 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
53177
53178         Sync from coreutils.
53179         * lib/md5.c: Fix commentary typos.
53180         (alignof, UNALIGNED_P): No need for a GCC-specific version.
53181         * lib/md5.h (__attribute__): Remove; unused.
53182         * lib/sha1.c: Fix commentary to match md5 better.
53183         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
53184         so that we don't need to worry about alignment.  All uses changed.
53185         This merges the 2005-10-28 md5 change into sha1.
53186
53187 2006-01-11  Jim Meyering  <jim@meyering.net>
53188
53189         Sync from coreutils.
53190         * lib/md5.c (OP): Fix spacing.
53191
53192 2006-01-11  Bruno Haible  <bruno@clisp.org>
53193
53194         Ensure automatic ordering between gl_LOCK and gl_ARGP.
53195         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
53196         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
53197
53198 2006-01-11  Bruno Haible  <bruno@clisp.org>
53199
53200         Ensure automatic ordering between gl_LOCK and gl_ARGP.
53201         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
53202         the "early" section as well.
53203
53204 2006-01-11  Bruno Haible  <bruno@clisp.org>
53205
53206         Avoid "ar: no archive members specified" error on MacOS X.
53207         * gnulib-tool (func_modules_add_dummy): New function.
53208         (func_import, func_create_testdir): Invoke it.
53209
53210 2006-01-11  Bruno Haible  <bruno@clisp.org>
53211
53212         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
53213         with $auxdir in AC_CONFIG_FILES statements.
53214
53215 2006-01-11  Bruno Haible  <bruno@clisp.org>
53216
53217         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53218         Initialize also noinst_HEADERS to empty.
53219
53220 2006-01-11  Bruno Haible  <bruno@clisp.org>
53221
53222         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
53223         variables.
53224         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
53225         autoreconf.
53226
53227 2006-01-11  Bruno Haible  <bruno@clisp.org>
53228
53229         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
53230         overridable by the user.
53231         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53232
53233 2006-01-10  Simon Josefsson  <jas@extundo.com>
53234
53235         * modules/sys_socket: New file.
53236
53237 2006-01-10  Simon Josefsson  <jas@extundo.com>
53238
53239         * m4/sys_socket_h.m4: New file.
53240
53241 2006-01-10  Simon Josefsson  <jas@extundo.com>
53242
53243         * lib/socket_.h: New file.
53244
53245 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
53246
53247         * modules/readutmp (Maintainer): Add myself.
53248
53249 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
53250
53251         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
53252         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
53253         People who are still concerned with buggy memcmp implementations
53254         can invoke gl_FUNC_MEMCMP themselves.
53255
53256 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
53257
53258         * lib/regex_internal.h (BITSET_WORD_BITS):
53259         Work around a bug in 64-bit PGC (before version 6.1-2), where the
53260         preprocessor mishandles large unsigned values as if they were signed.
53261         Problem reported by Claudio Fontana in
53262         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
53263
53264 2006-01-10  Jim Meyering  <jim@meyering.net>
53265
53266         Avoid the double-free (first in fts_read, second in fts_close) that
53267         would occur when an `active' directory is made inaccessible (e.g.,
53268         via chmod a-x) during a traversal.
53269         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
53270         before returning.  Reproduce this failure by
53271         mkdir -p a/b; cd a; chmod a-x . b
53272         Reported by Stavros Passas.
53273
53274         Sync from coreutils.
53275         * lib/sha1.c: Tweak grammar in a comment.
53276
53277 2006-01-10  Jim Meyering  <jim@meyering.net>
53278
53279         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
53280         Patch by Joerg Sonnenberger.
53281
53282 2006-01-10  Bruno Haible  <bruno@clisp.org>
53283
53284         * modules/readutmp: Depend on module free.
53285         * modules/strtok_r: Depend on module restrict.
53286
53287 2006-01-10  Bruno Haible  <bruno@clisp.org>
53288
53289         * modules/gettext (configure.ac): Add an invocation of
53290         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
53291
53292 2006-01-10  Bruno Haible  <bruno@clisp.org>
53293
53294         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
53295         Reported by Werner Lemberg <wl@gnu.org>.
53296
53297 2006-01-10  Bruno Haible  <bruno@clisp.org>
53298
53299         * lib/localcharset.c: Update from GNU gettext.
53300
53301 2006-01-10  Bruno Haible  <bruno@clisp.org>
53302
53303         * lib/argp.h (__const): Remove macro. Use const instead.
53304         * lib/argp-fmtstream.h (__const): Likewise.
53305         * lib/glob_.h (__const): Remove macro.
53306         * lib/glob-libc.h: Use const instead of __const.
53307
53308 2006-01-10  Bruno Haible  <bruno@clisp.org>
53309
53310         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
53311         variable.
53312         Needed to avoid an automake error regarding the 'gettext' module.
53313
53314 2006-01-09  Simon Josefsson  <jas@extundo.com>
53315
53316         * modules/inet_ntop (Depends-on): Add restrict.
53317
53318 2006-01-09  Simon Josefsson  <jas@extundo.com>
53319
53320         * modules/gc-rijndael-tests (License): Put under LGPL.
53321
53322         * modules/gc-des-tests (License): Likewise.
53323
53324         * modules/gc-arcfour-tests (License): Likewise.
53325
53326         * modules/gc-arctwo-tests (License): Likewise.
53327
53328         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
53329
53330         * modules/gc-hmac-sha1-tests (Files): Likewise.
53331
53332         * modules/gc-hmac-md5-tests (License): Likewise.
53333
53334         * modules/gc-sha1-tests (License): Likewise.
53335
53336         * modules/gc-md5-tests (License): Likewise.
53337
53338         * modules/gc-md4-tests (License): Likewise.
53339
53340         * modules/gc-md2-tests (License): Likewise.
53341
53342         * modules/gc-tests (License): Likewise.
53343
53344         * modules/des-tests (License): Likewise.
53345
53346         * modules/md4-tests (License): Likewise.
53347
53348         * modules/md2-tests (License): Likewise.
53349
53350 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53351
53352         Sync from coreutils:
53353
53354         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
53355         * modules/lib-ignore: New file.
53356         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
53357         chdir-safer.m4, lchmod.m4.
53358         * modules/openat: Add mkdirat.c, openat-priv.h.
53359
53360 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53361
53362         Sync from coreutils.
53363         * m4/lib-ignore.m4: New file.
53364         * m4/lchmod.m4: New file.
53365
53366 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53367
53368         Sync from coreutils.
53369         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
53370         for write access: POSIX says that must fail.
53371         * lib/fts.c (diropen): Likewise.
53372         * lib/save-cwd.c (save_cwd): Likewise.
53373         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
53374         well, for minor improvements on hosts that lack O_DIRECTORY.
53375         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
53376         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
53377         Fall back on chown if open failed with EACCES.
53378
53379         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
53380         Report an error at compile-time if only a 1-second nominal clock
53381         resolution is found.
53382
53383         * lib/lchmod.h: New file.
53384         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
53385         (make_dir_parents): Use lchown rather than chown, and
53386         lchmod rather than chmod.
53387
53388         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
53389         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
53390         "proc" reported by n0dalus.
53391
53392         * lib/mountlist.c: Include <limits.h>.
53393         (dev_from_mount_options)
53394         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
53395         New function.  It no longer assumes "dev=" has the System V meaning
53396         on Linux (since it doesn't).  It also parses "dev=" more carefully.
53397         (read_file_system_list)
53398         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
53399         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
53400         dev= in that case.
53401
53402         * lib/posixtm.h (PDS_PRE_2000): New macro.
53403         * lib/posixtm.c (year): Arg is now syntax_bits rather than
53404         allow_century.  All usages changed.  Reject dates outside the range
53405         1969-1999 if PDS_PRE_2000 is used.
53406
53407 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53408
53409         Sync from coreutils.
53410         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
53411         (Time of day items): Mention the possibility of leap seconds.
53412         Problem reported by Dr. David Alan Gilbert.
53413
53414 2006-01-09  Jim Meyering  <jim@meyering.net>
53415
53416         Sync from coreutils.
53417
53418         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
53419
53420         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
53421
53422         * lib/modechange.c (mode_compile): Reject an invalid mode string
53423         that starts with an octal digit.  From Andreas Gruenbacher.
53424
53425         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
53426         and dup to open_safer and dup_safer, respectively.
53427         (openat_permissive): Fix typo in comment.
53428
53429         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
53430         "gettext.h"; either no longer needed or are guaranteed by openat.h.
53431         (_): Remove; no longer needed.
53432         (openat): Renamed from rpl_openat; no need for rpl_openat
53433         since openat.h renames openat for us.
53434         Replace most of the body with a call to openat_permissive,
53435         to avoid duplicate code.
53436         Port to (probably hypothetical) environments were mode_t is
53437         wider than int.
53438         (openat_permissive): Require mode arg, so that we can check
53439         types better.  Put it just after flags.  Change cwd failure
53440         indicator from pointer-to-bool to pointer-to-errno-value.
53441         All callers changed.
53442         Invoke openat_save_fail and/or openat_restore_fail if
53443         cwd_errno is null, so that openat can call us.
53444         (openat_permissive, fdopendir, fstatat, unlinkat):
53445         Simplify errno handling to avoid some duplicate code,
53446         as it's OK to set errno on success.
53447         * lib/openat.h: Revamp code so that function macros depend on
53448         __OPENAT_PREFIX only, not also on AT_FDCWD.
53449         (openat_ro): Remove.  Caller changed to use openat_permissive.
53450         (openat_permissive): Now a macro, if not a function.
53451         (openat_restore_fail, openat_save_fail): Now always functions,
53452         since mkdirat needs them even if __OPENAT_PREFIX is defined.
53453
53454         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
53455         and openat.c.
53456         * lib/mkdirat.c: Include openat-priv.h.
53457         Remove definitions of macros defined therein.
53458         * lib/openat.c: Likewise.
53459
53460         * lib/mkdirat.c (mkdirat): New file and function.
53461         * lib/openat.h (mkdirat): Declare.
53462
53463         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
53464
53465         * lib/openat.h (openat_permissive): Declare.
53466         (openat_ro): Define.
53467
53468         * lib/openat.c (EXPECTED_ERRNO): New macro.
53469         (openat_permissive): New function -- used in remove.c rewrite.
53470         (all functions): Set errno just before returning, only if there
53471         was an actual failure.
53472         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
53473
53474         Emulate openat-family functions using Linux's procfs, if possible.
53475         Idea and some code based on Ulrich Drepper's glibc changes.
53476
53477         * lib/openat.c: (BUILD_PROC_NAME): New macro.
53478         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
53479         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
53480         before falling back on save_cwd and restore_cwd.
53481         (fdopendir, fstatat, unlinkat): Likewise.
53482
53483         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
53484         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
53485
53486         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
53487         as second argument to va_arg.  Otherwise, some versions of gcc
53488         warn that `if this code is reached, the program will abort'.
53489
53490 2006-01-09  Jim Meyering  <jim@meyering.net>
53491
53492         Sync from coreutils.
53493         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
53494         Require openat-priv.h.
53495
53496 2006-01-09  Bruno Haible  <bruno@clisp.org>
53497
53498         * modules/strnlen (Include): Use strnlen.h.
53499
53500 2006-01-09  Bruno Haible  <bruno@clisp.org>
53501
53502         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
53503
53504 2006-01-09  Bruno Haible  <bruno@clisp.org>
53505
53506         * lib/sysexit_.h (EX_OK): New macro.
53507         Suggested by Martin Lambers <marlam@marlam.de>.
53508
53509 2006-01-09  Bruno Haible  <bruno@clisp.org>
53510
53511         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
53512         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
53513
53514 2006-01-09  Bruno Haible  <bruno@clisp.org>
53515
53516         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
53517         numbers.
53518
53519 2006-01-09  Bruno Haible  <bruno@clisp.org>
53520
53521         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
53522         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
53523         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
53524         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
53525
53526 2006-01-09  Bruno Haible  <bruno@clisp.org>
53527
53528         * build-aux/javacomp.sh.in: New file, moved from lib/.
53529         * modules/javacomp-script (Files): Update.
53530         (configure.ac): Add AC_CONFIG_FILES invocation.
53531         (EXTRA_DIST): Remove variable.
53532
53533         * build-aux/javaexec.sh.in: New file, moved from lib/.
53534         * modules/javaexec (Files): Update.
53535         (configure.ac): Add AC_CONFIG_FILES invocation.
53536         (EXTRA_DIST): Remove javaexec.sh.in.
53537
53538         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
53539         * modules/csharpcomp-script (Files): Update.
53540         (configure.ac): Add AC_CONFIG_FILES invocation.
53541         (EXTRA_DIST): Remove variable.
53542
53543         * build-aux/csharpexec.sh.in: New file, moved from lib/.
53544         * modules/csharpexec (Files): Update.
53545         (configure.ac): Add AC_CONFIG_FILES invocation.
53546         (EXTRA_DIST): Remove csharpexec.sh.in.
53547
53548 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
53549
53550         Sync from coreutils.
53551
53552         Add POSIX ACL support
53553         * lib/acl.h (copy_acl, set_acl): Add declarations.
53554         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
53555         systems other than Linux.
53556         (chmod_or_fchmod): New function: use fchmod when possible,
53557         and chmod otherwise.
53558         (file_has_acl): Add a POSIX ACL implementation, with a
53559         Linux-specific subcase.
53560         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
53561         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
53562         acls are unsupported.
53563         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
53564         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
53565         are unsupported.
53566
53567 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
53568
53569         Sync from coreutils.
53570         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
53571
53572 2006-01-07  Bruno Haible  <bruno@clisp.org>
53573
53574         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
53575         gl_EARLY.
53576
53577 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53578
53579         * lib/strftime.c (tzname): Don't declare if it is already #defined.
53580         Problem reported for Mingw by Mark Junker.
53581
53582 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53583
53584         * README: Gnulib normally doesn't generate a tarball.
53585
53586 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
53587
53588         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
53589         long int, not int, for nanosecond counts, so that people who are
53590         used to POSIX struct timespec won't be surprised.  Reported by Jim
53591         Meyering.
53592
53593 2005-12-28  Bruno Haible  <bruno@clisp.org>
53594
53595         * build-aux/config.rpath: Update from GNU gettext.
53596
53597 2005-12-16  Jim Meyering  <jim@meyering.net>
53598
53599         * modules/fprintftime: New module.
53600         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
53601
53602 2005-12-16  Jim Meyering  <jim@meyering.net>
53603
53604         * m4/fprintftime.m4: New file.
53605
53606 2005-12-16  Jim Meyering  <jim@meyering.net>
53607
53608         * lib/fprintftime.c, lib/fprintftime.h: New files.
53609
53610 2005-12-15  Simon Josefsson  <jas@extundo.com>
53611
53612         * modules/socklen (configure.ac): Fix M4 macro name, to align with
53613         new m4/socklen.m4.
53614
53615 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
53616
53617         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
53618         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
53619
53620 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
53621
53622         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
53623         * lib/argp-help.c (fill_in_uparams): Check if the constructed
53624         struct uparams is valid. Fall back to the default values if it is
53625         not.
53626
53627 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
53628
53629         * modules/argp (Files): Add argp-pin.c
53630         (Depends-on): dirname
53631         (lib_SOURCES): Add argp-pin.c
53632
53633 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
53634
53635         * m4/argp.m4:  Check if program_invocation_name and
53636         program_invocation_short_name are declared and define appropriate
53637         macros if they are not.
53638
53639 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
53640
53641         * lib/argp-help.c (__argp_base_name): New function
53642         (__argp_short_program_name): Rewrite using __argp_base_name
53643         * lib/argp-namefrob.h: Define program_invocation_name and
53644         program_invocation_short_name if requested
53645         (__argp_base_name): Add prototype
53646         * lib/argp-parse.c (argp_def): Use gettext wrappers
53647         (argp_default_parser): Use __argp_base_name
53648         * lib/argp-pin.c: New file. Defines program_invocation_name and
53649         program_invocation_short_name on systems that lack them.
53650
53651 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
53652
53653         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
53654         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
53655         porting problem reported by Georg Schwarz in
53656         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
53657
53658 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
53659
53660         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
53661         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
53662         porting problem reported by Georg Schwarz in
53663         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
53664
53665 2005-12-05  Bruno Haible  <bruno@clisp.org>
53666
53667         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
53668         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
53669         Reported by Mark Junker <mjscod@gmx.de>.
53670
53671 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
53672
53673         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
53674         Use implementation from Albert Chin, with some
53675         comments/corrections by Stepan Kasal and myself.
53676
53677 2005-12-02  Bruno Haible  <bruno@clisp.org>
53678
53679         * gnulib-tool (func_import): Accept GPLed build tool modules when
53680         --lgpl is given.
53681         * modules/csharpcomp-script: New file.
53682         * modules/csharpcomp: Depend on it.
53683         * modules/javacomp-script: New file.
53684         * modules/javacomp: Depend on it.
53685         Suggested by Simon Josefsson.
53686
53687 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
53688
53689         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
53690         statement, to work around an HP-UX 10.20 compiler bug reported by
53691         Peter O'Gorman.
53692
53693 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
53694
53695         * modules/savedir (Depends-on): Add openat.
53696
53697 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
53698
53699         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
53700         (uintmax_t) [defined uintmax_t]: Do not declare.
53701         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
53702         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
53703         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
53704         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
53705         sake of portability to weird hosts that C allows (though we don't
53706         know of any practical examples).
53707
53708         * lib/savedir.h (fdsavedir): New decl.
53709         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
53710         contains most of the former guts of savedir.
53711         (savedir): Use savedirstream.
53712         Include "openat.h".
53713
53714 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
53715
53716         * modules/obstack (Files): Add m4/ulonglong.m4.
53717         Problem reported by Davide Angelocola.
53718
53719 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
53720
53721         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
53722         coreutils no longer futzes with rounding modes.
53723
53724 2005-11-14  Jim Meyering  <jim@meyering.net>
53725
53726         * lib/mkstemp-safer.c: Include <config.h>, required for possible
53727         replacement of mkstemp.
53728
53729 2005-11-10  Simon Josefsson  <jas@extundo.com>
53730
53731         * lib/readline.c: Remove EOL.
53732
53733 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53734
53735         * modules/gethrxtime (Depends-on): Add gettime.
53736
53737 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53738
53739         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
53740         or gettimeofday; no longer needed.
53741
53742 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53743
53744         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
53745         time business.
53746         (gethrxtime) [! (HAVE_NANOUPTIME
53747         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
53748         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
53749         our own approximation.
53750
53751 2005-11-08  Eric Blake  <ebb9@byu.net>
53752
53753         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
53754
53755 2005-11-08  Eric Blake  <ebb9@byu.net>
53756
53757         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
53758
53759 2005-11-04  Bruno Haible  <bruno@clisp.org>
53760
53761         * gnulib-tool: Implement --update mode.
53762
53763 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
53764
53765         Fix porting problem reported by Theodoros V. Kalamatianos.
53766         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
53767         Don't assume that futimes failing means we must fail.
53768
53769 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
53770
53771         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
53772         variables to suggest the intended function of the PATH_MAX check.
53773
53774 2005-10-30  Kean Johnston  <jkj@sco.com>
53775
53776         Trivial changes to support SCO systems.
53777         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
53778         as PATH_MAX.
53779         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
53780         where __ptr is null when no I/O is pending.
53781
53782 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
53783
53784         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
53785         leave errno alone.  Problem reported by Dmitry V. Levin.
53786
53787 2005-10-28  Simon Josefsson  <jas@extundo.com>
53788
53789         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
53790         Test more.
53791
53792         * tests/test-gc-md2.c, tests/test-md2.c: New files.
53793
53794         * modules/md2, modules/md2-tests: New files.
53795
53796 2005-10-28  Simon Josefsson  <jas@extundo.com>
53797
53798         * m4/inet_ntop.m4: More tests.
53799
53800         * m4/gc-md2.m4, md2.m4: New file.
53801
53802 2005-10-28  Simon Josefsson  <jas@extundo.com>
53803
53804         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
53805         "restrict" keywords, as per POSIX.  Protect the function
53806         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
53807         Don't use K&R prototypes.  Check the sprintf return values.
53808         Re-define EAFNOSUPPORT if not present.  Indent.
53809
53810         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
53811         suggested by Bruno Haible <bruno@clisp.org>.
53812
53813         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
53814
53815         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
53816
53817         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
53818         libgcrypt).
53819
53820         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
53821
53822         * lib/md2.h, lib/md2.c: New files.
53823
53824 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
53825
53826         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
53827         errno alone.  Problem reported by Frederic Jolliton.
53828
53829 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
53830
53831         * modules/verify (License): Change from GPL to LGPL.  This is a
53832         tiny module and there are apparently near-equivalents that are
53833         under the BSD license.
53834
53835 2005-10-24  Simon Josefsson  <jas@extundo.com>
53836
53837         * modules/sha1: Relicense to LGPL.
53838
53839 2005-10-24  Simon Josefsson  <jas@extundo.com>
53840
53841         * lib/md4.h: Shrink buffer size, now that we changed the type.
53842
53843 2005-10-23  Simon Josefsson  <jas@extundo.com>
53844
53845         * gnulib-tool (func_import): Fix --tests-base.
53846
53847 2005-10-22  Simon Josefsson  <jas@extundo.com>
53848
53849         * modules/arcfour (Depends-on): Need stdint.
53850
53851 2005-10-22  Simon Josefsson  <jas@extundo.com>
53852
53853         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
53854         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
53855
53856 2005-10-22  Simon Josefsson  <jas@extundo.com>
53857
53858         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
53859         suggested by Bruno Haible <bruno@clisp.org>.
53860
53861 2005-10-22  Simon Josefsson  <jas@extundo.com>
53862
53863         * lib/crc.h: Include stddef.h, for size_t.
53864
53865 2005-10-22  Simon Josefsson  <jas@extundo.com>
53866
53867         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
53868         arcfour_context struct (simplify test vector testing in GNU
53869         Shishi).
53870
53871 2005-10-21  Simon Josefsson  <jas@extundo.com>
53872
53873         * modules/des, modules/des-tests: New files.
53874
53875         * modules/gc-des, modules/gc-des-tests: New files.
53876
53877         * tests/test-des.c, tests/test-gc-des.c: New file.
53878
53879 2005-10-21  Simon Josefsson  <jas@extundo.com>
53880
53881         * modules/arctwo, modules/arctwo-tests: New files.
53882
53883         * tests/test-arctwo.c: New file.
53884
53885         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
53886
53887         * tests/test-gc-arctwo.c: New file.
53888
53889 2005-10-21  Simon Josefsson  <jas@extundo.com>
53890
53891         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
53892         Bruno Haible <bruno@clisp.org>.
53893
53894         * m4/gc-des.m4: New file.
53895
53896 2005-10-21  Simon Josefsson  <jas@extundo.com>
53897
53898         * m4/arctwo.m4: New file.
53899
53900         * m4/gc-arctwo.m4: New file.
53901
53902 2005-10-21  Simon Josefsson  <jas@extundo.com>
53903
53904         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
53905         block.
53906
53907 2005-10-21  Simon Josefsson  <jas@extundo.com>
53908
53909         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
53910         <bruno@clisp.org>.
53911
53912         * lib/hmac-sha1.c (hmac_sha1): Likewise.
53913
53914         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
53915         Bruno Haible <bruno@clisp.org>.
53916
53917         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
53918         <bruno@clisp.org>.
53919
53920 2005-10-21  Simon Josefsson  <jas@extundo.com>
53921
53922         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
53923
53924 2005-10-21  Simon Josefsson  <jas@extundo.com>
53925
53926         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
53927
53928 2005-10-21  Simon Josefsson  <jas@extundo.com>
53929
53930         * lib/des.h, lib/des.c: New files.
53931
53932         * lib/gc-gnulib.c: Support DES.c
53933
53934 2005-10-21  Simon Josefsson  <jas@extundo.com>
53935
53936         * lib/arctwo.h, lib/arctwo.c: New files.
53937
53938         * lib/gc-gnulib.c: Support ARCTWO.
53939
53940 2005-10-21  Simon Josefsson  <jas@extundo.com>
53941
53942         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
53943         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53944
53945 2005-10-21  Simon Josefsson  <jas@extundo.com>
53946
53947         * gnulib-tool (func_import, func_create_testdir): Define automake
53948         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
53949         Makefile.am snippet),
53950         suggested by Bruno Haible <bruno@clisp.org>.
53951
53952         * modules/gc (Makefile.am): Use it.
53953
53954 2005-10-21  Bruno Haible  <bruno@clisp.org>
53955
53956         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
53957         patch.
53958
53959 2005-10-19  Simon Josefsson  <jas@extundo.com>
53960
53961         * tests/test-gc-rijndael.c: New file.
53962
53963         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
53964
53965 2005-10-19  Simon Josefsson  <jas@extundo.com>
53966
53967         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
53968         interface too.
53969
53970 2005-10-19  Simon Josefsson  <jas@extundo.com>
53971
53972         * tests/test-gc-arcfour.c: New file.
53973
53974         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
53975
53976 2005-10-19  Simon Josefsson  <jas@extundo.com>
53977
53978         * modules/gc-md4, modules/gc-md4-tests: New file.
53979
53980         * tests/test-gc-md4.c: New file.
53981
53982 2005-10-19  Simon Josefsson  <jas@extundo.com>
53983
53984         * m4/gc-md4.m4: New file.
53985
53986 2005-10-19  Simon Josefsson  <jas@extundo.com>
53987
53988         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
53989         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
53990         <kasal@ucw.cz>.
53991
53992 2005-10-19  Simon Josefsson  <jas@extundo.com>
53993
53994         * m4/gc-arcfour.m4: New file.
53995
53996         * m4/gc-rijndael.m4: New file.
53997
53998 2005-10-19  Simon Josefsson  <jas@extundo.com>
53999
54000         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
54001
54002 2005-10-19  Simon Josefsson  <jas@extundo.com>
54003
54004         * lib/gc-gnulib.c: Support ARCFOUR.
54005
54006 2005-10-19  Simon Josefsson  <jas@extundo.com>
54007
54008         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
54009         support.
54010
54011         * lib/gc.h: Add ECB enum type.
54012
54013         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
54014
54015 2005-10-18  Simon Josefsson  <jas@extundo.com>
54016
54017         * tests/test-md5.c: New file.
54018
54019         * modules/md5-tests: New file.
54020
54021 2005-10-18  Simon Josefsson  <jas@extundo.com>
54022
54023         * tests/test-md4.c: New file.
54024
54025         * modules/md4, modules/md4-tests: New files.
54026
54027 2005-10-18  Simon Josefsson  <jas@extundo.com>
54028
54029         * m4/md4.m4: New file.
54030
54031 2005-10-18  Simon Josefsson  <jas@extundo.com>
54032
54033         * lib/md4.h, lib/md4.c: New files, based on md5.?.
54034
54035 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
54036
54037         * gnulib-tool (func_create_testdir): Omit the second check whether
54038         BUILT_SOURCES in nonempty.
54039
54040 2005-10-17  Simon Josefsson  <jas@extundo.com>
54041
54042         * tests/test-rijndael.c: New file.
54043
54044 2005-10-17  Simon Josefsson  <jas@extundo.com>
54045
54046         * modules/sha1: Depend on stdint instead of md5.
54047
54048         * modules/md5: Depend on stdint, remove uint32_t.
54049
54050 2005-10-17  Simon Josefsson  <jas@extundo.com>
54051
54052         * modules/gc-sha1-tests: New file.
54053
54054         * tests/test-gc-sha1.c: New file.
54055
54056 2005-10-17  Simon Josefsson  <jas@extundo.com>
54057
54058         * m4/md5.m4: Remove call to uint32_t.m4.
54059
54060 2005-10-17  Simon Josefsson  <jas@extundo.com>
54061
54062         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
54063
54064         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
54065         md5.h.
54066
54067         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
54068
54069         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
54070
54071 2005-10-17  Simon Josefsson  <jas@extundo.com>
54072
54073         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
54074
54075 2005-10-17  Simon Josefsson  <jas@extundo.com>
54076
54077         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
54078
54079 2005-10-17  Simon Josefsson  <jas@extundo.com>
54080
54081         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
54082
54083         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
54084
54085 2005-10-17  Bruno Haible  <bruno@clisp.org>
54086
54087         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
54088         that it can also be used in a test.
54089
54090 2005-10-16  Bruno Haible  <bruno@clisp.org>
54091
54092         * gnulib-tool (func_emit_tests_Makefile_am): Also define
54093         TESTS_ENVIRONMENT, so that individual tests can augment it.
54094
54095         * gnulib-tool (func_create_testdir): Use an intermediate target for
54096         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
54097         macros, like $(ALLOCA_H), which cannot be passed through the command
54098         line.
54099
54100 2005-10-15  Simon Josefsson  <jas@extundo.com>
54101
54102         * modules/rijndael-tests: New file.
54103
54104         * modules/rijndael: New file.
54105
54106 2005-10-15  Simon Josefsson  <jas@extundo.com>
54107
54108         * m4/rijndael.m4: New file.
54109
54110 2005-10-15  Simon Josefsson  <jas@extundo.com>
54111
54112         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
54113
54114         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
54115
54116 2005-10-14  Simon Josefsson  <jas@extundo.com>
54117
54118         * tests/test-arcfour.c: New file.
54119
54120         * modules/arcfour, modules/arcfour-tests: New files.
54121
54122 2005-10-14  Simon Josefsson  <jas@extundo.com>
54123
54124         * m4/arcfour.m4: New file.
54125
54126 2005-10-14  Simon Josefsson  <jas@extundo.com>
54127
54128         * lib/arcfour.h, lib/arcfour.c: New files.
54129
54130 2005-10-14  Roland McGrath  <roland@redhat.com>
54131
54132         Import from libc.  [BZ #1331]
54133         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
54134         macro argument.
54135         Reported by Matej Vela <vela@debian.org>.
54136
54137 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
54138
54139         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
54140         include <wchar.h>; no longer needed.
54141
54142 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
54143
54144         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
54145
54146 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
54147         and  Ulrich Drepper  <drepper@redhat.com>
54148
54149         Import from libc.
54150         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
54151         instead of inline stream orientation test and two separate
54152         function calls.  Pay no attention to USE_IN_LIBIO.
54153
54154 2005-10-13  Simon Josefsson  <jas@extundo.com>
54155
54156         * modules/gc-hmac-md5-tests: New file.
54157
54158         * tests/test-gc-hmac-sha1.c: New file.
54159
54160         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
54161
54162         * modules/gc-hmac-md5-tests: New file.
54163
54164         * tests/test-gc-md5.c: New file.
54165
54166         * modules/gc-md5-tests: New file.
54167
54168 2005-10-13  Simon Josefsson  <jas@extundo.com>
54169
54170         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
54171         Move memory allocation outside of loop.
54172
54173 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
54174
54175         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
54176         intermediate directory is in a read-only file system.  Problem
54177         reported by Eric Blake.
54178
54179 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
54180
54181         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
54182
54183 2005-10-12  Simon Josefsson  <jas@extundo.com>
54184
54185         * tests/test-hmac-sha1.c: New file.
54186
54187         * modules/hmac-sha1-tests: New file.
54188
54189         * modules/hmac-sha1: New file.
54190
54191 2005-10-12  Simon Josefsson  <jas@extundo.com>
54192
54193         * modules/gc-sha1: New file.
54194
54195 2005-10-12  Simon Josefsson  <jas@extundo.com>
54196
54197         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
54198
54199         * tests/test-gc-pbkdf2-sha1.c: New file.
54200
54201 2005-10-12  Simon Josefsson  <jas@extundo.com>
54202
54203         * modules/gc-md5, modules/gc-hmac-md5: New files.
54204
54205         * modules/gc (Files): Remove md5, memxor and hmac files.
54206
54207 2005-10-12  Simon Josefsson  <jas@extundo.com>
54208
54209         * m4/gc-pbkdf2-sha1.m4: New file.
54210
54211         * m4/gc-hmac-sha1.m4: New file.
54212
54213         * m4/gc-sha1: New file.
54214
54215         * m4/hmac-sha1.m4: New file.
54216
54217 2005-10-12  Simon Josefsson  <jas@extundo.com>
54218
54219         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
54220
54221         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
54222
54223 2005-10-12  Simon Josefsson  <jas@extundo.com>
54224
54225         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
54226         suggested by Bruno Haible <bruno@clisp.org>.
54227
54228 2005-10-12  Simon Josefsson  <jas@extundo.com>
54229
54230         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
54231
54232 2005-10-12  Simon Josefsson  <jas@extundo.com>
54233
54234         * lib/gc-pbkdf2-sha1.c: New file.
54235
54236         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
54237
54238 2005-10-12  Simon Josefsson  <jas@extundo.com>
54239
54240         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
54241
54242         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
54243
54244 2005-10-12  Simon Josefsson  <jas@extundo.com>
54245
54246         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
54247         GC_USE_HMAC_MD5, respectively.
54248
54249         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
54250         (gc_md5): Fix typo.
54251
54252         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
54253
54254         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
54255
54256         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
54257
54258 2005-10-12  Bruno Haible  <bruno@clisp.org>
54259
54260         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
54261         Reported by Stepan Kasal <kasal@ucw.cz>.
54262
54263 2005-10-11  Simon Josefsson  <jas@extundo.com>
54264
54265         * tests/test-crc.c: New file.
54266
54267         * modules/crc, modules/crc-tests: New files.
54268
54269 2005-10-11  Simon Josefsson  <jas@extundo.com>
54270
54271         * m4/crc.m4: New file.
54272
54273 2005-10-11  Simon Josefsson  <jas@extundo.com>
54274
54275         * lib/gc.h: Add gc_hash and gc_hash_buffer.
54276
54277         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
54278
54279         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
54280
54281 2005-10-11  Simon Josefsson  <jas@extundo.com>
54282
54283         * lib/crc.h, lib/crc.c: New files.
54284
54285         * lib/gc.h (gc_hash_buffer): Add doc.
54286
54287 2005-10-11  Bruno Haible  <bruno@clisp.org>
54288
54289         * modules/c-strcasestr: New file.
54290         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
54291
54292 2005-10-11  Bruno Haible  <bruno@clisp.org>
54293
54294         * modules/c-strcase: New file.
54295         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
54296
54297 2005-10-11  Bruno Haible  <bruno@clisp.org>
54298
54299         * lib/strcasecmp.c: Include limits.h.
54300         (strcasecmp): Avoid integer overflow on exotic platforms.
54301         * lib/strncasecmp.c: Include limits.h.
54302         (strncasecmp): Avoid integer overflow on exotic platforms.
54303         Reported by Paul Eggert.
54304
54305 2005-10-11  Bruno Haible  <bruno@clisp.org>
54306
54307         * lib/c-strcasestr.h: New file, from GNU gettext.
54308         * lib/c-strcasestr.c: New file, from GNU gettext.
54309
54310 2005-10-11  Bruno Haible  <bruno@clisp.org>
54311
54312         * lib/c-strcase.h: New file, from GNU gettext.
54313         * lib/c-strcasecmp.c: New file, from GNU gettext.
54314         * lib/c-strncasecmp.c: New file, from GNU gettext.
54315
54316 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
54317
54318         * modules/mempcpy (License): GPL -> LGPL.
54319         * modules/strchrnul (License): Likewise.
54320         * modules/sysexits (License): Likewise.
54321
54322 2005-10-08  Simon Josefsson  <jas@extundo.com>
54323
54324         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
54325
54326 2005-10-07  Simon Josefsson  <jas@extundo.com>
54327
54328         * m4/memxor.m4: Remove gl_C_RESTRICT call.
54329
54330 2005-10-06  Simon Josefsson  <jas@extundo.com>
54331
54332         * tests/test-hmac-md5.c: New file.
54333
54334         * modules/hmac-md5-tests: New file.
54335
54336         * modules/hmac-md5: New file.
54337
54338 2005-10-06  Simon Josefsson  <jas@extundo.com>
54339
54340         * m4/hmac-md5.m4: New file.
54341
54342         * m4/memxor.m4: Require gl_C_RESTRICT.
54343
54344 2005-10-06  Simon Josefsson  <jas@extundo.com>
54345
54346         * lib/memxor.c (memxor): Avoid casts and warnings.
54347
54348 2005-10-06  Simon Josefsson  <jas@extundo.com>
54349
54350         * lib/hmac-md5.c: New file.
54351
54352         * lib/hmac.h: New file.
54353
54354 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
54355
54356         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
54357         promotes to int, not unsigned int, to catch the AIX 5.3
54358         compiler bug.
54359
54360 2005-10-05  Simon Josefsson  <jas@extundo.com>
54361
54362         * modules/memxor: New file.
54363
54364         * modules/iconv (Files): Move config.rpath to havelib, it is used
54365         there.
54366
54367         * modules/havelib (Files): Add config.rpath.
54368
54369 2005-10-05  Simon Josefsson  <jas@extundo.com>
54370
54371         * m4/memxor.m4: New file.
54372
54373 2005-10-05  Simon Josefsson  <jas@extundo.com>
54374
54375         * lib/memxor.c (memxor): Fix compiler error.
54376
54377         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
54378         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
54379
54380         * lib/memxor.h, lib/memxor.c: New files.
54381
54382         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
54383         we assume all systems have it, suggested by Jim Meyering
54384         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
54385         any systems lack sys/socket.h; mingw32 is known to lack it, but we
54386         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
54387         same reasons.
54388
54389 2005-10-05  Simon Josefsson  <jas@extundo.com>
54390
54391         * config/srclist.txt: Add glibc bug 1423 for md5.h.
54392
54393 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
54394
54395         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
54396         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
54397         needed, since the source code now assumes these .h files.
54398
54399 2005-10-05  Derek Price  <derek@ximbiot.com>
54400
54401         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
54402
54403 2005-10-05  Bruno Haible  <bruno@clisp.org>
54404
54405         * modules/stdint (License): Change to LGPL.
54406
54407 2005-10-04  Simon Josefsson  <jas@extundo.com>
54408
54409         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
54410         D. Baushke" <mdb@gnu.org>.
54411
54412 2005-10-04  Bruno Haible  <bruno@clisp.org>
54413
54414         * lib/verify.h (verify_true): Provide alternative definition for C++.
54415
54416 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
54417
54418         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
54419         (SSIZE_MAX): New macro, if not already defined.
54420         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
54421         than 2 GiB.
54422
54423 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
54424
54425         Sync from coreutils.
54426         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
54427         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
54428         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
54429         ULLONG_MAX doesn't work with 2.7.2.1.
54430
54431 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
54432
54433         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
54434         From Ben Pfaff.
54435
54436         * modules/exclude (Depends-on): Depend on verify.
54437         * modules/strtoimax (Depends-on): Likewise.
54438         * modules/utimecmp (Depends-on): Likewise.
54439
54440 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
54441
54442         * lib/exclude.c: Include verify.h.
54443         (verify): Remove.  All callers changed to use verify.h's version.
54444         * lib/strtoimax.c: Likewise.
54445         * lib/utimecmp.c: Likewis.e
54446
54447         Sync from coreutils.
54448         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
54449         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
54450         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
54451         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
54452         bother returning ENOSYS if settimeofday or stime fails; just let
54453         them return whatever errno they want to return.
54454         * lib/utimens.c: Include unistd.h, for dup2.
54455         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
54456         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
54457
54458 2005-10-02  Jim Meyering  <jim@meyering.net>
54459
54460         Sync from coreutils.
54461         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
54462         from glibc-2.2.5 that fails for read-only files.
54463
54464 2005-10-02  Jim Meyering  <jim@meyering.net>
54465
54466         Sync from coreutils.
54467         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
54468         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
54469         `#if HAVE_CONFIG_H'.
54470         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
54471         Remove AT_FDCWD test.
54472         Do not consume the fd unless successful.
54473         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
54474         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
54475         block, so that we don't even try to compile it if settimeofday is
54476         available.  This works around a compilation failure on OSF1 V5.1,
54477         due to stime requiring a `long int*' while tv_sec is `int'.
54478
54479 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
54480
54481         Sync from coreutils.
54482         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
54483         against `yes', rather than just testing for nonempty.
54484
54485 2005-10-01  Simon Josefsson  <jas@extundo.com>
54486
54487         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
54488         and Darwin.
54489
54490         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
54491         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
54492         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
54493         freeaddrinfo and gai_strerror are declared by the POSIX headers.
54494         Check if struct addrinfo is declared.
54495
54496 2005-10-01  Simon Josefsson  <jas@extundo.com>
54497
54498         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
54499         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
54500         AI_* and EAI_* definitions.  Protect function declarations.
54501
54502 2005-10-01  Jim Meyering  <jim@meyering.net>
54503
54504         Sync from coreutils.
54505
54506         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
54507         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
54508         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
54509         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
54510         in the inet and nsl libraries.  Required on Solaris 5.7.
54511
54512 2005-10-01  Jim Meyering  <jim@meyering.net>
54513
54514         Sync from coreutils.
54515         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
54516         in the inet and nsl libraries.  Required on Solaris 5.7.
54517
54518 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
54519
54520         * lib/getdelim.c (getdelim): Remove unused variables.
54521
54522 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
54523
54524         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
54525         so that the code works even with ancient cpp.  Portability problem
54526         with GCC 2.7.2.1 reported by Thomas M.Ott.
54527
54528 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
54529
54530         * modules/regex (Depends-on): Add strcase.
54531
54532         * modules/gethostname (Licence): Change from GPL to LGPL, since
54533         gethostname.c is a trivial implementation of a standard library
54534         function.
54535         * modules/poll (License): Change from GPL to LGPL, since it's
54536         derived from LGPL code.
54537
54538 2005-09-27  Jim Meyering  <jim@meyering.net>
54539
54540         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
54541         HAVE_CONFIG_H.
54542
54543         * lib/intprops.h (signed_type_or_expr__): Define.
54544         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
54545         for unsigned types.
54546
54547 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
54548
54549         * lib/verify.h (verify_expr): Remove, replacing with:
54550         (verify_true): New macro that returns true instead of void.
54551         (verify_type__): Remove.
54552         (verify): Use verify_true rather than verify_type__.
54553
54554 2005-09-26  Bruno Haible  <bruno@clisp.org>
54555
54556         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
54557         is necessary.
54558         (lib_SOURCES): Remove mbchar.c.
54559         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
54560         (Files): Add m4/mbrtowc.m4.
54561         * modules/mbiter: Likewise.
54562         * modules/mbuiter: Likewise.
54563
54564 2005-09-26  Bruno Haible  <bruno@clisp.org>
54565
54566         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
54567         compile mbchar.c if they are not both present.
54568         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
54569         * m4/mbiter.m4 (gl_MBITER): Likewise.
54570         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
54571         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
54572         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
54573
54574 2005-09-25  Jim Meyering  <jim@meyering.net>
54575
54576         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
54577         also uses socklen_t.
54578
54579 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
54580
54581         * lib/utimens.c (ENOSYS): Define if not already defined.
54582         (futimens): Support having a null PATH if the file descriptor
54583         is nonnegative.
54584
54585         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
54586         Remove.
54587         (__attribute): Define to empty unless GCC 3.1 or later.
54588         This works around a core dump on OpenBSD 3.4, which has GCC
54589         2.95.3, which dumps core when given __attribute__(()).  It also
54590         simplifies other tests, since we really don't want to bother with
54591         worrying about which ancient version of GCC supported what.
54592         Original problem reported by Yoann Vandoorselaere, with part of
54593         the fix suggested by Derek Price.
54594
54595 2005-09-24  Jim Meyering  <jim@meyering.net>
54596
54597         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
54598         so we can once again use a positive bitfield width of 1 -- now we
54599         don't have to explain why we were using a bitfield width of 2.
54600
54601 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
54602
54603         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
54604         and similarly for the other external symbols.  Problem reported
54605         by James Gallager.
54606
54607         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
54608         bug reported by Jim Meyering.
54609
54610         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
54611         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
54612         not needed, since socklen is a prerequisite module.
54613
54614 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
54615
54616         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
54617         Problem reported by Eric Blake.
54618         (getaddrinfo): Initialize se so that it's not garbage.
54619         Redo internal storage allocation so that it doesn't make unportable
54620         assumptions about alignment.
54621         Fix a memory leak.
54622
54623         * lib/utimens.c (futimens): Use futimesat if available.
54624         Prefer it to futimes since it doesn't have the futimes bug.
54625
54626         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
54627         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
54628         Instead, declare a function that returns a pointer to an array,
54629         and use verify_type__ to declare the size of the array.
54630         Problem and germ of a solution reported by Bruno Haible.
54631         (verify_type__): Use 2, not 1, for bitfield size, to avoid
54632         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
54633
54634 2005-09-23  Jim Meyering  <jim@meyering.net>
54635
54636         Sync from coreutils.
54637         Correct build failure (socklen_t not defined) on at least
54638         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
54639         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
54640
54641 2005-09-23  Jim Meyering  <jim@meyering.net>
54642
54643         * modules/getaddrinfo (Depends-on): Add socklen.
54644
54645 2005-09-23  Bruno Haible  <bruno@clisp.org>
54646
54647         * tests/test-verify.c: New file.
54648
54649 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54650
54651         Sync from coreutils.
54652
54653         * modules/argmatch (Depends-on): Add verify.
54654         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
54655         unistd-safer.
54656         * modules/save-cwd (Depends-on): Likewise.
54657
54658         * modules/openat (Files): Add lib/openat-die.c.
54659         (Depends-on): Remove error, exitfail.
54660         Add dirname.
54661
54662         * modules/verify: New file.
54663         * MODULES.html.sh (Diagnostics <assert.h>): New section,
54664         with "verify" module.
54665
54666 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54667
54668         Sync from coreutils.
54669
54670         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
54671         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
54672         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
54673         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
54674         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
54675         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
54676         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
54677         Don't bother checking for string.h, stdlib.h, unistd.h.
54678         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
54679         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
54680         module's job.
54681         * m4/jm-macros.m4 (gl_MACROS): Likewise.
54682         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
54683
54684         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
54685         (gl_GETDATE): Use it.
54686
54687         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
54688
54689 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54690
54691         Sync from coreutils.
54692
54693         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
54694         stat-time.h.
54695         * lib/argmatch.h: Include verify.h
54696         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
54697         (ARGMATCH_ASSERT): Remove; unused.
54698         * lib/canonicalize.c: Assume STDC_HEADERS.
54699         * lib/exclude.c: Include "strcase.h".
54700         * lib/regex_internal.h [!defined _LIBC]: Likewise.
54701         * lib/getusershell.c: Include stdio--.h rather than stdio.h
54702         and stdio-safer.h.
54703         (getusershell): Call fopen, not fopen_safer.
54704         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
54705         Do not include unistd-safer.h.
54706         (save_cwd): Don't call fd_safer; no longer needed
54707         now that we include fcntl--.h.
54708
54709         * lib/getdate.y (relative_time): New type.
54710         (RELATIVE_TIME_0): New constant.
54711         (parser_control): Use relative_time instead of doing it ourselves.
54712         (%union): Add new relative_time rel member.
54713         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
54714         Now typeless.
54715         (relunit, relunit_snumber): Now of type rel.
54716         (zone, rel, relunit, get_date): Adjust to above changes.
54717
54718         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
54719         Do not include unistd-safer.h.
54720         (getloadavg): Don't call fd_safer; no longer needed
54721         now that we include fcntl--.h.
54722
54723         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
54724         (make_dir_parents): Treat ENOSYS like EEXIST.
54725
54726         Improve quality of diagnostics on restore_cwd failure.
54727         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
54728         (make_dir_parents): Last arg is now int * (for errno), not bool *.
54729         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
54730         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
54731         each time through the loop.  Do not diagnose restore_cwd failure;
54732         that is the caller's job (and perhaps the caller does not care).
54733
54734         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
54735         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
54736         If the file already exists but is not a directory, don't bother
54737         to try to make its parents.
54738         Close potential file descriptor leak if we can't chdir("/") (!).
54739         Don't always return true if chdir($PWD) fails; return true only
54740         if the requested action was done successfully (except for the
54741         chdir($PWD)).
54742         Don't log final directory unless we actually made it.
54743         Refactor to avoid duplicate code to fix up permissions.
54744         Don't attempt to fix up parent permissions if chdir($PWD) fails.
54745
54746         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
54747         to make it a bit faster and (I hope) clearer.
54748         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
54749         Fix bug in formats like %2N.
54750
54751         * lib/verify.h: New file.
54752
54753 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54754
54755         Sync from coreutils.
54756         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
54757
54758 2005-09-22  Jim Meyering  <jim@meyering.net>
54759
54760         Sync from coreutils.
54761
54762         * m4/lstat.m4 (gl_FUNC_LSTAT):
54763         Use AC_LIBSOURCES to require lstat.c and lstat.h.
54764         Remove obsolete comment.
54765         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
54766         * m4/xstrtod.m4: Likewise.
54767
54768         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
54769
54770 2005-09-22  Jim Meyering  <jim@meyering.net>
54771
54772         Sync from coreutils.
54773
54774         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
54775
54776         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
54777         the .tm_year member, since otherwise gcc-4.0 would now warn about
54778         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
54779
54780         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
54781         order to avoid an unsuppressible warning from gcc on 64-bit systems.
54782
54783         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
54784         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
54785         when run in a time zone for which daylight savings time is in effect
54786         for the starting date.
54787
54788         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
54789         stop us from restricting permissions of just-created absolute-named
54790         directories.
54791         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
54792         to restore initial working directory.
54793         * lib/mkdir-p.c (make_dir_parents): New parameter:
54794         different_working_dir, to tell caller if/when we change the working
54795         directory and are unable to return to the initial one.
54796         * lib/mkdir-p.h (make_dir_parents): Update prototype.
54797         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
54798         `return false'.  This fixes a bug introduced on 2004-07-30.
54799
54800         * lib/openat.c (fdopendir): Be sure to close the supplied
54801         file descriptor before returning.  This makes our replacement
54802         implementation a little closer to Solaris's, where fdopendir
54803         ties the file descriptor to the returned DIR* pointer.
54804         * lib/openat.c (unlinkat): New function.
54805         * lib/openat.h (unlinkat): Add prototype.
54806         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
54807         (openat_restore_fail): Rename from openat_restore_die.
54808         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
54809
54810         Provide an alternative to exiting immediately upon save_cwd or
54811         restore_cwd failure.  Now, an application can arrange e.g.,
54812         to perform a longjump in that case.
54813         * lib/openat.c: Include dirname.h.
54814         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
54815         (rpl_openat, fdopendir, fstatat): Call openat_save_die
54816         and openat_restore_die rather than calling error directly.
54817         Don't include "error.h" or "exitfail.h"; they're no longer needed.
54818
54819         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
54820         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
54821         define.
54822
54823         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
54824         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
54825                             int utc, int nanoseconds);
54826         Background:
54827         date should not have to allocate a megabyte of virtual memory to
54828         handle a format argument like +%1048575T.  When implemented with
54829         strftime, it must allocate such a buffer, use strftime to fill it
54830         in, print it, then free it.
54831         With fprintftime, it simply prints everything and exits.
54832         With no need for memory allocation, that's one fewer way to fail.
54833         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
54834         optional field width, not before, so we accept %9:z, not %:9z.
54835         (my_strftime): Be sure to use L_('x') for literals.
54836
54837         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
54838         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
54839         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
54840         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
54841         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
54842         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
54843         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
54844         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
54845         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
54846         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
54847         * lib/xgethostname.c, lib/xreadlink.c:
54848         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
54849
54850         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
54851         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
54852         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
54853         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
54854         and don't include <sys/file.h>).
54855
54856 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
54857
54858         Sync from coreutils.
54859
54860         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
54861         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
54862         [!LDAV_DONE]: Avoid unused variable warning.
54863
54864 2005-09-21  Bruno Haible  <bruno@clisp.org>
54865
54866         * lib/unicodeio.h (unicode_to_mb): New declaration.
54867
54868 2005-09-20  Derek Price  <derek@ximbiot.com>
54869
54870         * lib/getaddrinfo.c: Don't include <netdb.h> included from
54871         getaddrinfo.h.
54872
54873 2005-09-20  Bruno Haible  <bruno@clisp.org>
54874
54875         * gnulib-tool: Remove trailing slashes from the values specified for
54876         --source-base, --m4-base, --tests-base, --aux-dir.
54877         Suggested by Simon Josefsson <jas@extundo.com>.
54878
54879 2005-09-20  Bruno Haible  <bruno@clisp.org>
54880
54881         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
54882         func_modules_to_filelist, func_import, func_create_testdir): Make all
54883         sorting results locale-independent, so that gnulib-cache.m4 doesn't
54884         change when gnulib-tool is invoked in a different locale.
54885
54886 2005-09-19  Simon Josefsson  <jas@extundo.com>
54887
54888         * m4/socklen.m4: Fix typo.
54889
54890 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54891
54892         Use a consistent style for including <config.h>.
54893         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
54894         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
54895         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
54896         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
54897         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
54898         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
54899         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
54900         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
54901         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
54902         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
54903         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
54904         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
54905         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
54906         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
54907         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
54908         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
54909         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
54910         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
54911         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
54912         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
54913         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
54914         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
54915         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
54916         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
54917         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
54918         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
54919         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
54920         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
54921         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
54922         lib/xstrtoumax.c, lib/yesno.c:
54923         Standardize inclusion of config.h.
54924         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
54925         lib/inttostr.h:  Removed inclusion of config.h from header files.
54926         * lib/inttostr.c:  Adjusted in-tree users.
54927         * lib/timespec.h: Remove superfluous warning to include config.h.
54928         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
54929         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
54930         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
54931         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
54932         config.h with HAVE_CONFIG_H.
54933
54934 2005-09-19  Jim Meyering  <jim@meyering.net>
54935
54936         * modules/pathmax (License): Change to LGPL.
54937
54938 2005-09-19  Derek Price  <derek@ximbiot.com>
54939
54940         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
54941
54942 2005-09-19  Bruno Haible  <bruno@clisp.org>
54943
54944         * gnulib-tool (import): Provide default for --tests-base.
54945
54946 2005-09-19  Bruno Haible  <bruno@clisp.org>
54947
54948         * doc/quote.texi: New file, extracted from gnulib.texi.
54949         * doc/ctime.texi: New file, extracted from gnulib.texi.
54950         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
54951         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
54952         * doc/gnulib.texi: Include them.
54953
54954 2005-09-18  Bruno Haible  <bruno@clisp.org>
54955
54956         Portability fix.
54957         * gnulib-tool (func_readlink): New function.
54958         (func_ln_if_changed): Use it.
54959
54960 2005-09-18  Bruno Haible  <bruno@clisp.org>
54961
54962         * gnulib-tool: Support --with-tests also with --import.
54963         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
54964         (func_import): Use variables $testsbase and $inctests. Emit a
54965         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
54966         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
54967         SUBDIRS += $testsdir.
54968         (func_create_testdir): Update.
54969
54970 2005-09-18  Bruno Haible  <bruno@clisp.org>
54971
54972         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
54973         instead of $dry_run.
54974         (func_cp_if_changed, func_mv_if_changed): Remove functions.
54975         (func_ln_if_changed): Don't handle dry-run here.
54976         (func_import): In dry-run mode, detect more precisely which actions
54977         would be performed, and don't use "...ing" verbs.
54978
54979 2005-09-18  Bruno Haible  <bruno@clisp.org>
54980
54981         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
54982         (func_import): Use join on two temporary files instead of three nested
54983         loops, in order to determine which files are new or old.
54984
54985 2005-09-18  Bruno Haible  <bruno@clisp.org>
54986
54987         * gnulib-tool (func_import): Comment out code that spits out the
54988         new files with --dry-run.
54989
54990 2005-09-18  Bruno Haible  <bruno@clisp.org>
54991
54992         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
54993
54994 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
54995
54996         * lib/stat-time.h: New file.
54997         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
54998         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
54999         in a different way.
55000         (timespec_cmp): New function.
55001         * lib/utimecmp.c: Include stat-time.h.
55002         (SYSCALL_RESOLUTION): Depend on whether various struct stat
55003         members exist, not on the obsolescent ST_MTIM_NSEC.
55004         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
55005
55006 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
55007
55008         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
55009
55010 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
55011
55012         * MODULES.html.sh (File system functions): Add stat-time.
55013         * modules/stat-time: New file.
55014         * modules/timespec (Files): Remove m4/st_mtim.m4; this
55015         is now done in a different way, by the stat-time module.
55016         * modules/utimecmp (Depends-on): Add stat-time.
55017
55018 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
55019
55020         * m4/st_mtim.m4: Remove.  Superseded by...
55021         * m4/stat-time.m4: New file.
55022         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
55023         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
55024
55025 2005-09-15  Derek Price  <derek@ximbiot.com>
55026
55027         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
55028
55029 2005-09-15  Derek Price  <derek@ximbiot.com>
55030
55031         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
55032         * lib/regex_internal.c: Ditto, using this...
55033         (__GNUC_PREREQ): ...new macro.
55034         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
55035         using...
55036         (__GNUC_PREREQ): ...this new macro.
55037
55038         * lib/strstr.h: Include string.h. Define strstr as a macro here.
55039
55040 2005-09-15  Derek Price  <derek@ximbiot.com>
55041             Paul Eggert  <eggert@cs.ucla.edu>
55042
55043         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
55044         changes, consolidating in...
55045         * lib/regex_internal.h: ...this file.
55046
55047 2005-09-13  Jim Meyering  <jim@meyering.net>
55048
55049         * lib/canon-host.c: Filter through gnu indent and reword comments
55050         slightly.
55051         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
55052
55053 2005-09-13  Derek Price  <derek@ximbiot.com>
55054
55055         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
55056         failure.
55057         Reported by Jim Meyering  <jim@meyering.net>.
55058
55059 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
55060
55061         * lib/base64.c: Typo.
55062         (base64_encode): Put b64str in initialized data section.
55063
55064 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
55065
55066         Merge glibc and coreutils changes into gnulib, plus a few
55067         extra fixes.
55068         * lib/md5.c: Use #error rather than a string.
55069         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
55070         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
55071         (__attribute__): Define to empty for non recent-GCC.
55072         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
55073         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
55074         Renamed from their non-__ counterparts, with new macros replacing
55075         them if not _LIBC.  Add __THROW attribute.
55076         (rol): Remove.
55077         (struct md5_ctx): Align buffer if using GCC.
55078         * lib/sha1.h (struct sha1_ctx): Likewise.
55079         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
55080         The old name was backwards.
55081         (NOTSWAP): Remove; not used.
55082         (rol): New macro, moved here from md5.h.
55083         (sha1_process_block): Remove a FIXME that doesn't make sense.
55084
55085 2005-09-12  Derek Price  <derek@ximbiot.com>
55086
55087         Return usable errors from canon-host.
55088         * lib/canon-host.h: New file.
55089         * lib/canon-host.c (canon_host): Wrap...
55090         (canon_host_r): ...this new function, which now relies exclusively on
55091         getaddrinfo.
55092         (ch_strerror): New function.
55093         (last_cherror): New global.
55094         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
55095         interface.
55096         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
55097         void *.
55098         (freeaddrinfo): Free ai->ai_canonname when set.
55099
55100 2005-09-12  Derek Price  <derek@ximbiot.com>
55101
55102         Make canon-host require getaddrinfo.
55103         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
55104         AC_LIBSOURCE canon-host.h.  Call...
55105         (gl_PREREQ_CANON_HOST): ...this new function, which requires
55106         gl_GETADDRINFO.
55107         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
55108
55109 2005-09-12  Derek Price  <derek@ximbiot.com>
55110
55111         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
55112         LGPL.
55113         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
55114
55115 2005-09-12  Derek Price  <derek@ximbiot.com>
55116
55117         * lib/gai_strerror.c: Include config.h when available.  Include
55118         getaddrinfo.h before other headers to test interface.
55119         Reported by Larry Jones <lawrence.jones@ugs.com>.
55120
55121 2005-09-12  Derek Price  <derek@ximbiot.com>
55122             Paul Eggert  <eggert@cs.ucla.edu>
55123
55124         * modules/glob (Files): Add glob-libc.h.
55125
55126 2005-09-12  Derek Price  <derek@ximbiot.com>
55127             Paul Eggert  <eggert@cs.ucla.edu>
55128
55129         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
55130         glob_.h, glob-libc.h.
55131         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
55132
55133 2005-09-12  Derek Price  <derek@ximbiot.com>
55134             Paul Eggert  <eggert@cs.ucla.edu>
55135
55136         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
55137         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
55138         protecting things that should be done only in gnulib contexts.
55139         * lib/glob_.h: New file, containing only the glob things needed for
55140         gnulib.
55141         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
55142         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
55143         (glob, globfree, glob_pattern_p): Now defined simply in terms of
55144         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
55145         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
55146         and to respect the namespace rules better.
55147
55148 2005-09-08  Simon Josefsson  <jas@extundo.com>
55149
55150         * modules/socklen: New file.
55151
55152 2005-09-08  Simon Josefsson  <jas@extundo.com>
55153
55154         * m4/socklen.m4: New file.
55155
55156 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55157
55158         * modules/utimens (Files): Add m4/utimbuf.m4, since
55159         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
55160         Reported by Sergey Poznyakoff.
55161
55162 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55163
55164         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
55165         definitions, since that's the preferred style in glibc.
55166         Fix a minor spacing issue, and update copyright notice to match
55167         glibc's.
55168
55169 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55170
55171         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
55172
55173 2005-09-06  Simon Josefsson  <jas@extundo.com>
55174
55175         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
55176         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
55177
55178 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
55179
55180         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
55181         warning.
55182
55183 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
55184
55185         * config/srclist.txt: Add glibc bug 1302.
55186
55187 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
55188
55189         Change bitset word type from unsigned int to unsigned long int,
55190         as this has better performance on typical 64-bit hosts.
55191         Port bitset code to hosts with unusual word sizes.
55192         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
55193         (build_collating_symbol):
55194         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
55195         argument is a bitset.  This is merely a style issue, but it makes
55196         it clearer that an entire array is expected.
55197         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
55198         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
55199         Port to the case where bitset_word is not the same as unsigned int.
55200         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
55201         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
55202         Likewise.
55203         * lib/regexec.c (check_dst_limits_calc_pos_1,
55204         check_subexp_matching_top):
55205         (build_trtable, group_nodes_into_DFAstates):
55206         Likewise.
55207         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
55208         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
55209         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
55210         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
55211         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
55212         * lib/regcomp.c (optimize_subexps, lower_subexp):
55213         Work even if bitset_word has holes in its bitwise representation.
55214         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
55215         * lib/regexec.c (check_dst_limits_calc_pos_1,
55216         check_subexp_matching_top):
55217         Likewise.
55218         * lib/regex_internal.c (re_string_reconstruct):
55219         Don't assume UCHAR_MAX == 255.
55220         * lib/regex_internal.h (bitset_set_all): Likewise.
55221         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
55222         All uses changed.
55223         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
55224         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
55225         All uses changed.
55226         (BITSET_WORD_MAX): New macro.
55227         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
55228         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
55229         (bitset_empty, bitset_copy):
55230         Prefer sizeof (bitset) to multiplying it out ourselves.
55231         (bitset_not_merge): Remove; unused.
55232         (bitset_contain): Return bool, not unsigned int with one bit on.
55233         All callers changed.
55234         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
55235         alignment than re_node_set; do this by defining a new internal
55236         type struct dests_alloc and using it to allocate memory.
55237
55238 2005-09-05  Bruno Haible  <bruno@clisp.org>
55239
55240         * gnulib-tool (func_import): Fix comparison in handling of symbolic
55241         links.
55242
55243 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
55244
55245         * modules/size_max (Makefile.am): Add size_max.h
55246
55247 2005-09-04  Derek Price  <derek@ximbiot.com>
55248
55249         * gnulib-tool (func_import): Fix reversed $symbolic logic.
55250
55251 2005-09-03  Simon Josefsson  <jas@extundo.com>
55252
55253         * gnulib-tool: Fix typo.
55254
55255 2005-09-03  Simon Josefsson  <jas@extundo.com>
55256
55257         * config/srclist.txt: Add glibc bug 1293.
55258
55259 2005-09-03  Derek Price  <derek@ximbiot.com>
55260
55261         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
55262         From Larry Jones <lawrence.jones@ugs.com>.
55263
55264 2005-09-02  Simon Josefsson  <jas@extundo.com>
55265
55266         * modules/socklen: New file.
55267
55268 2005-09-02  Simon Josefsson  <jas@extundo.com>
55269
55270         * modules/havelib: New module.
55271
55272         * modules/gettext, modules/iconv, modules/lock, modules/readline:
55273         Use havelib.
55274
55275 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
55276
55277         Check for arithmetic overflow when calculating sizes, to prevent
55278         some buffer-overflow issues.  These patches are conservative, in the
55279         sense that when I couldn't determine whether an overflow was possible,
55280         I inserted a run-time check.
55281         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
55282         macros.
55283         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
55284         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
55285         (re_xnrealloc, re_x2nrealloc): New inline functions.
55286         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
55287         parse_bracket_exp):
55288         (build_equiv_class, build_charclass): Check for arithmetic overflow
55289         in size expression calculations.
55290         * lib/regex_internal.c (re_string_realloc_buffers):
55291         (build_wcs_upper_buffer, re_node_set_add_intersect):
55292         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
55293         (re_dfa_add_node, register_state): Likewise.
55294         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
55295         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
55296         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
55297         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
55298
55299 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
55300
55301         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
55302         m4/ulonglong.m4.  Problem reported by Martin Lambers.
55303
55304 2005-09-02  Bruno Haible  <bruno@clisp.org>
55305
55306         Support for lib vs. lib64 distinction on biarch platforms.
55307         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
55308         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
55309         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
55310
55311 2005-09-02  Bruno Haible  <bruno@clisp.org>
55312
55313         * gnulib-tool (import): In the other first-use case, provide defaults
55314         as well.
55315
55316 2005-09-02  Bruno Haible  <bruno@clisp.org>
55317
55318         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
55319         patches not yet found in the latest gettext release.
55320
55321 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
55322
55323         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
55324         to avoid a collision with bits/local_lim.h in glibc.
55325         All uses changed.  Problem reported by Dmitry V. Levin in
55326         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
55327
55328         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
55329         bugs in int versus size_t comparisons.
55330         (re_string_context_at): Fix bug where the code assumed that
55331         Idx is signed.
55332
55333         Use bool where appropriate.
55334         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
55335         All callers changed.
55336         (calc_eclosure_iter): Likewise, for ROOT arg.
55337         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
55338         (build_charclass_op): Likewise, for NON_MATCH arg.
55339         * lib/regex_internal.c (re_string_allocate, re_string_construct):
55340         (re_string_construct_common): Likewise, for ICASE arg.
55341         * lib/regexec.c (re_search_2_stub, re_search_stub):
55342         Likewise, for RET_LEN arg.
55343         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
55344         (set_regs): Likewise, for FL_BACKTRACK arg.
55345         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
55346         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
55347         (calc_eclosure_iter, parse_bracket_exp):
55348         Use bool for internal variables that are booleans.
55349         * lib/regexec.c (re_search_internal, check_matching,
55350         proceed_next_node):
55351         (set_regs, build_sifted_states, sift_states_bkref):
55352         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
55353         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
55354         (find_collation_sequence_value):
55355         Likewise.
55356         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
55357         (re_node_set_compare):
55358         Return bool, not int. All callers changed.
55359         * lib/regexec.c (check_halt_node_context, check_dst_limits):
55360         (build_trtable, check_node_accept): Likewise.
55361         * lib/regex_internal.h: Include stdbool.h.
55362
55363         Fix bugs uncovered when converting to bool.
55364         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
55365         failure instead of charging ahead blindly.
55366         * lib/regex_internal.c (register_state): Likewise.
55367         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
55368         for freeing internal storage.
55369         (group_nodes_into_DFA_states): Use unsigned int, not int, for
55370         bitset pieces used as boolean, to avoid undefined behavior
55371         on hosts that do int overflow checking.
55372
55373 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
55374
55375         * config/srclist.txt: Add glibc bugs 1285-1287.
55376
55377 2005-09-01  Jim Meyering  <jim@meyering.net>
55378
55379         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
55380         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
55381         Require gl_STAT_MACROS, too.
55382
55383 2005-09-01  Bruno Haible  <bruno@clisp.org>
55384
55385         * gnulib-tool (import): In the first-use case, provide defaults.
55386
55387 2005-09-01  Bruno Haible  <bruno@clisp.org>
55388
55389         * gnulib-tool (func_import): Remove the .tmp files.
55390
55391 2005-09-01  Bruno Haible  <bruno@clisp.org>
55392
55393         * gnulib-tool (func_import): Fix handling of symbolic links.
55394
55395 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55396
55397         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
55398         old glibc regex code mishandles strings longer than 2**31 bytes.
55399         This patch fixes this when the regex code is used in gnulib
55400         (i.e., outside glibc).
55401
55402         This patch should not affect the use of the regex code inside
55403         glibc.  No doubt this problem also needs to be handled for glibc
55404         as well, but the result will be an incompatible change to the
55405         glibc ABI, and the old ABI will have to be supported too.  That
55406         can be the the subject for another patch.
55407
55408         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
55409         governing whether the rest of this patch is active.  By default,
55410         the macro is disabled and the patch has no effect.
55411         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
55412         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
55413         (struct re_pattern_buffer, re_search, re_search_2, re_match):
55414         (re_match_2, re_set_registers): Use the new types.
55415         * lib/regex_internal.h (Idx, re_hashval_t): New types.
55416         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
55417         New macros.
55418         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
55419         (re_string_context_at, bin_tree_t, re_dfastate_t):
55420         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
55421         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
55422         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
55423         (re_string_char_size_at, re_string_wchar_at):
55424         (re_string_elem_size_at):
55425         Use the new types and macros to port to 64-bit hosts.
55426         Use unsigned types for internal values, so that the code
55427         mostly works even for arrays larger than SSIZE_MAX.
55428         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
55429         (search_duplicated_node, calc_eclosure_iter, fetch_number):
55430         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
55431         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
55432         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
55433         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
55434         (calc_inveclosure, parse_dup_op, build_range_exp):
55435         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
55436         (fetch_number, create_token_tree, mark_opt_subexp):
55437         Likewise.
55438         * lib/regex_internal.c (re_string_construct_common,
55439         create_ci_newstate):
55440         (create_cd_newstate, re_string_allocate, re_string_construct):
55441         (re_string_realloc_buffers, build_wcs_upper_buffer):
55442         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
55443         (re_string_reconstruct, re_string_peek_byte_case):
55444         (re_string_fetch_byte_case, re_string_context_at):
55445         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
55446         (re_node_set_init_copy, re_node_set_add_intersect):
55447         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
55448         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
55449         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
55450         (re_acquire_state, re_acquire_state_context, register_state):
55451         Likewise.
55452         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
55453         search_cur_bkref_entry):
55454         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
55455         (re_search_internal, re_search_2_stub, re_search_stub)
55456         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
55457         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
55458         (update_cur_sifted_state, check_dst_limits):
55459         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
55460         (check_subexp_limits, sift_states_bkref, merge_state_array):
55461         (check_subexp_matching_top, get_subexp, get_subexp_sub):
55462         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
55463         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
55464         (expand_bkref_cache, check_node_accept_bytes):
55465         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
55466         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
55467         (acquire_init_state_context, check_halt_node_context):
55468         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
55469         (sift_states_backward, clean_state_log_if_needed):
55470         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
55471         (find_recover_state, transit_state_sb, transit_state_mb):
55472         (transit_state_bkref, build_trtable, match_ctx_clean):
55473         Likewise.
55474         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
55475         to work around an assumption that REG_MISSING is negative.
55476
55477         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
55478         (seek_collating_symbol_entry) [defined _LIBC]:
55479         (lookup_collation_sequence_value) [defined _LIBC]:
55480         (build_range_exp, build_collating_symbol) [defined _LIBC]:
55481         Use prototypes rather than old-style function definitions.
55482         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
55483         (transit_state_sb) [0]:
55484         (find_collation_sequence_value) [defined _LIBC]: Likewise.
55485
55486         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
55487         rm_eo.
55488
55489         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
55490         (optimize_subexps, lower_subexp):
55491         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
55492         since the signed shift might overflow.  Use 1u<<31 instead.
55493         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
55494         Likewise.
55495         * lib/regexec.c (check_dst_limits_calc_pos_1,
55496         check_subexp_matching_top): Likewise.
55497
55498         * lib/regcomp.c (optimize_subexps, lower_subexp):
55499         Use CHAR_BIT rather than 8, for clarity.
55500         * lib/regexec.c (check_dst_limits_calc_pos_1):
55501         (check_subexp_matching_top): Likewise.
55502         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
55503         have to worry about portability issues when shifting it left.
55504         Remove no-longer-needed test for table_size > 0.
55505         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
55506         in a word, as the resulting behavior is undefined.
55507         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
55508         in one case, a <= should have been an <, and in another case the
55509         whole test was missing.
55510         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
55511         the standard name CHAR_BIT.
55512         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
55513         this is not true on one's complement and signed-magnitude hosts.
55514
55515         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
55516         next_last_offset.
55517         (struct re_dfa_t): Remove unused member states_alloc.
55518         * lib/regcomp.c (init_dfa): Don't initialize unused members.
55519
55520 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55521
55522         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
55523         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
55524         and large-file glibc and in 32-bit large-file Solaris.
55525
55526 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55527
55528         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
55529         lengths fit in regoff_t; this isn't true if regoff_t is the same
55530         width as size_t.
55531         * lib/regex.c (re_search_internal): 5th arg is LAST_START
55532         (= START + RANGE) instead of RANGE.  This avoids overflow
55533         problems when regoff_t is the same width as size_t.
55534         All callers changed.
55535         (re_search_2_stub): Check for overflow when adding the
55536         sizes of the two strings.
55537         (re_search_stub): Check for overflow when adding START
55538         to RANGE; if it occurs, substitute the extreme value.
55539
55540 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55541
55542         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
55543
55544 2005-08-31  Jim Meyering  <jim@meyering.net>
55545
55546         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
55547         a pointer-to-const.
55548         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
55549         (register_state): Likewise.
55550         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
55551         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
55552         (group_nodes_into_DFAstates): Likewise.
55553
55554 2005-08-31  Jim Meyering  <jim@meyering.net>
55555
55556         * check-module: Add a FIXME comment.
55557
55558 2005-08-31  Eric Blake  <ebb9@byu.net>
55559
55560         * modules/unistd-safer (Files): Add unistd--.h.
55561         * modules/stdio-safer (Files): Add stdio--.h.
55562
55563 2005-08-31  Derek Price  <derek@ximbiot.com>
55564
55565         * lib/getdelim.c (getdelim): Return EOF on EOF.
55566         Reported by Larry Jones <lawrence.jones@ugs.com>.
55567
55568 2005-08-31  Bruno Haible  <bruno@clisp.org>
55569
55570         Avoid unnecessary diffs in the generated lib/Makefile.am.
55571         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
55572         the generated files.
55573         (func_import): Don't set cmd.
55574
55575 2005-08-31  Bruno Haible  <bruno@clisp.org>
55576
55577         * lib/strstr.c: Include <stddef.h>, for NULL.
55578         * lib/strcasestr.c: Likewise.
55579         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55580
55581 2005-08-31  Bruno Haible  <bruno@clisp.org>
55582
55583         * gnulib-tool: New option --macro-prefix.
55584         (func_import): Use macro_prefix.
55585         (import): Handle option --macro-prefix.
55586
55587 2005-08-31  Bruno Haible  <bruno@clisp.org>
55588
55589         * gnulib-tool (import): Rename most ac_* variables to cached_*.
55590         Also use new variables cached_lgpl, cached_libtool.
55591
55592 2005-08-31  Bruno Haible  <bruno@clisp.org>
55593
55594         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
55595         always instantiating them.
55596
55597 2005-08-31  Bruno Haible  <bruno@clisp.org>
55598
55599         * gnulib-tool (func_import): Read the previous cached settings
55600         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
55601         earlier added by gnulib but are now dropped. Warn when a gnulib file
55602         overwrites a non-gnulib file.
55603
55604 2005-08-31  Bruno Haible  <bruno@clisp.org>
55605
55606         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
55607         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
55608         projects that don't keep autogenerated files in CVS. Put into
55609         actioncmd only the specified modules, not the transitive closure.
55610
55611 2005-08-31  Bruno Haible  <bruno@clisp.org>
55612
55613         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
55614         Create directories that shall be filled.
55615         (import): Don't look for gl_* macros in configure.ac. Recurse across
55616         all directories containing a gnulib-cache.m4 files, if meaningful.
55617
55618 2005-08-31  Bruno Haible  <bruno@clisp.org>
55619
55620         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
55621         (import): Set seen_libtool when we see gl_LIBTOOL.
55622
55623 2005-08-31  Bruno Haible  <bruno@clisp.org>
55624
55625         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
55626         declaration macro definitions from generated gnulib.m4.
55627
55628 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
55629
55630         * lib/iconvme.h: Add prototype for iconv_alloc.
55631
55632 2005-08-29  Simon Josefsson  <jas@extundo.com>
55633
55634         * lib/iconvme.c: Fix errno.
55635
55636 2005-08-29  Bruno Haible  <bruno@clisp.org>
55637
55638         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
55639         that it works when the directory contains spaces.
55640
55641 2005-08-29  Bruno Haible  <bruno@clisp.org>
55642
55643         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
55644
55645 2005-08-29  Bruno Haible  <bruno@clisp.org>
55646
55647         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
55648         Emit more advice.
55649
55650 2005-08-29  Bruno Haible  <bruno@clisp.org>
55651         and Stepan Kasal  <kasal@ucw.cz>
55652
55653         * check-module: If more parameters are given, check each of them
55654         separately; add more exceptions, as noted by Jim Meyering.
55655         (check_module): New procedure.
55656         (%exempt_header): Now contains all exceptions.
55657
55658 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
55659
55660         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
55661
55662 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
55663
55664         * lib/iconvme.c: Split iconv_string into iconv_alloc.
55665
55666 2005-08-28  Bruno Haible  <bruno@clisp.org>
55667
55668         * m4/gnulib-tool.m4: New file.
55669
55670 2005-08-27  Jim Meyering  <jim@meyering.net>
55671
55672         * modules/unistd-safer (Files): Add pipe-safer.c.
55673         * modules/fcntl-safer (Files): Add creat-safer.c.
55674
55675 2005-08-27  Jim Meyering  <jim@meyering.net>
55676
55677         * m4/stdlib-safer.m4: New file.  From coreutils.
55678         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
55679         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
55680         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
55681         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
55682         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
55683
55684 2005-08-27  Jim Meyering  <jim@meyering.net>
55685
55686         * lib/fopen-safer.c: Merge minor changes from coreutils.
55687         * lib/dup-safer.c: Likewise.
55688         * lib/fd-safer.c: Likewise.
55689
55690         Merge from coreutils.
55691         * lib/stdio--.h: New file.
55692         * lib/stdlib--.h: New file.
55693         * lib/mkstemp-safer.c: New file.
55694
55695         GNU tar needs these.
55696         * lib/pipe-safer.c: New file.
55697         * lib/creat-safer.c: New file.
55698         * lib/fcntl--.h (creat): Define to creat_safer.
55699         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
55700         * lib/unistd--.h (pipe): Define to pipe_safer.
55701         * lib/unistd-safer.h: Declare pipe_safer.
55702
55703 2005-08-26  Simon Josefsson  <jas@extundo.com>
55704
55705         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
55706         Haible <bruno@clisp.org>.
55707
55708 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
55709
55710         * lib/regex_internal.h: Remove all references to
55711         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
55712         or better.
55713         (bitset_not, bitset_merge, bitset_not_merge):
55714         (bitset_mask, re_string_allocate, re_string_construct):
55715         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
55716         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
55717         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
55718         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
55719         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
55720         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
55721         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
55722         (re_acquire_state_context):
55723         Remove unnecessary forward decls.
55724         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
55725         Put __attribute at function definition,
55726         now that the function decl has been removed.
55727         * lib/regex_internal.c (re_string_peek_byte_case):
55728         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
55729         Likewise.
55730
55731 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
55732
55733         * m4/regex.m4: Add AC_PREREQ(2.50).
55734         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
55735
55736 2005-08-25  Simon Josefsson  <jas@extundo.com>
55737
55738         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
55739         __fsetlocking.
55740
55741 2005-08-25  Simon Josefsson  <jas@extundo.com>
55742
55743         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
55744         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
55745         GLIBC specific code.
55746
55747 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55748
55749         Make regex safe for g++.  This fixes one real bug (an "err"
55750         that should have been "*err").  g++ problem reported by
55751         Sam Steingold.
55752         * lib/regex_internal.h (re_calloc): New macro, consistent with
55753         re_malloc etc.  All callers of calloc changed to use re_calloc.
55754         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
55755         not int.  All callers changed.
55756         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
55757         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
55758         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
55759         (find_recover_state): Change "err" to "*err"; this fixes what
55760         appears to be a real bug.
55761         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
55762         versus int.
55763
55764 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55765
55766         * modules/regex (Depends-on): Add malloc, since the code
55767         assumes that !malloc(0) means failure.
55768
55769 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55770
55771         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
55772
55773         alloca modernization/simplification for regex.
55774         * lib/regex.c: Remove portability cruft for alloca.  This no longer
55775         needs to be at the start of the file, and can be moved into
55776         regex_internal.h and simplified.
55777         * lib/regex_internal.h: Include <alloca.h>.
55778         (__libc_use_alloca) [!defined _LIBC]: New macro.
55779         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
55780         now works outside glibc.
55781
55782 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55783
55784         * config/srclist.txt: Add glibc bugs 1241, 1245.
55785
55786 2005-08-25  Jim Meyering  <jim@meyering.net>
55787
55788         * lib/open-safer.c: Include <config.h>.
55789         Otherwise, we'd lose LARGEFILE support in any file using
55790         e.g. "fcntl--.h"
55791
55792 2005-08-25  Bruno Haible  <bruno@clisp.org>
55793
55794         * m4/minmax.m4: Require autoconf 2.52.
55795         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
55796         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
55797         alternatives of translit over the alphabet.
55798         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
55799
55800 2005-08-24  Simon Josefsson  <jas@extundo.com>
55801
55802         * tests/test-getpass.c: New file.
55803
55804 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
55805
55806         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
55807         for GNU regex features.
55808
55809 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
55810
55811         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
55812         * lib/regex.h (regerror): Likewise.
55813
55814         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
55815         requires this.  (The code never needed it.)
55816
55817         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
55818         All uses of recently-renamed identifiers changed to use the new,
55819         POSIX-compliant names.  The code will build and run just fine
55820         without these changes, but it's better to eat our own dog food
55821         and use the standard-conforming names.
55822
55823         * lib/regex.h: Fix a multitude of POSIX name space violations.
55824         These changes have an effect only for programs that define
55825         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
55826         do not change anything for programs compiled in the normal way.
55827         Also, there is no effect on the ABI.
55828
55829         (_REGEX_SOURCE): New macro.
55830         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
55831         defined and _GNU_SOURCE is not; this fixes a name space violation.
55832
55833         Rename the following macros to obey POSIX requirements.
55834         The old names are still visible as macros if _REGEX_SOURCE is defined.
55835         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
55836         RE_BACKSLASH_ESCAPE_IN_LISTS.
55837         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
55838         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
55839         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
55840         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
55841         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
55842         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
55843         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
55844         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
55845         (REG_INTERVALS): renamed from RE_INTERVALS.
55846         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
55847         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
55848         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
55849         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
55850         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
55851         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
55852         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
55853         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
55854         RE_UNMATCHED_RIGHT_PAREN_ORD.
55855         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
55856         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
55857         (REG_DEBUG): renamed from RE_DEBUG.
55858         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
55859         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
55860         unusual, since we can't clash with the POSIX REG_ICASE.
55861         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
55862         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
55863         (REG_NO_SUB): renamed from RE_NO_SUB.
55864         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
55865         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
55866         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
55867         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
55868         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
55869         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
55870         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
55871         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
55872         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
55873         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
55874         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
55875         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
55876         RE_SYNTAX_POSIX_MINIMAL_BASIC.
55877         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
55878         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
55879         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
55880         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
55881         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
55882         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
55883         (REG_FIXED): Renamed from REGS_FIXED.
55884         (REG_NREGS): Renamed from RE_NREGS.
55885
55886         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
55887         of other REG_* macros, since POSIX says the user is allowed to
55888         #undef these macros selectively.
55889
55890         (reg_errcode_t): Update comment stating what other tables need
55891         to be consistent.
55892
55893         Rename the following enum values to obey POSIX requirements.
55894         The old names are still visible as macros.
55895         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
55896         is not defined, since GNU is supposed to be a superset of POSIX as
55897         much as possible, and since we want reg_errcode_t to be a signed
55898         type for implementation consistency.
55899         (_REG_NOERROR): Renamed from REG_NOERROR.
55900         (_REG_NOMATCH): Renamed from REG_NOMATCH.
55901         (_REG_BADPAT): Renamed from REG_BADPAT.
55902         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
55903         (_REG_ECTYPE): Renamed from REG_ECTYPE.
55904         (_REG_EESCAPE): Renamed from REG_EESCAPE.
55905         (_REG_ESUBREG): Renamed from REG_ESUBREG.
55906         (_REG_EBRACK): Renamed from REG_EBRACK.
55907         (_REG_EPAREN): Renamed from REG_EPAREN.
55908         (_REG_EBRACE): Renamed from REG_EBRACE.
55909         (_REG_BADBR): Renamed from REG_BADBR.
55910         (_REG_ERANGE): Renamed from REG_ERANGE.
55911         (_REG_ESPACE): Renamed from REG_ESPACE.
55912         (_REG_BADRPT): Renamed from REG_BADRPT.
55913         (_REG_EEND): Renamed from REG_EEND.
55914         (_REG_ESIZE): Renamed from REG_ESIZE.
55915         (_REG_ERPAREN): Renamed from REG_ERPAREN.
55916         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
55917         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
55918         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
55919         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
55920
55921         (_REG_RE_NAME, _REG_RM_NAME): New macros.
55922         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
55923         changed.  But support the old name if the new one is not defined
55924         and if _REGEX_SOURCE.
55925
55926         Change the following member names in struct re_pattern_buffer.
55927         The old names are still supported if !_REGEX_SOURCE.
55928         The new names are always supported, regardless of _REGEX_SOURCE.
55929         (re_buffer): Renamed from buffer.
55930         (re_allocated): Renamed from allocated.
55931         (re_used): Renamed from used.
55932         (re_syntax): Renamed from syntax.
55933         (re_fastmap): Renamed from fastmap.
55934         (re_translate): Renamed from translate.
55935         (re_can_be_null): Renamed from can_be_null.
55936         (re_regs_allocated): Renamed from regs_allocated.
55937         (re_fastmap_accurate): Renamed from fastmap_accurate.
55938         (re_no_sub): Renamed from no_sub.
55939         (re_not_bol): Renamed from not_bol.
55940         (re_not_eol): Renamed from not_eol.
55941         (re_newline_anchor): Renamed from newline_anchor.
55942
55943         Change the following member names in struct re_registers.
55944         The old names are still supported if !_REGEX_SOURCE.
55945         The new names are always supported, regardless of _REGEX_SOURCE.
55946         (rm_num_regs): Renamed from num_regs.
55947         (rm_start): Renamed from start.
55948         (rm_end): Renamed from end.
55949
55950         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
55951         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
55952         Prepend __ to parameter names.
55953
55954         Undo yesterday's changes.
55955
55956 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
55957
55958         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
55959         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
55960         lib/regex.c.
55961
55962 2005-08-24  Jim Meyering  <jim@meyering.net>
55963
55964         Sync from coreutils.
55965         * m4/fcntl-safer.m4: New file.
55966
55967         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
55968         and object files for this module.
55969
55970 2005-08-24  Jim Meyering  <jim@meyering.net>
55971
55972         Sync from coreutils.
55973         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
55974
55975 2005-08-24  Jim Meyering  <jim@meyering.net>
55976
55977         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
55978         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
55979
55980 2005-08-24  Jim Meyering  <jim@meyering.net>
55981
55982         * modules/fcntl-safer: New module.
55983         * modules/fts (Depends-on): Add fcntl-safer.
55984         * MODULES.html.sh (File descriptor based Input/Output):
55985         Add fcntl-safer.
55986
55987 2005-08-24  Bruno Haible  <bruno@clisp.org>
55988
55989         Support for unit test modules.
55990         * modules/README: Mention tests modules.
55991         * modules/TEMPLATE-TESTS: New file.
55992         * gnulib-tool: New options --extract-tests-module, --with-tests and
55993         --tests-base (unused for the moment).
55994         (testsbase, inctests): New variables.
55995         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
55996         (func_verify_module): Exclude TEMPLATE-TESTS.
55997         (func_verify_nontests_module, func_verify_tests_module): New functions.
55998         (func_get_dependencies): Add implicit dependency for tests modules.
55999         (func_get_tests_module): New function.
56000         (func_modules_transitive_closure): When --with-tests was specified,
56001         include the unit tests as well, unless explicitly avoided.
56002         (func_emit_lib_Makefile_am): Ignore the tests modules here.
56003         (func_emit_tests_Makefile_am): New function.
56004         (func_create_testdir): When --with-tests was specified, emit a
56005         tests/ directory.
56006         * MODULES.html.sh (Future developments): Update.
56007
56008 2005-08-24  Bruno Haible  <bruno@clisp.org>
56009
56010         * modules/tls-tests: New file.
56011         * tests/test-tls.c: New file, from GNU gettext.
56012
56013 2005-08-24  Bruno Haible  <bruno@clisp.org>
56014
56015         * modules/lock-tests: New file.
56016         * tests/test-lock.c: New file, from GNU gettext.
56017
56018 2005-08-24  Bruno Haible  <bruno@clisp.org>
56019
56020         * lib/lock.h: Add multiple inclusion guard.
56021         * lib/tls.h: Add multiple inclusion guard.
56022
56023 2005-08-24  Bruno Haible  <bruno@clisp.org>
56024
56025         * gnulib-tool: Add support for the --aux-dir option to
56026         --create-testdir, --create-megatestdir, --test, --megatest.
56027         (func_create_testdir, func_create_megatestdir): Optionally emit a
56028         AC_CONFIG_AUX_DIR directive.
56029         (create-testdir, create-megatestdir, test, megatest): Provide a
56030         default value for $auxdir.
56031
56032 2005-08-24  Bruno Haible  <bruno@clisp.org>
56033
56034         * gnulib-tool (import): Use compound statement instead of subshell
56035         where possible.
56036
56037 2005-08-24  Bruno Haible  <bruno@clisp.org>
56038
56039         * gnulib-tool (import): Change --aux-dir default to "build-aux".
56040
56041 2005-08-24  Bruno Haible  <bruno@clisp.org>
56042
56043         * gnulib-tool (func_version): Update.
56044
56045 2005-08-24  Bruno Haible  <bruno@clisp.org>
56046
56047         * gnulib-tool (func_import, func_create_testdir,
56048         func_create_megatestdir): Quote all autoconf macro arguments.
56049
56050 2005-08-24  Bruno Haible  <bruno@clisp.org>
56051
56052         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
56053         option --force, because --force causes the aclocal.m4 of each
56054         subdirectory to be newer than the corresponding config.h.in.
56055
56056 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
56057
56058         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
56059         All contents moved to gl_REGEX.
56060         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
56061         assume that it does.
56062
56063 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
56064
56065         * lib/regex.h (REG_NOSYS)
56066         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
56067         Define, since POSIX requires it as of 2001.
56068         (_REG_ENOSYS)
56069         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
56070         New private symbol, used to keep the enum signed in all cases.
56071         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
56072         Youngman in
56073         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
56074
56075         * lib/regex_internal.c (re_string_skip_chars, register_state):
56076         (calc_state_hash):
56077         Remove forward decls; no longer needed now that we use prototypes.
56078         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
56079         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
56080         (clean_state_log_if_needed): Likewise.
56081
56082 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
56083
56084         * config/srclist.txt: Add glibc bugs 1231-1233.
56085
56086 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56087
56088         Fix problems reported by Sam Steingold in
56089         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
56090         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
56091         assumed that reg_errcode_t is a signed type, which is not
56092         necessarily true if _XOPEN_SOURCE is not defined.
56093         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
56094         since some compilers warn about it otherwise.
56095
56096 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56097
56098         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
56099         (init_word_char, create_initial_state, duplicate_node_closure):
56100         (fetch_token, peek_token_bracket, build_range_exp):
56101         (build_collating_symbol): Remove forward decls; no longer needed
56102         now that we use prototypes.
56103
56104         * lib/regcomp.c:
56105         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
56106         (re_compile_fastmap_iter, regcomp, regerror, regfree):
56107         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
56108         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
56109         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
56110         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
56111         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
56112         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
56113         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
56114         (build_range_exp, build_collating_symbol, parse_bracket_exp):
56115         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
56116         (build_charclass, build_charclass_op, fetch_number, create_tree):
56117         (create_token_tree, mark_opt_subexp, duplicate_tree):
56118         Use prototypes rather than old-style definitions.
56119
56120         * lib/regex_internal.c:
56121         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
56122         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
56123         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
56124         (re_string_reconstruct, re_string_peek_byte_case):
56125         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
56126         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
56127         (re_node_set_init_copy, re_node_set_add_intersect):
56128         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
56129         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
56130         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
56131         (re_acquire_state, re_acquire_state_context, register_state):
56132         (create_ci_newstate, create_cd_newstate, free_state):
56133         Likewise.
56134         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
56135         re_search_2):
56136         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
56137         (re_search_internal, prune_impossible_nodes):
56138         (acquire_init_state_context, check_matching, static):
56139         (check_halt_node_context, check_halt_state_context, proceed_next_node):
56140         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
56141         (update_regs, sift_states_backward, build_sifted_states):
56142         (clean_state_log_if_needed, merge_state_array):
56143         (update_cur_sifted_state, add_epsilon_src_nodes):
56144         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
56145         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
56146         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
56147         (find_recover_state, check_subexp_matching_top, transit_state_mb):
56148         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
56149         (check_arrival, check_arrival_add_next_nodes):
56150         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
56151         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
56152         (check_node_accept_bytes, check_node_accept, extend_buffers):
56153         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
56154         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
56155         (sift_ctx_init):
56156         Likewise.
56157
56158         * lib/regex_internal.h:
56159         (re_string_allocate, re_string_construct, re_string_reconstruct):
56160         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
56161         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
56162         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
56163         (re_string_context_at, re_string_peek_byte_case):
56164         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
56165         is defined, since we now use prototypes always.
56166
56167         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
56168         C89 or better.  All uses removed.
56169
56170 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56171
56172         * config/srclist.txt: Add glibc bugs 1220-1227.
56173
56174 2005-08-20  Jim Meyering  <jim@meyering.net>
56175
56176         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
56177         of unused local, dfa.
56178
56179 2005-08-20  Bruno Haible  <bruno@clisp.org>
56180
56181         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
56182
56183 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56184
56185         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
56186         (re_node_set_insert_last, re_dfa_add_node):
56187         Rename local variables to avoid GCC shadowing warnings.
56188
56189 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56190
56191         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
56192         [defined lint]: Suppress bogus uninitialized-variable warnings.
56193
56194         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
56195         and let the caller return REG_ESPACE if out of space.  This
56196         removes an uninitialied-variable warning with GCC 4.0.1, and also
56197         avoids taking the address of a local variable.  All callers
56198         changed.
56199
56200 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56201
56202         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
56203         $LIBCSRC/posix/regexec.c.
56204         Add glibc bug 1217 for regcomp.c.
56205
56206 2005-08-19  Jim Meyering  <jim@meyering.net>
56207
56208         * lib/regexec.c (proceed_next_node): Redo local variables to
56209         avoid GCC shadowing warnings.
56210
56211 2005-08-18  Bruno Haible  <bruno@clisp.org>
56212
56213         * lib/strstr.c (strstr): Fix return value in multibyte case.
56214         * lib/strcasestr.c (strcasestr): Likewise.
56215
56216 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
56217
56218         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
56219
56220 2005-08-17  Jim Meyering  <jim@meyering.net>
56221
56222         Make the %s format (seconds since the epoch) work for a negative
56223         number and when used with a zero-padded field width, e.g. %015s.
56224
56225         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
56226         label so that it precedes the code to set `digits'.  Otherwise,
56227         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
56228         print `00-22'.  Now, it prints `-0022', as it should.
56229
56230 2005-08-17  Bruno Haible  <bruno@clisp.org>
56231
56232         * modules/strstr (Files): Add m4/mbrtowc.m4.
56233         (Depends-on): Add mbuiter.
56234
56235 2005-08-17  Bruno Haible  <bruno@clisp.org>
56236
56237         * modules/strcasestr: New file.
56238         * MODULES.html.sh (String handling, based on ANSI C 89): Add
56239         strcasestr.
56240
56241 2005-08-17  Bruno Haible  <bruno@clisp.org>
56242
56243         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
56244
56245 2005-08-17  Bruno Haible  <bruno@clisp.org>
56246
56247         * modules/mbuiter: New file.
56248         * MODULES.html.sh (Extended multibyte and wide character utilities):
56249         Add mbuiter.
56250
56251 2005-08-17  Bruno Haible  <bruno@clisp.org>
56252
56253         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
56254         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
56255
56256 2005-08-17  Bruno Haible  <bruno@clisp.org>
56257
56258         * m4/strcasestr.m4: New file.
56259
56260 2005-08-17  Bruno Haible  <bruno@clisp.org>
56261
56262         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
56263         * lib/strstr.c: Completely rewritten, with multibyte locale support.
56264
56265 2005-08-17  Bruno Haible  <bruno@clisp.org>
56266
56267         * lib/strcasestr.h: New file.
56268         * lib/strcasestr.c: New file.
56269
56270 2005-08-17  Bruno Haible  <bruno@clisp.org>
56271
56272         * lib/strcasecmp.c: Use mbuiter.h.
56273
56274 2005-08-17  Bruno Haible  <bruno@clisp.org>
56275
56276         * lib/mbuiter.h: New file.
56277
56278 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
56279
56280         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
56281         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
56282         and gl_GETOPT are both invoked via different paths (as happens
56283         with GNU tar CVS because it uses both argp and getopt), the former
56284         wins.
56285
56286 2005-08-16  Bruno Haible  <bruno@clisp.org>
56287
56288         * modules/tls: New file.
56289         * MODULES.html.sh (Multithreading): Add tls.
56290
56291 2005-08-16  Bruno Haible  <bruno@clisp.org>
56292
56293         * modules/strnlen1: New file.
56294         * MODULES.html.sh (String handling): Add strnlen1.
56295
56296 2005-08-16  Bruno Haible  <bruno@clisp.org>
56297
56298         * modules/strcase (Files): Add m4/mbrtowc.m4.
56299         (Depends-on): Add strnlen1, mbchar.
56300
56301 2005-08-16  Bruno Haible  <bruno@clisp.org>
56302
56303         * modules/mbiter: New file.
56304         * MODULES.html.sh (Extended multibyte and wide character utilities):
56305         Add mbiter.
56306
56307 2005-08-16  Bruno Haible  <bruno@clisp.org>
56308
56309         * modules/mbfile: New file.
56310         * MODULES.html.sh (Extended multibyte and wide character utilities):
56311         Add mbfile.
56312
56313 2005-08-16  Bruno Haible  <bruno@clisp.org>
56314
56315         * modules/mbchar: New file.
56316         * MODULES.html.sh (Extended multibyte and wide character utilities):
56317         New section.
56318
56319 2005-08-16  Bruno Haible  <bruno@clisp.org>
56320
56321         * m4/tls.m4: New file, from GNU gettext.
56322
56323 2005-08-16  Bruno Haible  <bruno@clisp.org>
56324
56325         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
56326         always.
56327         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
56328
56329 2005-08-16  Bruno Haible  <bruno@clisp.org>
56330
56331         * m4/mbiter.m4: New file.
56332
56333 2005-08-16  Bruno Haible  <bruno@clisp.org>
56334
56335         * m4/mbfile.m4: New file.
56336
56337 2005-08-16  Bruno Haible  <bruno@clisp.org>
56338
56339         * m4/mbchar.m4: New file.
56340
56341 2005-08-16  Bruno Haible  <bruno@clisp.org>
56342
56343         * lib/tls.h: New file, from GNU gettext.
56344         * lib/tls.c: New file, from GNU gettext.
56345
56346 2005-08-16  Bruno Haible  <bruno@clisp.org>
56347
56348         * lib/strnlen1.h: New file.
56349         * lib/strnlen1.c: New file.
56350
56351 2005-08-16  Bruno Haible  <bruno@clisp.org>
56352
56353         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
56354         (mbi_init): Update.
56355         (mbi_avail, mbi_advance): Let the iteration end before the terminating
56356         NUL byte, not after it.
56357
56358 2005-08-16  Bruno Haible  <bruno@clisp.org>
56359
56360         * lib/strcase.h (strcasecmp): Add note in comments.
56361         * lib/strncasecmp.c: Use code from strcasecmp.c.
56362         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
56363         (strcasecmp): Work correctly in multibyte locales.
56364
56365 2005-08-16  Bruno Haible  <bruno@clisp.org>
56366
56367         * lib/mbiter.h: New file.
56368
56369 2005-08-16  Bruno Haible  <bruno@clisp.org>
56370
56371         * lib/mbfile.h: New file.
56372
56373 2005-08-16  Bruno Haible  <bruno@clisp.org>
56374
56375         * lib/mbchar.h: New file.
56376         * lib/mbchar.c: New file.
56377
56378 2005-08-16  Bruno Haible  <bruno@clisp.org>
56379
56380         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
56381         the valid ones. Makes the comparison operations transitive:
56382         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
56383         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
56384
56385 2005-08-15  Simon Josefsson  <jas@extundo.com>
56386
56387         * modules/ssize_t (License): Change to 'unlimited'.
56388
56389         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
56390
56391 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
56392
56393         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
56394         Add comments for each pending glibc patch.
56395
56396 2005-08-15  Bruno Haible  <bruno@clisp.org>
56397
56398         * lib/regex.h (__restrict_arr): Don't define to __restrict if
56399         __cplusplus is defined.
56400
56401 2005-08-14  Jim Meyering  <jim@meyering.net>
56402
56403         Sync from coreutils.
56404
56405         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
56406         Use the hash-table-based cycle-detection code not just when
56407         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
56408         Reported by James Youngman in
56409         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
56410         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
56411         FTS_TIGHT_CYCLE_CHECK.
56412         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
56413         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
56414         once again.
56415         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
56416         * lib/fts.c (fd_safer): Remove decl.
56417         Include fcntl--.h rather than unistd-safer.h
56418         (fts_safe_changedir): Don't call fd_safer; no longer needed
56419         now that we include fcntl--.h.
56420
56421 2005-08-12  Simon Josefsson  <jas@extundo.com>
56422
56423         * modules/getndelim2: Use ssize_t module.
56424         * modules/getnline: Likewise.
56425         * modules/safe-read: Likewise.
56426         * modules/xreadlink: Likewise.
56427
56428         * modules/ssize_t: New file.
56429
56430 2005-08-12  Simon Josefsson  <jas@extundo.com>
56431
56432         * m4/readline.m4: Look for termcap, curses or ncurses if required.
56433
56434 2005-08-12  Simon Josefsson  <jas@extundo.com>
56435
56436         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56437         ssize_t.
56438
56439 2005-08-12  Simon Josefsson  <jas@extundo.com>
56440
56441         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
56442         readline, getdelim and check_version.
56443         (Support for systems lacking ISO C 99: Sizes of integer types):
56444         Add size_max.
56445
56446 2005-08-12  Bruno Haible  <bruno@clisp.org>
56447
56448         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
56449
56450 2005-08-11  Simon Josefsson  <jas@extundo.com>
56451
56452         * modules/readline: New file.
56453
56454         * modules/strnlen (Files): Add strnlen.h.
56455
56456 2005-08-11  Simon Josefsson  <jas@extundo.com>
56457
56458         * m4/readline.m4: New file.
56459
56460 2005-08-11  Simon Josefsson  <jas@extundo.com>
56461
56462         * lib/readline.h, readline.c: New file.
56463
56464 2005-08-11  Simon Josefsson  <jas@extundo.com>
56465
56466         * doc/gnulib.texi (Initial import, Finishing touches): Mention
56467         gl_AVOID.
56468
56469 2005-08-11  Bruno Haible  <bruno@clisp.org>
56470
56471         * lib/strnlen.h (strnlen): Change parameter name to match comment.
56472
56473 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
56474
56475         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
56476
56477 2005-08-10  Simon Josefsson  <jas@extundo.com>
56478
56479         * tests/test-iconvme.c: New file.
56480
56481 2005-08-10  Simon Josefsson  <jas@extundo.com>
56482
56483         * m4/strnlen.m4: New file.
56484
56485         * m4/strndup.m4: Don't check for strnlen declaration, done in
56486         strnlen.m4.
56487
56488 2005-08-10  Simon Josefsson  <jas@extundo.com>
56489
56490         * lib/strndup.c: Use strnlen.h.
56491
56492         * lib/strnlen.h: New file.
56493
56494 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
56495
56496         * README: Typos.
56497
56498 2005-08-02  Simon Josefsson  <jas@extundo.com>
56499
56500         * modules/readline: New file.
56501
56502 2005-08-02  Simon Josefsson  <jas@extundo.com>
56503
56504         * modules/getdelim: New file.
56505
56506         * modules/getline: Rewrite, don't use getndelim2.
56507
56508 2005-08-02  Simon Josefsson  <jas@extundo.com>
56509
56510         * m4/getline.m4: Separate out getdelim stuff into separate module.
56511
56512         * m4/getdelim.m4: New file.
56513
56514 2005-08-02  Simon Josefsson  <jas@extundo.com>
56515
56516         * lib/getline.h, getline.c: Rewrite.
56517
56518         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
56519
56520 2005-07-31  Bruno Haible  <bruno@clisp.org>
56521
56522         * lib/lock.h (gl_lock_initializer): New macro.
56523         (gl_lock_define_initialized): Use it.
56524         (gl_rwlock_initializer): New macro.
56525         (gl_rwlock_define_initialized): Use it.
56526         (gl_recursive_lock_initializer): New macro.
56527         (gl_recursive_lock_define_initialized): Use it.
56528
56529 2005-07-30  Karl Berry  <karl@gnu.org>
56530
56531         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
56532         Report from Ben Pfaff, regarding getopt.
56533
56534 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
56535
56536         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
56537         normal way.
56538         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
56539         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
56540         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
56541         (gl_GETOPT): Use the new macros.  Most of the implementation
56542         is moved to the new macros.  This is for programs like Emacs
56543         that don't want all the functionality of gl_GETOPT.
56544
56545 2005-07-26  Bruno Haible  <bruno@clisp.org>
56546
56547         * m4/lock.m4: Update from GNU gettext.
56548
56549 2005-07-26  Bruno Haible  <bruno@clisp.org>
56550
56551         * lib/lock.h: Update from GNU gettext.
56552         * lib/lock.c: Update from GNU gettext.
56553
56554 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
56555
56556         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
56557         obsolescent AC_TRY_RUN.  Include the default includes files, for
56558         'exit'.
56559
56560 2005-07-24  Bruno Haible  <bruno@clisp.org>
56561
56562         * modules/visibility: New file.
56563         * MODULES.html.sh (Misc): Add visibility.
56564
56565 2005-07-24  Bruno Haible  <bruno@clisp.org>
56566
56567         * m4/visibility.m4: New file.
56568
56569 2005-07-24  Bruno Haible  <bruno@clisp.org>
56570
56571         * doc/visibility.texi: New file.
56572
56573 2005-07-22  Bruno Haible  <bruno@clisp.org>
56574
56575         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
56576         $(ALLOCA_H), redundant through BUILT_SOURCES.
56577         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
56578         redundant through BUILT_SOURCES.
56579         * modules/byteswap (Makefile.am): Remove explicit dependency on
56580         $(BYTESWAP_H), redundant through BUILT_SOURCES.
56581         * modules/fnmatch (Makefile.am): Remove explicit dependency on
56582         $(FNMATCH_H), redundant through BUILT_SOURCES.
56583         * modules/getopt (Makefile.am): Remove explicit dependency on
56584         $(GETOPT_H), redundant through BUILT_SOURCES.
56585         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
56586         redundant through BUILT_SOURCES.
56587         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
56588         redundant through BUILT_SOURCES.
56589         * modules/stdbool (Makefile.am): Remove explicit dependency on
56590         $(STDBOOL_H), redundant through BUILT_SOURCES.
56591         * modules/stdint (Makefile.am): Remove explicit dependency on
56592         $(STDINT_H), redundant through BUILT_SOURCES.
56593         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
56594         Remove explicit dependency on $(SYSEXITS_H).
56595         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
56596
56597 2005-07-18  Simon Josefsson  <jas@extundo.com>
56598
56599         * lib/check-version.c (check_version): Accept identical versions too.
56600
56601 2005-07-18  Bruno Haible  <bruno@clisp.org>
56602
56603         * modules/lock: New file.
56604         * MODULES.html.sh (Multithreading): New section.
56605
56606 2005-07-18  Bruno Haible  <bruno@clisp.org>
56607
56608         * m4/lock.m4: New file, from GNU gettext.
56609
56610 2005-07-18  Bruno Haible  <bruno@clisp.org>
56611
56612         * lib/lock.h: New file, from GNU gettext.
56613         * lib/lock.c: New file, from GNU gettext.
56614
56615 2005-07-18  Bruno Haible  <bruno@clisp.org>
56616
56617         * lib/lock.h (gl_once_t): New type.
56618         (gl_once_define, gl_once): New macros.
56619         * lib/lock.c (fresh_once): New variable.
56620         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
56621         functions.
56622
56623 2005-07-16  Simon Josefsson  <jas@extundo.com>
56624
56625         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
56626         workaround, suggested by Bruno.
56627
56628 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
56629
56630         * modules/xalloc (Depends-on): Add xalloc-die.
56631         * modules/xvasprintf (Depends-on): Add xalloc-die.
56632
56633 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
56634
56635         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
56636         with a minor change.
56637
56638 2005-07-15  Bruno Haible  <bruno@clisp.org>
56639
56640         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
56641         When using lib/poll.c, define poll as rpl_poll.
56642
56643 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
56644
56645         * modules/argp (Depends-on): Remove unlocked-io.
56646
56647 2005-07-14  Derek Price  <derek@ximbiot.com>
56648
56649         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
56650         for glob symlink bug.
56651
56652 2005-07-14  Bruno Haible  <bruno@clisp.org>
56653
56654         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
56655         Instead, test for *_unlocked function declarations directly.
56656
56657 2005-07-11  Simon Josefsson  <jas@extundo.com>
56658
56659         * modules/size_max: New file.
56660
56661         * modules/xsize: Depend on size_max module for size_max.m4.
56662
56663 2005-07-11  Simon Josefsson  <jas@extundo.com>
56664
56665         * lib/size_max.h: New file.
56666
56667 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
56668
56669         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
56670         copyright symbol and the year.
56671         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
56672         (version_etc_va): Use parameterized copyright notice.
56673         Reword to conform to the current GNU coding standards.
56674
56675 2005-07-11  Karl Berry  <karl@gnu.org>
56676
56677         * doc/gnulib.texi (Quoting): new node.
56678         (Initial import): more info, from Patrice.
56679
56680 2005-07-11  Bruno Haible  <bruno@clisp.org>
56681
56682         * gnulib-tool (func_usage): Document option --avoid.
56683         (Command line options): Handle --avoid.
56684         (func_acceptable): New function.
56685         (func_modules_transitive_closure): Use it.
56686
56687 2005-07-11  Bruno Haible  <bruno@clisp.org>
56688
56689         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
56690         Reported by Jim Meyering.
56691
56692 2005-07-10  Bruno Haible  <bruno@clisp.org>
56693
56694         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
56695         Needed when size_t is smaller than 'unsigned int'.
56696         Reported by Paul Eggert.
56697
56698 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56699
56700         * modules/argp (Depends-on): Add unlocked-io
56701
56702 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56703
56704         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
56705         block of defines.
56706
56707 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
56708
56709         * config/srclist.txt: Comment out regcomp.c, since we have a porting
56710         fix now.
56711
56712 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
56713         and Paul Eggert  <eggert@cs.ucla.edu>
56714
56715         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
56716         in wint_t, not wchar_t.  Remove now-unnecessary cast.
56717
56718 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56719
56720         * modules/regex (Files): Add lib/regex_internal.c,
56721         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
56722         (Depends-on): Add extensions.
56723         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
56724
56725 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56726
56727         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
56728         pathconf.
56729         * m4/same.m4 (gl_SAME): Likewise.
56730         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
56731
56732         * m4/regex.m4: Adjust to new libc regex implementation.
56733         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
56734         all the .c and .h parts of (the new) regex.
56735         Quote the m4 stuff better.
56736         Check for RE_ICASE bug of old gnulib.
56737         Check for REG_STARTEND of recent libc.
56738         Rename local variables from jm_* to gl_*.
56739         Quote operand of "test -f".
56740         Say "recent enough" version of libc, not "version 2".
56741         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
56742         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
56743         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
56744         Remove check for btowc, isascii.
56745         Require AM_LANGINFO_CODESET.
56746
56747 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56748
56749         * lib/regex.c, regex.h: Sync from libc.
56750         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
56751         * lib/regexec.c:
56752         New files, synced from libc, except that regex_internal.h
56753         currently has a small porting fix.
56754
56755 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56756
56757         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
56758         regex_internal.c, regexec.c.
56759         Add regex_internal.h too, but as a comment, since the libc version
56760         is currently broken in gnulib mode.
56761
56762 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
56763
56764         Support programs like Emacs that use gnulib but not gettext.
56765         * MODULES.html.sh (Internationalization functions): Add gettext-h.
56766         * modules/gettext-h: New file.
56767         * modules/gettext (Files): Remove lib/gettext.h.
56768         (Depends-on): Add gettext-h.
56769         (Makefile.am): Remove lib_SOURCES.
56770         * modules/argmatch, modules/c-stack, modules/closeout:
56771         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
56772         * modules/execute, modules/file-type, modules/getaddrinfo:
56773         * modules/getopt, modules/human, modules/javacomp:
56774         * modules/javaexec, modules/mkdir-p, modules/obstack:
56775         * modules/openat, modules/pagealign_alloc, modules/pipe:
56776         * modules/quotearg, modules/regex, modules/rpmatch:
56777         * modules/unicodeio, modules/userspec, modules/version-etc:
56778         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
56779         * modules/xsetenv:
56780         Depend on gettext-h, not gettext.
56781
56782 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
56783
56784         * gnulib-tool (func_import): Add support for 'public domain' license.
56785         * modules/alloca, modules/atexit, modules/memmove:
56786         Now public domain, not GPL.
56787         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
56788         * modules/realloc, modules/strerror, modules/strtod:
56789         Now LGPL, not GPL.
56790
56791 2005-07-05  Bruno Haible  <bruno@clisp.org>
56792
56793         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
56794         autoconf CVS. Needed for mingw.
56795
56796 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56797
56798         Remove the dependency of the strftime module on the tzset module.
56799         * modules/strftime (Depends-on): Remove dependency on tzset.
56800
56801 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56802
56803         Remove the dependency of the strftime module on the tzset module.
56804         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
56805         gl_FUNC_TZSET_CLOBBER.
56806
56807 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56808
56809         Remove the dependency of the strftime module on the tzset module.
56810         * lib/strftime.c (my_strftime)
56811         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
56812         Copy the input structure, to work around some of the bug with
56813         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
56814         Solaris releases, you should also use the tzset module, but we won't
56815         require it as a dependency any more since we don't want LGPLed code
56816         to depend on GPLed code.
56817
56818 2005-07-02  Jim Meyering  <jim@meyering.net>
56819
56820         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
56821         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
56822         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
56823         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
56824
56825 2005-07-02  Jim Meyering  <jim@meyering.net>
56826
56827         * lib/backupfile.c (backup_args): Change a `0' to NULL.
56828
56829 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
56830
56831         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
56832         declares only 'struct timespec;' (!).
56833
56834 2005-07-01  Jim Meyering  <jim@meyering.net>
56835
56836         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
56837         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
56838         * lib/save-cwd.c, tempname.c:
56839         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
56840         and don't include <sys/file.h>).
56841
56842 2005-06-29  Jim Meyering  <jim@meyering.net>
56843
56844         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
56845         type name.  Use the variable name instead.
56846         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
56847         Likewise.
56848
56849 2005-06-28  Simon Josefsson  <jas@extundo.com>
56850
56851         * modules/check-version (Files): Add check-version.m4.
56852
56853 2005-06-28  Simon Josefsson  <jas@extundo.com>
56854
56855         * m4/check-version.m4: New file, suggested by Jim Meyering
56856         <jim@meyering.net>.
56857
56858 2005-06-28  Simon Josefsson  <jas@extundo.com>
56859
56860         * lib/check-version.h, lib/check-version.c: New files.
56861
56862 2005-06-28  Simon Josefsson  <jas@extundo.com>
56863
56864         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
56865         collision with global variable.  Better indentation.  Don't
56866         increment buffer pointer beyond buffer end.  Based on comments
56867         from Paul Eggert <eggert@cs.ucla.edu>.
56868
56869         * lib/base64.h: Indent.
56870
56871 2005-06-28  Simon Josefsson  <jas@extundo.com>
56872
56873         * doc/gnulib.texi (Library version handling): New section.
56874
56875 2005-06-28  Jim Meyering  <jim@meyering.net>
56876
56877         * check-module (find_included_lib_files): Hard-code another
56878         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
56879         but modules/fts-lgpl (correctly) does not list those files.
56880
56881         * modules/canonicalize (Files): Add lib/pathmax.h.
56882
56883 2005-06-25  Simon Josefsson  <jas@extundo.com>
56884
56885         * modules/check-version: New file.
56886
56887 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
56888
56889         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
56890         initializer of struct addrinfo, as an indication that we don't
56891         care how many members the structure has.
56892
56893 2005-06-24  Derek Price  <derek@ximbiot.com>
56894         and Bruno Haible  <bruno@clisp.org>
56895
56896         Remove stat module & update lstat.
56897         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
56898         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
56899         * m4/stat.m4: Remove this file.
56900
56901 2005-06-24  Derek Price  <derek@ximbiot.com>
56902         and Bruno Haible  <bruno@clisp.org>
56903
56904         Remove stat module & update lstat.
56905         * lib/stat.c: Remove this file...
56906         (slash_aware_lstat): ...moving this content and its support...
56907         * lib/lstat.c (rpl_lstat): ...into here.
56908         * lib/lstat.h: New file.
56909
56910 2005-06-24  Derek Price  <derek@ximbiot.com>
56911         and Bruno Haible  <bruno@clisp.org>
56912
56913         Remove stat module & update lstat.
56914         * config/srclist.txt (libc sources): Remove stat.
56915
56916 2005-06-24  Derek Price  <derek@ximbiot.com>
56917         and Bruno Haible  <bruno@clisp.org>
56918
56919         Remove stat module & update lstat.
56920         * MODULES.html.sh (stat): Remove.
56921         * MODULES.html: Regenerated.
56922         * modules/lstat (Description): Correct function name.
56923         (Files): Add "lstat.h".
56924         (Depends-on): Remove stat, add xalloc, stat-macros.
56925         * modules/stat: Remove this file.
56926         (Include): Add "lstat.h", remove <sys/stat.h>.
56927
56928 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
56929
56930         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
56931         (ranged_convert): Don't save conversion in a temporary struct.
56932         This causes a warning with GCC 4.0.0, and anyway in the typical
56933         case it's not worth the extra 100 bytes or so of code.
56934         (ranged_convert, __mktime_internal): When calling a function via a
56935         pointer P, use P () rather than (*P) (), as we now assume C89 or
56936         better.
56937
56938 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
56939
56940         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
56941         "who -r" failed to give output.  Problem reported by Tim Waugh.
56942
56943         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
56944         (xcalloc): Use it to avoid needless tests.
56945         Problem reported by Jim Meyering.
56946
56947 2005-06-20  Derek Price  <derek@ximbiot.com>
56948
56949         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
56950         unnecessary for Autoconfs > 2.59c.
56951
56952 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56953
56954         * lib/argp.h (__option_is_short): Check upper limit of
56955         __key. Isprint() requires its argument to have the value
56956         of an unsigned char or EOF.
56957
56958 2005-06-16  Jim Meyering  <jim@meyering.net>
56959
56960         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
56961         when either N or S is zero.
56962
56963 2005-06-16  Derek Price  <derek@ximbiot.com>
56964
56965         * m4/bison.m4: Declare YACC & YFLAGS precious.
56966
56967 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
56968
56969         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
56970         multibyte string or pattern, fall back on unibyte matching.
56971         Problem reported by James Youngman.
56972
56973 2005-06-08  Bruno Haible  <bruno@clisp.org>
56974
56975         * modules/csharpcomp: New file.
56976         * MODULES.html.sh (C#): Add csharpcomp.
56977
56978 2005-06-08  Bruno Haible  <bruno@clisp.org>
56979
56980         * m4/csharpcomp.m4: New file, from GNU gettext.
56981
56982 2005-06-08  Bruno Haible  <bruno@clisp.org>
56983
56984         * lib/csharpcomp.h: New file, from GNU gettext.
56985         * lib/csharpcomp.c: New file, from GNU gettext.
56986         * lib/csharpcomp.sh.in: New file, from GNU gettext.
56987
56988 2005-06-08  Bruno Haible  <bruno@clisp.org>
56989
56990         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
56991         warning on mingw.
56992
56993 2005-06-07  Derek Price  <derek@ximbiot.com>
56994
56995         Sync from CVS.
56996         * lib/glob_.h: Indent nested #ifdef.
56997
56998 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
56999
57000         Sync from coreutils.
57001         Use "file name" when talking about file names, instead of "filename"
57002         or "path", as per the GNU coding standards.
57003         * lib/mkdir-p.c: Renamed from makepath.c.
57004         (make_dir_parents): Renamed from make_path.  All callers changed.
57005         * lib/mkdir-p.h: Likewise.  All includers changed.
57006         * lib/filenamecat.c: Renamed from path-concat.c.
57007         (file_name_concat): Renamed from path_concat.  All callers changed.
57008         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
57009         * lib/filenamecat.h: Likewise.  All includers changed.
57010         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
57011         in comments or local variable names.
57012         * lib/basename.c: Likewise.
57013         * lib/canonicalize.c, canonicalize.h: Likewise.
57014         * lib/dirname.c, dirname.h: Likewise.
57015         * lib/euidaccess.c: Likewise.
57016         * lib/exclude.c: Likewise
57017         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
57018         * lib/fsusage.c, fsuage.h: Likewise.
57019         * lib/fts.c, fts_.h: Likewise.
57020         * lib/getcwd.c: Likewise.
57021         * lib/getloadavg.c: Likewise.
57022         * lib/mkstemp.c: Likewise.
57023         * lib/mountlist.c, mountlist.h: Likewise.
57024         * lib/openat.c, openat.h: Likewise.
57025         * lib/readlink-stub.c: Likewise.
57026         * lib/readutmp.c, readutmp.h: Likewise.
57027         * lib/rename.c: Likewise.
57028         * lib/rmdir.c: Likewise.
57029         * lib/same.c: Likewise.
57030         * lib/savedir.c: Likewise.
57031         * lib/stripslash.c: Likewise.
57032         * lib/tempname.c: Likewise.
57033         * lib/xreadlink.c: Likewise.
57034         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
57035         All uses changed.
57036         * lib/exclude.h: Likewise.
57037
57038         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
57039         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
57040         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
57041         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
57042         * lib/pathmax.h: Include <limits.h> unconditionally, since other
57043         files have been getting away with it for years (MORE/BSD 4.3
57044         is extinct now).
57045         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
57046         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
57047
57048         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
57049         Define to 256, not 255, as per modern POSIX.
57050
57051 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
57052
57053         Sync from coreutils.
57054         Use "file name" when talking about file names, instead of "filename"
57055         or "path", as per the GNU coding standards.
57056         * MODULES.html.sh: mkdir-p renamed from makepath.
57057         filenamecat renamed from path-concat.
57058         * modules/filenamecat: Renamed from modules/path-concat.
57059         (Files): filenamecat.h and filenamecat.c renamed from
57060         path-concat.h and path-concat.c.
57061         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
57062         (Include): filenamecat.h, not path-concat.h.
57063         * modules/mkdir-p: Renamed from modules/makepath.
57064         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
57065         makepath.c.
57066         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
57067         (Include): mkdir-p.h, not makepath.h.
57068
57069 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
57070
57071         Sync from coreutils.
57072         * m4/mkdir-p.m4: Renamed from makepath.m4.
57073         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
57074         Rename files from makepath.c to mkdir-p.c, and from
57075         makepath.h to mkdir-p.h.
57076         * m4/filenamecat.m4: Renamed from path-concat.m4.
57077         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
57078         Rename files from path-concat.c to filenamecat.c,
57079         and from path-concat.h to filenamecat.h.
57080         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
57081         "file name" in local variables or comments.
57082         * m4/rename.m4: Likewise.
57083
57084 2005-06-01  Bruno Haible  <bruno@clisp.org>
57085
57086         * modules/csharpexec: New file.
57087         * MODULES.html.sh (C#): New section.
57088
57089 2005-06-01  Bruno Haible  <bruno@clisp.org>
57090
57091         * m4/csharp.m4: New file, from GNU gettext.
57092         * m4/csharpexec.m4: New file, from GNU gettext.
57093
57094 2005-06-01  Bruno Haible  <bruno@clisp.org>
57095
57096         * lib/csharpexec.h: New file, from GNU gettext.
57097         * lib/csharpexec.c: New file, from GNU gettext.
57098         * lib/csharpexec.sh.in: New file, from GNU gettext.
57099
57100 2005-05-31  Derek Price  <derek@ximbiot.com>
57101             Paul Eggert  <eggert@cs.ucla.edu>
57102
57103         Sync from cvs.
57104         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
57105
57106 2005-05-31  Derek Price  <derek@ximbiot.com>
57107             Paul Eggert  <eggert@cs.ucla.edu>
57108
57109         Sync from cvs.
57110         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
57111
57112 2005-05-29  Derek Price  <derek@ximbiot.com>
57113
57114         * config/srclist.txt (glob_.h, glob.c): Add these files.
57115
57116 2005-05-29  Derek Price  <derek@ximbiot.com>
57117
57118         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
57119         * modules/glob: New file.
57120         * modules/getlogin_r: Add link to POSIX spec in description.
57121
57122 2005-05-29  Derek Price  <derek@ximbiot.com>
57123             Paul Eggert  <eggert@cs.ucla.edu>
57124
57125         * m4/glob.m4: New file.
57126
57127 2005-05-29  Derek Price  <derek@ximbiot.com>
57128             Paul Eggert  <eggert@cs.ucla.edu>
57129
57130         * lib/glob_.h, lib/glob.c: New files.
57131
57132 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
57133
57134         * modules/fts (Files): Remove m4/inttypes-pri.m4.
57135         * modules/fts-lgpl (Depends-on): Remove gettext.
57136
57137 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
57138
57139         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
57140         and don't require gt_INTTYPES_PRI.
57141
57142 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
57143
57144         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
57145
57146         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
57147         the configuration hassle isn't worth it.
57148         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
57149         (LONGEST_MODIFIER, PRIuMAX): Remove.
57150
57151 2005-05-27  Bruno Haible  <bruno@clisp.org>
57152
57153         * lib/getlogin_r.h: Remove second include of <stddef.h>.
57154
57155 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
57156
57157         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
57158         _POSIX_PTHREAD_SEMANTICS for Solaris.
57159
57160 2005-05-25  Derek Price  <derek@ximbiot.com>
57161
57162         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
57163
57164 2005-05-25  Derek Price  <derek@ximbiot.com>
57165             Paul Eggert  <eggert@cs.ucla.edu>
57166
57167         * modules/getlogin_r, m4/getlogin_r.m4: New files.
57168         * lib/getlogin_r.c, getlogin_r.h: New files.
57169
57170 2005-05-25  Bruno Haible  <bruno@clisp.org>
57171             Derek Price  <derek@ximbiot.com>
57172
57173         * lib/getlogin_r.h: Simplify API documentation.
57174
57175 2005-05-23  Derek Price  <derek@ximbiot.com>
57176
57177         * modules/minmax (Files): Add m4/minmax.m4.
57178         (configure.ac): Add gl_MINMAX.
57179
57180 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
57181
57182         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
57183         so that unistd-safer.h (GPL'ed code) need not be included.
57184
57185 2005-05-22  Bruno Haible  <bruno@clisp.org>
57186
57187         * m4/minmax.m4: New file.
57188         Based on a patch by Derek Price <derek@ximbiot.com>.
57189
57190 2005-05-22  Bruno Haible  <bruno@clisp.org>
57191
57192         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
57193         (INT64_MIN): Fix definition.
57194         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
57195
57196         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
57197         NEED_SIGNED_INT_TYPES.
57198
57199         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
57200         HAVE_SYSTEM_INTTYPES.
57201
57202 2005-05-22  Bruno Haible  <bruno@clisp.org>
57203
57204         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
57205         Also include <sys/param.h> if it defines MIN, MAX.
57206         Based on a patch by Derek Price <derek@ximbiot.com>.
57207
57208 2005-05-21  Jim Meyering  <jim@meyering.net>
57209
57210         * modules/fts (Files): Add m4/inttypes-pri.m4.
57211         (Depends-on): Add lstat and remove gettext.  Alphabetize.
57212
57213 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
57214
57215         New fts module.
57216         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
57217         (setup_dir, free_dir): New functions.
57218         (enter_dir, leave_dir): Define trivial
57219         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
57220         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
57221         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
57222         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
57223         Move to fts-cycle.c.
57224         (fts_open): Use setup_dir.
57225         (fts_close): Use free_dir.
57226         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
57227         This adds a label and some gotos, but the alternatives were messier.
57228         Check for memory allocation failure when entering a dir.
57229         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
57230         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
57231         (FTS): New member fts_cycle, that is a union that contains the
57232         old active_dir_ht and cycle_state.  All uses changed to mention
57233         fts_cycle.ht and fts_cycle.state.
57234         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
57235         fts.c, with the following changes:
57236         (setup_dir, free_dir): New functions.
57237         (enter_dir): Now returns bool.  Return true if successful, false
57238         if memory exhausted.  All callers changed.
57239         Do not bother partly cleaning up on
57240         memory allocation failure; that is free_dir's job.
57241         However, free ad if hash_insert fails, to avoid memory leak.
57242         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
57243         fts->fts_options to see which union member to use.
57244
57245 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
57246
57247         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
57248         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
57249
57250 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
57251
57252         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
57253
57254 2005-05-20  Jim Meyering  <jim@meyering.net>
57255
57256         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
57257         Now a macro, to pacify GCC.
57258
57259 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
57260
57261         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
57262         of -1.
57263
57264 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
57265
57266         * lib/chown.c (rpl_chown): Return -1 on failure.
57267
57268 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
57269
57270         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
57271         Don't check for stddef.h.
57272         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
57273         don't use its results.
57274         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
57275         since we include them unconditionally.  Don't require
57276         AM_STDBOOL_H, since stdbool is a prerequisite.
57277         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
57278         since we assume C89 or better.
57279         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
57280         as we don't use their results.
57281         Don't check for fchdir, memmove, memset, strrchr, as we use
57282         them unconditionally.
57283         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
57284         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
57285
57286 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
57287
57288         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
57289         Include <stddef.h> unconditionally, since we assume C89 now.
57290         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
57291         * lib/fts.c: Include fts_.h first, to check interface.
57292         Do not include intprops.h; no longer needed.
57293         Include cycle-check.h and hash.h, since fts_.h no longer does.
57294         Remove unnecessary casts of closedir to void.
57295         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
57296         decide whether to decrement nlinks.
57297         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
57298         (FTS): Use struct hash_table * instead of Hash_table, so that
57299         we no longer need to include hash.h here.
57300
57301 2005-05-18  Jim Meyering  <jim@meyering.net>
57302
57303         * modules/dirfd (License): Change to LGPL.  Most of the code
57304         is already in the public domain.
57305
57306 2005-05-18  Jim Meyering  <jim@meyering.net>
57307
57308         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
57309         Reported by Yoann Vandoorselaere.
57310
57311 2005-05-17  Jim Meyering  <jim@meyering.net>
57312
57313         * m4/fts.m4: New file, from coreutils.
57314
57315 2005-05-17  Jim Meyering  <jim@meyering.net>
57316
57317         * lib/fts.c, lib/fts_.h: New files, from coreutils.
57318
57319 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
57320
57321         Sync from coreutils.
57322         * m4/unlinkdir.m4: New file.
57323
57324 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
57325
57326         Sync from coreutils.
57327         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
57328         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
57329         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
57330         White space changes only.
57331         * lib/makepath.c (make_path): Port to hosts where leading "//" is
57332         special.
57333         * lib/yesno.c: Include getline.h, not ctype.h.
57334         (yesno): Don't remove leading white space; POSIX doesn't allow it.
57335         Use getline to remove arbitrary restriction on response length.
57336
57337 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
57338
57339         * config/srclist-update: Spell out "Street" in FSF postal
57340         mail address; this is the style the FSF seems to prefer.
57341
57342         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
57343         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
57344         this updates FSF postal mail address.
57345
57346         Sync from coreutils.
57347         * modules/unlinkdir: New file.
57348         * modules/yesno (Depends-on): Add getline.
57349         * MODULES.html.sh (File system functions): Add unlinkdir.
57350
57351 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
57352
57353         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
57354         lib/strsep.h:
57355         Change the initial comment to refer to GPL, not LGPL.
57356         gnulib-tool will change it to LGPL as needed.
57357
57358         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
57359         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
57360         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
57361         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
57362         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
57363         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
57364         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
57365         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
57366         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
57367         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
57368         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
57369         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
57370         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
57371         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
57372         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
57373         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
57374         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
57375         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
57376         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
57377         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
57378         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
57379         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
57380         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
57381         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
57382         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
57383         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
57384         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
57385         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
57386         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
57387         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
57388         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
57389         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
57390         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
57391         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
57392         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
57393         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
57394         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
57395         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
57396         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
57397         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
57398         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
57399         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
57400         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
57401         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
57402         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
57403         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
57404         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
57405         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
57406         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
57407         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
57408         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
57409         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
57410         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
57411         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
57412         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
57413         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
57414         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
57415         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
57416         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
57417         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
57418         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
57419         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
57420         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
57421         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
57422         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
57423         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
57424         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
57425         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
57426         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
57427         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
57428         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
57429         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
57430         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
57431         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
57432         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
57433         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
57434         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
57435         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
57436         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
57437         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
57438         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
57439         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
57440         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
57441         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
57442         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
57443         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
57444         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
57445         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
57446         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
57447         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
57448         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
57449         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
57450         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
57451         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
57452         lib/yesno.c, lib/yesno.h:
57453         Update FSF postal mail address.
57454
57455 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
57456
57457         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
57458         tests/test-memmem.c, tests/test-stpncpy.c:
57459         Update FSF postal mail address.
57460
57461 2005-05-13  Bruno Haible  <bruno@clisp.org>
57462
57463         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
57464         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
57465         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
57466         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
57467         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
57468         Add support for 64-bit integers in the MSVC compiler.
57469
57470 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57471
57472         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
57473
57474 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
57475
57476         * gnulib-tool (func_import): Sort and uniquify recommended includes.
57477
57478 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
57479
57480         * doc/getdate.texi (General date syntax): Don't say that date
57481         date --iso-8601=ns generates acceptable dates; it doesn't yet.
57482         Problem reported by Nic Ferrier.
57483
57484 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57485
57486         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
57487         specified in ai_socktype. Fix invalid ai_protocol
57488         check. ai_protocol is usually set to 0 or depending on
57489         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
57490         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
57491         ai_socktype / ai_protocol in the returned addrinfo structure.
57492
57493 2005-05-10  Simon Josefsson  <jas@extundo.com>
57494
57495         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
57496         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57497
57498 2005-05-10  Karl Berry  <karl@gnu.org>
57499
57500         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
57501         (from http://www.gnu.org/licenses).
57502         * doc/COPYING.LIB: also rename to COPYING.LESSER.
57503         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
57504         fdl.texi suffices.
57505
57506 2005-05-10  Karl Berry  <karl@gnu.org>
57507
57508         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
57509         (COPYING.DOC): remove.
57510
57511         * config/srclist-update: new FSF address.
57512
57513 2005-05-10  Derek Price  <derek@ximbiot.com>
57514
57515         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
57516         possible.
57517
57518 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57519             Bruno Haible  <bruno@clisp.org>
57520
57521         * modules/inet_ntop: New file.
57522         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57523         inet_ntop.
57524
57525 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57526             Bruno Haible  <bruno@clisp.org>
57527
57528         * m4/inet_ntop.m4: New file.
57529
57530 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57531             Bruno Haible  <bruno@clisp.org>
57532
57533         * lib/inet_ntop.h: New file.
57534         * lib/inet_ntop.c: New file, from glibc with modifications.
57535
57536 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
57537
57538         * modules/time_r (License): Change to LGPL.
57539         * modules/extensions (License): Change to LGPL.  Actually,
57540         the license is more permissive than that, but currently gnulib-tool
57541         doesn't know how to handle more-permissive licenses.
57542
57543         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
57544         Problem reported by Dave Love.
57545
57546 2005-05-08  Jim Meyering  <jim@meyering.net>
57547
57548         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
57549         blank.
57550
57551 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
57552
57553         * modules/argmatch (Depends-on): Add stdbool.
57554         * modules/backupfile (Depends-on): Likewise.
57555         * modules/chdir-long (Depends-on): Likewise.
57556         * modules/closeout (Depends-on): Likewise.
57557         * modules/cycle-check (Depends-on): Likewise.
57558         * modules/dirname (Depends-on): Likewise.
57559         * modules/fnmatch (Depends-on): Likewise.
57560         * modules/fsusage (Depends-on): Likewise.
57561         * modules/fwriteerror (Depends-on): Likewise.
57562         * modules/getcwd (Depends-on): Likewise.
57563         * modules/getloadavg (Depends-on): Likewise.
57564         * modules/hard-locale (Depends-on): Likewise.
57565         * modules/makepath (Depends-on): Likewise.
57566         * modules/mountlist (Depends-on): Likewise.
57567         * modules/nanosleep (Depends-on): Likewise.
57568         * modules/posixtm (Depends-on): Likewise.
57569         * modules/quotearg (Depends-on): Likewise.
57570         * modules/readtokens (Depends-on): Likewise.
57571         * modules/readtokens0 (Depends-on): Likewise.
57572         * modules/readutmp (Depends-on): Likewise.
57573         * modules/save-cwd (Depends-on): Likewise.
57574         * modules/strftime (Depends-on): Likewise.
57575         * modules/userspec (Depends-on): Likewise.
57576         * modules/utimecmp (Depends-on): Likewise.
57577         * modules/xgetcwd (Depends-on): Likewise.
57578         * modules/xnanosleep (Depends-on): Likewise.
57579         * modules/xstrtod (Depends-on): Likewise.
57580         * modules/yesno (Depends-on): Likewise.
57581
57582 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
57583
57584         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
57585         needless checks.
57586
57587 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57588
57589         Merge from coreutils.  Among other things,
57590         add bulletproofing for cases where stdin, stdout, or stderr are closed.
57591         * lib/fd-safer.c: New file.
57592         * lib/fcntl-safer.h, open-safer.c: Remove.
57593         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
57594         * lib/dup-safer.c: Include unistd-safer.h first.
57595         Don't include errno.h.
57596         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
57597         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
57598         * lib/file-type.c: Rely on file-type.h change.
57599         * lib/getloadavg.c: Include unistd-safer.h.
57600         (getloadavg): Use safer open.
57601         * lib/getusershell.c: Include "stdio-safer.h".
57602         (getusershell): Use safer fopen.
57603         * lib/long-options.c (long_options): Use NULL rather than 0.
57604         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
57605         'free'.
57606         * lib/modechange.c: Likewise.
57607         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
57608         (MODE_DONE): New constant.
57609         (struct mode_change): Remove 'next' member.
57610         (make_node_op_equals): New function; like the old one of the
57611         same name, except it allocates an array.
57612         (mode_compile, mode_create_from_ref): Use it.
57613         (mode_compile): Allocate result as an array, not a linked list.
57614         Parse octal string ourself, so that we catch mistakes like "+0".
57615         (mode_adjust): Arg is an array, not a linked list.
57616         * lib/modechange.c: Include stat-macros.h, xalloc.h.
57617         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
57618         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
57619         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
57620         Remove.  This is now stat-macros.h's job.
57621         (talloc): Remove.  All callers replaced by xalloc, so that
57622         our invokers don't have to worry about reporting memory failures.
57623         (make_node_op_equals): Remove.
57624         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
57625         New constants.
57626         (struct mode_change): Moved here from modechange.h.
57627         (mode_append_entry): Remove.
57628         (mode_compile): Remove MASKED_OPS arg, since it encouraged
57629         apps to have incorrect behavior.  Use simpler algorithm for head
57630         and tail.  Don't futz with umask; that's now the job of mode_adjust.
57631         Detect more invalid usages rather than having somewhat-random behavior.
57632         Don't insert an "a=" action, as that leads to incorrect behavior.
57633         (mode_compile, mode_create_from_ref): Return NULL on error instead
57634         of an enum, since now there's only one way to have an error.  All
57635         callers changed.
57636         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
57637         at the correct time.  Simplify calculation of "+u" and its ilk.
57638         Don't mishandle "+X".
57639         (mode_free): Remove "register" and localize decls.
57640         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
57641         (struct mode_change): Move to modechange.c; callers don't
57642         need to see this stuff.
57643         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
57644         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
57645         (mode_change, mode_adjust): Reflect the new signatures noted above.
57646         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
57647         that might redefine system include files.
57648         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
57649         (my_usleep): Use NULL rather than (void *) 0.
57650         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
57651         Use siginterrupt to specify that system calls should be interrupted.
57652         (rpl_nanosleep): Move initialization of suspended closer to call of
57653         my_usleep.
57654         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
57655         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
57656         (desirable_utmp_entry): New function.
57657         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
57658         using x2nrealloc, to simplify logic.
57659         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
57660         size calculation.  Do not assume utmp file is a regular file.
57661         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
57662         (READ_UTMP_CHECK_PIDS): New constant.
57663         * lib/save-cwd.c: Include unistd-safer.h.
57664         (save_cwd): Use fd_safer.
57665         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
57666         [!_LIBC] Include "stat-macros.h" instead.
57667         * lib/unistd-safer.h (fd_safer): New decl.
57668
57669 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57670
57671         * modules/getloadavg (Depends-on): Add unistd-safer.
57672         * modules/getusershell (Depends-on): Add stdio-safer.
57673         * modules/lstat (Depends-on): Remove xalloc.
57674         * modules/mkstemp (Depends-on): Add stat-macros.
57675         * modules/modechange (Depends-on): Remove xstrtol.
57676         Add stat-macros, xalloc.
57677         * modules/save-cwd (Depends-on): Add unistd-safer.
57678         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
57679         * modules/unistd-safer (Files): Add lib/fd-safer.c
57680         (Makefile.am): Remove lib_SOURCES.
57681
57682         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
57683         Remove fcntl-safer; unistd-safer supersedes it.
57684
57685 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57686
57687         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
57688         AC_HEADER_STAT.
57689         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
57690         (gl_PREREQ_CHOWN): Remove.
57691         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
57692         it.  Don't require AC_HEADER_STAT.
57693         (gl_PREREQ_LSTAT): Remove.
57694         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
57695         Don't require AC_HEADER_STAT.
57696         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
57697         (gl_PREREQ_RMDIR): Remove.
57698         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
57699         mention stat-macros.h or AC_HEADER_STAT, since we'll make
57700         the stat-macros module a prerequisite.
57701         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
57702         * m4/filemode.m4 (gl_FILEMODE): Likewise.
57703         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
57704         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
57705         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
57706         variable names.
57707         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
57708         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
57709         variable prefixes.
57710         * m4/fcntl-safer.m4: Remove.
57711         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
57712         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
57713         Invoke gl_PREREQ_FD_SAFER.
57714         (gl_PREREQ_FD_SAFER): New macro.
57715         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
57716         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
57717         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
57718         Remove duplicate call to AC_LIBOBJ(readutmp).
57719         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
57720
57721         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
57722         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
57723
57724 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57725
57726         * MODULES.html.sh (Misc): Add byteswap.
57727
57728 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57729
57730         * modules/getcwd (Depends-on): Add extensions.
57731         * modules/openat (Depends-on): Likewise.
57732
57733 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57734
57735         * modules/byteswap: New file.
57736
57737 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57738
57739         * m4/byteswap.m4: New file.
57740
57741 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57742
57743         * lib/byteswap_.h: New file.
57744
57745 2005-04-25  Karl Berry  <karl@gnu.org>
57746
57747         * m4/gettext.m4: Update from GNU gettext 0.14.4.
57748
57749 2005-04-25  Albert Chin  <china@thewrittenword.com>
57750
57751         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
57752         Toolkit C bug.
57753
57754 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
57755
57756         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
57757         (func_ln_if_changed) Remove forcibly for no error message
57758         in case file does not exist.
57759
57760 2005-04-19  Simon Josefsson  <jas@extundo.com>
57761
57762         * gnulib-tool (Options): Make --symlink mean --symbolic.
57763
57764 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
57765
57766         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
57767
57768 2005-04-16  Simon Josefsson  <jas@extundo.com>
57769
57770         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
57771
57772 2005-04-15  Simon Josefsson  <jas@extundo.com>
57773
57774         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
57775
57776 2005-04-15  Simon Josefsson  <jas@extundo.com>
57777
57778         * gnulib-tool: Rename --symlink to --symbolic.
57779
57780 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
57781
57782         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
57783         symbolic links to files instead of copying/moving.  Add --aux-dir,
57784         specifying directory relative --dir where auxiliary build tools
57785         are placed.
57786
57787 2005-04-14  Bruno Haible  <bruno@clisp.org>
57788
57789         * modules/allocsa (License): Change to LGPL.
57790         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
57791
57792 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
57793
57794         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
57795         that "UTC +1 second" continues to work.  Problem reported
57796         by Dmitry V. Levin.
57797         (relunit_snumber): New rule.
57798         (relunit): Use it.
57799
57800 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
57801
57802         * lib/getdate.y (universal_time_zone_table): New constant.
57803         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
57804         universal_time_zone_table.
57805         (lookup_zone): Prefer universal_time_zone_table to
57806         local_time_zone_table, so that "GMT" time stamps are allowed in
57807         London during the summer.  Problem reported by Ian Abbott.
57808
57809 2005-04-12  Jim Meyering  <jim@meyering.net>
57810
57811         * lib/human.c (humblock): Set *options even when returning due to
57812         xstrtoumax conversion failure.  Thanks to a used-uninitialized
57813         warning from gcc-4.
57814
57815 2005-04-09  Jim Meyering  <jim@meyering.net>
57816
57817         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
57818         -Wuninitialized: initialize tm0.tm_year.
57819
57820 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
57821
57822         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
57823         count, since there's no maximum.  All uses changed.
57824         Add member dsts_seen.
57825         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
57826         not being INT_MAX.
57827         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
57828         Use pc_rels_seen to decide whther a date is absolute.
57829
57830         * lib/getdate.y (number): Don't overwrite year.
57831         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
57832         check.
57833
57834 2005-04-02  Simon Josefsson  <jas@extundo.com>
57835
57836         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
57837         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
57838
57839 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
57840
57841         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
57842         where no absolute path name can be longer than PATH_MAX.
57843
57844 2005-03-27  Jim Meyering  <jim@meyering.net>
57845
57846         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
57847
57848 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
57849
57850         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
57851         "one's complement" -> "ones' complement" in comment, as per Knuth.
57852         "value of type" -> "type or expression" in comment.
57853         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
57854
57855 2005-03-26  Jim Meyering  <jim@meyering.net>
57856
57857         Comment nits.
57858         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
57859         Correct typos: s/or/of/.
57860
57861 2005-03-26  Jim Meyering  <jim@meyering.net>
57862
57863         * modules/check-include-files: Move to ../ and rename to...
57864         * check-module: ...this.
57865
57866 2005-03-25  Jim Meyering  <jim@meyering.net>
57867
57868         * modules/xvasprintf (Files): Add xalloc.h.
57869
57870 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
57871
57872         * modules/gettext (Files): config/config.rpath ->
57873         build-aux/config.rpath
57874         * modules/iconv (Files): Likewise.
57875         Problem reported by Oskar Liljeblad.
57876
57877 2005-03-23  Jim Meyering  <jim@meyering.net>
57878
57879         * modules/check-include-files: New script to check for
57880         missing dependencies, multiple includes, etc.
57881
57882         * modules/c-strtold (Depends-on): Add xalloc.
57883         * modules/c-strtod (Depends-on): Add xalloc.
57884         * modules/hash (Depends-on): Add xalloc.
57885         (Files): Remove lib/xalloc.h.
57886
57887         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
57888         * modules/userspec (Files): Add lib/inttostr.h.
57889
57890 2005-03-23  Jim Meyering  <jim@meyering.net>
57891
57892         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
57893
57894 2005-03-22  Jim Meyering  <jim@meyering.net>
57895
57896         * modules/stat-macros: New module.
57897         * modules/canonicalize, modules/euidaccess, modules/file-type,
57898         * modules/filemode, modules/lchown, modules/makepath,
57899         * modules/rmdir, modules/stat: Depend on new stat-macros module
57900         rather than listing lib/stat-macros.h manually.
57901         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
57902
57903 2005-03-22  Jim Meyering  <jim@meyering.net>
57904
57905         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
57906
57907 2005-03-22  Bruno Haible  <bruno@clisp.org>
57908
57909         * config/srclist.txt: Replace target directory 'config' with
57910         'build-aux'.
57911         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
57912         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
57913         ../build-aux/.
57914
57915 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
57916
57917         * modules/chdir-long (Depends-on): Add mempcpy.
57918
57919         * modules/acl, modules/backupfile, modules/c-strtod,
57920         modules/c-strtold, modules/canon-host, modules/canonicalize,
57921         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
57922         modules/exclude, modules/exitfail, modules/file-type,
57923         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
57924         modules/getdate, modules/getline, modules/getpagesize,
57925         modules/getpass, modules/getugroups, modules/group-member,
57926         modules/hard-locale, modules/hash, modules/human, modules/idcache,
57927         modules/inttostr, modules/long-options, modules/makepath,
57928         modules/md5, modules/memcasecmp, modules/memcoll,
57929         modules/modechange, modules/mountlist, modules/path-concat,
57930         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
57931         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
57932         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
57933         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
57934         modules/strftime, modules/strndup, modules/strverscmp,
57935         modules/timespec, modules/unlocked-io, modules/userspec,
57936         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
57937         modules/yesno:
57938         Remove lib_SOURCES line from Makefile.am section, as this is now
57939         done automatically by the corresponding Autoconf macro.
57940
57941 2005-03-21  Jim Meyering  <jim@meyering.net>
57942
57943         Changes imported from coreutils.
57944
57945         * lib/cycle-check.c: Don't include xalloc.h.
57946
57947         * lib/path-concat.c: Don't include assert.h.
57948         (path_concat): Remove assertion that would have triggered
57949         for ABASE starting with more than one slash.
57950         Reported by Andreas Schwab.
57951
57952         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
57953         properly when ABASE is an absolute file name.
57954         Correct the description of this function.
57955         Include <assert.h>.
57956         Add an assertion and a test driver.
57957         This fixes a bug introduced on 2004-07-02.
57958         Andreas Schwab reported the resulting failure of cp --parents:
57959         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
57960
57961 2005-03-21  Jim Meyering  <jim@meyering.net>
57962
57963         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
57964         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
57965
57966 2005-03-21  Jim Meyering  <jim@meyering.net>
57967         and  Paul Eggert  <eggert@cs.ucla.edu>
57968
57969         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
57970         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
57971         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
57972         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
57973         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
57974         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
57975         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
57976         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
57977         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
57978         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
57979         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
57980         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
57981         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
57982         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
57983         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
57984         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
57985         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
57986         for these modules.
57987
57988 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
57989
57990         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
57991         (which shouldn't happen), generate nothing instead of returning 0
57992         immediately, so that nstrftime (NULL, ...) doesn't return 0.
57993
57994 2005-03-16  Bruno Haible  <bruno@clisp.org>
57995
57996         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
57997         HAVE_LONGLONG_64BIT.
57998
57999 2005-03-16  Bruno Haible  <bruno@clisp.org>
58000
58001         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
58002         HAVE_LONGLONG_64BIT.
58003
58004 2005-03-16  Bruno Haible  <bruno@clisp.org>
58005
58006         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
58007         HAVE_LONGLONG_64BIT.
58008
58009 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
58010
58011         * lib/strftime.c (my_strftime): Prepend space to format so that we can
58012         reliably distinguish strftime failure from empty output on POSIX
58013         hosts.
58014
58015 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
58016
58017         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
58018         (iconv_string): Don't guess a size-zero buffer, as that might cause
58019         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
58020         result would be 'too large', where 'too large' is (heuristically)
58021         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
58022         overflow concerns.  This will prevent some unwanted malloc failures
58023         when the inputs are very large.
58024
58025 2005-03-15  Karl Berry  <karl@gnu.org>
58026
58027         * config/srclist.txt (config.rpath): from gettext.
58028         * config/config.rpath: update.
58029
58030 2005-03-15  Bruno Haible  <bruno@clisp.org>
58031
58032         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
58033         to 'negate'.
58034
58035         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
58036         variable.
58037
58038         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
58039         results.
58040
58041 2005-03-14  Simon Josefsson  <jas@extundo.com>
58042
58043         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
58044         <fx@gnu.org>.
58045
58046 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
58047
58048         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
58049         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
58050         intprops.h.
58051         * lib/strtol.c: Likewise.
58052
58053 2005-03-14  Jim Meyering  <jim@meyering.net>
58054
58055         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
58056         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
58057         to be nonzero so that we (and caller) can detect the difference
58058         between a valid zero-length expansion and an error return, even
58059         when the underlying strftime fails before writing anything into
58060         that location.
58061
58062 2005-03-14  Bruno Haible  <bruno@clisp.org>
58063
58064         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
58065         Update from GNU gettext 0.14.3.
58066
58067 2005-03-10  Jim Meyering  <jim@meyering.net>
58068
58069         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
58070
58071 2005-03-10  Jim Meyering  <jim@meyering.net>
58072
58073         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
58074         so that this module works on systems without fchdir.
58075
58076 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
58077
58078         Factor int-properties macros into a single file, except for
58079         glibc-related files.
58080         * lib/intprops.h: New file.
58081         * lib/getloadavg.c: Include it instead of limits.h.
58082         (INT_STRLEN_BOUND): Remove.
58083         * lib/human.c: Include intprops.h.
58084         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
58085         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
58086         302/1000.
58087         * lib/inttostr.h: Include intprops.h instead of limits.h.
58088         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
58089         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
58090         for consistency with intprops.h.
58091         (time_t_is_integer, twos_complement_arithmetic): Use them.
58092         * lib/sig2str.h: Include <signal.h>, intprops.h.
58093         (INT_STRLEN_BOUND): Remove.
58094         * lib/strftime.c (TYPE_SIGNED): Remove.
58095         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
58096         * lib/strtol.c: Adjust comments to match intprops.h.
58097         * lib/userspec.c: Include intprops.h.
58098         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
58099         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
58100         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
58101         instead of rolling our own expressions.
58102         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
58103
58104         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
58105         instead of int.
58106         (my_strftime): Do not mishandle years close to INT_MAX, by doing
58107         the right thing even if adding 1900 would overflow.  Similarly
58108         for tm_mon + 1 and tm_yday + 1.
58109         Make %Y always equivalent to %C%y, and similarly for %G and %g.
58110         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
58111         (DO_SIGNED_NUMBER): New macro.
58112         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
58113
58114 2005-03-07  Bruno Haible  <bruno@clisp.org>
58115
58116         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
58117
58118 2005-03-07  Bruno Haible  <bruno@clisp.org>
58119
58120         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
58121
58122 2005-03-04  Derek R. Price  <derek@ximbiot.com>
58123
58124         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
58125         (func_import): Only replace files via --import when they have actually
58126         changed.
58127
58128 2005-03-03  Derek R. Price  <derek@ximbiot.com>
58129
58130         * m4/mmap-anon.m4: New file.
58131         * m4/pagealign_alloc.m4: New file.
58132
58133 2005-03-03  Derek R. Price  <derek@ximbiot.com>
58134             Bruno Haible  <bruno@clisp.org>
58135
58136         * modules/pagealign_alloc: New file.
58137         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
58138
58139 2005-03-03  Derek R. Price  <derek@ximbiot.com>
58140             Bruno Haible  <bruno@clisp.org>
58141
58142         * lib/pagealign_alloc.h: New file.
58143         * lib/pagealign_alloc.c: New file.
58144
58145 2005-03-03  Bruno Haible  <bruno@clisp.org>
58146
58147         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
58148         Use an all-permissive copyright notice, recommended by RMS.
58149
58150 2005-03-02  Bruno Haible  <bruno@clisp.org>
58151
58152         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
58153         of AIX, the replacement has to be done only after <string.h> is
58154         included, therefore not in config.h. stpncpy.h does the replacement,
58155         and stpncpy.c uses it.
58156
58157 2005-03-02  Bruno Haible  <bruno@clisp.org>
58158
58159         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
58160         stpncpy.c uses it.
58161
58162 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58163
58164         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
58165         The workaround isn't strictly needed for POSIX conformance, and
58166         it's too much of a pain to configure and maintain.  We'll ask
58167         people to fix their kernels instead.
58168         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
58169         (NANOSLEEP_BUG_WORKAROUND): Remove.
58170         (xnanosleep): Remove the workaround.
58171
58172 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58173
58174         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
58175         Reported by Derek Price.
58176         (Include): Add "timespec.h".
58177
58178         * modules/xnanosleep (Depends-on): Remove gethrxtime.
58179
58180 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58181
58182         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
58183         to detect nanosleep bug.
58184
58185 2005-03-01  Bruno Haible  <bruno@clisp.org>
58186
58187         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
58188
58189 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
58190
58191         * modules/gethrxtime: New file.
58192         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
58193         (Depends-on): Add gethrxtime.
58194         (configure.ac): Add gl_XNANOSLEEP.
58195         (Makefile.am): Remove lib_SOURCES line.
58196
58197 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
58198
58199         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
58200         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
58201
58202 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
58203
58204         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
58205         * lib/timespec.h (gettime): Return void, since it always
58206         succeeds now.  All uses changed.
58207         * lib/gettime.c (gettime) Likewise.
58208         [HAVE_NANOTIME]: Prefer nanotime.
58209         Assume gettimeofday succeeds, as POSIX requires.
58210         Assime time () succeeds, since other code already does.
58211         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
58212         (timespec_subtract): Remove.
58213         (NANOSLEEP_BUG_WORKAROUND): New constant.
58214         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
58215         things considerably.  Use it only on GNU/Linux hosts, since the
58216         workaround shouldn't be needed elsewhere.
58217
58218 2005-02-24  Bruno Haible  <bruno@clisp.org>
58219
58220         * modules/gettext (Files): Add m4/glibc2.m4.
58221
58222 2005-02-24  Bruno Haible  <bruno@clisp.org>
58223
58224         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
58225         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
58226         * m4/progtest.m4:
58227         Update from GNU gettext 0.14.2.
58228         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
58229
58230 2005-02-24  Bruno Haible  <bruno@clisp.org>
58231
58232         * lib/localcharset.c: Update from GNU gettext 0.14.2.
58233         * lib/config.charset: Update from GNU gettext 0.14.2.
58234
58235 2005-02-24  Bruno Haible  <bruno@clisp.org>
58236
58237         * lib/gettext.h: Update from GNU gettext 0.14.2.
58238
58239 2005-02-23  Simon Josefsson  <jas@extundo.com>
58240
58241         * m4/iconvme.m4: New file.
58242
58243 2005-02-23  Jim Meyering  <jim@meyering.net>
58244
58245         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
58246         change.
58247         Thanks to Bruno Haible for catching it.
58248
58249 2005-02-22  Simon Josefsson  <jas@extundo.com>
58250
58251         * modules/iconvme: New file.
58252
58253         * MODULES.html.sh: Add iconvme.
58254
58255 2005-02-22  Simon Josefsson  <jas@extundo.com>
58256
58257         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
58258
58259 2005-02-22  Simon Josefsson  <jas@extundo.com>
58260
58261         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
58262
58263 2005-02-22  Jim Meyering  <jim@meyering.net>
58264
58265         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
58266         s/ifndef/ifdef/.
58267
58268 2005-02-20  Neil Conway  <neilc@samurai.com>
58269
58270         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
58271         returned by OSX/Darwin if the specified buffer is not large
58272         enough for the hostname.
58273
58274 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58275
58276         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
58277         pass it to _help, otherwise the latter coredumps trying to
58278         dereference state.root_argp.
58279
58280 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
58281
58282         * modules/chdir-long (Depends-on): Add memrchr.
58283         * modules/memrchr (Files): Add lib/memrchr.h.
58284         (Include): "memrchr.h".
58285
58286 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
58287
58288         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
58289
58290 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
58291
58292         * lib/memrchr.h: New file.
58293         * lib/chdir-long.c: Include it.
58294         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
58295         Don't bother including stddef.h.
58296
58297 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
58298
58299         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
58300         inclusion.
58301         Include <sys/types.h>, for dev_t.
58302         (ME_DUMMY, ME_REMOTE): Move from here....
58303         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
58304         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
58305         Dmitry V. Levin.
58306         Include mountlist.h first, to test the interface.
58307
58308 2005-01-29  Bruno Haible  <bruno@clisp.org>
58309
58310         * lib/progname.c (program_name): Initialize.
58311         Needed when linking statically on MacOS X.
58312
58313 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
58314
58315         Sync from coreutils.
58316         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
58317         (Depends-on): Add c-strtod.
58318         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
58319
58320 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
58321
58322         Sync from coreutils.
58323         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
58324
58325         Remove files that are specific to coreutils.
58326         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
58327
58328 2005-01-28  Bruno Haible  <bruno@clisp.org>
58329
58330         * modules/javacomp: New file.
58331         * MODULES.html.sh (Java): Add javacomp.
58332
58333 2005-01-28  Bruno Haible  <bruno@clisp.org>
58334
58335         * m4/javacomp.m4: New file, from GNU gettext.
58336
58337 2005-01-28  Bruno Haible  <bruno@clisp.org>
58338
58339         * lib/javacomp.sh.in: New file, from GNU gettext.
58340         * lib/javacomp.h: New file, from GNU gettext.
58341         * lib/javacomp.c: New file, from GNU gettext.
58342
58343 2005-01-26  Simon Josefsson  <jas@extundo.com>
58344
58345         * lib/gai_strerror.c: Use GPL in header.
58346
58347 2005-01-26  Bruno Haible  <bruno@clisp.org>
58348
58349         * modules/javaexec: New file.
58350         * MODULES.html.sh (Java): Add javaexec.
58351
58352 2005-01-26  Bruno Haible  <bruno@clisp.org>
58353
58354         * m4/javaexec.m4: New file, from GNU gettext.
58355
58356 2005-01-26  Bruno Haible  <bruno@clisp.org>
58357
58358         * lib/javaexec.sh.in: New file, from GNU gettext.
58359         * lib/javaexec.h: New file, from GNU gettext.
58360         * lib/javaexec.c: New file, from GNU gettext.
58361
58362 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58363
58364         * modules/lchown (Depends-on): Remove lchown.h
58365
58366 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58367
58368         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
58369         must be defined if the header file was not found, in order
58370         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
58371
58372 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58373
58374         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
58375         initializers for struct pentry_state.
58376         (__argp_error): Check return value of __asprintf
58377         (__argp_failure): Translate error message
58378
58379         * lib/argp-parse.c: Removed braces around the expansion of N_()
58380
58381 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58382
58383         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
58384         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
58385         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
58386         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
58387         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
58388         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
58389         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
58390         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
58391         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
58392         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
58393         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
58394         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
58395         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
58396         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
58397         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
58398         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
58399         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
58400         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
58401         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
58402         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
58403         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
58404         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
58405         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
58406         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
58407         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
58408         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
58409         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
58410         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
58411         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
58412         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
58413         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
58414         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
58415         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
58416         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
58417         xstrtol.m4, xstrtoumax.m4, yesno.m4:
58418         Use an all-permissive copyright notice, recommended by RMS.
58419
58420 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
58421
58422         * modules/chdir-long (Depends-on): Remove mempcpy.
58423
58424 2005-01-21  Jim Meyering  <jim@meyering.net>
58425
58426         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
58427         same value as for Solaris 9.
58428
58429         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
58430         component length.  This included changing the parameter to be
58431         of type `char *' rather than `char const *'.
58432         * lib/chdir-long.h (chdir_long): Update prototype.
58433
58434         * lib/openat.c (fdopendir, fstatat): New functions.
58435         * lib/openat.h: Include headers required for use of DIR and struct
58436         stat.
58437         [AT_SYMLINK_NOFOLLOW]: Define.
58438         (fdopendir, fstatat): Add prototypes.
58439
58440 2005-01-21  Bruno Haible  <bruno@clisp.org>
58441
58442         * modules/classpath: New file.
58443         * MODULES.html.sh (Java): Add classpath.
58444
58445 2005-01-21  Bruno Haible  <bruno@clisp.org>
58446
58447         * lib/classpath.h: New file, from GNU gettext.
58448         * lib/classpath.c: New file, from GNU gettext.
58449
58450 2005-01-20  Simon Josefsson  <jas@extundo.com>
58451
58452         * modules/version-etc-fsf: New file.
58453
58454 2005-01-20  Simon Josefsson  <jas@extundo.com>
58455
58456         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
58457         * lib/version-etc.c: Remove version_etc_copyright.
58458         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
58459         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
58460
58461 2005-01-20  Simon Josefsson  <jas@extundo.com>
58462
58463         * lib/base64.h (isbase64): Add.
58464
58465         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
58466         using a unsigned prototype, don't inline.
58467         (base64_decode): Use it.
58468
58469 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
58470
58471         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
58472         it.
58473
58474 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
58475
58476         * lib/save-cwd.c (save_cwd): Remove code to support the case
58477         where fchdir is missing or flaky.
58478
58479 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
58480
58481         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
58482
58483 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
58484
58485         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
58486         AC_LIBSOURCES now does this.
58487         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
58488         with new ullong_max module.
58489
58490 2005-01-19  Bruno Haible  <bruno@clisp.org>
58491
58492         * modules/sh-quote: New file.
58493         * MODULES.html.sh (Executing programs): Add sh-quote.
58494
58495 2005-01-19  Bruno Haible  <bruno@clisp.org>
58496
58497         * lib/sh-quote.h: New file, from GNU gettext.
58498         * lib/sh-quote.c: New file, from GNU gettext.
58499
58500 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
58501
58502         Merge from coreutils.
58503         * m4/ullong_max.m4: New file.
58504         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
58505         (gl_MACROS): Assume localeconv exists.
58506
58507 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
58508
58509         Merge changes from coreutils, as described below in several
58510         changelogs dated today.
58511
58512         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
58513         (O_DIRECTORY): Remove; not needed here, since "." must be
58514         a directory.  All uses removed.
58515         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
58516         universal on Suns, and we also need to test for IRIX.
58517         Revamp code to use 'if' rather than '#if'.
58518         Avoid unnecessary comparison of cwd->desc to 0.
58519
58520         * lib/utimens.c (futimens): Robustify the previous patch, by checking
58521         for known valid error numbers rather than observed invalid ones.
58522
58523 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
58524
58525         * modules/ullong_max: New file.
58526
58527         * modules/chdir-long, modules/openat: New files.
58528         * modules/save-cwd (Depends-on): Depend on chdir-long.
58529         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
58530
58531 2005-01-18  Jim Meyering  <jim@meyering.net>
58532
58533         Merge from coreutils.
58534         * m4/chdir-long.m4, m4/openat.m4: New files.
58535         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
58536         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
58537         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
58538         is sane and DOES follow symlinks.  Besides, testing 20 different
58539         systems found no broken chown implementations.
58540         Prompted by a change in rsync's copy of this macro.
58541         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
58542
58543         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
58544
58545         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
58546         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
58547         NULL-means-set-to-current-time semantics.
58548         Remove temporary file immediately, rather than waiting
58549         for configure's at-exit trap code to do it.
58550
58551 2005-01-18  Jim Meyering  <jim@meyering.net>
58552
58553         * lib/version-etc.c (version_etc_copyright): Update copyright date.
58554
58555         * lib/utimens.c (futimens): Account for the fact that futimes
58556         can also fail with errno == ENOSYS or errno == ENOENT.
58557         Patch from Dmitry V. Levin.
58558
58559         Change the name of the robust chdir function from chdir to chdir_long.
58560         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
58561         (restore_cwd): Use chdir_long, not chdir.
58562         * lib/chdir-long.c: Renamed from chdir.c.
58563         * lib/chdir-long.h: Renamed from chdir.h.
58564         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
58565         Hurd.
58566
58567 2005-01-18  Bruno Haible  <bruno@clisp.org>
58568
58569         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
58570         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
58571         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
58572         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
58573         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
58574         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
58575         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
58576         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
58577         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
58578         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
58579         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
58580         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
58581         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
58582         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
58583         Use an all-permissive copyright notice, recommended by RMS.
58584
58585 2005-01-18  Bob Proulx  <bob@proulx.com>
58586
58587         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
58588         simplify offsetof() macro construct to avoid compile failure with
58589         native HP-UX 11.0 ANSI C compiler.
58590
58591 2005-01-17  Bruno Haible  <bruno@clisp.org>
58592
58593         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
58594         redundant because stpncpy.m4 takes care of it.
58595
58596 2005-01-17  Bruno Haible  <bruno@clisp.org>
58597
58598         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
58599
58600 2005-01-17  Bruno Haible  <bruno@clisp.org>
58601
58602         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
58603         used.
58604
58605 2005-01-17  Bruno Haible  <bruno@clisp.org>
58606
58607         * lib/fwriteerror.h (fwriteerror): Change specification to include
58608         fclose.
58609         * lib/fwriteerror.c: Include <stdbool.h>.
58610         (fwriteerror): At the end, close the file stream. Record whether
58611         stdout was already closed.
58612
58613 2005-01-17  Bruno Haible  <bruno@clisp.org>
58614
58615         * lib/execute.c (environ): Declare if needed.
58616         * lib/pipe.c (environ): Likewise.
58617         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
58618
58619 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58620
58621         * modules/argp: Depend on vsnprintf
58622
58623 2005-01-10  Jim Meyering  <jim@meyering.net>
58624
58625         * modules/closeout (Depends-on): Add atexit.
58626
58627 2005-01-06  Bruno Haible  <bruno@clisp.org>
58628
58629         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
58630
58631 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
58632
58633         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
58634         definitions to be after all include files, to avoid collisions.
58635         Problem reported by Bob Proulx.
58636
58637 2005-01-04  Jim Meyering  <jim@meyering.net>
58638
58639         Changes imported from coreutils.
58640         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
58641         as the mkstemp template, use a temporary directory and an
58642         8.3-friendly template to avoid trouble on systems like DJGPP.
58643         Reported by Juan M. Guerrero via Stepan Kasal.
58644         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
58645         close. Remove the temporary directory right away, rather than waiting
58646         for configure's at-exit trap code to do it.
58647         Suggestion from Stepan Kasal.
58648
58649 2005-01-01  Simon Josefsson  <jas@extundo.com>
58650
58651         * gnulib-tool: Print #include directives when --import'ing.
58652
58653 2004-12-28  Simon Josefsson  <jas@extundo.com>
58654
58655         * tests/test-base64.c: Include required header files.  Remove
58656         unused variables.
58657
58658 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
58659
58660         * modules/error (Depends-on): Remove gettext.
58661
58662 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
58663
58664         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
58665         not needed.  This removes a dependency on the gettext module.
58666         [defined _LIBC]: Do not include <libintl.h>; not needed.
58667
58668 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
58669
58670         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
58671         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
58672
58673 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
58674
58675         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
58676         HAVE_DECL_STRTOLD.
58677
58678 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58679
58680         * modules/getdate (Depends-on): Remove alloca-opt.
58681
58682 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58683
58684         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
58685
58686 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58687
58688         * lib/argp-parse.c: Include <stddef.h>.
58689         (alignof, alignto): New macros.
58690         (parser_init): Don't assume that void * is aligned sufficiently
58691         for struct option.
58692
58693         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
58694         need to extend the stack.
58695         (YYINITDEPTH): New macro, so that the initial stack isn't overly
58696         large.
58697
58698 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58699
58700         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
58701
58702 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
58703
58704         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
58705         (2004-10-24) change.  Apparently this was a false alarm.
58706
58707         * modules/getdate: Depend on alloca-opt, not alloca.
58708
58709 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
58710
58711         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
58712         Remove now-obsolete comment about AIX.
58713         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
58714         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
58715         (YYMAXDEPTH): New macro.
58716
58717 2004-12-18  Simon Josefsson  <jas@extundo.com>
58718
58719         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
58720
58721 2004-12-18  Bruno Haible  <bruno@clisp.org>
58722
58723         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
58724
58725 2004-12-18  Bruno Haible  <bruno@clisp.org>
58726
58727         * lib/fatal-signal.c (fatal_signals): Make non-const.
58728         (init_fatal_signals): New function.
58729         (uninstall_handlers, install_handlers): Ignore signals that were set to
58730         SIG_IGN.
58731         (at_fatal_signal): Call init_fatal_signals.
58732         (init_fatal_signal_set): Likewise. Ignore signals that were set to
58733         SIG_IGN.
58734         Reported by Paul Eggert.
58735
58736 2004-12-18  Bruno Haible  <bruno@clisp.org>
58737
58738         * doc/alloca.texi: New file.
58739         * doc/alloca-opt.texi: New file.
58740
58741 2004-12-17  Jim Meyering  <jim@meyering.net>
58742
58743         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
58744         Otherwise, install-sh could exit with improper exit status when
58745         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
58746
58747 2004-12-16  Simon Josefsson  <jas@extundo.com>
58748
58749         * tests/test-base64.c: Add license.
58750
58751 2004-12-15  Stepan Kasal  <address@hidden>
58752
58753         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
58754
58755 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
58756
58757         * modules/getcwd (Files): Add m4/d-ino.m4.
58758         Suggested by Mark D. Baushke.
58759
58760 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
58761
58762         * lib/getdate.y (textint): New member "negative".
58763         (time_zone_hhmm): New function.
58764         Expect 14 shift-reduce conflicts, not 13.
58765         (o_colon_minutes): New rule.
58766         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
58767         (yylex): Set the "negative" member of signed numbers.
58768
58769 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
58770
58771         * doc/getdate.texi (Time of day items, Time zone items):
58772         Describe new formats +00:00, UTC+00:00.
58773
58774 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
58775
58776         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
58777         spurious "-l"s.  Problem reported by Stepan Kasal.
58778
58779 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
58780
58781         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
58782         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
58783
58784 2004-12-04  Simon Josefsson  <jas@extundo.com>
58785
58786         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
58787         Vandoorselaere <yoann@prelude-ids.org>.
58788
58789 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
58790
58791         Changes imported from coreutils.
58792         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
58793         exist.
58794         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
58795
58796 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
58797
58798         Changes imported from coreutils.
58799         * lib/hard-locale.c: Assume <locale.h> exists.
58800         Include "strdup.h".
58801         (GLIBC_VERSION): New macro.
58802         (hard_locale): Assume setlocale exists.
58803         Rewrite to avoid #ifdef.
58804         Use strdup rather than malloc + strcpy.
58805         * lib/human.c: Assume <locale.h> exists.
58806         (human_readable): Assume localeconv exists.
58807
58808 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
58809
58810         * modules/hard-locale (Depends-on): Add strdup.
58811
58812 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
58813
58814         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
58815         convert T2, not T.  (Imported from libc.)
58816
58817 2004-11-30  Simon Josefsson  <jas@extundo.com>
58818
58819         * modules/restrict (License): Change to LGPL.
58820
58821 2004-11-30  Simon Josefsson  <jas@extundo.com>
58822
58823         * m4/restrict.m4: Add copyright and copying conditions.
58824
58825 2004-11-30  Simon Josefsson  <jas@extundo.com>
58826
58827         * m4/base64.m4: New file.
58828
58829 2004-11-30  Simon Josefsson  <jas@extundo.com>
58830
58831         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
58832         base64.
58833
58834         * tests/test-base64.c: New file.
58835
58836         * modules/base64: New file.
58837
58838 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
58839
58840         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
58841         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
58842
58843         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
58844
58845 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
58846
58847         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
58848         (__getcwd.c): Don't restore errno; glibc doesn't.
58849         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
58850         first, falling back to our code only if its results look suspicious.
58851         Ensure that the resulting buffer is only as large as necessary.
58852
58853         * lib/readutmp.c: Include readutmp.h first.
58854         Include <errno.h>, since readutmp.h no longer does that.
58855         * lib/readutmp.h: Don't include <errno.h>,
58856         <sys/param.h>, <time.h>; not needed to establish interface.
58857         (errno): Remove decl.
58858         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
58859         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
58860         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
58861
58862 2004-11-28  Simon Josefsson  <jas@extundo.com>
58863
58864         * lib/base64.h, base64.c: New file.
58865
58866 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
58867
58868         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
58869
58870 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
58871
58872         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
58873         (Depends-on): Remove pathmax, same.  Add mempcpy.
58874         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
58875         (Makefile.am): Append getcwd.h to lib_SOURCES.
58876         (Include): Add getcwd.h.
58877         (Maintainer): Change from Jim Meyering to "all, glibc",
58878         since getdate now uses intended-for-glibc code.
58879         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
58880         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
58881
58882 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
58883
58884         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
58885         HP's ANSI C compiler.
58886         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
58887         Declaring int functions causes warnings on some modern systems and
58888         shouldn't be needed to compile on ancient ones.
58889         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
58890         defined.
58891
58892         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
58893         with the following changes.
58894         (__set_errno): Parenthesize properly.
58895         Include <stdbool.h>.
58896         (MIN, MAX, MATCHING_INO): New macros.
58897         (__getcwd): Define with prototype, not K&R form.
58898         Use heuristics to allocate default buffer on stack if possible.
58899         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
58900         behavior, and to avoid the PATH_MAX limit when computing
58901         ../../../../...
58902         Use MATCHING_INO to compare inode number to file.
58903         Check for arithmetic overflow in size calculations.
58904         Fix bug in reallocation of dot array that caused getcwd to fail
58905         on directories nested deeper than 75.
58906         Be more careful about saving errno on error.
58907         Do not use realloc; use only free+malloc, as this is a bit
58908         more flexible and avoids a needless copy operation.
58909         Do not inspect st_dev and st_ino for symbolic links; POSIX
58910         doesn't specify the latter.
58911         Check for closedir errors.
58912         Avoid needless casts.
58913         Use "#ifdef weak_alias" around weak_alias, to be like other
58914         glibc code.
58915         The following changes to getcwd.c have effect only when used in
58916         gnulib; they have no effect inside glibc proper.
58917         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
58918         as alloca isn't used.
58919         (alloca, __alloca): Likewise.
58920         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
58921         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
58922         unconditionally, as gnulib assumes C89 or better.
58923         Do not include <sys/param.h>.
58924         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
58925         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
58926         better.
58927         (NULL) [!defined NULL]: Remove; we assume C89 or better.
58928         Include <dirent.h> in a way that is compatible with modern Autoconf.
58929         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
58930         New macros, if not already defined.
58931         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
58932         Use "_LIBC", not "defined _LIBC", for consistency.
58933         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
58934         a mempcpy module.
58935         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
58936         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
58937         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
58938         credit only to Jim Meyering and adjust the copyright dates.
58939         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
58940         <stdlib.h>, <unistd.h>, "pathmax.h".
58941         Instead, include "xgetcwd.h" (first) and "getcwd.h".
58942         (INITIAL_BUFFER_SIZE): Remove.
58943         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
58944
58945 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
58946
58947         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
58948         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
58949         Use the _ONCE methods, for efficiency.
58950         Check for fcntl.h.  In test program, include <errno.h>
58951         and <fcntl.h> if available.  Remove old K&R cruft from
58952         test program.  Check for common errors in GNU/Linux,
58953         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
58954         don't do AC_LIBOBJ, as that's getcwd.m4's job.
58955         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
58956         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
58957         name accordingly.
58958         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
58959         accommodate new getcwd.c.
58960         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
58961         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
58962         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
58963         that's all we need now.
58964
58965 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58966
58967         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
58968         argp-parse.c depends on getopt internals, that means we should
58969         always use our getopt, to be on the safe side.
58970         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
58971         order not to spoil the result of an eventual previous invocation
58972         of gl_GETOPT_SUBSTITUTE.
58973
58974 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58975
58976         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
58977         redefinition warnings. To avoid them, include the defines
58978         in `#if !defined __need_getopt ... #endif'. The only place
58979         where __getopt_argv_const is used is in definitions
58980         of getopt_long and getopt_long_only below, which are as well
58981         protected by `#ifndef __need_getopt'.
58982         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
58983         __need_getopt after including <stdio.h> and <unistd.h> These
58984         headers might have defined it.
58985
58986 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
58987
58988         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
58989
58990 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
58991
58992         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
58993         (futimens): New function, which uses futimes if available.
58994         (futimens, utimens): Support timespec==NULL, with same semantics
58995         as utime and utimens.
58996         * lib/utimens.h (futimens): New decl.
58997
58998 2004-11-23  Jim Meyering  <jim@meyering.net>
58999
59000         * lib/getopt_.h: Remove trailing blanks.
59001
59002 2004-11-23  Jim Meyering  <jim@meyering.net>
59003
59004         * lib/__fpending.c: Add comment.
59005
59006 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
59007
59008         * modules/canonicalize (Depends-on): Add xreadlink.
59009         Problem reported by James Youngman.
59010
59011 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
59012
59013         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
59014         New macros.
59015         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
59016         optopt): Use them instead of invoking ## directly; otherwise, the
59017         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
59018
59019 2004-11-19  Bruno Haible  <bruno@clisp.org>
59020
59021         * lib/strtok_r.c: Move comments from here...
59022         * lib/strtok_r.h: ... to here.
59023
59024 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
59025
59026         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
59027         implementations that mishandle size_t overflow.
59028
59029 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
59030
59031         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
59032         might fail.  Problem reported by Yoann Vandoorselaere.
59033         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
59034         implementations that mishandle size_t overflow.
59035
59036 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59037
59038         * modules/canon-host (Depends-on): Add strdup.
59039
59040 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59041
59042         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
59043
59044 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59045
59046         * lib/canon-host.c: Include "strdup.h".
59047         (canon_host): Use getaddrinfo if available, so that IPv6 works.
59048         Use strdup instead of malloc/strcpy to duplicate strings.
59049
59050         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
59051         (human_space_before_unit): New constant.
59052         * lib/human.c (human_readable): Support it.
59053
59054         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
59055         (xgetcwd): Set errno correctly when failing.
59056         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
59057         the failure is actually due to a PATH_MAX problem.
59058
59059         Further getopt changes to make it more likely that glibc will
59060         buy the changes back.
59061         * lib/getopt.c (POSIXLY_CORRECT): New constant.
59062         (getopt): Use it, so to preserve glibc semantic
59063         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
59064         when compiling for libc.
59065         * lib/getopt_.h (__getopt_argv_const): Bring it back.
59066         (getopt_long, getopt_long_only): Use it.
59067
59068         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
59069         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
59070         (getopt): Argv is now char * const *, as per standard.
59071         (_getopt_internal_r, _getopt_internal): Argv is now char **,
59072         not char *__getopt_argv_const *.
59073         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
59074         _getopt_long_only_r): Likewise.
59075         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
59076         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
59077         _getopt_long_r, _getopt_long_only_r): Likewise.
59078         * lib/getopt_.h (__getopt_argv_const): Remove.
59079         (getopt): Argv is now char * const *, as per standard.
59080
59081         * lib/getdate.y (tORDINAL): New token.
59082         (day, relunit): Allow it for relative times.
59083         (relative_time_table): Use tORDINAL for ordinals.
59084
59085 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59086
59087         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
59088         Document that "second" isn't allowed as an ordinal number.
59089
59090 2004-11-16  Jim Meyering  <jim@meyering.net>
59091
59092         * modules/closeout (Depends-on): Add fpending.
59093
59094 2004-11-15  Jim Meyering  <jim@meyering.net>
59095
59096         * lib/closeout.c: Include "__fpending.h" once again.
59097         Include <stdbool.h>.
59098         (close_stdout): Don't fail just because stdout was closed initially,
59099         since some programs don't write to stdout in the normal course of
59100         operation (other than --version and --help), and we don't want this
59101         function to make e.g. `touch file >&-' fail.
59102         But do fail if it was closed and someone has tried to write to it.
59103         E.g., `printf foo >&-' must fail.
59104
59105 2004-11-13  Jim Meyering  <jim@meyering.net>
59106
59107         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
59108
59109 2004-11-12  Simon Josefsson  <jas@extundo.com>
59110
59111         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
59112         small doc fix is still pending.
59113
59114 2004-11-11  Simon Josefsson  <jas@extundo.com>
59115
59116         * modules/strtok_r: New file.
59117
59118         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59119         strtok_r.
59120
59121 2004-11-11  Simon Josefsson  <jas@extundo.com>
59122
59123         * m4/strtok_r.m4: New file.
59124
59125         * m4/getopt.m4: Replace opterr.
59126
59127 2004-11-11  Simon Josefsson  <jas@extundo.com>
59128
59129         * lib/strtok_r.h, strtok_r.c: New file.
59130
59131 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
59132
59133         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
59134         of replacing opterr, getopt, etc.  This should handle the
59135         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
59136
59137 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
59138
59139         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
59140         we can stop lying to compilers about the constness of argv when we
59141         are compiled outside glibc.
59142         (getopt, getopt_long, getopt_long_only): Use it.
59143         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
59144         _getopt_internal, getopt): Likewise.
59145         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
59146         _getopt_long_only_r): Likewise.
59147         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
59148         _getopt_long_r, _getopt_long_only_r): Likewise.
59149
59150         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
59151         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
59152         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
59153         the other external symbols.
59154         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
59155         declaration, since the above renaming now works around collisions.
59156
59157 2004-11-11  Jim Meyering  <jim@meyering.net>
59158
59159         * lib/linebreak.c: Remove trailing blanks.
59160         * lib/alloca_.h: Likewise.
59161         * lib/acosl.c: Likewise.
59162         * lib/euidaccess.c: Likewise.
59163         * lib/allocsa.h: Likewise.
59164
59165 2004-11-10  Simon Josefsson  <jas@extundo.com>
59166
59167         * m4/getaddrinfo.m4: New file.
59168
59169 2004-11-10  Simon Josefsson  <jas@extundo.com>
59170
59171         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
59172
59173 2004-11-10  Simon Josefsson  <jas@extundo.com>
59174
59175         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59176         getaddrinfo.
59177
59178         * modules/getaddrinfo: New file.
59179
59180 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
59181
59182         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
59183
59184 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
59185
59186         * lib/mktime.c (SHR): New macro, which is a portable
59187         substitute for >> that should work even on Crays.
59188         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
59189         Problem reported by Mark D. Baushke in
59190         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
59191         * lib/getdate.y (SHR): Likewise.
59192         (tm_diff): Use it.
59193         * lib/strftime.c (SHR): Likewise.
59194         (tm_diff): Use it.
59195         * lib/quotearg.c (struct quoting_options): Use unsigned int for
59196         quote_these_too, so that right shifts are well defined.  All uses
59197         changed.
59198
59199 2004-11-10  Jim Meyering  <jim@meyering.net>
59200
59201         Ensure that no close failure goes unreported.
59202         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
59203         return early when it seems there's nothing to flush.
59204         Don't include __fpending.h.
59205
59206 2004-11-10  Jim Meyering  <jim@meyering.net>
59207
59208         * modules/closeout (Depends-on): Remove fpending.
59209
59210 2004-11-10  Jim Meyering  <jim@meyering.net>
59211
59212         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
59213
59214 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
59215
59216         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
59217         gl_FUNC_STRFTIME.
59218         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
59219         and AC_REQUIRE when possible, to avoid duplicate checks.
59220         Check for <wchar.h>.
59221
59222 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
59223
59224         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
59225
59226 2004-11-09  Bruno Haible  <bruno@clisp.org>
59227
59228         * m4/sockpfaf.m4: New file.
59229
59230 2004-11-05  Bruno Haible  <bruno@clisp.org>
59231
59232         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
59233         Reported by Mark D. Baushke <mdb@cvshome.org>.
59234
59235 2004-11-04  Bruno Haible  <bruno@clisp.org>
59236
59237         2004-09-11  Bruno Haible  <bruno@clisp.org>
59238                 * allocsa.valgrind: New file.
59239         2004-02-06  Bruno Haible  <bruno@clisp.org>
59240                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
59241                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
59242                 Reported by Christopher Seip <chris.seip@hp.com>.
59243
59244 2004-11-04  Bruno Haible  <bruno@clisp.org>
59245
59246         * modules/allocsa (Files): Add lib/allocsa.valgrind.
59247         (Makefile.am): Distribute it.
59248
59249 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
59250
59251         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
59252         with errno == ERANGE if the buffer is too small.
59253         Problem reported by Mark D. Baushke.
59254
59255 2004-11-03  Albert Chin  <china@thewrittenword.com>
59256             Paul Eggert  <eggert@cs.ucla.edu>
59257
59258         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
59259         equivalent, substitute $ac_type for equivalent type rather than
59260         blindly using uint32_t *always* which won't work if uint32_t is not
59261         available.  Define _UINT32_T to work around typedef of uint32_t if
59262         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
59263         2.5.1.
59264
59265 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
59266
59267         * m4/jm-macros.m4: Sync from coreutils.
59268         (gl_MACROS): Check for mbrlen, for pathchk.
59269         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
59270
59271 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
59272
59273         * lib/xreadlink.c (MAXSIZE): New macro.
59274         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
59275         size does not exceed MAXSIZE.  Avoid cast.
59276         As suggested by Mark D. Baushke in
59277         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
59278         if readlink fails with buffer size just under MAXSIZE, try again
59279         with MAXSIZE.
59280
59281 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
59282
59283         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
59284
59285 2004-11-02  Derek R. Price  <derek@ximbiot.com>
59286         and  Paul Eggert  <eggert@cs.ucla.edu>
59287
59288         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
59289         (get_date): Overparenthesize to avoid GCC warning.
59290
59291 2004-11-02  Bruno Haible  <bruno@clisp.org>
59292
59293         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
59294         returns void.
59295
59296 2004-11-02  Bruno Haible  <bruno@clisp.org>
59297
59298         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
59299         function returns void.
59300
59301 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
59302
59303         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
59304         fflush_unlocked, flockfile, funlockfile, funlockfile,
59305         fputs_unlocked, putc_unlocked.
59306
59307 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
59308
59309         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
59310         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
59311         already declared.
59312
59313 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
59314
59315         * modules/getdate (Files): Add doc/getdate.texi.
59316         (Depends-on): Add setenv, xalloc.
59317
59318 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
59319
59320         * lib/getdate.y: Add support for TZ="foo" within a date string.
59321         Fix some bugs near time_t boundaries.  Reject dates with
59322         out-of-range components, e.g., "Sept 31".
59323         Include <stdlib.h>, "setenv.h", "xalloc.h".
59324         (ISDIGIT_LOCALE): Remove; unused.
59325         Note that the TZ and time functions used here are not reentrant.
59326         (mktime_ok, get_tz): New functions.
59327         (TZBUFSIZE): New constant.
59328         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
59329         This requires that we sometimes generate our own TZ="XXX..." setting.
59330
59331 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
59332
59333         * doc/getdate.texi: New file, from coreutils with modifications for
59334         the new TZ parsing.
59335
59336 2004-10-27  Derek R. Price  <derek@ximbiot.com>
59337
59338         * lib/mktime.c (not_equal_tm): Remove redundant check.
59339
59340 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59341
59342         * modules/regex (lib_SOURCES): Add regex.c.
59343         Reported by James Youngman in
59344         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
59345
59346 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59347
59348         * lib/getdate.y: Use Bison 1.875 features, and some minor
59349         code cleanups.  This change does not affect semantics.
59350         Don't include <stdlib.h>; no longer needed.
59351         Don't include unlocked-io.h; only the "#if TEST" code uses
59352         stdio, and performance isn't crucial there.
59353         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
59354         Bison 1.875 features as described below.
59355         All uses of "PC." replaced by "pc->".
59356         (YYSTYPE): Add a forward declaration.
59357         (yylex, yyerror): Use full prototypes in forward decls.
59358         Use "%pure-parser" rather than obsolescent "%pure_parser".
59359         Use %parse-param and %lex-param instead of obsolescent
59360         YYPARSE_PARAM and YYLEX_PARAM.
59361         (meridian_table, month_and_day_table, time_units_table,
59362         relative_time_table, time_zone_table, military_table,
59363         lookup_zone, lookup_word, get_date):
59364         Use NULL instead of 0 where appropriate.
59365         (to_hour): Avoid abort (), to avoid a dependency on
59366         stdlib.h.
59367         (yyerror, yylex): Now accepts parser_control * arg.
59368         (main) [TEST]: Use '\0' rather than 0 for char.
59369
59370 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59371
59372         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
59373
59374 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59375
59376         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
59377         It's now the caller's responsibility to handle the case where
59378         !HAVE_GETPAGESIZE && !defined getpagesize.
59379
59380         * lib/mktime.c (leapyear): Arg is long int, not int.
59381
59382 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
59383
59384         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
59385
59386 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
59387
59388         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
59389         missing.  Problem reported by James Youngman.
59390
59391 2004-10-16  Simon Josefsson  <jas@extundo.com>
59392
59393         * gnulib-tool: Fix comments.  Fix parse problem.
59394         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
59395
59396 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
59397
59398         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
59399         implementation of getopt_long.  Problem reported by Alexander Taler in:
59400         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
59401
59402 2004-10-15  Bruno Haible  <bruno@clisp.org>
59403
59404         * gnulib-tool: Untabify. Initialize supplied_libname.
59405         (func_usage): More homogenous output.
59406         (func_modules_transitive_closure, func_modules_to_filelist,
59407         func_emit_lib_Makefile_am): New functions.
59408         (func_import): New function, extracted from big case statement. Use
59409         func_get_license, func_modules_transitive_closure,
59410         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
59411         opt_lgpl. Don't use test -a, as it's not portable.
59412         (func_create_testdir): Use func_modules_transitive_closure,
59413         func_modules_to_filelist, func_emit_lib_Makefile_am.
59414
59415 2004-10-15  Bruno Haible  <bruno@clisp.org>
59416
59417         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
59418
59419 2004-10-15  Bruno Haible  <bruno@clisp.org>
59420
59421         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
59422         the portions belonging to each module.
59423         Suggested by Derek Robert Price <derek@ximbiot.com>.
59424
59425 2004-10-12  Simon Josefsson  <jas@extundo.com>
59426
59427         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
59428         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
59429         to real functions.
59430
59431 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59432
59433         * modules/vsnprintf: New file.
59434
59435 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59436
59437         * m4/vsnprintf.m4: New file.
59438
59439 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59440
59441         * lib/vsnprintf.h: New file.
59442         * lib/vsnprintf.c: New file.
59443
59444 2004-10-11  Bruno Haible  <bruno@clisp.org>
59445
59446         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
59447         vsnprintf.
59448
59449 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
59450
59451         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
59452
59453 2004-10-07  Bruno Haible  <bruno@clisp.org>
59454
59455         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
59456         fits into the provided buffer.
59457
59458 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
59459
59460         * lib/diacrit.c, diacrit.h: Add GPL notice.
59461
59462         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
59463         notice.
59464         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
59465         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
59466         This avoids a potential constant-folding bug.
59467
59468 2004-10-05  Bruno Haible  <bruno@clisp.org>
59469
59470         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
59471         for the declaration of strsep.
59472
59473 2004-10-05  Bruno Haible  <bruno@clisp.org>
59474
59475         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
59476
59477 2004-10-04  Simon Josefsson  <jas@extundo.com>
59478
59479         * modules/memmem: New file.
59480         * tests/test-memmem.c: New file.
59481         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
59482
59483 2004-10-04  Simon Josefsson  <jas@extundo.com>
59484
59485         * m4/memmem.m4: New file.
59486
59487 2004-10-04  Simon Josefsson  <jas@extundo.com>
59488
59489         * lib/memmem.h: New file.
59490         * lib/memmem.c: New file, taken from glibc.
59491
59492 2004-10-04  Simon Josefsson  <jas@extundo.com>
59493
59494         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
59495         '#ifdef USE_UNLOCKED_IO'.
59496
59497 2004-10-04  Simon Josefsson  <jas@extundo.com>
59498
59499         * config/srclist.txt: Add memmem from glibc.
59500
59501 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59502
59503         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
59504
59505         * modules/argmatch, modules/argp, modules/closeout, modules/error,
59506         modules/exclude, modules/getdate, modules/getline,
59507         modules/getndelim2, modules/getpass, modules/getpass-gnu,
59508         modules/getusershell, modules/linebuffer, modules/md5,
59509         modules/mountlist, modules/posixtm, modules/readtokens,
59510         modules/readutmp, modules/regex, modules/sha1,
59511         modules/version-etc, modules/yesno:
59512         Remove dependency on unlocked-io.
59513
59514 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59515
59516         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
59517
59518         * m4/unlocked-io.m4: Add copyright notice.
59519         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
59520
59521 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59522
59523         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
59524         * lib/xmalloc.c (xmemdup): Likewise.
59525         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
59526         XFREE): Remove these long-obsolescent macros.
59527         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
59528         * lib/xstrdup.c: Remove.
59529
59530         * lib/regex.c (re_comp): Cast gettext return value to char *,
59531         Problem reported by Martin Neitzel via Mark D. Baushke.
59532
59533 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59534
59535         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
59536         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
59537         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
59538         regex.c, sha1.c, version-etc.c, yesno.c:
59539         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
59540         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
59541         the includer's responsibility.
59542
59543         Sync from coreutils.
59544
59545         * lib/modechange.c (mode_compile): Don't decrement a pointer that
59546         points to the start of a string, as the C Standard says the
59547         resulting behavior is undefined.
59548
59549         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
59550         simple -> simple_backups, numbered_existing ->
59551         numbered_existing_backups, numbered -> numbered_backups
59552         to avoid shadowing problems.  All uses changed.
59553         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
59554         * lib/backupfile.c (check_extension, numbered_backup):
59555         Rename locals to avoid shadowing 'basename'.
59556         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
59557         once.
59558
59559         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
59560         * lib/.cvsignore: Add getopt.h.
59561
59562 2004-10-04  Bruno Haible  <bruno@clisp.org>
59563
59564         * modules/README: New file.
59565         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
59566         not a module.
59567
59568 2004-10-02  Jim Meyering  <jim@meyering.net>
59569
59570         * lib/dirfd.h, getpagesize.h: Add copyright notice.
59571
59572 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59573
59574         * modules/strsep: New file.
59575
59576 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59577
59578         * m4/strsep.m4: New file.
59579
59580 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59581
59582         * lib/strsep.h: New file.
59583         * lib/strsep.c: New file.
59584
59585 2004-10-01  Simon Josefsson  <jas@extundo.com>
59586
59587         * lib/snprintf.c (snprintf): Handle size==0.
59588
59589 2004-10-01  Simon Josefsson  <jas@extundo.com>
59590             Bruno Haible  <bruno@clisp.org>
59591
59592         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
59593         (snprintf): Declare 'args'.
59594
59595 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
59596
59597         * lib/snprintf.c: Remove comments as to why each header is needed.
59598
59599 2004-10-01  Bruno Haible  <bruno@clisp.org>
59600
59601         * MODULES.html.sh: Add strsep.
59602
59603 2004-09-30  Simon Josefsson  <jas@extundo.com>
59604
59605         * modules/snprintf: New file.
59606
59607 2004-09-30  Simon Josefsson  <jas@extundo.com>
59608
59609         * m4/snprintf.m4: New file.
59610
59611 2004-09-30  Simon Josefsson  <jas@extundo.com>
59612
59613         * lib/snprintf.h, lib/snprintf.c: New files.
59614
59615 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59616
59617         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
59618         (hol_entry_help): Never translate an empty string.
59619         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
59620         * lib/argp.h (OPTION_NO_TRANS): New option.
59621
59622 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
59623
59624         * modules/argp (Maintainer): Replace Simon Josefsson
59625         by Sergey Poznyakoff.
59626
59627 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
59628
59629         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
59630         changes merged back into glibc.
59631
59632 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
59633
59634         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
59635
59636 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
59637
59638         * lib/xvasprintf.c: Include xalloc.h.
59639         (xvasprintf): Use xalloc_die, not xmalloc_die.
59640
59641 2004-09-29  Bruno Haible  <bruno@clisp.org>
59642
59643         * modules/alloca-opt: New file, derived from modules/alloca.
59644         * modules/allocsa: Depend on alloca-opt instead of alloca.
59645         * modules/setenv: Likewise.
59646         * modules/vasnprintf: Likewise.
59647         * MODULES.html.sh: Add alloca-opt.
59648
59649 2004-09-28  Simon Josefsson  <jas@extundo.com>
59650
59651         * gnulib-tool: New parameter --lgpl, to asseert that modules are
59652         LGPL, and to replace license template from GPL to LGPL.
59653
59654 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
59655
59656         * modules/dummy: Change license to LGPL.
59657
59658 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
59659
59660         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
59661
59662 2004-09-24  Simon Josefsson  <jas@extundo.com>
59663
59664         * modules/minmax (License): Change from GPL to LGPL.
59665
59666 2004-09-23  Simon Josefsson  <jas@extundo.com>
59667
59668         * gnulib-tool (--import): Typo.
59669
59670 2004-09-23  Simon Josefsson  <jas@extundo.com>
59671
59672         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
59673
59674 2004-09-22  Bruno Haible  <bruno@clisp.org>
59675
59676         * modules/*: Add 'License' field.
59677         * gnulib-tool: Accept --extract-license option.
59678         (func_get_license): New function.
59679
59680 2004-09-21  Bruno Haible  <bruno@clisp.org>
59681
59682         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
59683         Reported by Simon Josefsson.
59684
59685 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
59686
59687         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
59688         gl_AC_TYPE_LONG_LONG.
59689
59690 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
59691
59692         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
59693
59694 2004-09-18  Simon Josefsson  <jas@extundo.com>
59695         and  Paul Eggert  <eggert@cs.ucla.edu>
59696
59697         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
59698         calls with autoreconf.  Define GL_LIB.
59699
59700 2004-09-14  Karl Berry  <karl@gnu.org>
59701
59702         * config/srclist.txt: unsync setenv.c, sigh.
59703
59704 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59705
59706         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
59707         Problem reported by Bruno Haible in:
59708         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
59709
59710 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59711
59712         * config/srclist.txt: Comment out argp-pvh.c.
59713
59714 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
59715
59716         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
59717         in case some system header has #define'd it.  Problem reported by
59718         Soeren D. Schulze in
59719         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
59720
59721 2004-09-09  Karl Berry  <karl@gnu.org>
59722
59723         * regex.[ch]: delete from the root.  These were supposed to be
59724                 synced with emacs cvs, but this has not happened for about
59725                 a year, and anyway nothing else uses emacs regex.[ch].
59726                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
59727                 lib/regex[.ch] is untouched.
59728
59729 2004-09-09  Bruno Haible  <bruno@clisp.org>
59730
59731         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
59732
59733 2004-09-09  Bruno Haible  <bruno@clisp.org>
59734
59735         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
59736         modifications.
59737         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
59738
59739 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
59740
59741         * modules/xvasprintf: New file.
59742         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
59743
59744 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
59745
59746         * lib/xvasprintf.h: New file.
59747         * lib/xvasprintf.c: New file.
59748         * lib/xasprintf.c: New file.
59749
59750 2004-09-08  Bruno Haible  <bruno@clisp.org>
59751
59752         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
59753
59754 2004-09-08  Bruno Haible  <bruno@clisp.org>
59755
59756         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
59757         length is > INT_MAX.
59758         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
59759         more.
59760
59761 2004-09-08  Bruno Haible  <bruno@clisp.org>
59762
59763         * lib/stdint_.h: New file, taken from GNU clisp.
59764
59765 2004-09-08  Bruno Haible  <bruno@clisp.org>
59766             Oskar Liljeblad  <oskar@osk.mine.nu>
59767
59768         * modules/stdint: New file.
59769         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
59770
59771 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59772
59773         Import from coreutils.
59774         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
59775         strings on unbounded length.  alloca's performance benefits aren't
59776         that important here.
59777         (V_STRDUP): Remove.
59778         (parse_with_separator): New function, with most of the internals
59779         of the old parse_user_spec.  Allow user to omit both user and group,
59780         for compatibility with FreeBSD.
59781         Clone only the user name, not the entire spec.
59782         Do not set *uid, *gid unless entirely successful.
59783         Avoid memory leak in some failing cases.
59784         Fix regression for USER.GROUP reported by Dmitry V. Levin in
59785         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
59786         (parse_user_spec): Rewrite to use parse_with_separator.
59787
59788 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59789
59790         * modules/userspec: Don't depend on alloca.
59791
59792 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59793
59794         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
59795
59796 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
59797
59798         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
59799         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
59800         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
59801
59802 2004-08-16  Simon Josefsson  <jas@extundo.com>
59803
59804         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
59805         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
59806         Add --dry-run for --import.
59807         Let user provided command line parameters override configure.ac
59808         settings.
59809
59810 2004-08-12  Simon Josefsson  <jas@extundo.com>
59811
59812         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
59813         as discussed with Paul Eggert in threads rooted at
59814         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
59815         and
59816         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
59817         Before, the test was empty, and relied on ELIDE_CODE in source
59818         code.)
59819         (gl_PREREQ_GETOPT): New macro.
59820         (gl_GETOPT): Use them.
59821
59822 2004-08-12  Simon Josefsson  <jas@extundo.com>
59823
59824         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
59825         * lib/getopt_.h: Renamed from getopt.h.
59826
59827 2004-08-12  Simon Josefsson  <jas@extundo.com>
59828
59829         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
59830         Change default library name from libfoo to libgnu.
59831         Now, if you have a configure.ac that says:
59832                 gl_SOURCE_BASE(gl)
59833                 gl_M4_BASE(gl/m4)
59834                 gl_MODULES(error getopt etcetera)
59835                 gl_INIT
59836         you can import all you need by running:
59837                 ../gnulib/gnulib-tool --import
59838
59839         * modules/getopt (Files): Rename getopt.h to getopt_.h.
59840         (Makefile.am): Rewrite, use logic from argz.
59841         (Include): Use <getopt.h> instead of "getopt.h".
59842
59843 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59844
59845         * modules/argp (Files): Add m4/unlocked-io.m4.
59846         (Depends-on): Add extensions.
59847
59848 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59849
59850         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
59851         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
59852         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
59853         Check for program_invocation_name, program_invocation_short_name,
59854         flockfile, funlockfile, features.h, _getopt_long_only_r.
59855
59856 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59857
59858         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
59859         its complicated substitute.
59860         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
59861         and program_invocation_name.
59862         (__argp_basename) [!_LIBC]: Remove; the only use was
59863         replaced by its body.
59864         (__argp_short_program_name): Change condition from
59865         !defined __argp_short_program_name to
59866         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
59867         to match argp-namefrob.h.
59868         (__argp_failure): Don't assume strerror_r returns char *.
59869         * lib/argp-parse.c (N_): Define unconditionally.
59870         (argp_default_options): Fill out initializers with 0 to avoid
59871         gcc warnings.
59872
59873 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59874
59875         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
59876         getopt1.c.
59877
59878 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59879
59880         Merge from coreutils.
59881
59882         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
59883
59884         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
59885         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
59886
59887 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59888
59889         Merge from coreutils.
59890
59891         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
59892         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
59893         for Reliant Unix 5.43.
59894
59895         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
59896         (union fooround): Use uintmax_t, not long int.
59897         The rest is a merge from libc:
59898         [defined _LIBC]: Include <shlib-compat.h>.
59899         (_obstack) [defined _LIBC]: Remove after 2.3.4.
59900
59901         * lib/settime.c (settime): Recode to avoid warning with
59902         Sun Forte C 6U2.
59903
59904         * lib/strverscmp.c: Convert to UTF-8.
59905
59906 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59907
59908         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
59909         m4/uintmax_t.m4.
59910
59911 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59912
59913         * modules/xalloc-die: New file.
59914         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
59915
59916         * modules/md5 (Files): Add m4/uint32_t.m4.
59917         * modules/sha1: Renamed from modules/sha.
59918         (Files):
59919         Rename lib/sha.h to lib/sha1.h.
59920         Rename lib/sha.c to lib/sha1.c.
59921         Rename m4/sha.m4 to m4/sha1.m4.
59922         (lib_SOURCES): Likewise.
59923         (configure.ac): Rename gl_SHA to gl_SHA1.
59924         (Include): sha.h -> sha1.h.
59925
59926 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59927
59928         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
59929         * m4/sha1.m4: Renamed from sha.m4.
59930         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
59931
59932 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59933
59934         * lib/obstack.h (obstack_empty_p):
59935         Don't assume that chunk->contents is suitably aligned.
59936         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
59937         Likewise. Problem reported by Benno in
59938         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
59939
59940         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
59941         readable.  This could be improved further but it'd take some work.
59942
59943 2004-08-08  Simon Josefsson  <jas@extundo.com>
59944
59945         * modules/xgethostname (Depends-on): Remove exit and error (not
59946         used).
59947
59948         * modules/getpass-gnu: Add getpass.h.
59949         (Depends-on): Add stdbool.
59950         * modules/getpass: Add getpass.h.
59951
59952 2004-08-08  Simon Josefsson  <jas@extundo.com>
59953
59954         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
59955         Check getpass declaration.
59956
59957 2004-08-08  Simon Josefsson  <jas@extundo.com>
59958
59959         * lib/xgethostname.c: Don't include error.h (not used).
59960
59961         * lib/getpass.h: Add.
59962         * lib/getpass.c: Include getpass.h first.
59963
59964 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
59965
59966         * lib/xalloc-die.c: New file.
59967         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
59968         All uses removed.
59969         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
59970         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
59971         xalloc-die.c.
59972         (_, N_, xalloc_die): Move to xalloc-die.c.
59973         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
59974         so that we needn't mess with xalloc_msg_memory_exhausted.
59975
59976         * lib/sha1.h: Renamed from sha.h.
59977         (SHA1_H): Renamed from _SHA_H.
59978         (sha1_ctx): Renamed from sha_ctx.
59979         (sha1_init_ctx): Renamed from sha_init_ctx.
59980         (sha1_process_block): Renamed from sha_process_block.
59981         (sha1_process_bytes): Renamed from sha_process_bytes.
59982         (sha1_finish_ctx): Renamed from sha_finish_ctx.
59983         (sha1_read_ctx): Renamed from sha_read_ctx.
59984         (sha1_stream): Renamed from sha_stream.
59985         (sha1_buffer): Renamed from sha_buffer.
59986         * lib/sha1.c: Likewise; renamed from sha.c.
59987         Do not include <sys/types.h>.
59988         Include <stddef.h> rather than <stdlib.h>.
59989
59990 2004-08-08  Bruno Haible  <bruno@clisp.org>
59991
59992         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
59993         FILESYSTEM_PREFIX_LEN.
59994         * lib/progreloc.c: Likewise.
59995         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
59996
59997 2004-08-06  Simon Josefsson  <jas@extundo.com>
59998
59999         * modules/progname (Depends-on): Don't depend on stdbool.
60000
60001 2004-08-06  Simon Josefsson  <jas@extundo.com>
60002
60003         * modules/getsubopt: New file.
60004         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60005         getsubopt.
60006
60007 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
60008
60009         More merge from coreutils.
60010
60011         * m4/utimens.m4, m4/utimecmp.m4: New files.
60012         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
60013         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
60014         prereq.m4, sha.m4: Import changes from coreutils.
60015
60016 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
60017
60018         More merge from coreutils.
60019         * modules/raise, modules/readtokens0, modules/utimens:
60020         * modules/utimecmp, module/xnanosleep: New files.
60021         * modules/strftime: Add lib/strftime.h.
60022         Change include from <time.h> to "strftime.h".
60023         * modules/yesno: Add lib/yesno.h.
60024         * modules/backupfile: Remove lib/addext.c.
60025         * modules/euidaccess: Add stat-macros.h.
60026         * modules/canonicalize, modules/euidaccess,
60027         modules/filemode, modules/lchown, modules/makepath,
60028         modules/rmdir, modules/stat: Likewise.
60029
60030 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
60031
60032         Merge from tar.
60033         * lib/argp-help.c (make_hol, hol_append): Don't assume that
60034         SIZE_MAX is a valid preprocessor constant.
60035         (__argp_basename): Change from "#ifndef _LIBC"
60036         to "#ifndef __argp_short_program_name", so that
60037         we don't compile these functions for tar.
60038
60039         More merges from coreutils.
60040         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
60041         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
60042         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
60043         * lib/addext.c: Remove; no longer needed.
60044         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
60045         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
60046         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
60047         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
60048         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
60049         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
60050         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
60051         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
60052         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
60053         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
60054         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
60055         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
60056         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
60057         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
60058         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
60059         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
60060         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
60061         Import changes from coreutils.
60062
60063 2004-08-05  Simon Josefsson  <jas@extundo.com>
60064
60065         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
60066
60067 2004-08-05  Simon Josefsson  <jas@extundo.com>
60068
60069         * m4/getsubopt.m4: New file.
60070
60071 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
60072
60073         Merge from coreutils.
60074
60075         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
60076         * m4/getcwd-path-max.m4: New files.
60077
60078         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
60079         FILESYSTEM_PREFIX_LEN ->
60080         FILE_SYSTEM_PREFIX_LEN.
60081         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
60082         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
60083         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
60084         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
60085
60086         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
60087         prerequisite modules now handle the DOS stuff.
60088         Don't check for unistd.h.
60089
60090 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
60091
60092         Merge from coreutils.
60093
60094         * lib/.gdb-history: Remove; this doesn't belong here.
60095
60096         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
60097         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
60098         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
60099         * lib/getcwd.c: New files.
60100
60101         * lib/dirname.h: Include <stdbool.h>.
60102         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
60103         for consistency with POSIX terminology.  All uses changed.
60104         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
60105         (strip_trailing_slashes): Use bool for booleans.
60106         * lib/stripslash.c (strip_trailing_slashes): Likewise.
60107
60108         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
60109         sometimes returns a positive errno value even when it succeeds.
60110         (print_errno_message) [!LIBC]: Fall back on strerror if
60111         __strerror_r fails.
60112
60113         * lib/path-concat.c (mempcpy): Don't define if a system header defines
60114         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
60115         (longest_relative_suffix): New function.
60116         (path_concat): Use it.  Assume first argument is not NULL.
60117         Port to DOS.  Omit redundant separators.
60118         Report an error instead of returning NULL.
60119         Use mempcpy instead of memcpy.
60120         (xpath_concat): Remove: not declared or used.
60121
60122         * lib/same.h: Include <stdbool.h>
60123         (same_name): Return bool, not int.
60124         * lib/same.c (same_name): Likewise.
60125         (errno): Don't declare; we assume C89 or better now.
60126
60127         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
60128         if not already defined.
60129
60130         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
60131         * lib/dup-safer.c (errno): Likewise.
60132
60133 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
60134
60135         Merge from coreutils.
60136         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
60137         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
60138         * modules/path-concat: Don't depend on strdup.
60139
60140 2004-08-03  Simon Josefsson  <jas@extundo.com>
60141
60142         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
60143         * lib/progname.h: Don't include stdbool.h.
60144
60145 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
60146
60147         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
60148         * MODULES.html.sh (func_all_modules): Remove fatal.
60149
60150 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
60151
60152         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
60153
60154 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
60155
60156         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
60157         working.
60158
60159 2004-08-02  Simon Josefsson  <jas@extundo.com>
60160
60161         * lib/getsubopt.h: New file, with comments from Bruno Haible.
60162         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
60163         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
60164
60165 2004-08-01  Simon Josefsson  <jas@extundo.com>
60166
60167         * lib/xgetdomainname.c: Include stdlib.h, for free().
60168
60169 2004-07-19  Bruno Haible  <bruno@clisp.org>
60170
60171         * MODULES.html.sh (func_all_modules): Add dummy.
60172
60173 2004-07-16  Simon Josefsson  <jas@extundo.com>
60174
60175         * modules/dummy: New file.
60176
60177 2004-07-16  Simon Josefsson  <jas@extundo.com>
60178
60179         * lib/dummy.c: New file.
60180
60181 2004-07-16  Bruno Haible  <bruno@clisp.org>
60182
60183         * lib/backupfile.h: Add extern "C" for C++.
60184         * lib/closeout.h: Likewise.
60185         * lib/copy-file.h: Likewise.
60186         * lib/findprog.h: Likewise.
60187         * lib/full-write.h: Likewise.
60188         * lib/pathname.h: Likewise.
60189         * lib/progname.h: Likewise.
60190         * lib/stpcpy.h: Likewise.
60191         * lib/stpncpy.h: Likewise.
60192         * lib/strcase.h: Likewise.
60193         * lib/strstr.h: Likewise.
60194         * lib/xalloc.h: Likewise.
60195
60196         * lib/mbswidth.h: Add extern "C" for C++.
60197         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
60198
60199 2004-07-13  Robert Millan  <robertmh@gnu.org>
60200
60201         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
60202
60203 2004-07-09  Simon Josefsson  <jas@extundo.com>
60204
60205         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
60206         failed without this.)
60207
60208 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60209
60210         * modules/chown (Files): Add lib/fchown-stub.c, since
60211         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
60212
60213 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60214
60215         * lib/fchown-stub.c: New file.
60216
60217 2004-06-24  Jim Meyering  <jim@meyering.net>
60218
60219         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
60220
60221 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60222
60223         * modules/argz: Omit "#include".
60224
60225         * MODULES.html.sh (func_all_modules): Add calloc, to match
60226         2004-06-01 addition of calloc module.
60227
60228 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60229
60230         * m4/argz.m4: New file, which is autoupdated from libtool.
60231
60232 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60233
60234         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
60235         libtool.
60236
60237 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60238
60239         * config/srclist-update: Don't insist on "USA." before the
60240         close-comment, as libtool omits the period and puts the */ on a
60241         separate line.
60242         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
60243         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
60244
60245 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
60246
60247         * modules/argz: New file.
60248         * MODULES.html.sh (func_all_modules): Add argz.
60249
60250 2004-06-12  Jim Meyering  <jim@meyering.net>
60251         and  Paul Eggert  <eggert@cs.ucla.edu>
60252
60253         * modules/hash (Files): Add lib/xalloc.h.
60254         * modules/pipe (Depends-on): Add wait-process.
60255         * modules/stat (Depends-on): Add xalloc.
60256         * modules/userspec (Files): Add lib/userspec.h.
60257         * modules/xstrto
60258
60259         Upgrade from gettext-0.13.
60260         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
60261         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
60262         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
60263
60264 2004-06-10  Jim Meyering  <jim@meyering.net>
60265
60266         * lib/calloc.c: New file.
60267
60268 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
60269
60270         * lib/getdate.y (yylex): Allow space between sign and number.
60271         Problem reported by Dan Jacobson.
60272
60273 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
60274
60275         Merge from coreutils CVS.
60276
60277         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
60278         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
60279         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
60280         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
60281         xstrtol.m4: Fix copyright date and/or serial number.
60282
60283         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
60284         See if we need an fchown replacement.
60285         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
60286         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
60287         and use the replacement function if we detect either defect.
60288
60289         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
60290         gl_UTIMECMP.
60291
60292 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
60293         and  Jim Meyering  <jim@meyering.net>
60294
60295         Merge from coreutils CVS.
60296
60297         * lib/stat-macros.h: New file, with contents from file-type.h
60298         and coreutils' system.h.
60299         * lib/file-type.c: Include "stat-macros.h".
60300         * lib/file-type.h (file_type): Move all macro definitions to new file,
60301         stat-macros.h.
60302
60303         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
60304         Wrap old code with this conditional.
60305         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
60306         function that does not dereference symlinks.
60307         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
60308
60309         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
60310         dependency problems.
60311         (xreadlink): Accept new arg SIZE, for efficiency.
60312         All decls and uses changed.
60313         * lib/xreadlink.h: Include <stddef.h>, for size_t.
60314
60315         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
60316         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
60317
60318         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
60319         sysexits.h.
60320
60321 2004-06-01  Jim Meyering  <jim@meyering.net>
60322
60323         * m4/calloc.m4: New file.
60324
60325 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
60326
60327         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
60328         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
60329         Also, fix a typo in a diagnostic.
60330
60331 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
60332
60333         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
60334         or AC_FUNC_REALLOC.
60335
60336 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
60337
60338         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
60339         macros to be defined.
60340         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
60341         the allocator returns NULL because the requested size is zero.
60342
60343 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
60344
60345         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
60346         var.  Add comment explaining why libc still defines it.  This
60347         merges the following patch from glibc:
60348         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
60349
60350 2004-05-20  Andreas Schwab  <schwab@suse.de>
60351
60352         * m4/free.m4: Replace free if it not known to work, not the other
60353         way round.
60354
60355 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
60356
60357         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
60358         present in glibc since revision 1.1 of this file.
60359         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
60360         obstack_alignment_mask, obstack_alloc, obstack_base,
60361         obstack_blank, obstack_blank_fast, obstack_chunk_size,
60362         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
60363         obstack_grow0, obstack_init, obstack_int_grow,
60364         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
60365         obstack_next_free, obstack_object_size, obstack_ptr_grow,
60366         obstack_ptr_grow_fast, obstack_room): Remove declarations of
60367         nonexistent functions.
60368
60369 2004-05-18  Karl Berry  <karl@gnu.org>
60370
60371         * config/srclist.txt: break link for vasnprintf.c.
60372
60373 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
60374
60375         Port obstack to the AS/400, where pointers are 16 bytes wide and
60376         you cannot cast an integer to a valid pointer.  This patch is
60377         currently waiting to be integrated into glibc; see
60378         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
60379
60380         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
60381         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
60382         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
60383         (struct obstack): temp member is now a union of a pointer and
60384         an integer, instead of an integer.  All integer uses changed.
60385         This does not affect the physical layout of struct obstack,
60386         except on hosts (like the AS/400) where the size or alignment of
60387         void * is greater than that of ptrdiff_t.
60388         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
60389         __STDC__)]: Store temporary in pointer member of union, not
60390         integer member.
60391         * lib/obstack.c: Include <stddef.h>, for offsetof.
60392         (struct fooalign): Remove; it doesn't need a name.
60393         (union fooround): Change double to long double, and add void *.
60394         (DEFAULT_ALIGNMENT): Use offsetof to compute.
60395         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
60396         not a macro.  Hence the values are always int; so remove all
60397         casts-to-int in uses.
60398
60399 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
60400
60401         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
60402         we can get this patch merged into glibc.
60403
60404 2004-05-17  Derek R. Price  <derek@ximbiot.com>
60405             Paul Eggert  <eggert@cs.ucla.edu>
60406
60407         * m4/argp: Depend on alloca.
60408
60409 2004-05-17  Derek R. Price  <derek@ximbiot.com>
60410             Paul Eggert  <eggert@cs.ucla.edu>
60411
60412         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
60413         freecoding.
60414
60415 2004-05-17  Bruno Haible  <bruno@clisp.org>
60416
60417         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
60418         precision that consists of a '.' followed by an empty digit string.
60419         Patch by Tor Lillqvist <tml@iki.fi>.
60420
60421 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
60422
60423         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
60424         for backward compatibility with older code.  We need our own
60425         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
60426         it under some other name, and our alloca.h will define it.
60427
60428 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
60429             Derek Price  <derek@ximbiot.com>
60430
60431         * lib/alloca.c: Include <alloca.h>, to get our interface.
60432         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
60433         include <alloca.h> first.  Use C89 prototype for alloca; this
60434         requires including <stddef.h> for size_t.  Use extern "C" if C++.
60435         Use #elif for simplicity, since we can assume C89 now.
60436         Don't try to source the system alloca.h since it will not be found
60437         and to prevent recursively including its replacement.
60438         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
60439         * lib/regex.c: Likewise.
60440
60441 2004-05-16  Derek Price  <derek@ximbiot.com>
60442             Paul Eggert  <eggert@cs.ucla.edu>
60443
60444         getline cleanup.  This changes the getndelim2 API: both order of
60445         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
60446         no delimiter).
60447
60448         * lib/getline.c: Don't include stddef.h or stdio.h, since our
60449         interface does that.
60450         (getline): Always use getdelim, so that we don't have two
60451         copies of this code.
60452         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
60453         if available.
60454         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
60455         (GETNDELIM2_MAXIMUM): New macro.
60456         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
60457         instead of the old practice of delim2==0.  All callers changed.
60458         Return -1 on overflow, instead of returning junk.
60459         Do not set *linesize unless allocation succeeds.
60460         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
60461         that we include sys/types.h.
60462         * lib/getnline.h: Likewise.
60463         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
60464         (getndelim2): Reorder arguments.
60465         * lib/getnline.c (getnline, getndelim):
60466         Don't discard the NMAX argument.
60467         (getnline): Invoke getndelim, to avoid code duplication.
60468         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
60469         of (size_t) -1 by callers of the getnline family.
60470
60471 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
60472
60473         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
60474         Check for gettimeofday.
60475         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
60476         Check for settimeofday, stime.
60477
60478 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
60479
60480         * lib/nanosleep.c (suspended): Change its type from int to
60481         sig_atomic_t volatile.
60482         (first_call): Make it private to rpl_nanosleep, and have it
60483         be zero initially as that's a bit faster.
60484         (my_usleep): Round up fractional times instead of truncating them,
60485         as this is the usual meaning for 'sleep'.
60486
60487         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
60488         doesn't work.
60489         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
60490         (ENOSYS): Define if not defined.
60491         (settime): Fall back on stime if it exists and settimeofday fails.
60492         But don't bother with fallbacks if a method fails with errno == EPERM.
60493
60494 2004-05-11  Jim Meyering  <jim@meyering.net>
60495
60496         Prior to this change, the save_cwd caller required read access to the
60497         current directory on most systems (ones with the fchdir function).
60498
60499         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
60500         fails, try write-only, and finally, resort to using xgetcwd.
60501
60502 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
60503
60504         * lib/obstack.c, obstack.h: Import changes from libc.
60505
60506 2004-04-28  Bruno Haible  <bruno@clisp.org>
60507
60508         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
60509         also implicitly appends .exe to executables.
60510         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
60511         accepts Windows pathnames.
60512         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
60513         Treat Cygwin like Windows, since it now accepts Windows pathnames.
60514         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
60515         Treat Cygwin like Windows, since it now accepts Windows pathnames.
60516         Reported by Derek Robert Price <derek@ximbiot.com>.
60517
60518 2004-04-21  Karl Berry  <karl@gnu.org>
60519
60520         * config/srclist.txt (localcharset.c): break sync.
60521
60522 2004-04-20  Paul Eggert  <eggert@twinsun.com>
60523
60524         * m4/host-os.m4: Add a copyright notice.
60525
60526 2004-04-20  Jim Meyering  <jim@meyering.net>
60527
60528         Change UTILS_ to gl_ in AC_DEFINE'd names.
60529         Change utils_- and jm_-prefixed variables, too.
60530         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
60531         UTILS_FUNC_MKDIR_TRAILING_SLASH.
60532         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
60533
60534         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
60535         Don't emit trailing blanks.
60536         Also rename jm_-prefixed variables to have gl_ prefix.
60537
60538         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
60539         Also rename jm_-prefixed variables to have gl_ prefix.
60540
60541         * m4/jm-macros.m4: Reflect the renamings.
60542         * m4/prereq.m4: Likewise.
60543
60544 2004-04-20  Jim Meyering  <jim@meyering.net>
60545
60546         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
60547         memory.
60548
60549 2004-04-20  Jim Meyering  <jim@meyering.net>
60550             Bruno Haible  <bruno@clisp.org>
60551
60552         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
60553         memory when realloc fails.
60554
60555 2004-04-19  Jim Meyering  <jim@meyering.net>
60556
60557         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
60558         now that readutmp.c may call `free (0)'.
60559
60560 2004-04-19  Bruno Haible  <bruno@clisp.org>
60561
60562         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
60563         * m4/inttypes_h.m4: Likewise.
60564         * m4/stdint_h.m4: Likewise.
60565         * m4/intmax_t.m4: Likewise.
60566         * m4/uintmax_t.m4: Likewise.
60567
60568 2004-04-18  Jim Meyering  <jim@meyering.net>
60569
60570         * m4/prereq.m4: Don't forbid jm_ prefix.
60571
60572         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
60573         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
60574         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
60575         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
60576         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
60577         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
60578         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
60579         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
60580         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
60581         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
60582         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
60583         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
60584         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
60585         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
60586         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
60587         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
60588         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
60589         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
60590         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
60591
60592 2004-04-18  Jim Meyering  <jim@meyering.net>
60593
60594         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
60595         failure, don't leak memory and do call END_UTMP_ENT.
60596
60597 2004-04-16  Jim Meyering  <jim@meyering.net>
60598
60599         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
60600         coreutils' stat program.
60601         (gl_PREREQ): Don't require jm_PREREQ_STAT.
60602
60603 2004-04-11  Paul Eggert  <eggert@twinsun.com>
60604
60605         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
60606         C89.
60607         (CHAR_BIT): Remove, since we assume C89.
60608         Include <stdint.h> if available, as per current Autoconf CVS advice.
60609
60610 2004-03-31  Jim Meyering  <jim@meyering.net>
60611
60612         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
60613         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
60614         * m4/xalloc.m4: Likewise.
60615
60616 2004-03-30  Paul Eggert  <eggert@twinsun.com>
60617
60618         Merge from coreutils.
60619
60620         * m4/inttostr.m4: New file.
60621         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
60622         Require AM_STDBOOL_H and gl_TIMESPEC instead.
60623         Require gl_CLOCK_TIME.
60624         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
60625
60626 2004-03-30  Paul Eggert  <eggert@twinsun.com>
60627
60628         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
60629         not bool, to be more consistent with Unix conventions.
60630         Suggested by Bruno Haible.
60631
60632         Merge from coreutils.
60633
60634         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
60635         * lib/umaxtostr.c: New files.
60636
60637         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
60638         the usual <time.h> dance.
60639         (get_date): Change signature to support fractional time stamps.
60640         All callers changed.
60641         * lib/getdate.y: Include "getdate.h" first, as we can now
60642         assume C89 and don't need to worry about 'const'.
60643         Similarly, include "unlocked-io.h" near start, not in middle.
60644         Include <limits.h>.
60645         (textint.value): Use long int rather than int.
60646         (textint.digits): Use size_t rather than int.
60647         (BILLION, LOG10_BILLION): New constants.
60648         (parser_control): New member rel_ns.  Members day_ordinal,
60649         time_zone, month, day, hour, minutes, rel_year, rel_month,
60650         rel_day, rel_hour, rel_minutes, rel_seconds
60651         are now long int, not int.  Member seconds is now struct timespec,
60652         not int.  New member timespec_seen.  Members dates_seen, days_seen,
60653         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
60654         not int.
60655         (%union.intval): Now long int, not int.
60656         New member timespec.
60657         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
60658         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
60659         (spec): Now is a timespec or an item list.
60660         (timespec, items): New nonterminals.
60661         (time, rel, relunit, number, get_date):
60662         Add support for fractional seconds.
60663         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
60664         (gmtime, localtime, mktime): Remove decls; not needed with C89.
60665         (to_hour): First arg is now long int, not int.
60666         (to_year): Returns long int, not int.
60667         Don't treat year -70 like 70.
60668         (tm_diff): Returns long int, not int.
60669         (lookup_word): Use bool instead of int when appropriate.
60670         (yylex): Use size_t for count, not int.
60671         Detect overflow when parsing large integer constants.
60672         Add support for fractions.
60673         (get_date): Make pointers 'const' if possible.
60674         Use more-portable code to detect integer overflow.
60675         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
60676         Don't use ctime; it's not reliable if the year has >4 digits.
60677
60678         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
60679         This is for compatibility with BSD.
60680
60681         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
60682         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
60683         From coreutils' system.h.
60684
60685         * lib/userspec.c: Don't include "posixver.h".
60686         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
60687         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
60688         compatible extension.  Simplify code by removing a boolean int
60689         that was always nonzero if a string was nonnull.
60690
60691 2004-03-30  Jim Meyering  <jim@meyering.net>
60692
60693         Merge from coreutils.
60694
60695         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
60696         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
60697         on some systems one must include <grp.h> before it.
60698         Reported by Christian Krackowizer.
60699
60700 2004-03-30  Jim Meyering  <jim@meyering.net>
60701
60702         Merge from coreutils.
60703
60704         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
60705
60706         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
60707         an empty input stream.
60708
60709         * lib/readtokens.c: Include <stdbool.h>.
60710         (readtoken): Use `size_t' rather than int/long.
60711         All callers adjusted.
60712         Use `bool' rather than `int' where appropriate.
60713         Use memset rather than an explicit loop.
60714         Use x2nrealloc rather than xrealloc.
60715         Allow the use of `\0' as a delimiter.
60716         (readtokens): Likewise.
60717         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
60718
60719 2004-03-30  Jim Meyering  <jim@meyering.net>
60720
60721         * m4/realloc.m4: Remove file, since now it does no more than
60722         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
60723         the `configure.ac' section of module/realloc.
60724         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
60725
60726 2004-03-30  Bruno Haible  <bruno@clisp.org>
60727
60728         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
60729         nonnull.
60730
60731 2004-03-29  Paul Eggert  <eggert@twinsun.com>
60732
60733         Merge changes to getloadavg.c from coreutils and Emacs.
60734
60735         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
60736         Define to an expression, not to the empty string.
60737         Include cloexec.h and xalloc.h.
60738         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
60739         Use set_cloexec_flag rather than rolling our own.
60740         * lib/cloexec.c, lib/cloexec.h: New files.
60741
60742 2004-03-29  Paul Eggert  <eggert@twinsun.com>
60743
60744         * m4/cloexec.m4: New file.
60745
60746 2004-03-18  Paul Eggert  <eggert@twinsun.com>
60747
60748         * lib/getopt.h: Sync with libc CVS.
60749
60750 2004-03-18  Paul Eggert  <eggert@twinsun.com>
60751             Bruno Haible  <bruno@clisp.org>
60752
60753         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
60754         mbswidth.
60755
60756 2004-03-18  Paul Eggert  <eggert@twinsun.com>
60757             Bruno Haible  <bruno@clisp.org>
60758
60759         * lib/mbswidth.h: Include <wchar.h> only if
60760         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
60761         <wchar.h>.
60762         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
60763
60764 2004-03-09  Paul Eggert  <eggert@twinsun.com>
60765
60766         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
60767         Sync with libc CVS.
60768         * lib/getopt_int.h: New file, also synced from libc.
60769
60770 2004-03-09  Paul Eggert  <eggert@twinsun.com>
60771
60772         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
60773         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
60774         Bring back getopt.c, getopt.h, getopt1.c.
60775
60776 2004-03-07  Paul Eggert  <eggert@twinsun.com>
60777
60778         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
60779         All uses changed.  Check for sa_sigaction member; this fixes
60780         a bug first reported by Jason Andrade in
60781         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
60782
60783 2004-03-07  Paul Eggert  <eggert@twinsun.com>
60784
60785         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
60786         '#if' expressions.  Unlike the code it replaces, it does not
60787         depend on (defined _SC_PAGESIZE).  However, it does depend on
60788         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
60789         first reported by Jason Andrade in
60790         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
60791
60792 2004-02-25  Simon Josefsson  <jas@extundo.com>
60793
60794         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
60795
60796 2004-02-25  Simon Josefsson  <jas@extundo.com>
60797
60798         * lib/strdup.h: New file.
60799         * lib/strdup.c: Include it.
60800         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
60801         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
60802
60803 2004-02-23  Karl Berry  <karl@gnu.org>
60804
60805         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
60806         (from fencepost.gnu.org:/gd/gnuorg).
60807
60808 2004-02-23  Karl Berry  <karl@gnu.org>
60809
60810         * config/srclistvars.sh (GNUORG) [karl]: redefine.
60811         * config/srclist.txt: add maintain/standards documents.
60812
60813 2004-02-18  Bruno Haible  <bruno@clisp.org>
60814
60815         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
60816         Reported by Derek Robert Price <derek@ximbiot.com>.
60817
60818 2004-02-16  Karl Berry  <karl@gnu.org>
60819
60820         * config/mkinstalldirs, install-sh: update from automake.
60821
60822 2004-02-06  Karl Berry  <karl@gnu.org>
60823
60824         * m4/po.m4: update from gettext 0.14.1.
60825
60826 2004-02-06  Karl Berry  <karl@gnu.org>
60827
60828         * lib/config.charset: update from gettext 0.14.1.
60829
60830 2004-02-05  Paul Eggert  <eggert@twinsun.com>
60831
60832         Add comments and code, prompted by suggestions from Bruno Haible
60833         for sh-quote.
60834         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
60835         describing the enum quoting_style values.
60836         * lib/quotearg.c (quotearg_alloc): New function.
60837         (quotearg_buffer_restyled): Treat lone { and } as special.
60838         Treat = as special.  Work around bug with older shells
60839         that "see" a '\' that is really the 2nd byte of a multibyte char.
60840         Quote empty string with shell_quoting_style.
60841
60842 2004-02-03  Bruno Haible  <bruno@clisp.org>
60843
60844         * m4/pipe.m4: New file, from GNU gettext.
60845
60846 2004-02-03  Bruno Haible  <bruno@clisp.org>
60847
60848         * lib/pipe.h: New file, from GNU gettext.
60849         * lib/pipe.c: New file, from GNU gettext.
60850
60851 2004-01-27  Bruno Haible  <bruno@clisp.org>
60852
60853         * m4/execute.m4: New file, from GNU gettext.
60854
60855 2004-01-27  Bruno Haible  <bruno@clisp.org>
60856
60857         * lib/execute.h: New file, from GNU gettext.
60858         * lib/execute.c: New file, from GNU gettext.
60859         * lib/w32spawn.h: New file, from GNU gettext.
60860
60861 2004-01-24  Paul Eggert  <eggert@twinsun.com>
60862
60863         Merge from diffutils.
60864
60865         * lib/file-type.c (file_type): Add typed memory objects.
60866         * lib/file-type.h (S_TYPEISTMO): New macro.
60867
60868         * lib/c-stack.h (c_stack_action): Remove argv argument.
60869         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
60870         (die): Don't calculate message unless segv_action returns.
60871         (get_stack_location, min_address_from_argv, max_address_from_argv,
60872         volatile stack_base, volatile_stack_size): Remove.
60873         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
60874         that every segmentation violation is a stack overflow.  (Ouch!)
60875         See Debian bug 136249 (still outstanding) for more info about why
60876         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
60877
60878 2004-01-24  Paul Eggert  <eggert@twinsun.com>
60879
60880         Exit-status fix from coreutils.
60881
60882         Use exit_failure consistently in place of EXIT_FAILURE,
60883         so that program exit statuses are consistent on failure.
60884
60885         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
60886         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
60887         * lib/argmatch.h: Comment fix to match the above.
60888         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
60889         Now a macro referring to exit_failure, instead of a separate
60890         variable.  Include "exitfail.h" to get it.
60891         * lib/xstrtol.h: Include "exitfail.h".
60892         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
60893
60894         * lib/long-options.c (parse_long_options): Use prototype
60895         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
60896         for clarity.
60897
60898 2004-01-21  Jim Meyering  <jim@meyering.net>
60899
60900         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
60901         so as not to conflict with a different-sized __mktime_internal
60902         function in GNU libc.
60903         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
60904         Problem building statically-linked `ls' reported by Michael Brunnbauer.
60905
60906 2004-01-20  Karl Berry  <karl@gnu.org>
60907
60908         * config/config.guess: update from config.
60909
60910         * config/srclistvars.sh: GNUWWWLICENSES for karl.
60911
60912 2004-01-20  Bruno Haible  <bruno@clisp.org>
60913
60914         Safer stack allocation.
60915         * lib/setenv.c: Include allocsa.h.
60916         (alloca): Remove fallback definition.
60917         (freea): Remove macro.
60918         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
60919         instead of freea.
60920
60921 2004-01-20  Bruno Haible  <bruno@clisp.org>
60922
60923         * m4/eealloc.m4: New file, from GNU gettext.
60924
60925 2004-01-20  Bruno Haible  <bruno@clisp.org>
60926
60927         * m4/allocsa.m4: New file, from GNU gettext.
60928
60929 2004-01-20  Bruno Haible  <bruno@clisp.org>
60930
60931         * lib/xallocsa.h: New file, from GNU gettext.
60932         * lib/xallocsa.c: New file, from GNU gettext.
60933
60934 2004-01-20  Bruno Haible  <bruno@clisp.org>
60935
60936         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
60937
60938 2004-01-20  Bruno Haible  <bruno@clisp.org>
60939
60940         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
60941         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
60942         specially.
60943
60944 2004-01-20  Bruno Haible  <bruno@clisp.org>
60945
60946         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
60947         patch.
60948
60949 2004-01-20  Bruno Haible  <bruno@clisp.org>
60950
60951         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
60952
60953 2004-01-20  Bruno Haible  <bruno@clisp.org>
60954
60955         * lib/eealloc.h: New file.
60956
60957 2004-01-20  Bruno Haible  <bruno@clisp.org>
60958
60959         * lib/binary-io.h: Avoid warnings on Cygwin.
60960
60961 2004-01-20  Bruno Haible  <bruno@clisp.org>
60962
60963         * lib/allocsa.h: New file, from GNU gettext.
60964         * lib/allocsa.c: New file, from GNU gettext.
60965
60966 2004-01-18  Karl Berry  <karl@gnu.org>
60967
60968         * doc/gpl.texi, doc/lgpl.texi: new files.
60969
60970 2004-01-18  Karl Berry  <karl@gnu.org>
60971
60972         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
60973         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
60974
60975 2004-01-15  Paul Eggert  <eggert@twinsun.com>
60976
60977         Merge from coreutils.
60978
60979         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
60980         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
60981         (gl_DEFAULT_POSIX2_VERSION): Move
60982         the documentation from 'configure' into 'config.hin',
60983         so that 'configure --help' isn't burdened by it and
60984         we don't have to worry about its formatting there.
60985         Reword the documentation so that it's more succinct
60986         and can be run together into a single paragraph.
60987         * m4/same.m4 (gl_SAME): Check for pathconf.
60988
60989 2004-01-15  Paul Eggert  <eggert@twinsun.com>
60990
60991         Merge from coreutils.
60992
60993         * lib/posixver.c: Include posixver.h.
60994
60995         * lib/same.c: Include <stdbool.h>, <limits.h>.
60996         (_POSIX_NAME_MAX): Define if not defined.
60997         (MIN): New macro.
60998         (same_name): If file names are silently truncated, report
60999         that the file names are the same if they are the same after
61000         the silent truncation.
61001
61002         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
61003         conversion function.
61004         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
61005         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
61006         longer needed.
61007
61008 2004-01-15  Jim Meyering  <jim@meyering.net>
61009
61010         Merge from coreutils.
61011
61012         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
61013         if no library is required.
61014         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
61015         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
61016         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
61017         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
61018         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
61019         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
61020         value, $ac_cv_search_crypt, if it's "none required".
61021         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
61022         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
61023         not gl_FUNC_GETLOADAVG.
61024         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
61025         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
61026
61027 2004-01-15  Jim Meyering  <jim@meyering.net>
61028
61029         Merge from coreutils.
61030
61031         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
61032         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
61033         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
61034
61035         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
61036         optional configure-time default.
61037
61038         * lib/version-etc.c (version_etc_copyright): Update copyright date.
61039
61040         * lib/xreadlink.c (xreadlink): Correct outdated comment.
61041
61042 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
61043
61044         Merge from coreutils.
61045
61046         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
61047         value, $ac_cv_search_nanosleep, if it's "none required".
61048
61049 2004-01-14  Paul Eggert  <eggert@twinsun.com>
61050
61051         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
61052         with like-named macro in fnmatch.c.
61053         (EXT): Use an internal constant instead.
61054
61055         Merge fnmatch patches from glibc.
61056         * lib/fnmatch.c (mbsinit): Remove define.
61057         Add libc_hidden_ver (__fnmatch, fnmatch).
61058         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
61059         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
61060
61061 2004-01-14  Karl Berry  <karl@gnu.org>
61062
61063         * config/install-sh: update from automake.
61064
61065 2004-01-13  Karl Berry  <karl@gnu.org>
61066
61067         * config/install-sh: update from automake.
61068
61069 2004-01-09  Karl Berry  <karl@gnu.org>
61070
61071         * config/install-sh: update from automake.
61072
61073 2004-01-05  Karl Berry  <karl@gnu.org>
61074
61075         * config/config.{sub,guess}: update from config.
61076
61077 2003-12-31  Karl Berry  <karl@gnu.org>
61078
61079         * config/depcomp: update from automake.
61080
61081 2003-12-14  Karl Berry  <karl@gnu.org>
61082
61083         * lib/config.charset: update from gettext-runtime.
61084
61085 2003-12-03  Paul Eggert  <eggert@twinsun.com>
61086
61087         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
61088         Bug reported by Alfred M. Szmidt.
61089
61090 2003-12-03  Bruno Haible  <bruno@clisp.org>
61091
61092         * m4/gettext.m4: Upgrade from gettext-0.13.
61093         * m4/po.m4: Upgrade from gettext-0.13.
61094         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
61095         * m4/intmax.m4: New file, from gettext-0.13.
61096         * m4/printf-posix.m4: New file, from gettext-0.13.
61097
61098 2003-11-29  Karl Berry  <karl@gnu.org>
61099
61100         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
61101
61102 2003-11-25  Paul Eggert  <eggert@twinsun.com>
61103             Bruno Haible  <bruno@clisp.org>
61104
61105         * lib/printf-parse.h: Don't include sys/types.h.
61106         (ARG_NONE): New macro.
61107         (char_directive): Change type of *arg_index fields to size_t.
61108         * lib/printf-parse.c: Don't include sys/types.h.
61109         (SSIZE_MAX): Remove macro.
61110         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
61111         Remove unnecessary overflow check.
61112         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
61113         fields.
61114
61115 2003-11-25  Bruno Haible  <bruno@clisp.org>
61116
61117         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
61118
61119 2003-11-25  Bruno Haible  <bruno@clisp.org>
61120
61121         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
61122         gt_TYPE_SSIZE_T.
61123
61124 2003-11-24  Paul Eggert  <eggert@twinsun.com>
61125
61126         * modules/alloca: Remove dependency on xalloc.
61127
61128 2003-11-24  Paul Eggert  <eggert@twinsun.com>
61129
61130         * lib/alloca.c: Remove dependency on xalloc module.
61131         (xalloc_die): Remove.
61132         (memory_full) [!defined emacs]: New macro.
61133         [!defined emacs]: Don't include xalloc.h.
61134         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
61135         address arithmetic overflows.  Change datatypes a bit to avoid
61136         unnecessary casts.
61137
61138 2003-11-22  Jim Meyering  <jim@meyering.net>
61139
61140         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
61141         s/size/size_t/.
61142
61143 2003-11-21  Karl Berry  <karl@gnu.org>
61144
61145         * config/config.{sub,guess}: update from config.
61146
61147 2003-11-18  Karl Berry  <karl@gnu.org>
61148
61149         * config/config.{sub,guess}: update from config.
61150
61151         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
61152
61153 2003-11-17  Paul Eggert  <eggert@twinsun.com>
61154
61155         * README: Mention that S+T cannot overflow if S is the size of
61156         an existing object and T is sufficiently small.
61157
61158 2003-11-17  Jim Meyering  <jim@meyering.net>
61159
61160         On systems without utime and without a utimes function capable of
61161         dealing with a NULL struct utimbuf* argument, this utime replacement
61162         could -- in unusual circumstances -- leak a file descriptor.
61163         * lib/utime.c: Include <unistd.h> and <errno.h>.
61164         (utime_null): Be sure to close `fd' and to preserve errno.
61165         Reported by Geoff Collyer via Arnold Robbins.
61166
61167 2003-11-17  Bruno Haible  <bruno@clisp.org>
61168
61169         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
61170         (Depends-on): Add xsize.
61171
61172 2003-11-17  Bruno Haible  <bruno@clisp.org>
61173
61174         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
61175
61176 2003-11-17  Bruno Haible  <bruno@clisp.org>
61177
61178         * lib/vasnprintf.c (alloca): Remove fallback definition.
61179         (freea): Remove definition.
61180         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
61181         Reported by Paul Eggert.
61182
61183 2003-11-16  Paul Eggert  <eggert@twinsun.com>
61184             Bruno Haible  <bruno@clisp.org>
61185
61186         Protect against address arithmetic overflow.
61187         * lib/printf-args.h: Include stddef.h.
61188         (arguments): Change type of field 'count' to size_t.
61189         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
61190         'unsigned int' where appropriate.
61191         * lib/printf-parse.h: Include sys/types.h.
61192         (char_directive): Change type of *arg_index fields to ssize_t.
61193         (char_directives): Change type of fields 'count', max_*_length to
61194         size_t.
61195         * lib/printf-parse.c: Include sys/types.h and xsize.h.
61196         (SSIZE_MAX): Define fallback value.
61197         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
61198         instead of 'int' where appropriate. Check a_allocated, d_allocated
61199         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
61200         * lib/vasnprintf.c: Include xsize.h.
61201         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
61202         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
61203         overflow. Avoid wraparound when converting a width or precision from
61204         decimal to binary.
61205
61206 2003-11-16  Bruno Haible  <bruno@clisp.org>
61207
61208         Update from GNU gettext.
61209         * lib/printf-parse.c: Generalize to it can be compiled for wide
61210         strings.
61211         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
61212         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
61213         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
61214         SNPRINTF): New macros.
61215         Don't include <alloca.h> if the file is used inside libintl.
61216         (local_wcslen): New function, for Solaris 2.5.1.
61217         (VASNPRINTF): Use it instead of wcslen.
61218
61219 2003-11-16  Bruno Haible  <bruno@clisp.org>
61220
61221         * lib/xsize.h (xmax): New function.
61222         (xsum, xsum3, xsum4): Declare as "pure" functions.
61223
61224 2003-11-12  Paul Eggert  <eggert@twinsun.com>
61225
61226         * modules/xalloc (Files): Undo latest change, since xalloc.h
61227         no longer needs SIZE_MAX or PTRDIFF_MAX.
61228
61229 2003-11-12  Paul Eggert  <eggert@twinsun.com>
61230
61231         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
61232         gl_PTRDIFF_MAX.
61233
61234 2003-11-12  Paul Eggert  <eggert@twinsun.com>
61235
61236         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
61237         "return", to pacify some unknown compiler.  Problem reported
61238         by Joerg Schilling.
61239
61240 2003-11-12  Paul Eggert  <eggert@twinsun.com>
61241
61242         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
61243         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
61244         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
61245         heuristic is just as accurate as far as we know, and it removes a
61246         dependency on size_max.m4 and ptrdiff_max.m4.
61247
61248 2003-11-11  Bruno Haible  <bruno@clisp.org>
61249
61250         * modules/xsize (Files): Add m4/size_max.m4.
61251         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
61252
61253 2003-11-11  Bruno Haible  <bruno@clisp.org>
61254
61255         * m4/size_max.m4: New file.
61256         * m4/ptrdiff_max.m4: New file.
61257         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
61258         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
61259         (gl_XALLOC): Invoke it.
61260
61261 2003-11-11  Bruno Haible  <bruno@clisp.org>
61262
61263         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
61264         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
61265         defined.
61266
61267 2003-11-10  Paul Eggert  <eggert@twinsun.com>
61268
61269         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
61270         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
61271         rejected some allocations of exactly SIZE_MAX - 2 bytes.
61272         From Bruno Haible.
61273         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
61274         not (size_t) -1, since it's defined here.
61275
61276 2003-11-09  Karl Berry  <karl@gnu.org>
61277
61278         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
61279
61280 2003-11-06  Paul Eggert  <eggert@twinsun.com>
61281
61282         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
61283         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
61284         Reject sizes of exactly SIZE_MAX bytes.
61285         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
61286         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
61287
61288 2003-11-05  Bruno Haible  <bruno@clisp.org>
61289
61290         * lib/xsize.h: Include limits.h, to avoid a possible collision with
61291         SIZE_MAX defined in <limits.h> on Solaris.
61292
61293 2003-11-04  Jim Meyering  <jim@meyering.net>
61294
61295         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
61296         variable names, rather than @VAR@.
61297         * modules/poll: Likewise.
61298
61299 2003-11-04  Bruno Haible  <bruno@clisp.org>
61300
61301         * modules/xsize: New file.
61302         * modules/linebreak: Depend on xsize.
61303         * MODULES.html.sh (func_all_modules): Add xsize.
61304
61305 2003-11-04  Bruno Haible  <bruno@clisp.org>
61306
61307         * m4/xsize.m4: New file.
61308
61309 2003-11-04  Bruno Haible  <bruno@clisp.org>
61310
61311         * lib/xsize.h: New file.
61312         * lib/linebreak.c: Include xsize.h.
61313         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
61314         argument for overflow.
61315         Suggested by Paul Eggert.
61316
61317 2003-11-03  Karl Berry  <karl@gnu.org>
61318
61319         * config/config.{guess,sub}: update from config.
61320
61321 2003-11-03  Jim Meyering  <jim@meyering.net>
61322
61323         * modules/userspec (lib_SOURCES): Add userspec.h.
61324         (Include): Add "userspec.h".
61325         Improve description.
61326
61327 2003-11-03  Jim Meyering  <jim@meyering.net>
61328
61329         * lib/userspec.c: Include "userspec.h".
61330         * lib/userspec.h: New file.
61331
61332 2003-11-03  Bruno Haible  <bruno@clisp.org>
61333
61334         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
61335
61336 2003-11-03  Bruno Haible  <bruno@clisp.org>
61337
61338         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
61339         available, to avoid (extremely rare) race condition.
61340         Suggested by Paul Eggert.
61341
61342 2003-11-02  Karl Berry  <karl@gnu.org>
61343
61344         * config/srclist.txt (vasprintf.c): sync broken, sigh.
61345
61346 2003-10-31  Paul Eggert  <eggert@twinsun.com>
61347
61348         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
61349         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
61350         (read_filesystem_list): Set and use me_type_malloced.
61351         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
61352         whatever the type happens to be), for brevity and consistency.
61353         Check for size calculation overflow on Alphas running OSF/1.
61354
61355 2003-10-31  Jim Meyering  <jim@meyering.net>
61356
61357         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
61358
61359         * lib/linebuffer.c: Include <string.h> for declaration of memset.
61360
61361 2003-10-30  Paul Eggert  <eggert@twinsun.com>
61362             Bruno Haible  <bruno@clisp.org>
61363
61364         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
61365         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
61366
61367 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
61368
61369         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
61370         netbsd*-gnu*.  Suggested by Robert Millan.
61371
61372 2003-10-29  Paul Eggert  <eggert@twinsun.com>
61373
61374         * modules/group-member: Depend on stdbool.
61375
61376 2003-10-29  Paul Eggert  <eggert@twinsun.com>
61377
61378         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
61379
61380 2003-10-29  Paul Eggert  <eggert@twinsun.com>
61381
61382         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
61383         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
61384         after the 'gnu' in these cases.  This fixes some bugs in the
61385         previous change, and is based on suggestions by Robert Millan.
61386
61387 2003-10-29  Paul Eggert  <eggert@twinsun.com>
61388
61389         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
61390         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
61391         no longer needed.
61392         * lib/quotearg.c (quotearg_n_options): Use it.
61393         * lib/group-member.c: Include <stdbool.h>.
61394         (free_group_info): Arg is now const *; don't free arg.
61395         (get_group_info): Now returns bool and accepts struct group_info *,
61396         rather than returning a malloc'ed struct group_info *.
61397         All uses changed.  Check for overflow in internal size calculation.
61398
61399         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
61400         rather than xmalloc/xrealloc.
61401         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
61402         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
61403         conformance bug: the old code used a pointer after freeing the
61404         storage that it addressed.
61405         * lib/hash.c (hash_initialize): Simplify the code by using
61406         xalloc_oversized rather than doing it by hand.
61407         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
61408         the buffer preserved.  Use free and xmalloc instead.
61409         * lib/quotearg.c (quotearg_n_options): Likewise.
61410         Use a simpler test for size overflow.  Don't use xalloc_oversized
61411         because unsigned int might be wider than size_t (!); this suggests
61412         that we should switch from unsigned int to size_t for slot numbers.
61413
61414 2003-10-28  Paul Eggert  <eggert@twinsun.com>
61415
61416         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
61417         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
61418         NetBSD kernels.  Requested by Richard Stallman.
61419
61420 2003-10-27  Paul Eggert  <eggert@twinsun.com>
61421
61422         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
61423         to allocate the returned structure.  Do not allocate a subarray,
61424         as x2nrealloc will do that.
61425         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
61426         instead of xnrealloc.
61427         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
61428
61429 2003-10-27  Bruno Haible  <bruno@clisp.org>
61430
61431         * lib/stdbool_.h: Better support for BeOS.
61432
61433 2003-10-26  Paul Eggert  <eggert@twinsun.com>
61434
61435         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
61436         now uses inline.
61437
61438 2003-10-26  Paul Eggert  <eggert@twinsun.com>
61439
61440         * lib/xalloc.h (xalloc_oversized): New static inline function, for
61441         callers that want to do their own size-overflow checking.  Include
61442         <stdbool.h>, since xalloc_oversized returns bool.
61443         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
61444         to use xalloc_oversized.
61445
61446         Add two functions x2realloc, x2nrealloc, for programs that grow
61447         arrays dynamically by doubling their sizes.
61448         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
61449         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
61450         New functions.
61451
61452         Port to C99 semantics for 'inline' of external functions.
61453         Bug reported by Bruno Haible.
61454         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
61455         with the old contents of xnmalloc.
61456         (xnmalloc, xmalloc): Use it.
61457         (xnrealloc_inline): New static inline function,
61458         with the old contents of xnrealloc.
61459         (xnrealloc, xrealloc): Use it.
61460
61461         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
61462         that.
61463
61464 2003-10-26  Karl Berry  <karl@gnu.org>
61465
61466         * config/srclist.txt (COPYING.DOC): no longer available from
61467         /gd/gnuorg; don't know where the ultimate source is.
61468
61469 2003-10-25  Paul Eggert  <eggert@twinsun.com>
61470
61471         Fix several address-calculation bugs in the hash modules,
61472         plus some minor code cleanup.
61473
61474         * lib/hash.h: Include <stdbool.h>, for bool.
61475         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
61476         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
61477         hash_get_n_entries, hash_get_max_bucket_length,
61478         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
61479         hash_rehash): Use size_t rather than unsigned.
61480         * lib/hash.c (struct hash_table, hash_get_n_buckets,
61481         hash_get_n_buckets_used, hash_get_n_entries,
61482         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
61483         hash_get_entries, hash_do_for_each, hash_string, is_prime,
61484         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
61485         Likewise.
61486         (SIZE_MAX): Define if not defined.
61487         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
61488         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
61489         hash_print):
61490         Use const * when possible.
61491         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
61492         (check_tuning): Fix bug: if tuning parameters were very close to
61493         0 or 1, rounding errors could have caused subscript violations.
61494         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
61495         (hash_initialize): Add 'fail:' label
61496         to free table and return NULL, and use it to simplify code.
61497         Use calloc rather than clearing the storage ourself.
61498         (hash_initialize, hash_rehash): Check for arithmetic overflow in
61499         buffer size calculations.
61500         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
61501         Include <stddef.h>, for size_t.
61502         * lib/hash-pjw.c (hash_pjw): Likewise.
61503         Switch to method described by Bruno Haible.
61504         Include <limits.h>, for CHAR_BIT.
61505         (SIZE_BITS): New macro.
61506
61507 2003-10-23  Paul Eggert  <eggert@twinsun.com>
61508
61509         * m4/getline.m4 (AM_FUNC_GETLINE):
61510         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
61511         hosts.  Problem reported by Derek Robert Price in
61512         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
61513         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
61514         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
61515
61516 2003-10-21  Paul Eggert  <eggert@twinsun.com>
61517
61518         * lib/getndelim2.c (getndelim2): When size calculation overflows,
61519         ceiling the allocation at NMAX bytes rather than silently
61520         discarding input bytes before NMAX is reached.  This makes
61521         a difference only if NMAX exceeds SIZE_MAX / 2.
61522
61523         * lib/obstack.c: Merge from glibc.
61524         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
61525         Add libc_hidden_def (_obstack_newchunk).
61526         (_obstack_free) [! defined _LIBC]: Remove.
61527         [defined _LIBC]: Make a strong alias from obstack_free, rather than
61528         a clone of the function body.
61529         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
61530         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
61531
61532         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
61533         glibc.
61534         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
61535         arg to memcpy.
61536
61537         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
61538         (obstack_ptr_grow_fast, obstack_int_grow_fast):
61539         Don't use lvalue casts, as GCC plans to remove support for them
61540         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
61541         was also present in the non-GCC version, indicating that this
61542         code had always been buggy and had never been widely used.
61543         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
61544         Use the fast variant of each macro, rather than copying the
61545         definiens of the fast variant; that way, we'll be more likely to
61546         catch future bugs in the fast variants.
61547
61548 2003-10-20  Bruno Haible  <bruno@clisp.org>
61549
61550         * modules/wait-process: New file.
61551         * MODULES.html.sh (func_all_modules): Add wait-process.
61552
61553 2003-10-20  Bruno Haible  <bruno@clisp.org>
61554
61555         * m4/wait-process.m4: New file.
61556
61557 2003-10-20  Bruno Haible  <bruno@clisp.org>
61558
61559         * lib/wait-process.h: New file, from GNU gettext.
61560         * lib/wait-process.c: New file, from GNU gettext.
61561
61562 2003-10-19  Jim Meyering  <jim@meyering.net>
61563
61564         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
61565         HPUX 10.20.
61566
61567 2003-10-18  Karl Berry  <karl@gnu.org>
61568
61569         * config/config.guess: update from config.
61570
61571 2003-10-16  Paul Eggert  <eggert@twinsun.com>
61572
61573         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
61574         (getgroups): First arg is int, not size_t.
61575         Don't let 'free' mangle errno.
61576
61577 2003-10-16  Paul Eggert  <eggert@twinsun.com>
61578
61579         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
61580
61581 2003-10-16  Karl Berry  <karl@gnu.org>
61582
61583         * config/config.{guess,sub}: update from config.
61584
61585 2003-10-16  Jim Meyering  <jim@meyering.net>
61586
61587         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
61588         memcpy.
61589
61590 2003-10-15  Paul Eggert  <eggert@twinsun.com>
61591
61592         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
61593         (SIZE_MAX): Remove.
61594         (new_exclude, add_exclude_file): Initial size no longer needs to
61595         be a power of 2.
61596         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
61597         our own address arithmetic overflow checking.
61598
61599         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
61600         (fnmatch): Do not alloca more than 2000 wide characters;
61601         instead, use malloc for large buffers.
61602         Check for address arithmetic overflow, and return -1
61603         with errno set to ENOMEM in that case.
61604         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
61605         (NEW_PATTERN): Do not alloca more than 8000 bytes;
61606         instead, return -1.  Check for address arithmetic overflow.
61607
61608 2003-10-14  Paul Eggert  <eggert@twinsun.com>
61609
61610         Handle invalid suffixes and overflow independently, so that
61611         callers can treat them independently as needed.  Fix some bugs in
61612         suffix handling, e.g., "100k@" was not diagnosed as an invalid
61613         suffix for a human-readable blocksize.  The major caller-visible
61614         change is the addition of a new
61615         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
61616         that both overflow and suffix chars were found.
61617
61618         * lib/human.c (humblock): Don't check separately for invalid suffix
61619         char; that is xstrtoumax's job (now that its bug is fixed).
61620         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
61621         INTMAX_MAX]: New macros.
61622         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
61623         TYPE_MAXIMUM): New macros.
61624         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
61625         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
61626         if overflow occurs, as it's what __strtol does and it's more useful
61627         in practice.
61628         (__xstrtol): If __strtol reports some error other than ERANGE,
61629         reflect it to the caller as LONGINT_INVALID.  If it reports
61630         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
61631         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
61632         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
61633         value.
61634         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
61635         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
61636         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
61637         [defined UINTMAX_MAX]: New macros.
61638
61639 2003-10-14  Bruno Haible  <bruno@clisp.org>
61640
61641         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
61642
61643 2003-10-14  Bruno Haible  <bruno@clisp.org>
61644
61645         * m4/sig_atomic_t: New file, from GNU gettext.
61646         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
61647
61648 2003-10-14  Bruno Haible  <bruno@clisp.org>
61649
61650         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
61651         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
61652         Also use volatile where needed.
61653
61654 2003-10-12  Paul Eggert  <eggert@twinsun.com>
61655
61656         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
61657         Change maintainer from Bruno Haible to 'all'.
61658
61659 2003-10-12  Paul Eggert  <eggert@twinsun.com>
61660
61661         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
61662
61663 2003-10-12  Paul Eggert  <eggert@twinsun.com>
61664
61665         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
61666         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
61667         and define in terms of the other primitives.
61668         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
61669         (SIZE_MAX): Define if not already defined.
61670         (array_size_overflow): New function.
61671         (xalloc_die): Abort instead of exiting if 'error' returns.
61672         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
61673         (xmalloc, xrealloc): Use them.
61674         (xcalloc): Check for address arithmetic overflow.
61675         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
61676         a bit faster than strcpy.
61677
61678 2003-10-10  Simon Josefsson  <jas@extundo.com>
61679
61680         * modules/argp (Depends-on): Add restrict and strcase.
61681
61682 2003-10-10  Simon Josefsson  <jas@extundo.com>
61683
61684         * m4/argp.m4: Add AC_C_INLINE.
61685
61686 2003-10-08  Paul Eggert  <eggert@twinsun.com>
61687
61688         Merge getpass from libc, plus a few fixes.
61689
61690         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
61691         Include <stdbool.h>.
61692         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
61693         __fsetlocking to empty.
61694         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
61695         do include <bits/libc-lock.h>.
61696         Do not include <fcntl.h>; not needed.
61697         [_LIBC]: Include <wchar.h>.
61698         (NOTCANCEL_MODE): New macro.
61699         (flockfile, funlockfile) [_LIBC]: New macros.
61700         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
61701         [!_LIBC]: New macros.
61702         (call_fclose): New function.
61703         (getpass): Use it.  Save tty stream separately; this simplifies the
61704         code and makes it more reliable if stdin happens to equal stdout.
61705         Invoke __fsetlocking on tty.
61706         Handle thread cancellation if needed.
61707         Namespace cleanup (use __tcgetattr, __getline).
61708         Use bool for Booleans.
61709         [USE_IN_LIBIO]: Handle wide streams.
61710         [!_LIBC]: Unconditionally do the fseek, since we don't know what
61711         stream might go where.
61712
61713         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
61714         doesn't have to include <stdio.h> before us.
61715         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
61716         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
61717         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
61718         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
61719         if not declared, so that we can use getpass.c code from libc without
61720         rewriting it.
61721         (flockfile, ftrylockfile, funlockfile): New macros.
61722
61723 2003-10-08  Paul Eggert  <eggert@twinsun.com>
61724
61725         * modules/getpass: Depend on stdbool.
61726
61727 2003-10-08  Paul Eggert  <eggert@twinsun.com>
61728
61729         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
61730
61731 2003-10-07  Karl Berry  <karl@gnu.org>
61732
61733         * config/config.{guess,sub}: update from config.
61734
61735 2003-10-06  Jim Meyering  <jim@meyering.net>
61736             Bruno Haible  <bruno@clisp.org>
61737
61738         This lets translators provide better translations for the
61739         "Written by ..." part of --version output.
61740         * lib/version-etc.h: Include stdarg.h.
61741         (version_etc_copyright): Declare as readonly.
61742         (version_etc): Make this function variadic with a NULL-terminated list
61743         of author name strings.
61744         (version_etc_va): New declaration.
61745         * lib/version-etc.c: Include stdarg.h, stdlib.h.
61746         (version_etc_copyright): Declare as readonly.
61747         (version_etc_va): New function. Provide a different translatable string
61748         for each possible number of authors < 10. Abbreviate when there are 10
61749         authors or more.
61750         (version_etc): Make this function variadic. Call version_etc_va.
61751         Suggestion from Gary V. Vaughan.
61752
61753         * lib/long-options.h (parse_long_options): Change prototype: the
61754         authors string is moved to the end and becomes variadic.
61755         * lib/long-options.c: Include stdarg.h.
61756         (parse_long_options): Make this function variadic, too.
61757         Call version_etc_va, not version_etc.
61758
61759 2003-10-06  Bruno Haible  <bruno@clisp.org>
61760
61761         * modules/version-etc-2: Remove file.
61762         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
61763
61764 2003-10-06  Bruno Haible  <bruno@clisp.org>
61765
61766         * modules/fatal-signal: New file.
61767         * MODULES.html.sh (func_all_modules): Add fatal-signal.
61768
61769 2003-10-06  Bruno Haible  <bruno@clisp.org>
61770
61771         * m4/fatal-signal.m4: New file.
61772         * m4/signalblocking.m4: New file, from GNU gettext.
61773
61774 2003-10-06  Bruno Haible  <bruno@clisp.org>
61775
61776         * lib/version-etc-2.h: Remove file.
61777         * lib/version-etc-2.c: Remove file.
61778
61779 2003-10-06  Bruno Haible  <bruno@clisp.org>
61780
61781         * lib/fatal-signal.h: New file, from GNU gettext.
61782         * lib/fatal-signal.c: New file, from GNU gettext.
61783
61784 2003-10-05  Paul Eggert  <eggert@twinsun.com>
61785
61786         * README: Rework advice for preventing empty .o files.
61787         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
61788         not <sys/types.h>.
61789
61790 2003-10-04  Karl Berry  <karl@gnu.org>
61791
61792         * lib/argp*: update from libc.
61793
61794 2003-10-04  Karl Berry  <karl@gnu.org>
61795
61796         * config/config.{guess,sub}: update from config.
61797
61798 2003-10-02  Bruno Haible  <bruno@clisp.org>
61799
61800         * modules/lchown (Include): Add lchown.h.
61801         * modules/time_r (Include): Use "..." syntax.
61802         * modules/xgetdomainname (Include): Add xgetdomainname.h.
61803
61804 2003-10-01  Simon Josefsson  <jas@extundo.com>
61805
61806         * MODULES.html.sh (func_all_modules): Move gethostname from section
61807         'based on' to section 'lacking' POSIX:2001.
61808
61809 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
61810
61811         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
61812         to output mode on the same stream.
61813
61814 2003-09-29  Paul Eggert  <eggert@twinsun.com>
61815
61816         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
61817         Fix arg typo in previous patch.
61818
61819 2003-09-28  Jim Meyering  <jim@meyering.net>
61820
61821         * lib/error.c: Correct cpp indentation.
61822
61823 2003-09-27  Paul Eggert  <eggert@twinsun.com>
61824
61825         * modules/free: New file.
61826
61827 2003-09-27  Paul Eggert  <eggert@twinsun.com>
61828
61829         * m4/free.m4: New file.
61830
61831 2003-09-27  Paul Eggert  <eggert@twinsun.com>
61832
61833         * lib/minmax.h (MIN, MAX)
61834         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
61835         Omit the special code that used __typeof__, since we worry that
61836         it could be more trouble than it's worth.  See:
61837         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
61838         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
61839
61840         * lib/free.c: New file.
61841
61842 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
61843
61844         Trivial fixes to Makefile.am parts of module listings.
61845         * modules/strstr: Append strstr.h to lib_SOURCES.
61846         * modules/strcase: Likewise, for strcase.h.
61847
61848 2003-09-27  Karl Berry  <karl@gnu.org>
61849
61850         * config/mkinstalldirs: update from automake.
61851
61852 2003-09-26  Paul Eggert  <eggert@twinsun.com>
61853
61854         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
61855         (error_tail): Do not loop, reallocating temporary buffer, since
61856         the output cannot contain more wide characters than the input
61857         contains bytes, the size must be big enough already.  This avoids
61858         one potential size overflow calculation.  Check for size overflow
61859         when calculating temporary buffer size.  Free temporary buffer
61860         when done, if it was allocated with malloc; this plugs a memory
61861         leak.  Remove casts from void * to pointers, that are no longer
61862         needed now that we're assuming C89 or better.
61863
61864         Merge error changes from glibc.
61865
61866         * lib/error.c, error.h: Update copyright notice header to match glibc.
61867         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
61868         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
61869         Disable cancellation while printing error.
61870         * lib/error.h: Prepend __ to parameter names.
61871
61872 2003-09-26  Jim Meyering  <jim@meyering.net>
61873
61874         * lib/error.c (error_tail): Move some declarations
61875         into inner scope where the local variables are used.
61876
61877 2003-09-26  Bruno Haible  <bruno@clisp.org>
61878
61879         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
61880         stpncpy().
61881         Don't define stpncpy through config.h; it's now done through stpncpy.h.
61882
61883 2003-09-26  Bruno Haible  <bruno@clisp.org>
61884
61885         * lib/stpncpy.h (gnu_stpncpy): New declaration.
61886         (stpncpy): Define as alias for gnu_stpncpy.
61887         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
61888
61889 2003-09-25  Simon Josefsson  <jas@extundo.com>
61890
61891         * lib/xgetdomainname.h: New file.
61892         * lib/xgetdomainname.c: New file.
61893
61894 2003-09-25  Simon Josefsson  <jas@extundo.com>
61895             Bruno Haible  <bruno@clisp.org>
61896
61897         * modules/getdomainname: New file.
61898         * modules/xgetdomainname: New file.
61899         * MODULES.html.sh (func_all_modules): Add getdomainname,
61900         xgetdomainname.
61901
61902 2003-09-25  Simon Josefsson  <jas@extundo.com>
61903             Bruno Haible  <bruno@clisp.org>
61904
61905         * m4/getdomainname.m4: New file.
61906
61907 2003-09-25  Simon Josefsson  <jas@extundo.com>
61908             Bruno Haible  <bruno@clisp.org>
61909
61910         * lib/getdomainname.h: New file.
61911         * lib/getdomainname.c: New file.
61912
61913 2003-09-25  Karl Berry  <karl@gnu.org>
61914
61915         * lib/argp-fmtstream.c, argp-help.c: update from libc.
61916
61917 2003-09-25  Karl Berry  <karl@gnu.org>
61918
61919         * config/install-sh: update from automake.
61920
61921 2003-09-25  Bruno Haible  <bruno@clisp.org>
61922
61923         * modules/version-etc-2: New file, from modules/version-etc with
61924         modifications.
61925         * MODULES.html.sh (func_all_modules): Add version-etc-2.
61926
61927 2003-09-25  Bruno Haible  <bruno@clisp.org>
61928
61929         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
61930         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
61931
61932 2003-09-24  Simon Josefsson  <jas@extundo.com>
61933
61934         * modules/xgethostname: Add xgethostname.h.
61935
61936 2003-09-24  Paul Eggert  <eggert@twinsun.com>
61937
61938         * lib/linebuffer.c (freebuffer): Don't free the argument, just
61939         the buffer associated with the argument.  Bug reported by
61940         Simon Josefsson.
61941
61942 2003-09-24  Paul Eggert  <eggert@twinsun.com>
61943
61944         * README: Document assumptions that 'int' is at least 32 bits
61945         wide, that integer arithmetic is 2's complement without overflow,
61946         that there are no holes in integer values, that adding sizes of
61947         two nonoverlapping objects can't overflow, and that all-bits-zero
61948         yields scalar zero.  Fix spelling and capitalization typos.
61949
61950 2003-09-19  Karl Berry  <karl@gnu.org>
61951
61952         * lib/argp.h: update from libc.
61953
61954 2003-09-17  Paul Eggert  <eggert@twinsun.com>
61955
61956         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
61957         to avoid spurious warnings like "AC_RUN_IFELSE was called before
61958         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
61959
61960 2003-09-17  Paul Eggert  <eggert@twinsun.com>
61961
61962         * gnulib-tool: Use "test -h", not "test -L", for portability
61963         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
61964         (tags_regexp): Remove, since \| doesn't conform to POSIX.
61965         (sed_extract_prog): Issue s commands one-by-one, rather than
61966         using \| in one s command.
61967
61968 2003-09-16  Paul Eggert  <eggert@twinsun.com>
61969
61970         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
61971         input error, instead of returning NULL the next time we are called
61972         (and therefore losing track of errno).
61973
61974 2003-09-16  Bruno Haible  <bruno@clisp.org>
61975
61976         * gnulib-tool (func_create_testdir): Warn about duplicated
61977         dependencies.
61978
61979 2003-09-15  Paul Eggert  <eggert@twinsun.com>
61980
61981         * modules/argmatch, modules/fatal, modules/obstack,
61982         modules/xalloc, modules/xgethostname: Sort dependencies by
61983         importance, not alphabetically.
61984
61985 2003-09-15  Paul Eggert  <eggert@twinsun.com>
61986
61987         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
61988         fails, so that the caller gets the proper errno.
61989
61990         * lib/readutmp.c (read_utmp): Likewise.
61991         Check for fstat error.  Close stream and free storage
61992         when failing.
61993
61994 2003-09-14  Karl Berry  <karl@gnu.org>
61995
61996         * config/srclist.txt (strdup.c): disable for c89 changes.
61997
61998 2003-09-14  Jim Meyering  <jim@meyering.net>
61999
62000         * lib/getloadavg.c: Correct cpp indentation.
62001         * lib/strdup.c: Likewise.
62002         * lib/vasnprintf.c: Likewise.
62003
62004 2003-09-14  Bruno Haible  <bruno@clisp.org>
62005
62006         * modules/fwriteerror: New file.
62007         * MODULES.html.sh (func_all_modules): Add fwriteerror.
62008
62009 2003-09-14  Bruno Haible  <bruno@clisp.org>
62010
62011         * lib/fwriteerror.h: New file.
62012         * lib/fwriteerror.c: New file.
62013
62014 2003-09-12  Paul Eggert  <eggert@twinsun.com>
62015
62016         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
62017         modules/xgethostname, modules/xalloc: Depend on exit.
62018
62019 2003-09-12  Paul Eggert  <eggert@twinsun.com>
62020
62021         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
62022
62023         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
62024         and AC_MINIX, too, so that their extensions are available.
62025
62026         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
62027         This macro has been superseded by gl_BACKUPFILE.
62028
62029         More patches to assume C89 or better.
62030
62031         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
62032
62033         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
62034         unconditionally.
62035         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
62036         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
62037         Include <string.h>, <stdlib.h> unconditionally.
62038         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
62039         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
62040         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
62041         headers or for string.h.
62042         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
62043         or strtoul.
62044
62045         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
62046         headers.
62047         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
62048         * m4/userspec.m4 (gl_USERSPEC): Likewise.
62049         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
62050         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
62051         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
62052         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
62053         memcpy, memset.
62054         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
62055         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
62056         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
62057         strtol.
62058         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
62059         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
62060         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
62061         strtoul.
62062
62063 2003-09-12  Paul Eggert  <eggert@twinsun.com>
62064
62065         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
62066         * lib/obstack.c [!defined _LIBC]: Likewise.
62067         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
62068         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
62069         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
62070
62071         More changes to assume C89 or better.
62072
62073         * lib/error.c (error_tail): Assume vprintf.
62074
62075         * lib/argmatch.c (getenv): Remove decl.
62076         * lib/progreloc.c (get_full_program_name): Define via prototype.
62077         * lib/setenv.c (clearenv): Likewise.
62078         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
62079         needed.
62080         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
62081         (malloc, memcpy): Remove decls.
62082         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
62083         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
62084         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
62085         (memcpy): Remove macro.
62086         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
62087         (__P): Remove.  All uses removed.
62088         (PTR): Remove.  All uses changed to void *.
62089         (CHAR_BIT, NULL): Remove.
62090         (spaces, zeros, memset_space, memset_zero)
62091         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
62092         Remove.
62093         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
62094         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
62095         Define with prototype.
62096         Remove now-unnecessary prototype decl.
62097         (extra_args_spec): Assume ANSI C.  All uses changed.
62098         (extra_args_spec_iso): Remove.
62099         (my_strftime, emacs_strftimeu): Define via prototype.
62100         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
62101         unconditionally.
62102         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
62103         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
62104         (strtoul, strtol): Remove decls.
62105         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
62106         LONG_MAX): Remove.
62107         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
62108         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
62109         (LOCALE_PARAM_PROTO): New macro.
62110         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
62111         (INTERNAL (strtol), strtol): Define with a prototype.
62112         (PARAMS): Remove.  All uses removed.
62113         * lib/tempname.c: Include <string.h> unconditionally.
62114         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
62115         * lib/xgethostname.c (main): Define with a prototype.
62116         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
62117         Include <stdlib.h> unconditionally.
62118         (calloc, malloc, realloc, free): Remove decls.
62119         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
62120         Include <stdlib.h> unconditionally.  Sort include file names.
62121         (strtod): Remove.
62122         (xstrtod): Define with a prototype.
62123         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
62124         (strtol, strtoul): Remove decls.
62125
62126 2003-09-11  Paul Eggert  <eggert@twinsun.com>
62127
62128         More patches to assume C89 or better.
62129         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
62130         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
62131         string.h, memchr, STDC_HEADERS.
62132
62133 2003-09-11  Paul Eggert  <eggert@twinsun.com>
62134
62135         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
62136         Include <stdlib.h>, <string.h> unconditionally.
62137         Remove now-unnecessary cast to char *.
62138         * lib/strnlen.c: Include <string.h> unconditionally.
62139         * lib/yesno.c (yesno): Define with a prototype.
62140
62141 2003-09-11  Bruno Haible  <bruno@clisp.org>
62142
62143         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
62144
62145 2003-09-10  Jim Meyering  <jim@meyering.net>
62146
62147         * lib/error.c: Correct indentation of cpp directives.
62148
62149 2003-09-10  Bruno Haible  <bruno@clisp.org>
62150
62151         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
62152         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
62153         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
62154         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
62155         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
62156         <stdlib.h> and <string.h> checks.
62157         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
62158         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
62159
62160 2003-09-10  Bruno Haible  <bruno@clisp.org>
62161
62162         * lib/strcspn.c: Include <string.h> unconditionally.
62163         * lib/strpbrk.c: Include <string.h> unconditionally.
62164         * lib/strstr.c: Include <string.h> unconditionally.
62165         * lib/unicodeio.c: Include <string.h> unconditionally.
62166         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
62167         * lib/unsetenv.c: Likewise.
62168         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
62169         * lib/yesno.c: Include <stdlib.h> unconditionally.
62170         (rpmatch): Add prototype.
62171
62172 2003-09-09  Paul Eggert  <eggert@twinsun.com>
62173
62174         More patches to assume C89 or better.
62175         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
62176         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
62177         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
62178         or for string.h.
62179         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
62180         stdlib.h.
62181         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
62182         C headers.
62183         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
62184         string.h.
62185         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
62186         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
62187         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
62188         or for string.h.
62189         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
62190         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
62191         C headers.
62192         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
62193         memcpy.
62194         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
62195         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
62196         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
62197         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
62198         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
62199         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
62200         string.h, free.
62201         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
62202         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
62203         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
62204         C headers, or for string.h.
62205         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
62206         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
62207         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
62208         headers, memory.h, stdlib.h, string.h, strings.h.
62209         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
62210         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
62211         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
62212         strchr.
62213         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
62214         headers, memory.h, string.h.
62215         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
62216         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
62217         free.
62218         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
62219         headers.
62220         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
62221         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
62222         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
62223         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
62224         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
62225
62226 2003-09-09  Paul Eggert  <eggert@twinsun.com>
62227
62228         More K&R removal.
62229
62230         * lib/acosl.c (main): Use a prototype.
62231         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
62232         tanl.c: Likewise.
62233
62234         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
62235
62236         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
62237         (getopt, etopt_long, getopt_long_only, _getopt_internal)
62238         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
62239         with a prototype.
62240         * lib/getopt.c (const): Remove macro.
62241         Include <string.h> unconditionally.
62242         (my_index): Remove; all uses changed to strchr.
62243         (strlen): Remove decl.
62244         (exchange): Remove forward decl; no longer needed.
62245         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
62246         Define with prototype.
62247         * lib/getopt1.c (const): Remove macro.
62248         (getopt_long, getopt_long_only, main): Define with prototype.
62249
62250         * lib/getugroups.c: Include <string.h> unconditionally.
62251
62252         * lib/getusershell.c: Include <stdlib.h> unconditionally.
62253         (getusershell, setusershell, endusershell, readname, main):
62254         Define with prototypes.
62255
62256         * lib/group-member.c: Include group-member.h first.
62257         Include <stdlib.h> unconditionally.
62258
62259         * lib/hard-locale.c: Include hard-locale.h first.
62260         Include <stdlib.h>, <string.h> unconditionally.
62261
62262         * lib/hash.c (free, malloc): Remove decls.
62263         Include <stdlib.h> unconditionally.
62264
62265         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
62266         (getenv): Do not declare.
62267
62268         * lib/idcache.c: Include <string.h> unconditionally.
62269
62270         * lib/long-options.c: Include long-options.h first, to test interface.
62271         Include <stdlib.h> unconditionally.
62272
62273         * lib/makepath.c: Include makepath.h first, to test interface.
62274         Include <stdlib.h> and <string.h> unconditionally.
62275
62276         * lib/linebuffer.c: Include <stdlib.h>.
62277         (free): Remove decl.
62278
62279         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
62280         stddef.h. rpl_malloc returns void *, not char *.
62281         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
62282         prototype.
62283
62284         * lib/md5.h: Include <limits.h> unconditionally.
62285         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
62286         (__P): Remove; all uses removed.
62287         * lib/md5.c: Include "md5.h" first.
62288         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
62289         md5_buffer, md5_process_bytes, md5_process_block):
62290         Define with prototypes.
62291         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
62292         * lib/sha.c: Include "sha.h" first.
62293         Include <stdlib.h>, <string.h> unconditionally.
62294
62295         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
62296         * lib/memcmp.c (__ptr_t): Likewise.
62297         * lib/memrchr.c (__ptr_t): Likewise.
62298         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
62299         Include <string.h> unconditionally.
62300         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
62301         * lib/memchr.c: Include <stdlib.h> unconditionally.
62302         * lib/memchr.c (LONG_MAX): Remove.
62303         * lib/memrchr.c (LONG_MAX): Likewise.
62304         * lib/memchr.c (__memchr): Define via a prototype.
62305         * lib/memrchr.c (__memrchr): Likewise.
62306         * lib/memcmp.c (__P): Remove, and remove all uses.
62307         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
62308         Remove forward decls; no longer needed.
62309         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
62310         Use types required by C89 in prototype.
62311
62312         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
62313         * lib/savedir.c: Likewise.
62314         * lib/mkdir.c (free): Remove decl.
62315         * lib/rmdir.c (rmdir): Define with a prototype.
62316         * lib/savedir.c: Include savedir.h first, to test interface.
62317
62318         * lib/mktime.c (STDC_HEADERS): Remove.
62319         Include <stdlib.h>, <string.h> unconditionally.
62320
62321         * lib/modechange.c: Include <stdlib.h> unconditionally.
62322         (malloc): Remove decl.
62323
62324         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
62325         (free): Remove decl.
62326
62327         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
62328         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
62329         (This type really should be intptr_t, but that's a C99ism.)
62330         (_obstack_memcpy): Remove: all uses changed to memcpy.
62331         Include <string.h> unconditionally.
62332         (struct obstack): Assume __STDC__ for types of members
62333         chunkfun, freefun, extra_arg.
62334         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
62335         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
62336         obstack_begin, obstack_specify_allocation,
62337         obstack_specify_allocation_with_arg, obstack_chunkfun,
62338         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
62339         Remove unprototyped decls and the macros that use them.
62340         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
62341         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
62342         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
62343         (defined __STDC__ && __STDC__)]:
62344         Remove nonprototyped code.
62345         Include <stdlib.h> unconditionally.
62346         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
62347         _obstack_allocated_p, _obstack_free, obstack_free,
62348         _obstack_memory_used, print_and_abort):
62349         Define using prototypes.
62350         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
62351         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
62352         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
62353         obstack_next_free, obstack_object_size, obstack_room) [0]:
62354         Remove unused, unprototyped code.
62355
62356         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
62357
62358         * lib/physmem.c (physmem_total, physmem_available, main): Define
62359         with prototypes.
62360
62361         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
62362         (main): Define with a prototype.
62363
62364         * lib/posixver.c (getenv): Remove decl.
62365
62366         * lib/putenv.c (malloc): Returns void *, not char *.
62367         Include <string.h> unconditionally.
62368         (strchr, memcpy, NULL): Do not define.
62369
62370         * lib/readtokens.c: Include readtokens.h first, to test interface.
62371         Include <stdlib.h>, <string.h> unconditionally.
62372         (init_tokenbuffer): Define with a prototype.
62373
62374         * lib/regex.c (PARAMS): Remove.  All uses removed.
62375         All uses of _RE_ARGS removed, too.
62376         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
62377         unconditionally.
62378         (bzero): Assume memset exists.
62379         (memcmp, memcpy, NULL): Remove.
62380         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
62381         char, or assignments to local vars of type signed char.
62382         (init_syntax_once, PREFIX(extract_number_and_incr),
62383         PREFIX(print_partial_compiled_pattern),
62384         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
62385         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
62386         PREFIX(regex_grow_registers), PREFIX(regex_compile),
62387         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
62388         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
62389         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
62390         wcs_compile_range, byte_compile_range, truncate_wchar,
62391         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
62392         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
62393         count_mbs_length, wcs_re_match_2_internal,
62394         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
62395         PREFIX(alt_match_null_string_p),
62396         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
62397         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
62398         regfree, PREFIX(extract_number)): Define with prototype.  Remove
62399         now-unnecessary declaration, if any.
62400         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
62401         regcomp, regexec):
62402         Remove now-unnecessary casts among pointer types.
62403         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
62404
62405         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
62406         (free): Remove decl.
62407
62408         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
62409
62410         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
62411         (free): Remove decl.
62412
62413         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
62414         * lib/xgetcwd.c: Likewise.
62415
62416         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
62417         (free): Remove decl.
62418
62419         * lib/strchrnul.c (strchrnul): Define with a prototype.
62420         Fix bug: c_in was not converted to char before searching.
62421
62422         The following changes are not K&R related:
62423
62424         * lib/group-member.h: Include <sys/types.h>, so that this file is
62425         self-contained.
62426         * lib/makepath.h: Likewise.
62427
62428         * lib/getusershell.c (readname, default_index, line_size, readname):
62429         Use size_t, not int, for sizes.
62430         (readname): If the size overflows, report an error instead of
62431         looping forever.
62432
62433 2003-09-09  Paul Eggert  <eggert@twinsun.com>
62434
62435         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
62436         libc.
62437
62438 2003-09-09  Paul Eggert  <eggert@twinsun.com>
62439
62440         * README: New section: portability guidelines.
62441
62442 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
62443
62444         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
62445         C89 spec.
62446
62447 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
62448
62449         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
62450
62451 2003-09-08  Paul Eggert  <eggert@twinsun.com>
62452
62453         Assume C89 or better; remove K&R cruft.
62454         A few of these changes were first proposed by Derek Robert Price
62455         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
62456
62457         * lib/addext.c: Include <string.h> unconditionally.
62458         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
62459         Don't declare getenv or malloc.
62460
62461         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
62462         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
62463         (NULL): Remove.
62464         (find_stack_direction, alloca): Use prototypes.
62465
62466         * lib/atexit.c (atexit): Define using a prototype.
62467
62468         * lib/basename.c, dirname.c, stripslash.c:
62469         Include <string.h> unconditionally.
62470
62471         * lib/bcopy.c: Include <stddef.h>.
62472         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
62473
62474         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
62475
62476         * lib/error.h (error, error_at_line, error_print_progname)
62477         [! (defined (__STDC__) && __STDC__)]: Remove decls.
62478         * lib/error.c: Include error.h first, to check interface.
62479         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
62480         (VA_START): Remove; all uses changeed to va_start.
62481         (exit, strerror): Remove decls.
62482         (error_print_progname): Prototype uncondionally.
62483         Don't include <errno.h>; no longer needed.
62484         (private_strerror): Remove.
62485         (error_tail): Always define.
62486         (error, error_at_line): Assume C89 or better; always use prototypes.
62487         * lib/fatal.c: Include "fatal.h" first, to test interface.
62488         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
62489         (VA_START): Remove; all uses changed to va_start.
62490         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
62491         this case.
62492         (exit): Remove decl.
62493         (fatal): Prototype unconditionally.  Assume va_start works.
62494         Abort at end, to pacify gcc.
62495
62496         * lib/euidaccess.c (main): Define with a prototype.
62497
62498         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
62499
62500         * lib/exitfail.c: Include <stdlib.h> unconditionally.
62501
62502         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
62503         prototypes.
62504         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
62505         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
62506         (getenv): Remove decl.
62507         (fnmatch): Define using a prototype.
62508         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
62509         (FCT): Define using a prototype.
62510
62511         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
62512
62513         * lib/gethostname.c: Include <stddef.h>.
62514         (gethostname): Define with prototype.  Length is size_t, not int.
62515
62516 2003-09-08  Paul Eggert  <eggert@twinsun.com>
62517
62518         Assume C89 or better; remove K&R cruft.
62519         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
62520         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
62521         string.h, getenv, malloc.
62522         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
62523         headers.
62524         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
62525         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
62526         do not check for strerror.
62527         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
62528         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
62529         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
62530         do not check for doprnt or vprintf.
62531         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
62532         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
62533
62534 2003-09-08  Paul Eggert  <eggert@twinsun.com>
62535
62536         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
62537         getversion.c should have been removed then, but was accidentally
62538         preserved.
62539
62540         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
62541         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
62542
62543 2003-09-08  Karl Berry  <karl@gnu.org>
62544
62545         * config/config.sub, config.guess, srclistvars.sh: update from savannah
62546                 config, forget about prep.
62547
62548         * config/depcomp, missing: update from automake.
62549
62550 2003-09-07  Paul Eggert  <eggert@twinsun.com>
62551
62552         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
62553         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
62554
62555 2003-09-07  Paul Eggert  <eggert@twinsun.com>
62556
62557         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
62558         copy_tm_result.  Bug reported by Simon Josefsson in
62559         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
62560
62561 2003-09-06  Paul Eggert  <eggert@twinsun.com>
62562
62563         * m4/time_r.m4: New file.
62564         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
62565         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
62566         is. Check for timegm declaration.
62567         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
62568         Do not check for gmtime_r.
62569         Replace mktime if __mktime_internal does not exist and if mktime
62570         hasn't been replaced already.
62571
62572 2003-09-06  Paul Eggert  <eggert@twinsun.com>
62573
62574         * lib/time_r.c, lib/time_r.h: New files.
62575
62576         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
62577         __localtime_r.
62578         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
62579         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
62580
62581         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
62582         __gmtime_r.
62583         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
62584         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
62585         Include <time_r.h>.
62586
62587         * lib/timegm.c: Switch to glibc implementation, with the following
62588         changes:
62589         [defined HAVE_CONFIG_H]: Include <config.h>.
62590         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
62591         (__mktime_internal) [!defined _LIBC]: New decl.
62592         (__gmtime_r) [!defined _LIBC]: New macro and function.
62593         (timegm): Use a prototype, since gnulib assumes C89.
62594         Do not bother declaring tmp to be const, as it's not really usefu.
62595         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
62596         (timegm): Declare only if HAVE_DECL_TIMEGM.
62597
62598 2003-09-06  Paul Eggert  <eggert@twinsun.com>
62599
62600         * MODULES.html.sh (func_all_modules): Add time_r.
62601         * modules/time_r: New file.
62602         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
62603         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
62604
62605 2003-09-03  Paul Eggert  <eggert@twinsun.com>
62606
62607         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
62608         Bug reported by Lute Kamstra in
62609         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
62610
62611         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
62612         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
62613         course with correspondingly smaller numbers for tomorrow and
62614         yesterday.  From Tadayoshi Funaba.  Originally installed into
62615         sh-utils on 1999-08-07, but the patch got lost (I guess during the
62616         coreutils merge?).
62617
62618 2003-08-31  Simon Josefsson  <jas@extundo.com>
62619
62620         * modules/timegm: New file.
62621         * MODULES.html.sh (func_all_modules): Add timegm.
62622
62623 2003-08-31  Simon Josefsson  <jas@extundo.com>
62624
62625         * m4/timegm.m4: New file.
62626
62627 2003-08-31  Simon Josefsson  <jas@extundo.com>
62628
62629         * lib/timegm.h: New file.
62630         * lib/timegm.c: New file.  Based on
62631         wget-1.8.2/src/http.c:mktime_from_utc.
62632
62633 2003-08-31  Karl Berry  <karl@gnu.org>
62634
62635         * lib/argp.h: update from libc.
62636
62637 2003-08-28  Bruno Haible  <bruno@clisp.org>
62638
62639         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
62640         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
62641         followed by '#define fnmatch fnmatch_posix' gives an error.
62642
62643 2003-08-28  Bruno Haible  <bruno@clisp.org>
62644
62645         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
62646         warning on QNX, which defines O_BINARY to 000000.
62647
62648 2003-08-27  Jim Meyering  <jim@meyering.net>
62649
62650         * m4/mkstemp.m4: Require that the system mkstemp be able to create
62651         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
62652         would fail after 32.  Reported by Danny Levinson.  Details here:
62653         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
62654
62655 2003-08-24  Bruno Haible  <bruno@clisp.org>
62656
62657         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
62658         MSVC7 <stdio.h> is included later.
62659
62660 2003-08-22  Simon Josefsson  <jas@extundo.com>
62661
62662         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
62663
62664 2003-08-20  Karl Berry  <karl@gnu.org>
62665
62666         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
62667
62668 2003-08-20  Bruno Haible  <bruno@clisp.org>
62669
62670         * modules/progname: New file.
62671         * MODULES.html.sh (func_all_modules): Add progname.
62672
62673 2003-08-20  Bruno Haible  <bruno@clisp.org>
62674
62675         * lib/progname.h: New file, from GNU gettext.
62676         * lib/progname.c: New file, from GNU gettext.
62677         * lib/progreloc.c: New file, from GNU gettext.
62678
62679 2003-08-19  Jim Meyering  <jim@meyering.net>
62680
62681         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
62682         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
62683
62684 2003-08-19  Bruno Haible  <bruno@clisp.org>
62685
62686         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
62687         more.
62688
62689 2003-08-19  Bruno Haible  <bruno@clisp.org>
62690
62691         * lib/xstrdup.c: Assume <string.h> exists.
62692
62693 2003-08-18  Paul Eggert  <eggert@twinsun.com>
62694
62695         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
62696         in makefile rules.
62697
62698 2003-08-18  Jim Meyering  <jim@meyering.net>
62699
62700         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
62701         * m4/lib-ld.m4: Likewise.
62702
62703 2003-08-18  Jim Meyering  <jim@meyering.net>
62704
62705         * lib/setenv.h: Indent nested cpp directive.
62706         * lib/vasnprintf.c: Remove trailing blanks.
62707
62708 2003-08-17  Simon Josefsson  <jas@extundo.com>
62709
62710         * modules/xstrndup: New file.
62711         * MODULES.html.sh (func_all_modules): Add xstrndup.
62712
62713 2003-08-17  Simon Josefsson  <jas@extundo.com>
62714
62715         * modules/argp: Fix autoconf macro name. Add more dependencies.
62716
62717 2003-08-17  Simon Josefsson  <jas@extundo.com>
62718
62719         * m4/xstrndup.m4: New file.
62720
62721 2003-08-17  Simon Josefsson  <jas@extundo.com>
62722
62723         * m4/argp.m4: New file.
62724
62725 2003-08-17  Simon Josefsson  <jas@extundo.com>
62726             Bruno Haible  <bruno@clisp.org>
62727
62728         * lib/xstrndup.h: New file.
62729         * lib/xstrndup.c: New file.
62730
62731 2003-08-17  Bruno Haible  <bruno@clisp.org>
62732
62733         * modules/strndup (Files, Include): Add lib/strndup.h.
62734
62735 2003-08-17  Bruno Haible  <bruno@clisp.org>
62736
62737         * modules/euidaccess (Files): Add lib/euidaccess.h.
62738
62739 2003-08-17  Bruno Haible  <bruno@clisp.org>
62740
62741         * lib/strndup.h: New file.
62742
62743 2003-08-17  Bruno Haible  <bruno@clisp.org>
62744
62745         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
62746         like AC_GNU_SOURCE.
62747         * modules/extensions (configure.ac): Comment out the invocation of
62748         gl_USE_SYSTEM_EXTENSIONS.
62749
62750 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62751
62752         Merges from coreutils, etc.
62753         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
62754         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
62755         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
62756         fixing a typo.
62757         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
62758         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
62759
62760 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62761
62762         Document merge from coreutils.
62763         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
62764         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
62765         * modules/utime: Add m4/utimes-null.m4.
62766
62767 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62768
62769         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
62770         space, undoing this 2003-08-12 change:
62771         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
62772
62773 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62774
62775         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
62776         strtoul.c from libc, undoing this 2003-08-12 change:
62777         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
62778
62779 2003-08-16  Jim Meyering  <jim@meyering.net>
62780
62781         Merges from coreutils.
62782         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
62783         prefix.  Adjust cache variables similarly.  Create 500 rather than
62784         just 300 files, to exercise bug on Darwin6.5, too.
62785         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
62786         $missing_dir.
62787         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
62788         AM_SYS_POSIX_TERMIOS.
62789         Reported by mkc@mathdogs.com.
62790         Also change use of $am_cv_sys_posix_termios
62791         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
62792         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
62793         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
62794         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
62795         in /proc/mounts until it finds one with matching device number.  This
62796         is unnecessary when the FILE argument *is* a mount point.  No stat call
62797         is necessary in that case.  So, disable the statvfs-testing code on
62798         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
62799         as RedHat bug# 84846.
62800         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
62801         to 1MB, so as not to render systems with no stack size limit (e.g.,
62802         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
62803         Include <unistd.h>.  On some systems,
62804         it is required for the definition of _SC_PAGESIZE.
62805
62806 2003-08-16  Jim Meyering  <jim@meyering.net>
62807
62808         Merge from coreutils.
62809         * lib/xstrtoimax.c: #else #if -> #elif.
62810         * lib/xstrtoumax.c: Likewise.
62811
62812 2003-08-16  Jim Meyering  <jim@meyering.net>
62813
62814         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
62815         * m4/utimes.m4: Removed.
62816         * m4/utimes-null.m4: Renamed from utimes.m4.
62817
62818         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
62819         to 1MB, so as not to render systems with no stack size limit (e.g.,
62820         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
62821         Include <unistd.h>.  On some systems,
62822         it is required for the definition of _SC_PAGESIZE.
62823
62824 2003-08-16  Jim Meyering  <jim@meyering.net>
62825         and Paul Eggert  <eggert@cs.ucla.edu>
62826
62827         Merges from coreutils, etc.
62828
62829         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
62830         using the latest version from cvs.  This avoids problems with #line
62831         directives using a vendor (Sun) compiler.
62832         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
62833         Don't set GETGROUPS_LIB here; now it's
62834         done via getgroups.m4's wrapper function.
62835         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
62836         rather than just in sh-util/configure.in, so that the
62837         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
62838         same.
62839         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
62840         AC_FUNC_GETLOADAVG where to find getloadavg.c.
62841         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
62842         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
62843         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
62844         Remove code that is now done by the newly-required macros.
62845         Append $(EXEEXT) to DF_PROG.
62846         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
62847         Do not invoke or require the following here,
62848         since prereq.m4 or some gnulib .m4 now does this for us:
62849         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
62850         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
62851         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
62852         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
62853         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
62854         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
62855         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
62856         AC_FUNC_OBSTACK.
62857         Do not replace the following functions, as this is now the job
62858         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
62859         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
62860         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
62861         atexit getpass, strdup, getpagesize.
62862         Replace 'raise'.
62863         Do not check for the following functions, as this is now the job
62864         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
62865         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
62866         setregid.
62867         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
62868         Check for sys/sysctl.h.
62869         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
62870         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
62871         of checking for ssize_t ourselves.
62872
62873         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
62874         Require every macro that gnulib/modules/* suggests for us.
62875         (jm_PREREQ_ADDEXT): New macro.
62876         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
62877         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
62878
62879         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
62880         (gl_PHYSMEM): Use it.
62881         Also check for `table' function.
62882         Check for new headers and functions.
62883         Add check for sys/sysmp.h.
62884         With suggestions from Kaveh Ghazi.
62885         Ignore headers that are present but cannot be compiled.  This
62886         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
62887         C 5.4.
62888
62889 2003-08-15  Paul Eggert  <eggert@twinsun.com>
62890
62891         Document merge from coreutils.
62892         * modules/userspec: Depend on posixver.
62893         * modules/strftime: Depend on tzset.
62894
62895 2003-08-15  Paul Eggert  <eggert@twinsun.com>
62896
62897         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
62898         rather than tab, after '#' in shell-script copyright notices.
62899         Suggested by Bruno Haible.
62900
62901 2003-08-15  Paul Eggert  <eggert@twinsun.com>
62902
62903         * config/srclist-update: Use three spaces, rather than tab, after '#'
62904         in shell-script copyright notices.  Suggested by Bruno Haible.
62905         Remove unnecessary parenthesization in regular expression.
62906
62907 2003-08-15  Jim Meyering  <jim@meyering.net>
62908
62909         Merge from coreutils.
62910         * lib/xgethostname.c: Include <stdlib.h>.
62911         (xghostname): Don't exit for anything other than memory-related
62912         failure; just return NULL.
62913         * lib/userspec.c: Include "posixver.h".
62914         (parse_user_spec): Accept `.' as a separator only
62915         in pre-POSIX-200112 mode.
62916         * lib/strtoimax.c: Use #elif rather than #else #if.
62917         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
62918         Remove function, now that we can rely on a working tzset function.
62919         [!_LIBC]: Ensure that the required autoconf test has been run.
62920         [!defined _NL_CURRENT && HAVE_STRFTIME]:
62921         Use underlying_strftime for %r.
62922         * lib/sha.c: Merge in some clean-up and optimization changes from
62923         glibc.
62924         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
62925         Ensure that it is a multiple of 64.
62926         Rearrange loop exit tests so as to avoid performing an
62927         additional fread after encountering an error or EOF.
62928         * lib/realloc.c: Update copyright date.
62929
62930 2003-08-15  Jim Meyering  <jim@meyering.net>
62931         and Paul Eggert  <eggert@twinsun.com>
62932
62933         Merge from coreutils.
62934         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
62935         member but strut utmpx does not.  Needed for AIX 4.3.3.
62936         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
62937
62938 2003-08-15  Jim Meyering  <jim@meyering.net>
62939         and Paul Eggert  <eggert@cs.ucla.edu>
62940
62941         Merges from coreutils, etc.
62942         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
62943         Require gl_FUNC_TZSET_CLOBBER.
62944         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
62945         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
62946         members.
62947
62948 2003-08-14  Paul Eggert  <eggert@twinsun.com>
62949
62950         Help the merge from coreutils.
62951         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
62952         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
62953         * m4/tzset.m4: Use it too.
62954
62955 2003-08-14  Paul Eggert  <eggert@twinsun.com>
62956
62957         * modules/tzset: New file.
62958
62959 2003-08-14  Jim Meyering  <jim@meyering.net>
62960
62961         Merges from coreutils.
62962         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
62963         variable names, rather than @FNMATCH_H@.
62964         * modules/alloca: Likewise for $(ALLOCA_H).
62965
62966         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
62967         the three copies of the literal target, `fnmatch.h'.
62968         * modules/alloca (alloca.h): Likewise.
62969
62970 2003-08-14  Jim Meyering  <jim@meyering.net>
62971
62972         Merge from coreutils.
62973         * m4/tzset.m4: New file.
62974         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
62975         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
62976         otherwise, AIX 5.1 systems would end up using the latter.
62977         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
62978         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
62979         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
62980         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
62981
62982 2003-08-14  Jim Meyering  <jim@meyering.net>
62983
62984         Merge from coreutils.
62985         * lib/obstack.h: Whitespace changes.
62986         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
62987         and xcalloc return values.
62988         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
62989         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
62990         hang on OSF/1 5.1 for DIR on both local and remote file systems.
62991         Reported by (and fix confirmed by) Nelson H. F. Beebe.
62992         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
62993         error from mntctl.
62994         Use mntctl's return value to drive the entry-processing loop, since
62995         we can't rely on the value of the vmt_length member in the last
62996         entry.  On some systems doing so could result in exhausting
62997         virtual memory.  Based in part on a patch from Mike Jetzer.
62998
62999 2003-08-14  Jim Meyering  <jim@meyering.net>
63000         and Paul Eggert  <eggert@twinsun.com>
63001
63002         Merges from coreutils, plus other fixes.
63003         * lib/physmem.c: Merge in portability changes from gcc/libiberty
63004         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
63005         for credits and details.  Thanks to Kaveh Ghazi for helping
63006         to keep these files in sync.
63007         (ARRAY_SIZE): Define it.
63008         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
63009         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
63010         (memcasecmp): Don't assume size_t fits in unsigned int.
63011         Remove casts and duplicate code.
63012         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
63013         (memcpy): Remove definition.
63014         Merge in some clean-up and optimization changes from glibc.
63015         [BLOCKSIZE]: Move definition to top of file.
63016         Ensure that it is a multiple of 64.
63017         Rearrange loop exit tests so as to avoid performing an
63018         additional fread after encountering an error or EOF.
63019         * lib/md5.h (md5_uintptr): Define.
63020         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
63021         return to the initial working directory.  Preserve errno
63022         for caller.
63023         * lib/idcache.c: Include "xalloc.h".
63024         (xmalloc, xrealloc): Remove decls.
63025         (getuser): Remove casts no longer required in C89.
63026         * lib/human.c: Include stdio.h, for sprintf.
63027         * lib/group-member.c: Include "xalloc.h".
63028         (xmalloc, xrealloc): Remove decls.
63029         (get_group_info): Remove casts no longer required in C89.
63030         * lib/getusershell.c (readname): Remove casts no longer required in
63031         C89.
63032         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
63033         * lib/getline.c: Whitespace fix, from coreutils.
63034
63035 2003-08-13  Paul Eggert  <eggert@twinsun.com>
63036
63037         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
63038         Check for isascii.
63039
63040         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
63041         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
63042         Undo previous (whitespace-only) change.
63043
63044 2003-08-13  Paul Eggert  <eggert@twinsun.com>
63045
63046         * lib/exclude.c: Include <ctype.h>
63047         (IN_CTYPE_DOMAIN): New macro.
63048         (is_space): New fn.
63049         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
63050         and empty lines.
63051
63052         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
63053         Undo previous (whitespace-only) change.
63054
63055 2003-08-13  Paul Eggert  <eggert@twinsun.com>
63056
63057         * config/srclist-update: Change update back to the old behavior,
63058         leaving whitespace alone.  Use one 'sed' command rather than a
63059         pipeline.
63060         (fixlicense): Now a variable, not a function.
63061         (remove_trailing_blanks): Remove.
63062         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
63063         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
63064         Undo previous (whitespace-only) change.
63065
63066 2003-08-12  Paul Eggert  <eggert@twinsun.com>
63067
63068         Merge from coreutils.
63069         * modules/euidaccess: Add lib_SOURCES, include for new
63070         file euidaccess.h
63071
63072 2003-08-12  Paul Eggert  <eggert@twinsun.com>
63073
63074         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
63075         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
63076         Normalize leading white space and remove trailing white space.
63077
63078         Merge from coreutils
63079         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
63080
63081         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
63082         0.12.1.  These files are now being upgraded automatically by
63083         ../config/srclist-update.
63084
63085 2003-08-12  Paul Eggert  <eggert@twinsun.com>
63086
63087         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
63088         Normalize leading white space and remove trailing white space.
63089         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
63090         notice, as per ../config/srclist-update.
63091
63092         Merge from coreutils.
63093         * lib/euidaccess.h: New file.
63094         * lib/euidaccess.c: Include it.
63095         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
63096         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
63097         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
63098
63099 2003-08-12  Paul Eggert  <eggert@twinsun.com>
63100
63101         * config/srclist-update: Add copyright notice.
63102         (remove_id_lines, remove_trailing_blanks): New constants.
63103         (fixfile): Use them to normalize spacing a bit in copied files.
63104         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
63105         Normalize leading white space and remove trailing white space.
63106
63107         * config/texinfo.tex: Sync with texinfo.
63108
63109         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
63110         strtoul.c from libc, to merge coreutils whitespace changes.
63111
63112         * config/srclist.txt: Get the following m4 files from gettext:
63113         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
63114         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
63115         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
63116         wint_t.m4.
63117
63118 2003-08-12  Karl Berry  <karl@gnu.org>
63119
63120         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
63121         been made.
63122
63123 2003-08-11  Paul Eggert  <eggert@twinsun.com>
63124
63125         * modules/gnu-source, m4/gnu-source.m4:
63126         Remove; we're assuming Autoconf 2.54 or later now.
63127         Suggested by Bruno Haible.
63128         * MODULES.html.sh (func_all_modules): Remove gnu-source.
63129
63130 2003-08-11  Bruno Haible  <bruno@clisp.org>
63131
63132         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
63133
63134 2003-08-11  Bruno Haible  <bruno@clisp.org>
63135
63136         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
63137         (vasnprintf): Use it instead of wcslen.
63138
63139 2003-08-11  Bruno Haible  <bruno@clisp.org>
63140
63141         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
63142         value to ensure that _Bool promotes to int. Use #define for _Bool when
63143         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
63144
63145 2003-08-10  Karl Berry  <karl@gnu.org>
63146
63147         * lib/regex.h: update from libc (whitespace fix).
63148
63149 2003-08-09  Paul Eggert  <eggert@twinsun.com>
63150
63151         Merge some files from coreutils.  These changes were
63152         originally made by Jim Meyering.
63153         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
63154         many older Unixes require this.
63155         * lib/alloca.c (alloca): Remove cast to argument of free;
63156         no longer needed in C89.
63157         * lib/alloca_.h, regex.h: Fix white space to match
63158         what GNU indent does.
63159
63160 2003-08-09  Paul Eggert  <eggert@twinsun.com>
63161
63162         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
63163         apparently Emacs's Unicode mode got confused before my 2003-08-05
63164         checkin.
63165
63166 2003-08-08  Paul Eggert  <eggert@twinsun.com>
63167
63168         * m4/extensions.m4: New file.
63169         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
63170         Require gl_USE_SYSTEM_EXTENSIONS.
63171         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
63172         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
63173
63174 2003-08-08  Paul Eggert  <eggert@twinsun.com>
63175
63176         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
63177         * modules/extensions, modules/gnu-source: New files.
63178         * modules/timespec, modules/unlocked-io: Depend on extensions.
63179
63180 2003-08-07  Paul Eggert  <eggert@twinsun.com>
63181
63182         * modules/restrict: New file.
63183         * MODULES.html.sh (func_all_modules): Add restrict.
63184         * modules/regex: Depend on restrict.
63185
63186 2003-08-07  Paul Eggert  <eggert@twinsun.com>
63187
63188         * m4/restrict.m4: New file.
63189         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
63190
63191 2003-08-07  Bruno Haible  <bruno@clisp.org>
63192
63193         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
63194         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
63195
63196 2003-08-07  Bruno Haible  <bruno@clisp.org>
63197
63198         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
63199         makes the module 'getndelim2' compatible with the module 'getline'.
63200
63201 2003-08-05  Paul Eggert  <eggert@twinsun.com>
63202
63203         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
63204         byte with "\201" to avoid glitches when editing that source file
63205         with multi-gnome-terminal.
63206
63207 2003-08-05  Paul Eggert  <eggert@twinsun.com>
63208
63209         * lib/bumpalloc.h: Remove.
63210
63211 2003-08-05  Paul Eggert  <eggert@twinsun.com>
63212
63213         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
63214         * modules/bumpalloc: Remove.
63215
63216 2003-08-04  Paul Eggert  <eggert@twinsun.com>
63217
63218         * lib/getloadavg.c: Change copyright notice and spacing to conform to
63219         GNU coding style.
63220
63221         Merge from coreutils.
63222         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
63223         1. From glibc.
63224         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
63225         from Karl Berry, implemented by Jim Meyering.
63226         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
63227         from Dmitry V. Levin.
63228         Remove anachronistic cast of xrealloc.
63229         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
63230         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
63231         type. Otherwise, it wouldn't compile with at least /bin/cc on
63232         ymp-cray-unicos9.0.2.X.
63233         Combine two mostly-identical uses of alloca into one.
63234         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
63235
63236 2003-08-04  Dave Love  <d.love@dl.ac.uk>
63237
63238         [From Emacs.]
63239
63240         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
63241         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
63242         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
63243         obsolete NLIST_NAME_UNION.
63244         [__GNU__]: Undef BSD and FSCALE.
63245         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
63246
63247 2003-08-03  Paul Eggert  <eggert@twinsun.com>
63248
63249         * lib/stdbool_.h (_Bool): Make it signed char, instead of
63250         an enum type, so that it's guaranteed to promote to int.  See:
63251         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
63252
63253 2003-08-03  Karl Berry  <karl@gnu.org>
63254
63255         * config/depcomp: update from automake.
63256
63257 2003-07-31  Paul Eggert  <eggert@twinsun.com>
63258
63259         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
63260         (strerror): Don't assume that a printable int fits in 14 bytes.
63261
63262 2003-07-31  Bruno Haible  <bruno@clisp.org>
63263
63264         * modules/getpass-gnu: New file.
63265         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
63266
63267 2003-07-31  Bruno Haible  <bruno@clisp.org>
63268
63269         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
63270
63271 2003-07-24  Karl Berry  <karl@gnu.org>
63272
63273         * config/missing: update from automake.
63274
63275 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
63276             Bruno Haible  <bruno@clisp.org>
63277
63278         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
63279         * lib/getline.c (getline, getdelim): Likewise.
63280         Remove _GNU_SOURCE define; now it's defined in config.h through
63281         m4/getline.m4.
63282
63283 2003-07-23  Karl Berry  <karl@gnu.org>
63284
63285         * config/config.sub: update from prep.
63286
63287 2003-07-22  Paul Eggert  <eggert@twinsun.com>
63288
63289         * modules/xalloc (Depends-on): Add exitfail.
63290         * modules/xmemcoll: Likewise.
63291
63292 2003-07-22  Paul Eggert  <eggert@twinsun.com>
63293
63294         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
63295         over-parenthesization in macros.
63296
63297         Sync with coreutils.
63298
63299         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
63300         required by C99.
63301
63302         Use `exit_failure' for xalloc and xmemcoll instead of their own
63303         private exit-failure variables.
63304         * lib/xalloc.h (xalloc_exit_failure): Remove.
63305         * lib/xmalloc.c: Likewise.  Include exitfail.h.
63306         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
63307         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
63308         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
63309         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
63310
63311 2003-07-20  Jim Meyering  <jim@meyering.net>
63312
63313         * modules/closeout (Depends-on): Add exitfail.
63314         Suggestion from Bruno Haible.
63315
63316 2003-07-19  Karl Berry  <karl@gnu.org>
63317
63318         * config/config.sub: update from prep.
63319
63320 2003-07-18  Paul Eggert  <eggert@twinsun.com>
63321
63322         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
63323         Remove.
63324         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
63325         to test that it can stand by itself.  Include "exitfail.h".
63326         Clients should set exit_failure instead.
63327         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
63328
63329 2003-07-18  Bruno Haible  <bruno@clisp.org>
63330
63331         * modules/getndelim2: New file.
63332         * modules/getline: Share files with module getndelim2.
63333         * modules/getnline: Depend on getndelim2 instead of sharing files with
63334         it. Add getnline.c to lib_SOURCES.
63335         * MODULES.html.sh (func_all_modules): Add getndelim2.
63336
63337 2003-07-18  Bruno Haible  <bruno@clisp.org>
63338
63339         * m4/getndelim2.m4: New file.
63340         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
63341         invoke gl_PREREQ_GETNDELIM2.
63342         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
63343         gl_PREREQ_GETNDELIM2.
63344         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
63345         gl_GETNDELIM2.
63346
63347 2003-07-18  Bruno Haible  <bruno@clisp.org>
63348
63349         * lib/getndelim2.h: New file.
63350         * lib/getndelim2.c: Make into a module of its own. Include config.h,
63351         getndelim2.h.
63352         (getndelim2): Make non-static. Change return type to ssize_t.
63353         * lib/getline.h: Change argument names.
63354         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
63355         * lib/getnline.c: Include getndelim2.h.
63356
63357 2003-07-18  Andreas Schwab  <schwab@suse.de>
63358
63359         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
63360
63361 2003-07-17  Karl Berry  <karl@gnu.org>
63362
63363         * config/config.sub: update from prep.
63364
63365 2003-07-17  Bruno Haible  <bruno@clisp.org>
63366
63367         * modules/getnline: New file.
63368         * modules/getline: Add lib/getndelim2.c to source file list.
63369         * MODULES.html.sh (func_all_modules): Add getnline.
63370
63371 2003-07-17  Bruno Haible  <bruno@clisp.org>
63372
63373         * m4/getnline.m4: New file.
63374
63375 2003-07-17  Bruno Haible  <bruno@clisp.org>
63376
63377         * m4/Makefile.am.in: Remove file.
63378         * m4/Makefile.am: Remove file.
63379         * m4/Makefile.in: Remove file.
63380
63381 2003-07-17  Bruno Haible  <bruno@clisp.org>
63382
63383         * lib/getnline.h: New file.
63384         * lib/getnline.c: New file.
63385         * lib/getndelim2.c: New file, extracted from getline.c.
63386         (getndelim2): Renamed from getdelim2, with added nmax argument.
63387         * lib/getline.c: Include getndelim2.c.
63388         (getdelim2): Moved out to getndelim2.c.
63389         (getline, getdelim): Update.
63390
63391 2003-07-17  Bruno Haible  <bruno@clisp.org>
63392
63393         * lib/Makefile.am: Remove file.
63394         * lib/Makefile.in: Remove file.
63395
63396 2003-07-17  Bruno Haible  <bruno@clisp.org>
63397
63398         * configure.in: Remove file.
63399         * Makefile.in: Remove file.
63400
63401 2003-07-17  Bruno Haible  <bruno@clisp.org>
63402
63403         * MODULES.html.sh: Put the </BODY> right before </HTML>.
63404
63405 2003-07-16  Karl Berry  <karl@gnu.org>
63406
63407         * config/srclist-update: was running fixlicense twice, which caused
63408                 texinfo.tex to be nullified for some reason.  Simplify,
63409                 $gplsrc is no longer needed as far as I can see?
63410
63411 2003-07-16  Jim Meyering  <jim@meyering.net>
63412
63413         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
63414
63415 2003-07-15  Paul Eggert  <eggert@twinsun.com>
63416
63417         * config/srclist.txt: Get the following files from gettext-runtime/intl
63418         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
63419         ref-del.sin.  From Bruno Haible.
63420         * config/srclist-update (fixfile): Change grep pattern again, since the
63421         previous fix didn't work (there was another trailing $).  Use
63422         '[$]' to escape the $s.
63423
63424 2003-07-15  Karl Berry  <karl@gnu.org>
63425
63426         * lib/vasnprintf.c: update from gettext.
63427
63428 2003-07-15  Karl Berry  <karl@gnu.org>
63429
63430         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
63431         gets expanded when surrounded by '$'.
63432
63433 2003-07-15  Jim Meyering  <jim@meyering.net>
63434
63435         * modules/save-cwd: Don't depend on error.  From Derek Price.
63436
63437 2003-07-15  Jim Meyering  <jim@meyering.net>
63438
63439         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
63440
63441 2003-07-14  Simon Josefsson  <jas@extundo.com>
63442
63443         * modules/mempcpy: New file.
63444         * MODULES.html.sh (func_all_modules): Add mempcpy.
63445
63446 2003-07-14  Simon Josefsson  <jas@extundo.com>
63447
63448         * m4/mempcpy.m4: New file.
63449
63450 2003-07-14  Simon Josefsson  <jas@extundo.com>
63451
63452         * lib/mempcpy.h: New file.
63453         * lib/mempcpy.c: New file.
63454
63455 2003-07-14  Paul Eggert  <eggert@twinsun.com>
63456
63457         * modules/getdate, modules/posixtm: Depend on mktime.
63458
63459 2003-07-14  Paul Eggert  <eggert@twinsun.com>
63460
63461         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
63462         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
63463         unicodeio.c, unicodeio.h, unlocked-io.h:
63464         Switch from LGPL to GPL.
63465
63466 2003-07-14  Paul Eggert  <eggert@twinsun.com>
63467
63468         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
63469         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
63470         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
63471         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
63472         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
63473         updated automatically by ../config/srclist-update.  This changes
63474         their license from LPGL to GPL.
63475
63476 2003-07-14  Paul Eggert  <eggert@twinsun.com>
63477
63478         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
63479         assumed to refer to the root of the most recent stable gettext version.
63480         * config/srclistvars.sh: Add defaults for eggert.
63481         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
63482         Match "This program" as well as "The program".  This is needed
63483         for gettext.
63484
63485 2003-07-14  Jim Meyering  <jim@meyering.net>
63486
63487         Don't emit diagnostics.  Let callers do that.
63488         * lib/save-cwd.c: Don't include "error.h".
63489         (save_cwd): Don't call error.  Ensure that errno is valid
63490         when returning nonzero.
63491
63492         * lib/save-cwd.h (restore_cwd): Update prototype.
63493         * lib/save-cwd.c (restore_cwd): Remove two parameters.
63494         Simplify.  Don't call error upon failure.  Let callers do that.
63495         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
63496         when auditing is enabled.  But don't bother updating the #if.
63497
63498 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
63499
63500         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
63501         it breaks C++ compilation.
63502         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
63503
63504 2003-07-10  Simon Josefsson  <jas@extundo.com>
63505
63506         * modules/strchrnul (Makefile.am): Add strchrnul.h.
63507
63508 2003-07-10  Jim Meyering  <jim@meyering.net>
63509
63510         * m4/clock_time.m4: Remove trailing blank.
63511         * m4/intmax_t.m4: Likewise.
63512
63513 2003-07-10  Jim Meyering  <jim@meyering.net>
63514
63515         * lib/vasnprintf.c: Remove trailing blanks.
63516         Make cpp indentation consistent.
63517
63518 2003-07-09  Paul Eggert  <eggert@twinsun.com>
63519
63520         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
63521         posixver.c, strftime.c, strnlen.c, strverscmp.c:
63522         Switch from LGPL to GPL.
63523
63524 2003-07-09  Paul Eggert  <eggert@twinsun.com>
63525
63526         * config/srclist.txt: Sort sublists.  Add
63527         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
63528         that differ from gnulib for one reason or another; we'd like this list
63529         to be smaller but for now let's document what we have.
63530
63531 2003-07-08  Paul Eggert  <eggert@twinsun.com>
63532
63533         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
63534         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
63535         and sweeter "eval x=$x".
63536         * config/srclist.txt: Get lib/argp* from glibc.
63537
63538 2003-07-07  Paul Eggert  <eggert@twinsun.com>
63539
63540         * lib/mktime.c: Fix some boundary cases and remove need for floating
63541         point.
63542
63543         Issue a compile-time diagnostic if time_t is floating point, or if
63544         two's complement arithmetic is not in effect, or if arithmetic
63545         right shift does not propagate the sign.  These assumptions were
63546         all in the original code but they weren't checked.
63547
63548         (TIME_T_MIDPOINT, verify): New macros.
63549         (__isleap): Remove; it has integer overflow problems.
63550         (leapyear): New function, without those problems.
63551         (ydhms_tm_diff): Remove; splitting into two parts.
63552         (ydhms_diff): New function, containing the arithmetic part of
63553         the old ydhms_tm_diff function.  Issue a compile-time
63554         diagnostic if we are not using C99 integer division.
63555         Avoid casts when possible.
63556         (guess_time_tm): New function, containing the checking part of
63557         the old ydhms_tm_diff function.  Return the new value, rather than
63558         the difference between it and the old.  Accept a new argument T
63559         so that *T specifies the old value.  Check for overflow in the result.
63560
63561         (__mktime_internal): Use a time_t offset, not a long int offset.
63562         This undoes the 2003-06-04 change, which is no longer needed now
63563         that we have better overflow checking.
63564         (localtime_offset): Likewise.
63565
63566         (__mktime_internal): Avoid harmful overflow on hosts where time_t
63567         and long are 64-bit but int is only 32-bit.
63568         (ydhms_diff): Use long int to store year1 and yday1.
63569         Issue a compile-time diagnostic if long int is not wide enough.
63570
63571         (__mktime_internal): Use long int to store adjusted year and yday.
63572         Use plain C rather than preprocessor commands, if that doesn't
63573         affect efficiency.
63574         Check for overflow (and try to repair) after each probe
63575         rather than checking only at the very end.  This avoids some bugs
63576         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
63577         does not equal GMT offset at maximum time).
63578         Use integer to check for overflow rather than floating point; this
63579         is more portable to non-IEEE hosts, and is a tad faster.
63580         When we detect that we are oscillating between two values,
63581         don't check whether tm_isdst has the requested value, since
63582         we already know the answer.  When tm_isdst has the wrong value,
63583         use a different heuristic to find the right one, based on the
63584         extreme values actually observed in practice in tz2003a,
63585         rather than the (overly optimistic) "previous 3 calendar quarters".
63586
63587         (not_equal_tm, print_tm, check_result): Use "const T" rather than
63588         "T const" to accommodate glibc style.
63589         (check_result): Use less-confusing report format.  "long" -> "long int.
63590         (main): Likewise.
63591         Don't loop if the iteration overflows time_t.
63592         Allow a negative step in the iteration.
63593
63594 2003-07-06  Karl Berry  <karl@gnu.org>
63595
63596         * config/depcomp: update from automake.
63597         * config/config.sub: update from prep.
63598
63599 2003-07-03  Karl Berry  <karl@gnu.org>
63600
63601         * config/config.guess: update from prep.
63602
63603 2003-07-01  Paul Eggert  <eggert@twinsun.com>
63604
63605         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
63606         xreadlink.c now includes it unconditionally.
63607
63608 2003-07-01  Paul Eggert  <eggert@twinsun.com>
63609
63610         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
63611         having it depend on HAVE_SYS_TYPES_H.
63612
63613 2003-07-01  Bruno Haible  <bruno@clisp.org>
63614
63615         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
63616         <sys/types.h> should be sufficient.
63617         Reported by Paul Eggert.
63618
63619 2003-06-26  Karl Berry  <karl@gnu.org>
63620
63621         * config/depcomp: update from automake.
63622
63623 2003-06-26  Bruno Haible  <bruno@clisp.org>
63624
63625         * modules/human: Depend on module stdbool.
63626
63627 2003-06-25  Bruno Haible  <bruno@clisp.org>
63628
63629         * modules/readlink: New file.
63630         * modules/xreadlink: Depend on it.
63631         * MODULES.html.sh (func_all_modules): Add readlink.
63632
63633 2003-06-25  Bruno Haible  <bruno@clisp.org>
63634
63635         * m4/readlink.m4: New file.
63636
63637 2003-06-25  Bruno Haible  <bruno@clisp.org>
63638
63639         * lib/readlink.c: New file.
63640
63641 2003-06-22  Karl Berry  <karl@gnu.org>
63642
63643         * config/srclist.txt: update mkinstalldirs from automake.
63644         * config/mkinstalldirs: update.
63645
63646 2003-06-22  Bruno Haible  <bruno@clisp.org>
63647
63648         Portability to mingw32.
63649         * m4/ssize_t.m4: New file, from GNU gettext.
63650         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
63651         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
63652
63653 2003-06-22  Bruno Haible  <bruno@clisp.org>
63654
63655         * modules/safe-read: Add m4/ssize_t.m4.
63656         * modules/xreadlink: Add m4/ssize_t.m4.
63657
63658 2003-06-20  Bruno Haible  <bruno@clisp.org>
63659
63660         Assume C89, so PARAMS isn't needed.
63661         * lib/unicodeio.h (PARAMS): Remove.
63662         * lib/unicodeio.c: Don't use PARAMS.
63663
63664 2003-06-18  Karl Berry  <karl@gnu.org>
63665
63666         * config/config.{guess,sub}: update from prep.
63667
63668 2003-06-18  Jim Meyering  <jim@meyering.net>
63669
63670         Merge changes from coreutils.
63671         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
63672         Remove explicit declarations of xmalloc and realloc.
63673         Include xalloc.h.
63674         (read_utmp): Remove anachronistic cast of xmalloc.
63675
63676 2003-06-17  Paul Eggert  <eggert@twinsun.com>
63677
63678         Assume C89, so PARAMS isn't needed.
63679         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
63680         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
63681         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
63682         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
63683         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
63684         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
63685         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
63686         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
63687         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
63688         lib/xstrtod.h, lib/xstrtol.h: Likewise.
63689         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
63690         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
63691         no longer needed. Anyway, config.h should always be included before any
63692         other file.
63693
63694 2003-06-11  Simon Josefsson  <jas@extundo.com>
63695
63696         * modules/sysexits: New file.
63697         * MODULES.html.sh (func_all_modules): Add sysexits.
63698
63699 2003-06-11  Simon Josefsson  <jas@extundo.com>
63700
63701         * lib/sysexit_.h: New file.
63702
63703 2003-06-11  Derek Price  <derek@ximbiot.com>
63704
63705         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
63706         necessary.
63707
63708 2003-06-11  Bruno Haible  <bruno@clisp.org>
63709
63710         * m4/sysexits.m4: New file.
63711
63712 2003-06-10  Simon Josefsson  <jas@extundo.com>
63713
63714         * lib/argp.h: New file, from glibc.
63715         * lib/argp-ba.c: New file, from glibc.
63716         * lib/argp-eexst.c: New file, from glibc.
63717         * lib/argp-fmtstream.c: New file, from glibc.
63718         * lib/argp-fmtstream.h: New file, from glibc.
63719         * lib/argp-fs-xinl.c: New file, from glibc.
63720         * lib/argp-help.c: New file, from glibc.
63721         * lib/argp-namefrob.h: New file, from glibc.
63722         * lib/argp-parse.c: New file, from glibc.
63723         * lib/argp-pv.c: New file, from glibc.
63724         * lib/argp-pvh.c: New file, from glibc.
63725         * lib/argp-xinl.c: New file, from glibc.
63726
63727 2003-06-10  Simon Josefsson  <jas@extundo.com>
63728
63729         * modules/strchrnul: New file.
63730
63731 2003-06-10  Simon Josefsson  <jas@extundo.com>
63732
63733         * modules/argp: New file.
63734
63735 2003-06-10  Simon Josefsson  <jas@extundo.com>
63736
63737         * m4/strchrnul.m4: New file.
63738
63739 2003-06-10  Simon Josefsson  <jas@extundo.com>
63740
63741         * lib/strchrnul.h: New file.
63742         * lib/strchrnul.c: New file.
63743
63744 2003-06-10  Bruno Haible  <bruno@clisp.org>
63745
63746         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
63747
63748 2003-06-07  Karl Berry  <karl@gnu.org>
63749
63750         * config/config.{guess,sub}: update from prep.
63751
63752 2003-06-07  Jim Meyering  <jim@meyering.net>
63753
63754         * modules/strtod: Use $(...) notation, not @...@ for
63755         AC_REPLACE'd variables.
63756         * modules/localcharset: Likewise.
63757
63758 2003-06-07  Jim Meyering  <jim@meyering.net>
63759
63760         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
63761         in place of my name in the copyright comment.
63762         Remove definition and uses of __P.
63763
63764         From coreutils.
63765         * lib/stat.c: Don't declare xmalloc explicitly.
63766         Instead, include "xalloc.h".
63767         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
63768         xrealloc, and xcalloc return values.
63769         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
63770         Improve comment.
63771         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
63772
63773 2003-06-07  Bruno Haible  <bruno@clisp.org>
63774
63775         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
63776         avoid AC_CONFIG_LINKS.
63777         * modules/fnmatch (Makefile.am): Use explicit creation rule for
63778         fnmatch.h, to avoid AC_CONFIG_LINKS.
63779         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
63780
63781 2003-06-07  Bruno Haible  <bruno@clisp.org>
63782
63783         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
63784         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
63785         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
63786         directory.
63787         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
63788         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
63789         directory.
63790
63791 2003-06-06  Jim Meyering  <jim@meyering.net>
63792
63793         Merge from coreutils.
63794         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
63795         Consolidate declarations and initializations of *_base* locals.
63796
63797         Merge from coreutils.
63798         This avoids a core dump on systems without GNU putenv,
63799         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
63800         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
63801         (unsetenv): New static function, from GNU libc.
63802         (rpl_putenv): Use it.
63803
63804         * lib/modechange.c: Remove trailing blanks.
63805
63806         Merge from coreutils.
63807         * lib/fsusage.c: Remove declaration of statfs.
63808         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
63809
63810         * lib/posixtm.c: Include <stdbool.h> unconditionally.
63811
63812 2003-06-06  Jim Meyering  <jim@meyering.net>
63813
63814         * lib/stdbool_.h: Renamed from stdbool.h.in.
63815
63816 2003-06-06  Jim Meyering  <jim@meyering.net>
63817             Bruno Haible  <bruno@clisp.org>
63818
63819         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
63820         Adjust Makefile.am snippet not to redirect directly to target.
63821         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
63822
63823 2003-06-05  Paul Eggert  <eggert@twinsun.com>
63824
63825         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
63826         mismatch, look in future quarters as well as past.  This fixes a
63827         bug when processing fall-backwards gaps immediately after a long
63828         period of daylight-saving time.
63829
63830         * lib/mktime.c: Assume freestanding C89 or better.
63831         (HAVE_LIMITS_H): Remove.  Assume it's 1.
63832         (__P): Remove; not used.
63833         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
63834         (mktime, not_equal_tm, print_tm, check_result,
63835         main): Use prototypes.  Use const * where appropriate.
63836         (main): Fix typo in testing code that uncovered by above changes.
63837         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
63838
63839 2003-06-04  Paul Eggert  <eggert@twinsun.com>
63840
63841         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
63842         locale.h, localeconv.  This merges changes from coreutils.
63843
63844         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
63845         It can be removed after the next Autoconf is released.
63846         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
63847         needed.
63848
63849 2003-06-04  Paul Eggert  <eggert@twinsun.com>
63850
63851         * lib/mktime.c: Fix Debian bug 177940
63852         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
63853         (localtime_offset): Now long int, not time_t, because we want it
63854         to be guaranteed to be signed.  All uses changed.
63855         (__mktime_internal): If overflow would occur when adding offset,
63856         don't add it.
63857
63858         Merge 'human' changes from coreutils.  Rewrite to support
63859         locale-specific notations like thousands separators.
63860         * lib/human.c: Simplify authorship notice.
63861         Include human.h immediately after config.h.
63862         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
63863         <limits.h>: Do not include, since human.h does.
63864         (SIZE_MAX, UINTMAX_MAX): New macros.
63865         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
63866         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
63867         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
63868         (power_letter): Renamed from suffixes.
63869         (generate_suffix_backwards): Remove.
63870         (adjust_value): Now takes int style (because of human.h changes)
63871         and long double value (for greater precision on some platforms).
63872         (group_number): New function.
63873         (human_readable): Use it.  Use integer options, not enum.
63874         Put the options before the sizes in the arg list.
63875         Support all the new options.
63876         The old human_readable function has been removed;
63877         use inttostr.h instead.
63878         (human_readable, default_block_size, humblock):
63879         Use uintmax_t, not int, for block sizes.
63880         (human_readable_inexact, block_size_types): Remove.
63881         (block_size_opts): New constant.
63882         (human_options): Renamed from human_block_size, with new signature
63883         that allows block sizes up to UINTMAX_MAX.  All callers changed.
63884         * lib/human.h: Add copyright and authorship notice.
63885         Include <limits.h> and <stdbool.h> unconditionally.
63886         (PARAMS): Remove.  All uses removed.
63887         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
63888         (enum human_inexact_style): Remove tag; now a nameless enum.
63889         (human_floor, human_ceiling, human_round_to_even): Now have
63890         values 2, 0, 1 rather than -1, 1, 0.
63891         (human_group_digits, human_suppress_point_zero, human_autoscale,
63892         human_base_1024, human_SI, human_B): New constants.
63893         (human_readable_inexact, human_block_size): Remove.
63894         (human_readable): Size args are now uintmax_t, not int.
63895         (human_options): New decl.
63896
63897         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
63898         unnecessary now that we assume C89 or better.  This change
63899         imported from coreutils.
63900
63901         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
63902         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
63903         in the 2003-05-30 sync from glibc.
63904
63905         .h files should stand alone, but we shouldn't include <sys/types.h>
63906         if we can get away with just <stddef.h>.
63907
63908         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
63909         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
63910         rather than <sys/types.h>, as we merely need size_t.
63911         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
63912         to get size_t.
63913         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
63914         Include <stdio.h>, to get FILE.
63915         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
63916         memcasecmp.h has included <stddef.h> and all we need is size_t.
63917         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
63918         our interface, instead of including <sys/types.h>
63919
63920 2003-06-04  Paul Eggert  <eggert@twinsun.com>
63921
63922         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
63923         now, as glibc mktime is buggy on non-glibc systems.
63924
63925 2003-06-03  Karl Berry  <karl@gnu.org>
63926
63927         * config/config.sub: update from prep.
63928
63929 2003-06-02  Paul Eggert  <eggert@twinsun.com>
63930
63931         [from coreutils]
63932         Fix some minor time-related bugs with POSIX time arguments.
63933         Some valid time stamps were being rejected (notably -1, and
63934         time stamps before 1900 on 64-bit hosts).  And some invalid
63935         time stamps were being accepted, e.g. September 31.
63936
63937         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
63938         that we can return (time_t) -1 successfully.
63939         * lib/posixtm.c: Likewise.
63940         [HAVE_STDBOOL_H]: Include <stdbool.h>.
63941         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
63942         (t): Remove static var.
63943         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
63944         of static var.  All uses changed.
63945         (year): Do not reject years before 1900; they can occur with
63946         64-bit time_t.
63947         (posix_time_parse): Do not check for out-of-range components;
63948         that is now the caller's responsibility, since our checks were
63949         only approximations.
63950         (posixtime): Use mktime to check for out-of-range components,
63951         since it knows them exactly.
63952         If mktime returns (time_t) -1, check whether an error actually occurred
63953         by invoking localtime on -1.
63954         (main) [TEST_POSIXTIME]: Check for input data errors, and report
63955         posixtime failures better.
63956         Improve the test data (in comments only).
63957
63958 2003-06-02  Karl Berry  <karl@gnu.org>
63959
63960         * config/mkinstalldirs (version): new variable.
63961         (--version): new option.
63962         (usage): improve message.
63963
63964 2003-05-30  Karl Berry  <karl@gnu.org>
63965
63966         * lib/mktime.c: update from libc.
63967
63968 2003-05-30  Bruno Haible  <bruno@clisp.org>
63969
63970         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
63971         * config/config.rpath: Upgrade to gettext-0.12.1.
63972
63973 2003-05-30  Bruno Haible  <bruno@clisp.org>
63974
63975         * m4/gettext.m4: Upgrade to gettext-0.12.1.
63976         * m4/nls.m4: New file, from gettext-0.12.1.
63977         * m4/po.m4: New file, from gettext-0.12.1.
63978         * m4/progtest.m4: Upgrade to gettext-0.12.1.
63979
63980 2003-05-30  Bruno Haible  <bruno@clisp.org>
63981
63982         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
63983         * lib/localcharset.h: Likewise.
63984         * lib/localcharset.c: Likewise.
63985
63986 2003-05-29  Karl Berry  <karl@gnu.org>
63987
63988         * config/config.rpath: update from gettext.
63989
63990 2003-05-28  Paul Eggert  <eggert@twinsun.com>
63991
63992         Assume the headers required for C89 freestanding compilers.
63993         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
63994         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
63995         * m4/human.m4 (gl_HUMAN): Likewise.
63996         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
63997         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
63998         * m4/userspec.m4 (gl_USERSPEC): Likewise.
63999         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
64000         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
64001         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
64002
64003 2003-05-28  Paul Eggert  <eggert@twinsun.com>
64004
64005         Assume the headers required for C89 freestanding compilers.
64006         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
64007         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
64008         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
64009         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
64010         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
64011         define, since <limits.h> is guaranteed to do that.
64012         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
64013         * lib/exclude.c: Include <stdbool.h> unconditionally.
64014         * lib/tempname.c: Include <stddef.h> unconditionally.
64015         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
64016         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
64017         <stddef.h> does that.
64018         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
64019         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
64020         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
64021         needed.
64022         * lib/xstrtol.c: Likewise.
64023         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
64024         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
64025
64026         * lib/addext.c (addext): Use assignment rather than cast, to avoid
64027         warnings on some platforms.
64028
64029         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
64030         arbitrarily.
64031
64032 2003-05-26  Jim Meyering  <jim@meyering.net>
64033
64034         Merge in a change from coreutils:
64035         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
64036         that is guaranteed to be `no'.  Use `no_such_member' to indicate
64037         that condition, rather than `-1' which is slightly misleading.
64038         Change the name of the cache variable to have the gl_ prefix.
64039         Prompted by a patch from Richard Dawe for DJGPP.
64040
64041 2003-05-24  Karl Berry  <karl@gnu.org>
64042
64043         * config/config.guess: update from prep.
64044
64045 2003-05-22  Karl Berry  <karl@gnu.org>
64046
64047         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
64048
64049 2003-05-20  Karl Berry  <karl@gnu.org>
64050
64051         * config/config.guess: update from prep.
64052
64053 2003-05-18  Karl Berry  <karl@gnu.org>
64054
64055         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
64056         might actually be set by the user.
64057
64058         * config/depcomp, install-sh, mdate-sh: update from automake.
64059
64060 2003-05-17  Bruno Haible  <bruno@clisp.org>
64061
64062         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
64063         invalid expansion for AC_EGREP_CPP.
64064         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
64065         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
64066         Suggested by Akim Demaille <akim@epita.fr> in
64067         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
64068
64069 2003-05-12  Jim Meyering  <jim@meyering.net>
64070
64071         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
64072         the space-padded-by-default conversion specifiers, %e, %k, %l.
64073
64074 2003-05-12  Bruno Haible  <bruno@clisp.org>
64075
64076         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
64077         the string is longer than 4 KB.
64078
64079 2003-05-11  Karl Berry  <karl@gnu.org>
64080
64081         * config/config.{guess,sub}: update from prep.
64082
64083 2003-05-09  Bruno Haible  <bruno@clisp.org>
64084
64085         * modules/error: Add m4/strerror_r.m4 to file list.
64086
64087 2003-05-03  Bruno Haible  <bruno@clisp.org>
64088
64089         Upgrade to Unicode-4.0.
64090         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
64091         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
64092         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
64093         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
64094         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
64095         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
64096         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
64097         Change width of U+E0100..U+E01EF from 1 to 0.
64098
64099 2003-04-25  Jim Meyering  <jim@meyering.net>
64100
64101         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
64102         of type size_t, not int.
64103
64104 2003-04-25  Bruno Haible  <bruno@clisp.org>
64105
64106         * lib/copy-file.c: Include <stddef.h>, for size_t.
64107
64108 2003-04-21  Paul Eggert  <eggert@twinsun.com>
64109
64110         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
64111         code which expansion is under static control.  Patch imported from
64112         Akim Demaille's patch to Bison; see
64113         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
64114
64115 2003-04-14  Bruno Haible  <bruno@clisp.org>
64116
64117         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
64118
64119 2003-04-11  Jim Meyering  <jim@meyering.net>
64120
64121         Merge changes from Coreutils.
64122
64123         2003-03-22  Jim Meyering  <jim@meyering.net>
64124
64125         * lib/strftime.c (widen): Cast alloca return value to proper type.
64126
64127         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
64128
64129         From GNU libc.
64130         * lib/strftime.c (my_strftime): Handle very large width
64131         specifications for numeric values correctly.  Improve checks for
64132         overflow.
64133
64134         2003-01-19  Jim Meyering  <jim@meyering.net>
64135
64136         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
64137         definitions.
64138         (nl_get_alt_digit) [! defined my_strftime]: Define.
64139         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
64140         _nl_get_alt_digit and _nl_get_walt_digit.
64141
64142         * lib/strftime.c (my_strftime): Merge in locale-related changes from
64143         libc. These changes have no effect outside of _LIBC.
64144
64145 2003-04-10  Bruno Haible  <bruno@clisp.org>
64146
64147         * modules/findprog: New file.
64148         * MODULES.html.sh (func_all_modules): Add it.
64149
64150 2003-04-10  Bruno Haible  <bruno@clisp.org>
64151
64152         * m4/findprog.m4: New file.
64153         * m4/eaccess.m4: New file.
64154
64155 2003-04-10  Bruno Haible  <bruno@clisp.org>
64156
64157         * lib/findprog.h: New file, from GNU gettext.
64158         * lib/findprog.c: New file, from GNU gettext.
64159
64160 2003-04-05  Jim Meyering  <jim@meyering.net>
64161
64162         Merge changes from Coreutils.
64163
64164         * lib/exclude.h (PARAMS): Remove definition and uses.
64165         * lib/exclude.c: Remove uses of `PARAMS'.
64166
64167         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
64168         Add test-cases for DOS filenames. Declare program_name.
64169         (main): Set up program_name.  Patch by Rich Dawe.
64170
64171         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
64172         error from mntctl.
64173         Use mntctl's return value to drive the entry-processing loop, since
64174         we can't rely on the value of the vmt_length member in the last
64175         entry.  On some systems doing so could result in exhausting
64176         virtual memory.  Based in part on a patch from Mike Jetzer.
64177
64178 2003-04-04  Bruno Haible  <bruno@clisp.org>
64179
64180         * modules/linebreak: New file.
64181         * MODULES.html.sh (func_all_modules): Add it.
64182
64183 2003-04-04  Bruno Haible  <bruno@clisp.org>
64184
64185         * m4/linebreak.m4: New file.
64186
64187 2003-04-04  Bruno Haible  <bruno@clisp.org>
64188
64189         * lib/linebreak.h: New file, from GNU gettext.
64190         * lib/linebreak.c: New file, from GNU gettext with slight
64191         modifications.
64192         * lib/lbrkprop.h: New file, from GNU gettext.
64193
64194 2003-04-03  Bruno Haible  <bruno@clisp.org>
64195
64196         * modules/utf8-ucs4: New file.
64197         * modules/utf16-ucs4: New file.
64198         * modules/ucs4-utf8: New file.
64199         * modules/ucs4-utf16: New file.
64200         * MODULES.html.sh (func_all_modules): Add them.
64201
64202 2003-04-03  Bruno Haible  <bruno@clisp.org>
64203
64204         * m4/utf-ucs4.m4: New file.
64205         * m4/ucs4-utf.m4: New file.
64206
64207 2003-04-03  Bruno Haible  <bruno@clisp.org>
64208
64209         * lib/utf8-ucs4.h: New file, from GNU gettext.
64210         * lib/utf16-ucs4.h: New file, from GNU gettext.
64211         * lib/ucs4-utf8.h: New file, from GNU gettext.
64212         * lib/ucs4-utf16.h: New file, from GNU gettext.
64213
64214 2003-04-02  Bruno Haible  <bruno@clisp.org>
64215
64216         * modules/binary-io: New file.
64217         * MODULES.html.sh (func_all_modules): Add it.
64218
64219 2003-04-02  Bruno Haible  <bruno@clisp.org>
64220
64221         * lib/binary-io.h: New file, from GNU gettext.
64222
64223 2003-04-01  Bruno Haible  <bruno@clisp.org>
64224
64225         * modules/pathname: New file.
64226         * MODULES.html.sh (func_all_modules): Add it.
64227
64228 2003-04-01  Bruno Haible  <bruno@clisp.org>
64229
64230         * lib/pathname.h: New file, from GNU gettext.
64231         * lib/concatpath.c: New file, from GNU gettext.
64232
64233 2003-03-30  Bruno Haible  <bruno@clisp.org>
64234
64235         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
64236
64237 2003-03-30  Bruno Haible  <bruno@clisp.org>
64238
64239         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
64240         function chown() doesn't exist.
64241
64242 2003-03-28  Bruno Haible  <bruno@clisp.org>
64243
64244         * modules/copy-file: New file.
64245         * MODULES.html.sh (func_all_modules): Add it.
64246
64247 2003-03-28  Bruno Haible  <bruno@clisp.org>
64248
64249         * m4/copy-file.m4: New file.
64250
64251 2003-03-28  Bruno Haible  <bruno@clisp.org>
64252
64253         * lib/copy-file.h: New file, from GNU gettext.
64254         * lib/copy-file.c: New file, from GNU gettext.
64255
64256 2003-03-18  Jim Meyering  <jim@meyering.net>
64257
64258         * lib/quote.c (quote_n): Fix typo in comment.
64259
64260 2003-03-18  Bruno Haible  <bruno@clisp.org>
64261
64262         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
64263         checking.
64264         * m4/onceonly_2_57.m4: Likewise.
64265
64266 2003-03-17  Bruno Haible  <bruno@clisp.org>
64267
64268         * m4/onceonly.m4: Require autoconf 2.54 or newer.
64269         (m4_quote): Remove macro.
64270         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
64271
64272 2003-03-14  Jim Meyering  <jim@meyering.net>
64273
64274         Merge changes from Coreutils.
64275         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
64276         to be const, in order to avoid warnings.
64277         (obstack_room): Likewise.
64278         (obstack_empty_p): Likewise.
64279
64280 2003-03-14  Bruno Haible  <bruno@clisp.org>
64281
64282         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
64283         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
64284
64285 2003-03-13  Paul Eggert  <eggert@twinsun.com>
64286
64287         Merge changes from Bison.
64288         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
64289         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
64290         when compiling Bison 1.875's `bitset bset = obstack_alloc
64291         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
64292         * lib/hash.c: Include <stdbool.h> unconditionally.
64293
64294 2003-03-13  Paul Eggert  <eggert@twinsun.com>
64295
64296         * m4/onceonly.m4 (m4_quote): New macro.
64297         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
64298         Quote AC_FOREACH variable-expansions properly.
64299
64300 2003-03-13  Paul Eggert  <eggert@twinsun.com>
64301
64302         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
64303
64304 2003-03-09  Paul Eggert  <eggert@twinsun.com>
64305
64306         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
64307         Reported by Bruce Becker; see:
64308         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
64309
64310 2003-03-03  Paul Eggert  <eggert@twinsun.com>
64311             Bruno Haible  <bruno@clisp.org>
64312
64313         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
64314         Reported by John Hughes, see
64315         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
64316
64317 2003-02-20  Bruno Haible  <bruno@clisp.org>
64318
64319         * MODULES.html.sh (func_all_modules): Add poll.
64320
64321 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
64322
64323         * modules/poll: New file.
64324
64325 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
64326
64327         * lib/poll_.h: New file.
64328         * lib/poll.c: New file.
64329
64330 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
64331
64332         * m4/poll.m4: New file.
64333
64334 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
64335
64336         * modules/mathl: New file.
64337
64338 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
64339
64340         * lib/mathl.h: New file.
64341         * lib/acosl.c: New file.
64342         * lib/asinl.c: New file.
64343         * lib/atanl.c: New file.
64344         * lib/ceill.c: New file.
64345         * lib/cosl.c: New file.
64346         * lib/expl.c: New file.
64347         * lib/floorl.c: New file.
64348         * lib/frexpl.c: New file.
64349         * lib/ldexpl.c: New file.
64350         * lib/logl.c: New file.
64351         * lib/sincosl.c: New file.
64352         * lib/sinl.c: New file.
64353         * lib/sqrtl.c: New file.
64354         * lib/tanl.c: New file.
64355         * lib/trigl.c: New file.
64356         * lib/trigl.h: New file.
64357
64358 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
64359
64360         * m4/mathl.m4: New file.
64361
64362 2003-02-18  Bruno Haible  <bruno@clisp.org>
64363
64364         * MODULES.html.sh (func_all_modules): Add mathl.
64365
64366 2003-02-17  Bruno Haible  <bruno@clisp.org>
64367
64368         * modules/mkdtemp: New module.
64369         * MODULES.html.sh (func_all_modules): Add it.
64370
64371 2003-02-17  Bruno Haible  <bruno@clisp.org>
64372
64373         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
64374
64375 2003-02-17  Bruno Haible  <bruno@clisp.org>
64376
64377         * lib/mkdtemp.h: New file, from GNU gettext.
64378         * lib/mkdtemp.c: New file, from GNU gettext.
64379
64380 2003-02-02  Jim Meyering  <jim@meyering.net>
64381
64382         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
64383         e.g. glibc-2.2.93.
64384
64385 2003-01-31  Bruno Haible  <bruno@clisp.org>
64386
64387         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
64388         'rpl_rename'.
64389         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
64390         'rpl_strnlen'.
64391         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
64392         'rpl_strtod'.
64393         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
64394         'rpl_utime'.
64395
64396 2003-01-31  Bruno Haible  <bruno@clisp.org>
64397
64398         * lib/rename.c: #undef rename before defining rpl_rename.
64399         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
64400
64401 2003-01-30  Bruno Haible  <bruno@clisp.org>
64402
64403         * modules/vasnprintf, modules/vasprintf: New modules.
64404         * MODULES.html.sh (func_all_modules): Add them.
64405
64406 2003-01-30  Bruno Haible  <bruno@clisp.org>
64407
64408         * m4/signed.m4: New file, from GNU gettext.
64409         * m4/longdouble.m4: New file, from GNU gettext.
64410         * m4/wchar_t.m4: New file, from GNU gettext.
64411         * m4/wint_t.m4: New file, from GNU gettext.
64412         * m4/vasnprintf.m4: New file.
64413         * m4/vasprintf.m4: New file.
64414
64415 2003-01-30  Bruno Haible  <bruno@clisp.org>
64416
64417         * lib/printf-args.h: New file, from GNU gettext.
64418         * lib/printf-args.c: New file, from GNU gettext.
64419         * lib/printf-parse.h: New file, from GNU gettext.
64420         * lib/printf-parse.c: New file, from GNU gettext.
64421         * lib/vasnprintf.h: New file, from GNU gettext.
64422         * lib/vasnprintf.c: New file, from GNU gettext.
64423         * lib/asnprintf.c: New file, from GNU gettext.
64424         * lib/vasprintf.h: New file, from GNU gettext with modifications.
64425         * lib/vasprintf.c: New file, from GNU gettext.
64426         * lib/asprintf.c: New file, from GNU gettext.
64427
64428 2003-01-29  Bruno Haible  <bruno@clisp.org>
64429
64430         * modules/stpncpy: New module.
64431         * MODULES.html.sh (func_all_modules): Add it.
64432
64433 2003-01-29  Bruno Haible  <bruno@clisp.org>
64434
64435         * m4/stpncpy.m4: New file.
64436
64437 2003-01-29  Bruno Haible  <bruno@clisp.org>
64438
64439         * lib/stpncpy.h: New file, from GNU gettext with modifications.
64440         * lib/stpncpy.c: New file, from GNU gettext with modifications.
64441
64442 2003-01-28  Bruno Haible  <bruno@clisp.org>
64443
64444         * modules/c-ctype: New module.
64445         * MODULES.html.sh (func_all_modules): Add it.
64446
64447 2003-01-28  Bruno Haible  <bruno@clisp.org>
64448
64449         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
64450         Paul Eggert.
64451         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
64452         Paul Eggert.
64453
64454 2003-01-27  Bruno Haible  <bruno@clisp.org>
64455
64456         * modules/xsetenv: New module.
64457         * MODULES.html.sh (func_all_modules): Add it.
64458
64459 2003-01-27  Bruno Haible  <bruno@clisp.org>
64460
64461         * lib/xsetenv.h: New file, from GNU gettext.
64462         * lib/xsetenv.c: New file, from GNU gettext.
64463
64464 2003-01-23  Jim Meyering  <jim@meyering.net>
64465
64466         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
64467         from working on systems without dirfd (at least Irix and OSF1/Tru64).
64468
64469 2003-01-23  Bruno Haible  <bruno@clisp.org>
64470
64471         * modules/minmax: New module.
64472         * MODULES.html.sh (func_all_modules): Add it.
64473
64474 2003-01-23  Bruno Haible  <bruno@clisp.org>
64475
64476         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
64477         Eggert.
64478
64479 2003-01-22  Bruno Haible  <bruno@clisp.org>
64480
64481         * modules/exit: New module.
64482         * MODULES.html.sh (func_all_modules): Add it.
64483
64484 2003-01-22  Bruno Haible  <bruno@clisp.org>
64485
64486         * lib/exit.h: New file, from GNU gettext.
64487
64488 2003-01-19  Bruno Haible  <bruno@clisp.org>
64489
64490         * gnulib-tool: Recognize option --extract-maintainer.
64491         (func_get_maintainer): New function.
64492         * modules/*: Add Maintainer entry.
64493
64494 2003-01-16  Jim Meyering  <jim@meyering.net>
64495
64496         * m4/regex.m4: The `regex' struct is both input and output.
64497         Initialize it before each use.  Patch by Tim Waugh.
64498
64499 2003-01-16  Bruno Haible  <bruno@clisp.org>
64500
64501         * MODULES.html.sh: Add a table of contents. Add the module name as
64502         leftmost column. Add hyperlinks.
64503
64504 2003-01-15  Bruno Haible  <bruno@clisp.org>
64505
64506         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
64507
64508 2003-01-15  Bruno Haible  <bruno@clisp.org>
64509
64510         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
64511         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
64512         suffix.
64513
64514 2003-01-15  Bruno Haible  <bruno@clisp.org>
64515
64516         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
64517
64518 2003-01-15  Bruno Haible  <bruno@clisp.org>
64519
64520         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
64521         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
64522
64523 2003-01-14  Jim Meyering  <jim@meyering.net>
64524
64525         * lib/same.c (same_name): Tweak a comment.
64526
64527 2003-01-14  Bruno Haible  <bruno@clisp.org>
64528
64529         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
64530         when a string comparison is sufficient.
64531
64532 2003-01-14  Bruno Haible  <bruno@clisp.org>
64533
64534         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
64535         'unsigned int'.
64536
64537 2003-01-14  Bruno Haible  <bruno@clisp.org>
64538
64539         * lib/hash-pjw.c: Add comment about low quality of this function.
64540
64541 2003-01-13  Bruno Haible  <bruno@clisp.org>
64542
64543         * modules/stpcpy: Distribute lib/stpcpy.h.
64544         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
64545
64546 2003-01-13  Bruno Haible  <bruno@clisp.org>
64547
64548         * modules/*: Add a description.
64549         * modules/strpbrk: Fix Makefile.am snippet.
64550         * modules/strtoimax: Fix dependencies.
64551         * modules/strtoumax: Likewise.
64552
64553 2003-01-13  Bruno Haible  <bruno@clisp.org>
64554
64555         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
64556         * modules/alloca (Makefile.am): All object files depend on alloca.h.
64557         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
64558
64559 2003-01-13  Bruno Haible  <bruno@clisp.org>
64560
64561         * gnulib-tool (func_create_testdir): Store config/* files in the main
64562         directory.
64563         * config.rpath: Move to ...
64564         * config/config.rpath: ... here.
64565         * modules/gettext: Contains config/config.rpath, not config.rpath.
64566         * modules/iconv: Likewise.
64567
64568 2003-01-12  Paul Eggert  <eggert@twinsun.com>
64569
64570         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
64571         to avoid collisions with libcurses and libreadline.
64572
64573         * m4/getstr.m4: Remove.
64574         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
64575
64576 2003-01-12  Paul Eggert  <eggert@twinsun.com>
64577
64578         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
64579         to avoid collisions with libcurses and libreadline.
64580
64581         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
64582         * lib/getstr.h, getstr.c: Remove.
64583         * lib/getline.c: Include "getline.h", to check interface.
64584         Move body of old getstr.c here: this defines MIN_CHUNK and
64585         declares getdelim2, which is renamed from getstr.
64586         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
64587
64588         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
64589         All uses changed.
64590         * lib/linebuffer.h: Likewise.
64591         (readline): Remove backward-compatibility macro.
64592
64593 2003-01-12  Paul Eggert  <eggert@twinsun.com>
64594
64595         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
64596         to avoid collisions with libcurses and libreadline.
64597         * getstr: Remove.
64598         * MODULES.html.sh: Remove getstr.
64599         * modules/getline: Depend on unlocked-io, not getstr.
64600
64601 2003-01-12  Jim Meyering  <jim@meyering.net>
64602
64603         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
64604
64605 2003-01-10  Bruno Haible  <bruno@clisp.org>
64606
64607         * modules/alloca: Change Makefile.am requirements. Simplify Include
64608         requirements. Add lib/alloca_.h to file list.
64609
64610 2003-01-10  Bruno Haible  <bruno@clisp.org>
64611
64612         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
64613
64614 2003-01-10  Bruno Haible  <bruno@clisp.org>
64615
64616         * lib/alloca_.h: New file.
64617         * lib/getdate.y: Unconditionally include alloca.h.
64618         * lib/makepath.c: Likewise.
64619         * lib/setenv.c: Likewise.
64620         * lib/userspec.c: Likewise.
64621
64622 2003-01-09  Karl Berry  <karl@gnu.org>
64623
64624         * MODULES.html.sh: include `dirname $0` in PATH, to find
64625         gnulib-tool.
64626
64627 2003-01-09  Bruno Haible  <bruno@clisp.org>
64628
64629         * modules/stdbool: Change configure.ac, Makefile.am requirements.
64630         Simplify Include requirements. Add lib/stdbool.h.in to file list.
64631
64632 2003-01-09  Bruno Haible  <bruno@clisp.org>
64633
64634         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
64635
64636 2003-01-09  Bruno Haible  <bruno@clisp.org>
64637
64638         * lib/stdbool.h.in: New file.
64639
64640 2003-01-09  Bruno Haible  <bruno@clisp.org>
64641
64642         * gnulib-tool (func_all_modules): Ignore files ending in ~.
64643         * MODULES.html.sh: Likewise.
64644
64645 2003-01-08  Jim Meyering  <jim@meyering.net>
64646
64647         * lib/full-write.c: Undefine and define-away `const' after inclusion
64648         of errno.h, not before.  Suggestion from Bruno Haible.
64649
64650 2003-01-08  Bruno Haible  <bruno@clisp.org>
64651
64652         * modules/full-read: Depend on full-write.
64653
64654 2003-01-08  Bruno Haible  <bruno@clisp.org>
64655
64656         * lib/safe-read.c: Include specification header first, to ensure its
64657         selfcontainedness.
64658         * lib/full-write.c: Likewise.
64659
64660 2003-01-07  Jim Meyering  <jim@meyering.net>
64661
64662         * lib/full-write.c: Rework so that it may serve to define full_read,
64663         too.
64664         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
64665
64666 2003-01-07  Bruno Haible  <bruno@clisp.org>
64667
64668         * lib/strtoimax.c: Include <stdint.h> as an alternative to
64669         <inttypes.h>.
64670         * lib/xstrtol.h: Likewise.
64671         * lib/xstrtoimax.c: Likewise.
64672         * lib/xstrtoumax.c: Likewise.
64673         * lib/human.h: Likewise.
64674
64675         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
64676         on systems that have <inttypes.h> but not <stdint.h>.
64677
64678 2003-01-07  Bruno Haible  <bruno@clisp.org>
64679
64680         * MODULES.html.sh: Add copyright notice.
64681         (missed_files): Omit CVS directory entries.
64682         (func_module): Make it work with sed-3.02.
64683         * MODULES.txt: Remove file.
64684
64685 2003-01-06  Jim Meyering  <jim@meyering.net>
64686
64687         * lib/version-etc.c: Update year in translatable copyright string.
64688
64689 2003-01-03  Karl Berry  <karl@gnu.org>
64690
64691         * config/config.{guess,sub}: update from prep.
64692
64693 2003-01-02  Karl Berry  <karl@gnu.org>
64694
64695         * doc/COPYING.DOC: belatedly updated to 1.2.
64696
64697 2003-01-01  Karl Berry  <karl@gnu.org>
64698
64699         * gnulib-tool (func_verify_module): report module name $module in
64700         error message, not $1.
64701         * gnulib-tool (create-testdir): don't complain if destdir couldn't
64702         be created, only if it doesn't exist.
64703         * gnulib-tool (last_checkin_date): don't expand the $Date here.
64704
64705 2002-12-31  Paul Eggert  <eggert@twinsun.com>
64706
64707         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
64708
64709 2002-12-31  Paul Eggert  <eggert@twinsun.com>
64710
64711         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
64712         memcmp if strcoll doesn't work.
64713
64714 2002-12-31  Bruno Haible  <bruno@clisp.org>
64715
64716         * lib/utime.c (utime_null): No need to call ftruncate if the file was
64717         nonempty.
64718
64719 2002-12-31  Bruno Haible  <bruno@clisp.org>
64720
64721         * lib/memcoll.c (STRCOLL): New macro.
64722         (memcoll): Use it.
64723
64724 2002-12-31  Bruno Haible  <bruno@clisp.org>
64725
64726         * lib/localcharset.h: New file.
64727         * lib/localcharset.c: Include it.
64728         * lib/unicodeio.c: Likewise.
64729
64730 2002-12-31  Bruno Haible  <bruno@clisp.org>
64731
64732         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
64733         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
64734
64735 2002-12-31  Bruno Haible  <bruno@clisp.org>
64736
64737         * lib/getline.h: Include <stddef.h>, for size_t.
64738
64739         * lib/unicodeio.h: Include <stddef.h>, for size_t.
64740         * lib/unicodeio.c: Don't include <stddef.h>.
64741
64742 2002-12-31  Bruno Haible  <bruno@clisp.org>
64743
64744         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
64745         HAVE_TM_ZONE.
64746
64747 2002-12-24  Karl Berry  <karl@gnu.org>
64748
64749         * config/config.guess: update from prep.
64750
64751 2002-12-24  Bruno Haible  <bruno@clisp.org>
64752
64753         General infrasructure.
64754         * m4/README: Rewritten.
64755         * m4/onceonly.m4: New file.
64756         * m4/onceonly_2_57.m4: New file.
64757
64758         Module atexit.
64759         * m4/atexit.m4: New file.
64760
64761         Module strtod.
64762         * m4/strtod.m4: New file.
64763
64764         Module strtol.
64765         * m4/strtol.m4: New file.
64766
64767         Module strtoul.
64768         * m4/strtoul.m4: New file.
64769
64770         Module memchr.
64771         * m4/memchr.m4: New file.
64772
64773         Module memcmp.
64774         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
64775         (jm_FUNC_MEMCMP): Invoke it.
64776
64777         Module memcpy.
64778         * m4/memcpy.m4: New file.
64779
64780         Module memmove.
64781         * m4/memmove.m4: New file.
64782
64783         Module memset.
64784         * m4/memset.m4: New file.
64785
64786         Module strcspn.
64787         * m4/strcspn.m4: New file.
64788
64789         Module strpbrk.
64790         * m4/strpbrk.m4: New file.
64791
64792         Module strstr.
64793         * m4/strstr.m4: New file.
64794
64795         Module strerror.
64796         * m4/strerror.m4: New file.
64797
64798         Module mktime.
64799         * m4/mktime.m4: Renamed from jm-mktime.m4.
64800         (gl_PREREQ_MKTIME): New macro.
64801         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
64802
64803         Module malloc.
64804         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
64805         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
64806         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
64807
64808         Module realloc.
64809         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
64810         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
64811         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
64812
64813         Module strftime.
64814         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
64815         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
64816         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
64817         gl_TM_GMTOFF.
64818         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
64819
64820         Module xalloc.
64821         * m4/xalloc.m4: New file.
64822
64823         Module alloca.
64824         * m4/alloca.m4: New file.
64825
64826         Module putenv.
64827         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
64828         (jm_FUNC_PUTENV): Invoke it.
64829
64830         Module setenv.
64831         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
64832         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
64833         when invoked twice.
64834         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
64835         gt_FUNC_SETENV.
64836
64837         Module memrchr.
64838         * m4/memrchr.m4: New file.
64839
64840         Module stpcpy.
64841         * m4/stpcpy.m4: New file.
64842
64843         Module strcase.
64844         * m4/strcase.m4: New file.
64845
64846         Module strdup.
64847         * m4/strdup.m4: New file.
64848
64849         Module strnlen.
64850         * m4/strnlen.m4: New file.
64851
64852         Module strndup.
64853         * m4/strndup.m4: New file.
64854
64855         Module xstrtod.
64856         * m4/xstrtod.m4: New file.
64857
64858         Module xstrtol.
64859         * m4/xstrtol.m4: New file.
64860
64861         Module getdate.
64862         * m4/getdate.m4: New file.
64863
64864         Module unlocked-io.
64865         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
64866         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
64867         * m4/jm-glibc-io.m4n: Remove file.
64868
64869         Module long-options.
64870         * m4/long-options.m4: New file.
64871
64872         Module md5.
64873         * m4/md5.m4: New file.
64874
64875         Module sha.
64876         * m4/sha.m4: New file.
64877
64878         Module getstr.
64879         * m4/getstr.m4: New file.
64880
64881         Module getline.
64882         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
64883         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
64884         <sys/types.h>, for size_t. Use the function name gnu_getline, not
64885         simply getline. Infoke gl_PREREQ_GETLINE.
64886
64887         Module obstack.
64888         * m4/obstack.m4: New file.
64889
64890         Module hash.
64891         * m4/hash.m4: New file.
64892
64893         Module readtokens.
64894         * m4/readtokens.m4: New file.
64895
64896         Module strverscmp.
64897         * m4/strverscmp.m4: New file.
64898
64899         Module stdbool.
64900         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
64901         OSF/1.
64902
64903         Module strtoll.
64904         * m4/strtoll.m4: New file.
64905
64906         Module strtoull.
64907         * m4/strtoull.m4: New file.
64908
64909         Module strtoimax.
64910         * m4/strtoimax.m4: New file.
64911
64912         Module strtoumax.
64913         * m4/strtoumax.m4: New file.
64914
64915         Module xstrtoimax.
64916         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
64917         jm_AC_PREREQ_XSTRTOIMAX.
64918         Moved the strtol prerequisites to strtol.m4.
64919         Moved the strtoll prerequisites to strtoll.m4.
64920         Moved the strtoimax prerequisites to strtoimax.m4.
64921
64922         Module xstrtoumax.
64923         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
64924         jm_AC_PREREQ_XSTRTOUMAX.
64925         Moved the strtoul prerequisites to strtoul.m4.
64926         Moved the strtoull prerequisites to strtoull.m4.
64927         Moved the strtoumax prerequisites to strtoumax.m4.
64928
64929         Module chown.
64930         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
64931         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
64932
64933         Module dup2.
64934         * m4/dup2.m4: New file.
64935
64936         Module ftruncate.
64937         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
64938         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
64939
64940         Module getgroups.
64941         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
64942         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
64943
64944         Module gettimeofday.
64945         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
64946         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
64947         gl_PREREQ_GETTIMEOFDAY.
64948
64949         Module mkdir.
64950         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
64951         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
64952
64953         Module mkstemp.
64954         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
64955         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
64956         jm_AC_TYPE_UINTMAX_T.
64957         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
64958
64959         Module stat.
64960         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
64961         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
64962
64963         Module lstat.
64964         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
64965         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
64966
64967         Module timespec.
64968         * m4/timespec.m4 (gl_TIMESPEC): New macro.
64969         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
64970         * m4/st_mtim.m4: Indentation.
64971
64972         Module nanosleep.
64973         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
64974         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
64975         gl_PREREQ_NANOSLEEP.
64976
64977         Module regex.
64978         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
64979         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
64980         (gl_REGEX): New macro.
64981
64982         Module rename.
64983         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
64984         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
64985
64986         Module rmdir.
64987         * m4/rmdir.m4: New file.
64988
64989         Module utime.
64990         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
64991         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
64992         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
64993
64994         Module dirname.
64995         * m4/dirname.m4: New file.
64996
64997         Module getopt.
64998         * m4/getopt.m4: New file.
64999
65000         Module unistd-safer.
65001         * m4/unistd-safer.m4: New file.
65002
65003         Module fnmatch.
65004         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
65005         declaration.
65006         (gl_PREREQ_FNMATCH_EXTRA): New macro.
65007         (gl_FUNC_FNMATCH_POSIX): New macro.
65008         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
65009         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
65010         simply fnmatch.
65011
65012         Module exclude.
65013         * m4/exclude.m4: New file.
65014
65015         Module human.
65016         * m4/human.m4: New file.
65017
65018         Module acl.
65019         * m4/acl.m4: Nop.
65020
65021         Module backupfile.
65022         * m4/backupfile.m4: New file.
65023         * m4/d-ino.m4: Indentation.
65024
65025         Module fsusage.
65026         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
65027         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
65028         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
65029
65030         Module dirfd.
65031         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
65032         requirements.
65033
65034         Module euidaccess.
65035         * m4/euidaccess.m4: New file.
65036
65037         Module file-type.
65038         * m4/file-type.m4: New file.
65039
65040         Module fileblocks.
65041         * m4/fileblocks.m4: New file.
65042
65043         Module filemode.
65044         * m4/filemode.m4: New file.
65045
65046         Module isdir.
65047         * m4/isdir.m4: New file.
65048
65049         Module lchown.
65050         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
65051         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
65052
65053         Module makepath.
65054         * m4/makepath.m4: New file.
65055
65056         Module modechange.
65057         * m4/modechange.m4: New file.
65058
65059         Module mountlist.
65060         * m4/mountlist.m4: New file.
65061         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
65062         Indentation.
65063
65064         Module path-concat.
65065         * m4/path-concat.m4: New file.
65066
65067         Module pathmax.
65068         * m4/pathmax.m4: New file.
65069
65070         Module same.
65071         * m4/same.m4: New file.
65072
65073         Module save-cwd.
65074         * m4/save-cwd.m4: New file.
65075
65076         Module savedir.
65077         * m4/savedir.m4: New file.
65078
65079         Module xgetcwd.
65080         * m4/xgetcwd.m4: New file.
65081         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
65082
65083         Module xreadlink.
65084         * m4/xreadlink.m4: New file.
65085
65086         Module safe-read.
65087         * m4/safe-read.m4: New file.
65088
65089         Module safe-write.
65090         * m4/safe-write.m4: New file.
65091
65092         Module closeout.
65093         * m4/closeout.m4: New file.
65094
65095         Module stdio-safer.
65096         * m4/stdio-safer.m4: New file.
65097
65098         Module getpass.
65099         * m4/getpass.m4: New file.
65100
65101         Module getugroups.
65102         * m4/getugroups.m4: New file.
65103
65104         Module group-member.
65105         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
65106         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
65107
65108         Module idcache.
65109         * m4/idcache.m4: New file.
65110
65111         Module userspec.
65112         * m4/userspec.m4: New file.
65113
65114         Module gettime.
65115         * m4/clock_time.m4: New file.
65116         * m4/gettime.m4: New file.
65117
65118         Module settime.
65119         * m4/settime.m4: New file.
65120
65121         Module posixtm.
65122         * m4/posixtm.m4: New file.
65123
65124         Module gethostname.
65125         * m4/gethostname.m4: New file.
65126
65127         Module canon-host.
65128         * m4/canon-host.m4: New file.
65129
65130         Module gettext.
65131         * m4/codeset.m4: New file, from gettext-0.11.5.
65132         * m4/gettext.m4: New file, from gettext-0.11.5.
65133         * m4/glibc21.m4: New file, from gettext-0.11.5.
65134         * m4/iconv.m4: New file, from gettext-0.11.5.
65135         * m4/intdiv0.m4: New file, from gettext-0.11.5.
65136         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
65137         * m4/inttypes.m4: New file, from gettext-0.11.5.
65138         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
65139         * m4/isc-posix.m4: New file, from gettext-0.11.5.
65140         * m4/lcmessage.m4: New file, from gettext-0.11.5.
65141         * m4/lib-ld.m4: New file, from gettext-0.11.5.
65142         * m4/lib-link.m4: New file, from gettext-0.11.5.
65143         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
65144         * m4/progtest.m4: New file, from gettext-0.11.5.
65145         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
65146         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
65147         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
65148
65149         Module localcharset.
65150         * m4/localcharset.m4: New file.
65151
65152         Module hard-locale.
65153         * m4/hard-locale.m4: New file.
65154
65155         Module mbswidth.
65156         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
65157         onceonly macros.
65158         * m4/mbrtowc.m4: Add comment.
65159
65160         Module memcasecmp.
65161         * m4/memcasecmp.m4: New file.
65162
65163         Module memcoll.
65164         * m4/memcoll.m4: New file.
65165
65166         Module unicodeio.
65167         * m4/unicodeio.m4: New file.
65168
65169         Module rpmatch.
65170         * m4/rpmatch.m4: New file.
65171
65172         Module yesno.
65173         * m4/yesno.m4: New file.
65174
65175         Module exitfail.
65176         * m4/exitfail.m4: New file.
65177
65178         Module c-stack.
65179         * m4/c-stack.m4 (gl_C_STACK): New macro.
65180         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
65181
65182         Module error.
65183         * m4/error.m4 (gl_ERROR): New macro.
65184         (jm_PREREQ_ERROR): Use onceonly macros.
65185
65186         Module fatal.
65187         * m4/fatal.m4: New file.
65188
65189         Module getloadavg.
65190         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
65191         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
65192
65193         Module getpagesize.
65194         * m4/getpagesize.m4: New file.
65195
65196         Module getusershell.
65197         * m4/getusershell.m4: New file.
65198
65199         Module physmem.
65200         * m4/physmem.m4: New file.
65201
65202         Module posixver.
65203         * m4/posixver.m4: New file.
65204
65205         Module quotearg.
65206         * m4/quotearg.m4: New file.
65207
65208         Module quote.
65209         * m4/quote.m4: New file.
65210
65211         Module readutmp.
65212         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
65213
65214         Module sig2str.
65215         * m4/sig2str.m4: New file.
65216
65217         Other.
65218         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
65219         ulonglong.m4.
65220         * m4/intmax_t.m4: New file.
65221         * m4/d-type.m4: Indentation.
65222         * m4/jm-macros.m4: Update.
65223         * m4/prereq.m4 (jm_PREREQ): Update.
65224         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
65225         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
65226         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
65227         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
65228         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
65229         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
65230         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
65231         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
65232         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
65233         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
65234         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
65235         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
65236         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
65237         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
65238         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
65239         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
65240         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
65241         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
65242         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
65243
65244 2002-12-24  Bruno Haible  <bruno@clisp.org>
65245
65246         * MODULES.txt: Update according to m4/ changes.
65247
65248         Module gettext.
65249         * config.rpath: New file, from gettext-0.11.5.
65250
65251         * modules/*: New module descriptions.
65252         * gnulib-tool: New file.
65253         * MODULES.html.sh: New file.
65254
65255 2002-12-21  Karl Berry  <karl@gnu.org>
65256
65257         * doc/fdl.texi: update to version 1.2.
65258
65259 2002-12-19  Karl Berry  <karl@gnu.org>
65260
65261         * config/config.guess: update from prep.
65262
65263 2002-12-18  Bruno Haible  <bruno@clisp.org>
65264
65265         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
65266         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
65267
65268 2002-12-17  Bruno Haible  <bruno@clisp.org>
65269
65270         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
65271         stdlib.h, string.h.
65272
65273 2002-12-17  Bruno Haible  <bruno@clisp.org>
65274
65275         * lib/canon-host.c (strdup): Remove unused declaration.
65276
65277         * lib/fsusage.c: Include full_read.h.
65278         (get_fs_usage): Use full_read instead of safe_read.
65279
65280         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
65281
65282 2002-12-12  Karl Berry  <karl@gnu.org>
65283
65284         * config/config.guess: update from prep.
65285
65286 2002-12-11  Bruno Haible  <bruno@clisp.org>
65287
65288         * m4/setenv.m4: New file, from gettext-0.11.5.
65289
65290 2002-12-11  Bruno Haible  <bruno@clisp.org>
65291
65292         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
65293         not unsetenv().
65294         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
65295         modifications:
65296
65297         2002-12-11  Bruno Haible  <bruno@clisp.org>
65298
65299                 * setenv.c (alloca): Fall back to malloc.
65300                 (freea): New macro.
65301                 (setenv): Use freea() to free memory allocated with alloca().
65302
65303         2002-11-13  Bruno Haible  <bruno@clisp.org>
65304
65305                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
65306                 function declarations.
65307                 * unsetenv.c (unsetenv): Likewise.
65308
65309         2002-03-04  Bruno Haible  <bruno@clisp.org>
65310
65311                 Portability to AIX 4.3.3.
65312                 * unsetenv.c: New file, extracted from setenv.c.
65313                 * setenv.c: Move the unsetenv() function to unsetenv.c.
65314
65315         2001-12-20  Bruno Haible  <bruno@clisp.org>
65316
65317                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
65318                 use malloc instead. For SunOS 4.
65319
65320         2001-12-11  Bruno Haible  <bruno@clisp.org>
65321
65322                 * setenv.c: Declare alloca.
65323                 (compar_fn_t): New typedef.
65324                 (KNOWN_VALUE, STORE_VALUE): Use it.
65325
65326         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
65327         setenv.h.
65328
65329 2002-12-10  Paul Eggert  <eggert@twinsun.com>
65330
65331         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
65332         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
65333         Choose values that are less likely to collide with system fnmatch
65334         options.
65335         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
65336         defined (e.g., a pure POSIX system).
65337         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
65338         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
65339
65340 2002-12-06  Paul Eggert  <eggert@twinsun.com>
65341
65342         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
65343         a pain in practice to deal with generated m4 files.  This change
65344         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
65345
65346         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
65347         and jm-glibc-io.m4, as they are no longer a special case.
65348         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
65349         kludge and the auto-generation stuff.  Check only whether the
65350         functions are declared, not whether they exist, since older hosts
65351         that don't declare the functions can't use the optimization anyway.
65352
65353 2002-12-06  Jim Meyering  <jim@meyering.net>
65354
65355         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
65356
65357         Merge in changes from libc's misc/error.c, in preparation
65358         for the merge of gnulib's changes back into libc.
65359
65360         * lib/error.c (_): Define only if not already defined.
65361         Move definition to follow all #include directives.
65362         Include unlocked-io.h only if !_LIBC.
65363         [_LIBC]: Include <libio/libioP.h>.
65364         [USE_IN_LIBIO]: Include <libio/iolibio.h>
65365         (fflush): Tweak definition to use INTUSE.
65366         (putc): Define.
65367
65368 2002-12-05  Paul Eggert  <eggert@twinsun.com>
65369
65370         * lib/alloca.c [defined emacs]: Include "lisp.h".
65371         (xalloc_die) [defined emacs]: New macro.
65372         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
65373         [! defined emacs]: Include <xalloc.h>.
65374         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
65375         (pointer): Typedef to POINTER_TYPE *.
65376         (malloc): Remove decl; we now always use xmalloc.
65377         (alloca): Use old-style definition, since Emacs needs this.
65378         Check for arithmetic overflow when computing combined size.
65379
65380 2002-12-04  Paul Eggert  <eggert@twinsun.com>
65381
65382         Do not generate unlocked-io.h automatically, since it's easier to
65383         maintain it by hand.
65384
65385         * lib/unlocked-io.h: New file, from GNU diffutils,
65386         but with proper copyright notice and attribution.
65387         * lib/gen-uio: Remove.
65388         * lib/Makefile.am: Add copyright notice.
65389         (libfetish_a_SOURCES): Add unlocked-io.h.
65390         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
65391         (DISTCLEANFILES, io_functions): Remove macros.
65392         (EXTRA_DIST): Remove gen_uio.
65393         (unlocked-io.h): Remove rule.
65394
65395 2002-12-04  Jim Meyering  <jim@meyering.net>
65396
65397         Reflect the fact that stat.c and lstat.c are no longer generated.
65398         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
65399         (DISTCLEANFILES): Likewise.
65400         (EXTRA_DIST): Likewise.
65401         (all_local): Don't depend on stat.c or lstat.c.
65402         (stat.c, lstat.c): Remove rules.
65403         (EXTRA_DIST): Remove xstat.in.
65404
65405         * lib/xstat.in: Remove file.  Contents moved into stat.c.
65406         * lib/stat.c: New file.  Contents mostly from xstat.in.
65407         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
65408         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
65409
65410         * lib/safe-read.c: Rework so that it may serve to define safe_write,
65411         too.
65412         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
65413
65414 2002-12-03  Jim Meyering  <jim@meyering.net>
65415
65416         * lib/safe-read.c, safe-write.c: Change variable names and comments,
65417         but not semantics, to minimize the differences between these two files.
65418         (safe_read): Change comment to mention SAFE_READ_ERROR.
65419
65420         * lib/safe-read.c (IS_EINTR): Define.
65421         (safe_read): Use IS_EINTR in place of in-function cpp directives.
65422
65423 2002-12-02  Jim Meyering  <jim@meyering.net>
65424
65425         * lib/safe-read.c (EINTR): Define.
65426         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
65427         (INT_MAX): Provide fallback.
65428         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
65429
65430         * lib/safe-read.h (SAFE_READ_ERROR): Define.
65431
65432 2002-12-02  Bruno Haible  <bruno@clisp.org>
65433
65434         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
65435         Define, taken from safe-read.c.
65436         (INT_MAX): Provide fallback.
65437         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
65438         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
65439
65440         * lib/safe-read.c (EINTR): Remove definition.
65441         (safe_read): Don't use EINTR if it is absent.
65442
65443 2002-12-01  Jim Meyering  <jim@meyering.net>
65444
65445         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
65446         zero.
65447         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
65448
65449 2002-11-27  Paul Eggert  <eggert@twinsun.com>
65450
65451         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
65452         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
65453         with `if (! (value < limit)) abort ();', for readability.
65454
65455 2002-11-26  Karl Berry  <karl@gnu.org>
65456
65457         * lib/strdup.c: copy from libc again, with jim's ok.
65458         * lib/.cppi-disable: re-add strdup.c
65459
65460 2002-11-25  Karl Berry  <karl@gnu.org>
65461
65462         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
65463         instead of "strtol.c".
65464
65465 2002-11-25  Karl Berry  <karl@gnu.org>
65466
65467         * config/install-sh: update from automake for variable quoting, $0 in
65468         error msgs, etc.
65469
65470         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
65471         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
65472         entry.
65473
65474 2002-11-25  Jim Meyering  <jim@meyering.net>
65475
65476         * lib/mktime.c: Sync from libc, now that it has the latest fix.
65477
65478 2002-11-24  Karl Berry  <karl@gnu.org>
65479
65480         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
65481         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
65482
65483 2002-11-24  Jim Meyering  <jim@meyering.net>
65484
65485         Update from coreutils:
65486
65487         * lib/mktime.c: Merge in changes from libc.
65488
65489         Avoid a link-time failure on some Linux systems.
65490         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
65491         (otherwise).
65492         (__mon_yday): Declare with the STATIC attribute.
65493         (__mktime_internal): Likewise.
65494         Based on a report from Greg Schafer.
65495
65496 2002-11-23  Jim Meyering  <jim@meyering.net>
65497
65498         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
65499         Use `unsigned', not `int', as type of index.
65500
65501         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
65502
65503         * lib/fsusage.c: Remove unneeded parentheses around operands of
65504         `defined'.
65505
65506 2002-11-22  Paul Eggert  <eggert@twinsun.com>
65507
65508         * lib/quotearg.h: Allow multiple inclusion by surrounding with
65509         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
65510         so that we can be included first.
65511         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
65512         * lib/quotearg.c: Include quotearg.h immediately after config.h.
65513         No need to include stddef.h or sys/types.h any more.
65514         Surround local include files with "", not "<>".
65515         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
65516         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
65517         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
65518         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
65519         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
65520         (ISPRINT): Remove; no longer needed now that we assume C89.
65521
65522         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
65523         Preserve errno.
65524
65525         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
65526         quotearg_char): Use SIZE_MAX rather than
65527         (size_t) -1 when we are talking about "infinity".
65528
65529         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
65530
65531 2002-11-22  Paul Eggert  <eggert@twinsun.com>
65532
65533         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
65534         hint that one should use `if (! x) abort ();' rather than `assert
65535         (x);', and anyway it's one less thing to worry about configuring.
65536         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
65537         hash_rehash, hash_insert): Use abort rather than assert.
65538
65539 2002-11-22  Bruno Haible  <bruno@clisp.org>
65540
65541         * lib/safe-read.h: Assume C89. Add comments.
65542         (safe_read): Change return type to size_t.
65543         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
65544         byte counts > SSIZE_MAX correctly.
65545         * lib/safe-write.h: New file.
65546         * lib/safe-write.c: New file.
65547         * lib/full-read.h: New file.
65548         * lib/full-read.c: New file.
65549         * lib/full-write.h: Assume C89. Add comments.
65550         * lib/full-write.c: Include safe-write.h.
65551         (full_write): Rewritten to use safe_write.
65552         Suggested by Jim Meyering and Paul Eggert.
65553
65554 2002-11-21  Jim Meyering  <jim@meyering.net>
65555
65556         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
65557
65558         Merge in changes from the coreutils.
65559
65560         2002-09-25  Paul Eggert  <eggert@twinsun.com>
65561         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
65562         <stdint.h>.
65563         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
65564         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
65565         int.  Work more efficiently if X is the same width as uintmax_t.
65566         Do not compare X to -1, to avoid bogus compiler warning.
65567         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
65568         Don't assume that f_frsize and f_bsize are the same type.
65569
65570         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
65571         warning on FreeBSD.
65572
65573         * lib/makepath.c (make_path): Restore umask *before* creating the final
65574         component.
65575         (make_path): Minor reformatting.
65576
65577         * lib/xmalloc.c: Adjust to work with new autoconf macros,
65578         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
65579         HAVE_MALLOC/HAVE_REALLOC.
65580
65581         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
65582         dummy ones.  At least on GNU/Linux systems, `auto' means something
65583         else.
65584         From Michael Stone.
65585
65586 2002-11-21  Bruno Haible  <bruno@clisp.org>
65587
65588         Remove case insensitive option matching.
65589         * lib/argmatch.h (argcasematch): Remove declaration.
65590         (ARGCASEMATCH): Remove macro.
65591         (__xargmatch_internal): Remove case_sensitive argument.
65592         (XARGMATCH): Update.
65593         (XARGCASEMATCH): Remove macro.
65594         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
65595         case_sensitive argument.
65596         (argcasematch): Remove function.
65597         (__xargmatch_internal): Remove case_sensitive argument.
65598         (main): Use XARGMATCH instead of XARGCASEMATCH.
65599
65600         * lib/xmalloc.c: Change compile-time error message. Add comment about
65601         required autoconf version.
65602
65603 2002-11-20  Paul Eggert  <eggert@twinsun.com>
65604
65605         Merge argmatch cleanups from Bison.  Assume C89.
65606
65607         * lib/argmatch.c: Include config.h here, not in argmatch.h.
65608         Include stdlib.h, for EXIT_FAILURE.
65609         Always include <string.h>, since we assume C89.
65610         (EXIT_FAILURE): Remove pre-C89 bug workaround.
65611         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
65612         Include <stddef.h> instead, since it's all we need for size_t.
65613         (PARAMS): Remove.  All uses removed.
65614         (ARRAY_CARDINALITY): Do not bother to #undef.
65615         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
65616         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
65617         Remove unnecessary parentheses.
65618         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
65619         Insert necessary parentheses.
65620         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
65621         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
65622
65623 2002-11-19  Bruno Haible  <bruno@clisp.org>
65624
65625         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
65626         * lib/mbswidth.h: Include <stddef.h>, for size_t.
65627
65628         * lib/mbswidth.h (PARAMS): Remove macro.
65629         (mbswidth, mbsnwidth): Use ANSI C function declarations.
65630         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
65631
65632         * lib/gcd.h (PARAMS): Remove macro.
65633         (gcd): Use ANSI C function declarations.
65634         * lib/gcd.c (gcd): Likewise.
65635
65636 2002-11-15  Bruno Haible  <bruno@clisp.org>
65637
65638         * lib/strcspn.c: Include <stddef.h>.
65639         (strcspn): Use ANSI C function declaration. Change return type to
65640         size_t. Use NULL.
65641         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
65642         (strpbrk): Use NULL.
65643         * lib/strpbrk.h (PARAMS): Remove macro.
65644         (strpbrk): Use ANSI C function declaration.
65645         * lib/strstr.c: Don't include <sys/types.h>.
65646         * lib/strstr.h (PARAMS): Remove macro.
65647         (strstr): Use ANSI C function declarations.
65648
65649 2002-11-14  Karl Berry  <karl@gnu.org>
65650
65651         * config/mkinstalldirs: `do' on separate line, instead of
65652         `for var; do'.
65653
65654 2002-11-06  Bruno Haible  <bruno@clisp.org>
65655
65656         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
65657         * lib/gcd.c (gcd): Likewise.
65658
65659 2002-11-05  Bruno Haible  <bruno@clisp.org>
65660
65661         * lib/gcd.h: New file, from gettext-0.11.5.
65662         * lib/gcd.c: New file, from gettext-0.11.5.
65663
65664 2002-11-05  Bruno Haible  <bruno@clisp.org>
65665
65666         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65667         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65668         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65669         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65670
65671         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
65672         <libintl.h>.
65673         * lib/makepath.c: Include gettext.h instead of <locale.h> and
65674         <libintl.h>.
65675
65676         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
65677         * lib/human.c: Include gettext.h instead of <libintl.h>.
65678         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
65679         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
65680         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
65681         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
65682         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
65683         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
65684         (textdomain): Remove definition.
65685         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
65686
65687         * lib/long-options.c: Remove include of <libintl.h> and definition of
65688         _.
65689         * lib/same.c: Remove include of <libintl.h> and definition of _.
65690
65691 2002-11-04  Owen Taylor  <otaylor@redhat.com>
65692
65693         * lib/config.charset: A few additions for Solaris.
65694
65695 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
65696
65697         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
65698         * lib/localcharset.c (locale_charset): Declare as extern "C".
65699
65700 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
65701
65702         * lib/config.charset: msdos in uk_UA uses CP1125.
65703
65704 2002-11-04  Bruno Haible  <bruno@clisp.org>
65705
65706         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
65707         * lib/strcase.h: New file, from GNU gettext-0.11.5.
65708         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
65709         * lib/strstr.h: New file, from GNU gettext-0.11.5.
65710         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
65711
65712 2002-11-04  Bruno Haible  <bruno@clisp.org>
65713
65714         * lib/localcharset.c (locale_charset): Don't return an empty string.
65715
65716 2002-11-04  Bruno Haible  <bruno@clisp.org>
65717
65718         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
65719         aliases.
65720
65721 2002-11-04  Bruno Haible  <bruno@clisp.org>
65722
65723         * lib/config.charset: Update for newest glibc. Add canonical names
65724         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
65725
65726 2002-11-04  Bruno Haible  <bruno@clisp.org>
65727
65728         * lib/config.charset: Add support for NetBSD.
65729
65730 2002-11-04  Bruno Haible  <bruno@clisp.org>
65731
65732         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
65733
65734 2002-11-01  Bruno Haible  <bruno@clisp.org>
65735
65736         * configure.in: Add AC_CONFIG_AUX_DIR call.
65737         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
65738         test/Makefile.
65739         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
65740
65741 2002-09-28  Karl Berry  <karl@gnu.org>
65742
65743         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
65744         installed automake until the next release, since changes have been
65745         made.
65746
65747 2002-09-25  Karl Berry  <karl@gnu.org>
65748
65749         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
65750         * lib/getopt*: copy from libc/posix.
65751         * lib/gettext.h: copy from gettext.
65752         * lib/.cppi-disable: add strdup.c, gettext.h.
65753
65754 2002-09-25  Karl Berry  <karl@gnu.org>
65755
65756         * config/srclist.txt: enable gettext.h check.
65757         * config/config.{guess,sub}: update from prep.
65758         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
65759                 from automake 1.6.3.
65760         See srclist*.
65761
65762 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
65763
65764         * regex.c (PATFETCH): Remove the translating fetch.
65765         (PATFETCH_RAW): Rename to PATFETCH.
65766         (set_image_of_range): New fun.
65767         (SET_RANGE_TABLE_WORK_AREA): Use it.
65768         (regex_compile): Don't translate the pattern chars so eagerly.
65769         Only do it when inserting an `exactn' bytecode or when handling
65770         a char-range.
65771         (mutually_exclusive_p): Avoid empty statement.
65772
65773 2002-07-06  Jim Meyering  <meyering@lucent.com>
65774
65775         * m4/README: Don't mention Makefile.am.in.
65776         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
65777
65778 2002-07-01  Jim Meyering  <meyering@lucent.com>
65779
65780         * lib/c-stack.c: Include sys/time.h.
65781         From Volker Borchert.
65782
65783 2002-06-26  Paul Eggert  <eggert@twinsun.com>
65784
65785         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
65786
65787 2002-06-26  Paul Eggert  <eggert@twinsun.com>
65788
65789         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
65790         New macro.  Use it uniformly instead of
65791         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
65792         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
65793         reported by Vin Shelton.
65794
65795 2002-06-22  Paul Eggert  <eggert@twinsun.com>
65796
65797         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
65798         Do not assume SA_SIGINFO behavior.
65799         Bug reported by Jim Meyering on NetBSD 1.5.2.
65800
65801 2002-06-22  Jim Meyering  <meyering@lucent.com>
65802
65803         * m4/c-stack.m4: New file, from diffutils-2.8.2.
65804         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
65805
65806         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
65807         now that configure.ac uses AC_GNU_SOURCE.
65808         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
65809         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
65810
65811         Update to latest tools.  Suggestions from Paul Eggert.
65812         * m4/stdbool.m4: New file, from diffutils-2.8.2.
65813         * m4/gnu-source.m4: Update from diffutils-2.8.2.
65814         * m4/fnmatch.m4: Likewise.
65815         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
65816         to AC_HEADER_STDBOOL
65817
65818 2002-06-22  Jim Meyering  <meyering@lucent.com>
65819
65820         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
65821         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
65822
65823 2002-06-22  Jim Meyering  <meyering@lucent.com>
65824
65825         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
65826
65827         * lib/exitfail.c, exitfail.h: Likewise.
65828         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
65829
65830         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
65831         of fnmatch.h.
65832         (EXTRA_DIST): Add fnmatch_loop.c.
65833         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
65834
65835         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
65836         * lib/fnmatch.c: Update from diffutils-2.8.2.
65837         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
65838         * lib/fnmatch.h: Remove file.
65839
65840 2002-06-21  Jim Meyering  <meyering@lucent.com>
65841
65842         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
65843         * m4/mbrtowc.m4: Likewise.
65844
65845         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
65846         * m4/mbswidth.m4: Reflect name change:
65847         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
65848         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
65849
65850         * m4/lib-link.m4: Update from gettext-0.11.2.
65851         * m4/gettext.m4: Likewise.
65852
65853         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
65854         From Alfred M. Szmidt.
65855
65856 2002-06-18  Paul Eggert  <eggert@twinsun.com>
65857
65858         * lib/file-type.h: Report an error if neither S_ISREG nor
65859         S_IFREG is defined, instead of using a test specific to glibc
65860         2.2.  This should be safe, since POSIX requires S_ISREG and
65861         Unix Version 7 had S_IFREG.  We don't need to check for
65862         <sys/types.h> since we don't use any symbols that it defines.
65863
65864 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
65865
65866         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
65867         $@-t, so that each temporary file name is unique and valid in the first
65868         8 characters, for operation under DOS.
65869
65870 2002-06-15  Paul Eggert  <eggert@twinsun.com>
65871
65872         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
65873
65874 2002-06-15  Jim Meyering  <meyering@lucent.com>
65875
65876         Work even with DJGPP 2.03, which lacks support for symlinks.
65877         From Richard Dawe.
65878         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
65879         is defined.
65880         * lib/lchown.c (S_ISLNK): Likewise.
65881
65882 2002-06-15  Jim Meyering  <meyering@lucent.com>
65883
65884         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
65885         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
65886         have been included before this file.
65887
65888 2002-06-14  Jim Meyering  <meyering@lucent.com>
65889
65890         * lib/file-type.h: Use the version from diffutils-2.8.2.
65891         * lib/file-type.c: Likewise.
65892
65893 2002-06-07  Jim Meyering  <meyering@lucent.com>
65894
65895         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
65896         They're needed at least for NetBSD 1.5.2.
65897         ($statxfs_includes): Include those same headers.
65898         ($statxfs_includes): Include sys/vfs.h if available.
65899         ($statxfs_includes): Likewise for sys/statvfs.h.
65900         Check for the following members in both structs statfs and statvfs:
65901         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
65902
65903 2002-06-01  Jim Meyering  <meyering@lucent.com>
65904
65905         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
65906         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
65907
65908 2002-05-28  Jim Meyering  <meyering@lucent.com>
65909
65910         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
65911         Reported by Volker Borchert.
65912
65913 2002-05-27  Jim Meyering  <meyering@lucent.com>
65914
65915         Fix a problem seen only on nonconforming systems whereby ls.c's
65916         use of localtime, and then of gettimeofday would cause trouble:
65917         the localtime call used to initialize rpl_gettimeofday's save
65918         mechanism would clobber ls's current local time information so
65919         that in any long listing the first file would always be listed
65920         with date 1970-01-01.  Analysis by Volker Borchert.
65921
65922         * lib/gettimeofday.c (localtime): Undefine.
65923         (rpl_localtime): New function.
65924
65925 2002-05-27  Jim Meyering  <meyering@lucent.com>
65926
65927         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
65928         localtime.
65929
65930         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
65931         use the replacement function; it wouldn't resolve at link time.
65932         Reported by Volker Borchert.
65933
65934 2002-05-22  Jim Meyering  <meyering@lucent.com>
65935
65936         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
65937         file-type.h.
65938         * lib/file-type.h: New file.
65939         * lib/file-type.c (file_type): New file/function.  Extracted from
65940         diffutils.
65941
65942 2002-04-30  Jim Meyering  <meyering@lucent.com>
65943
65944         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
65945
65946 2002-04-29  Paul Eggert  <eggert@twinsun.com>
65947
65948         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
65949
65950 2002-04-29  Paul Eggert  <eggert@twinsun.com>
65951
65952         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
65953         Do not check for alloca.h (no longer used) or stdbool.h (was never
65954         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
65955
65956 2002-04-29  Paul Eggert  <eggert@twinsun.com>
65957
65958         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
65959
65960 2002-04-29  Jim Meyering  <meyering@lucent.com>
65961
65962         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
65963         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
65964         Use AC_FUNC_STRNLEN here instead.
65965
65966         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
65967         With autoconf-2.53a, it's part of AC_PROG_CC.
65968
65969 2002-04-28  Paul Eggert  <eggert@twinsun.com>
65970
65971         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
65972         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
65973
65974 2002-04-28  Paul Eggert  <eggert@twinsun.com>
65975
65976         * lib/sig2str.h, lib/sig2str.c: New files.
65977         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
65978
65979 2002-04-28  Paul Eggert  <eggert@twinsun.com>
65980
65981         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
65982         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
65983         of 127, since 64 is the largest conceivable number for ancient
65984         nonstandard hosts.
65985         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
65986
65987 2002-04-28  Jim Meyering  <meyering@lucent.com>
65988
65989         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
65990
65991 2002-04-24  Jim Meyering  <meyering@lucent.com>
65992
65993         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
65994         (jm_PREREQ): Use it.
65995
65996         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
65997         mach/mach.h fcntl.h.
65998         Check for this function: setlocale.
65999
66000 2002-04-24  Jim Meyering  <meyering@lucent.com>
66001
66002         * lib/gettext.h: New file, from Gettext.
66003         * lib/Makefile.am (INCLUDES): Remove -I../intl.
66004         (libfetish_a_SOURCES): Add gettext.h.
66005
66006 2002-04-16  Jim Meyering  <meyering@lucent.com>
66007
66008         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
66009         ut_pid, ut_id, ut_exit.
66010
66011 2002-04-16  Jim Meyering  <meyering@lucent.com>
66012
66013         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
66014         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
66015         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
66016
66017 2002-04-12  Jim Meyering  <meyering@lucent.com>
66018
66019         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
66020         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
66021         existence of the getmntinfo function.  Needed for Darwin 5.3.
66022
66023         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
66024         This is necessary at least on Darwin 5.3.
66025
66026         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
66027         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
66028         strnlen.o in the library, and that makes some versions of ranlib
66029         object.
66030
66031 2002-04-12  Jim Meyering  <meyering@lucent.com>
66032
66033         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
66034
66035 2002-04-09  Jim Meyering  <meyering@lucent.com>
66036
66037         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
66038         to be more precise.  Rather than saying we're checking whether the
66039         function `works', say what we're testing.
66040         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
66041         Reported by Bruno Haible.
66042
66043 2002-03-10  Jim Meyering  <meyering@lucent.com>
66044
66045         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
66046         Suggestion from Santiago Vila.
66047
66048 2002-03-08  Jim Meyering  <meyering@lucent.com>
66049
66050         * lib/rename.c: Mention that this wrapper is needed also on
66051         mips-dec-ultrix4.4 systems.
66052
66053 2002-03-02  Jim Meyering  <meyering@lucent.com>
66054
66055         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
66056         not HAVE_CLOCK_SETTIME.
66057
66058 2002-02-27  Paul Eggert  <eggert@twinsun.com>
66059
66060         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
66061         Check for clock_settime.
66062
66063 2002-02-27  Paul Eggert  <eggert@twinsun.com>
66064
66065         * lib/nanosleep.h: Rename to....
66066         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
66067
66068         * lib/gettime.c: New file.
66069         * lib/settime.c: New file.
66070         * lib/stime.c: Remove.
66071
66072         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
66073         timespec.h.  Remove nanosleep.h.
66074
66075 2002-02-25  Paul Eggert  <eggert@twinsun.com>
66076
66077         * m4/acl.m4: New file.
66078         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
66079         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
66080
66081 2002-02-25  Paul Eggert  <eggert@twinsun.com>
66082
66083         * lib/acl.c, lib/acl.h: New files.
66084         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
66085
66086 2002-02-24  Jim Meyering  <meyering@lucent.com>
66087
66088         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
66089         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
66090         cause trouble.  Reported by Nelson Beebe.
66091
66092 2002-02-23  Paul Eggert  <eggert@twinsun.com>
66093
66094         * lib/path-concat.c (xpath_concat): Reorder code to pacify
66095         compilers that don't know that xalloc_die never returns.
66096
66097 2002-02-20  Jim Meyering  <meyering@lucent.com>
66098
66099         * lib/getdate.c: Regenerate using bison-1.33.
66100
66101 2002-02-17  Jim Meyering  <meyering@lucent.com>
66102
66103         * config/config.guess (main): Don't use `head -1'; it's no longer
66104         portable. Use `sed 1q' instead.
66105
66106 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
66107
66108         * m4/codeset.m4: Upgrade to gettext-0.11.
66109         * m4/gettext.m4: Upgrade to gettext-0.11.
66110         * m4/glibc21.m4: Upgrade to gettext-0.11.
66111         * m4/iconv.m4: Upgrade to gettext-0.11.
66112         * m4/isc-posix.m4: Upgrade to gettext-0.11.
66113         * m4/lcmessage.m4: Upgrade to gettext-0.11.
66114         * m4/lib-ld.m4: New file, from gettext-0.11.
66115         * m4/lib-link.m4: New file, from gettext-0.11.
66116         * m4/lib-prefix.m4: New file, from gettext-0.11.
66117         * m4/progtest.m4: Upgrade to gettext-0.11.
66118
66119 2002-02-15  Paul Eggert  <eggert@twinsun.com>
66120
66121         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
66122         (jm_PREREQ): Use it.
66123
66124 2002-02-15  Paul Eggert  <eggert@twinsun.com>
66125
66126         * lib/posixver.c, lib/posixver.h: New files.
66127         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
66128
66129 2002-02-02  Paul Eggert  <eggert@twinsun.com>
66130             Bruno Haible  <bruno@clisp.org>
66131
66132         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
66133         (fwrite_success_callback): New declaration.
66134         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
66135         print_unicode_char. Call failure callback instead of error.
66136         (fwrite_success_callback): New function.
66137         (exit_failure_callback): New function.
66138         (fallback_failure_callback): New function.
66139         (print_unicode_char): Call unicode_to_mb.
66140
66141 2002-01-26  Jim Meyering  <meyering@lucent.com>
66142
66143         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
66144         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
66145
66146 2002-01-26  Jim Meyering  <meyering@lucent.com>
66147
66148         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
66149
66150 2002-01-22  Paul Eggert  <eggert@twinsun.com>
66151
66152         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
66153
66154 2002-01-22  Jim Meyering  <meyering@lucent.com>
66155
66156         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
66157         Otherwise, some versions of automake would omit the rule that makes
66158         Makefile from Makefile.in.
66159
66160 2002-01-21  Paul Eggert  <eggert@twinsun.com>
66161
66162         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
66163         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
66164         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
66165         (memcoll): Set errno to zero if there is no error.
66166
66167         * lib/quotearg.c (quotearg_buffer_restyled):
66168         Fix bug with quoting buffers containing NUL when backslashing escapes.
66169         This bug was exposed by the other changes in this patch.
66170         (quotearg_n_options): New arg ARGSIZE.
66171         All callers changed.
66172         (quoting_options_from_style): New function.
66173         (quotearg_n_style): Use it.
66174         (quotearg_n_style_mem): New function.
66175
66176         * lib/quotearg.h (quotearg_n_style_mem): New function.
66177
66178 2002-01-19  Jim Meyering  <meyering@lucent.com>
66179
66180         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
66181         Remove useless quotes: DF_PROG="df".
66182         * m4/strnlen.m4: New file.
66183
66184 2002-01-16  Paul Eggert  <eggert@twinsun.com>
66185
66186         * lib/backupfile.c (ISDIGIT): Comment fix.
66187         * lib/getdate.y (ISDIGIT): Likewise.
66188         * lib/posixtm.c (ISDIGIT, year): Likewise.
66189         * lib/strverscmp.c (ISDIGIT): Likewise.
66190         * lib/userspec.c (ISDIGIT): Likewise.
66191
66192 2002-01-16  Jim Meyering  <meyering@lucent.com>
66193
66194         * lib/getdate.y: Add three semicolons, each just before a closing
66195         brace. Bison (as of version 1.31) no longer papers over that mistake.
66196
66197 2002-01-05  Jim Meyering  <meyering@lucent.com>
66198
66199         * lib/version-etc.c (version_etc_copyright): Update copyright year.
66200
66201 2001-12-19  Paul Eggert  <eggert@twinsun.com>
66202
66203         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
66204         not silently exit merely because the output buffer happens to
66205         have nothing pending.
66206
66207 2001-12-18  Paul Eggert  <eggert@twinsun.com>
66208
66209         See the big note in ../ChangeLog.
66210         * lib/human.c (suffixes): Prefer K to k for 1024.
66211         (generate_suffix_backwards): New function.
66212         (human_readable_inexact): Use it.
66213         * lib/xstrtol.c (__xstrtol): If there is no number but there
66214         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
66215         Accept 'K' as well as 'k'.
66216
66217 2001-12-15  Jim Meyering  <meyering@lucent.com>
66218
66219         * lib/regex.h (__restrict_arr): Update from libc.
66220
66221         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
66222         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
66223         (STREQ): Define.
66224
66225 2001-12-14  Jim Meyering  <meyering@lucent.com>
66226
66227         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
66228         Suggestion from Bruno Haible.
66229
66230 2001-12-10  Jim Meyering  <meyering@lucent.com>
66231
66232         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
66233         xrealloc, Instead, include "xalloc.h".
66234         (initbuffer): Don't cast xmalloc return value to char*.
66235         (readline): Reword comment.
66236         Don't cast xrealloc return value to char*
66237         Return NULL, not 0.
66238
66239 2001-12-09  Jim Meyering  <meyering@lucent.com>
66240
66241         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
66242         about `signed and unsigned type in conditional expression'.
66243         * lib/posixtm.c (posix_time_parse): Likewise.
66244
66245         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
66246
66247         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
66248         to avoid a pedantic warning.
66249
66250         * lib/getstr.c: Don't include assert.h.
66251         (getstr): Remove warning-evoking assertions.
66252         Return -1 if offset parameter is out of bounds.
66253         Change the type of a local from int to size_t.
66254
66255         * lib/strftime.c (my_strftime_localtime_r): Include this function
66256         definition in the `#if ! HAVE_TM_GMTOFF' block.
66257
66258         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
66259         Include xalloc.h instead.
66260
66261 2001-12-02  Jim Meyering  <meyering@lucent.com>
66262
66263         * lib/tempname.c: Don't declare getenv, thus reverting the change of
66264         2001-11-18.  It's no longer necessary, now that stdlib.h is always
66265         included.
66266
66267         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
66268         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
66269
66270 2001-11-30  Akim Demaille  <akim@epita.fr>
66271
66272         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
66273         before being defined.
66274
66275 2001-11-27  Paul Eggert  <eggert@twinsun.com>
66276
66277         * lib/quotearg.h (quotearg_n, quotearg_n_style):
66278         First arg is int, not unsigned.
66279         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
66280         (SIZE_MAX, UINT_MAX): New macros.
66281         (quotearg_n_options): Abort if N is negative.
66282         Avoid overflow check on hosts where size_t is 64 bits and int
66283         is 32 bits, as overflow is impossible there.
66284         Fix off-by-one typo that caused unnecessary reallocation.
66285
66286 2001-11-27  Jim Meyering  <meyering@lucent.com>
66287
66288         * lib/tempname.c: Merge with version from libc.
66289         * lib/regex.c: Likewise.
66290
66291         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
66292         systems for which STDC_HEADERS is 0, it was not included, resulting in
66293         a warning about an integer-to-pointer conversion problem with getenv.
66294         Reported by Volker Borchert.
66295
66296 2001-11-26  Jim Meyering  <meyering@lucent.com>
66297
66298         * lib/gtod.h: Remove file.
66299         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
66300         * lib/gettimeofday.c: Don't include gtod.h.
66301         (GTOD_init): Remove function.
66302         (rpl_gettimeofday): Do its job here instead, rather than aborting.
66303         Suggestion from Volker Borchert.
66304
66305 2001-11-23  Jim Meyering  <meyering@lucent.com>
66306
66307         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
66308         it.
66309         * lib/hash.c (struct hash_table): Define it here instead.
66310
66311 2001-11-22  Jim Meyering  <meyering@lucent.com>
66312
66313         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
66314
66315 2001-11-20  Jim Meyering  <meyering@lucent.com>
66316
66317         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
66318         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
66319
66320 2001-11-19  Jim Meyering  <meyering@lucent.com>
66321
66322         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
66323         directory.  Use "conftestXXXXXX" as the template.
66324         Suggestion from Paul Eggert.
66325
66326         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
66327         immediately, so the test doesn't mistakenly hit the max-open-files
66328         limit.
66329
66330 2001-11-18  Paul Eggert  <eggert@twinsun.com>
66331
66332         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
66333         (TEMPORARIES): New macro.
66334         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
66335         removes an artificial limitation (e.g. HP-UX 10.20, where
66336         TMP_MAX is 17576).
66337
66338 2001-11-18  Jim Meyering  <meyering@lucent.com>
66339
66340         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
66341
66342 2001-11-18  Jim Meyering  <meyering@lucent.com>
66343
66344         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
66345         on SunOS 4.
66346
66347         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
66348         files will be created before anything else.
66349
66350 2001-11-17  Paul Eggert  <eggert@twinsun.com>
66351
66352         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
66353         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
66354
66355 2001-11-17  Jim Meyering  <meyering@lucent.com>
66356
66357         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
66358         Prompted by a report from Bob Proulx.
66359
66360         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
66361         Instead, require UTILS_FUNC_MKSTEMP.
66362
66363 2001-11-17  Jim Meyering  <meyering@lucent.com>
66364
66365         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
66366         Now, that's done as part of AC_FUNC_STRTOD.
66367
66368 2001-11-17  Jim Meyering  <meyering@lucent.com>
66369
66370         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
66371         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
66372         rather than group writable.  Patch by Juan F. Codagnone.
66373
66374         * lib/readtokens.c: Remove explicit declarations of xmalloc and
66375         xrealloc, Instead, include "xalloc.h".
66376
66377         * lib/mountlist.c: Include unlocked-io.h after all system headers.
66378         Remove explicit declarations of xmalloc, xrealloc,
66379         and xstrdup.  Instead, include "xalloc.h".
66380
66381         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
66382         unlocked-io.h.
66383         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
66384         Likewise.
66385         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
66386
66387         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
66388         Reported by Padraig Brady.
66389
66390         * lib/mkstemp.c: #undef mkstemp.
66391         Include config.h.
66392         (rpl_mkstemp): Rename from mkstemp.
66393         Protoize.
66394
66395 2001-11-16  Jim Meyering  <meyering@lucent.com>
66396
66397         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
66398         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
66399         determine the amount of total physical memory, use pstat_getstatic.
66400         HPUX-11 doesn't define _SC_PHYS_PAGES.
66401         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
66402         If sysconf couldn't be used to determine the amount of available
66403         physical memory, use both pstat_getstatic and pstat_getdynamic.
66404         Based on a patch from Bob Proulx.
66405
66406 2001-11-10  Jim Meyering  <meyering@lucent.com>
66407
66408         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
66409         (jm_PREREQ): Use it.
66410
66411 2001-11-09  Jim Meyering  <meyering@lucent.com>
66412
66413         * m4/jm-macros.m4: Require autoconf-2.52f.
66414         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
66415         Use these AC_-prefixed names, not the AM_-prefixed ones.
66416
66417         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
66418
66419 2001-11-05  Jim Meyering  <meyering@lucent.com>
66420
66421         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
66422
66423 2001-11-04  Jim Meyering  <meyering@lucent.com>
66424
66425         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
66426         $DEFS.
66427
66428 2001-11-03  Jim Meyering  <meyering@lucent.com>
66429
66430         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
66431         of AC_DEFUN.
66432
66433         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
66434         know the name of the variable in the macro definition.
66435
66436 2001-11-03  Jim Meyering  <meyering@lucent.com>
66437
66438         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
66439         in argmatch_to_argument call.
66440
66441         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
66442         argument.
66443
66444         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
66445         e.g., a fault due to an attempt to free a NULL pointer.
66446
66447 2001-11-01  Jim Meyering  <meyering@lucent.com>
66448
66449         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
66450         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
66451
66452 2001-11-01  Jim Meyering  <meyering@lucent.com>
66453
66454         * lib/dirfd.c, lib/dirfd.h: New files.
66455         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
66456
66457         * lib/hash.c (hash_print) [TESTING]: Clean up.
66458
66459 2001-10-22  Paul Eggert  <eggert@twinsun.com>
66460
66461         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
66462         to avoid a warning if -Wall.
66463
66464 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
66465
66466         * README: New file
66467         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
66468         (per RMS's instructions, this is now the canonical source)
66469         * lgpl/, gpl/: New directories.
66470
66471 2001-10-21  Paul Eggert  <eggert@twinsun.com>
66472
66473         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
66474
66475 2001-10-21  Jim Meyering  <meyering@lucent.com>
66476
66477         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
66478         this code would end up calling gettext even in packages built
66479         with --disable-nls.
66480         * lib/getopt.c (_): Likewise.
66481         * lib/regex.c (_): Likewise.
66482
66483 2001-10-20  Paul Eggert  <eggert@twinsun.com>
66484
66485         * m4/error.m4 (jm_PREREQ_ERROR):
66486         Do not invoke AC_CHECK_FUNCS with strerror_r, as
66487         AC_FUNC_STRERROR_R does that.
66488         Check for strerror declaration.
66489
66490         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
66491         are supposed to have them these days.
66492         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
66493         Merge changes from latest Autoconf CVS.
66494         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
66495         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
66496         POSIX decided to standardize on the int flavor of strerror_r.
66497
66498 2001-10-20  Paul Eggert  <eggert@twinsun.com>
66499
66500         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
66501         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
66502         Use strerror_r that is only a macro, even if it is not a function.
66503         (strerror): Check for HAVE_DECL_STRERROR before declaring.
66504         (private_strerror): Use prototypes, not old-style function definition.
66505         (print_errno_message): New function.
66506         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
66507         char*-flavored one.
66508         (error_tail, error, error_at_line): Use it.
66509
66510 2001-10-11  Jim Meyering  <meyering@lucent.com>
66511
66512         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
66513         and quote_n (1, ... to avoid clobbering a buffer.
66514
66515 2001-10-05  Jim Meyering  <meyering@lucent.com>
66516
66517         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
66518         hash-pjw.h.
66519         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
66520         * lib/hash-pjw.h: New file.
66521
66522 2001-09-30  Jim Meyering  <meyering@lucent.com>
66523
66524         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
66525         `struct fsstat' has the `f_fstypename' member.
66526         Use that to define FS_TYPE, which is now used to make
66527         the getfsstat link test tighter.
66528
66529 2001-09-30  Jim Meyering  <meyering@lucent.com>
66530
66531         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
66532         Include <sys/ucred.h>, for Apple Darwin.
66533         Include sys/mount.h and sys/fs_types.h only if available.
66534         (FS_TYPE): Define.
66535         (read_filesystem_list): Use FS_TYPE.
66536
66537 2001-09-29  Paul Eggert  <eggert@twinsun.com>
66538
66539         * lib/exclude.c (excluded_filename): 0 -> false, since it's
66540         a boolean context.
66541
66542 2001-09-29  Jim Meyering  <meyering@lucent.com>
66543
66544         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
66545         [one-argument getmntent function]): Include stdio.h before mntent.h.
66546         SunOS 4.1.x needs it for the declaration of `FILE'.
66547         Patch by Volker Borchert.
66548
66549         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
66550         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
66551         sys/fs_types.h, and make the link-test for getfsstat guard #include
66552         directives with appropriate #if HAVE_*_H tests so that we can
66553         detect getfsstat on Apple Darwin1.3.7 systems.
66554         Reported by Nelson Beebe.
66555         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
66556
66557 2001-09-28  Paul Eggert  <eggert@twinsun.com>
66558
66559         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
66560         #defines strtoimax.  Also treat the other strto* functions
66561         like strtoimax.
66562
66563         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
66564         Check for strtoul and strtoumax,
66565         as those declarations are made even in the signed case.
66566         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
66567         Likewise, for strtol and strtoimax.
66568
66569 2001-09-28  Paul Eggert  <eggert@twinsun.com>
66570
66571         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
66572         #defines strtoimax.  Also treat the other strto* functions
66573         like strtoimax.
66574
66575         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
66576         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
66577         (strtoimax, strtoumax): Do not declare if already defined as a macro.
66578
66579 2001-09-26  Jim Meyering  <meyering@lucent.com>
66580
66581         Most macros in unlocked-io.h had the wrong number of arguments.
66582         * lib/gen-uio: New script.
66583         (USE_UNLOCKED_IO): Define to 1 if not already defined.
66584         * lib/unlocked-io.hin: Remove file.
66585         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
66586         rather than trying to embed it here.
66587         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
66588         Reported by Padraig Brady.
66589
66590 2001-09-25  Volker Borchert  <bt@teknon.de>
66591
66592         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
66593         `result'.
66594
66595 2001-09-24  Jim Meyering  <meyering@lucent.com>
66596
66597         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
66598
66599 2001-09-23  Jim Meyering  <meyering@lucent.com>
66600
66601         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
66602         instead of the mere test for existence of mntent.h.  The latter
66603         would get a false-positive on AIX 3.4 systems.
66604         In the outer getmntent if-block, don't die if neither of the getmntent
66605         tests succeeds.  Instead, just fall through and continue with the
66606         remaining tests.
66607
66608 2001-09-23  Jim Meyering  <meyering@lucent.com>
66609
66610         * lib/mountlist.c: Remove useless parentheses in #if directives.
66611         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
66612         the deprecated MOUNTED symbol is no longer defined in mntent.h.
66613
66614 2001-09-22  Jim Meyering  <meyering@lucent.com>
66615
66616         * m4/gettext.m4: New file.  From gettext.
66617         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
66618         * m4/progtest.m4: Likewise
66619         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
66620         * m4/glibc21.m4: Likewise.
66621
66622         * m4/libintl.m4: Remove.  No longer used.
66623
66624 2001-09-22  Jim Meyering  <meyering@lucent.com>
66625
66626         * lib/localcharset.c: Update from latest gettext.
66627         * lib/config.charset: Likewise.
66628
66629 2001-09-20  Jim Meyering  <meyering@lucent.com>
66630
66631         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
66632         strtoimax.
66633         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
66634         strtoumax.
66635
66636 2001-09-20  Jim Meyering  <meyering@lucent.com>
66637
66638         * lib/xstrtol.c (strtoimax): Guard declaration with
66639         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
66640         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
66641         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
66642         (strtoumax): Likewise, for completeness (it wasn't necessary).
66643
66644 2001-09-17  Paul Eggert  <eggert@twinsun.com>
66645
66646         * lib/strtoimax.c (HAVE_LONG_LONG):
66647         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
66648         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
66649         to work around bug in IBM C compiler.
66650
66651 2001-09-17  Jim Meyering  <meyering@lucent.com>
66652
66653         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
66654         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
66655         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
66656         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
66657         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
66658         whenever the right hand side need not be expanded by the shell.
66659
66660 2001-09-16  Paul Eggert  <eggert@twinsun.com>
66661
66662         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
66663         library.  It's not correct, as some older glibcs are buggy.
66664         fnmatch wasn't fixed until glibc 2.2.
66665
66666         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
66667         special shell magic here.
66668
66669 2001-09-16  Jim Meyering  <meyering@lucent.com>
66670
66671         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
66672         * m4/jm-macros.m4: Require it.
66673
66674 2001-09-16  Jim Meyering  <meyering@lucent.com>
66675
66676         * lib/mkdir.c: New file.
66677
66678 2001-09-15  Jim Meyering  <meyering@lucent.com>
66679
66680         * m4/jm-macros.m4: Check for help2man.
66681
66682 2001-09-11  Jim Meyering  <meyering@lucent.com>
66683
66684         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
66685         The body, by Paul Eggert, was moved here from configure.in.
66686         * m4/jm-macros.m4: Require UTILS_HOST_OS.
66687
66688 2001-09-04  Paul Eggert  <eggert@twinsun.com>
66689
66690         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
66691         (jm_PREREQ): Use it.
66692
66693 2001-09-04  Paul Eggert  <eggert@twinsun.com>
66694
66695         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
66696         Use ssize_t, not int, to store result of readlink.
66697         Check for ssize_t overflow as well as size_t overflow,
66698         as POSIX says the result of readlink is implementation-defined
66699         when ssize_t overflows.
66700         Remove unnecessary cast to char*.
66701         Use free+malloc instead of realloc, as the storage doesn't need
66702         to be preserved and it's clearer and can be more efficient that way.
66703         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
66704         * lib/xreadlink.h (xreadlink): Update prototype.
66705
66706 2001-09-04  Paul Eggert  <eggert@twinsun.com>
66707
66708         * lib/xgetcwd.c: Revert some of the previous change; intead,
66709         fix the HAVE_GETCWD_NULL code to behave more like the
66710         !HAVE_GETCWD_NULL code used to.
66711
66712         Include "xalloc.h".
66713         (xgetcwd): Do not return NULL when memory is exhausted; instead,
66714         invoke xalloc_die.
66715
66716 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66717
66718         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
66719         sys/param.h, as pathmax.h includes them.
66720
66721 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66722
66723         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
66724         (jm_PREREQ_XGETCWD): New macro.
66725
66726         * m4/getcwd.m4: New file.
66727
66728 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66729
66730         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
66731         like the HAVE_GETCWD_NULL code.
66732         Include pathmax.h if not HAVE_GETCWD.
66733         Do not include xalloc.h.
66734         (INITIAL_BUFFER_SIZE): New symbol.
66735         Do not use xmalloc / xrealloc, since the caller is responsible for
66736         handling errors.  Preserve errno around `free' during failure.
66737         Do not overrun buffer when using getwd.
66738
66739 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66740
66741         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
66742         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
66743         getcwd (NULL, 0).
66744
66745 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66746
66747         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
66748         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
66749         spotted by Jim Meyering.
66750
66751 2001-09-03  Jim Meyering  <meyering@lucent.com>
66752
66753         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
66754         failure.
66755
66756 2001-09-02  Jim Meyering  <meyering@lucent.com>
66757
66758         * lib/error.c: Update from GNU libc.
66759
66760 2001-09-01  Jim Meyering  <meyering@lucent.com>
66761
66762         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
66763         Used by df.
66764
66765 2001-09-01  Jim Meyering  <meyering@lucent.com>
66766
66767         * lib/xreadlink.c: New file.
66768         * lib/xreadlink.h: New file.
66769         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
66770         xreadlink.h.
66771
66772         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
66773         doesn't conflict with sparc Solaris 7's definition in
66774         /usr/include/sys/int_types.h.
66775
66776         * lib/exclude.c: Use `""', not `<>' to #include non-system header
66777         files.
66778         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
66779         and strncasecmp as r-values.  Unixware didn't have declarations.
66780
66781 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66782
66783         * lib/xstrtol.h: Add copyright notice.
66784         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
66785         LONGINT_INVALID_SUFFIX_CHAR.
66786
66787 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66788
66789         * lib/xstrtol.c (strtoimax): New decl.
66790
66791 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66792
66793         * lib/xgetcwd.c: Don't include pathmax.h.
66794         Include stdlib.h and unistd.h if available.
66795         Include xalloc.h.
66796         (xmalloc, xstrdup, free): Remove decls.
66797         (xgetcwd): Don't assume sizes fit in unsigned.
66798         Check for overflow when computing sizes.
66799         Simplify reallocation code.
66800
66801 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66802
66803         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
66804         a directory's st_size can have an arbitrary value, so the old
66805         usage could waste an arbitrary amount of memory.  All uses
66806         changed.
66807         * lib/savedir.h: Update prototype.
66808
66809 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66810
66811         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
66812
66813         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
66814         old strtoimax.c.
66815
66816         Also, make the following further changes to make this file's
66817         configuration more similar to that of strtol.c:
66818         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
66819         (strtoumax, uintmax_t, strtoull, strtol): Remove.
66820         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
66821         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
66822         changed to signed values.
66823
66824         And make the following changes as well:
66825         Fix copyright notice, as 1999 was missing.
66826         (verify): New macro.
66827         (strtoimax): Check sizes at compile-time, not run-time.
66828         Prefer strtol to strtoll if both work.
66829         (main): Remove; it was not that useful and was a pain to maintain.
66830
66831         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
66832
66833 2001-08-31  Jim Meyering  <meyering@lucent.com>
66834
66835         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
66836         Use an initial, malloc'd, buffer of length 128 rather than
66837         a statically allocated one of length 1024.
66838
66839 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66840
66841         Simplify code, partly by assuming autoconf 2.52 semantics.
66842
66843         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
66844
66845         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
66846         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
66847         All uses removed.
66848         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
66849         Move AC_REQUIRE to next-to-top level, to avoid confusion.
66850         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
66851         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
66852         jm_AC_HEADER_INTTYPES_H.
66853         * m4/jm-macros.m4 (jm_MACROS): Likewise.
66854
66855         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
66856
66857         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
66858         Quote first arg of AC_DEFUN.
66859         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
66860         since they are needed to parse the include file even if we need
66861         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
66862         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
66863         but with opposite signedness.
66864
66865 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66866
66867         Merge 'exclude' changes from tar 1.13.22.
66868         This fixes one or two unlikely storage allocation overflow bugs,
66869         but doesn't change user-visible behavior otherwise.
66870
66871 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66872
66873         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
66874         (jm_PREREQ_EXCLUDE): New macro.
66875
66876 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66877
66878         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
66879         tm to be declared.
66880
66881 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66882
66883         * lib/hash.c: Remove '2001' from copyright notice.
66884
66885 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66886
66887         * lib/full-write.h: New file.
66888         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
66889         * lib/full-write.c: Correct credits, as cccp.c no longer
66890         exists and anyway it was so heavily changed from the old cccp
66891         code as to be unrecognizable.  Include full-write.h.
66892         (full_write) Return size_t, with short writes meaning failure.
66893         All callers changed.  This fixes a bug with large buffers
66894         on 64-bit hosts.
66895         * lib/utime.c: Include full-write.h.
66896
66897 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66898
66899         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
66900         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
66901         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
66902         Include if available.
66903         (<xalloc.h>): Include
66904         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
66905         (verify): New macro.  Use it to verify that EXCLUDE macros do not
66906         collide with FNM macros.
66907         (struct patopts): New struct.
66908         (struct exclude): Use it, as exclude patterns now come with options.
66909         (new_exclude): Support above changes.
66910         (new_exclude, add_exclude_file):
66911         Initial size must now be a power of two to simplify overflow checking.
66912         (free_exclude, fnmatch_no_wildcards): New function.
66913         (excluded_filename): No longer requires options arg, as the options
66914         are determined by add_exclude.  Now returns bool, not int.
66915         (excluded_filename, add_exclude):
66916         Add support for the fancy new exclusion options.
66917         (add_exclude, add_exclude_file): Now takes int options arg.
66918         Check for arithmetic overflow when computing sizes.
66919         (add_exclude_file): xrealloc might modify errno, so don't
66920         realloc until after errno might be used.
66921
66922         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
66923         New macros.
66924         (free_exclude): New decl.
66925         (add_exclude, add_exclude_file): Now takes int options arg.
66926         (excluded_filename): No longer requires options arg, as the options
66927         are determined by add_exclude.  Now returns bool, not int.
66928
66929 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66930
66931         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
66932
66933 2001-08-27  Jim Meyering  <meyering@lucent.com>
66934
66935         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
66936
66937         * lib/version-etc.c (N_): Remove definition.
66938         Revert most of last change.
66939         Instead, simply don't mark the `Copyright...' string for translation.
66940         Based on advice from Paul Eggert.
66941
66942         * lib/strtoxmax.c: Tweak comment.
66943
66944 2001-08-26  Jim Meyering  <meyering@lucent.com>
66945
66946         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
66947
66948         * m4/xstrtoimax.m4: New file.
66949         * m4/xstrtoumax.m4: Add comments explaining why we
66950         AC_REPLACE_FUNCS(strtol).
66951
66952 2001-08-26  Jim Meyering  <meyering@lucent.com>
66953
66954         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
66955         of copyright with `%s' so translators don't get an untranslated
66956         message in 2002.
66957         (COPYRIGHT_YEAR): Define.
66958         (version_etc): Use fprintf rather than fputs.
66959         Suggestion from Ulrich Drepper.
66960
66961         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
66962
66963         * lib/strtoll.c: New file, from GNU libc.
66964         * lib/xstrtoimax.c: New file.
66965
66966         * lib/xstrtol.h: Add xstrtoimax.
66967         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
66968         * lib/strtoimax.c: New file.  Likewise, but first define
66969         STRTOUXMAX_SIGNED.
66970
66971         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
66972         ...
66973         * lib/strtoxmax.c: ... then renamed to this.
66974
66975 2001-08-18  Paul Eggert  <eggert@twinsun.com>
66976
66977         * m4/inttypes.m4: Add AC_PREREQ(2.13).
66978         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
66979         (jm_AC_TYPE_INTMAX_T): New macro.
66980         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
66981
66982         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
66983
66984         * m4/longlong.m4: Renamed from ulonglong.m4.
66985         * m4/inttypes.m4: Renamed from inttypes_h.m4.
66986         * m4/uintmax_t.m4: Removed.
66987
66988 2001-08-13  Paul Eggert  <eggert@twinsun.com>
66989
66990         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
66991         Port to Solaris 8, where 'sed' requires a space after the 'r'
66992         command, and where sh dislikes "$/".  Clean up the spacing a bit.
66993         Redirect output to $tmp just once.
66994
66995 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
66996
66997         * lib/addext.c (<errno.h>): Include.
66998         (errno): Declare if not defined.
66999         (addext): Work correctly when pathconf returns -1 and leaves
67000         errno alone because there is no limit.  Also, work even if
67001         pathconf returns a value greater than SIZE_MAX.
67002
67003 2001-08-12  Jim Meyering  <meyering@lucent.com>
67004
67005         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
67006         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
67007         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
67008         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
67009         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
67010         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
67011         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
67012         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
67013         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
67014         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
67015         utime.m4, utimes.m4, xstrtoumax.m4:
67016         Quote the first argument in each use of AC_DEFUN.
67017
67018 2001-08-12  Jim Meyering  <meyering@lucent.com>
67019
67020         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
67021         Simply `return getcwd (NULL, 0);'.
67022         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
67023         Use 1300 as initial value for length, not PATH_MAX.
67024
67025         * lib/pathmax.h: Clean up cpp syntax.
67026
67027 2001-08-12  Jim Meyering  <meyering@lucent.com>
67028
67029         * lib/gettimeofday.c: New file.
67030         * lib/gtod.h: New file.
67031         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
67032
67033 2001-08-05  Jim Meyering  <meyering@lucent.com>
67034
67035         * m4/jm-macros.m4: Require autoconf-2.52.
67036
67037 2001-08-04  Jim Meyering  <meyering@lucent.com>
67038
67039         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
67040         stmt, to get in sync with glibc.
67041
67042 2001-08-03  Paul Eggert  <eggert@twinsun.com>
67043
67044         The following changes are from gettext 0.10.39 as maintained by
67045         Bruno Haible.
67046
67047         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
67048         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
67049         with inverted sense.  All uses changed.
67050
67051         * lib/mbswidth.c: Don't include <limits.h>.
67052         Include <stdlib.h> and <string.h> unconditionally.
67053         (iswcntrl, mbsinit, ISCNTRL): New macros.
67054         (mbsnwidth): Use K&R style function declarations.
67055         Don't bother checking for MB_LEN_MAX == 1, since the compiler
67056         can optimize it when MB_CUR_MAX == 1.
67057         The width of control characters is zero, not 1.
67058
67059 2001-08-03  Paul Eggert  <eggert@twinsun.com>
67060
67061         The following changes are from gettext 0.10.39 as maintained by
67062         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
67063
67064         * m4/codeset.m4: Upgrade to serial AM1.
67065         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
67066         all uses changed.  Quote first arg of AC_DEFUN.
67067         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
67068
67069         * m4/iconv.m4: Upgrade to serial AM2.
67070         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
67071         Add --with-libconv-prefix.
67072         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
67073         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
67074         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
67075         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
67076         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
67077
67078         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
67079         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
67080         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
67081         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
67082         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
67083         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
67084         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
67085         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
67086         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
67087
67088         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
67089         string.h any more.
67090
67091         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
67092         not the default value.
67093
67094         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
67095         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
67096         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
67097         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
67098         Also check for iswcntrl, used for wcwidth fallback.
67099         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
67100         to Autoconf 2.13.
67101
67102 2001-08-03  Jim Meyering  <meyering@lucent.com>
67103
67104         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
67105         as it was in the original.  Reported by Paul Eggert.
67106
67107 2001-07-16  Jim Meyering  <meyering@lucent.com>
67108
67109         * m4/gettimeofday.m4: New file.
67110         Prompted by a report from Bernhard Baehr.
67111
67112 2001-07-15  Jim Meyering  <meyering@lucent.com>
67113
67114         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
67115         stuff. Now it's in ../Makefile.cfg.
67116
67117 2001-07-15  Jim Meyering  <meyering@lucent.com>
67118
67119         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
67120         (BUILT_SOURCES): Add unlocked-io.h.
67121         (io_functions): Define.
67122         (unlocked-io.h): New rule.
67123         (DISTCLEANFILES): Add unlocked-io.h.
67124         (all-local): Depend on unlocked-io.h, to ensure it is created.
67125
67126         * lib/unlocked-io.hin: New file
67127
67128         * lib/regex.c: Update from glibc.
67129
67130 2001-07-05  Jim Meyering  <meyering@lucent.com>
67131
67132         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
67133         recommendation.
67134         (libfetish_a_SOURCES): Put all .h files here instead.
67135         Remove a thus-exposed (better checks in automake) duplicate and
67136         two unnecessary .h files.
67137
67138 2001-07-04  Jim Meyering  <meyering@lucent.com>
67139
67140         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
67141         that generates jm-glibc-io.m4 so that it doesn't trigger any make
67142         distcheck failure.
67143
67144 2001-07-02  Jim Meyering  <meyering@lucent.com>
67145
67146         The following changes were prompted by suggestions from Bruno Haible.
67147
67148         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
67149         is now generated.
67150         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
67151         definition of EXTRA_DIST.
67152         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
67153         ensure that the generated file is created/updated whenever the list
67154         of $(unlocked_functions) is changed.
67155         (jm-glibc-io.m4): New rule.
67156         (unlocked-io.h): New rule -- currently unused.
67157
67158 2001-06-24  Jim Meyering  <meyering@lucent.com>
67159
67160         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
67161         unmatched right bracket, rather than kludging it with an extra,
67162         falsely-matching quote in a comment.  Patch by Akim Demaille.
67163
67164 2001-06-11  Jim Meyering  <meyering@lucent.com>
67165
67166         * lib/regex.c: Update from GNU libc.
67167
67168 2001-05-27  Jim Meyering  <meyering@lucent.com>
67169
67170         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
67171         Check for ut_type in struct utmp.
67172
67173 2001-05-27  Jim Meyering  <meyering@lucent.com>
67174
67175         * lib/readutmp.h (UT_TYPE): Define.
67176
67177 2001-05-24  Jim Meyering  <meyering@lucent.com>
67178
67179         * lib/argmatch.c: Include "quote.h".
67180         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
67181         quote function.  Reported by Göran Uddeborg.
67182
67183 2001-05-22  Jim Meyering  <meyering@lucent.com>
67184
67185         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
67186         now that we use the package-supplied version unconditionally.
67187         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
67188
67189 2001-05-21  Jim Meyering  <meyering@lucent.com>
67190
67191         * m4/regex.m4: Change a couple backticks to single quotes to avoid
67192         shell syntax errors.
67193
67194 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
67195
67196         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
67197
67198 2001-05-20  Paul Eggert  <eggert@twinsun.com>
67199
67200         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
67201         Don't bother to check library strftime, since
67202         we'll be using our own my_strftime function anyway.
67203         Define my_strftime instead of strftime.
67204
67205 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
67206
67207         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
67208         which is not yet declared.
67209
67210 2001-05-15  Jim Meyering  <meyering@lucent.com>
67211
67212         * m4/regex.m4: Use proper quoting so brackets appear in the test
67213         program.
67214         Reported by, and with help from, Bruno Haible.
67215
67216 2001-05-13  Jim Meyering  <meyering@lucent.com>
67217
67218         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
67219         undefined.
67220
67221 2001-05-11  Paul Eggert  <eggert@twinsun.com>
67222
67223         dirname code cleanup.  base_name now behaves more compatibly
67224         with POSIX basename when given file names that have trailing
67225         slashes, and similarly for dir_name.  Add new primitives
67226         base_len and dir_len.  Put the directory-name-related decls
67227         into dirname.h.
67228
67229         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
67230         * lib/backupfile.c (base_name): Likewise.
67231         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
67232         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
67233         * lib/makepath.c (strip_trailing_slashes): Likewise.
67234         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
67235         ISSLASH): Likewise.
67236         * lib/rename.c (strip_trailing_slashes): Likewise.
67237         * lib/same.c (base_name): Likewise.
67238         * lib/stripslash.c (ISSLASH): Likewise.
67239
67240         * lib/addext.c: Include <dirname.h> after size_t is defined.
67241         * lib/backupfile.c: Likewise.
67242
67243         * lib/addext.c (addext): Use base_len to trim redundant
67244         trailing slashes instead of doing it ourselves.
67245         But do not trim the last slash if it is not redundant.
67246
67247         * lib/backupfile.c (find_backup_file_name,
67248         max_backup_version): Use base_len instead of rolling it ourselves.
67249         Handle the case of "" and (on DOS) "C:" correctly.
67250
67251         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
67252         needed. Include <string.h>, <dirname.h>.
67253         (base_name): Allow file names ending in slashes, other than names
67254         that are all slashes.  In this case, return the basename followed
67255         by the slashes.  This is more general, and can be used in places
67256         where the original base_name purposely had an assertion failure.
67257         (base_len): New function.
67258
67259         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
67260         Do not include <assert.h>; no longer needed.
67261         Include xalloc.h.
67262         (memrchr): Remove decl.
67263         (dir_name_r): Remove.
67264         (dir_len): Renamed from dirlen.  All callers changed.
67265         Rewrite in terms of base_name, for simplicity and consistency.
67266         (dir_name): Never return NULL.  All callers changed.
67267         Do not include <stdlib.h> in test program; no longer needed.
67268         return 0; is fine for test program.
67269
67270         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
67271         New macros.
67272         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
67273
67274         * lib/path-concat.c (path_concat): Use base_len to compute
67275         base length, not strlen; this means we cannot rely on memcpy
67276         to null-terminate.
67277
67278         * lib/same.c (STREQ): Remove.
67279         (same_name): Handle the case where the basename ends in trailing '/'.
67280
67281         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
67282         a slash was stripped.  Do not strip the last slash after a
67283         file system prefix.
67284
67285 2001-05-11  Paul Eggert  <eggert@twinsun.com>
67286
67287         * lib/Makefile.am (libfetish_a_SOURCES):
67288         Add strftime.c, since we now compile it on all hosts.
67289
67290         * lib/strftime.c (my_strftime):
67291         Define to nstrftime if emacs, but only if my_strftime is not defined.
67292         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
67293         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
67294         Add one more extra argument: a nanoseconds value.
67295         All uses changed.
67296         (ns): New macro.
67297         (my_strftime function): Add %N format.
67298         (emacs_strftimeu): Renamed from emacs_strftime,
67299         with extra ut argument.
67300
67301 2001-05-09  Paul Eggert  <eggert@twinsun.com>
67302
67303         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
67304
67305 2001-04-21  Jim Meyering  <meyering@lucent.com>
67306
67307         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
67308         doesn't interfere.
67309
67310 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
67311
67312         * m4/ftruncate.m4: Check for chsize.
67313         Link with ftruncate.o unconditionally if ftruncate is missing.
67314         This was required when cross-compiling to i586-mingw32msvc.
67315
67316 2001-04-08  Jim Meyering  <meyering@lucent.com>
67317
67318         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
67319         recomputed; that's necessary when the offset spans a DST transition.
67320         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
67321
67322 2001-04-02  Jim Meyering  <meyering@lucent.com>
67323
67324         * lib/regex.h, regex.c: Update from GNU libc.
67325
67326 2001-03-24  Jim Meyering  <meyering@lucent.com>
67327
67328         * m4/jm-macros.m4: Require autoconf-2.49d.
67329
67330 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
67331
67332         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
67333
67334 2001-03-19  Paul Eggert  <eggert@twinsun.com>
67335
67336         * lib/version-etc.c (version_etc_copyright): Update to 2001.
67337
67338 2001-03-17  Jim Meyering  <meyering@lucent.com>
67339
67340         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
67341         now that the version in autoconf is equivalent.
67342         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
67343
67344         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
67345         Suggestion from Akim Demaille.
67346
67347         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
67348         (jm_PREREQ_TEMPNAME): New function.
67349
67350 2001-03-16  Paul Eggert  <eggert@twinsun.com>
67351
67352         * lib/tempname.c (uint64_t): Define to uintmax_t if
67353         not defined, and if UINT64_MAX is not defined.
67354         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
67355         Reported by John David Anglin.
67356
67357 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
67358
67359         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
67360         resolve alias if codeset is empty.
67361         * lib/config.charset (BeOS): Use wildcard syntax.
67362
67363 2001-03-13  Jim Meyering  <meyering@lucent.com>
67364
67365         * lib/path-concat.c (path_concat)
67366         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
67367         concatenating e.g., `C:' and `foo'.
67368         From Bruno Haible.
67369
67370 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
67371
67372         * lib/localcharset.c (locale_charset): Don't use
67373         setlocale(LC_CTYPE,NULL). Don't return NULL.
67374         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
67375
67376 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
67377
67378         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
67379         support for DOS/DJGPP.
67380
67381 2001-03-01  Paul Eggert  <eggert@twinsun.com>
67382
67383         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
67384         lacks mkstemp.  Compile our own tempname.c if we compile our own
67385         mkstemp.c, as mkstemp relies on tempname.
67386
67387 2001-03-01  Jim Meyering  <meyering@lucent.com>
67388
67389         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
67390         AH_VERBATIM really does output its argument verbatim.
67391
67392 2001-02-28  Paul Eggert  <eggert@twinsun.com>
67393
67394         * lib/Makefile.am (libfetish_a_SOURCES):
67395         Add dup-safer.c, fopen-safer.c.
67396         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
67397
67398         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
67399         * lib/unistd-safer.h: New files.
67400
67401 2001-02-25  Paul Eggert  <eggert@twinsun.com>
67402
67403         The mkstemp replacement is taken from glibc 2.2.2, with some
67404         portability fixes for use outside glibc, as follows:
67405
67406         * lib/tempname.c (struct_stat64): New macro.
67407         (direxists, __gen_tempname): Use it.
67408         This avoids a portability problem with Solaris 8.
67409
67410         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
67411         (<stddef.h>, <stdint.h>, <string.h>):
67412         Include only if STDC_HEADERS || _LIBC.
67413         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
67414         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
67415         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
67416         (__set_errno): Define this macro if <errno.h> doesn't.
67417         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
67418         Define these macros if <stdio.h> doesn't.
67419         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
67420         Define these macros if <sys/stat.h>
67421         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
67422         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
67423         __xstat64): Define if not _LIBC.
67424         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
67425         (__gen_tempname): Invoke gettimeofday only if
67426         HAVE_GETTIMEOFDAY || _LIBC;
67427         otherwise, fall back on plain "time".
67428         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
67429
67430         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
67431
67432         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
67433
67434 2001-02-18  Paul Eggert  <eggert@twinsun.com>
67435
67436         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
67437
67438 2001-02-17  Paul Eggert  <eggert@twinsun.com>
67439
67440         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
67441         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
67442         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
67443         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
67444
67445 2001-02-17  Paul Eggert  <eggert@twinsun.com>
67446
67447         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
67448         Remove workaround macros for hosts that have mbrtowc but not
67449         mbstate_t, as we now insist on proper declarations for both
67450         before using mbrtowc.
67451
67452 2001-02-17  Jim Meyering  <meyering@lucent.com>
67453
67454         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
67455         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
67456         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
67457         UnixWare 7.1.1.
67458
67459         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
67460         rather than AC_CACHE_VAL.
67461
67462 2001-02-17  Jim Meyering  <meyering@lucent.com>
67463
67464         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
67465         around included file name.
67466
67467         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
67468
67469         * lib/strftime.c: Update from GNU libc (the only changes were to
67470         comments).
67471
67472 2001-02-17  Jim Meyering  <meyering@lucent.com>
67473
67474         * lib/regex.c: Update from libc.
67475
67476 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
67477
67478         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
67479         clash.
67480
67481 2001-02-16  Paul Eggert  <eggert@twinsun.com>
67482
67483         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
67484         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
67485         Reported by Mark Hounschell via Paul Eggert.
67486
67487 2001-02-07  Jim Meyering  <meyering@lucent.com>
67488
67489         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
67490
67491 2001-02-05  Jim Meyering  <meyering@lucent.com>
67492
67493         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
67494         it includes the patch required for `large file' support with at least
67495         HP-UX's 10.20 /bin/cc.
67496
67497 2001-02-03  Jim Meyering  <meyering@lucent.com>
67498
67499         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
67500         AS_IF, now that it works once again (mysteriously).
67501         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
67502
67503 2001-01-30  Jim Meyering  <meyering@lucent.com>
67504
67505         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
67506         * m4/chown.m4: Rename conftestchown to conftest.chown.
67507         * m4/rename.m4: s/conftestdir/conftest.d1/ and
67508         s/conftestdir2/conftest.d2/.
67509         * m4/utimes.m4: s/conftestdata/conftest.data/
67510         Inspired by Pavel Roskin's change in autoconf.
67511
67512 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
67513
67514         * lib/config.charset: Update for FreeBSD 4.2.
67515
67516 2001-01-27  Jim Meyering  <meyering@lucent.com>
67517
67518         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
67519         a use of AS_IF.
67520         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
67521
67522 2001-01-26  Jim Meyering  <meyering@lucent.com>
67523
67524         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
67525         quotearg.c includes it.
67526
67527 2001-01-26  Jim Meyering  <meyering@lucent.com>
67528
67529         * lib/quotearg.c: Include stddef.h.
67530         * lib/quote.c: Include stddef.h.
67531         Reported by Axel Kittenberger.
67532
67533         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
67534         line in double quotes so that it evokes a better diagnostic.
67535         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
67536         Reported by Axel Kittenberger.
67537
67538 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
67539
67540         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
67541         as if it was a `charset'.
67542
67543 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
67544
67545         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
67546         has const.
67547
67548 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
67549
67550         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
67551         to avoid a warning.  Add back 'const' to inptr.
67552
67553 2001-01-20  Jim Meyering  <meyering@lucent.com>
67554
67555         Be sure that headers are checked before used in code compiled
67556         for the type checks.
67557         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
67558         In place of that, invoke jm_CHECK_ALL_TYPES.
67559         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
67560         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
67561         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
67562         The check for ssize_t was mistakenly run before the test for unistd.h.
67563
67564         The configure-time check for stdbool.h was missing.
67565         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
67566         (jm_PREREQ_HASH): New function.
67567
67568 2001-01-17  Jim Meyering  <meyering@lucent.com>
67569
67570         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
67571         for autoconf-2.49c.
67572         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
67573
67574 2001-01-16  Jim Meyering  <meyering@lucent.com>
67575
67576         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
67577         From Bruno Haible.
67578
67579 2001-01-14  Jim Meyering  <meyering@lucent.com>
67580
67581         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
67582         foo and bar.  Create conftestdir/ in the script, not in the C code.
67583         Remove directories in the script, not in the C code.
67584         Remove conftestdir{,2} before trying to create the directory.
67585         Make the entire configure script fail if the mkdir fails.
67586
67587 2001-01-14  Jim Meyering  <meyering@lucent.com>
67588
67589         * lib/rename.c: New file.  From Volker Borchert.
67590         Include stdlib.h, string.h or strings.h, and xalloc.h.
67591         Use strip_trailing_slashes rather than open-coding it.
67592
67593 2001-01-03  Paul Eggert  <eggert@twinsun.com>
67594
67595         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
67596
67597 2001-01-03  Jim Meyering  <meyering@lucent.com>
67598
67599         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
67600         of local `inptr' to avoid warning with some system declarations of
67601         iconv.
67602
67603 2001-01-02  Volker Borchert  <bt@teknon.de>
67604
67605         * m4/rename.m4: New file.
67606         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
67607
67608 2001-01-01  Jim Meyering  <meyering@lucent.com>
67609
67610         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
67611         even on systems with utmpx.h.  It's necessary for the declaration of
67612         utmp's ut_user member.  Reported by Andreas Jaeger.
67613
67614         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
67615         available. They are required for the declarations of getgrgid and
67616         getpwuid resp.
67617         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
67618         Reported by Andreas Jaeger.
67619
67620 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
67621
67622         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
67623         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
67624         so `make install' also works in VPATH builds.
67625
67626 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
67627
67628         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
67629         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
67630         can be used in subdirectories.
67631
67632 2000-12-29  Paul Eggert  <eggert@twinsun.com>
67633
67634         * lib/modechange.c: Do not assume that mode_t uses the
67635         traditional octal encoding.  E.g. "chmod 1 FOO" should set
67636         the other-execute bit of FOO even if S_IXOTH != 1.
67637
67638         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
67639         WOTH, XOTH, ALLM): New macros.
67640         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
67641          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
67642         Use them.
67643         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
67644         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
67645         (mode_compile):
67646         No need to use uintmax_t; unsigned long is long enough.
67647         Don't bother to get suffix since we don't use it.
67648
67649 2000-12-26  Jim Meyering  <meyering@lucent.com>
67650
67651         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
67652         better with autoheader.
67653
67654 2000-12-24  Jim Meyering  <meyering@lucent.com>
67655
67656         * lib/hash.c (is_prime): Return explicit boolean values.
67657         (hash_get_first): Return NULL to appease Irix5.6's 89.
67658         Reported by Nelson Beebe.
67659
67660 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
67661
67662         * lib/localcharset.c (locale_charset): Add support for Win32.
67663
67664 2000-12-18  Paul Eggert  <eggert@twinsun.com>
67665
67666         * lib/physmem.h, lib/physmem.c: New files.
67667
67668         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
67669         (noinst_HEADERS): Add physmem.h.
67670
67671         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
67672         't' for compatibility with Solaris 8 sort.
67673
67674 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
67675
67676         * lib/config.charset: Add support for BeOS.
67677
67678 2000-12-17  Jim Meyering  <meyering@lucent.com>
67679
67680         * m4/dos.m4 (jm_AC_DOS): New file and macro.
67681         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
67682
67683 2000-12-16  Jim Meyering  <meyering@lucent.com>
67684
67685         This bug had a serious impact on chown: `chown N:M FILE' (for integer
67686         N and M) would have treated it like `chown N:N FILE'.
67687
67688         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
67689
67690 2000-12-16  Jim Meyering  <meyering@lucent.com>
67691
67692         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
67693         SHELLS_FILE to a file name that's useful on djgpp systems.
67694         Include stdlib.h.
67695         (ADDITIONAL_DEFAULT_SHELLS): Define.
67696         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
67697         Based mostly on a patch from Prashant TR.
67698
67699 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
67700
67701         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
67702         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
67703         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
67704
67705 2000-12-08  Andreas Schwab  <schwab@suse.de>
67706
67707         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
67708         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
67709
67710 2000-12-07  Jim Meyering  <meyering@lucent.com>
67711
67712         * lib/stripslash.c (ISSLASH): Define.
67713         (strip_trailing_slashes): Use ISSLASH rather than comparing against
67714         `/'.
67715         From Prashant TR.
67716
67717         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
67718         (dir_name_r): Declare this function as static.
67719         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
67720         manifest itself on a name containing a mix of slashes and
67721         backslashes.
67722         Make this function work with names starting with a DOS-style
67723         drive letter and colon prefix.
67724         (dir_name): Append `.' if necessary.
67725         Based mostly on patches from Prashant TR and Eli Zaretskii.
67726
67727         * lib/dirname.h (dir_name_r): Remove prototype.
67728
67729 2000-12-06  Paul Eggert  <eggert@twinsun.com>
67730
67731         * m4/off_t-format.m4: Remove this file.
67732         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
67733
67734 2000-12-06  Jim Meyering  <meyering@lucent.com>
67735
67736         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
67737         replacement strtoull, we may well need the replacement strtoul, too.
67738         Check for declarations of strtoul and strtoull.
67739         Check for strtol.  Mainly as a cue to cause automake to include
67740         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
67741         Check for limits.h -- strtol.c needs it.
67742
67743 2000-12-05  Jim Meyering  <meyering@lucent.com>
67744
67745         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
67746
67747 2000-12-04  Jim Meyering  <meyering@lucent.com>
67748
67749         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
67750         Also include memory.h, stdlib.h, unistd.h if appropriate.
67751         Reported by Andreas Jaeger (conflicting declaration of malloc).
67752
67753 2000-12-02  Jim Meyering  <meyering@lucent.com>
67754
67755         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
67756         * m4/jm-macros.m4 (jm_MACROS): require it.
67757
67758 2000-12-02  Jim Meyering  <meyering@lucent.com>
67759
67760         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
67761
67762 2000-12-01  Paul Eggert  <eggert@twinsun.com>
67763
67764         * lib/memrchr.c: Include <config.h> before any system include file.
67765
67766 2000-11-30  Jim Meyering  <meyering@lucent.com>
67767
67768         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
67769
67770 2000-11-30  Jim Meyering  <meyering@lucent.com>
67771
67772         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
67773
67774 2000-11-29  Paul Eggert  <eggert@twinsun.com>
67775
67776         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
67777
67778 2000-11-26  Jim Meyering  <meyering@lucent.com>
67779
67780         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
67781
67782 2000-11-22  Paul Eggert  <eggert@twinsun.com>
67783
67784         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
67785         size of (size_t) -1; it's not portable.
67786
67787 2000-11-17  Jim Meyering  <meyering@lucent.com>
67788
67789         * lib/strstr.c: Update from GNU libc.
67790
67791 2000-11-17  Akim Demaille  <akim@epita.fr>
67792
67793         * lib/obstack.h: Formatting changes.
67794         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
67795         prevent type checking.
67796         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
67797         cast the value to (void *): assigning a `foo *' to a `void *'
67798         variable is valid.
67799         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
67800
67801 2000-11-16  Jim Meyering  <meyering@lucent.com>
67802
67803         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
67804
67805 2000-11-11  Jim Meyering  <meyering@lucent.com>
67806
67807         * lib/error.c: Add a couple #includes, merging from GNU libc version.
67808
67809 2000-11-10  Jim Meyering  <meyering@lucent.com>
67810
67811         * lib/obstack.h: Update from GNU libc.
67812         * lib/obstack.c: Likewise.
67813
67814 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
67815
67816         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
67817
67818 2000-11-06  Paul Eggert  <eggert@twinsun.com>
67819
67820         * lib/getusershell.c (setusershell): Use rewind rather than
67821         fseek/fseeko, to avoid configuration hassles with fseeko.
67822         Don't bother opening SHELLS_FILE if shellstream is NULL;
67823         it's not necessary.
67824
67825 2000-11-05  Jim Meyering  <meyering@lucent.com>
67826
67827         * lib/makepath.h (make_dir): Declare.
67828         * lib/makepath.c (make_dir): Remove `static' attribute.
67829         Tweak a comment.
67830
67831 2000-11-04  Jim Meyering  <meyering@lucent.com>
67832
67833         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
67834
67835 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
67836
67837         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
67838         last one in a bucket, advance to the next bucket.
67839
67840 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
67841
67842         * lib/fnmatch.c: Do not comment out all the code if we are using
67843         the GNU C library, because in some cases we are replacing buggy
67844         code in the GNU C library itself.
67845
67846 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
67847
67848         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
67849         (regex_compile): Catch bogus \(\1\).
67850
67851 2000-10-30  Paul Eggert  <eggert@twinsun.com>
67852
67853         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
67854         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
67855         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
67856
67857 2000-10-30  Paul Eggert  <eggert@twinsun.com>
67858
67859         * lib/error.h, getline.h, modechange.h:
67860         Remove "2000" from Copyright line, as the file hasn't been
67861         changed this year other than in the copyright notice.
67862
67863         * lib/xalloc.h: Add "2000" to Copyright line, as this file
67864         was changed this year.
67865
67866 2000-10-29  Jim Meyering  <meyering@lucent.com>
67867
67868         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
67869         renaming.
67870         * m4/ls-mntd-fs.m4: Likewise
67871
67872 2000-10-29  Jim Meyering  <meyering@lucent.com>
67873
67874         * lib/xstat.in: Fix grammar in comment.
67875
67876 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
67877
67878         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
67879         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
67880         doesn't define __restrict_arr.
67881
67882 2000-10-28  Jim Meyering  <meyering@lucent.com>
67883
67884         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
67885         (jm_PREREQ_MEMCHR): New function.
67886
67887 2000-10-28  Jim Meyering  <meyering@lucent.com>
67888
67889         * lib/memchr.c: Update from libc.
67890         Adjust for portability:
67891         [HAVE_STDLIB_H]: Include stdlib.h.
67892         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
67893         Undef __memchr, too.
67894         [!weak_alias]: Define __memchr to memchr.
67895
67896         * lib/regex.c: Update from libc.
67897         * lib/regex.h: Likewise.
67898         * lib/getopt1.c: Likewise.
67899         * lib/memcmp.c: Likewise.
67900
67901         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
67902         Avoid using fseek, when possible -- it's broken by design.
67903         Patch by Ulrich Drepper.
67904
67905 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
67906
67907         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
67908         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
67909         Giving in to popular pressure to shut up the compiler with casts.
67910
67911 2000-10-26  Jim Meyering  <meyering@lucent.com>
67912
67913         * lib/strftime.c: Update from libc.
67914
67915 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
67916
67917         * regex.c: More `unsigned char' -> `re_char' changes.
67918         Also change several `int' into `re_wchar_t'.
67919         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
67920         (PUSH_FAILURE_POINTER): Don't cast any more.
67921         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
67922         We want GCC to complain, since this piece of code makes
67923         re_match non-reentrant, which *should* be fixed.
67924         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
67925         (EXTEND_BUFFER): Use RETALLOC.
67926         (SET_LIST_BIT): Don't cast.
67927         (re_wchar_t): New type.
67928         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
67929         that those two functions will always properly return.
67930         (IMMEDIATE_QUIT_CHECK): Cast to void.
67931         (analyse_first): Use recursion rather than an explicit stack.
67932         (re_compile_fastmap): Can't fail anymore.
67933         (re_search_2): Don't check re_compile_fastmap for failure.
67934         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
67935         Now also sets the new value (passed in a new argument).
67936         (re_match_2_internal): Use it.
67937         Also, use a new var `reg' of type size_t when looping through regs
67938         rather than reuse the inappropriate `mcnt'.
67939
67940 2000-10-25  Jim Meyering  <meyering@lucent.com>
67941
67942         * lib/obstack.c: Update from libc.
67943
67944 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
67945
67946         * regex.c (regex_compile): Change the way of handling a range from
67947         a char less than 256 to a char not less than 256.
67948
67949 2000-10-24  Andrew Innes  <andrewi@gnu.org>
67950
67951         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
67952         NT-Emacs only.
67953         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
67954         so that re_search functions only quit when callers expect them to.
67955
67956 2000-10-23  Jim Meyering  <meyering@lucent.com>
67957
67958         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
67959         wrong.  That set_locale call must not have any side effects.
67960         From Paul Eggert.
67961
67962 2000-10-22  Jim Meyering  <meyering@lucent.com>
67963
67964         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
67965         [CYCLIC]: Remove now-unused definition.
67966
67967         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
67968         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
67969         Suggestion from Ulrich Drepper.
67970
67971 2000-10-21  Jim Meyering  <meyering@lucent.com>
67972
67973         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
67974         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
67975         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
67976
67977 2000-10-21  Jim Meyering  <meyering@lucent.com>
67978
67979         * lib/dirname.c (memrchr): Declare if necessary.
67980         (dir_name): Remove the restriction that there be no
67981         trailing slashes.  Now, this code skips past them, effectively
67982         ignoring them.
67983         [TEST_DIRNAME] (main): New unit tests.
67984
67985         * lib/memrchr.c: New file from GNU libc.
67986         Undef __memrchr, too.
67987         [!weak_alias]: Define __memrchr to memrchr.
67988         Guard weak_alias use with `#ifdef weak_alias'.
67989
67990 2000-10-21  Jim Meyering  <meyering@lucent.com>
67991
67992         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
67993         (dir_name): Use dir_name_r.
67994         * lib/dirname.h (dir_name_r): Declare it.
67995
67996 2000-10-17  Jim Meyering  <meyering@lucent.com>
67997
67998         * lib/quote.h (PARAMS): Define and use.
67999         Reported by Akim Demaille.
68000
68001         * lib/getopt.c: Update from libc.
68002
68003 2000-10-16  Jim Meyering  <meyering@lucent.com>
68004
68005         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
68006         setlocale.
68007         From Jan Fedak.
68008
68009 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
68010
68011         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
68012
68013 2000-09-25  Jim Meyering  <meyering@lucent.com>
68014
68015         * lib/md5.h (rol): Define (from GnuPG).
68016
68017         * lib/sha.c: Give credit (GnuPG) where due.
68018         (M): Use rol rather than open-coding it.
68019         Add a FIXME comment.
68020
68021 2000-09-21  Jim Meyering  <meyering@lucent.com>
68022
68023         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
68024         Reported by Michael Stone.
68025
68026 2000-09-20  Jim Meyering  <meyering@lucent.com>
68027
68028         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
68029         (noinst_HEADERS): Add sha.h.
68030         Based on code from Scott G. Miller and from GnuPG.
68031
68032 2000-09-18  Jim Meyering  <meyering@lucent.com>
68033
68034         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
68035         LIBS. Otherwise, everyone ends up linking with -lelf for some
68036         configurations.
68037         Reported by Mike Stone.
68038
68039 2000-09-15  Jim Meyering  <meyering@lucent.com>
68040
68041         * lib/regex.c: Update from libc.
68042
68043 2000-09-10  Jim Meyering  <meyering@lucent.com>
68044
68045         * lib/getopt.c (_getopt_internal): Update from glibc.
68046
68047 2000-09-09  Jim Meyering  <meyering@lucent.com>
68048
68049         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
68050         think it should be used as a general replacement for isascii.
68051         * lib/fnmatch.c: Likewise.
68052         * lib/mbswidth.c: Likewise
68053         * lib/regex.c: Likewise.
68054
68055         Don't use atoi.
68056         * lib/userspec.c: Include sys/param.h and limits.h.
68057         Include xstrtol.h.
68058         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
68059         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
68060         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
68061         UID, GID.  Check range.
68062
68063 2000-09-06  Jim Meyering  <meyering@lucent.com>
68064
68065         * lib/getopt.c (_getopt_internal): Update from glibc.
68066
68067 2000-08-30  Jim Meyering  <meyering@lucent.com>
68068
68069         * lib/strftime.c: Merge in changes from GNU libc.
68070
68071 2000-08-26  Jim Meyering  <meyering@lucent.com>
68072
68073         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
68074         * m4/fpending.m4: New file.
68075
68076 2000-08-26  Jim Meyering  <meyering@lucent.com>
68077
68078         * lib/closeout.c: Include "__fpending.h".
68079         (close_stdout_status): Return right away if there's nothing to flush.
68080
68081         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
68082         * lib/__fpending.c: New file.
68083         * lib/__fpending.h: New file.
68084
68085 2000-08-20  Jim Meyering  <meyering@lucent.com>
68086
68087         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
68088         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
68089         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
68090
68091 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
68092
68093         Improve fileutils installation on systems where running
68094         programs (like install) can't be unlinked.
68095         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
68096         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
68097
68098 2000-08-07  Paul Eggert  <eggert@twinsun.com>
68099
68100         Standardize on "memory exhausted" instead of "Memory exhausted"
68101         or "virtual memory exhausted".
68102         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
68103         "virtual memory exhausted".
68104         * lib/same.c (same_name): Invoke xalloc_die instead of printing
68105         our own message.
68106         * lib/userspec.c (parse_user_spec): Likewise.
68107         * lib/bumpalloc.h: comment fix
68108         * lib/same.c, userspec.c: Include xalloc.h.
68109
68110         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
68111         not char *const and pointing to a constant array.
68112         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
68113         (xrealloc): Comment fix.
68114
68115         * lib/userspec.c (parse_user_spec):
68116         Don't translate a message until just before returning,
68117         to avoid unnecessary translation.
68118
68119 2000-08-07  Jim Meyering  <meyering@lucent.com>
68120
68121         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
68122         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
68123         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
68124         getgroups.c, gethostname.c, getopt.h, group-member.c,
68125         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
68126         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
68127         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
68128         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
68129         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
68130         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
68131         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
68132         yesno.c: Back out Copyright date changes for each file with no change
68133         this year.  This eases coordination with other programs using the same
68134         source code modules.  From Paul Eggert.
68135
68136 2000-08-06  Paul Eggert  <eggert@twinsun.com>
68137
68138         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
68139         not char, for compatibility with glibc 2.1.3 strftime.c.
68140
68141 2000-08-03  Greg McGary  <greg@mcgary.org>
68142
68143         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
68144         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
68145         (EXTEND_BUFFER): Use them.
68146
68147 2000-08-01  Jim Meyering  <meyering@lucent.com>
68148
68149         * lib/dirname.c (ISSLASH): Define.
68150         (BACKSLASH_IS_PATH_SEPARATOR): Define.
68151         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
68152         both `\' and `/' may be use as path separators.
68153         Based on a patch from Prashant TR.
68154
68155 2000-07-31  Paul Eggert  <eggert@twinsun.com>
68156
68157         * lib/quotearg.c (quotearg_n_options): Don't make the initial
68158         slot vector a constant, since it might get modified.
68159
68160 2000-07-31  Jim Meyering  <meyering@lucent.com>
68161
68162         * lib/xmalloc.c: Use `virtual memory exhausted', not
68163         `Memory exhausted'.
68164         * lib/obstack.c (print_and_abort): Likewise.
68165
68166 2000-07-30  Paul Eggert  <eggert@twinsun.com>
68167
68168         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
68169         buffer, so that the caller can always quote one small
68170         component of a "memory exhausted" message in slot 0.
68171         From a suggestion by Jim Meyering.
68172
68173 2000-07-30  Jim Meyering  <meyering@lucent.com>
68174
68175         * lib/makepath.c (make_path): Quote the other instance, too.
68176
68177         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
68178         (STATIC_BUF_SIZE): Define.
68179         (quotearg_n_options): Use only statically allocated storage when
68180         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
68181         than STATIC_BUF_SIZE.
68182
68183 2000-07-29  Jim Meyering  <meyering@lucent.com>
68184
68185         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
68186         * lib/dirname.c (dir_name): Likewise.
68187
68188         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
68189         `/'.
68190
68191         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
68192         (dir_name): Assert that there are no trailing slashes.
68193
68194 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
68195
68196         * lib/mbswidth.h (mbswidth): Add a flags argument.
68197         (mbswidth): New declaration.
68198         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
68199         * lib/mbswidth.c (mbswidth): Add a flags argument.
68200         (mbsnwidth): New function.
68201
68202 2000-07-24  Jim Meyering  <meyering@lucent.com>
68203
68204         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
68205
68206 2000-07-23  Paul Eggert  <eggert@twinsun.com>
68207
68208         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
68209
68210 2000-07-23  Paul Eggert  <eggert@twinsun.com>
68211
68212         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
68213         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
68214         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
68215         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
68216         invoke multibyte primitives.
68217
68218 2000-07-23  Paul Eggert  <eggert@twinsun.com>
68219
68220         * lib/quotearg.c:
68221         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
68222         so that mbstate_t is always defined.
68223
68224         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
68225         be 1 in at least one GCC installation, and this configuration
68226         error is likely to be common.  Ignoring MB_LEN_MAX hurts
68227         performance on hosts that have mbrtowc but have only unibyte
68228         locales, but I assume these hosts are rare.
68229
68230 2000-07-23  Paul Eggert  <eggert@twinsun.com>
68231
68232         * lib/mbswidth.c (_XOPEN_SOURCE):
68233         Don't define; this causes problems on Solaris 7.
68234         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
68235
68236 2000-07-23  Jim Meyering  <meyering@lucent.com>
68237
68238         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
68239         too: getgrgid, getpwuid, getuid.
68240
68241 2000-07-23  Jim Meyering  <meyering@lucent.com>
68242
68243         * lib/basename.c (base_name): Add an assertion.
68244
68245 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
68246
68247         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
68248         shadow its mbsinit function.
68249
68250 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
68251
68252         * lib/mbswidth.h: New file.
68253         * lib/mbswidth.c: New file.
68254         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
68255         (noinst_HEADERS): Add mbswidth.h.
68256
68257 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
68258
68259         * lib/config.charset: Add support for FreeBSD. Improve support for
68260         HP-UX and IRIX 6.
68261
68262 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
68263
68264         * m4/mbswidth.m4: New file.
68265         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
68266
68267 2000-07-15  Jim Meyering  <meyering@lucent.com>
68268
68269         * lib/makepath.c: Include quote.h.
68270         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
68271         corresponding argument in a `quote (...)' call.
68272         Give better diagnostics.
68273
68274         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
68275         (noinst_HEADERS): Add quote.h.
68276
68277         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
68278         from tar's src/misc.c.
68279         * lib/quote.h: New file.  Prototypes for same.
68280
68281 2000-07-14  Paul Eggert  <eggert@twinsun.com>
68282
68283         From a suggestion by Bruno Haible.
68284         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
68285         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
68286         to decide whether to define the BeOS workaround macro;
68287         this adjusts to the change to AC_MBSTATE_T.
68288
68289 2000-07-14  Jim Meyering  <meyering@lucent.com>
68290
68291         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
68292         jm_AC_TYPE_UINTMAX_T.
68293
68294 2000-07-13  Paul Eggert  <eggert@twinsun.com>
68295
68296         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
68297
68298         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
68299         quotearg_buffer_restyled): Add support for
68300         clocale_quoting_style.  Undo previous change to
68301         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
68302         and "{RIGHT QUOTATION MARK}" msgids.
68303
68304 2000-07-10  Paul Eggert  <eggert@twinsun.com>
68305
68306         From a suggestion by Bruno Haible.
68307         * m4/mbstate_t.m4 (AC_MBSTATE_T):
68308         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
68309         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
68310         and mbstate_t, to a single-part test that simply defines mbstate_t.
68311         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
68312         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
68313
68314 2000-07-10  Jim Meyering  <meyering@lucent.com>
68315
68316         * m4/strerror_r.m4: Mirror the correction made in autoconf.
68317
68318         * m4/gnu-source.m4: Output to confdefs.h directly.
68319         Suggestion from Akim Demaille.
68320
68321 2000-07-09  Paul Eggert  <eggert@twinsun.com>
68322
68323         The old behavior of quoting `like this' doesn't look good with
68324         newer, ISO-style fonts.  See:
68325         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
68326
68327         Instead, quote "like this" by default.  Let the translator
68328         tailor the locale-specific quoting behavior by providing
68329         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
68330
68331         * lib/quotearg.c (N_): New macro.
68332         (gettext_default): New function.
68333         (quotearg_buffer_restyled): Use
68334         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
68335         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
68336
68337 2000-07-09  Jim Meyering  <meyering@lucent.com>
68338
68339         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
68340         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
68341
68342         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
68343         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
68344
68345 2000-07-09  Jim Meyering  <meyering@lucent.com>
68346
68347         * lib/Most files: Update copyright dates to include 2000.
68348
68349 2000-07-08  Jim Meyering  <meyering@lucent.com>
68350
68351         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
68352         if not defined.
68353         (xgethostname): Remove now-unnecessary #ifdef.
68354         Move declaration of `err' into loop where it's used.
68355
68356 2000-07-05  Paul Eggert  <eggert@twinsun.com>
68357         and Bruno Haible  <haible@clisp.cons.org>
68358
68359         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
68360         only if the test for an object-type mbstate_t fails.  This
68361         prevents us from mistakenly reporting that mbstate_t is a
68362         system object type after we "#define mbstate_t int" to work
68363         around its lack.
68364
68365 2000-07-05  Paul Eggert  <eggert@twinsun.com>
68366         and Bruno Haible  <haible@clisp.cons.org>
68367
68368         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
68369
68370 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
68371
68372         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
68373         to strerror_r.
68374         Include <ctype.h> for use of isalpha.
68375
68376 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
68377
68378         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
68379         by allocating a larger buffer. Test the gethostname return value for
68380         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
68381         returns an error and ENAMETOOLONG isn't defined.
68382
68383 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
68384
68385         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
68386         dimension.
68387
68388 2000-07-04  Jim Meyering  <meyering@lucent.com>
68389
68390         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
68391         of the deprecated AC_CHECKING.
68392
68393 2000-07-04  Jim Meyering  <meyering@lucent.com>
68394
68395         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
68396         Reported by Bruno Haible.
68397
68398 2000-07-04  Jim Meyering  <meyering@lucent.com>
68399
68400         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
68401         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
68402         lacks mbrtowc.
68403
68404 2000-07-03  Paul Eggert  <eggert@twinsun.com>
68405
68406         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
68407         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
68408
68409 2000-07-03  Paul Eggert  <eggert@twinsun.com>
68410         and Bruno Haible  <haible@clisp.cons.org>
68411
68412         * lib/quotearg.c (mbrtowc):
68413         Assign to *pwc, and return 1 only if result is nonzero.
68414         (iswprint): Use ISPRINT when substituting our own mbrtowc.
68415
68416 2000-07-03  Jim Meyering  <meyering@lucent.com>
68417
68418         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
68419
68420 2000-07-03  Jim Meyering  <meyering@lucent.com>
68421
68422         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
68423         This is necessary to get a definition of e.g., UTMP_FILE on
68424         HP-UX 10.20.
68425         From Bob Proulx.
68426
68427 2000-07-02  Jim Meyering  <meyering@lucent.com>
68428
68429         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
68430
68431         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
68432         AC_LIBOBJ(function_name).
68433         * m4/chown.m4: Likewise.
68434         * m4/fnmatch.m4: Likewise.
68435         * m4/ftruncate.m4: Likewise.
68436         * m4/getgroups.m4: Likewise.
68437         * m4/getline.m4: Likewise.
68438         * m4/group-member.m4: Likewise.
68439         * m4/jm-macros.m4: Likewise.
68440         * m4/lstat.m4: Likewise.
68441         * m4/malloc.m4: Likewise.
68442         * m4/memcmp.m4: Likewise.
68443         * m4/nanosleep.m4: Likewise.
68444         * m4/putenv.m4: Likewise.
68445         * m4/realloc.m4: Likewise.
68446         * m4/regex.m4: Likewise.
68447         * m4/stat.m4: Likewise.
68448         * m4/strftime.m4: Likewise.
68449
68450 2000-07-02  Jim Meyering  <meyering@lucent.com>
68451
68452         * lib/quotearg.c (mbstate_t): Don't define here.
68453
68454 2000-07-02  Jim Meyering  <meyering@lucent.com>
68455
68456         * lib/nanosleep.c (SIGCONT): Define if not already defined.
68457
68458 2000-07-01  Jim Meyering  <meyering@lucent.com>
68459
68460         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
68461
68462 2000-07-01  Jim Meyering  <meyering@lucent.com>
68463
68464         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
68465         problem.
68466
68467 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
68468
68469         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
68470         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
68471
68472 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
68473
68474         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
68475         per change in ../m4/ls-mntd-fs.m4.
68476         (read_filesystem_list): Ignore symbolic links.
68477
68478 2000-06-29  Jim Meyering  <meyering@lucent.com>
68479
68480         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
68481         for declaration of strcmp.
68482
68483         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
68484
68485         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
68486         Avoid warning by casting result to `char *' to remove `const'.
68487
68488 2000-06-28  Jim Meyering  <meyering@lucent.com>
68489
68490         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
68491         included by quotearg.c, for which we perform this test.  From
68492         Bruno Haible.
68493
68494 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
68495
68496         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
68497         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
68498         <utmpx.h> exists, put readutmp.o into LIBOBJS.
68499
68500 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
68501
68502         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
68503
68504 2000-06-26  Paul Eggert  <eggert@twinsun.com>
68505
68506         savedir now sets errno on failure and invokes xmalloc to get memory.
68507         Fix a couple of other minor bugs while we're at it.
68508
68509         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
68510         (NAMLEN): Remove macro.
68511         (malloc, realloc): Remove decls.
68512         (stpcpy): Likewise.
68513         ("xalloc.h"): Include.
68514         (NAME_SIZE_DEFAULT): New macro.
68515         (savedir): Use xmalloc / xrealloc to allocate memory.
68516         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
68517         Skip "" directory entries.
68518         Use strlen to calculate directory entry length, since the old method
68519         is rarely used these days and isn't worth supporting.
68520         Don't use a pointer after freeing it.
68521         Check for integer overflow when calculating allocation size.
68522         Use memcpy to copy entries, instead of stpcpy.
68523         Set errno properly when returning NULL.
68524         Check for readdir error.
68525
68526 2000-06-26  Jim Meyering  <meyering@lucent.com>
68527
68528         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
68529
68530 2000-06-25  Jim Meyering  <meyering@lucent.com>
68531
68532         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
68533         Linux header bug when _XOPEN_SOURCE is defined to 500.
68534
68535 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
68536
68537         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
68538         deficiency.
68539
68540 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
68541
68542         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
68543         Include xalloc.h.
68544         Don't include <stdlib.h>.  Don't declare malloc, realloc.
68545
68546 2000-06-24  Jim Meyering  <meyering@lucent.com>
68547
68548         * m4/strerror_r.m4: Revive this file -- to try out an experimental
68549         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
68550         for which strerror does return char*, but which lacks a conveniently
68551         accessible declaration of the function.  If the compile-test says
68552         strerror_r doesn't work, then resort to a `run'-test that works on
68553         BeOS and segfaults on DEC Unix.
68554
68555 2000-06-24  Jim Meyering  <meyering@lucent.com>
68556
68557         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
68558
68559 2000-06-23  Paul Eggert  <eggert@twinsun.com>
68560
68561         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
68562         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
68563
68564 2000-06-23  Paul Eggert  <eggert@twinsun.com>
68565
68566         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
68567         (mbrtowc, mbstate_t): Define substitutes if
68568         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
68569         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
68570         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
68571
68572 2000-06-23  Jim Meyering  <meyering@lucent.com>
68573
68574         * m4/afs.m4: Add missing AC_MSG_RESULT.
68575         Reported by Bruno Haible.
68576
68577         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
68578         Suggestion from Bruno Haible.
68579
68580 2000-06-23  Jim Meyering  <meyering@lucent.com>
68581
68582         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
68583
68584 2000-06-21  Jim Meyering  <meyering@lucent.com>
68585
68586         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
68587
68588 2000-06-21  Jim Meyering  <meyering@lucent.com>
68589
68590         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
68591         (noinst_HEADERS): Add getstr.h.
68592
68593         * lib/getline.c (getstr): Move into a separate file.
68594         * lib/getstr.c (getstr): New file, extracted from getline.c, with
68595         the following changes: new parameter, delim2; both delim[12]
68596         parameters have type `int', not `char'.  The latter would lose
68597         with 8-bit delimiters.
68598         * lib/getstr.h: New file.
68599
68600 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
68601
68602         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
68603         than 1024, return a memory chunk of least possible size, instead
68604         of size PATH_MAX + 2. In the loop, increment the size proportionally.
68605         Use free/xmalloc instead of xrealloc to avoid copying for very long
68606         paths.
68607
68608 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
68609
68610         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
68611         the empty string.
68612
68613 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
68614
68615         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
68616         address, not strdup.  Include <stdlib.h> and don't declare free().
68617
68618 2000-06-19  Jim Meyering  <meyering@lucent.com>
68619
68620         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
68621
68622 2000-06-18  Jim Meyering  <meyering@lucent.com>
68623
68624         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
68625
68626         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
68627         `checking whether...' message to be consistent with that of the
68628         lstat test.
68629
68630 2000-06-18  Jim Meyering  <meyering@lucent.com>
68631
68632         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
68633         Besides, these days every porting target provides a mkdir function.
68634
68635         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
68636         needed. (this snippet comes from src/system.h).
68637
68638 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
68639
68640         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
68641
68642 2000-06-15  Paul Eggert  <eggert@twinsun.com>
68643
68644         * lib/human.c (adjust_value): New function.
68645         (human_readable_inexact): Apply rounding style even when
68646         printing approximate values.
68647
68648 2000-06-14  Paul Eggert  <eggert@twinsun.com>
68649
68650         * lib/human.c (human_readable_inexact): Allow an input block
68651         size that is not a multiple of the output block size, and vice versa.
68652         Reported by Piergiorgio Sartor.
68653
68654 2000-06-14  Paul Eggert  <eggert@twinsun.com>
68655
68656         * lib/getdate.y (get_date): Apply relative times after time
68657         zone indicator, not before.  Reported by Todd A. Jacobs.
68658
68659 2000-06-13  Jim Meyering  <meyering@lucent.com>
68660
68661         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
68662
68663         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
68664
68665 2000-06-12  Paul Eggert  <eggert@twinsun.com>
68666
68667         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
68668
68669 2000-06-12  Jim Meyering  <meyering@lucent.com>
68670
68671         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
68672         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
68673         optional argument.
68674         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
68675         the optional argument, `lib'.
68676
68677 2000-06-08  Jim Meyering  <meyering@lucent.com>
68678
68679         * m4/largefile.m4: Remove file (now that it's part of autoconf).
68680
68681 2000-06-04  Paul Eggert  <eggert@twinsun.com>
68682
68683         Rewrite largefile configuration so that we don't need to run
68684         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
68685         AC_CANONICAL_HOST in configure.in -- jmm]
68686
68687         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
68688         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
68689         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
68690         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
68691         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
68692         All uses changed.
68693         Instead of inspecting the output of getconf, try to compile the
68694         test program without and with the macro definition.
68695         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
68696         for getconf.  Instead, check for the needed flags by compiling
68697         test programs.
68698
68699 2000-06-04  Paul Eggert  <eggert@twinsun.com>
68700
68701         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
68702
68703 2000-06-04  Jim Meyering  <meyering@lucent.com>
68704
68705         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
68706         SunOS 4.1.4 for which gid_t is an unsigned type.
68707
68708 2000-06-03  Jim Meyering  <meyering@lucent.com>
68709
68710         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
68711         now that autoconf requires that.
68712
68713         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
68714         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
68715         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
68716
68717 2000-06-03  Jim Meyering  <meyering@lucent.com>
68718
68719         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
68720
68721 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
68722
68723         * m4/glibc21.m4: New file.
68724         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
68725
68726 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
68727
68728         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
68729         newer, don't install charset.alias.
68730         * lib/config.charset: Change the Linux/glibc rules so they become empty
68731         on glibc-2.1 or newer.
68732
68733 2000-06-02  Jim Meyering  <meyering@lucent.com>
68734
68735         * lib/mountlist.c: Back out last change.  Instead, do this...
68736         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
68737         me_dummy member using the same `ignore'-testing code.
68738         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
68739         fs_type strings.
68740         From Mark D. Roth.
68741
68742 2000-05-29  Jim Meyering  <meyering@lucent.com>
68743
68744         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
68745         mounts with the `ignore' attribute.  Based on a patch from
68746         Mark D. Roth.
68747
68748 2000-05-28  Jim Meyering  <meyering@lucent.com>
68749
68750         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
68751         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68752         * m4/stat.m4: Likewise.
68753         * m4/lstat.m4: Likewise.
68754         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
68755
68756         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
68757         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
68758
68759 2000-05-26  Jim Meyering  <meyering@lucent.com>
68760
68761         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
68762
68763 2000-05-24  Jim Meyering  <meyering@lucent.com>
68764
68765         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
68766         autoconf requires that.
68767         * m4/lib-check.m4: Likewise.
68768         * m4/jm-macros.m4: Likewise.
68769         * m4/strftime.m4: Likewise.
68770
68771         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
68772         AC_CHECK_DECLS, now that autoconf requires that.
68773
68774 2000-05-22  Jim Meyering  <meyering@lucent.com>
68775
68776         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68777         * m4/lstat.m4: Likewise.
68778
68779 2000-05-22  Jim Meyering  <meyering@lucent.com>
68780
68781         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
68782
68783 2000-05-20  Jim Meyering  <meyering@lucent.com>
68784
68785         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
68786         (jm_PREREQ): Use it.
68787
68788 2000-05-18  Jim Meyering  <meyering@lucent.com>
68789
68790         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
68791         back, too, since it may have been modified by allocate_entry.
68792         (hash_delete): Rewrite to use neither the assignment operator
68793         nor the comma operator in an if-expression.
68794
68795 2000-05-15  Paul Eggert  <eggert@twinsun.com>
68796
68797         * lib/closeout.c:
68798         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
68799         Remove; no longer needed.
68800         "quotearg.h": Add include.
68801         (file_name): Do not bother to explicitly initialize to NULL; it's less
68802         efficient on some hosts.
68803         (close_stdout_status): Remove test as to whether stdout was already
68804         closed; it breaks for the case "echo x | sort >&-".
68805         Quote file name colons.
68806         Do not assume that _("write error") lacks format strings.
68807
68808 2000-05-15  Jim Meyering  <meyering@lucent.com>
68809
68810         * lib/version-etc.c (version_etc_copyright): Update the copyright
68811         string used in all --version output.
68812
68813 2000-05-14  Jim Meyering  <meyering@lucent.com>
68814
68815         * lib/closeout.c (close_stdout_set_file_name): New function.
68816         (close_stdout_status): Use new file-scoped global.
68817         Return right away if fstat says the stdout file descriptor is invalid.
68818         * lib/closeout.h (close_stdout_set_file_name): Declare.
68819
68820 2000-05-10  Jim Meyering  <meyering@lucent.com>
68821
68822         * lib/closeout.c [default_exit_status]: New file-scoped variable.
68823         (close_stdout_set_status): New function.
68824         * lib/closeout.h (close_stdout_set_status): Declare.
68825
68826 2000-05-09  Jim Meyering  <meyering@lucent.com>
68827
68828         * m4/gettext.m4: Rename this...
68829         * m4/libintl.m4: ...to this.
68830
68831 2000-05-08  Jim Meyering  <meyering@lucent.com>
68832
68833         * lib/long-options.c: Don't include closeout.h.
68834         (parse_long_options): Don't call close_stdout for --version.
68835
68836 2000-05-06  Paul Eggert  <eggert@twinsun.com>
68837
68838         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
68839         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
68840         2.1.3 bug.  This avoids a clash when files like regex.c define
68841         _GNU_SOURCE.
68842
68843 2000-05-06  Jim Meyering  <meyering@lucent.com>
68844
68845         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
68846         (AC_REPLACE_FUNCS): Add strnlen.
68847
68848         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
68849         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
68850
68851         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
68852         AC_SEARCH_LIBS call for nanosleep.
68853         (LIB_NANOSLEEP): Set and AC_SUBST.
68854
68855 2000-05-06  Jim Meyering  <meyering@lucent.com>
68856
68857         * lib/strnlen.c: Undefine __strnlen and strnlen.
68858         [!weak_alias]: Define __strnlen to strnlen.
68859
68860         * lib/atexit.c: New file, from libiberty.
68861
68862 2000-05-06  Jim Meyering  <meyering@lucent.com>
68863
68864         * lib/closeout.c (close_stdout_status): Also check for errors on the
68865         stderr stream.
68866
68867 2000-05-05  Jim Meyering  <meyering@lucent.com>
68868
68869         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
68870         AC_SEARCH_LIBS call for clock_gettime.
68871         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
68872
68873         * m4/search-libs.m4: Update from autoconf.
68874
68875         su doesn't work on Solaris 2.6.
68876         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
68877         <shadow.h>.  Reported by Dragos Harabor.
68878
68879 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
68880
68881         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
68882         memcpy instead of xmalloc, xrealloc, path_concat.
68883         (locale_charset): Treat empty environment variables as absent.
68884         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
68885
68886 2000-05-04  Jim Meyering  <meyering@lucent.com>
68887
68888         * lib/getopt.c: Update from glibc.
68889         * lib/obstack.c: Likewise.
68890         * lib/obstack.h: Likewise.
68891         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
68892         file
68893
68894         * lib/regex.h: Likewise.
68895         * lib/strndup.c: Likewise.
68896         * lib/strnlen.c: New file, from glibc.
68897
68898 2000-05-03  Jim Meyering  <meyering@lucent.com>
68899
68900         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
68901
68902 2000-05-02  Paul Eggert  <eggert@twinsun.com>
68903
68904         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
68905         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
68906         compile-time test, rather than inspecting host and OS, to
68907         decide whether to define _LARGEFILE_SOURCE.
68908
68909 2000-05-01  Jim Meyering  <meyering@lucent.com>
68910
68911         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
68912
68913         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
68914         Based on a patch from Bruno Haible.
68915
68916 2000-05-01  Jim Meyering  <meyering@lucent.com>
68917
68918         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
68919
68920 2000-04-29  Jim Meyering  <meyering@lucent.com>
68921
68922         * lib/path-concat.c: Declare strdup only if it's not defined.
68923         * lib/canon-host.c: Likewise.
68924
68925 2000-04-28  Jim Meyering  <meyering@lucent.com>
68926
68927         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
68928         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
68929         is included first, then limits.h is included by locale.h by libintl.h.
68930         From John David Anglin.
68931
68932 2000-04-25  Jim Meyering  <meyering@lucent.com>
68933
68934         * lib/makepath.c (S_IRWXUGO): Define.
68935         (make_path): Always perform explicit chmod if MODE specifies any
68936         of the `special' permission bits.  Prompted by a bug report against
68937         install from Mate Wierdl and Joost van Baal.
68938
68939 2000-04-18  Jim Meyering  <meyering@lucent.com>
68940
68941         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
68942         (jm_PREREQ): Use it.
68943
68944 2000-04-18  Jim Meyering  <meyering@lucent.com>
68945
68946         * lib/README: New file.
68947
68948         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
68949         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
68950
68951 2000-04-17  Jim Meyering  <meyering@lucent.com>
68952
68953         Get it right :-)
68954         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
68955         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
68956         Suggestion from Akim Demaille.
68957
68958 2000-04-17  Jim Meyering  <meyering@lucent.com>
68959
68960         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
68961         the definition of it to rpl_strftime also defined-away the system's
68962         declaration.
68963
68964 2000-04-15  Jim Meyering  <meyering@lucent.com>
68965
68966         Use `C' to denote so-called `contiguous' files, the same way
68967         that tar does.
68968         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
68969         (ftypelet): Use S_ISCTG.
68970         From Michael Deutschmann.
68971
68972 2000-04-14  Jim Meyering  <meyering@lucent.com>
68973
68974         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
68975         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
68976         clobbered.
68977
68978 2000-04-14  Jim Meyering  <meyering@lucent.com>
68979
68980         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
68981
68982 2000-04-13  Jim Meyering  <meyering@lucent.com>
68983
68984         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
68985         AH_VERBATIM to insert required #ifndef into config.h.in.
68986         Suggestion from Akim Demaille.
68987
68988 2000-04-12  Jim Meyering  <meyering@lucent.com>
68989
68990         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
68991         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
68992         Christian Krackowizer.
68993
68994         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
68995         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
68996         (AC_SYS_LARGEFILE): Require.
68997         (AM_C_PROTOTYPES): Require.
68998
68999 2000-04-08  Jim Meyering  <meyering@lucent.com>
69000
69001         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
69002         names don't conflict.  Reported by Eli Zaretskii.
69003
69004 2000-04-07  Jim Meyering  <meyering@lucent.com>
69005
69006         * lib/putenv.c: Move inclusion of errno.h so it follows that of
69007         sys/types.h, to work around system header problems on AIX 3.2.5.
69008         From Bruno Haible.
69009
69010 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
69011
69012         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
69013         bug.  Deal with the different error behavior of Irix iconv.
69014
69015 2000-04-05  Paul Eggert  <eggert@twinsun.com>
69016
69017         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
69018         IRIX if the installer said otherwise.
69019
69020 2000-04-05  Jim Meyering  <meyering@lucent.com>
69021
69022         Portability tweaks required for ultrix4.3.
69023         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
69024         (jm_CHECK_DECLS): Add getutent to the list of functions.
69025         (_jm_DECL_HEADERS): Add utmpx.h.
69026         From John David Anglin.
69027
69028         * m4/strftime.m4: Back out the 2000-04-02 change.
69029         Instead of that change, simply undefine putenv in the test program.
69030
69031 2000-04-05  Jim Meyering  <meyering@lucent.com>
69032
69033         Portability tweaks required for ultrix4.3.
69034         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
69035         getutent.
69036         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
69037         * lib/canon-host.c: Declare strdup.
69038         * lib/path-concat.c: Likewise.
69039         From John David Anglin.
69040
69041 2000-04-04  Jim Meyering  <meyering@lucent.com>
69042
69043         Be more DOS 8.3-friendly.
69044         * lib/ref-add.sin: Renamed from ref-add.sed.in.
69045         * lib/ref-del.sin: Renamed from ref-del.sed.in.
69046         * lib/Makefile.am: Reflect renaming.
69047         Reported by Eli Zaretskii.
69048
69049         Use a temporary file name that won't clash with `charset.alias'
69050         in the DOS 8.3 name space.
69051         * lib/Makefile.am (charset_tmp): Define.
69052         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
69053         (uninstall-local): Likewise.
69054         Reported by Eli Zaretskii.
69055
69056 2000-04-03  Jim Meyering  <meyering@lucent.com>
69057
69058         * m4/gettext.m4: Fix typo in comment.
69059
69060         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
69061         textutils/configure.in).  Suggestion from Paul Eggert.
69062         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
69063
69064 2000-04-02  Paul Eggert  <eggert@twinsun.com>
69065
69066         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
69067         variable in the shell rather than using putenv, which isn't
69068         portable.  This avoids the configure-time inter-test dependency
69069         on the potentially-renamed putenv function.
69070
69071 2000-03-30  Paul Eggert  <eggert@twinsun.com>
69072
69073         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
69074         before checking struct stat.st_blksize, so that
69075         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
69076
69077 2000-03-29  Paul Eggert  <eggert@twinsun.com>
69078
69079         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
69080         since strftime.c uses HAVE_STRFTIME to decide whether to use
69081         the underlying strftime.
69082
69083 2000-03-29  Paul Eggert  <eggert@twinsun.com>
69084
69085         * lib/time/strftime.c (my_strftime): Make sure we call the system
69086         strftime, not ourselves, when invoking the underlying strftime.
69087
69088 2000-03-24  Jim Meyering  <meyering@lucent.com>
69089
69090         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
69091         (charset_alias): Define.
69092         (install-exec-local): Factor out common code.
69093         (uninstall-local): Split lines longer than 80.
69094         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
69095         (SUFFIXES): Define.
69096         (.sed.in.sed): New rule.  Don't redirect directly to $@.
69097         (CLEANFILES): Add ref-add.sed and ref-del.sed.
69098
69099 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
69100
69101         * lib/config.charset: Output a line containing "Packages using this
69102         file".
69103         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
69104         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
69105         ref-del.sed): New rules.
69106
69107 2000-03-17  Jim Meyering  <meyering@lucent.com>
69108
69109         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
69110         Otherwise, include <strings.h>
69111
69112 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
69113
69114         * lib/unicodeio.c (utf8_wctomb): New function.
69115         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
69116         format instead of in UCS-4 with platform dependent endianness.
69117
69118 2000-03-10  Jim Meyering  <meyering@lucent.com>
69119
69120         * m4/lib-check.m4: Look for getspnam in -lgen, too.
69121         From Marco Franzen.
69122
69123 2000-03-07  Paul Eggert  <eggert@twinsun.com>
69124
69125         * lib/savedir.c (savedir): Work even if directory size is
69126         negative; this can happen with some screwy NFS configurations.
69127
69128 2000-03-06  Jim Meyering  <meyering@lucent.com>
69129
69130         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
69131         if it's NULL (because we ran out of memory).  From Bruno Haible.
69132
69133 2000-03-05  Jim Meyering  <meyering@lucent.com>
69134
69135         * lib/localcharset.c ("path-concat.h"): Include.
69136         (get_charset_aliases): Use path_concat instead of ANSI string
69137         concatenation.
69138
69139         * lib/unicodeio.h (PARAMS): Define.
69140         Use it to guard prototype.
69141
69142 2000-03-04  Jim Meyering  <meyering@lucent.com>
69143
69144         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
69145         for lib/localcharset.c.
69146
69147 2000-03-04  Jim Meyering  <meyering@lucent.com>
69148
69149         * lib/Makefile.am (install-exec-local): Create $(libdir) before
69150         installing into it.
69151         (uninstall-local): Uncomment this rule so `make distcheck' works
69152         once again.
69153
69154         * lib/unicodeio.c (<errno.h>): Include it.
69155         (errno): Declare if not defined.
69156
69157         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
69158
69159         * lib/config.charset: New version, incorporating remarks from a linux
69160         i18n mailing list.  From Bruno Haible.
69161
69162 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
69163
69164         * m4/codeset.m4: New file.
69165         * m4/iconv.m4: New file.
69166         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
69167
69168 2000-03-03  Jim Meyering  <meyering@lucent.com>
69169
69170         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
69171
69172 2000-03-02  Jim Meyering  <meyering@lucent.com>
69173
69174         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
69175         the messages come out on separate lines.
69176
69177         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
69178         rather than jm_CHECK_DECLARATIONS.
69179         * m4/decl.m4: Remove now-unused file.
69180
69181         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
69182         geteuid.
69183
69184 2000-03-02  Jim Meyering  <meyering@lucent.com>
69185
69186         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
69187
69188 2000-03-01  Jim Meyering  <meyering@lucent.com>
69189
69190         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
69191         * lib/unicodeio.c: Likewise.
69192
69193 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
69194
69195         * lib/config.charset: New file.
69196         * lib/localcharset.c: New file.
69197         * lib/unicodeio.h, lib/unicodeio.c: New files.
69198         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
69199         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
69200         (noinst_HEADERS): Add unicodeio.h.
69201         (all-local, install-exec-local, charset.alias): New targets.
69202
69203 2000-02-28  Paul Eggert  <eggert@twinsun.com>
69204
69205         * lib/quotearg.c (ALERT_CHAR): New macro.
69206         (quotearg_buffer_restyled): Use it.
69207
69208 2000-02-27  Jim Meyering  <meyering@lucent.com>
69209
69210         * m4/check-decl.m4: Add getenv to the list.
69211
69212 2000-02-27  Jim Meyering  <meyering@lucent.com>
69213
69214         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
69215         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
69216
69217         * lib/backupfile.c: Guard inclusion of stdlib.h with
69218         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
69219         Declare malloc if needed.
69220
69221         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
69222         `#ifndef HAVE_DECL..'
69223         now that autoconf always defines the HAVE_DECL_ symbols.
69224         * lib/human.c: Likewise.
69225         * lib/same.c: Likewise.
69226         * lib/strtoumax.c: Likewise.
69227
69228         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
69229         declaration check was not run.
69230         * lib/hash.c: Likewise.
69231         * lib/human.c: Likewise.
69232         * lib/same.c: Likewise.
69233         * lib/strtoumax.c: Likewise.
69234
69235         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
69236         `.', then first look up the entire `.'-containing string as a login
69237         name.
69238
69239 2000-02-23  Jim Meyering  <meyering@lucent.com>
69240
69241         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
69242         in place of my hack.
69243
69244 2000-02-18  Paul Eggert  <eggert@twinsun.com>
69245
69246         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
69247         (textint): New typedef.
69248         (parser_control): Member year changed from int to textint.
69249         All uses changed.
69250         (YYSTYPE): Removed; replaced by %union with int and textint members.
69251         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
69252         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
69253         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
69254         (tSNUMBER, tUNUMBER): Now of type <textintval>.
69255         (date, number, to_year): Use width of number in digits, not its value,
69256         to determine whether it's a 2-digit year, or a 2-digit time.
69257         (yylex): Store number of digits of numeric tokens.
69258         Reported by John Kendall.
69259
69260         (parser_control): Changed from struct parser_control to typedef (for
69261         consistency).  All uses changed.
69262
69263         (tID): Removed; not used.
69264         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
69265
69266 2000-02-14  Paul Eggert  <eggert@twinsun.com>
69267
69268         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
69269         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
69270
69271 2000-02-12  Jim Meyering  <meyering@lucent.com>
69272
69273         * lib/userspec.c (ISDIGIT): Define it.
69274         (isdigit): Remove definition.
69275         (is_number): Use ISDIGIT, not isdigit.
69276         <libintl.h>: Include.
69277         (_ and N_): Define.
69278         (parse_user_spec): Mark translatable strings.
69279
69280 2000-02-10  Jim Meyering  <meyering@lucent.com>
69281
69282         With these changes, nanosleep.[ch] are finally enough like the other
69283         lib/* replacement files to compile on a few more losing systems.
69284
69285         * lib/nanosleep.h: Don't include config.h.
69286         Remove prototype from declaration of nanosleep.
69287         (PARAMS): Remove now-unneeded definition.
69288         * lib/nanosleep.c: #undef nanosleep.
69289         (rpl_nanosleep): Rename from nanosleep.
69290
69291 2000-02-10  Jim Meyering  <meyering@lucent.com>
69292
69293         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
69294         gnu_nanosleep to rpl_nanosleep.
69295
69296 2000-02-09  Jim Meyering  <meyering@lucent.com>
69297
69298         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
69299         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
69300
69301 2000-02-08  Akim Demaille  <akim@epita.fr>
69302
69303         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
69304         `[' and `]' and remove uses of `changequote'.
69305         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
69306         (AC_SYS_LARGEFILE): Likewise.
69307         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
69308         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
69309         of changequote.
69310         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
69311         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
69312         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
69313         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
69314
69315 2000-02-05  Jim Meyering  <meyering@lucent.com>
69316
69317         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
69318         Remove explicit use of AC_HEADER_TIME.  It is required by
69319         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
69320         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
69321         in autoconf whereby the expansion of the latter ended up preceding
69322         the expansion of its prerequisite, AC_HEADER_TIME.
69323         Reported by Volker Borchert.
69324
69325 2000-02-03  Jim Meyering  <meyering@lucent.com>
69326
69327         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
69328
69329 2000-02-03  Jim Meyering  <meyering@lucent.com>
69330
69331         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
69332         rather than with `#if HAVE_UTMPNAME'.
69333
69334 2000-02-02  Jim Meyering  <meyering@lucent.com>
69335
69336         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
69337         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
69338         Reported by Eli Zaretskii.
69339
69340 2000-02-01  Jim Meyering  <meyering@lucent.com>
69341
69342         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
69343
69344 2000-01-31  Jim Meyering  <meyering@lucent.com>
69345
69346         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
69347         functions.  Add the time.h and sys/time.h headers along with the
69348         AC_REQUIRE'ment of AC_HEADER_TIME.
69349
69350 2000-01-31  Jim Meyering  <meyering@lucent.com>
69351
69352         * lib/nanosleep.h (nanosleep): Guard declaration with
69353         `#if ! HAVE_DECL_NANOSLEEP'.
69354         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
69355         the declaration in that vendor's sys/timers.h.
69356         Reported by Christian Krackowizer.
69357
69358         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
69359         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
69360         (ISPRINT): Likewise.
69361         Reported by Tom Tromey.
69362
69363 2000-01-30  Jim Meyering  <meyering@lucent.com>
69364
69365         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
69366
69367         * m4/prereq.m4 (utmp_includes): Define.
69368         Check for ut_user and ut_name members in both struct utmpx
69369         and struct utmp.
69370
69371 2000-01-30  Jim Meyering  <meyering@lucent.com>
69372
69373         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
69374         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
69375         header files where only utmpx.ut_user is declared.
69376
69377         * lib/readutmp.h (UT_USER): Define.
69378
69379 2000-01-29  Jim Meyering  <meyering@lucent.com>
69380
69381         * m4/lib-check.m4: New file containing library-related checks from
69382         fileutils and sh-utils (textutils had none).
69383
69384 2000-01-28  Jim Meyering  <meyering@lucent.com>
69385
69386         * m4/perl.m4: Change format of warning message to look more like that
69387         from the missing script.  Suggestion from François Pinard.
69388
69389 2000-01-25  Jim Meyering  <meyering@lucent.com>
69390
69391         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
69392         well as time.h in the compile check.
69393         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
69394         Fix typo in cross-compiling case: s/yes/no/.
69395
69396 2000-01-23  Jim Meyering  <meyering@lucent.com>
69397
69398         * m4/jm-macros.m4: Move df-related tests here from
69399         fileutils/configure.in
69400
69401         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
69402         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
69403
69404         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
69405         s/space/ac_fsusage_space/.
69406         (jm_FILE_SYSTEM_USAGE): Take two parameters.
69407
69408         * m4/ftruncate.m4: New file (derived from part of
69409         fileutils/configure.in).
69410         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
69411         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
69412
69413         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
69414         AC_SUBST these here, rather than just in sh-util/configure.in, so
69415         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
69416         all the same.
69417         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
69418         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
69419         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
69420         (AC_SUBST(POW_LIBM)): Likewise.
69421         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
69422
69423 2000-01-23  Jim Meyering  <meyering@lucent.com>
69424
69425         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
69426         obstack.c.
69427
69428 2000-01-22  Jim Meyering  <meyering@lucent.com>
69429
69430         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
69431
69432         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
69433
69434         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
69435         configure.in
69436         (AC_CHECK_HEADERS): Likewise for sh-utils.
69437         (AC_CHECK_HEADERS): Likewise for textutils.
69438         Merge the three lists of headers.
69439
69440         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
69441         from fileutils' configure.in.
69442
69443         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
69444         code. Moved tests into their own function (_jm_DECL_HEADERS) in
69445         check-decl.m4.
69446
69447         * m4/check-decl.m4: Use #if rather than #ifdef.
69448         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
69449         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
69450         (_jm_DECL_HEADERS): Define new function.
69451         (jm_CHECK_DECLARATIONS): Require it.
69452
69453 2000-01-22  Jim Meyering  <meyering@lucent.com>
69454
69455         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
69456         [! HAVE_DECL_STRTOULL]: Declare strtoull.
69457         Required for some AIX systems.  Reported by Christian Krackowizer.
69458         [TESTING] (main): New function.
69459
69460         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
69461         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
69462         letters.
69463
69464         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
69465         iswprint.
69466
69467         * lib/strverscmp.c (ISDIGIT): Define.
69468         (strverscmp): Use ISDIGIT, not isdigit.
69469
69470 2000-01-19  Jim Meyering  <meyering@lucent.com>
69471
69472         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
69473         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
69474         defines `struct timespec' in <sys/time.h>
69475
69476         * m4/c-bs-a.m4: Remove uses of changequote altogether.
69477         Thanks to Akim for explaining.
69478
69479 2000-01-17  Paul Eggert  <eggert@twinsun.com>
69480
69481         * lib/nanosleep.c (nanosleep):
69482         Don't use SA_INTERRUPT to decide whether to call sigaction, as
69483         POSIX.1 doesn't require SA_INTERRUPT and some systems
69484         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
69485         it's been part of POSIX.1 since day 1 (in 1988).
69486
69487 2000-01-17  Jim Meyering  <meyering@lucent.com>
69488
69489         * lib/interlock: Remove unused file.  Reported by François Pinard.
69490
69491 2000-01-16  Paul Eggert  <eggert@twinsun.com>
69492
69493         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
69494         alert, backslash, formfeed, and vertical tab unnecessarily in
69495         shell quoting style.
69496
69497 2000-01-16  Jim Meyering  <meyering@lucent.com>
69498
69499         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
69500         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
69501         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
69502         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
69503
69504 2000-01-16  Jim Meyering  <meyering@lucent.com>
69505
69506         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
69507         because the latter didn't work.
69508
69509 2000-01-15  Jim Meyering  <meyering@lucent.com>
69510
69511         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
69512         (AC_REPLACE_FUNCS): Add memcpy and memset.
69513         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
69514         Add strpbrk.
69515         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
69516
69517 2000-01-12  Jim Meyering  <meyering@lucent.com>
69518
69519         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
69520         (jm_PREREQ): Use it.
69521         (jm_PREREQ_READUTMP): New macro.
69522         (jm_PREREQ): Use it.
69523
69524 2000-01-11  Paul Eggert  <eggert@twinsun.com>
69525
69526         Quote multibyte characters correctly.
69527         * m4/c-bs-a.m4: New file.
69528         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
69529         (jm_PREREQ): Use it.
69530
69531 2000-01-11  Paul Eggert  <eggert@twinsun.com>
69532
69533         * m4/uintmax_t.m4: Port to autoconf 2.13.
69534
69535 2000-01-08  Jim Meyering  <meyering@ascend.com>
69536
69537         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
69538         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
69539
69540 2000-01-04  Jim Meyering  <meyering@ascend.com>
69541
69542         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
69543         jm_STRUCT_DIRENT_D_TYPE.
69544         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
69545         jm_STRUCT_DIRENT_D_INO.
69546         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
69547         jm_STRUCT_UTIMBUF.
69548         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
69549         renamings.
69550         * m4/utime.m4: Likewise.
69551
69552         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
69553         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
69554
69555 2000-01-03  Paul Eggert  <eggert@twinsun.com>
69556
69557         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
69558         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
69559
69560 2000-01-02  Jim Meyering  <meyering@ascend.com>
69561
69562         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
69563         remember if this is necessary.
69564
69565 1999-12-26  Jim Meyering  <meyering@ascend.com>
69566
69567         * m4/jm-macros.m4: Use it here.
69568         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
69569
69570 1999-12-23  Jim Meyering  <meyering@ascend.com>
69571
69572         * m4/jm-macros.m4: Check for clock_gettime (moved from
69573         fileutils/configure.in)
69574         Check for gettimeofday.
69575
69576 1999-12-20  Jim Meyering  <meyering@ascend.com>
69577
69578         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
69579         autoconf-2.14a-1999-12-20.
69580
69581 1999-12-19  Jim Meyering  <meyering@ascend.com>
69582
69583         * m4/lstat-slash.m4: New file.
69584         * m4/jm-macros.m4: Use the new macro:
69585         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69586
69587 1999-12-07  Jim Meyering  <meyering@ascend.com>
69588
69589         * m4/perl.m4: Require that File::Compare be available, too.
69590         Too many systems seem to lack it.
69591
69592         * m4/strftime.m4: Add checks for most of the cpp macros tested in
69593         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
69594
69595 1999-11-18  Paul Eggert  <eggert@twinsun.com>
69596
69597         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
69598         problem with the QNX 4.25 shell, which doesn't propagate exit
69599         status of failed commands inside shell assignments.
69600
69601 1999-11-17  Jim Meyering  <meyering@ascend.com>
69602
69603         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
69604
69605 1999-11-07  Jim Meyering  <meyering@ascend.com>
69606
69607         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
69608
69609 1999-11-06  Jim Meyering  <meyering@ascend.com>
69610
69611         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
69612         * m4/jm-macros.m4 (jm_MACROS): Use it here.
69613
69614 1999-11-05  Jim Meyering  <meyering@ascend.com>
69615
69616         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
69617         configure.in of textutils, fileutils, and sh-utils into this one
69618         (shared between those packages) file.
69619         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
69620         AC_STRUCT_ST_BLKSIZE.
69621
69622 1999-11-03  Jim Meyering  <meyering@ascend.com>
69623
69624         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
69625         of AC_CHECK_TYPE checks includes unistd.h.
69626         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
69627         Suggestion from Akim Demaille.
69628
69629 1999-10-30  Jim Meyering  <meyering@ascend.com>
69630
69631         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
69632         m4-quoted string.
69633         * m4/ls-mntd-fs.m4: Likewise.
69634         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
69635         * m4/jm-winsz1.m4: Likewise.
69636
69637         * m4/const.m4: Remove file, since the fix made it into the experimental
69638         version of autoconf.
69639         * m4/mktime.m4: Likewise.
69640
69641         * m4/check-type.m4: Remove file, now that the latest version of
69642         AC_CHECK_TYPE takes a third arg to specify additional #includes.
69643
69644         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
69645         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
69646         AC_CHECK_TYPE.
69647
69648 1999-10-04  Jim Meyering  <meyering@ascend.com>
69649
69650         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
69651
69652 1999-09-22  Paul Eggert  <eggert@twinsun.com>
69653
69654         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
69655         2.95.1 bug with HP-UX 10.20.
69656
69657 1999-09-17  Jim Meyering  <meyering@ascend.com>
69658
69659         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
69660         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
69661         due to missing strdup (against sh-utils-2.0).
69662
69663 1999-08-29  Jim Meyering  <meyering@ascend.com>
69664
69665         * m4/jm-macros.m4: Require jm_BISON.
69666         * m4/bison.m4: New file.
69667
69668 1999-08-17  Paul Eggert  <eggert@twinsun.com>
69669
69670         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
69671         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
69672
69673 1999-08-05  Jim Meyering  <meyering@ascend.com>
69674
69675         * m4/getline.m4: Rename test file from conftestdata to conftest.data
69676         to avoid conflicts with `conftest' on 8+3 filesystems.
69677         Suggestion from Eli Zaretskii.
69678
69679 1999-08-04  Jim Meyering  <meyering@ascend.com>
69680
69681         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
69682         fileutils and sh-utils (textutils's getline test was inadequate).
69683         (AM_FUNC_GETLINE): Run this test.
69684         (AC_CHECK_FUNCS): Check for getdelim.
69685         Reported by Bob Proulx.
69686
69687 1999-08-02  Jim Meyering  <meyering@ascend.com>
69688
69689         * m4/jm-macros.m4: Add a comment.
69690
69691 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69692
69693         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
69694         <inttypes.h> defines strtoumax as a macro (and not as a
69695         function).
69696
69697 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69698
69699         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
69700         that we can shift, multiply and divide unsigned long long
69701         values; Ultrix cc can't do it.
69702
69703 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69704
69705         * m4/mktime.m4: New file, which is a preview of what should appear
69706         in the next public autoconf release.
69707
69708 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69709
69710         * m4/lfs.m4: Remove this file.
69711         * m4/largefile.m4: New file.  It contains the old contents of
69712         lfs.m4, except that all names with prefix AC_LFS have been
69713         changed to use the prefix AC_SYS_LARGEFILE instead, to be
69714         compatible with future autoconf versions.  Also, some minor m4
69715         quoting problems have been fixed.
69716
69717 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69718
69719         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
69720         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
69721         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
69722         and simplify the shell code.
69723
69724 1999-08-01  Jim Meyering  <meyering@ascend.com>
69725
69726         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
69727         m4.
69728
69729 1999-07-20  Jim Meyering  <meyering@ascend.com>
69730
69731         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
69732
69733 1999-07-15  Jim Meyering  <meyering@ascend.com>
69734
69735         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
69736
69737 1999-05-22  Jim Meyering  <meyering@ascend.com>
69738
69739         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
69740
69741 1999-05-20  Jim Meyering  <meyering@ascend.com>
69742
69743         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
69744         Add a colon after each `then' in case $4 is empty.
69745
69746 1999-05-16  Jim Meyering  <meyering@ascend.com>
69747
69748         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
69749
69750 1999-05-10  Jim Meyering  <meyering@ascend.com>
69751
69752         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
69753
69754         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
69755         AC_FUNC_MKTIME.
69756
69757 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
69758
69759         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
69760
69761 1999-05-04  Paul Eggert  <eggert@twinsun.com>
69762
69763         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
69764         not CPPFLAGS, so that linking works correctly in IRIX.
69765
69766 1999-04-30  Paul Eggert  <eggert@twinsun.com>
69767
69768         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
69769
69770 1999-04-20  Paul Eggert  <eggert@twinsun.com>
69771
69772         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
69773         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
69774         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
69775         jm_AC_TYPE_UNSIGNED_LONG_LONG.
69776         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
69777
69778         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
69779
69780 1999-04-20  Jim Meyering  <meyering@ascend.com>
69781
69782         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
69783         AC_REPLACE xstroull if necessary.  From Paul Eggert.
69784         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
69785
69786 1999-04-18  Jim Meyering  <meyering@ascend.com>
69787
69788         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
69789         * m4/jm-macros.m4: Use it.
69790
69791 1999-04-06  Jim Meyering  <meyering@ascend.com>
69792
69793         * m4/strftime.m4: Remove test for %f.
69794
69795 1999-03-29  Jim Meyering  <meyering@ascend.com>
69796
69797         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
69798         superset of the AC_TYPE_* checks in the textutils, fileutils,
69799         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
69800         AC_TYPE_PID_T.
69801
69802 1999-03-28  Jim Meyering  <meyering@ascend.com>
69803
69804         * m4/jm-macros.m4: Define GNU_PACKAGE here.
69805         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
69806         replaced e.g., in the *.sh files of the sh-utils.
69807
69808 1999-03-20  Jim Meyering  <meyering@ascend.com>
69809
69810         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
69811         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
69812         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
69813
69814 1999-03-19  Jim Meyering  <meyering@ascend.com>
69815
69816         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
69817
69818 1999-03-12  Jim Meyering  <meyering@ascend.com>
69819
69820         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
69821
69822 1999-03-07  Jim Meyering  <meyering@ascend.com>
69823
69824         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
69825         declared.
69826
69827 1999-02-17  Jim Meyering  <meyering@ascend.com>
69828
69829         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
69830         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
69831
69832 1999-02-07  Jim Meyering  <meyering@ascend.com>
69833
69834         * m4/group-member.m4: New file -- extracted from sh-utils'
69835         configure.in.
69836
69837         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
69838         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
69839
69840 1999-02-06  Jim Meyering  <meyering@ascend.com>
69841
69842         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
69843         * m4/fnmatch.m4: Likewise.
69844         * m4/getgroups.m4: Likewise.
69845         * m4/lstat.m4: Likewise.
69846         * m4/malloc.m4: Likewise.
69847         * m4/putenv.m4: Likewise.
69848         * m4/realloc.m4: Likewise.
69849         * m4/regex.m4: Likewise.
69850         * m4/stat.m4: Likewise.
69851         * m4/strftime.m4: Likewise.
69852         Suggestion from Alain Magloire.
69853
69854         * m4/chown.m4: Use `.$ac_objext', not `.o'.
69855         * m4/fnmatch.m4: Likewise.
69856         * m4/getgroups.m4: Likewise.
69857         * m4/getline.m4: Likewise.
69858         * m4/lstat.m4: Likewise.
69859         * m4/malloc.m4: Likewise.
69860         * m4/memcmp.m4: Likewise.
69861         * m4/putenv.m4: Likewise.
69862         * m4/realloc.m4: Likewise.
69863         * m4/regex.m4: Likewise.
69864         * m4/stat.m4: Likewise.
69865         * m4/strftime.m4: Likewise.
69866         Suggestion from Alain Magloire.
69867
69868         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
69869         an argument.
69870
69871         * m4/regex.m4: Add a run-time Test for proper operation of
69872         re_compile_pattern.
69873
69874 1999-01-31  Jim Meyering  <meyering@ascend.com>
69875
69876         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
69877
69878 1999-01-30  Jim Meyering  <meyering@ascend.com>
69879
69880         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
69881
69882         * m4/jm-mktime.m4: Make this a wrapper around the official
69883         AM_FUNC_MKTIME rather than my private copy, now that the official one
69884         is up to date.
69885         * m4/mktime.m4: Remove file.
69886
69887         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
69888         * m4/uptime.m4: Likewise.
69889         * m4/uintmax_t.m4: Likewise.
69890
69891 1999-01-28  Jim Meyering  <meyering@ascend.com>
69892
69893         * m4/jm-macros.m4: Use jm_AFS.
69894         * m4/afs.m4: New file (from fileutils' configure.in).
69895
69896         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
69897         * m4/chown.m4: Likewise.
69898         * m4/d-ino.m4: Likewise.
69899         * m4/d-type.m4: Likewise.
69900         * m4/fnmatch.m4: Likewise.
69901         * m4/getgroups.m4: Likewise.
69902         * m4/gettext.m4: Likewise.
69903         * m4/jm-mktime.m4: Likewise.
69904         * m4/jm-winsz2.m4: Likewise.
69905         * m4/lcmessage.m4: Likewise.
69906         * m4/ls-mntd-fs.m4: Likewise.
69907         * m4/malloc.m4: Likewise.
69908         * m4/memcmp.m4: Likewise.
69909         * m4/putenv.m4: Likewise.
69910         * m4/realloc.m4: Likewise.
69911         * m4/st_mtim.m4: Likewise.
69912         * m4/strftime.m4: Likewise.
69913
69914 1999-01-16  Jim Meyering  <meyering@ascend.com>
69915
69916         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
69917         (ARGMATCH_DIE_DECL): Define.
69918
69919 1999-01-12  Jim Meyering  <meyering@ascend.com>
69920
69921         * m4/Makefile.am.in: Rewrite to avoid using fmt.
69922         Reported by Lars Hecking.
69923
69924 1999-01-10  Jim Meyering  <meyering@ascend.com>
69925
69926         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
69927         gross kludge.
69928         * m4/inttypes_h.m4: Likewise.
69929         * m4/lstat.m4: Likewise.
69930         * m4/malloc.m4: Likewise.
69931         * m4/readdir.m4: Likewise.
69932         * m4/realloc.m4: Likewise.
69933         * m4/st_dm_mode.m4: Likewise.
69934         * m4/stat.m4: Likewise.
69935         * m4/utimbuf.m4: Likewise.
69936         * m4/utimes.m4: Likewise.
69937
69938         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
69939         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
69940         comments in config.h.in are meaningful.
69941
69942         * m4/jm-macros.m4: Require autoconf-2.13 here.
69943
69944         * m4/regex.m4: By default, don't use the included regex.c on systems
69945         with glibc 2.  Suggestion from Uli Drepper.
69946
69947 1999-01-02  Jim Meyering  <meyering@ascend.com>
69948
69949         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
69950
69951 1998-12-18  Jim Meyering  <meyering@ascend.com>
69952
69953         * m4/Makefile.am.in (Makefile.am): Simplify rule.
69954         Based on a suggestion from Lars Hecking.
69955
69956 1998-11-16  Paul Eggert  <eggert@twinsun.com>
69957
69958         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
69959
69960 1998-11-16  Jim Meyering  <meyering@ascend.com>
69961
69962         * m4/lfs.m4: Double-quote the `uname...` expression.
69963
69964 1998-11-14  Jim Meyering  <meyering@ascend.com>
69965
69966         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
69967         * m4/stat.m4: Likewise.
69968
69969 1998-11-03  Jim Meyering  <meyering@ascend.com>
69970
69971         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
69972         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
69973
69974 1998-10-18  Jim Meyering  <meyering@ascend.com>
69975
69976         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
69977
69978 1998-10-17  Jim Meyering  <meyering@ascend.com>
69979
69980         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
69981         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
69982         calls for those previously hard-coded headers.  Instead, take a new
69983         parameter.
69984         (jm_CHECK_DECLARATIONS): Reflect interface change.
69985         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
69986         (jm_CHECK_DECL_LOCALTIME_R): New macro.
69987
69988         * m4/mktime.m4: Test for spring-forward gap before long-running test.
69989
69990 1998-10-14  Jim Meyering  <meyering@ascend.com>
69991
69992         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
69993         instead of "TZ=America/Vancouver".  From Paul Eggert.
69994
69995 1998-10-11  Jim Meyering  <meyering@ascend.com>
69996
69997         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
69998         This adds a test for a recently added compatibility fix for mktime.c.
69999         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
70000
70001 1998-09-27  Jim Meyering  <meyering@ascend.com>
70002
70003         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
70004
70005         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
70006         ../configure.in, including a change from Gordon Matzigkeit to allow
70007         cross-compiling for the Hurd.
70008
70009         * m4/glibc.m4: New file/macro to test for the GNU C Library
70010         versions 1 and 2.  From Gordon Matzigkeit.
70011         Indent.
70012
70013 1998-09-21  Jim Meyering  <meyering@ascend.com>
70014
70015         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
70016
70017 1998-08-18  Paul Eggert  <eggert@twinsun.com>
70018
70019         Port nanosecond-resolution times to UnixWare 2.1.2 and
70020         pedantic Solaris 2.6.
70021
70022         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
70023         AC_STRUCT_ST_MTIM.
70024         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
70025         Generate name of ns member, instead of just 1 or undef.
70026         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
70027
70028 1998-08-15  Jim Meyering  <meyering@ascend.com>
70029
70030         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
70031         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
70032         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
70033         instead of jm_TYPE_SSIZE_T.
70034
70035 1998-08-12  Jim Meyering  <meyering@ascend.com>
70036
70037         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
70038
70039 1998-08-02  Jim Meyering  <meyering@ascend.com>
70040
70041         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
70042         in acconfig.h manually.
70043
70044 1998-07-31  Paul Eggert  <eggert@twinsun.com>
70045
70046         * m4/st_mtim.m4: New file.
70047
70048 1998-07-28  Jim Meyering  <meyering@ascend.com>
70049
70050         * m4/utimes.m4: Undef stat.
70051
70052 1998-07-25  Jim Meyering  <meyering@ascend.com>
70053
70054         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
70055         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
70056
70057 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
70058
70059         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
70060         uid and gid actually remain unchanged.
70061
70062 1998-07-07  Jim Meyering  <meyering@ascend.com>
70063
70064         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
70065
70066 1998-07-04  Jim Meyering  <meyering@ascend.com>
70067
70068         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
70069         to prove that this macro can be used in packages without regex.c.
70070
70071 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
70072
70073         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
70074         is to be used.
70075
70076 1998-07-03  Jim Meyering  <meyering@ascend.com>
70077
70078         * m4/gettext.m4: Add -lintl if it's found to be necessary.
70079
70080         * m4/gettext.m4: New file -- from gettext-0.10.35.
70081         * m4/lcmessage.m4: Likewise.
70082         * m4/progtest.m4: Likewise.
70083
70084         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
70085         * m4/jm-macros.m4: Require the new macro.
70086
70087 1998-06-29  Jim Meyering  <meyering@ascend.com>
70088
70089         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
70090         for the definition of NGROUPS (used in a system header included
70091         by sys/mount.h).
70092
70093 1998-06-28  Jim Meyering  <meyering@ascend.com>
70094
70095         * m4/ls-mntd-fs.m4: New file.
70096         * m4/fstypename.m4: New file.
70097
70098         * m4/jm-macros.m4: Require the new macro.
70099         * m4/jm-glibc-io.m4: New file.
70100
70101 1998-05-19  Jim Meyering  <meyering@ascend.com>
70102
70103         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
70104         * m4/lchown.m4: New file.
70105
70106         * m4/Makefile.am.in: New file.
70107         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
70108
70109 1998-05-14  Jim Meyering  <meyering@ascend.com>
70110
70111         * m4/Makefile.am (EXTRA_DIST): Add them.
70112         * m4/jm-macros.m4: New file.
70113         * m4/utimbuf.m4: New file.
70114
70115 1998-05-12  Jim Meyering  <meyering@ascend.com>
70116
70117         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
70118
70119 1998-05-11  Jim Meyering  <meyering@ascend.com>
70120
70121         * m4/isc-posix.m4: New file.
70122
70123 1998-05-10  Jim Meyering  <meyering@ascend.com>
70124
70125         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
70126
70127 1998-05-09  Jim Meyering  <meyering@ascend.com>
70128
70129         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
70130         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
70131         with automake.
70132
70133         * m4/ssize_t.m4: New file.
70134         * m4/mktime.m4: Remove file -- the new automake has this now.
70135
70136 1998-04-26  Jim Meyering  <meyering@ascend.com>
70137
70138         * m4/assert.m4: New file.
70139         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
70140
70141 1998-04-05  Jim Meyering  <meyering@ascend.com>
70142
70143         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
70144         (jm_PREREQ): Use it here.
70145
70146 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
70147
70148         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
70149         in acconfig.h.
70150
70151 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
70152
70153         * m4/prereq.m4: New file.
70154         * m4/error.m4: New file.
70155         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
70156
70157 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
70158
70159         * m4/getline.m4: Don't set am_cv_func_working_getline before the
70160         cache-check for the same variable -- that defeated the purpose of
70161         the test; the test program was never run.  This was a problem only
70162         on systems with losing getline functions -- HP-UX 10.20 is one.
70163         Reported by Bjorn Helgaas.
70164
70165 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
70166
70167         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
70168
70169 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
70170
70171         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
70172
70173         * m4/const.m4: New file.  Use an initializer in this declaration
70174         typedef int charset[2]; const charset x;
70175         Reported by Bob Glickstein.
70176
70177 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
70178
70179         * m4/chown.m4: Fix reversed types on -1 args to chown.
70180         From Kaveh Ghazi.
70181
70182 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
70183
70184         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
70185         Add lseek and memchr.
70186
70187         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
70188         T.E.Dickey <dickey@clark.net> said that some older preprocessors
70189         have a 20-character limit on names.
70190
70191 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
70192
70193         * m4/inttypes_h.m4: New file.
70194         * m4/uintmax_t.m4: New file.
70195         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
70196
70197
70198         -----
70199
70200         Local Variables:
70201         coding: utf-8
70202         End:
70203
70204         Copyright (C) 1997-2010 Free Software Foundation, Inc.
70205
70206         Copying and distribution of this file, with or without
70207         modification, are permitted provided the copyright notice
70208         and this notice are preserved.