unistr/u8-strchr: Fix a test failure on i586 glibc systems.
[gnulib.git] / ChangeLog
1 2010-09-24  Bruno Haible  <bruno@clisp.org>
2
3         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
4         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
5
6 2010-09-23  Bruno Haible  <bruno@clisp.org>
7
8         setenv: Relax license.
9         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
10         Blake.
11         Requested by Eric Blake.
12
13 2010-09-22  Bruno Haible  <bruno@clisp.org>
14
15         termios: Relax license.
16         * modules/termios (License): Change to LGPLv2+.
17         Requested by Eric Blake.
18
19 2010-09-22  Bruno Haible  <bruno@clisp.org>
20
21         threadlib: Allow the package to change the default to 'no'.
22         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
23         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
24         Reported by Paul Eggert.
25
26 2010-09-22  Pádraig Brady  <P@draigbrady.com>
27             Bruno Haible  <bruno@clisp.org>
28
29         Fix endless loop in mbmemcasecoll.
30         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
31         byte.
32         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
33
34 2010-09-22  Bruno Haible  <bruno@clisp.org>
35
36         Tests for module 'memcoll'.
37         * modules/memcoll-tests: New file.
38         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
39
40         memcoll, xmemcoll: Clarify size vs. length.
41         * modules/memcoll.c (memcoll0): Clarify specification.
42         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
43         passed to collate_error.
44
45 2010-09-22  Bruno Haible  <bruno@clisp.org>
46
47         Tests for module 'memcasecmp'.
48         * modules/memcasecmp-tests: New file.
49         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
50
51 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
52
53         * lib/pthread.in.h: Add split double-inclusion guard, and include
54         system <pthread.h> if there is one.  Use @@-style as in other
55         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
56         pthread.h doesn't.
57         (pthread_mutexattr_destroy, pthread_mutexattr_init):
58         (pthread_mutexattr_settype, pthread_mutex_trylock):
59         New static inline functions, if there's no system <pthread.h>.
60         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
61         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
62         Approximate with mutexes if the system lacks spinlocks, as in
63         MacOS.
64         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
65         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
66         @@-style.  Check for spinlocks separately.
67         (gl_PTHREAD_DEFAULTS): New macro.
68         * modules/pthread: Redo to use a more typical style for in.h files.
69
70 2010-09-21  Eric Blake  <eblake@redhat.com>
71
72         net_if: enhance tests
73         * tests/test-net_if.c (main): Move signature checks earlier.
74         Print failures to stderr.
75         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
76         Document the bug that we do not yet fix.
77
78 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
79
80         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
81         about gnulib, not GSS.
82
83 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
84
85         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
86         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
87         for Emacs.
88         * build-aux/pmccabe2html: Make Makefile.am example code more
89         cut-and-paste friendly.
90
91 2010-09-21  Simon Josefsson  <simon@josefsson.org>
92
93         * tests/test-net_if.c: New file.
94         * modules/net_if-tests: New file.
95
96 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
97
98         pthread: add pthread_spin_destroy
99         * lib/pthread.in.h (pthread_spin_destroy): New function.
100
101 2010-09-19  Bruno Haible  <bruno@clisp.org>
102
103         gnulib-tool: Fix --help output.
104         * gnulib-tool (func_usage): Fix help message.
105         Reported by Reuben Thomas <rrt@sc3d.org>.
106
107 2010-09-18  Jim Meyering  <meyering@redhat.com>
108
109         maint.mk: avoid unexpanded \n in two diagnostics
110         * top/maint.mk (sc_prohibit_always_true_header_tests):
111         Don't use a literal \n in a halt=... assignment.  It would not be
112         expanded, and the two \n bytes would appear in the diagnostic output
113         rather than the desired newline.  Use halt=$$(printf ... instead.
114         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
115
116 2010-09-18  Bruno Haible  <bruno@clisp.org>
117
118         netinet_in: Doc tweak.
119         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
120         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
121
122 2010-09-18  Jim Meyering  <meyering@redhat.com>
123
124         init.sh: correct an outdated comment
125         * tests/init.sh (create_exe_shims_):  s/function/alias/
126
127         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
128         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
129         a file named "*.exe" is removed between the glob expansion and the
130         processing of that oddly named file.
131
132 2010-09-17  Eric Blake  <eblake@redhat.com>
133
134         mirbsd: add some more support
135         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
136         in BSD family.
137         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
138         devices as OpenBSD.
139         * m4/host-os.m4 (mirbsd): Add MirBSD.
140
141         tests: fix unportable assumption on sys/wait.h
142         * tests/test-sys_wait.c (main): Relax test.
143         * tests/test-stdlib.c (main): Likewise.
144
145         init.sh: accomodate directory with no .exes
146         * tests/init.sh: Accomodate directory containing only scripts.
147
148         tests: avoid compiler warning
149         * tests/test-stdlib.c (main): Use the variable.
150
151         fdutimens, fdutimensat: update signature, again
152         * lib/utimens.h (gl_futimens): Delete, and move signature...
153         (fdutimens): ...here.
154         (fdutimensat): Rearrange signature.
155         (lutimensat): Rename variable for clarity.
156         * lib/fdutimensat.c (fdutimensat): Update signature.
157         * lib/utimens.c (fdutimens): Likewise.
158         (gl_futimens): Delete.
159         (utimens, lutimens): Update callers.
160         * lib/futimens.c (futimens): Likewise.
161         * tests/test-fdutimensat.c: Likewise.
162         * tests/test-utimens.c: Likewise.
163         * tests/test-futimens.h: Update comment.
164         * NEWS: Mention this.
165         Suggested by Paul Eggert.
166
167 2010-09-17  Bruno Haible  <bruno@clisp.org>
168
169         Take over the maintenance of some older macros from Autoconf.
170         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
171         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
172         GNU Autoconf.
173         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
174         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
175
176 2010-09-17  Eric Blake  <eblake@redhat.com>
177
178         fdutimensat: drop atflag validation
179         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
180         with valid fd, to close a race scenario where futimens is
181         unsupported and FILE was replaced by a symlink.
182         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
183         accordingly.
184         Suggested by Paul Eggert.
185
186 2010-09-16  Bruno Haible  <bruno@clisp.org>
187
188         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
189         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
190
191 2010-09-16  Bruno Haible  <bruno@clisp.org>
192
193         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
194         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
195         login_tty exists.
196         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
197
198 2010-09-16  Bruno Haible  <bruno@clisp.org>
199
200         login_tty: Make the replacement code work on BSD systems.
201         * lib/login_tty.c: Include <sys/ioctl.h>.
202         (login_tty): Use ioctl TIOCSCTTY when available.
203         * modules/login_tty (Depends-on): Add sys_ioctl.
204         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
205
206 2010-09-16  Bruno Haible  <bruno@clisp.org>
207
208         login_tty: Stricter unit test.
209         * modules/login_tty-tests (Depends-on): Add tcgetsid.
210         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
211         and tcgetsid() after login_tty.
212         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
213
214 2010-09-16  Bruno Haible  <bruno@clisp.org>
215
216         New module 'tcgetsid'.
217         * lib/tcgetsid.c: New file.
218         * m4/tcgetsid.m4: New file.
219         * modules/tcgetsid: New file.
220         * modules/termios (Depends-on): Add c++defs, warn-on-use.
221         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
222         GNULIB_TCGETSID, HAVE_TCGETSID.
223         * lib/termios.in.h: Include <sys/types.h>.
224         (tcgetsid): New declaration.
225         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
226         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
227         * doc/posix-functions/tcgetsid.texi: Mention the new module.
228         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
229
230 2010-09-16  Bruno Haible  <bruno@clisp.org>
231
232         Tests for module 'termios'.
233         * modules/termios-c++-tests: New file.
234         * modules/termios-tests: New file.
235         * tests/test-termios-c++.cc: New file.
236         * tests/test-termios.c: New file.
237
238         New module 'termios'.
239         * modules/termios: New file.
240         * lib/termios.in.h: New file.
241         * m4/termios_h.m4: New file.
242         * doc/posix-headers/termios.texi: Mention the new module.
243
244 2010-09-16  Eric Blake  <eblake@redhat.com>
245
246         fdutimensat: add an atflag parameter
247         * lib/fdutimensat.c (fdutimensat): Add new parameter.
248         * lib/utimens.h (fdutimensat): Update prototype.
249         * tests/test-fdutimensat.c: Adjust test to match.
250         * NEWS: Document the change.
251         Suggested by Paul Eggert.
252
253 2010-09-16  Bruno Haible  <bruno@clisp.org>
254
255         Fix typos in comments.
256         * lib/striconveh.h: Fix typo in comment.
257         * lib/login_tty.c (login_tty): Likewise.
258
259 2010-09-15  Bruno Haible  <bruno@clisp.org>
260
261         stdlib: clarify MirBSD WEXITSTATUS bug
262         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
263         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
264
265 2010-09-15  Eric Blake  <eblake@redhat.com>
266
267         stdlib: work around MirBSD WEXITSTATUS bug
268         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
269         * modules/stdlib (Depends-on): Add sys_wait.
270         * tests/test-sys_wait.c (main): Enhance test.
271         * tests/test-stdlib.c (main): Likewise.
272         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
273
274         docs: mention MacOS issue with WEXITSTATUS(constant)
275         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
276         issue.
277         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
278
279         strnlen: add tests
280         * modules/strnlen-tests: New file.
281         * tests/test-strnlen.c: Likewise.
282
283 2010-09-14  Bruno Haible  <bruno@clisp.org>
284
285         unistr/base: Avoid link errors when module 'libunistring' is also used.
286         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
287         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
288         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
289         Declare also when HAVE_LIBUNISTRING is set.
290         Reported by Pádraig Brady <P@draigbrady.com>.
291
292 2010-09-14  Eric Blake  <eblake@redhat.com>
293
294         test-rawmemchr: make more robust
295         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
296         (Depends-on, configure.ac): Add needed prerequisites to use it.
297         * modules/memchr-tests (Files, Depends-on, configure.ac):
298         Likewise, to avoid implicit reliance on memchr module prereqs.
299         * tests/test-memchr.c (main): Ensure proper masking.
300         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
301         reads.
302
303         memchr: detect glibc Alpha bug
304         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
305         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
306         Alpha.
307         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
308         * tests/test-memchr.c (main): Enhance test.
309         Reported by Nelson H. F. Beebe.
310
311 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
312
313         fts, getcwd, glob: audit for dirfd returning -1
314         * lib/fts.c (opendir): Remove #define; no longer used.
315         (opendirat): New arg PDIR_FD.  All callers changed.
316         (fts_build, _opendir2): Use new opendirat to avoid the need for
317         dirfd, or for checking whether dirfd returns a negative value.
318         Don't use opendir; always use openat followed by fdopendir.
319         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
320         it.
321         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
322         returns -1 here.
323         * modules/fts (Depends-on): Remove dirfd.
324         * modules/getcwd (Depends-on): Likewise.
325
326 2010-09-13  Eric Blake  <eblake@redhat.com>
327
328         float: fix broken MirBSD header
329         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
330         * doc/posix-headers/float.texi (float.h): Document it.
331
332 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
333
334         fts: use O_NOFOLLOW to avoid race condition when opening a directory
335         * lib/fts.c (opendirat): New arg extra_flags.
336         (__opendir2): Use it to avoid following symlinks when opening
337         a directory, if symlinks are not supposed to be followed.  See
338         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
339
340         fdopendir: preserve argument fd before returning
341         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
342         (fdopendir_with_dup, fd_clone_opendir): New static functions.
343         (fdopendir): Use them, arranging for FD to be open to the same
344         directory that it was when it started.  (It might be temporarily
345         closed while fdopendir is running, so this not thread- or
346         signal-safe.)  Be careful to do the right thing even when file
347         descriptors are scarce and dup fails with errno == EMFILE.  See
348         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
349
350 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
351
352         regex: Pass the system regex if its only problem is 32-bit regoff_t.
353         * NEWS: Document change.
354         * m4/regex.m4: Disable test for regoff_t size.
355
356 2010-09-13  Jim Meyering  <meyering@redhat.com>
357
358         fts: don't operate on an invalid file descriptor after failed dup
359         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
360         negative file descriptor.
361
362 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
363
364         savedir: add streamsavedir, deprecate fdsavedir
365         * NEWS: Mention deprecation of fdsavedir.
366         * lib/savedir.c (streamsavedir): New extern function, whose name
367         ends in "savedir" to be consistent with the others.  This differs
368         from savedirstream in that it doesn't close its argument.  The
369         next version of GNU tar will use this instead of fdsavedir, to
370         avoid some race conditions and conserve file descriptors.
371         (savedirstream): Reimplement as a wrapper around streamsavedir.
372         (fdsavedir): Add a comment deprecating this function.  As far as
373         I know, only GNU tar used it, and GNU tar doesn't need it any more.
374         * lib/savedir.h (streamsavedir): New decl.
375         (fdsavedir): Add a comment deprecating this.
376
377 2010-09-10  Bruno Haible  <bruno@clisp.org>
378
379         langinfo: Fix last commit.
380         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
381         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
382         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
383
384 2010-09-10  Bruno Haible  <bruno@clisp.org>
385
386         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
387         * lib/progreloc.c (O_EXEC): Define fallback.
388
389 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
390
391         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
392         * NEWS: Document recent changes to fcntl-h.
393         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
394         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
395         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
396         Similarly for O_SEARCH; this last was already true, but not documented.
397         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
398         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
399         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
400         Likewise.
401         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
402         is zero, not whether it is defined.
403         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
404         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
405         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
406
407 2010-09-10  Bruno Haible  <bruno@clisp.org>
408
409         langinfo, nl_langinfo: Fix for IRIX 5.3.
410         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
411         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
412         HAVE_LANGINFO_YESEXPR.
413         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
414         HAVE_LANGINFO_YESEXPR.
415         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
416         HAVE_LANGINFO_T_FMT_AMPM is 0.
417         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
418         HAVE_LANGINFO_YESEXPR is 0.
419         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
420         NOEXPR.
421         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
422         * doc/posix-functions/nl_langinfo.texi: Likewise.
423         Reported by Eric Blake.
424
425 2010-09-10  Bruno Haible  <bruno@clisp.org>
426
427         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
428         * doc/glibc-functions/login_tty.texi: Mention the include file problem
429         on FreeBSD 8.0 and OpenBSD 4.6.
430         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
431         * m4/pty_h.m4 (gl_PTY_H): Likewise.
432         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
433         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
434         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
435         ac_includes_default.
436         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
437
438 2010-09-09  Eric Blake  <eblake@redhat.com>
439
440         strsignal: work around NetBSD bug
441         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
442         * lib/string.in.h (includes): Likewise.
443         * doc/posix-functions/strsignal.texi (strsignal): Document the
444         bug.
445         Reported by Nelson H. F. Beebe.
446
447         gnulib-tool: work with NetBSD /bin/sh
448         * gnulib-tool (func_cache_var, func_cache_lookup_module)
449         (func_get_description, func_get_comment, func_get_status)
450         (func_get_notice, func_get_applicability, func_get_filelist)
451         (func_get_dependencies, func_get_autoconf_early_snippet)
452         (func_get_autoconf_snippet, func_get_automake_snippet)
453         (func_get_include_directive, func_get_link_directive)
454         (func_get_license, func_get_maintainer, func_import): Avoid
455         shell syntax errors from parsing syntax extensions.
456
457 2010-09-09  Bruno Haible  <bruno@clisp.org>
458
459         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
460         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
461         a reliable way to determine whether the 'alias' command works.
462
463 2010-09-08  Jim Meyering  <meyering@redhat.com>
464
465         init.sh: penalize a set-x-impaired shell; don't disqualify it
466         * tests/init.sh: Too many shells corrupt application stderr when
467         you set -x, so we can't afford to disqualify them, since at least
468         on Irix-6.5, that would disqualify all bourne shells.
469         Instead, use a two-pass approach.
470         On the first pass, try to find a shell that meets the stricter
471         condition that set -x does not corrupt stderr.
472         If no shell meets the stricter condition, retest each candidate
473         shell, but without that extra condition.  Finally, when
474         VERBOSE=yes is requested and set -x might cause trouble, simply
475         issue a warning and refrain from enabling debug output.
476
477 2010-09-08  Eric Blake  <eblake@redhat.com>
478
479         unsetenv: fix OpenBSD bug
480         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
481         * doc/posix-functions/unsetenv.texi (unsetenv): Update
482         documentation.
483         Reported by Jim Meyering.
484
485         strtod: work around IRIX 6.5 bug
486         * lib/strtod.c (strtod): Reparse number on shorter string if
487         exponent parse was invalid.
488         * tests/test-strtod.c (main): Add check for "0x1p 2".
489         Reported by Tom G. Christensen.
490
491         getopt: optimize previous patch
492         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
493         empty variable.  Speed up awk script.
494         Reported by Paolo Bonzini.
495
496 2010-09-08  Jim Meyering  <meyering@redhat.com>
497
498         test.sh: disqualify shells for which set -x corrupts stderr
499         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
500         and OpenBSD 4.7.  They make it so with "set -x", environment settings
501         appear in stderr output.  For example, this command:
502             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
503         prints "P=1" on those two systems:
504
505 2010-09-08  Bruno Haible  <bruno@clisp.org>
506
507         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
508         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
509         commands, because some shells ignore redirections when there is an
510         error in the command lookup.
511         Reported by Eric Blake.
512
513 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
514
515         * lib/regex.h: Fix a mention of `regex_compile' (should be
516         `re_compile_pattern').
517         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
518         (re_set_registers): Correct name of parameter in comment.
519
520         * doc/regex.texi: Add documentation for missing syntax flags.
521         Remove commented-out documentation of defunct syntax option
522         RE_NO_EMPTY_ALTS.
523         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
524         Add documentation of re_set_registers.
525         Document trick to re-use a pattern buffer by setting fastmap manually.
526         Update documentation of struct re_pattern_buffer per public members.
527         Uncomment documentation of equivalence class operators and
528         collating symbol operators, since they are now implemented,
529         Explain leftmost-longest matching in relation to alternatives.
530         Tidy documentation of substring matching.
531         Remove POSIX documentation, which is done better in
532         glibc, and refer the reader there. Keep BSD API documentation, as
533         that is not readily available elsewhere.
534
535 2010-09-07  Eric Blake  <eblake@redhat.com>
536
537         getopt: handle POSIXLY_CORRECT set but not exported
538         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
539         export state of POSIXLY_CORRECT, due to bash set -o posix.
540         Reported by Dustin J. Mitchell.
541
542 2010-09-05  Bruno Haible  <bruno@clisp.org>
543
544         gnulib-tool: Highlight the changed options.
545         * gnulib-tool (func_usage): Display the --import, --add-import,
546         --remove-import explanations in bold font.
547
548 2010-09-06  Karl Berry  <karl@gnu.org>
549
550         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
551
552 2010-09-05  Bruno Haible  <bruno@clisp.org>
553
554         uniwidth/width: Update comment.
555         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
556         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
557
558 2010-09-05  Bruno Haible  <bruno@clisp.org>
559
560         isinf, isnan: Relax license.
561         * modules/isinf (License): Change from GPL to LGPL, with consent from
562         Ben Pfaff.
563         * modules/isnan (License): Likewise.
564         Requested by Ludovic Courtès.
565
566 2010-09-04  Bruno Haible  <bruno@clisp.org>
567
568         gnulib-tool: Help migration from --import to --add-import or --update.
569         * gnulib-tool: Emit a verbose error message when --import is used
570         without any module name.
571
572 2010-09-04  Bruno Haible  <bruno@clisp.org>
573
574         Update doc about gnulib-tool.
575         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
576         'gnulib-tool --update' in more detail.
577         Reported by Eric Blake.
578
579 2010-09-04  Bruno Haible  <bruno@clisp.org>
580
581         gnulib-tool: Change --import. New options --add/remove-import.
582         * gnulib-tool: New options --add-import, --remove-import.
583         (func_usage): Document them.
584         (have_associative): Define always.
585         (func_import): In import mode, don't merge the specified settings with
586         the cached settings. Implement remove-import mode.
587         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
588         Explain when to use them versus --import.
589         (Simple update): Use --add-import instead of --import.
590         * NEWS: Mention the change.
591
592 2010-09-04  Bruno Haible  <bruno@clisp.org>
593
594         * doc/gnulib-tool.texi (Initial import): Update paragraph about
595         separate gnulib.mk.
596
597 2010-09-04  Bruno Haible  <bruno@clisp.org>
598
599         gnulib-tool: Don't talk about CVS any more.
600         * gnulib-tool (func_usage, func_import): Write "version control"
601         instead of CVS.
602
603 2010-09-04  Jim Meyering  <meyering@redhat.com>
604
605         maint.mk: avoid obscure sc_copyright_check failure in coreutils
606         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
607         false positives (whose names may be ill-chosen) when searching
608         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
609         would cause a false-positive.
610
611         avoid coreutils "make distcheck" failure
612         Coreutils tests with an absolute build directory name that contains
613         a space.  Not quoting this directory name caused a failure.
614         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
615         * tests/test-vc-list-files-cvs.sh: Likewise.
616
617 2010-09-04  Bruno Haible  <bruno@clisp.org>
618
619         gnulib-tool: Avoid error when run in a package without Makefile.am.
620         * gnulib-tool: When collecting the m4dirs in a package that does not
621         have a Makefile.am, eliminate those directories that contain no
622         gnulib-cache.m4. Fix expression that counts these directories.
623
624 2010-09-04  Bruno Haible  <bruno@clisp.org>
625
626         update-copyright test: Improve output when perl is missing or too old.
627         * tests/test-update-copyright.sh: Move test of Perl version down after
628         the test whether Perl exists. Provide an explanation relating Perl's
629         error message to Automake's SKIP: message.
630
631 2010-09-04  Bruno Haible  <bruno@clisp.org>
632
633         Don't augment PATH in TESTS_ENVIRONMENT.
634         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
635         set abs_aux_dir instead of augmenting PATH.
636         * modules/vc-list-files-tests (Makefile.am): Likewise.
637         * tests/test-update-copyright.sh: Augment PATH here.
638         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
639         path_prepend_.
640         * tests/test-vc-list-files-git.sh: Likewise.
641
642 2010-09-04  Jim Meyering  <meyering@redhat.com>
643
644         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
645         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
646
647 2010-09-04  Bruno Haible  <bruno@clisp.org>
648
649         strdup: Fix compilation error in C++ mode.
650         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
651         the macro.
652
653 2010-09-04  Bruno Haible  <bruno@clisp.org>
654
655         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
656         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
657         macro into a function.
658         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
659
660 2010-09-04  Bruno Haible  <bruno@clisp.org>
661
662         Set PATH_SEPARATOR the same way autoconf does.
663         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
664         the value of PATH_SEPARATOR the same way autoconf-generated configure
665         scripts do.
666         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
667         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
668
669 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
670
671         Set PATH_SEPARATOR the same way autoconf does.
672         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
673         the same way autoconf-generated configure scripts do.
674         * posix-modules: Likewise.
675
676 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
677
678         hash: fix safe_hasher const typo
679         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
680         const; otherwise, there is a type error later.
681
682 2010-09-02  Jim Meyering  <meyering@redhat.com>
683
684         test-update-copyright.sh: require perl 5.8.0
685         * tests/test-update-copyright.sh: Require 5.8.0,
686         which Tom G. Christensen has confirmed is adequate,
687         while 5.6.1 is not.
688
689 2010-09-02  Eric Blake  <eblake@redhat.com>
690
691         tests: init.sh improvements for re-exec'ing with zsh
692         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
693         -vx through shell re-exec.
694         Reported by Tom G. Christensen.
695
696         wctype: fix typo in previous commit
697         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
698         Reported by Ludovic Courtès.
699
700 2010-09-02  Jim Meyering  <meyering@redhat.com>
701
702         test-update-copyright.sh: skip test if Perl is too old
703         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
704         Reported by Tom G. Christensen.
705
706 2010-09-02  Bruno Haible  <bruno@clisp.org>
707
708         wctype: Avoid compilation error on IRIX 6.5.30.
709         * lib/wctype.in.h (iswblank): Declare with a replacement if
710         REPLACE_ISWBLANK is set.
711         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
712         declared. Set REPLACE_ISWBLANK.
713         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
714         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
715         * doc/posix-headers/wctype.texi: Likewise.
716         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
717
718 2010-09-01  Bruno Haible  <bruno@clisp.org>
719
720         New module 'socketlib'.
721         * modules/socketlib: New file.
722         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
723         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
724         * modules/sockets (Depends-on): Add socketlib.
725         Suggested by Sam Steingold <sds@gnu.org>.
726
727 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
728
729         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
730
731         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
732         when one needs search access to a directory but not read access.
733         On systems where it is available, it works in some cases where
734         O_RDONLY does not, namely on directories that are searchable but
735         not readable, and which need only to be searchable.  If O_SEARCH
736         is not available, fall back to the traditional method of using
737         O_RDONLY.
738
739         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
740         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
741         when opening a directory that needs only to be searchable.
742         * lib/chdir-safer.c (chdir_no_follow): Likewise.
743         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
744         * lib/openat-proc.c (openat_proc_name): Likewise.
745         * lib/openat.c (openat_needs_fchdir): Likewise.
746         * lib/save-cwd.c (save_cwd): Likewise.
747         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
748
749 2010-08-28  Bruno Haible  <bruno@clisp.org>
750
751         New module 'host-cpu-c-abi'.
752         * modules/host-cpu-c-abi: New file.
753         * m4/host-cpu-c-abi.m4: New file, based on part of
754         clisp/src/m4/general.m4.
755         Requested by Sam Steingold <sds@gnu.org>.
756
757 2010-08-31  Eric Blake  <eblake@redhat.com>
758         and Jim Meyering  <meyering@redhat.com>
759
760         hash: factor, and guard against misbehaving hasher function
761         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
762         of table->hasher's return value.  Also protect against a hash value
763         so large that adding it to table->bucket results in a NULL pointer.
764         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
765         Use it in place of open-coded check-and-abort.
766
767 2010-08-30  Bruno Haible  <bruno@clisp.org>
768
769         hash: silence spurious clang warning
770         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
771         Reported by Eric Blake.
772
773 2010-08-30  Eric Blake  <eblake@redhat.com>
774
775         strstr, memmem, strcasestr: avoid leaked shell message
776         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
777         FreeBSD.
778         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
779         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
780
781         tests: silence clang warning
782         * tests/test-malloca.c (do_allocation): Avoid dead store.
783
784 2010-08-29  Bruno Haible  <bruno@clisp.org>
785
786         gettext: Fix recent mistake.
787         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
788
789 2010-08-29  Bruno Haible  <bruno@clisp.org>
790
791         selinux-h: Offer a --without-selinux option.
792         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
793         --without-selinux was specified, skip all tests and define
794         HAVE_SELINUX_SELINUX_H to 0.
795         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
796         set LIB_SELINUX to empty.
797         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
798         gl_LIBSELINUX. If --without-selinux was specified, replace
799         selinux/context.h.
800         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
801
802 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
803             Bruno Haible  <bruno@clisp.org>
804
805         Make the module 'realloc-gnu' work again on AIX and OSF/1.
806         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
807         of HAVE_REALLOC.
808         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
809         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
810         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
811         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
812
813 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
814             Bruno Haible  <bruno@clisp.org>
815
816         Make the module 'calloc-gnu' work again on AIX and OSF/1.
817         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
818         HAVE_CALLOC.
819         * lib/xmalloc.c: Update accordingly.
820         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
821         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
822         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
823
824 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
825             Bruno Haible  <bruno@clisp.org>
826
827         Make the module 'malloc-gnu' work again on AIX and OSF/1.
828         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
829         HAVE_MALLOC.
830         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
831         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
832         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
833
834 2010-08-29  Bruno Haible  <bruno@clisp.org>
835
836         Update modules list.
837         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
838         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
839         (String handling <string.h>): Add astrxfrm.
840         (File system functions): Add readlinkat.
841
842 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
843
844         Tests for module 'realloc-gnu'.
845         * modules/realloc-gnu-tests: New file.
846         * tests/test-realloc-gnu.c: New file.
847
848         Tests for module 'calloc-gnu'.
849         * modules/calloc-gnu-tests: New file.
850         * tests/test-calloc-gnu.c: New file.
851
852         Tests for module 'malloc-gnu'.
853         * modules/malloc-gnu-tests: New file.
854         * tests/test-malloc-gnu.c: New file.
855
856 2010-08-28  Bruno Haible  <bruno@clisp.org>
857
858         Rename module 'realloc' -> 'realloc-gnu'.
859         * modules/realloc-gnu: New file, copied from modules/realloc.
860         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
861         obsolete.
862         * modules/mgetgroups (Depends-on): Update.
863         * doc/posix-functions/realloc.texi: Update.
864         * NEWS: Mention the change.
865
866         Rename module 'calloc' -> 'calloc-gnu'.
867         * modules/calloc-gnu: New file, copied from modules/calloc.
868         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
869         obsolete.
870         * doc/posix-functions/calloc.texi: Update.
871         * NEWS: Mention the change.
872
873         Rename module 'malloc' -> 'malloc-gnu'.
874         * modules/malloc-gnu: New file, copied from modules/malloc.
875         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
876         obsolete.
877         * modules/argp (Depends-on): Update.
878         * modules/regex (Depends-on): Update.
879         * doc/posix-functions/malloc.texi: Update.
880         * NEWS: Mention the change.
881
882 2010-08-28  Eric Blake  <eblake@redhat.com>
883
884         pread, pwrite: add missing dependency
885         * modules/pread (Depends-on): Add extensions.
886         * modules/pwrite (Depends-on): Likewise.
887
888 2010-08-28  Bruno Haible  <bruno@clisp.org>
889
890         unistr/u*-strchr: Fix tests dependencies.
891         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
892         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
893         Reported by Ian Beckwith <ianb@erislabs.net>.
894
895 2010-08-28  Bruno Haible  <bruno@clisp.org>
896
897         read-file: Don't occupy too much unused memory.
898         * lib/read-file.c (fread_file): Shrink the buffer at the end.
899
900 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
901             Eric Blake  <eblake@redhat.com>
902             Bruno Haible  <bruno@clisp.org>
903
904         read-file: Avoid memory reallocations with regular files.
905         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
906         (fread_file): With regular files, use the remaining length as the
907         initial buffer size.  Check against overflow.
908         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
909         sys_stat.
910
911 2010-08-28  Bruno Haible  <bruno@clisp.org>
912
913         ftello: Relax license.
914         * modules/ftello (License): Relax to LGPLv2+.
915         Reported by Eric Blake.
916
917 2010-08-28  Bruno Haible  <bruno@clisp.org>
918
919         Avoid relocwrapper link errors due to gnulib replacement functions.
920         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
921         function.
922         Reported by Ben Pfaff <blp@cs.stanford.edu>.
923
924 2010-08-28  Bruno Haible  <bruno@clisp.org>
925
926         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
927         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
928         defined.
929         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
930         Suggested by Eric Blake.
931
932 2010-08-28  Bruno Haible  <bruno@clisp.org>
933
934         sys_socket, netdb: Ensure socklen_t gets defined.
935         * modules/sys_socket (Depends-on): Add socklen.
936         * modules/netdb (Depends-on): Likewise.
937         * modules/getaddrinfo (Depends-on): Remove socklen.
938         * modules/getsockopt (Depends-on): Likewise.
939         * modules/setsockopt (Depends-on): Likewise.
940         * tests/test-sys_socket.c: Check that socklen_t is defined.
941         * tests/test-netdb.c: Likewise.
942         * m4/socklen.m4: Update comments.
943         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
944
945 2010-08-27  Eric Blake  <eblake@redhat.com>
946
947         login_tty: add missing dependency
948         * modules/login_tty (Depends-on): Add pty.
949
950 2010-08-26  Eric Blake  <eblake@redhat.com>
951
952         lib-symbol-versions: fix m4 quoting
953         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
954         format for AC_LINK_IFELSE.
955
956         glob: fix compile test
957         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
958
959         btowc: fix missing file
960         * modules/btowc (Files): Also ship locale-fr.m4.
961
962         lseek: fix link test
963         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
964         AC_LINK_IFELSE.
965
966         include_next: silence autoconf 2.68 warning
967         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
968         AC_COMPILE_IFELSE as special.
969         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
970         autoconf < 2.68.
971
972         acl: fix compilation test
973         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
974         AC_COMPILE_IFELSE.
975
976 2010-08-26  Bruno Haible  <bruno@clisp.org>
977
978         Modernize AC_TRY_RUN invocations.
979         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
980         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
981         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
982         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
983         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
984         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
985         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
986         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
987         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
988         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
989         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
990         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
991         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
992         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
993         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
994         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
995         gl_MBRLEN_NUL_RETVAL): Likewise.
996         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
997         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
998         Likewise.
999         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
1000         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
1001         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
1002         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
1003         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
1004         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
1005         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
1006         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
1007         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
1008         Likewise.
1009         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
1010         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
1011         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
1012         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
1013         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
1014         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
1015         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
1016         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
1017         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
1018         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
1019
1020 2010-08-26  Bruno Haible  <bruno@clisp.org>
1021
1022         Modernize AC_TRY_LINK invocations.
1023         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
1024         AC_TRY_LINK.
1025         * m4/argp.m4 (gl_ARGP): Likewise.
1026         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
1027         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
1028         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
1029         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
1030         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
1031         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
1032         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
1033         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
1034         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
1035         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
1036         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
1037         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
1038         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
1039         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
1040         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
1041         * m4/hostent.m4 (gl_HOSTENT): Likewise.
1042         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
1043         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
1044         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
1045         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
1046         Likewise.
1047         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
1048         Likewise.
1049         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
1050         Likewise.
1051         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
1052         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
1053         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
1054         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
1055         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
1056         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
1057         * m4/servent.m4 (gl_SERVENT): Likewise.
1058         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
1059         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
1060         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
1061         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
1062         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
1063         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
1064         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
1065         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
1066         * modules/tsearch-tests (configure.ac): Likewise.
1067
1068 2010-08-26  Bruno Haible  <bruno@clisp.org>
1069
1070         Modernize AC_TRY_COMPILE invocations.
1071         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
1072         AC_TRY_COMPILE.
1073         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
1074         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
1075         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
1076         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
1077         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
1078         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
1079         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
1080         * m4/lock.m4 (gl_LOCK): Likewise.
1081         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
1082         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
1083         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
1084         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
1085         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
1086         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
1087         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
1088         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
1089         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
1090         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
1091         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
1092         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
1093         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
1094         extraneous semicolon.
1095
1096 2010-08-26  Jim Meyering  <meyering@redhat.com>
1097
1098         stat-time: relax license LGPL
1099         * modules/stat-time (License): Change from GPL to LGPL,
1100         with consent from all contributors, for use in libguile.
1101         Requested by Ludovic Courtès.
1102
1103 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
1104
1105         poll: return immediately on POLLHUP.
1106         * lib/poll.c (poll): Always set timeout before wait_timeout is
1107         computed.
1108
1109 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1110
1111         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
1112         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
1113         rmdir ("dir/.//"), unlinkat.
1114
1115 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1116
1117         stdbool: avoid spurious failure with modern xlc
1118         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
1119
1120 2010-08-24  Bruno Haible  <bruno@clisp.org>
1121
1122         getloadavg: simplify code
1123         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
1124         gl_have_func. Update comments.
1125
1126 2010-08-24  Eric Blake  <eblake@redhat.com>
1127
1128         getloadavg: don't define SVR4 on cygwin
1129         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
1130         only define SVR4 when -lkvm is required.
1131         Reported by Yaakov Selkowitz.
1132
1133 2010-08-24  Bruno Haible  <bruno@clisp.org>
1134
1135         priv-set: fix comment
1136         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
1137
1138 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
1139
1140         priv-set: fix comments
1141         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
1142         to match code, as suggested by David Bartley in:
1143         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
1144
1145 2010-08-23  Eric Blake  <eblake@redhat.com>
1146
1147         stdbool: avoid rejecting clang
1148         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
1149         * tests/test-stdbool.c: Enable more tests if using the system
1150         <stdbool.h> instead of the gnulib replacement.
1151         (main): Move xlc bug test to a runtime test for all compilers.
1152         Reported by Anders Kaseorg.
1153
1154         argz: fix shell quoting issue
1155         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
1156         Reported by Charles Wilson.
1157
1158 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
1159             Erik Faye-Lund <kusmabite@gmail.com>
1160
1161         poll, select: handle ERROR_BROKEN_PIPE.
1162         * lib/poll.c (win32_compute_revents): Return POLLHUP when
1163         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
1164         * lib/select.c (win32_compute_revents): Do not mark a pipe
1165         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
1166
1167 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
1168
1169         fts: allow compilation with C++
1170         * lib/fts_.h: Specify extern "C" linkage with C++.
1171
1172 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1173
1174         Fix gnulib-tool sed script de-commentation for AIX sed.
1175         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
1176         sed.
1177
1178 2010-08-17  Eric Blake  <eblake@redhat.com>
1179
1180         test-stddef: test for (some) offsetof bugs
1181         * tests/test-stddef.c: Enhance test to ensure correct type of
1182         offsetof.
1183         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
1184         that we are not fixing at this time.
1185
1186 2010-08-15  Bruno Haible  <bruno@clisp.org>
1187
1188         stpncpy: Allow stpncpy to be defined as a macro.
1189         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
1190         if it's already correctly declared.
1191         * lib/string.in.h (stpncpy): Undefine before redefining.
1192         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
1193
1194 2010-08-14  Bruno Haible  <bruno@clisp.org>
1195
1196         Rename module 'memxfrm' to 'amemxfrm'.
1197         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
1198         (amemxfrm): Renamed from memxfrm.
1199         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
1200         (amemxfrm): Renamed from memxfrm.
1201         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
1202         * NEWS: Mention the change.
1203         * MODULES.html.sh (String handling <string.h>): Update.
1204         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
1205         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
1206         * lib/unicase/u16-casexfrm.c: Likewise.
1207         * lib/unicase/u32-casexfrm.c: Likewise.
1208         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
1209         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
1210         * lib/uninorm/u16-normxfrm.c: Likewise.
1211         * lib/uninorm/u32-normxfrm.c: Likewise.
1212         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
1213         memxfrm.
1214         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
1215         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
1216         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
1217         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
1218         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
1219         Suggested by Paul Eggert.
1220
1221 2010-08-14  Bruno Haible  <bruno@clisp.org>
1222
1223         Tests for module 'astrxfrm'.
1224         * modules/astrxfrm-tests: New file.
1225         * tests/test-astrxfrm.c: New file.
1226
1227         New module 'astrxfrm'.
1228         * lib/astrxfrm.h: New file.
1229         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
1230         * modules/astrxfrm: New file.
1231
1232 2010-08-14  Reuben Thomas <rrt@sc3d.org>
1233
1234         regex: Tweak doc.
1235         * doc/regex.texi (Overview): Don't mention regex.c.
1236         (GNU Regular Expression Compiling): Likewise.
1237         (Match-end-of-line Operator): Mention 'not_eol'.
1238
1239 2010-08-14  Brian Gough  <bjg@gnu.org>
1240             Bruno Haible  <bruno@clisp.org>
1241
1242         git-merge-changelog: add doc relating to use with bzr and hg.
1243         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
1244
1245 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
1246
1247         pthread: fix pthread.h creation for srcdir != builddir
1248         * modules/pthread (Makefile.am): Fix the rule to work also in a
1249         non-srcdir build.
1250
1251 2010-08-13  Karl Berry  <karl@gnu.org>
1252
1253         * doc/regex.texi (Predefined Syntaxes): @smallexample.
1254         * doc/posix-*/*: force line break before @url of POSIX
1255         specifications.
1256         Suggested by Werner Lemberg.
1257
1258 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
1259
1260         strtod: fix const diagnostic
1261         * lib/strtod.c (strtod): Don't assign const char * to char *,
1262         as this elicits a warning from GCC when warnings are enabled.
1263
1264 2010-08-10  Pádraig Brady <P@draigbrady.com>
1265         and Eric Blake  <eblake@redhat.com>
1266
1267         copy-acl: ignore ENOTSUP on HP-UX
1268         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
1269         so that it is available for HP-UX.
1270         * lib/copy-acl.c (qcopy_acl): Use it.
1271         Reported by Patrick M. Callahan.
1272
1273 2010-08-10  Eric Blake  <eblake@redhat.com>
1274
1275         open, chown: relax license
1276         * modules/open (License): Change to LGPLv2+, with consent by all
1277         authors, for use in augeas.
1278         * modules/chown (License): Likewise.
1279         * modules/lchown (Likewise): Likewise.
1280         Requested by Adam Stokes.
1281
1282 2010-08-09  Karl Berry  <karl@gnu.org>
1283
1284         * build-aux/ar-lib: new file, import from Automake.
1285         * config/srclist.txt: autocheck for updates.
1286
1287 2010-08-09  Eric Blake  <eblake@redhat.com>
1288
1289         readlinkat: adjust client modules
1290         * modules/areadlinkat (Depends-on): Use readlinkat, not
1291         symlinkat.
1292         * modules/areadlinkat-with-size (Depends-on): Likewise.
1293
1294         mknod: be more vocal about danger of running tests as root
1295         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
1296         root, since that is just asking for problems.
1297         Suggested by Bruno Haible, based on a report by Rainer Tammer.
1298
1299         readlinkat: split into its own module
1300         * modules/symlinkat: Split readlinkat...
1301         * modules/readlinkat: ...into separate module.
1302         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
1303         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
1304         * lib/symlinkat.c (readlinkat): Move...
1305         * lib/readlinkat.c: ...into new file.
1306         * modules/symlinkat-tests: Split readlinkat test...
1307         * modules/readlinkat-tests: ...into separate module.
1308         * tests/test-symlinkat.c: Split...
1309         * tests/test-readlinkat.c: ...into new file.
1310         * NEWS: Document the split.
1311         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
1312         * lib/unistd.in.h (readlinkat): Likewise.
1313         Suggested by Bruno Haible.
1314
1315 2010-08-08  Bruno Haible  <bruno@clisp.org>
1316
1317         memxfrm: Speed up.
1318         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
1319         that usually only one call to strxfrm is necessary for each string
1320         part.
1321         Reported by Paul Eggert <eggert@cs.ucla.edu>.
1322
1323 2010-08-07  Karl Berry  <karl@gnu.org>
1324
1325         * doc/posix-headers/limits.texi,
1326         * doc/posix-functions/malloc.texi,
1327         * doc/posix-functions/strsignal.texi: missing @item.
1328         * doc/ld-version-script.texi: spurious leading i.
1329         * doc/regex.texi (Interval Operators): no commas inside @var.
1330
1331 2010-08-01  Bruno Haible  <bruno@clisp.org>
1332
1333         Integrate the regex documentation.
1334         * doc/gnulib.texi: Define 'cn' index.
1335         (Regular expressions): New a chapter that includes regex.texi and
1336         regexprops-generic.texi.
1337         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
1338         syntax.
1339
1340         Whitespace cleanup.
1341         * doc/regex.texi: Remove trailing spaces.
1342
1343         Add regex documentation.
1344         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
1345         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
1346         Written by Kathy A. Hargreaves and Karl Berry.
1347
1348 2010-08-01  Bruno Haible  <bruno@clisp.org>
1349
1350         link: Update documentation.
1351         * doc/posix-functions/link.texi: Update regarding Solaris.
1352
1353 2010-07-31  Bruno Haible  <bruno@clisp.org>
1354
1355         Update modules list.
1356         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
1357         (String handling <string.h>): Add memcmp2, memxfrm.
1358         (Container data structures): Add xlist, xsublist, xoset.
1359         (Core language properties): Add alignof, unused-parameter.
1360         (Process control, Numeric conversion functions <stdlib.h>): Renamed
1361         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
1362         (Unibyte characters <ctype.h>): New section.
1363         (String handling <string.h>): New section.
1364         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
1365         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
1366         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
1367         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
1368         tan, tanh, tanl, y0, y1, yn.
1369         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
1370         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
1371         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
1372         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
1373         unlockpt, vdprintf, vdprintf-posix.
1374         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
1375         (File system functions): Add concat-filename, sys_file, sys_ioctl,
1376         xconcat-filename.
1377         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
1378         getdtablesize, pipe2, pipe2-safer.
1379         (Security): New section.
1380         (Networking functions): Add accept4.
1381         (Signal handling): Add sigpipe.
1382         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
1383         mbmemcasecoll.
1384         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
1385         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
1386         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
1387         pipe-filter-ii.
1388         (Misc): Add argp-version-etc, login_tty, parse-duration.
1389
1390 2010-07-31  Bruno Haible  <bruno@clisp.org>
1391
1392         Improve doc in MODULES.html.
1393         * modules/linkat (Description): Add the word "function".
1394         * modules/mkfifo (Description): Likewise.
1395         * modules/mknod (Description): Likewise.
1396         * modules/remove (Description): Likewise.
1397         * modules/renameat (Description): Likewise.
1398         * modules/stat (Description): Likewise.
1399         * modules/symlink (Description): Likewise.
1400         * modules/unlink (Description): Likewise.
1401
1402 2010-07-31  Bruno Haible  <bruno@clisp.org>
1403
1404         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
1405         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
1406         option --enable/disable-c++ instead of --enable/disable-cxx.
1407         * NEWS: Mention the change.
1408
1409 2010-07-31  Bruno Haible  <bruno@clisp.org>
1410
1411         readlink, areadlink: Relax test a bit.
1412         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
1413         alternative to ENOTDIR.
1414         * tests/test-areadlink.h (test_areadlink): Likewise.
1415         Reported by Rainer Tammer.
1416
1417 2010-07-31  Bruno Haible  <bruno@clisp.org>
1418
1419         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
1420         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
1421         character, perform the search using U_STRCHR.
1422         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
1423         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
1424         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
1425         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
1426         Suggested by Paolo Bonzini.
1427
1428 2010-07-31  Bruno Haible  <bruno@clisp.org>
1429
1430         unistr/u*-strstr: Fix dependencies.
1431         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
1432         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
1433         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
1434
1435 2010-07-31  Bruno Haible  <bruno@clisp.org>
1436
1437         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
1438         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
1439         the beginning of the loop.
1440         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
1441         cases in 'switch' statement.
1442
1443         unistr/u8-strchr: Fix several bugs.
1444         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
1445         the string. When not found, return NULL, not a pointer near the end.
1446
1447         More tests for unistr/u8-strchr.
1448         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
1449         that the function does not read past the first occurrence of the byte
1450         being searched.
1451         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
1452         * tests/unistr/test-u16-strchr.c (main): New function.
1453         * tests/unistr/test-u32-strchr.c (main): New function.
1454
1455 2010-07-31  Bruno Haible  <bruno@clisp.org>
1456
1457         posix-modules: Ignore backup files of documentation files.
1458         * posix-modules: grep only through files named *.texi.
1459
1460 2010-07-31  Bruno Haible  <bruno@clisp.org>
1461
1462         symlinkat: Fix documentation.
1463         * doc/posix-functions/readlinkat.texi: Fix module name.
1464
1465 2010-07-31  Bruno Haible  <bruno@clisp.org>
1466
1467         fchownat: Replace also when chown has the trailing slash bug.
1468         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
1469         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
1470         introduced on 2010-04-10.
1471         Reported by Rainer Tammer.
1472
1473 2010-07-31  Bruno Haible  <bruno@clisp.org>
1474
1475         linkat: Work around AIX 7.1 bug.
1476         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
1477         whether linkat handles trailing slash correctly. If not, replace linkat
1478         and define LINKAT_TRAILING_SLASH_BUG.
1479         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
1480         check whether (fd1,file1) points to a directory if file1 or file2 ends
1481         in a slash. Code taken from lib/link.c.
1482         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
1483         Reported by Rainer Tammer.
1484
1485 2010-07-31  Bruno Haible  <bruno@clisp.org>
1486
1487         Correctly determine whether pow is available in libc on AIX 7 with xlc.
1488         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
1489         This disables an xlc optimization that was causing wrong test results.
1490         Reported by Rainer Tammer.
1491
1492 2010-07-31  Bruno Haible  <bruno@clisp.org>
1493
1494         iconv: Work around AIX 6.1..7.1 bug.
1495         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
1496         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
1497         cross-compiling, guess no on all versions of AIX.
1498         Reported by Rainer Tammer.
1499
1500 2010-07-31  Bruno Haible  <bruno@clisp.org>
1501
1502         readlink: Relax test a bit.
1503         * tests/test-readlink.h (test_readlink): Allow different errno value
1504         when readlink is called with a file name that ends in / and refers to
1505         a file.
1506         Suggested by Eric Blake.
1507         Reported by Rainer Tammer.
1508
1509 2010-07-31  Bruno Haible  <bruno@clisp.org>
1510
1511         copysign: Does not require -lm on glibc systems.
1512         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
1513         gl_COMMON_DOUBLE_MATHFUNC.
1514         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
1515
1516 2010-07-31  Bruno Haible  <bruno@clisp.org>
1517
1518         duplocale: Work around AIX 7.1 bug.
1519         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
1520         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
1521         * lib/duplocale.c (rpl_duplocale): Update comment.
1522         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
1523         Reported by Rainer Tammer.
1524
1525 2010-07-30  Bruno Haible  <bruno@clisp.org>
1526
1527         dirfd: Avoid link error on AIX 7.1.
1528         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
1529         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
1530         exist, set REPLACE_DIRFD.
1531         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
1532         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
1533         * doc/posix-functions/dirfd.texi: Update.
1534         Reported by Rainer Tammer.
1535
1536 2010-07-30  Eric Blake  <eblake@redhat.com>
1537
1538         strtod: next round of AIX fixes
1539         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
1540         exponent.
1541         * tests/test-strtod.c (main): Enhance tests.
1542         * doc/posix-functions/strtod.texi (strtod): Document next bug.
1543         Reported by Rainer Tammer.
1544
1545         futimens: fix configure check
1546         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
1547         Reported by Bruno Haible.
1548
1549 2010-07-30  Bruno Haible  <bruno@clisp.org>
1550
1551         getline: Update regarding AIX.
1552         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
1553         Reported by Rainer Tammer.
1554
1555 2010-07-30  Bruno Haible  <bruno@clisp.org>
1556
1557         wcwidth: Drop replacement on AIX 7.
1558         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
1559         AIX 7.
1560         Reported by Rainer Tammer.
1561
1562 2010-07-30  Bruno Haible  <bruno@clisp.org>
1563
1564         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
1565         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
1566         a 'char *'.
1567         Reported by Rainer Tammer.
1568
1569 2010-07-30  Bruno Haible  <bruno@clisp.org>
1570
1571         unlink: Update regarding AIX.
1572         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
1573         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
1574         Reported by Rainer Tammer.
1575
1576 2010-07-30  Bruno Haible  <bruno@clisp.org>
1577
1578         symlink: Update regarding AIX.
1579         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
1580         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
1581         Reported by Rainer Tammer.
1582
1583 2010-07-30  Bruno Haible  <bruno@clisp.org>
1584
1585         strndup: Update regarding AIX.
1586         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
1587         AIX 7.
1588         Reported by Rainer Tammer.
1589
1590 2010-07-30  Bruno Haible  <bruno@clisp.org>
1591
1592         stat: Update regarding AIX.
1593         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
1594         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
1595         Reported by Rainer Tammer.
1596
1597 2010-07-30  Bruno Haible  <bruno@clisp.org>
1598
1599         truncl: Fix autoconf test.
1600         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
1601         whether truncl works.
1602         Reported by Rainer Tammer.
1603
1604 2010-07-30  Bruno Haible  <bruno@clisp.org>
1605
1606         round: Update regarding AIX.
1607         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
1608         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
1609         Reported by Rainer Tammer.
1610
1611 2010-07-30  Bruno Haible  <bruno@clisp.org>
1612
1613         rename: Update regarding AIX.
1614         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
1615         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
1616         Reported by Rainer Tammer.
1617
1618 2010-07-30  Bruno Haible  <bruno@clisp.org>
1619
1620         printf.m4: Update regarding AIX.
1621         * m4/printf.m4: Update comments regarding AIX.
1622         Reported by Rainer Tammer.
1623
1624 2010-07-30  Bruno Haible  <bruno@clisp.org>
1625
1626         iconv: Update regarding AIX.
1627         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
1628         AIX 7.
1629         Reported by Rainer Tammer.
1630
1631 2010-07-30  Bruno Haible  <bruno@clisp.org>
1632
1633         getopt: Update regarding AIX.
1634         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
1635         no on AIX.
1636         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
1637         Reported by Rainer Tammer.
1638
1639 2010-07-30  Bruno Haible  <bruno@clisp.org>
1640
1641         ldexpl; Update regarding AIX.
1642         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
1643         on AIX 7.
1644         Reported by Rainer Tammer.
1645
1646 2010-07-30  Bruno Haible  <bruno@clisp.org>
1647
1648         frexpl: Update regarding AIX.
1649         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
1650         on AIX 7.
1651         Reported by Rainer Tammer.
1652
1653 2010-07-30  Bruno Haible  <bruno@clisp.org>
1654
1655         open, fopen: Update regarding AIX.
1656         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
1657         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
1658         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
1659         * doc/posix-functions/fopen.texi: Likewise.
1660         Reported by Rainer Tammer.
1661
1662 2010-07-30  Bruno Haible  <bruno@clisp.org>
1663
1664         chown: Update doc regarding AIX.
1665         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
1666         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
1667         Reported by Rainer Tammer.
1668
1669 2010-07-30  Eric Blake  <eblake@redhat.com>
1670
1671         strtod: fix bug in replacement function on AIX
1672         * lib/strtod.c (strtod): Special case broken "0x" parse in
1673         underlying strtod.
1674         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
1675         * doc/posix-functions/strtod.texi (strtod): Likewise.
1676         Reported by Rainer Tammer.
1677
1678 2010-07-30  Bruno Haible  <bruno@clisp.org>
1679
1680         mbrlen: Fix cross-compilation guess for AIX.
1681         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
1682         guess. Leftover from 2008-12-22.
1683
1684 2010-07-30  Bruno Haible  <bruno@clisp.org>
1685
1686         mbrtowc: Fix cross-compilation guess for AIX.
1687         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
1688         guess. Leftover from 2008-12-21.
1689
1690 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
1691
1692         init.sh: work around trap limitation of some shells
1693         * tests/init.sh (setup_): Move exit trap outside of shell function.
1694
1695 2010-07-29  Eric Blake  <eblake@redhat.com>
1696
1697         strtod: aid debugging
1698         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
1699         understanding why strtod is rejected.
1700
1701 2010-07-28  Bruno Haible  <bruno@clisp.org>
1702
1703         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
1704         * lib/unistr/u8-chr.c: Include <string.h>.
1705         * tests/unistr/test-u8-chr.c: Likewise.
1706         * tests/unistr/test-u16-chr.c: Likewise.
1707         * tests/unistr/test-u32-chr.c: Likewise.
1708         * tests/unistr/test-u8-strchr.c: Likewise.
1709         * tests/unistr/test-u16-strchr.c: Likewise.
1710         * tests/unistr/test-u32-strchr.c: Likewise.
1711         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
1712         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
1713         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
1714         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
1715
1716 2010-07-28  Bruno Haible  <bruno@clisp.org>
1717
1718         Use spaces for indentation, not tabs.
1719         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
1720
1721 2010-07-27  Bruno Haible  <bruno@clisp.org>
1722
1723         mbspcasecmp: Fix function specification.
1724         * lib/string.in.h (mbspcasecmp): Fix specification comment.
1725         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
1726         Reported by Eric Blake <eblake@redhat.com>.
1727
1728 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
1729
1730         timespec: use cast and not conditional, as truncation isn't possible
1731         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
1732         instead of a conditional.  Comment about the situation in more detail.
1733         This undoes most of the 2009-10-29 patch.
1734
1735 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
1736
1737         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
1738         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
1739         * lib/unistr/u8-strchr.c: Likewise.
1740         * modules/unistr/u8-chr: Depend on memchr.
1741
1742         unistr/u*-strchr: add tests
1743         * modules/unistr/u8-strchr-tests: New file.
1744         * modules/unistr/u16-strchr-tests: New file.
1745         * modules/unistr/u32-strchr-tests: New file.
1746         * tests/unistr/test-strchr.h: New file.
1747         * tests/unistr/test-u8-strchr.c: New file.
1748         * tests/unistr/test-u16-strchr.c: New file.
1749         * tests/unistr/test-u32-strchr.c: New file.
1750
1751         unistr/u*-chr: test multibyte sequences more
1752         * tests/unistr/test-chr.h: Do complete testing of the characters in the
1753         test vector.
1754         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
1755         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
1756         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
1757
1758         unistr/u*-chr: test multibyte sequences
1759         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
1760
1761         unistr/u*-chr: prepare for multibyte tests
1762         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
1763         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
1764         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
1765         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
1766         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
1767         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
1768
1769 2010-07-18  Bruno Haible  <bruno@clisp.org>
1770
1771         unistr/u8-strchr: Optimize non-ASCII argument case.
1772         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
1773         because the first byte often matches anyway.
1774         Reported by Pádraig Brady <P@draigbrady.com>.
1775
1776 2010-07-15  Karl Berry  <karl@gnu.org>
1777
1778         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
1779
1780 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
1781
1782         getcwd: on Solaris, work better if ancestors are inaccessible
1783         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
1784         buffer and size, try again with a large buffer.  This works better
1785         on Solaris, since its getcwd succeeds even if the path to the root
1786         is inaccessible, and this is helpful in common cases such as .zfs
1787         hidden directories.  Problem reported by J Chapman Flack in
1788         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
1789         Use system getcwd if it's declared, not merely if it's partly
1790         working; use the partly-working test only to avoid needless effort
1791         if the system getcwd fails.
1792         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
1793         comment that was already obsolete and is now even more obsolete.
1794         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
1795         now might call strdup.
1796
1797 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
1798
1799         pthread: Add enough so that coreutils/src/sort.c compiles.
1800         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
1801         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
1802         gnulib. Include <sched.h> and <time.h>, as per POSIX.
1803         Include <sys/types.h>, in case it defines pthread_t.
1804         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
1805         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
1806         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
1807         (pthread_rwlockattr_t, pthread_spinlock_t):
1808         New typedefs, if HAVE_PTHREAD_T is not defined.
1809         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
1810         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
1811         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
1812         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
1813         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
1814         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
1815         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
1816         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
1817         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
1818         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
1819         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
1820         New macros.
1821         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
1822         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
1823         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
1824         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
1825         (pthread_spin_unlock): New dummy functions.
1826         (pthread_create): Return EAGAIN; don't set errno.
1827         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
1828         require AC_C_INLINE.
1829         * modules/pthread (Depends-on): Add sched, time.
1830         (pthread.h): Use AM_V_GEN.
1831
1832 2010-07-13  Bruno Haible  <bruno@clisp.org>
1833
1834         striconveh: Don't malloc memory if the result buffer is sufficient.
1835         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
1836         buffer if its size is sufficient.
1837         Reported by Ludovic Courtès <ludo@gnu.org>.
1838
1839 2010-07-13  Bruno Haible  <bruno@clisp.org>
1840
1841         strtod: Add safety check.
1842         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
1843
1844 2010-07-12  Bruno Haible  <bruno@clisp.org>
1845
1846         Unify tests that set gl_cv_func_ldexpl_no_libm.
1847         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
1848         gl_FUNC_LDEXPL.
1849         (gl_FUNC_LDEXPL): Invoke it.
1850         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
1851
1852 2010-07-12  Bruno Haible  <bruno@clisp.org>
1853
1854         Unify tests that set gl_cv_func_ldexp_no_libm.
1855         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
1856         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
1857         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
1858         (configure.ac): Simply invoke gl_FUNC_LDEXP.
1859         * modules/strtod (Files): Add m4/ldexp.m4.
1860
1861 2010-07-12  Bruno Haible  <bruno@clisp.org>
1862
1863         Unify tests that set gl_cv_func_frexpl_no_libm.
1864         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
1865         gl_FUNC_FREXPL_NO_LIBM.
1866         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
1867         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
1868
1869 2010-07-12  Bruno Haible  <bruno@clisp.org>
1870
1871         Unify tests that set gl_cv_func_frexp_no_libm.
1872         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
1873         gl_FUNC_FREXP_NO_LIBM.
1874         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
1875         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
1876
1877 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
1878
1879         memcoll: clarify sizes versus lengths, document better, and tweak perf
1880         * lib/memcoll.c (strcoll_loop, memcoll0):
1881         Improve quality of descriptive comments.  Name variables
1882         consistently as to whether they are lengths (which do not include
1883         terminating null) versus sizes (which do).
1884         * lib/xmemcoll.c (xmemcoll0): Likewise.
1885         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
1886         returned when s1size == 0; this is easier to compile and saves
1887         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
1888
1889 2010-07-12  Bruno Haible  <bruno@clisp.org>
1890
1891         Tests for module '_Exit'.
1892         * modules/_Exit-tests: New file.
1893         * tests/test-_Exit.sh: New file.
1894         * tests/test-_Exit.c: New file.
1895
1896         New module '_Exit'.
1897         * lib/stdlib.in.h (__attribute__): New macro.
1898         (_Exit): New declaration.
1899         * lib/_Exit.c: New file.
1900         * m4/_Exit.m4: New file.
1901         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
1902         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
1903         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
1904         * modules/_Exit: New file.
1905         * tests/test-stdlib-c++.cc (_Exit): Check signature.
1906         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
1907
1908 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
1909
1910         strtod: make it more-accurate typically, and don't require libm
1911         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
1912         Include limits.h.  Don't include string.h.
1913         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
1914         (locale_isspace): New function, so that no casts are needed to
1915         check whether *s is a space.
1916         (ldexp): Provide an unused dummy if not available.
1917         (scale_radix_exp, parse_number, underlying_strtod): New functions.
1918         (strtod): Use them.  This implementation prefers to use the
1919         underlying strtod if available, falling back on our own code
1920         only to fix known bugs.  This is more likely to produce an
1921         accurate result.  Also, it avoids the use of libm functions.
1922         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
1923         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
1924         was absent, but it caused a test failure with coreutils.
1925         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
1926         with libm.
1927         * modules/strtod (Makefile.am, Link): libm is no longer needed.
1928         * modules/strtod-tests (Makefile.am): Likewise.
1929
1930 2010-07-11  Pádraig Brady  <P@draigBrady.com>
1931             Bruno Haible  <bruno@clisp.org>
1932
1933         unistr/u8-strchr: Optimize ASCII argument case.
1934         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
1935
1936 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
1937
1938         (x)memcoll: minor tweaks
1939         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
1940         is after the type that it qualifies.
1941         (memcoll0): Likewise.
1942         * lib/memcoll.h (memcoll0): Likewise.
1943         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
1944         * lib/xmemcoll.h (xmemcoll0): Likewise.
1945         * lib/memcoll.c (memcoll0): Correct the comment.  This function
1946         differs from memcoll in that the NUL byte is part of the argument.
1947         Omit the abort-checks, as performance is a real issue here.  Plus,
1948         the checks were wrong anyway (an off-by-one error).  Omit local
1949         variable 'diff', as it's a bit clearer that way.
1950         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
1951         no longer needed.
1952
1953 2010-07-08  Chen Guo <chenguo4@yahoo.com>
1954
1955         (x)memcoll: speedup when input is known to be NUL delimited
1956         * lib/memcoll.c: Include stdlib.
1957         (memcoll0) New function.
1958         (strcoll_loop) New function, refactored for use in both memcoll
1959         and memcoll0.
1960         * lib/memcoll.h: Add prototype for memcoll0.
1961         * lib/xmemcoll.c: (xmemcoll0) New function.
1962         (collate_error) New function, refactored for use in both xmemcoll
1963         and xmemcoll0.
1964         * lib/xmemcoll.h: Add prototype for xmemcoll0.
1965         * m4/memcoll.m4: add inline invocation.
1966
1967 2010-07-06  Pádraig Brady  <P@draigBrady.com>
1968
1969         * build-aux/bootstrap: Remove any local translations
1970         from the translation project synchronization directory,
1971         so that local only translations are not distributed.
1972
1973 2010-07-04  Bruno Haible  <bruno@clisp.org>
1974
1975         fsusage: Clarify which code applies to which platforms.
1976         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
1977         platform.
1978         * lib/fsusage.c (get_fs_usage): Likewise.
1979
1980 2010-07-04  Bruno Haible  <bruno@clisp.org>
1981
1982         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
1983         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
1984         Reported by Martin Lambers <marlam@marlam.de>.
1985
1986 2010-07-04  Jim Meyering  <meyering@redhat.com>
1987
1988         hash: once again explicitly disallow insertion of NULL
1989         * lib/hash.c (hash_insert0): Reinstate just-removed test:
1990         inserting a NULL pointer cannot work with these functions.
1991         Add a comment with details.
1992         This reverts part of the 2010-07-01 commit, 5bef1a35
1993         "hash: extend module to deal with non-pointer keys".
1994
1995 2010-07-01  Bruno Haible  <bruno@clisp.org>
1996
1997         stdbool: Update doc.
1998         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
1999         Info from Christian Weisgerber <naddy@mips.inka.de>.
2000
2001 2010-07-01  Jim Meyering  <meyering@redhat.com>
2002
2003         hash: extend module to deal with non-pointer keys
2004         * lib/hash.c (hash_insert0): New interface, much like hash_insert
2005         but that allows insertion of non-pointer entries.
2006         Do not disallow an ENTRY value of NULL.
2007         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
2008         * lib/hash.h (hash_insert0): Declare.
2009
2010 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
2011
2012         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
2013         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
2014         not present (i.e. with autoconf 2.59 and when using gettextize, not
2015         gnulib), require AC_GNU_SOURCE instead.
2016
2017 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
2018
2019         idpriv-drop: Fix tests.
2020         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
2021         not to the test-idpriv-droptemp program.
2022
2023 2010-06-29  Bruno Haible  <bruno@clisp.org>
2024
2025         string: Fix syntax error with g++ 2.96.
2026         * lib/string.in.h (__pure__): Remove definition.
2027         (_GL_ATTRIBUTE_PURE): New macro.
2028         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
2029         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
2030         Reported by Christian Weisgerber <naddy@mips.inka.de>.
2031
2032 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
2033
2034         unitypes: Fix bug introduced on 2010-05-18.
2035         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
2036
2037 2010-06-22  Eric Blake  <eblake@redhat.com>
2038
2039         memmem: slight optimization
2040         * lib/str-two-way.h (critical_factorization): Update comments.
2041         Reduce work during factorization phase.
2042         Reported by Carlos Bueno <carlos@bueno.org>.
2043
2044 2010-06-21  Bruno Haible  <bruno@clisp.org>
2045
2046         Fix HAVE_CALLOC_POSIX misnomer.
2047         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
2048         !HAVE_CALLOC_POSIX.
2049         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
2050         HAVE_CALLOC_POSIX.
2051         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
2052         instead of HAVE_CALLOC_POSIX.
2053         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
2054         HAVE_CALLOC_POSIX.
2055
2056         Use modern idiom for calloc() replacement.
2057         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
2058         AC_FUNC_CALLOC.
2059         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
2060         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
2061         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
2062         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
2063         (gl_REPLACE_CALLOC): New macro.
2064
2065 2010-06-21  Bruno Haible  <bruno@clisp.org>
2066
2067         Fix HAVE_REALLOC_POSIX misnomer.
2068         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
2069         !HAVE_REALLOC_POSIX.
2070         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
2071         HAVE_REALLOC_POSIX.
2072         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
2073         instead of HAVE_REALLOC_POSIX.
2074         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
2075         HAVE_REALLOC_POSIX.
2076
2077         Use modern idiom for realloc() replacement.
2078         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
2079         AC_FUNC_REALLOC.
2080         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
2081         Autoconf's AC_FUNC_REALLOC.
2082         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
2083         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
2084         (gl_REPLACE_REALLOC): New macro.
2085         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
2086
2087 2010-06-21  Bruno Haible  <bruno@clisp.org>
2088
2089         Fix HAVE_MALLOC_POSIX misnomer.
2090         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
2091         !HAVE_MALLOC_POSIX.
2092         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
2093         HAVE_MALLOC_POSIX.
2094         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
2095         instead of HAVE_MALLOC_POSIX.
2096         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
2097         HAVE_MALLOC_POSIX.
2098
2099         Use modern idiom for malloc() replacement.
2100         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
2101         AC_FUNC_MALLOC.
2102         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
2103         Autoconf's AC_FUNC_MALLOC.
2104         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
2105         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
2106         (gl_REPLACE_MALLOC): New macro.
2107         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
2108
2109 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
2110
2111         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
2112         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
2113         This macro takes 3 arguments, not 4.
2114
2115 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
2116
2117         ipv6: fix detection under mingw
2118         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
2119         in6_addr.
2120
2121 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
2122
2123         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
2124         that strtod() works when cross-compiling to a glibc version known
2125         to work.
2126
2127 2010-06-15  Bruno Haible  <bruno@clisp.org>
2128
2129         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
2130
2131 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
2132
2133         select: Correct timeout.
2134         * lib/select.c (rpl_select): Compute wait_timeout correctly.
2135
2136 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
2137
2138         git-version-gen: init shell var to avoid env var influence
2139         * build-aux/git-version-gen (v): Init shell var to empty.
2140
2141 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
2142
2143         priv-set: Don't assume that priv.h exists merely because getppriv does.
2144         See Jan Andersen's bug report about AIX 5L in
2145         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
2146         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
2147         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
2148         * lib/priv-set.h: Likewise.
2149         * tests/test-priv-set.c: Likewise.
2150
2151 2010-06-13  Bruno Haible  <bruno@clisp.org>
2152
2153         relocatable: Make it easier to test whether to install wrappers.
2154         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
2155         RELOCATABLE_VIA_WRAPPER.
2156
2157 2010-06-13  Bruno Haible  <bruno@clisp.org>
2158
2159         gnulib-tool: Display specified modules and dependencies differently.
2160         * gnulib-tool (func_show_module_list): New function.
2161         (func_import, func_create_testdir): Invoke it.
2162         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
2163
2164 2010-06-13  Bruno Haible  <bruno@clisp.org>
2165
2166         gnulib-tool: Align code of func_import and func_create_testdir.
2167         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
2168         specified_modules.
2169
2170 2010-06-12  Jim Meyering  <meyering@redhat.com>
2171
2172         test-inttostr: avoid spurious failure on Solaris 9
2173         * tests/test-inttostr.c (main): Skip the test when snprintf fails
2174         to accept "%ju".  Reported by Bruno Haible.
2175
2176 2010-06-11  Jim Meyering  <meyering@redhat.com>
2177
2178         test-sys_socket: mark variables as used more readably
2179         * tests/test-sys_socket.c (main): Mark otherwise unused variables
2180         as "used" explicitly via (void) statement casts.  This is more
2181         readable than using them in an artificial return expression.
2182         Suggestion from Bruno Haible.
2183
2184 2010-06-11  Bruno Haible  <bruno@clisp.org>
2185
2186         Avoid some more warnings from "gcc -Wwrite-strings".
2187         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
2188         to 'const char *'.
2189         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
2190         * tests/test-c-strcasestr.c (main): Likewise.
2191         * tests/test-mbscasestr1.c (main): Likewise.
2192         * tests/test-mbscasestr2.c (main): Likewise.
2193         * tests/test-memmem.c (main): Likewise.
2194         * tests/test-strstr.c (main): Likewise.
2195         * tests/test-strcasestr.c (main): Likewise.
2196
2197 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2198
2199         init.sh: change framework_failure_ to fail with status 99, not 1
2200         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
2201         automake's parallel-tests rule that this is an unexpected failure,
2202         even if the test is listed in XFAIL_TESTS.
2203
2204 2010-06-11  Jim Meyering  <meyering@redhat.com>
2205
2206         test-inttostr: avoid warnings about 4-6KB literal strings
2207         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
2208         Include "macros.h", for its definition of ASSERT.
2209         (CK): s/assert/ASSERT/
2210         * modules/inttostr-tests (Files): Add macros.h.
2211
2212         init.sh: don't use $ME_ or skip_ before they are defined
2213         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
2214         their first uses.  Also hoist their companions: warn_, fail_,
2215         framework_failure_, $stderr_fileno.  Prompted by a patch from
2216         Stefano Lattarini.
2217
2218         test-sys_socket: avoid set-but-not-used warnings from gcc
2219         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
2220         avoid warning about set-but-not-used variables.
2221
2222         test-xvasprintf: avoid 'const' discard warnings
2223         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
2224         "const" when assigning from literal strings.
2225         (test_xasprintf): Add "void" in function argument list to placate
2226         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
2227
2228         tests: avoid compilation warnings in argmatch and exclude tests...
2229         in packages that define ARGMATCH_DIE_DECL, like coreutils.
2230         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
2231         Since it always exits, declare with the "noreturn" attribute.
2232         * tests/test-argmatch.c: Likewise.
2233
2234         tests: avoid 'const' discard warnings in mbsstr tests
2235         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
2236         * tests/test-mbsstr2.c (main): Likewise.
2237
2238         test-verify: avoid warning from gcc's -Wmissing-declarations
2239         * tests/test-verify.c (function): Declare to be static.
2240
2241         test-inttostr.c: include <string.h> for use of strcmp
2242         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
2243
2244         test-linkat: avoid failed assertion on "other" architectures
2245         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
2246         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
2247         sparc: https://bugs.launchpad.net/bugs/591968
2248
2249 2010-06-11  Jim Meyering  <meyering@redhat.com>
2250
2251         printf.m4: avoid autoconf's "Expanded Before Required" warning
2252         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
2253         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
2254         autoconf warning.
2255
2256 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
2257
2258         Replacement header templates are now named with ".in", not "_".
2259         * doc/gnulib-intro.texi: Correct.
2260
2261 2010-06-10  Jim Meyering  <meyering@redhat.com>
2262
2263         inttostr-tests: depend on snprintf, not snprintf-posix
2264         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
2265         snprintf-posix, to avoid this aclocal failure:
2266           missing file gnulib-tests/vasnprintf.c
2267           configure.ac:45: error: expected source file, required through \
2268           AC_LIBSOURCES, not found
2269
2270 2010-06-10  Jim Meyering  <meyering@redhat.com>
2271
2272         inttostr: add a new function, inttostr, and tests
2273         The namesake function was not available.  The existence of the
2274         template file, inttostr.c makes its addition nontrivial.
2275         * lib/anytostr.c: Rename from inttostr.c.
2276         (anytostr): Rename from inttostr.
2277         * lib/inttostr.c: New file.
2278         * modules/inttostr (Files): Add anytostr.c.
2279         (Makefile.am): Set lib_SOURCES instead of ...
2280         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
2281         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
2282         * lib/offtostr.c: Likewise.
2283         * lib/uinttostr.c: Likewise.
2284         * lib/umaxtostr.c: Likewise.
2285         * modules/inttostr-tests: New file.
2286         * tests/test-inttostr.c: New file.  Test these functions.
2287
2288 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
2289             Bruno Haible  <bruno@clisp.org>
2290
2291         Add "Extending Gnulib" chapter to manual.
2292         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
2293         chapter.
2294         (Extending Gnulib): New chapter.
2295         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
2296         chapter.
2297
2298 2010-06-09  Bruno Haible  <bruno@clisp.org>
2299
2300         Avoid relocwrapper link errors due to gnulib replacement functions.
2301         * lib/areadlink.c: Use the system's malloc, realloc functions.
2302         (areadlink): Set errno to ENOMEM explicitly.
2303         * modules/areadlink (Depends-on): Remove malloc-posix.
2304         Reported by Ben Pfaff <blp@cs.stanford.edu>.
2305
2306 2010-06-09  Bruno Haible  <bruno@clisp.org>
2307
2308         Avoid relocwrapper link errors due to gnulib replacement functions.
2309         * lib/canonicalize-lgpl.c: Use the system's malloc function.
2310         * lib/malloca.c: Likewise.
2311         * lib/relocatable.c: Likewise.
2312         * lib/progreloc.c: Use the system's malloc, sprintf functions.
2313         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
2314         * lib/setenv.c: Use the system's malloc, realloc functions.
2315         * lib/strerror.c: Use the system's sprintf function.
2316         Reported by Ben Pfaff <blp@cs.stanford.edu>.
2317
2318 2010-06-04  Bruno Haible  <bruno@clisp.org>
2319
2320         Prefer documented low-level autoconf macro names.
2321         * m4/lib-link.m4: Use m4_translit instead of translit.
2322         * m4/environ.m4: Likewise.
2323         * m4/mathfunc.m4: Likewise.
2324         * m4/onceonly.m4: Likewise.
2325         * m4/stdint.m4: Likewise.
2326         Suggested by Eric Blake.
2327
2328 2010-06-04  Martin Lambers  <marlam@marlam.de>
2329             Bruno Haible  <bruno@clisp.org>
2330
2331         havelib: Allow library names with '+' characters.
2332         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
2333         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
2334
2335 2010-06-09  Bruno Haible  <bruno@clisp.org>
2336
2337         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
2338         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
2339         realloc failed.
2340
2341 2010-06-08  Peter Simons  <simons@cryp.to>
2342
2343         maint.mk: make the news-check rule more configurable
2344         * top/maint.mk (news-check-lines-spec) New variable.
2345         (news-check): Use "sed -n 1,10p" in place of "head".
2346
2347 2010-06-07  Jim Meyering  <meyering@redhat.com>
2348
2349         do-release-commit-and-tag: fix typo in --help
2350         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
2351
2352         regex: avoid new dead-code warning with gcc-4.6.0
2353         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
2354         if-block containing a while-loop.  It's been unused for at least
2355         5 years.
2356
2357 2010-06-05  Bruno Haible  <bruno@clisp.org>
2358
2359         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
2360         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
2361
2362 2010-06-04  Bruno Haible  <bruno@clisp.org>
2363
2364         Update to GNU gettext 0.18.1.
2365         * modules/gettext (configure.ac): Require gettext infrastructure from
2366         version 0.18.1.
2367
2368 2010-06-03  Bruno Haible  <bruno@clisp.org>
2369
2370         Don't use AC_LIBOBJ with file names in subdirectories.
2371         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
2372         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
2373         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
2374         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
2375         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
2376         gl_LIBUNISTRING_LIBSOURCE.
2377         (Makefile.am): Augment lib_SOURCES here, conditionally.
2378         * NEWS: Drop requirement for Automake option 'subdir-objects'.
2379
2380 2010-06-03  Bruno Haible  <bruno@clisp.org>
2381
2382         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
2383         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
2384         expansion does not end with a newline.
2385         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
2386         unnecessary newline.
2387
2388 2010-06-03  Bruno Haible  <bruno@clisp.org>
2389
2390         Reduce dependencies.
2391         * tests/test-quotearg.h: New file, extracted from
2392         tests/test-quotearg.c.
2393         * tests/test-quotearg-simple.c: New file, extracted from
2394         tests/test-quotearg.c.
2395         * tests/test-quotearg.c: Don't include <ctype.h>.
2396         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
2397         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
2398         use_quote_double_quotes, use_quotearg_colon): Moved to
2399         tests/test-quotearg.h.
2400         (results_g, flag_results, custom_quotes, custom_results): Moved
2401         to tests/test-quotearg-simple.c.
2402         (main): Moved the part that does not depend on gettext to
2403         tests/test-quotearg-simple.c. Return 77 if the test cannot be
2404         performed.
2405         * modules/quotearg-simple: New file.
2406         * modules/quotearg-simple-tests: New file.
2407         * modules/quotearg (Depends-on): Add quotearg-simple.
2408         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
2409         (Files): Add tests/test-quotearg.h.
2410         Reported by Paolo Bonzini.
2411
2412 2010-06-03  Bruno Haible  <bruno@clisp.org>
2413
2414         Reduce dependencies.
2415         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
2416
2417 2010-06-03  Bruno Haible  <bruno@clisp.org>
2418
2419         time: Undefine more broken macros.
2420         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
2421         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
2422         Reported by Eric Blake.
2423
2424 2010-06-03  Bruno Haible  <bruno@clisp.org>
2425
2426         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
2427         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
2428         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
2429         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
2430         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
2431         Reported by Ludovic Courtès <ludo@gnu.org>.
2432
2433 2010-06-02  Eric Blake  <eblake@redhat.com>
2434
2435         time: work with mingw + pthreads-win32 library
2436         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
2437         if timespec is defined only in pthread.h.
2438         * modules/time (Makefile.am): Substitute it.
2439         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
2440         <pthread.h>, when needed.
2441         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
2442         from the library.
2443
2444 2010-05-31  Bruno Haible  <bruno@clisp.org>
2445
2446         Avoid expanding two macros in the wrong order.
2447         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
2448         gl_LIBUNISTRING if it is defined.
2449         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
2450         autoconf >= 2.64.
2451         Reported by Ludovic Courtès <ludo@gnu.org>.
2452
2453 2010-05-27  Jim Meyering  <meyering@redhat.com>
2454
2455         maint.mk: also prohibit "#undef" of always-defined symbols
2456         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
2457         Allow more than one space before the symbol name.
2458         (sc_prohibit_always-defined_macros): Use grep's -E, now that
2459         the regexp uses alternation.
2460
2461 2010-05-26  Eric Blake  <eblake@redhat.com>
2462
2463         maint.mk: avoid echo -e
2464         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
2465         Convert all uses of echo -* to printf.
2466         Reported by Matthias Bolte.
2467
2468 2010-05-25  Bruno Haible  <bruno@clisp.org>
2469
2470         Update to GNU gettext 0.18, part 2.
2471         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
2472         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
2473
2474 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2475
2476         Add missing include in test-pwrite.c.
2477         * tests/test-pwrite.c: Include string.h, for strcmp.
2478
2479 2010-05-24  Bruno Haible  <bruno@clisp.org>
2480
2481         * NEWS: Mention requirement for Automake option 'subdir-objects'.
2482
2483 2010-05-24  Bruno Haible  <bruno@clisp.org>
2484
2485         Don't use conversion with transliteration in u{8,16,32}_strcoll.
2486         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
2487         iconveh_error argument.
2488         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
2489         U_STRCONV_TO_LOCALE.
2490         * lib/unistr/u16-strcoll.c: Likewise.
2491         * lib/unistr/u32-strcoll.c: Likewise.
2492         * modules/unistr/u8-strcoll (Depends-on): Add
2493         uniconv/u8-strconv-to-enc, localcharset. Remove
2494         uniconv/u8-strconv-to-locale.
2495         (configure.ac): Bump version number.
2496         * modules/unistr/u16-strcoll (Depends-on): Add
2497         uniconv/u16-strconv-to-enc, localcharset. Remove
2498         uniconv/u16-strconv-to-locale.
2499         (configure.ac): Bump version number.
2500         * modules/unistr/u32-strcoll (Depends-on): Add
2501         uniconv/u32-strconv-to-enc, localcharset. Remove
2502         uniconv/u32-strconv-to-locale.
2503         (configure.ac): Bump version number.
2504
2505 2010-05-24  Bruno Haible  <bruno@clisp.org>
2506
2507         Avoid a test failure on NetBSD 5.0.
2508         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
2509         an iconv() bug.
2510
2511 2010-05-24  Bruno Haible  <bruno@clisp.org>
2512
2513         Adjust #include directive style.
2514         * modules/regex (Includes): Recommend to write <regex.h>.
2515
2516 2010-05-24  Bruno Haible  <bruno@clisp.org>
2517
2518         regex: Don't require alloca.
2519         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
2520         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
2521         only inside if (0).
2522
2523 2010-05-23  Jim Meyering  <meyering@redhat.com>
2524
2525         test-renameat.c: include <sys/stat.h>
2526         * tests/test-renameat.c: Include <sys/stat.h>; required for
2527         definition of S_IS* macros.
2528
2529 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
2530
2531         Update maintainer documentation for 'relocatable-prog' module.
2532         * doc/relocatable-maint.texi: Update.
2533         Comments by Bruno Haible.
2534
2535 2010-05-23  Bruno Haible  <bruno@clisp.org>
2536
2537         git-merge-changelog: Enable --split-merged-entry by default.
2538         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
2539         (usage): Don't mention this option any more.
2540         Reported by Ralf Wildenhues.
2541
2542 2010-05-23  Jim Meyering  <meyering@redhat.com>
2543
2544         test-pwrite: do not leave behind a test file named "out"
2545         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
2546         The trivial-looking use of init.sh is really necessary.
2547         It ensures that the temporary file, "out", is created in
2548         a temporary directory, and removed upon termination.
2549         * tests/test-pwrite.sh: Re-add file.
2550         * modules/pwrite-tests: Reference it.
2551
2552 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2553
2554         Fix output redirection buglet in init.sh.
2555         * tests/init.sh: Fix redirection of stderr.
2556
2557 2010-05-20  Simon Josefsson  <simon@josefsson.org>
2558
2559         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
2560
2561 2010-05-17  Simon Josefsson  <simon@josefsson.org>
2562
2563         * modules/valgrind-tests: New file.
2564         * m4/valgrind-tests.m4: New file.
2565         * doc/valgrind-tests.texi: New file.
2566         * doc/gnulib.texi (Running self-tests under valgrind): New
2567         section.
2568
2569 2010-05-19  Bruno Haible  <bruno@clisp.org>
2570
2571         Clean up dead code in recent commit.
2572         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
2573         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
2574         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
2575         Suggested by Paolo Bonzini.
2576
2577 2010-05-19  Bruno Haible  <bruno@clisp.org>
2578
2579         Avoid valgrind error reports from libunistring.
2580         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
2581         * modules/libunistring (Files): Add it.
2582         * modules/libunistring-optional (Files): Likewise.
2583
2584 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
2585             Bruno Haible  <bruno@clisp.org>
2586
2587         New module 'libunistring-optional'.
2588         * modules/libunistring-optional: New file.
2589         * m4/libunistring-base.m4: New file.
2590         * m4/libunistring-optional.m4: New file.
2591         * lib/unicase.in.h: Renamed from lib/unicase.h.
2592         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
2593         * lib/unictype.in.h: Renamed from lib/unictype.h.
2594         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
2595         * lib/uniname.in.h: Renamed from lib/uniname.h.
2596         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
2597         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
2598         * lib/unistr.in.h: Renamed from lib/unistr.h.
2599         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
2600         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
2601         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
2602         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
2603         gl_LIBUNISTRING. If the library was found, determine the installed
2604         version and set LIBUNISTRING_VERSION.
2605         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
2606         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
2607         handle a configuration option --with-included-libunistring.
2608         * modules/libunistring (Files): Add m4/absolute-header.m4.
2609         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
2610         Add m4/libunistring-base.m4.
2611         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2612         (Makefile.am): Build unicase.h from unicase.in.h.
2613         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
2614         Add m4/libunistring-base.m4.
2615         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2616         (Makefile.am): Build uniconv.h from uniconv.in.h.
2617         * modules/unictype/base (Files): Use unictype.in.h instead of
2618         unictype.h. Add m4/libunistring-base.m4.
2619         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2620         (Makefile.am): Build unictype.h from unictype.in.h.
2621         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
2622         Add m4/libunistring-base.m4.
2623         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2624         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
2625         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
2626         Add m4/libunistring-base.m4.
2627         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2628         (Makefile.am): Build uniname.h from uniname.in.h.
2629         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
2630         Add m4/libunistring-base.m4.
2631         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2632         (Makefile.am): Build uninorm.h from uninorm.in.h.
2633         * modules/unistdio/base (Files): Use unistdio.in.h instead of
2634         unistdio.h. Add m4/libunistring-base.m4.
2635         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2636         (Makefile.am): Build unistdio.h from unistdio.in.h.
2637         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
2638         Add m4/libunistring-base.m4.
2639         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2640         (Makefile.am): Build unistr.h from unistr.in.h.
2641         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
2642         Add m4/libunistring-base.m4.
2643         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2644         (Makefile.am): Build unitypes.h from unitypes.in.h.
2645         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
2646         Add m4/libunistring-base.m4.
2647         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2648         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
2649         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
2650         uniwidth.h. Add m4/libunistring-base.m4.
2651         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2652         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
2653         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
2654         instead of augmenting lib_SOURCES.
2655         * modules/unicase/empty-suffix-context: Likewise.
2656         * modules/unicase/locale-language: Likewise.
2657         * modules/unicase/tolower: Likewise.
2658         * modules/unicase/totitle: Likewise.
2659         * modules/unicase/toupper: Likewise.
2660         * modules/unicase/u8-casecmp: Likewise.
2661         * modules/unicase/u8-casecoll: Likewise.
2662         * modules/unicase/u8-casefold: Likewise.
2663         * modules/unicase/u8-casexfrm: Likewise.
2664         * modules/unicase/u8-ct-casefold: Likewise.
2665         * modules/unicase/u8-ct-tolower: Likewise.
2666         * modules/unicase/u8-ct-totitle: Likewise.
2667         * modules/unicase/u8-ct-toupper: Likewise.
2668         * modules/unicase/u8-is-cased: Likewise.
2669         * modules/unicase/u8-is-casefolded: Likewise.
2670         * modules/unicase/u8-is-lowercase: Likewise.
2671         * modules/unicase/u8-is-titlecase: Likewise.
2672         * modules/unicase/u8-is-uppercase: Likewise.
2673         * modules/unicase/u8-prefix-context: Likewise.
2674         * modules/unicase/u8-suffix-context: Likewise.
2675         * modules/unicase/u8-tolower: Likewise.
2676         * modules/unicase/u8-totitle: Likewise.
2677         * modules/unicase/u8-toupper: Likewise.
2678         * modules/unicase/u16-casecmp: Likewise.
2679         * modules/unicase/u16-casecoll: Likewise.
2680         * modules/unicase/u16-casefold: Likewise.
2681         * modules/unicase/u16-casexfrm: Likewise.
2682         * modules/unicase/u16-ct-casefold: Likewise.
2683         * modules/unicase/u16-ct-tolower: Likewise.
2684         * modules/unicase/u16-ct-totitle: Likewise.
2685         * modules/unicase/u16-ct-toupper: Likewise.
2686         * modules/unicase/u16-is-cased: Likewise.
2687         * modules/unicase/u16-is-casefolded: Likewise.
2688         * modules/unicase/u16-is-lowercase: Likewise.
2689         * modules/unicase/u16-is-titlecase: Likewise.
2690         * modules/unicase/u16-is-uppercase: Likewise.
2691         * modules/unicase/u16-prefix-context: Likewise.
2692         * modules/unicase/u16-suffix-context: Likewise.
2693         * modules/unicase/u16-tolower: Likewise.
2694         * modules/unicase/u16-totitle: Likewise.
2695         * modules/unicase/u16-toupper: Likewise.
2696         * modules/unicase/u32-casecmp: Likewise.
2697         * modules/unicase/u32-casecoll: Likewise.
2698         * modules/unicase/u32-casefold: Likewise.
2699         * modules/unicase/u32-casexfrm: Likewise.
2700         * modules/unicase/u32-ct-casefold: Likewise.
2701         * modules/unicase/u32-ct-tolower: Likewise.
2702         * modules/unicase/u32-ct-totitle: Likewise.
2703         * modules/unicase/u32-ct-toupper: Likewise.
2704         * modules/unicase/u32-is-cased: Likewise.
2705         * modules/unicase/u32-is-casefolded: Likewise.
2706         * modules/unicase/u32-is-lowercase: Likewise.
2707         * modules/unicase/u32-is-titlecase: Likewise.
2708         * modules/unicase/u32-is-uppercase: Likewise.
2709         * modules/unicase/u32-prefix-context: Likewise.
2710         * modules/unicase/u32-suffix-context: Likewise.
2711         * modules/unicase/u32-tolower: Likewise.
2712         * modules/unicase/u32-totitle: Likewise.
2713         * modules/unicase/u32-toupper: Likewise.
2714         * modules/unicase/ulc-casecmp: Likewise.
2715         * modules/unicase/ulc-casecoll: Likewise.
2716         * modules/unicase/ulc-casexfrm: Likewise.
2717         * modules/uniconv/u8-conv-from-enc: Likewise.
2718         * modules/uniconv/u8-conv-to-enc: Likewise.
2719         * modules/uniconv/u8-strconv-from-enc: Likewise.
2720         * modules/uniconv/u8-strconv-from-locale: Likewise.
2721         * modules/uniconv/u8-strconv-to-enc: Likewise.
2722         * modules/uniconv/u8-strconv-to-locale: Likewise.
2723         * modules/uniconv/u16-conv-from-enc: Likewise.
2724         * modules/uniconv/u16-conv-to-enc: Likewise.
2725         * modules/uniconv/u16-strconv-from-enc: Likewise.
2726         * modules/uniconv/u16-strconv-from-locale: Likewise.
2727         * modules/uniconv/u16-strconv-to-enc: Likewise.
2728         * modules/uniconv/u16-strconv-to-locale: Likewise.
2729         * modules/uniconv/u32-conv-from-enc: Likewise.
2730         * modules/uniconv/u32-conv-to-enc: Likewise.
2731         * modules/uniconv/u32-strconv-from-enc: Likewise.
2732         * modules/uniconv/u32-strconv-from-locale: Likewise.
2733         * modules/uniconv/u32-strconv-to-enc: Likewise.
2734         * modules/uniconv/u32-strconv-to-locale: Likewise.
2735         * modules/unictype/bidicategory-byname: Likewise.
2736         * modules/unictype/bidicategory-name: Likewise.
2737         * modules/unictype/bidicategory-of: Likewise.
2738         * modules/unictype/bidicategory-test: Likewise.
2739         * modules/unictype/block-list: Likewise.
2740         * modules/unictype/block-test: Likewise.
2741         * modules/unictype/category-C: Likewise.
2742         * modules/unictype/category-Cc: Likewise.
2743         * modules/unictype/category-Cf: Likewise.
2744         * modules/unictype/category-Cn: Likewise.
2745         * modules/unictype/category-Co: Likewise.
2746         * modules/unictype/category-Cs: Likewise.
2747         * modules/unictype/category-L: Likewise.
2748         * modules/unictype/category-Ll: Likewise.
2749         * modules/unictype/category-Lm: Likewise.
2750         * modules/unictype/category-Lo: Likewise.
2751         * modules/unictype/category-Lt: Likewise.
2752         * modules/unictype/category-Lu: Likewise.
2753         * modules/unictype/category-M: Likewise.
2754         * modules/unictype/category-Mc: Likewise.
2755         * modules/unictype/category-Me: Likewise.
2756         * modules/unictype/category-Mn: Likewise.
2757         * modules/unictype/category-N: Likewise.
2758         * modules/unictype/category-Nd: Likewise.
2759         * modules/unictype/category-Nl: Likewise.
2760         * modules/unictype/category-No: Likewise.
2761         * modules/unictype/category-P: Likewise.
2762         * modules/unictype/category-Pc: Likewise.
2763         * modules/unictype/category-Pd: Likewise.
2764         * modules/unictype/category-Pe: Likewise.
2765         * modules/unictype/category-Pf: Likewise.
2766         * modules/unictype/category-Pi: Likewise.
2767         * modules/unictype/category-Po: Likewise.
2768         * modules/unictype/category-Ps: Likewise.
2769         * modules/unictype/category-S: Likewise.
2770         * modules/unictype/category-Sc: Likewise.
2771         * modules/unictype/category-Sk: Likewise.
2772         * modules/unictype/category-Sm: Likewise.
2773         * modules/unictype/category-So: Likewise.
2774         * modules/unictype/category-Z: Likewise.
2775         * modules/unictype/category-Zl: Likewise.
2776         * modules/unictype/category-Zp: Likewise.
2777         * modules/unictype/category-Zs: Likewise.
2778         * modules/unictype/category-and: Likewise.
2779         * modules/unictype/category-and-not: Likewise.
2780         * modules/unictype/category-byname: Likewise.
2781         * modules/unictype/category-name: Likewise.
2782         * modules/unictype/category-none: Likewise.
2783         * modules/unictype/category-of: Likewise.
2784         * modules/unictype/category-or: Likewise.
2785         * modules/unictype/category-test: Likewise.
2786         * modules/unictype/combining-class: Likewise.
2787         * modules/unictype/ctype-alnum: Likewise.
2788         * modules/unictype/ctype-alpha: Likewise.
2789         * modules/unictype/ctype-blank: Likewise.
2790         * modules/unictype/ctype-cntrl: Likewise.
2791         * modules/unictype/ctype-digit: Likewise.
2792         * modules/unictype/ctype-graph: Likewise.
2793         * modules/unictype/ctype-lower: Likewise.
2794         * modules/unictype/ctype-print: Likewise.
2795         * modules/unictype/ctype-punct: Likewise.
2796         * modules/unictype/ctype-space: Likewise.
2797         * modules/unictype/ctype-upper: Likewise.
2798         * modules/unictype/ctype-xdigit: Likewise.
2799         * modules/unictype/decimal-digit: Likewise.
2800         * modules/unictype/digit: Likewise.
2801         * modules/unictype/mirror: Likewise.
2802         * modules/unictype/numeric: Likewise.
2803         * modules/unictype/property-alphabetic: Likewise.
2804         * modules/unictype/property-ascii-hex-digit: Likewise.
2805         * modules/unictype/property-bidi-arabic-digit: Likewise.
2806         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
2807         * modules/unictype/property-bidi-block-separator: Likewise.
2808         * modules/unictype/property-bidi-boundary-neutral: Likewise.
2809         * modules/unictype/property-bidi-common-separator: Likewise.
2810         * modules/unictype/property-bidi-control: Likewise.
2811         * modules/unictype/property-bidi-embedding-or-override: Likewise.
2812         * modules/unictype/property-bidi-eur-num-separator: Likewise.
2813         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
2814         * modules/unictype/property-bidi-european-digit: Likewise.
2815         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
2816         * modules/unictype/property-bidi-left-to-right: Likewise.
2817         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
2818         * modules/unictype/property-bidi-other-neutral: Likewise.
2819         * modules/unictype/property-bidi-pdf: Likewise.
2820         * modules/unictype/property-bidi-segment-separator: Likewise.
2821         * modules/unictype/property-bidi-whitespace: Likewise.
2822         * modules/unictype/property-byname: Likewise.
2823         * modules/unictype/property-combining: Likewise.
2824         * modules/unictype/property-composite: Likewise.
2825         * modules/unictype/property-currency-symbol: Likewise.
2826         * modules/unictype/property-dash: Likewise.
2827         * modules/unictype/property-decimal-digit: Likewise.
2828         * modules/unictype/property-default-ignorable-code-point: Likewise.
2829         * modules/unictype/property-deprecated: Likewise.
2830         * modules/unictype/property-diacritic: Likewise.
2831         * modules/unictype/property-extender: Likewise.
2832         * modules/unictype/property-format-control: Likewise.
2833         * modules/unictype/property-grapheme-base: Likewise.
2834         * modules/unictype/property-grapheme-extend: Likewise.
2835         * modules/unictype/property-grapheme-link: Likewise.
2836         * modules/unictype/property-hex-digit: Likewise.
2837         * modules/unictype/property-hyphen: Likewise.
2838         * modules/unictype/property-id-continue: Likewise.
2839         * modules/unictype/property-id-start: Likewise.
2840         * modules/unictype/property-ideographic: Likewise.
2841         * modules/unictype/property-ids-binary-operator: Likewise.
2842         * modules/unictype/property-ids-trinary-operator: Likewise.
2843         * modules/unictype/property-ignorable-control: Likewise.
2844         * modules/unictype/property-iso-control: Likewise.
2845         * modules/unictype/property-join-control: Likewise.
2846         * modules/unictype/property-left-of-pair: Likewise.
2847         * modules/unictype/property-line-separator: Likewise.
2848         * modules/unictype/property-logical-order-exception: Likewise.
2849         * modules/unictype/property-lowercase: Likewise.
2850         * modules/unictype/property-math: Likewise.
2851         * modules/unictype/property-non-break: Likewise.
2852         * modules/unictype/property-not-a-character: Likewise.
2853         * modules/unictype/property-numeric: Likewise.
2854         * modules/unictype/property-other-alphabetic: Likewise.
2855         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
2856         * modules/unictype/property-other-grapheme-extend: Likewise.
2857         * modules/unictype/property-other-id-continue: Likewise.
2858         * modules/unictype/property-other-id-start: Likewise.
2859         * modules/unictype/property-other-lowercase: Likewise.
2860         * modules/unictype/property-other-math: Likewise.
2861         * modules/unictype/property-other-uppercase: Likewise.
2862         * modules/unictype/property-paired-punctuation: Likewise.
2863         * modules/unictype/property-paragraph-separator: Likewise.
2864         * modules/unictype/property-pattern-syntax: Likewise.
2865         * modules/unictype/property-pattern-white-space: Likewise.
2866         * modules/unictype/property-private-use: Likewise.
2867         * modules/unictype/property-punctuation: Likewise.
2868         * modules/unictype/property-quotation-mark: Likewise.
2869         * modules/unictype/property-radical: Likewise.
2870         * modules/unictype/property-sentence-terminal: Likewise.
2871         * modules/unictype/property-soft-dotted: Likewise.
2872         * modules/unictype/property-space: Likewise.
2873         * modules/unictype/property-terminal-punctuation: Likewise.
2874         * modules/unictype/property-test: Likewise.
2875         * modules/unictype/property-titlecase: Likewise.
2876         * modules/unictype/property-unassigned-code-value: Likewise.
2877         * modules/unictype/property-unified-ideograph: Likewise.
2878         * modules/unictype/property-uppercase: Likewise.
2879         * modules/unictype/property-variation-selector: Likewise.
2880         * modules/unictype/property-white-space: Likewise.
2881         * modules/unictype/property-xid-continue: Likewise.
2882         * modules/unictype/property-xid-start: Likewise.
2883         * modules/unictype/property-zero-width: Likewise.
2884         * modules/unictype/scripts: Likewise.
2885         * modules/unictype/syntax-c-ident: Likewise.
2886         * modules/unictype/syntax-c-whitespace: Likewise.
2887         * modules/unictype/syntax-java-ident: Likewise.
2888         * modules/unictype/syntax-java-whitespace: Likewise.
2889         * modules/unilbrk/u8-possible-linebreaks: Likewise.
2890         * modules/unilbrk/u8-width-linebreaks: Likewise.
2891         * modules/unilbrk/u16-possible-linebreaks: Likewise.
2892         * modules/unilbrk/u16-width-linebreaks: Likewise.
2893         * modules/unilbrk/u32-possible-linebreaks: Likewise.
2894         * modules/unilbrk/u32-width-linebreaks: Likewise.
2895         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
2896         * modules/unilbrk/ulc-width-linebreaks: Likewise.
2897         * modules/uniname/uniname: Likewise.
2898         * modules/uninorm/canonical-decomposition: Likewise.
2899         * modules/uninorm/composition: Likewise.
2900         * modules/uninorm/decomposing-form: Likewise.
2901         * modules/uninorm/decomposition: Likewise.
2902         * modules/uninorm/filter: Likewise.
2903         * modules/uninorm/nfc: Likewise.
2904         * modules/uninorm/nfd: Likewise.
2905         * modules/uninorm/nfkc: Likewise.
2906         * modules/uninorm/nfkd: Likewise.
2907         * modules/uninorm/u8-normalize: Likewise.
2908         * modules/uninorm/u8-normcmp: Likewise.
2909         * modules/uninorm/u8-normcoll: Likewise.
2910         * modules/uninorm/u8-normxfrm: Likewise.
2911         * modules/uninorm/u16-normalize: Likewise.
2912         * modules/uninorm/u16-normcmp: Likewise.
2913         * modules/uninorm/u16-normcoll: Likewise.
2914         * modules/uninorm/u16-normxfrm: Likewise.
2915         * modules/uninorm/u32-normalize: Likewise.
2916         * modules/uninorm/u32-normcmp: Likewise.
2917         * modules/uninorm/u32-normcoll: Likewise.
2918         * modules/uninorm/u32-normxfrm: Likewise.
2919         * modules/unistdio/u8-asnprintf: Likewise.
2920         * modules/unistdio/u8-asprintf: Likewise.
2921         * modules/unistdio/u8-snprintf: Likewise.
2922         * modules/unistdio/u8-sprintf: Likewise.
2923         * modules/unistdio/u8-u8-asnprintf: Likewise.
2924         * modules/unistdio/u8-u8-asprintf: Likewise.
2925         * modules/unistdio/u8-u8-snprintf: Likewise.
2926         * modules/unistdio/u8-u8-sprintf: Likewise.
2927         * modules/unistdio/u8-u8-vasnprintf: Likewise.
2928         * modules/unistdio/u8-u8-vasprintf: Likewise.
2929         * modules/unistdio/u8-u8-vsnprintf: Likewise.
2930         * modules/unistdio/u8-u8-vsprintf: Likewise.
2931         * modules/unistdio/u8-vasnprintf: Likewise.
2932         * modules/unistdio/u8-vasprintf: Likewise.
2933         * modules/unistdio/u8-vsnprintf: Likewise.
2934         * modules/unistdio/u8-vsprintf: Likewise.
2935         * modules/unistdio/u16-asnprintf: Likewise.
2936         * modules/unistdio/u16-asprintf: Likewise.
2937         * modules/unistdio/u16-snprintf: Likewise.
2938         * modules/unistdio/u16-sprintf: Likewise.
2939         * modules/unistdio/u16-u16-asnprintf: Likewise.
2940         * modules/unistdio/u16-u16-asprintf: Likewise.
2941         * modules/unistdio/u16-u16-snprintf: Likewise.
2942         * modules/unistdio/u16-u16-sprintf: Likewise.
2943         * modules/unistdio/u16-u16-vasnprintf: Likewise.
2944         * modules/unistdio/u16-u16-vasprintf: Likewise.
2945         * modules/unistdio/u16-u16-vsnprintf: Likewise.
2946         * modules/unistdio/u16-u16-vsprintf: Likewise.
2947         * modules/unistdio/u16-vasnprintf: Likewise.
2948         * modules/unistdio/u16-vasprintf: Likewise.
2949         * modules/unistdio/u16-vsnprintf: Likewise.
2950         * modules/unistdio/u16-vsprintf: Likewise.
2951         * modules/unistdio/u32-asnprintf: Likewise.
2952         * modules/unistdio/u32-asprintf: Likewise.
2953         * modules/unistdio/u32-snprintf: Likewise.
2954         * modules/unistdio/u32-sprintf: Likewise.
2955         * modules/unistdio/u32-u32-asnprintf: Likewise.
2956         * modules/unistdio/u32-u32-asprintf: Likewise.
2957         * modules/unistdio/u32-u32-snprintf: Likewise.
2958         * modules/unistdio/u32-u32-sprintf: Likewise.
2959         * modules/unistdio/u32-u32-vasnprintf: Likewise.
2960         * modules/unistdio/u32-u32-vasprintf: Likewise.
2961         * modules/unistdio/u32-u32-vsnprintf: Likewise.
2962         * modules/unistdio/u32-u32-vsprintf: Likewise.
2963         * modules/unistdio/u32-vasnprintf: Likewise.
2964         * modules/unistdio/u32-vasprintf: Likewise.
2965         * modules/unistdio/u32-vsnprintf: Likewise.
2966         * modules/unistdio/u32-vsprintf: Likewise.
2967         * modules/unistdio/ulc-asnprintf: Likewise.
2968         * modules/unistdio/ulc-asprintf: Likewise.
2969         * modules/unistdio/ulc-fprintf: Likewise.
2970         * modules/unistdio/ulc-snprintf: Likewise.
2971         * modules/unistdio/ulc-sprintf: Likewise.
2972         * modules/unistdio/ulc-vasnprintf: Likewise.
2973         * modules/unistdio/ulc-vasprintf: Likewise.
2974         * modules/unistdio/ulc-vfprintf: Likewise.
2975         * modules/unistdio/ulc-vsnprintf: Likewise.
2976         * modules/unistdio/ulc-vsprintf: Likewise.
2977         * modules/unistr/u8-check: Likewise.
2978         * modules/unistr/u8-chr: Likewise.
2979         * modules/unistr/u8-cmp: Likewise.
2980         * modules/unistr/u8-cmp2: Likewise.
2981         * modules/unistr/u8-cpy: Likewise.
2982         * modules/unistr/u8-cpy-alloc: Likewise.
2983         * modules/unistr/u8-endswith: Likewise.
2984         * modules/unistr/u8-mblen: Likewise.
2985         * modules/unistr/u8-mbsnlen: Likewise.
2986         * modules/unistr/u8-mbtouc: Likewise.
2987         * modules/unistr/u8-mbtouc-unsafe: Likewise.
2988         * modules/unistr/u8-mbtoucr: Likewise.
2989         * modules/unistr/u8-move: Likewise.
2990         * modules/unistr/u8-next: Likewise.
2991         * modules/unistr/u8-prev: Likewise.
2992         * modules/unistr/u8-set: Likewise.
2993         * modules/unistr/u8-startswith: Likewise.
2994         * modules/unistr/u8-stpcpy: Likewise.
2995         * modules/unistr/u8-stpncpy: Likewise.
2996         * modules/unistr/u8-strcat: Likewise.
2997         * modules/unistr/u8-strchr: Likewise.
2998         * modules/unistr/u8-strcmp: Likewise.
2999         * modules/unistr/u8-strcoll: Likewise.
3000         * modules/unistr/u8-strcpy: Likewise.
3001         * modules/unistr/u8-strcspn: Likewise.
3002         * modules/unistr/u8-strdup: Likewise.
3003         * modules/unistr/u8-strlen: Likewise.
3004         * modules/unistr/u8-strmblen: Likewise.
3005         * modules/unistr/u8-strmbtouc: Likewise.
3006         * modules/unistr/u8-strncat: Likewise.
3007         * modules/unistr/u8-strncmp: Likewise.
3008         * modules/unistr/u8-strncpy: Likewise.
3009         * modules/unistr/u8-strnlen: Likewise.
3010         * modules/unistr/u8-strpbrk: Likewise.
3011         * modules/unistr/u8-strrchr: Likewise.
3012         * modules/unistr/u8-strspn: Likewise.
3013         * modules/unistr/u8-strstr: Likewise.
3014         * modules/unistr/u8-strtok: Likewise.
3015         * modules/unistr/u8-to-u16: Likewise.
3016         * modules/unistr/u8-to-u32: Likewise.
3017         * modules/unistr/u8-uctomb: Likewise.
3018         * modules/unistr/u16-check: Likewise.
3019         * modules/unistr/u16-chr: Likewise.
3020         * modules/unistr/u16-cmp: Likewise.
3021         * modules/unistr/u16-cmp2: Likewise.
3022         * modules/unistr/u16-cpy: Likewise.
3023         * modules/unistr/u16-cpy-alloc: Likewise.
3024         * modules/unistr/u16-endswith: Likewise.
3025         * modules/unistr/u16-mblen: Likewise.
3026         * modules/unistr/u16-mbsnlen: Likewise.
3027         * modules/unistr/u16-mbtouc: Likewise.
3028         * modules/unistr/u16-mbtouc-unsafe: Likewise.
3029         * modules/unistr/u16-mbtoucr: Likewise.
3030         * modules/unistr/u16-move: Likewise.
3031         * modules/unistr/u16-next: Likewise.
3032         * modules/unistr/u16-prev: Likewise.
3033         * modules/unistr/u16-set: Likewise.
3034         * modules/unistr/u16-startswith: Likewise.
3035         * modules/unistr/u16-stpcpy: Likewise.
3036         * modules/unistr/u16-stpncpy: Likewise.
3037         * modules/unistr/u16-strcat: Likewise.
3038         * modules/unistr/u16-strchr: Likewise.
3039         * modules/unistr/u16-strcmp: Likewise.
3040         * modules/unistr/u16-strcoll: Likewise.
3041         * modules/unistr/u16-strcpy: Likewise.
3042         * modules/unistr/u16-strcspn: Likewise.
3043         * modules/unistr/u16-strdup: Likewise.
3044         * modules/unistr/u16-strlen: Likewise.
3045         * modules/unistr/u16-strmblen: Likewise.
3046         * modules/unistr/u16-strmbtouc: Likewise.
3047         * modules/unistr/u16-strncat: Likewise.
3048         * modules/unistr/u16-strncmp: Likewise.
3049         * modules/unistr/u16-strncpy: Likewise.
3050         * modules/unistr/u16-strnlen: Likewise.
3051         * modules/unistr/u16-strpbrk: Likewise.
3052         * modules/unistr/u16-strrchr: Likewise.
3053         * modules/unistr/u16-strspn: Likewise.
3054         * modules/unistr/u16-strstr: Likewise.
3055         * modules/unistr/u16-strtok: Likewise.
3056         * modules/unistr/u16-to-u32: Likewise.
3057         * modules/unistr/u16-to-u8: Likewise.
3058         * modules/unistr/u16-uctomb: Likewise.
3059         * modules/unistr/u32-check: Likewise.
3060         * modules/unistr/u32-chr: Likewise.
3061         * modules/unistr/u32-cmp: Likewise.
3062         * modules/unistr/u32-cmp2: Likewise.
3063         * modules/unistr/u32-cpy: Likewise.
3064         * modules/unistr/u32-cpy-alloc: Likewise.
3065         * modules/unistr/u32-endswith: Likewise.
3066         * modules/unistr/u32-mblen: Likewise.
3067         * modules/unistr/u32-mbsnlen: Likewise.
3068         * modules/unistr/u32-mbtouc: Likewise.
3069         * modules/unistr/u32-mbtouc-unsafe: Likewise.
3070         * modules/unistr/u32-mbtoucr: Likewise.
3071         * modules/unistr/u32-move: Likewise.
3072         * modules/unistr/u32-next: Likewise.
3073         * modules/unistr/u32-prev: Likewise.
3074         * modules/unistr/u32-set: Likewise.
3075         * modules/unistr/u32-startswith: Likewise.
3076         * modules/unistr/u32-stpcpy: Likewise.
3077         * modules/unistr/u32-stpncpy: Likewise.
3078         * modules/unistr/u32-strcat: Likewise.
3079         * modules/unistr/u32-strchr: Likewise.
3080         * modules/unistr/u32-strcmp: Likewise.
3081         * modules/unistr/u32-strcoll: Likewise.
3082         * modules/unistr/u32-strcpy: Likewise.
3083         * modules/unistr/u32-strcspn: Likewise.
3084         * modules/unistr/u32-strdup: Likewise.
3085         * modules/unistr/u32-strlen: Likewise.
3086         * modules/unistr/u32-strmblen: Likewise.
3087         * modules/unistr/u32-strmbtouc: Likewise.
3088         * modules/unistr/u32-strncat: Likewise.
3089         * modules/unistr/u32-strncmp: Likewise.
3090         * modules/unistr/u32-strncpy: Likewise.
3091         * modules/unistr/u32-strnlen: Likewise.
3092         * modules/unistr/u32-strpbrk: Likewise.
3093         * modules/unistr/u32-strrchr: Likewise.
3094         * modules/unistr/u32-strspn: Likewise.
3095         * modules/unistr/u32-strstr: Likewise.
3096         * modules/unistr/u32-strtok: Likewise.
3097         * modules/unistr/u32-to-u16: Likewise.
3098         * modules/unistr/u32-to-u8: Likewise.
3099         * modules/unistr/u32-uctomb: Likewise.
3100         * modules/uniwbrk/u8-wordbreaks: Likewise.
3101         * modules/uniwbrk/u16-wordbreaks: Likewise.
3102         * modules/uniwbrk/u32-wordbreaks: Likewise.
3103         * modules/uniwbrk/ulc-wordbreaks: Likewise.
3104         * modules/uniwbrk/wordbreak-property: Likewise.
3105         * modules/uniwidth/u8-strwidth: Likewise.
3106         * modules/uniwidth/u8-width: Likewise.
3107         * modules/uniwidth/u16-strwidth: Likewise.
3108         * modules/uniwidth/u16-width: Likewise.
3109         * modules/uniwidth/u32-strwidth: Likewise.
3110         * modules/uniwidth/u32-width: Likewise.
3111         * modules/uniwidth/width: Likewise.
3112         * modules/unicase/cased-tests (Makefile.am): Link all test programs
3113         with $(LIBUNISTRING).
3114         * modules/unicase/ignorable-tests: Likewise.
3115         * modules/unicase/locale-language-tests: Likewise.
3116         * modules/unicase/tolower-tests: Likewise.
3117         * modules/unicase/totitle-tests: Likewise.
3118         * modules/unicase/toupper-tests: Likewise.
3119         * modules/unicase/u8-casecmp-tests: Likewise.
3120         * modules/unicase/u8-casecoll-tests: Likewise.
3121         * modules/unicase/u8-casefold-tests: Likewise.
3122         * modules/unicase/u8-is-cased-tests: Likewise.
3123         * modules/unicase/u8-is-casefolded-tests: Likewise.
3124         * modules/unicase/u8-is-lowercase-tests: Likewise.
3125         * modules/unicase/u8-is-titlecase-tests: Likewise.
3126         * modules/unicase/u8-is-uppercase-tests: Likewise.
3127         * modules/unicase/u8-tolower-tests: Likewise.
3128         * modules/unicase/u8-totitle-tests: Likewise.
3129         * modules/unicase/u8-toupper-tests: Likewise.
3130         * modules/unicase/u16-casecmp-tests: Likewise.
3131         * modules/unicase/u16-casecoll-tests: Likewise.
3132         * modules/unicase/u16-casefold-tests: Likewise.
3133         * modules/unicase/u16-is-cased-tests: Likewise.
3134         * modules/unicase/u16-is-casefolded-tests: Likewise.
3135         * modules/unicase/u16-is-lowercase-tests: Likewise.
3136         * modules/unicase/u16-is-titlecase-tests: Likewise.
3137         * modules/unicase/u16-is-uppercase-tests: Likewise.
3138         * modules/unicase/u16-tolower-tests: Likewise.
3139         * modules/unicase/u16-totitle-tests: Likewise.
3140         * modules/unicase/u16-toupper-tests: Likewise.
3141         * modules/unicase/u32-casecmp-tests: Likewise.
3142         * modules/unicase/u32-casecoll-tests: Likewise.
3143         * modules/unicase/u32-casefold-tests: Likewise.
3144         * modules/unicase/u32-is-cased-tests: Likewise.
3145         * modules/unicase/u32-is-casefolded-tests: Likewise.
3146         * modules/unicase/u32-is-lowercase-tests: Likewise.
3147         * modules/unicase/u32-is-titlecase-tests: Likewise.
3148         * modules/unicase/u32-is-uppercase-tests: Likewise.
3149         * modules/unicase/u32-tolower-tests: Likewise.
3150         * modules/unicase/u32-totitle-tests: Likewise.
3151         * modules/unicase/u32-toupper-tests: Likewise.
3152         * modules/unicase/ulc-casecmp-tests: Likewise.
3153         * modules/unicase/ulc-casecoll-tests: Likewise.
3154         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
3155         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
3156         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
3157         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
3158         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
3159         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
3160         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
3161         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
3162         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
3163         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
3164         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
3165         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
3166         * modules/unictype/bidicategory-byname-tests: Likewise.
3167         * modules/unictype/bidicategory-name-tests: Likewise.
3168         * modules/unictype/bidicategory-of-tests: Likewise.
3169         * modules/unictype/bidicategory-test-tests: Likewise.
3170         * modules/unictype/block-list-tests: Likewise.
3171         * modules/unictype/block-of-tests: Likewise.
3172         * modules/unictype/block-test-tests: Likewise.
3173         * modules/unictype/category-C-tests: Likewise.
3174         * modules/unictype/category-Cc-tests: Likewise.
3175         * modules/unictype/category-Cf-tests: Likewise.
3176         * modules/unictype/category-Cn-tests: Likewise.
3177         * modules/unictype/category-Co-tests: Likewise.
3178         * modules/unictype/category-Cs-tests: Likewise.
3179         * modules/unictype/category-L-tests: Likewise.
3180         * modules/unictype/category-Ll-tests: Likewise.
3181         * modules/unictype/category-Lm-tests: Likewise.
3182         * modules/unictype/category-Lo-tests: Likewise.
3183         * modules/unictype/category-Lt-tests: Likewise.
3184         * modules/unictype/category-Lu-tests: Likewise.
3185         * modules/unictype/category-M-tests: Likewise.
3186         * modules/unictype/category-Mc-tests: Likewise.
3187         * modules/unictype/category-Me-tests: Likewise.
3188         * modules/unictype/category-Mn-tests: Likewise.
3189         * modules/unictype/category-N-tests: Likewise.
3190         * modules/unictype/category-Nd-tests: Likewise.
3191         * modules/unictype/category-Nl-tests: Likewise.
3192         * modules/unictype/category-No-tests: Likewise.
3193         * modules/unictype/category-P-tests: Likewise.
3194         * modules/unictype/category-Pc-tests: Likewise.
3195         * modules/unictype/category-Pd-tests: Likewise.
3196         * modules/unictype/category-Pe-tests: Likewise.
3197         * modules/unictype/category-Pf-tests: Likewise.
3198         * modules/unictype/category-Pi-tests: Likewise.
3199         * modules/unictype/category-Po-tests: Likewise.
3200         * modules/unictype/category-Ps-tests: Likewise.
3201         * modules/unictype/category-S-tests: Likewise.
3202         * modules/unictype/category-Sc-tests: Likewise.
3203         * modules/unictype/category-Sk-tests: Likewise.
3204         * modules/unictype/category-Sm-tests: Likewise.
3205         * modules/unictype/category-So-tests: Likewise.
3206         * modules/unictype/category-Z-tests: Likewise.
3207         * modules/unictype/category-Zl-tests: Likewise.
3208         * modules/unictype/category-Zp-tests: Likewise.
3209         * modules/unictype/category-Zs-tests: Likewise.
3210         * modules/unictype/category-and-not-tests: Likewise.
3211         * modules/unictype/category-and-tests: Likewise.
3212         * modules/unictype/category-byname-tests: Likewise.
3213         * modules/unictype/category-name-tests: Likewise.
3214         * modules/unictype/category-none-tests: Likewise.
3215         * modules/unictype/category-of-tests: Likewise.
3216         * modules/unictype/category-or-tests: Likewise.
3217         * modules/unictype/category-test-withtable-tests: Likewise.
3218         * modules/unictype/combining-class-tests: Likewise.
3219         * modules/unictype/ctype-alnum-tests: Likewise.
3220         * modules/unictype/ctype-alpha-tests: Likewise.
3221         * modules/unictype/ctype-blank-tests: Likewise.
3222         * modules/unictype/ctype-cntrl-tests: Likewise.
3223         * modules/unictype/ctype-digit-tests: Likewise.
3224         * modules/unictype/ctype-graph-tests: Likewise.
3225         * modules/unictype/ctype-lower-tests: Likewise.
3226         * modules/unictype/ctype-print-tests: Likewise.
3227         * modules/unictype/ctype-punct-tests: Likewise.
3228         * modules/unictype/ctype-space-tests: Likewise.
3229         * modules/unictype/ctype-upper-tests: Likewise.
3230         * modules/unictype/ctype-xdigit-tests: Likewise.
3231         * modules/unictype/decimal-digit-tests: Likewise.
3232         * modules/unictype/digit-tests: Likewise.
3233         * modules/unictype/mirror-tests: Likewise.
3234         * modules/unictype/numeric-tests: Likewise.
3235         * modules/unictype/property-alphabetic-tests: Likewise.
3236         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
3237         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
3238         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
3239         * modules/unictype/property-bidi-block-separator-tests: Likewise.
3240         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
3241         * modules/unictype/property-bidi-common-separator-tests: Likewise.
3242         * modules/unictype/property-bidi-control-tests: Likewise.
3243         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
3244         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
3245         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
3246         * modules/unictype/property-bidi-european-digit-tests: Likewise.
3247         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
3248         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
3249         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
3250         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
3251         * modules/unictype/property-bidi-pdf-tests: Likewise.
3252         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
3253         * modules/unictype/property-bidi-whitespace-tests: Likewise.
3254         * modules/unictype/property-byname-tests: Likewise.
3255         * modules/unictype/property-combining-tests: Likewise.
3256         * modules/unictype/property-composite-tests: Likewise.
3257         * modules/unictype/property-currency-symbol-tests: Likewise.
3258         * modules/unictype/property-dash-tests: Likewise.
3259         * modules/unictype/property-decimal-digit-tests: Likewise.
3260         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
3261         * modules/unictype/property-deprecated-tests: Likewise.
3262         * modules/unictype/property-diacritic-tests: Likewise.
3263         * modules/unictype/property-extender-tests: Likewise.
3264         * modules/unictype/property-format-control-tests: Likewise.
3265         * modules/unictype/property-grapheme-base-tests: Likewise.
3266         * modules/unictype/property-grapheme-extend-tests: Likewise.
3267         * modules/unictype/property-grapheme-link-tests: Likewise.
3268         * modules/unictype/property-hex-digit-tests: Likewise.
3269         * modules/unictype/property-hyphen-tests: Likewise.
3270         * modules/unictype/property-id-continue-tests: Likewise.
3271         * modules/unictype/property-id-start-tests: Likewise.
3272         * modules/unictype/property-ideographic-tests: Likewise.
3273         * modules/unictype/property-ids-binary-operator-tests: Likewise.
3274         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
3275         * modules/unictype/property-ignorable-control-tests: Likewise.
3276         * modules/unictype/property-iso-control-tests: Likewise.
3277         * modules/unictype/property-join-control-tests: Likewise.
3278         * modules/unictype/property-left-of-pair-tests: Likewise.
3279         * modules/unictype/property-line-separator-tests: Likewise.
3280         * modules/unictype/property-logical-order-exception-tests: Likewise.
3281         * modules/unictype/property-lowercase-tests: Likewise.
3282         * modules/unictype/property-math-tests: Likewise.
3283         * modules/unictype/property-non-break-tests: Likewise.
3284         * modules/unictype/property-not-a-character-tests: Likewise.
3285         * modules/unictype/property-numeric-tests: Likewise.
3286         * modules/unictype/property-other-alphabetic-tests: Likewise.
3287         * modules/unictype/property-other-default-ignorable-code-point-tests:
3288         Likewise.
3289         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
3290         * modules/unictype/property-other-id-continue-tests: Likewise.
3291         * modules/unictype/property-other-id-start-tests: Likewise.
3292         * modules/unictype/property-other-lowercase-tests: Likewise.
3293         * modules/unictype/property-other-math-tests: Likewise.
3294         * modules/unictype/property-other-uppercase-tests: Likewise.
3295         * modules/unictype/property-paired-punctuation-tests: Likewise.
3296         * modules/unictype/property-paragraph-separator-tests: Likewise.
3297         * modules/unictype/property-pattern-syntax-tests: Likewise.
3298         * modules/unictype/property-pattern-white-space-tests: Likewise.
3299         * modules/unictype/property-private-use-tests: Likewise.
3300         * modules/unictype/property-punctuation-tests: Likewise.
3301         * modules/unictype/property-quotation-mark-tests: Likewise.
3302         * modules/unictype/property-radical-tests: Likewise.
3303         * modules/unictype/property-sentence-terminal-tests: Likewise.
3304         * modules/unictype/property-soft-dotted-tests: Likewise.
3305         * modules/unictype/property-space-tests: Likewise.
3306         * modules/unictype/property-terminal-punctuation-tests: Likewise.
3307         * modules/unictype/property-test-tests: Likewise.
3308         * modules/unictype/property-titlecase-tests: Likewise.
3309         * modules/unictype/property-unassigned-code-value-tests: Likewise.
3310         * modules/unictype/property-unified-ideograph-tests: Likewise.
3311         * modules/unictype/property-uppercase-tests: Likewise.
3312         * modules/unictype/property-variation-selector-tests: Likewise.
3313         * modules/unictype/property-white-space-tests: Likewise.
3314         * modules/unictype/property-xid-continue-tests: Likewise.
3315         * modules/unictype/property-xid-start-tests: Likewise.
3316         * modules/unictype/property-zero-width-tests: Likewise.
3317         * modules/unictype/scripts-tests: Likewise.
3318         * modules/unictype/syntax-c-ident-tests: Likewise.
3319         * modules/unictype/syntax-c-whitespace-tests: Likewise.
3320         * modules/unictype/syntax-java-ident-tests: Likewise.
3321         * modules/unictype/syntax-java-whitespace-tests: Likewise.
3322         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
3323         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
3324         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
3325         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
3326         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
3327         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
3328         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
3329         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
3330         * modules/uniname/uniname-tests: Likewise.
3331         * modules/uninorm/canonical-decomposition-tests: Likewise.
3332         * modules/uninorm/compat-decomposition-tests: Likewise.
3333         * modules/uninorm/composition-tests: Likewise.
3334         * modules/uninorm/decomposing-form-tests: Likewise.
3335         * modules/uninorm/decomposition-tests: Likewise.
3336         * modules/uninorm/filter-tests: Likewise.
3337         * modules/uninorm/nfc-tests: Likewise.
3338         * modules/uninorm/nfd-tests: Likewise.
3339         * modules/uninorm/nfkc-tests: Likewise.
3340         * modules/uninorm/nfkd-tests: Likewise.
3341         * modules/uninorm/u8-normcmp-tests: Likewise.
3342         * modules/uninorm/u8-normcoll-tests: Likewise.
3343         * modules/uninorm/u16-normcmp-tests: Likewise.
3344         * modules/uninorm/u16-normcoll-tests: Likewise.
3345         * modules/uninorm/u32-normcmp-tests: Likewise.
3346         * modules/uninorm/u32-normcoll-tests: Likewise.
3347         * modules/unistdio/u8-asnprintf-tests: Likewise.
3348         * modules/unistdio/u8-vasnprintf-tests: Likewise.
3349         * modules/unistdio/u8-vasprintf-tests: Likewise.
3350         * modules/unistdio/u8-vsnprintf-tests: Likewise.
3351         * modules/unistdio/u8-vsprintf-tests: Likewise.
3352         * modules/unistdio/u16-asnprintf-tests: Likewise.
3353         * modules/unistdio/u16-vasnprintf-tests: Likewise.
3354         * modules/unistdio/u16-vasprintf-tests: Likewise.
3355         * modules/unistdio/u16-vsnprintf-tests: Likewise.
3356         * modules/unistdio/u16-vsprintf-tests: Likewise.
3357         * modules/unistdio/u32-asnprintf-tests: Likewise.
3358         * modules/unistdio/u32-vasnprintf-tests: Likewise.
3359         * modules/unistdio/u32-vasprintf-tests: Likewise.
3360         * modules/unistdio/u32-vsnprintf-tests: Likewise.
3361         * modules/unistdio/u32-vsprintf-tests: Likewise.
3362         * modules/unistdio/ulc-asnprintf-tests: Likewise.
3363         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
3364         * modules/unistdio/ulc-vasprintf-tests: Likewise.
3365         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
3366         * modules/unistdio/ulc-vsprintf-tests: Likewise.
3367         * modules/unistr/u8-check-tests: Likewise.
3368         * modules/unistr/u8-chr-tests: Likewise.
3369         * modules/unistr/u8-cmp-tests: Likewise.
3370         * modules/unistr/u8-cmp2-tests: Likewise.
3371         * modules/unistr/u8-cpy-alloc-tests: Likewise.
3372         * modules/unistr/u8-cpy-tests: Likewise.
3373         * modules/unistr/u8-mblen-tests: Likewise.
3374         * modules/unistr/u8-mbsnlen-tests: Likewise.
3375         * modules/unistr/u8-mbtouc-tests: Likewise.
3376         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
3377         * modules/unistr/u8-mbtoucr-tests: Likewise.
3378         * modules/unistr/u8-move-tests: Likewise.
3379         * modules/unistr/u8-next-tests: Likewise.
3380         * modules/unistr/u8-prev-tests: Likewise.
3381         * modules/unistr/u8-set-tests: Likewise.
3382         * modules/unistr/u8-stpcpy-tests: Likewise.
3383         * modules/unistr/u8-stpncpy-tests: Likewise.
3384         * modules/unistr/u8-strcat-tests: Likewise.
3385         * modules/unistr/u8-strcmp-tests: Likewise.
3386         * modules/unistr/u8-strcoll-tests: Likewise.
3387         * modules/unistr/u8-strcpy-tests: Likewise.
3388         * modules/unistr/u8-strdup-tests: Likewise.
3389         * modules/unistr/u8-strlen-tests: Likewise.
3390         * modules/unistr/u8-strmblen-tests: Likewise.
3391         * modules/unistr/u8-strmbtouc-tests: Likewise.
3392         * modules/unistr/u8-strncat-tests: Likewise.
3393         * modules/unistr/u8-strncmp-tests: Likewise.
3394         * modules/unistr/u8-strncpy-tests: Likewise.
3395         * modules/unistr/u8-strnlen-tests: Likewise.
3396         * modules/unistr/u8-to-u16-tests: Likewise.
3397         * modules/unistr/u8-to-u32-tests: Likewise.
3398         * modules/unistr/u8-uctomb-tests: Likewise.
3399         * modules/unistr/u16-check-tests: Likewise.
3400         * modules/unistr/u16-chr-tests: Likewise.
3401         * modules/unistr/u16-cmp-tests: Likewise.
3402         * modules/unistr/u16-cmp2-tests: Likewise.
3403         * modules/unistr/u16-cpy-alloc-tests: Likewise.
3404         * modules/unistr/u16-cpy-tests: Likewise.
3405         * modules/unistr/u16-mblen-tests: Likewise.
3406         * modules/unistr/u16-mbsnlen-tests: Likewise.
3407         * modules/unistr/u16-mbtouc-tests: Likewise.
3408         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
3409         * modules/unistr/u16-mbtoucr-tests: Likewise.
3410         * modules/unistr/u16-move-tests: Likewise.
3411         * modules/unistr/u16-next-tests: Likewise.
3412         * modules/unistr/u16-prev-tests: Likewise.
3413         * modules/unistr/u16-set-tests: Likewise.
3414         * modules/unistr/u16-stpcpy-tests: Likewise.
3415         * modules/unistr/u16-stpncpy-tests: Likewise.
3416         * modules/unistr/u16-strcat-tests: Likewise.
3417         * modules/unistr/u16-strcmp-tests: Likewise.
3418         * modules/unistr/u16-strcoll-tests: Likewise.
3419         * modules/unistr/u16-strcpy-tests: Likewise.
3420         * modules/unistr/u16-strdup-tests: Likewise.
3421         * modules/unistr/u16-strlen-tests: Likewise.
3422         * modules/unistr/u16-strmblen-tests: Likewise.
3423         * modules/unistr/u16-strmbtouc-tests: Likewise.
3424         * modules/unistr/u16-strncat-tests: Likewise.
3425         * modules/unistr/u16-strncmp-tests: Likewise.
3426         * modules/unistr/u16-strncpy-tests: Likewise.
3427         * modules/unistr/u16-strnlen-tests: Likewise.
3428         * modules/unistr/u16-to-u32-tests: Likewise.
3429         * modules/unistr/u16-to-u8-tests: Likewise.
3430         * modules/unistr/u16-uctomb-tests: Likewise.
3431         * modules/unistr/u32-check-tests: Likewise.
3432         * modules/unistr/u32-chr-tests: Likewise.
3433         * modules/unistr/u32-cmp-tests: Likewise.
3434         * modules/unistr/u32-cmp2-tests: Likewise.
3435         * modules/unistr/u32-cpy-alloc-tests: Likewise.
3436         * modules/unistr/u32-cpy-tests: Likewise.
3437         * modules/unistr/u32-mblen-tests: Likewise.
3438         * modules/unistr/u32-mbsnlen-tests: Likewise.
3439         * modules/unistr/u32-mbtouc-tests: Likewise.
3440         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
3441         * modules/unistr/u32-mbtoucr-tests: Likewise.
3442         * modules/unistr/u32-move-tests: Likewise.
3443         * modules/unistr/u32-next-tests: Likewise.
3444         * modules/unistr/u32-prev-tests: Likewise.
3445         * modules/unistr/u32-set-tests: Likewise.
3446         * modules/unistr/u32-stpcpy-tests: Likewise.
3447         * modules/unistr/u32-stpncpy-tests: Likewise.
3448         * modules/unistr/u32-strcat-tests: Likewise.
3449         * modules/unistr/u32-strcmp-tests: Likewise.
3450         * modules/unistr/u32-strcoll-tests: Likewise.
3451         * modules/unistr/u32-strcpy-tests: Likewise.
3452         * modules/unistr/u32-strdup-tests: Likewise.
3453         * modules/unistr/u32-strlen-tests: Likewise.
3454         * modules/unistr/u32-strmblen-tests: Likewise.
3455         * modules/unistr/u32-strmbtouc-tests: Likewise.
3456         * modules/unistr/u32-strncat-tests: Likewise.
3457         * modules/unistr/u32-strncmp-tests: Likewise.
3458         * modules/unistr/u32-strncpy-tests: Likewise.
3459         * modules/unistr/u32-strnlen-tests: Likewise.
3460         * modules/unistr/u32-to-u16-tests: Likewise.
3461         * modules/unistr/u32-to-u8-tests: Likewise.
3462         * modules/unistr/u32-uctomb-tests: Likewise.
3463         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
3464         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
3465         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
3466         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
3467         * modules/uniwidth/u8-strwidth-tests: Likewise.
3468         * modules/uniwidth/u8-width-tests: Likewise.
3469         * modules/uniwidth/u16-strwidth-tests: Likewise.
3470         * modules/uniwidth/u16-width-tests: Likewise.
3471         * modules/uniwidth/u32-strwidth-tests: Likewise.
3472         * modules/uniwidth/u32-width-tests: Likewise.
3473         * modules/uniwidth/width-tests: Likewise.
3474
3475 2010-05-18  Richard Jones  <rjones@redhat.com>
3476
3477         doc: users.txt: list hivex
3478         * users.txt: Add hivex.
3479
3480 2010-05-18  Richard Jones  <rjones@redhat.com>
3481
3482         doc: users.txt: list febootstrap
3483         * users.txt: Add febootstrap.
3484
3485 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
3486
3487         bootstrap: fix an error when gnulib is not used as a git submodule
3488         * build-aux/bootstrap (gnulib_path): If its length is zero then
3489         assign "gnulib" to it.
3490         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
3491
3492 2010-05-16  Bruno Haible  <bruno@clisp.org>
3493
3494         Avoid autoconf warnings about AM_ICONV.
3495         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
3496         2.64.
3497
3498 2010-05-16  Bruno Haible  <bruno@clisp.org>
3499
3500         absolute-header: Make the macro usable in more situations.
3501         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
3502         from gl_ABSOLUTE_HEADER.
3503         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
3504
3505 2010-05-16  James Youngman  <jay@gnu.org>
3506
3507         doc: update users.txt
3508         * users.txt: Add CSSC.
3509
3510 2010-05-16  Jim Meyering  <meyering@redhat.com>
3511
3512         init.sh: fix an error in the previous change; add more comments
3513         * tests/init.sh: Compare exit code in loop against 9, not 2.
3514         Patch by Bruno Haible.
3515         Make the two tests more similar by adding an empty "then" clause.
3516         Add comments.
3517
3518         init.sh: avoid unnecessary shell re-exec
3519         * tests/init.sh: Improve the re-exec-required check to first test the
3520         current shell.  If it passes the test, do not search for a shell that
3521         does pass, and do not re-exec.  This test is particularly contorted to
3522         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
3523         of $(...) evokes a syntax error and causes immediate shell exit with
3524         status 2.  Bruno Haible reported that the re-exec made it impossible
3525         to single-step through any init.sh-using script.
3526
3527 2010-05-16  Bruno Haible  <bruno@clisp.org>
3528
3529         Fix collision between gnulib's and libintl's printf replacements.
3530         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
3531         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
3532         (printf): When using GNU C, map the __printf__ function to rpl_printf
3533         via __asm__. When not using GNU C, define rpl_printf instead of
3534         __printf__.
3535         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
3536         commit.
3537         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
3538         commit.
3539         * m4/asm-underscore.m4: New file.
3540         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
3541         * modules/stdio (Files): Add m4/asm-underscore.m4.
3542         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
3543         Reported by Ben Pfaff.
3544
3545 2010-05-16  Bruno Haible  <bruno@clisp.org>
3546
3547         verify: Avoid skipping the test on openSUSE 11.0.
3548         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
3549
3550 2010-05-13  Bruno Haible  <bruno@clisp.org>
3551
3552         Avoid useless warnings from G++.
3553         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
3554         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
3555         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
3556
3557 2010-05-11  Jim Meyering  <meyering@redhat.com>
3558
3559         maint.mk: tweak preceding change
3560         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
3561         regexps tighter by anchoring at EOL, and make the new group "shy"
3562         for slightly decreased overhead.
3563
3564 2010-05-11  Eric Blake  <eblake@redhat.com>
3565
3566         maint.mk: gnulib doesn't guarantee NSIG
3567         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
3568
3569 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
3570
3571         test-pwrite.c: Remove unused variable declaration.
3572         * tests/test-pwrite.c (main): Remove read_buf declaration.
3573
3574         Remove useless test-pwrite.sh file.
3575         * tests/test-pwrite.sh: Delete file.
3576         * modules/pwrite-tests: Remove references.
3577         Reported by Bruno Haible.
3578
3579 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
3580
3581         init.sh: fix a typo
3582         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
3583
3584 2010-05-10  Jim Meyering  <meyering@redhat.com>
3585
3586         maint.mk: avoid using a temporary file in the always-defined-macros check
3587         * top/maint.mk (.re-defmac): Remove rule.
3588         (gl_trap_): Remove definition.
3589         (sc_prohibit_always-defined_macros): Rewrite not to create and
3590         depend on a temporary file.  Instead, depend on GNU grep's ability
3591         to read a list of regular expressions from stdin when given "-f -".
3592
3593 2010-05-09  Bruno Haible  <bruno@clisp.org>
3594
3595         Update to GNU gettext 0.18, part 1.
3596         * m4/gettext.m4: Update to GNU gettext 0.18.
3597         * m4/intl.m4: Likewise.
3598         * m4/po.m4: Likewise.
3599         * modules/gettext (Files): Add m4/fcntl-o.m4.
3600         (configure.ac): Require gettext infrastructure from version 0.18.
3601
3602 2010-05-09  Jim Meyering  <meyering@redhat.com>
3603
3604         init.sh: enable MALLOC_PERTURB_
3605         * tests/init.sh: Enable glibc's malloc-perturbing option.
3606
3607         maint.mk: improve sc_cross_check_PATH_usage_in_tests
3608         With my recent change in init.sh from the two-line form:
3609             -#   : ${srcdir=.}
3610             -#   . "$srcdir/init.sh"; path_prepend_ .
3611             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
3612         I noticed that using the one-line form would cause this test
3613         to fail with a false-positive, or to stop working altogether,
3614         depending on whether help-version changed or all the tests did.
3615         * top/maint.mk (_hv_regex): Remove this definition.
3616         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
3617         (_hv_regex_strong): Use a stronger regex to check for conformance.
3618         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
3619         Give a separate diagnostic for lack of conforming use.
3620
3621         maint.mk: prohibit definition of symbols defined by gnulib
3622         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
3623         definition of symbols defined by gnulib.
3624
3625 2010-05-09  Bruno Haible  <bruno@clisp.org>
3626
3627         acl: Avoid test failure on Cygwin-hosted mingw.
3628         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
3629
3630 2010-05-09  Bruno Haible  <bruno@clisp.org>
3631
3632         error: Use system's fcntl function.
3633         * lib/error.c (fcntl): Undefine.
3634
3635 2010-05-09  Jim Meyering  <meyering@redhat.com>
3636
3637         verify: adjust formatting to be more consistent
3638         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
3639         argument-list '('s, and after one comma.
3640
3641 2010-05-09  Bruno Haible  <bruno@clisp.org>
3642
3643         error: More reliable output on mingw.
3644         * lib/error.c: Include <windows.h>.
3645         (is_open): New function.
3646         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
3647         defined.
3648
3649 2010-05-09  Bruno Haible  <bruno@clisp.org>
3650
3651         vasnprintf: Fix syntax errors in libintl build on mingw.
3652         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
3653         pad_ourselves and prec_ourselves after use.
3654
3655 2010-05-08  Bruno Haible  <bruno@clisp.org>
3656
3657         * lib/config.charset: Update comments for Cygwin 1.7.
3658         * lib/localcharset.c: Likewise.
3659
3660 2010-05-07  Jim Meyering  <meyering@redhat.com>
3661
3662         init.sh: improve comments
3663         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
3664         . "${srcdir=.}/init.sh"; path_prepend_ .
3665         Add a note about path_prepend_ and the alternative of using
3666         TESTS_ENVIRONMENT.
3667
3668 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
3669
3670         exclude: Unescape hashed patterns in wildcard mode.
3671         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
3672         to the hash list.
3673         * tests/test-exclude8.sh: New test case.
3674         * modules/exclude-tests: Add new test.
3675
3676 2010-05-05  Eric Blake  <eblake@redhat.com>
3677
3678         verify: automate tests
3679         * modules/verify-tests: New module.
3680         * tests/test-verify.sh: New file.
3681         * tests/test-verify.c: Guard each negative test with a unique id.
3682         Also avoid warning about unused left hand of comma expressions.
3683
3684 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3685
3686         Further improvements to verify.h, suggested by Eric Blake.
3687         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
3688         the GL_* versions, to avoid collision with OpenGL.
3689         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
3690         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
3691         than testing merely whether it's defined.
3692
3693         Modify verify.h to pacify gcc -Wredundant_decls.
3694         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
3695         These use the prefix "GL_" since they're likely to be useful elsewhere.
3696         We may need to break them out into a different .h file.
3697         (__COUNTER__): Define to 0 if the compiler doesn't support it.
3698         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
3699         of verify_function__.
3700
3701 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
3702
3703         Tests for module pwrite.
3704         * modules/pwrite-tests: New file.
3705         * tests/test-pwrite.sh: New file.
3706         * tests/test-pwrite.c: New file.
3707
3708         New module pwrite.
3709         * lib/unistd.in.h (pwrite): New declaration.
3710         * lib/pwrite.c: New file, from glibc with modifications.
3711         * m4/pwrite.m4: New file.
3712         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
3713         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
3714         REPLACE_PWRITE.
3715         * modules/pwrite: New file.
3716         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
3717         REPLACE_PWRITE.
3718         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
3719         * doc/posix-functions/pwrite.texi: Mention the new module.
3720
3721 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
3722
3723         pread: Update documentation.
3724         * doc/posix-functions/pread.texi: Mention the 'pread' module.
3725
3726 2010-05-04  Eric Blake  <eblake@redhat.com>
3727
3728         docs: update cygwin progress
3729         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
3730         this bug.
3731         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
3732         Added in cygwin 1.7.2.
3733         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
3734         Likewise.
3735         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
3736         Likewise.
3737         * doc/glibc-functions/dup3.texi (dup3): Likewise.
3738         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
3739         * doc/glibc-functions/accept4.texi (accept4): Likewise.
3740         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
3741         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
3742         Mention nproc module.
3743         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
3744         bug in cygwin 1.7.5 addition.
3745         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
3746         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
3747         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
3748         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
3749         1.7.5.
3750         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
3751         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
3752         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
3753         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
3754         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
3755         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
3756         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
3757         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
3758         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
3759         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
3760         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
3761         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
3762         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
3763         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
3764         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
3765         Likewise.
3766         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
3767         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
3768         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
3769         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
3770         Likewise.
3771         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
3772         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
3773         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
3774         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
3775         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
3776         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
3777         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
3778         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
3779         Likewise.
3780         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
3781         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
3782         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
3783         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
3784         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
3785         Likewise.
3786         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
3787         Likewise.
3788         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
3789         Likewise.
3790         * doc/glibc-functions/xdrrec_endofrecord.texi
3791         (xdrrec_endofrecord): Likewise.
3792         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
3793         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
3794         Likewise.
3795         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
3796         Likewise.
3797
3798 2010-05-04  Jim Meyering  <meyering@redhat.com>
3799
3800         gendocs.sh: make its "-s FILE" option more useful
3801         * build-aux/gendocs.sh: When honoring the -s FILE option, update
3802         $PACKAGE to reflect the probably-different basename of "FILE".
3803
3804 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
3805
3806         bootstrap: don't ignore download_po_files failure
3807         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
3808         failure.
3809
3810 2010-05-03  Jim Meyering  <meyering@redhat.com>
3811
3812         maint.mk: allow to pass options to gendocs.sh
3813         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
3814         (gendocs_options_): New overridable variable.
3815
3816         gnu-web-doc-update: don't ignore configure or build failure
3817         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
3818
3819         announce-gen: backslash-escape '@'s in --help output
3820         * build-aux/announce-gen: Fix syntax errors.
3821
3822         maint.mk, announce-gen: allow project-specific announcement mail headers
3823         * top/maint.mk (translation_project_): Define default.
3824         (announcement_Cc_, announcement_mail_headers_): Likewise.
3825         (announcement): Invoke announce-gen with new --mail-headers option.
3826         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
3827
3828         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
3829         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
3830         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
3831         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
3832         line in the "err2" output file when running "make check" in verbose
3833         mode (i.e., with set -x enabled).
3834
3835 2010-05-03  Bruno Haible  <bruno@clisp.org>
3836
3837         wctob: Fix for weird platforms.
3838         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
3839         argument value.
3840
3841 2010-05-03  Jim Meyering  <meyering@redhat.com>
3842
3843         maint.mk: prohibit unwarranted use of <strings.h>
3844         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
3845         strings.h in a file that does not also use strcasecmp, strncasecmp,
3846         ffs or ffsll.
3847
3848         maint.mk: remove obsolete comments
3849         * top/maint.mk: Remove stale, commented-out rules.
3850
3851 2010-05-02  Bruno Haible  <bruno@clisp.org>
3852
3853         wcwidth: Declare also when it's aliased.
3854         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
3855         macro.
3856
3857 2010-05-02  Bruno Haible  <bruno@clisp.org>
3858
3859         Fix regression from 2010-04-25.
3860         * gnulib-tool (func_modules_transitive_closure): Check the status of
3861         all modules, not only of the tests that are of the form foo-tests where
3862         foo is a module.
3863
3864 2010-05-02  Bruno Haible  <bruno@clisp.org>
3865
3866         wctob: Work around nasty Cygwin 1.7.2 bug.
3867         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
3868         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
3869
3870 2010-05-01  Bruno Haible  <bruno@clisp.org>
3871
3872         fpurge: Sharper test.
3873         * tests/test-fpurge.c (main): Add one more ftell check.
3874         * modules/fpurge-tests (Depends-on): Add ftell.
3875         Suggested by Eric Blake.
3876
3877 2010-05-01  Bruno Haible  <bruno@clisp.org>
3878
3879         ftello: Another test.
3880         * tests/test-ftello3.c: New file.
3881         * modules/ftello-tests (Files): Add it.
3882         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
3883         MOSTLYCLEANFILES.
3884
3885         ftell: Another test.
3886         * tests/test-ftell3.c: New file.
3887         * modules/ftell-tests (Files): Add it.
3888         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
3889         MOSTLYCLEANFILES.
3890
3891 2010-05-01  Bruno Haible  <bruno@clisp.org>
3892
3893         ftell, ftello: Work around Solaris bug.
3894         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
3895         * lib/ftello.c: Include stdio-impl.h.
3896         (ftello): On Solaris, when _IOWRT is set, compute the result without
3897         looking at _IOREAD.
3898         * modules/ftello (Files): Add lib/stdio-impl.h.
3899         * doc/posix-functions/ftell.texi: Mention Solaris bug.
3900         * doc/posix-functions/ftello.texi: Likewise.
3901         Reported by Eric Blake.
3902
3903 2010-05-01  Bruno Haible  <bruno@clisp.org>
3904
3905         freading: Adapt to special meaning of _IOREAD flag on Solaris.
3906         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
3907         the _IOWRT flag is also set.
3908
3909 2010-05-01  Bruno Haible  <bruno@clisp.org>
3910
3911         Fix doc about a HP-UX stdio bug.
3912         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
3913         * doc/posix-functions/ftello.texi: Likewise.
3914
3915 2010-05-01  Bruno Haible  <bruno@clisp.org>
3916
3917         lseek test: Fix failure on Solaris.
3918         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
3919         output.
3920
3921 2010-04-30  Jim Meyering  <meyering@redhat.com>
3922
3923         bootstrap: don't ignore failure to generate po*/Makevars
3924         * build-aux/bootstrap (with_gettext): Don't ignore failure
3925         to create po/Makevars or runtime-po/Makevars.
3926
3927 2010-04-29  Eric Blake  <eblake@redhat.com>
3928
3929         headers: relax license to LGPLv2+
3930         * modules/fcntl-h (License): Relax license.
3931         * modules/getopt-posix (License): Likewise.
3932         * modules/locale (License): Likewise.
3933         * modules/math (License): Likewise.
3934         * modules/pty (License): Likewise.
3935         * modules/sched (License): Likewise.
3936         * modules/search (License): Likewise.
3937         * modules/spawn (License): Likewise.
3938         * modules/stdarg (License): Likewise.
3939         * modules/sysexits (License): Likewise.
3940
3941 2010-04-29  Jim Meyering  <meyering@redhat.com>
3942
3943         inttypes: relax license to LGPLv2+
3944         * modules/inttypes (License): Relax license.
3945
3946 2010-04-29  Simon Josefsson  <simon@josefsson.org>
3947
3948         * top/maint.mk (indent): Run twice to produce idempotent results.
3949
3950 2010-04-28  Bruno Haible  <bruno@clisp.org>
3951
3952         getdate: Generate getdate.c in the source directory.
3953         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
3954         MOSTLYCLEANFILES.
3955         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
3956
3957 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
3958
3959         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
3960         is not declared as a const *; avoid warnings in that case.
3961
3962 2010-04-28  Eric Blake  <eblake@redhat.com>
3963
3964         canonicalize-lgpl: avoid compiler warning
3965         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
3966         declaration' / 'extraneous semicolon' warning with some compilers.
3967         Reported by Andreas Gruenbacher.
3968
3969 2010-04-28  Jim Meyering  <meyering@redhat.com>
3970
3971         init.sh: ensure a more reliable exit status when exiting via trap
3972         * tests/init.sh (setup_): Don't rely on $? in signal handler.
3973         Inspired by patches from Dmitry V. Levin.
3974         Also trap on signal 3 (SIGQUIT).
3975
3976 2010-04-27  Bruno Haible  <bruno@clisp.org>
3977
3978         Update doc about utimes().
3979         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
3980         'utimens' module.
3981         Reported by Andreas Gruenbacher <agruen@suse.de>.
3982
3983 2010-04-27  Eric Blake  <eblake@redhat.com>
3984
3985         full-read, full-write: relax license
3986         * modules/full-read (License): Drop to LGPLv2+.
3987         * modules/full-write (License): Likewise.
3988         * modules/safe-read (License): Likewise.
3989         * modules/safe-write (License): Likewise.
3990
3991         pthread: mention library for linking
3992         * modules/pthread (Link): Mention $(LIB_PTHREAD).
3993
3994 2010-04-27  Jim Meyering  <meyering@redhat.com>
3995
3996         maint.mk: fix a bug introduced in last change
3997         * top/maint.mk (gl_assured_headers_): Now that all names are on
3998         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
3999         is not anchored to end of word, it should be adequate.
4000
4001         maint.mk: avoid side-effect in latest syntax-check
4002         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
4003         to run commands via $(shell...), and hence to incur cost only when
4004         the new rule is actually run.
4005
4006         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
4007         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
4008         and use that to create a regexp used to detect all #if HAVE_..._H uses.
4009         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
4010         (gl_assured_headers_, az_, AZ_): Define.
4011         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
4012
4013 2010-04-26  Jim Meyering  <jim@meyering.net>
4014             Bruno Haible  <bruno@clisp.org>
4015
4016         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
4017         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
4018         Prompted by an exchange with Gilles Espinasse.
4019
4020 2010-04-26  Jim Meyering  <meyering@redhat.com>
4021
4022         git-version-gen: aesthetic tweak
4023         * build-aux/git-version-gen: Use "$nl" rather than a literal,
4024         so that the command remains on a single line.
4025
4026 2010-04-26  Eric Blake  <eblake@redhat.com>
4027
4028         git-version-gen: allow use on EBCDIC hosts
4029         * build-aux/git-version-gen (dirty): Use literal rather than tying
4030         ourselves to ascii.
4031         Reported by Steve Goetze.
4032
4033 2010-04-25  Bruno Haible  <bruno@clisp.org>
4034
4035         netdb: Add support for GNULIB_POSIXCHECK.
4036         * lib/netdb.in.h: Include warn-on-use.h.
4037         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
4038         functions are used when GNULIB_POSIXCHECK is defined and the
4039         getaddrinfo module is not in use.
4040         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
4041         freeaddrinfo, gai_strerror, getnameinfo are declared.
4042         * modules/netdb (Depends-on): Add warn-on-use.
4043         (Makefile.am): Include warn-on-use.h in netdb.h.
4044
4045 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
4046
4047         build: avoid "make check" failure without .git/ directory
4048         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
4049         there is no .git/ directory.
4050
4051 2010-04-25  Bruno Haible  <bruno@clisp.org>
4052
4053         ptsname: Fix misuse of ttyname_r.
4054         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
4055         of errno.
4056
4057 2010-04-25  Bruno Haible  <bruno@clisp.org>
4058
4059         ttyname_r: Make it work on Solaris 10.
4060         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
4061         if the system function has the POSIX declaration. Test whether the
4062         function fails if the buffer is less than 128 bytes large.
4063         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
4064         system's ttyname_r function. Provide a reasonably large buffer.
4065         * modules/ttyname_r (Depends-on): Add extensions.
4066         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
4067
4068 2010-04-25  Bruno Haible  <bruno@clisp.org>
4069
4070         Use the 'extensions' module for some more functions on Solaris.
4071         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
4072         module.
4073         * doc/posix-functions/ctime_r.texi: Likewise.
4074         * doc/posix-functions/getgrgid_r.texi: Likewise.
4075         * doc/posix-functions/getgrnam_r.texi: Likewise.
4076         * doc/posix-functions/getpwnam_r.texi: Likewise.
4077         * doc/posix-functions/getpwuid_r.texi: Likewise.
4078         * doc/posix-functions/readdir_r.texi: Likewise.
4079         * doc/posix-functions/sigwait.texi: Likewise.
4080         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
4081         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
4082
4083 2010-04-25  Bruno Haible  <bruno@clisp.org>
4084
4085         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
4086         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
4087         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
4088         * lib/ttyname_r.c: Include <limits.h>.
4089         (ttyname_r): Define using the system's ttyname_r function, if it exists
4090         and not on Solaris.
4091         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
4092         set.
4093         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
4094         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
4095         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
4096         Reported by Simon Josefsson.
4097
4098 2010-04-25  Bruno Haible  <bruno@clisp.org>
4099
4100         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
4101         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
4102         * doc/posix-functions/ctime_r.texi: Likewise.
4103         * doc/posix-functions/getgrgid_r.texi: Likewise.
4104         * doc/posix-functions/getgrnam_r.texi: Likewise.
4105         * doc/posix-functions/getlogin_r.texi: Likewise.
4106         * doc/posix-functions/getpwnam_r.texi: Likewise.
4107         * doc/posix-functions/getpwuid_r.texi: Likewise.
4108         * doc/posix-functions/readdir_r.texi: Likewise.
4109         * doc/posix-functions/sigwait.texi: Likewise.
4110         * doc/posix-functions/ttyname_r.texi: Likewise.
4111         Reported by Simon Josefsson.
4112
4113 2010-04-25  Bruno Haible  <bruno@clisp.org>
4114
4115         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
4116         * gnulib-tool (func_usage): Document that --with-*-tests options apply
4117         also to --create-testdir.
4118         (func_acceptable): Don't consider the status of *-tests modules here.
4119         (func_modules_transitive_closure): Consider it here, before including a
4120         test module.
4121         (func_import, func_create_testdir): Set inc_all_direct_tests,
4122         inc_all_indirect_tests.
4123         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
4124         --create-testdir and --create-megatestdir.
4125
4126 2010-04-25  Bruno Haible  <bruno@clisp.org>
4127
4128         gnulib-tool: Add --without-*-tests options.
4129         * gnulib-tool (func_usage): Document the --without-*-tests options.
4130         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
4131         excl_unportable_tests): New variables.
4132         Fail if they are specified with --import or --update.
4133         (func_acceptable): Respect the excl_*_tests variables.
4134         (func_import): Set the excl_*_tests variables to empty.
4135
4136 2010-04-25  Simon Josefsson  <simon@josefsson.org>
4137             Bruno Haible  <bruno@clisp.org>
4138
4139         Work around a MacOS X 10.4 bug with openpty.
4140         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
4141         * tests/test-openpty.c (main): Close the master side explicitly.
4142
4143 2010-04-25  Bruno Haible  <bruno@clisp.org>
4144
4145         strnlen: Fix a C++ test error on MacOS X and Solaris.
4146         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
4147         the function is not declared.
4148         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
4149         Simon Josefsson.
4150
4151 2010-04-24  Bruno Haible  <bruno@clisp.org>
4152
4153         Avoid a gcc warning.
4154         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
4155         of correct type for %08lx directive.
4156         Reported by Eric Blake.
4157
4158 2010-04-24  Bruno Haible  <bruno@clisp.org>
4159
4160         vasnprintf: Correct errno value in case of out-of-memory.
4161         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
4162         or sprintf. Use the errno value from SNPRINTF or sprintf.
4163         Reported by Ian Beckwith <ianb@erislabs.net>.
4164
4165 2010-04-24  Bruno Haible  <bruno@clisp.org>
4166
4167         ansi-c++-opt: Find correct compiler when cross-compiling.
4168         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
4169         AC_CHECK_PROGS.
4170         Reported by Simon Josefsson.
4171
4172 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
4173
4174         vc-list-files: Add support for subversion
4175         * build-aux/vc-list-files: Use "svn list" to generate the list of
4176         files controlled by subversion.
4177
4178 2010-04-23  Jim Meyering  <meyering@redhat.com>
4179
4180         vc-list-files tests: convert to use init.sh
4181         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
4182         path_prepend_.
4183         Use Exit, not exit.
4184         Use skip_ rather than open coding it.
4185         Remove trap set-up and compare definitions.
4186         * tests/test-vc-list-files-git.sh: Likewise.
4187         * modules/vc-list-files-tests (Files): Add tests/init.sh.
4188
4189 2010-04-22  Simon Josefsson  <simon@josefsson.org>
4190
4191         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
4192         backup files.
4193
4194 2010-04-21  Simon Josefsson  <simon@josefsson.org>
4195
4196         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
4197
4198 2010-04-20  Eric Blake  <eblake@redhat.com>
4199
4200         tests: be robust to ignored SIGPIPE
4201         * tests/test-select-in.sh: Consume all output.
4202         * tests/test-lseek.sh: Check correct exit status, while avoiding
4203         EPIPE.
4204
4205 2010-04-20  Simon Josefsson  <simon@josefsson.org>
4206             Bruno Haible  <bruno@clisp.org>
4207
4208         visibility: Don't use -fvisibility if it leads to a warning.
4209         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
4210         yes, don't pretend that visibility works if it leads to a warning.
4211         Reported by Mike Gran <spk121@yahoo.com>.
4212
4213 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
4214
4215         * build-aux/bootstrap: Use "git -h" for testing for supported options
4216         instead of "git --help".  The short-form option only shows a summary,
4217         and doesn't layout the full man page.  Grep for the full option name
4218         in the summary, too.
4219
4220 2010-04-19  Bruno Haible  <bruno@clisp.org>
4221
4222         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
4223         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
4224         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
4225         mention of RELOCATABLE_STRIP.
4226         Reported by Sylvain Beucler <beuc@beuc.net>.
4227
4228 2010-04-19  Bruno Haible  <bruno@clisp.org>
4229
4230         * lib/diffseq.h: Fix typo in comment.
4231         Reported by Eric Blake.
4232
4233 2010-04-19  Bruno Haible  <bruno@clisp.org>
4234
4235         ioctl: Move autoconf macro to a .m4 file.
4236         * m4/ioctl.m4: New file, extracted from modules/ioctl.
4237         * modules/ioctl (Files): Add it.
4238         (configure.ac): Simply invoke gl_FUNC_IOCTL.
4239         Reported by Ian Beckwith <ianb@erislabs.net>.
4240
4241 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
4242             Bruno Haible  <bruno@clisp.org>
4243
4244         diffseq: Accommodate use-case with abstract arrays.
4245         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
4246         is not defined.
4247         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
4248         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
4249
4250 2010-04-18  Bruno Haible  <bruno@clisp.org>
4251
4252         * doc/posix-headers/stdbool.texi: More precise wording.
4253
4254 2010-04-17  Jim Meyering  <meyering@redhat.com>
4255
4256         maint.mk: use gnu-style indentation in an embedded perl script
4257         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
4258         Rename variable: s/two/last_two_bytes/
4259
4260 2010-04-16  Eric Blake  <eblake@redhat.com>
4261
4262         test-stdbool: skip test that fails with Solaris CC
4263         * tests/test-stdbool.c (f): Skip test that causes compilation
4264         error under buggy C++ compiler.
4265         * lib/stdbool.in.h: Document the limitation.
4266         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
4267
4268         setenv: allow compilation with C++
4269         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
4270         register keyword.
4271
4272         stdint: allow test to pass with C++
4273         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
4274
4275         getopt: allow compilation with C++
4276         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
4277         struct.
4278         * lib/getopt.c (_getopt_internal_r): Use correct type.
4279         Reported by Dagobert Michelson, via Joel E. Denny.
4280
4281 2010-04-16  Bruno Haible  <bruno@clisp.org>
4282
4283         Override netdb.h always.
4284         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
4285         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
4286         Reported by Ludovic Courtès <ludo@gnu.org>.
4287
4288 2010-04-15  Bruno Haible  <bruno@clisp.org>
4289
4290         openpty: Fix mistake from 2010-03-21.
4291         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
4292         Reported by Simon Josefsson.
4293
4294 2010-04-15  Eric Blake  <eblake@redhat.com>
4295
4296         test-forkpty: fix expected signature
4297         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
4298         Reported by Simon Josefsson.
4299
4300 2010-04-15  Jim Meyering  <meyering@redhat.com>
4301
4302         maint.mk: texinfo_suffix_re_: correct the default regexp
4303         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
4304
4305         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
4306         make it configurable via texinfo_suffix_re_.
4307
4308 2010-04-14  Eric Blake  <eblake@redhat.com>
4309
4310         strtok_r: relax license to LGPLv2+
4311         * modules/strtok_r (License): Relax license.
4312         Reported by Matthias Bolte.
4313
4314 2010-04-14  Simon Josefsson  <simon@josefsson.org>
4315
4316         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
4317         version 1.4.4 by default instead of requiring the libgcrypt
4318         version used during build.  This makes it possible to use the
4319         application with older but still binary compatible libgcrypt
4320         versions.
4321
4322 2010-04-13  Eric Blake  <eblake@redhat.com>
4323
4324         getopt-gnu: match recent glibc fixes and posix ruling
4325         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
4326         '+' handling, when requesting extensions.
4327         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
4328         'W;' handling.
4329         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
4330         * doc/posix-functions/getopt.texi (getopt): Document this.
4331         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
4332         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4333         Likewise.
4334
4335         getopt: merge bug fixes from glibc
4336         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
4337         diagnostics.  Honor '+:' correctly.  Reject ';'.
4338
4339         getopt-posix: detect MacOS bug
4340         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
4341         optind when missing a required argument.
4342         * doc/posix-functions/getopt.texi (getopt): Document the bug.
4343         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
4344         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4345         Likewise.
4346
4347         getopt-posix: avoid spurious failure on Solaris
4348         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
4349         an indicator that setting optind=1 is sufficient for reset.
4350
4351         getopt-posix: avoid spurious failure on FreeBSD
4352         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
4353         in POSIX mode, since the m4 test uses it.
4354
4355         gnulib-tool: silence warning on BSD sh
4356         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
4357
4358 2010-04-13  Jim Meyering  <meyering@redhat.com>
4359
4360         doc: users.txt: GNU patch now uses gnulib
4361         * users.txt: Add patch.
4362
4363 2010-04-12  Jim Meyering  <meyering@redhat.com>
4364
4365         maint.mk: generate more concise timing data for syntax-check rules
4366         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
4367         " done" from each line that reports a syntax-check test duration.
4368
4369 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
4370
4371         git-version-gen: use "git update-index..." rather than "git status"
4372         * build-aux/git-version-gen: Use git update-index --refresh, not
4373         "git status".  With some versions of git, "git status" would fail
4374         to update the index and result in an unwarranted "-dirty" suffix.
4375
4376 2010-04-11  Jim Meyering  <meyering@redhat.com>
4377
4378         openat: correct formatting (no semantic change)
4379         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
4380         Suggested by Bruno Haible.
4381
4382 2010-04-11  Bruno Haible  <bruno@clisp.org>
4383
4384         Stricter declaration checking in testdirs.
4385         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
4386         If for_tests is true, augment AM_CPPFLAGS to define
4387         GNULIB_STRICT_CHECKING.
4388         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
4389         GNULIB_STRICT_CHECKING is defined, verify that the function is
4390         declared.
4391
4392 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
4393             Bruno Haible  <bruno@clisp.org>
4394
4395         libunistring: Improve configure output.
4396         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
4397         Don't say "consider installing GNU libunistring" when checking again
4398         with libiconv.
4399
4400 2010-04-11  Bruno Haible  <bruno@clisp.org>
4401
4402         libunistring: Correct value of $LTLIBUNISTRING.
4403         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
4404         correct the value of $LTLIBUNISTRING.
4405
4406 2010-04-11  Bruno Haible  <bruno@clisp.org>
4407
4408         havelib: Add static libraries to LIBS in the right order.
4409         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
4410         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
4411
4412 2010-04-11  Bruno Haible  <bruno@clisp.org>
4413
4414         libunistring: Detect libunistring also when it depends on libiconv.
4415         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
4416         the second AC_LIB_HAVE_LINKFLAGS invocation.
4417
4418 2010-04-11  James Youngman  <jay@gnu.org>
4419
4420         close-stream: declare local scalars to be "const"
4421         * lib/close-stream.c (close_stream): Make boolean variables const
4422         to document the fact that we set but do not change them.
4423
4424 2010-04-11  Bruno Haible  <bruno@clisp.org>
4425
4426         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
4427
4428 2010-04-11  Jim Meyering  <meyering@redhat.com>
4429
4430         maint.mk: don't include dist-check.mk
4431         * top/maint.mk: Remove bogus include directive.
4432
4433         maint.mk: improve empty-line-at-EOF check
4434         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
4435         solution, rather than tail+Perl-based one.  The latter would read
4436         a few kilobytes from the end of each file, and did not handle empty
4437         files properly.
4438
4439         maint.mk: print the elapsed time for each syntax-check rule
4440         * top/maint.mk (sc_m_rules_): Save start time in a file.
4441         (sc_z_rules_): New rules: remove temp file and print elapsed time.
4442         (local-check): Interpose the .z rules
4443
4444 2010-04-11  Jim Meyering  <meyering@redhat.com>
4445
4446         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
4447         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
4448         empty file with one that ends in an empty line.
4449
4450 2010-04-10  Bruno Haible  <bruno@clisp.org>
4451
4452         mkdir: Make it work on mingw64.
4453         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
4454         * lib/mkdir.c: Update comment.
4455         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
4456
4457 2010-04-10  Bruno Haible  <bruno@clisp.org>
4458
4459         Don't override improved macro from newer autoconf.
4460         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
4461         autoconf >= 2.62.
4462         Reported by Joel E. Denny <jdenny@clemson.edu>.
4463
4464 2010-04-10  Jim Meyering  <meyering@redhat.com>
4465
4466         maint.mk: new syntax-check rule: prohibit empty lines at end of file
4467         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
4468
4469         maint.mk: correct a diagnostic
4470         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
4471         in diagnostic; now use $prohibit.
4472
4473 2010-04-10  Bruno Haible  <address@hidden>
4474
4475         fchownat: Fix a C++ test error on Solaris 8.
4476         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
4477         the function does not exist.
4478
4479 2010-04-10  Bruno Haible  <bruno@clisp.org>
4480
4481         vasnprintf: Add more tests.
4482         * tests/test-vasnprintf-posix.c: Include <errno.h>.
4483         (test_function): Test converting an invalid wide string.
4484
4485         vasnprintf: Correct handling of unconvertible wide string arguments.
4486         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
4487         VASNPRINTF.
4488         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
4489         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
4490         smaller than the expected maximum need for the directive. Set errno to
4491         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
4492         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
4493         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
4494         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
4495         * modules/vasnprintf (Files): Add m4/printf.m4.
4496         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4497
4498 2010-04-10  Bruno Haible  <bruno@clisp.org>
4499
4500         vasnprintf: Fix crash in %ls directive.
4501         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
4502         string is passed as argument to %ls, with no precision and no width.
4503         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4504
4505 2010-04-10  Bruno Haible  <bruno@clisp.org>
4506
4507         vasnprintf: Fix multiple test failures on mingw.
4508         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
4509         _snprintf, or snwprintf, not _snwprintf.
4510
4511 2010-04-10  Bruno Haible  <bruno@clisp.org>
4512
4513         write: Fix a C++ test error on mingw.
4514         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
4515
4516 2010-04-10  Bruno Haible  <bruno@clisp.org>
4517
4518         vasnprintf test: Reduce code duplication.
4519         * tests/test-vasnprintf.c (test_function): New function, extracted from
4520         test_vasnprintf.
4521         (test_vasnprintf, test_asnprintf): Invoke it.
4522
4523 2010-04-10  Bruno Haible  <bruno@clisp.org>
4524
4525         strnlen: Fix warning in C++ mode on MacOS X.
4526         * lib/string.in.h (strnlen): Use the modern idiom.
4527         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
4528         defining strnlen as a macro already in <config.h>.
4529         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
4530         REPLACE_STRNLEN.
4531         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
4532         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4533
4534 2010-04-08  James Youngman  <jay@gnu.org>
4535
4536         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
4537         the example.
4538
4539 2010-04-09  Jim Meyering  <meyering@redhat.com>
4540
4541         maint.mk: print better diagnostic when there is no $(_hv_file)
4542         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
4543         announce that when $(_hv_file) (aka help-version) does not exist.
4544
4545         init.sh: run tr in the "C" locale to avoid multibyte interpretation
4546         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
4547         not try to interpret its random input bytes.  Jarno Rajahalme reported
4548         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
4549         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
4550         (mktempd_): Likewise, just in case.
4551
4552         ftruncate: add two years to projected module removal date: 2012
4553         * m4/ftruncate.m4: Adjust comments.
4554
4555         ftruncate: mark module as obsolete; even MinGW provides it, now
4556         * modules/ftruncate (Status): Obsolete.
4557         (Notice): Say that.
4558         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
4559         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
4560
4561 2010-04-08  Bruno Haible  <bruno@clisp.org>
4562
4563         Fix side effects from tests-related modules.
4564         * modules/dprintf-posix (Comment): New section.
4565         * modules/fprintf-posix (Comment): Likewise.
4566         * modules/obstack-printf-posix (Comment): Likewise.
4567         * modules/printf-posix (Comment): Likewise.
4568         * modules/snprintf-posix (Comment): Likewise.
4569         * modules/sprintf-posix (Comment): Likewise.
4570         * modules/vasnprintf-posix (Comment): Likewise.
4571         * modules/vasprintf-posix (Comment): Likewise.
4572         * modules/vdprintf-posix (Comment): Likewise.
4573         * modules/vfprintf-posix (Comment): Likewise.
4574         * modules/vprintf-posix (Comment): Likewise.
4575         * modules/vsnprintf-posix (Comment): Likewise.
4576         * modules/vsprintf-posix (Comment): Likewise.
4577         * modules/xprintf-posix (Comment): Likewise.
4578         * modules/xvasprintf-posix (Comment): Likewise.
4579         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
4580         * modules/floorf-tests (Depends-on): Likewise.
4581         * modules/round-tests (Depends-on): Likewise.
4582         * modules/roundf-tests (Depends-on): Likewise.
4583         * modules/trunc-tests (Depends-on): Likewise.
4584         * modules/truncf-tests (Depends-on): Likewise.
4585         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
4586         'fprintf-posix' module is not present.
4587         * tests/test-floorf2.c (check): Likewise.
4588         * tests/test-trunc2.c (check): Likewise.
4589         * tests/test-truncf2.c (check): Likewise.
4590         * tests/test-round2.c (equal): Likewise.
4591         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4592
4593 2010-04-07  Karl Berry  <karl@gnu.org>
4594
4595         * config/srclist.txt,
4596         * config/srclistvars.sh,
4597         * config/srclist-update: doc fixes.
4598
4599 2010-04-07  Jim Meyering  <meyering@redhat.com>
4600
4601         maint.mk: add a PATH crosschecking syntax-check rule
4602         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
4603         Useful if you use a test like the one in help-version (coreutils,
4604         diffutils, grep, gzip) that ensures $(VERSION) matches what is
4605         printed by prog --version.
4606
4607 2010-04-06  Bruno Haible  <bruno@clisp.org>
4608
4609         Fix link error on mingw.
4610         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
4611         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
4612
4613 2010-04-06  Bruno Haible  <bruno@clisp.org>
4614
4615         Assume rmdir exists.
4616         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
4617
4618 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
4619
4620         doc: update users.txt
4621         * users.txt: Add gcal.
4622
4623 2010-04-06  Jim Meyering  <meyering@redhat.com>
4624
4625         init.sh: simply unset TMPDIR rather than risking env -i
4626         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
4627         although it probably works fine on all Unix-based systems, some
4628         systems (Cygwin?) cannot tolerate a totally cleared environment.
4629         Suggestion from Eric Blake.
4630
4631 2010-04-06  Jim Meyering  <meyering@redhat.com>
4632
4633         init.sh: portability fix: use env's POSIX-specified -i option not -u
4634         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
4635         than unportable env -u.  Solaris 5.11's env lacks support for -u.
4636
4637 2010-04-05  Bruno Haible  <bruno@clisp.org>
4638
4639         btowc: Work around Cygwin 1.7.2 bug.
4640         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
4641         does not map NUL to 0.
4642         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
4643
4644 2010-04-05  Bruno Haible  <bruno@clisp.org>
4645
4646         Make the multithread modules work on Cygwin 1.7.2.
4647         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
4648         imported symbols can be declared weak, so that it returns "no" on
4649         Cygwin 1.7.2.
4650
4651 2010-04-05  Bruno Haible  <bruno@clisp.org>
4652
4653         Use the module 'strncat'.
4654         * modules/unistr/u8-strncat (Depends-on): Add strncat.
4655
4656         Tests for module 'strncat'.
4657         * modules/strncat-tests: New file.
4658         * tests/test-strncat.c: New file.
4659
4660         New module 'strncat'.
4661         * lib/string.in.h (strncat): New declaration.
4662         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
4663         * m4/strncat.m4: New file, based on m4/memchr.m4.
4664         * modules/strncat: New file.
4665         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
4666         is declared.
4667         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
4668         REPLACE_STRNCAT.
4669         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
4670         REPLACE_STRNCAT.
4671         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
4672         module.
4673         * tests/test-string-c++.cc: Check signature of strncat.
4674
4675 2010-04-05  Jim Meyering  <meyering@redhat.com>
4676
4677         xstrtoumax-tests: convert to use init.sh
4678         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
4679         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4680         Use Exit, not exit.
4681         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4682
4683         xstrtoimax-tests: convert to use init.sh
4684         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
4685         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4686         Use Exit, not exit.
4687         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4688
4689 2010-04-05  Bruno Haible  <bruno@clisp.org>
4690
4691         sys_socket: Avoid #define replacements in C++ mode.
4692         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
4693         warning to the function if possible, rather than #defining the symbol
4694         to a dysfunctional alias.
4695
4696 2010-04-05  Bruno Haible  <bruno@clisp.org>
4697
4698         fseeko: Fix C++ test error on mingw.
4699         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
4700         gl_FUNC_FSEEKO.
4701         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
4702         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
4703         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
4704         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
4705
4706 2010-04-05  Bruno Haible  <bruno@clisp.org>
4707
4708         duplocale: Improve test output.
4709         * tests/test-duplocale.c (main): Print reason for skipped test.
4710
4711 2010-04-05  Bruno Haible  <bruno@clisp.org>
4712
4713         Assume rmdir exists.
4714         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
4715         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
4716
4717 2010-04-05  Bruno Haible  <bruno@clisp.org>
4718
4719         Fix link error on Solaris 8 with cc.
4720         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
4721
4722 2010-04-05  Bruno Haible  <bruno@clisp.org>
4723
4724         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
4725         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
4726
4727 2010-04-05  Bruno Haible  <bruno@clisp.org>
4728
4729         vasprintf: Update documentation.
4730         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
4731
4732 2010-04-05  Bruno Haible  <bruno@clisp.org>
4733
4734         ptsname: Improve test.
4735         * tests/test-ptsname.c (main): Also try the various master names of BSD
4736         systems.
4737
4738 2010-04-05  Bruno Haible  <bruno@clisp.org>
4739
4740         memchr: Avoid a possible C++ test error.
4741         * lib/string.in.h (memchr): Provide declaration if function is missing.
4742         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
4743         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
4744         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
4745         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
4746
4747 2010-04-05  Bruno Haible  <bruno@clisp.org>
4748
4749         strtok_r: Improve idiom.
4750         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
4751         AC_LIBOBJ is used.
4752
4753 2010-04-05  Bruno Haible  <bruno@clisp.org>
4754
4755         strdup: Improve idiom.
4756         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
4757         AC_LIBOBJ is used.
4758         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
4759         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
4760         when AC_LIBOBJ is used.
4761
4762 2010-04-05  Bruno Haible  <bruno@clisp.org>
4763
4764         mbsinit, mbrtowc, wcrtomb: Improve idioms.
4765         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
4766         don't set REPLACE_MBSINIT to 1.
4767         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
4768         don't set REPLACE_MBRTOWC to 1.
4769         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
4770         exist, don't set REPLACE_MBSRTOWCS to 1.
4771         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
4772         exist, don't set REPLACE_MBSNRTOWCS to 1.
4773         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
4774         don't set REPLACE_WCRTOMB to 1.
4775         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
4776         exist, don't set REPLACE_WCSRTOMBS to 1.
4777         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
4778         exist, don't set REPLACE_WCSNRTOMBS to 1.
4779
4780 2010-04-05  Bruno Haible  <bruno@clisp.org>
4781
4782         ldexpl: Improve idiom.
4783         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
4784         make sure to set HAVE_DECL_LDEXPL to 0.
4785
4786 2010-04-05  Jim Meyering  <meyering@redhat.com>
4787
4788         xstrtol-tests: convert to use init.sh
4789         * modules/xstrtol-tests (Files): Add tests/init.sh.
4790         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4791         Use Exit, not exit.
4792         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4793
4794         atexit-tests: convert to use init.sh
4795         * modules/atexit-tests (Files): Add tests/init.sh.
4796         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4797         Use Exit, not exit.
4798         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4799
4800         init.sh: fix typo
4801         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
4802
4803         init.sh: make it easier for a test script to write to the tty, ...
4804         when using automake's parallel-tests mode.
4805         * tests/init.sh (stderr_fileno_): Define overridable variable.
4806         (warn_): New function, to use it.
4807         (fail_, skip_, framework_failure_): Use warn_.
4808
4809 2010-04-04  Bruno Haible  <bruno@clisp.org>
4810
4811         btowc: Avoid warning.
4812         * lib/btowc.c: Include <stdlib.h>.
4813         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
4814
4815 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
4816             Bruno Haible  <bruno@clisp.org>
4817
4818         wchar: Port to NetBSD 1.5.
4819         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
4820         * lib/wctype.in.h (WEOF): Likewise.
4821
4822 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
4823             Bruno Haible  <bruno@clisp.org>
4824
4825         Port extended stdio to NetBSD 1.5.
4826         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
4827         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
4828         older.
4829
4830 2010-04-04  Bruno Haible  <bruno@clisp.org>
4831
4832         string: Remove unused substitution.
4833         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
4834         HAVE_DECL_STRERROR.
4835         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
4836
4837 2010-04-04  Bruno Haible  <bruno@clisp.org>
4838
4839         strtod: Avoid a possible C++ test error.
4840         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
4841         set REPLACE_STRTOD.
4842
4843 2010-04-04  Bruno Haible  <bruno@clisp.org>
4844
4845         strerror: Update documentation.
4846         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
4847
4848 2010-04-04  Bruno Haible  <bruno@clisp.org>
4849
4850         stdio: Fix some C++ test errors on Solaris 8 with GCC.
4851         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
4852         _GL_CXXALIAS_SYS_CAST.
4853
4854 2010-04-04  Bruno Haible  <bruno@clisp.org>
4855
4856         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
4857         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
4858         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
4859         REPLACE_FREXPL to 1.
4860         * doc/posix-functions/frexpl.texi: Update documentation.
4861
4862 2010-04-04  Bruno Haible  <bruno@clisp.org>
4863
4864         math: Fix some C++ test errors on Solaris 8 and Cygwin.
4865         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
4866
4867 2010-04-04  Bruno Haible  <bruno@clisp.org>
4868
4869         Implement nanosleep for native Windows.
4870         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
4871
4872 2010-04-04  Bruno Haible  <bruno@clisp.org>
4873
4874         math: Fix some C++ test errors on Solaris 8.
4875         * lib/math.in.h (truncf, trunc): Use simpler idiom.
4876
4877 2010-04-04  Bruno Haible  <bruno@clisp.org>
4878
4879         math: Fix some C++ test errors on Cygwin.
4880         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
4881         truncl): Provide declaration if the system does not have it.
4882         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
4883         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
4884         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
4885         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
4886         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
4887         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
4888         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
4889         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
4890         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
4891         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
4892         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
4893         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
4894         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
4895         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
4896         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
4897         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
4898         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
4899         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
4900         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
4901         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
4902         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
4903         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
4904
4905 2010-04-04  Bruno Haible  <bruno@clisp.org>
4906
4907         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
4908         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
4909         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
4910         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
4911         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
4912         * m4/isinf.m4 (gl_ISINF): Likewise.
4913         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4914
4915 2010-04-04  Bruno Haible  <bruno@clisp.org>
4916
4917         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
4918         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4919
4920 2010-04-04  Bruno Haible  <bruno@clisp.org>
4921
4922         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
4923         * modules/tmpfile (configure.ac): Update.
4924
4925         tmpfile: Fix C++ test error on mingw.
4926         * lib/stdio.in.h (tmpfile): New declaration.
4927         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
4928         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
4929         * modules/tmpfile (Depends-on): Add stdio.
4930         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
4931         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
4932         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
4933         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
4934         REPLACE_TMPFILE.
4935         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
4936
4937 2010-04-04  Bruno Haible  <bruno@clisp.org>
4938
4939         ioctl: Fix C++ test error on mingw.
4940         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
4941         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
4942         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
4943
4944 2010-04-03  Bruno Haible  <bruno@clisp.org>
4945
4946         wcwidth: Fix C++ test error on mingw.
4947         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
4948         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
4949         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
4950
4951 2010-04-03  Bruno Haible  <bruno@clisp.org>
4952
4953         nanosleep: Fix C++ test error on mingw.
4954         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
4955         * lib/time.in.h (nanosleep): Use modern idiom.
4956         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
4957         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
4958         REPLACE_NANOSLEEP to 1.
4959         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
4960         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
4961
4962 2010-04-03  Bruno Haible  <bruno@clisp.org>
4963
4964         strptime: Fix C++ test error on mingw.
4965         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
4966         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
4967         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
4968         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
4969         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
4970         not REPLACE_STRPTIME.
4971         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
4972         REPLACE_STRPTIME.
4973
4974 2010-04-03  Bruno Haible  <bruno@clisp.org>
4975
4976         timegm: Fix C++ test error on mingw.
4977         * lib/time.in.h (timegm): Use modern idiom.
4978         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
4979         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
4980         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
4981         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
4982
4983 2010-04-03  Bruno Haible  <bruno@clisp.org>
4984
4985         timegm: Assume declaration if function exists.
4986         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
4987         if it exists. Don't clobber ac_cv_func_timegm.
4988
4989 2010-04-03  Bruno Haible  <bruno@clisp.org>
4990
4991         time_r: Fix C++ test error on mingw.
4992         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
4993         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
4994         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
4995         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
4996         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
4997
4998 2010-04-03  Bruno Haible  <bruno@clisp.org>
4999
5000         time_r: Minor updates.
5001         * modules/time_r (Description): Mention the provided functions.
5002         * lib/time_r.c: Don't include <string.h>.
5003         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
5004         * doc/posix-functions/localtime_r.texi: Likewise.
5005
5006 2010-04-03  Bruno Haible  <bruno@clisp.org>
5007
5008         time: Fix regression introduced on 2010-03-08.
5009         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
5010         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
5011
5012 2010-04-03  Jim Meyering  <meyering@redhat.com>
5013
5014         maint.mk: don't silently disable project-specific syntax-check rules
5015         * top/maint.mk (_prohibit_regexp): Define, to help people realize
5016         that they need to convert their project-specific syntax-check rules
5017         to use the new _sc_search_regexp.
5018
5019 2010-04-03  Bruno Haible  <bruno@clisp.org>
5020
5021         fchdir: Fix regression introduced on 2010-03-08.
5022         * lib/unistd.in.h (fchdir): Fix declaration.
5023         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
5024         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
5025         REPLACE_FCHDIR.
5026         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
5027         REPLACE_FCHDIR.
5028
5029 2010-04-03  Bruno Haible  <bruno@clisp.org>
5030
5031         getpagesize: Fix C++ test error on mingw.
5032         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
5033         system does not declare the function.
5034         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
5035         declared.
5036         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5037         HAVE_DECL_GETPAGESIZE.
5038         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
5039
5040 2010-04-03  Bruno Haible  <bruno@clisp.org>
5041
5042         stdio: Make C++ tests work on mingw.
5043         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
5044         does not declare the function.
5045
5046 2010-04-03  Bruno Haible  <bruno@clisp.org>
5047
5048         ftello: Fix C++ test error on mingw.
5049         * lib/stdio.in.h (ftello): Use modern idiom.
5050         * lib/ftello.c (ftello): Renamed from rpl_ftello.
5051         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
5052         is missing and that it needs to be replaced.
5053         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
5054         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
5055         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
5056
5057 2010-04-03  Bruno Haible  <bruno@clisp.org>
5058
5059         fseeko: Fix C++ test error on mingw.
5060         * lib/stdio.in.h (fseeko): Use modern idiom.
5061         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
5062         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
5063         is missing and that it needs to be replaced.
5064         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
5065         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
5066         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
5067
5068 2010-04-03  Bruno Haible  <bruno@clisp.org>
5069
5070         mkstemp: Fix C++ test error on mingw.
5071         * lib/stdlib.in.h (mkstemp): Use modern idiom.
5072         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
5073         function is missing and that it needs to be replaced.
5074         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
5075         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
5076
5077 2010-04-03  Bruno Haible  <bruno@clisp.org>
5078
5079         stpncpy: Fix C++ test error on mingw.
5080         * lib/string.in.h (stpncpy): Use modern idiom.
5081         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
5082         function is missing and that it needs to be replaced.
5083         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
5084         REPLACE_STPNCPY.
5085         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
5086
5087 2010-04-03  Bruno Haible  <bruno@clisp.org>
5088
5089         sys_stat: Fix C++ test error on mingw.
5090         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
5091         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
5092
5093 2010-04-03  Bruno Haible  <bruno@clisp.org>
5094
5095         pty: Update doc.
5096         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
5097
5098 2010-04-03  Bruno Haible  <bruno@clisp.org>
5099
5100         unistd: Fix C++ test error on mingw.
5101         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
5102
5103 2010-04-03  Bruno Haible  <bruno@clisp.org>
5104
5105         Update doc regarding mingw.
5106         * doc/glibc-functions/openpty.texi: Update regarding mingw.
5107         * doc/glibc-functions/login_tty.texi: Likewise.
5108         * doc/glibc-functions/forkpty.texi: Likewise.
5109
5110 2010-04-03  Bruno Haible  <bruno@clisp.org>
5111
5112         stdlib: Avoid compilation failure of c-strtold on mingw.
5113         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
5114
5115 2010-04-03  Bruno Haible  <bruno@clisp.org>
5116
5117         locale: Make C++ tests work on Cygwin and mingw.
5118         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
5119         cannot provide the function.
5120         Reported by Simon Josefsson.
5121
5122 2010-04-03  Bruno Haible  <bruno@clisp.org>
5123
5124         localename: Port to MacOS X 10.6.
5125         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
5126         memory layout of the locales in MacOS X 10.6 as well.
5127         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
5128
5129 2010-04-02  Bruno Haible  <bruno@clisp.org>
5130
5131         gnulib-tool: Ensure that long-running tests are executed last.
5132         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
5133         running tests after the one for the other tests.
5134
5135 2010-04-02  Bruno Haible  <bruno@clisp.org>
5136
5137         gnulib-tool: Ensure the tests in the main directory are executed first.
5138         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
5139         start with the current directory.
5140
5141 2010-04-02  Bruno Haible  <bruno@clisp.org>
5142
5143         Tests for module 'havelib', moved here from GNU gettext.
5144         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
5145         modifications.
5146         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
5147         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
5148         with modifications.
5149         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
5150         modifications.
5151         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
5152         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
5153         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
5154         with modifications.
5155         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
5156         with modifications.
5157         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
5158         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
5159         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
5160         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
5161         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
5162         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
5163         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
5164         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
5165         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
5166         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
5167         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
5168         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
5169         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
5170         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
5171         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
5172         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
5173         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
5174         with modifications.
5175         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
5176         with modifications.
5177         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
5178         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
5179         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
5180         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
5181         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
5182         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
5183         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
5184         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
5185         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
5186         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
5187         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
5188         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
5189         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
5190         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
5191         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
5192         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
5193         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
5194         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
5195         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
5196         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
5197         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
5198         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
5199         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
5200         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
5201         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
5202         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
5203         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
5204         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
5205         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
5206         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
5207         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
5208         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
5209         * tests/havelib/rpathx/rpathx.c: New file, from
5210         gettext/autoconf-lib-link.
5211         * tests/havelib/rpathx/Makefile.am: New file, from
5212         gettext/autoconf-lib-link.
5213         * tests/havelib/rpathx/configure.ac: New file, from
5214         gettext/autoconf-lib-link with modifications.
5215         * tests/havelib/rpathy/rpathy.c: New file, from
5216         gettext/autoconf-lib-link.
5217         * tests/havelib/rpathy/Makefile.am: New file, from
5218         gettext/autoconf-lib-link.
5219         * tests/havelib/rpathy/configure.ac: New file, from
5220         gettext/autoconf-lib-link with modifications.
5221         * tests/havelib/rpathz/rpathz.c: New file, from
5222         gettext/autoconf-lib-link.
5223         * tests/havelib/rpathz/Makefile.am: New file, from
5224         gettext/autoconf-lib-link.
5225         * tests/havelib/rpathz/configure.ac: New file, from
5226         gettext/autoconf-lib-link with modifications.
5227         * tests/havelib/rpathlx/usex.c: New file, from
5228         gettext/autoconf-lib-link.
5229         * tests/havelib/rpathlx/Makefile.am: New file, from
5230         gettext/autoconf-lib-link.
5231         * tests/havelib/rpathlx/configure.ac: New file, from
5232         gettext/autoconf-lib-link with modifications.
5233         * tests/havelib/rpathly/usey.c: New file, from
5234         gettext/autoconf-lib-link.
5235         * tests/havelib/rpathly/Makefile.am: New file, from
5236         gettext/autoconf-lib-link.
5237         * tests/havelib/rpathly/configure.ac: New file, from
5238         gettext/autoconf-lib-link with modifications.
5239         * tests/havelib/rpathlz/usez.c: New file, from
5240         gettext/autoconf-lib-link.
5241         * tests/havelib/rpathlz/Makefile.am: New file, from
5242         gettext/autoconf-lib-link.
5243         * tests/havelib/rpathlz/configure.ac: New file, from
5244         gettext/autoconf-lib-link with modifications.
5245         * tests/havelib/rpathlyx/usey.c: New file, from
5246         gettext/autoconf-lib-link.
5247         * tests/havelib/rpathlyx/Makefile.am: New file, from
5248         gettext/autoconf-lib-link.
5249         * tests/havelib/rpathlyx/configure.ac: New file, from
5250         gettext/autoconf-lib-link with modifications.
5251         * tests/havelib/rpathlzyx/usez.c: New file, from
5252         gettext/autoconf-lib-link.
5253         * tests/havelib/rpathlzyx/Makefile.am: New file, from
5254         gettext/autoconf-lib-link.
5255         * tests/havelib/rpathlzyx/configure.ac: New file, from
5256         gettext/autoconf-lib-link with modifications.
5257         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
5258         with modifications.
5259
5260 2010-04-02  Bruno Haible  <bruno@clisp.org>
5261
5262         gnulib-tool: Create distributed built sources also for the tests.
5263         * gnulib-tool (func_create_testdir): Also generate distributed built
5264         sources in the tests directory.
5265
5266 2010-04-02  Bruno Haible  <bruno@clisp.org>
5267
5268         gnulib-tool: Obey user's environment variables.
5269         * gnulib-tool (func_create_testdir): When creating built sources,
5270         respect the environment variables for autoconf, automake, etc. given by
5271         the user.
5272
5273 2010-04-02  Bruno Haible  <bruno@clisp.org>
5274
5275         gnulib-tool: Provide the value of --m4-base to modules.
5276         * gnulib-tool (func_import, func_create_testdir): Emit a definition
5277         of gl_m4_base.
5278
5279 2010-04-02  Eric Blake  <eblake@redhat.com>
5280
5281         maint.mk: fix some fallout
5282         * NEWS: Document the incompatible change, and its effect on cfg.mk.
5283         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
5284
5285 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
5286
5287         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
5288         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
5289         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
5290         (sc_cast_of_x_alloc_return_value): Likewise.
5291         (sc_cast_of_alloca_return_value): Likewise.
5292         (sc_space_tab): Likewise.
5293         (sc_prohibit_atoi_atof): Likewise.
5294         (sc_prohibit_magic_number_exit): Likewise.
5295         (sc_error_exit_success): Likewise.
5296         (sc_file_system): Likewise.
5297         (sc_prohibit_have_config_h): Likewise.
5298         (sc_require_config_h): Likewise.
5299         (sc_prohibit_HAVE_MBRTOWC): Likewise.
5300         (sc_obsolete_symbols): Likewise.
5301         (sc_changelog): Likewise.
5302         (sc_program_name): Likewise.
5303         (sc_the_the): Likewise.
5304         (sc_trailing_blank): Likewise.
5305         (sc_two_space_separator_in_usage): Likewise.
5306         (sc_useless_cpp_parens): Likewise.
5307         (sc_GPL_version): Likewise.
5308         (sc_GFDL_version): Likewise.
5309         (sc_texinfo_acronym): Likewise.
5310         (sc_prohibit_cvs_keyword): Likewise.
5311         (sc_prohibit_stat_st_blocks): Likewise.
5312         (sc_prohibit_S_IS_definition): Likewise.
5313         (sc_redundant_const): Likewise.
5314         (sc_makefile_TAB_only_indentation): Likewise.
5315         (sc_m4_quote_check): Likewise.
5316         (sc_makefile_path_separator_check): Likewise.
5317         (sc_copyright_check): Likewise.
5318         (sc_Wundef_boolean): Likewise.
5319         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
5320
5321         maint.mk: match 0 or more whitespace-before-function-call '('
5322         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
5323         that have zero or two-and-more spaces between the function name
5324         and the open parenthesis.
5325         (sc_error_message_warn_fatal): Likewise.
5326         (sc_error_message_uppercase): Likewise.
5327         (sc_error_message_period): Likewise.
5328
5329 2010-03-31  Eric Blake  <eblake@redhat.com>
5330
5331         maint.mk: check for [ as well as test
5332         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
5333         Based on a libvirt report by Matthias Bolte.
5334
5335         gnumakefile: don't squelch _version output
5336         * top/GNUmakefile (_version): Create one-shot dependency rather
5337         than using $(shell) when version must be regenerated.
5338         (_autoreconf): Run verbosely, by default.
5339
5340         sys_time: avoid compiler warnings
5341         * lib/sys_time.in.h (includes): Ensure gcc pragma is
5342         unconditional, fixing regression from 2010-03-29.
5343         Reported by Simon Josefsson.
5344
5345 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
5346
5347         maint.mk: s/_header_without_use/_sc_header_without_use/
5348         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
5349         (sc_prohibit_assert_without_use): Use the new name.
5350         (sc_prohibit_close_stream_without_use): Likewise.
5351         (sc_prohibit_getopt_without_use): Likewise.
5352         (sc_prohibit_quotearg_without_use): Likewise.
5353         (sc_prohibit_quote_without_use): Likewise.
5354         (sc_prohibit_long_options_without_use): Likewise.
5355         (sc_prohibit_inttostr_without_use): Likewise.
5356         (sc_prohibit_ignore_value_without_use): Likewise.
5357         (sc_prohibit_error_without_use): Likewise.
5358         (sc_prohibit_xalloc_without_use): Likewise.
5359         (sc_prohibit_hash_without_use): Likewise.
5360         (sc_prohibit_hash_pjw_without_use): Likewise.
5361         (sc_prohibit_safe_read_without_use): Likewise.
5362         (sc_prohibit_argmatch_without_use): Likewise.
5363         (sc_prohibit_canonicalize_without_use): Likewise.
5364         (sc_prohibit_root_dev_ino_without_use): Likewise.
5365         (sc_prohibit_openat_without_use): Likewise.
5366         (sc_prohibit_c_ctype_without_use): Likewise.
5367         (sc_prohibit_signal_without_use): Likewise.
5368         (sc_prohibit_intprops_without_use): Likewise.
5369
5370 2010-03-30  Eric Blake  <eblake@redhat.com>
5371
5372         maint: improve module indicators
5373         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
5374         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
5375         columns, and avoid extra macro expansion.
5376
5377         fdopendir: work around FreeBSD bug
5378         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
5379         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
5380         * modules/dirent (Makefile.am): Substitute it.
5381         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
5382         declaration.
5383         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
5384         fix.
5385         Reported by Christian Weisgerber <naddy@mips.inka.de>.
5386
5387 2010-03-29  Bruno Haible  <bruno@clisp.org>
5388
5389         Emit #pragma system_header after the inclusion guard, not before.
5390         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
5391         guard that spans the entire file, not before. This enables an
5392         optimization in GCC's preprocessor.
5393         * lib/ctype.in.h: Likewise.
5394         * lib/dirent.in.h: Likewise.
5395         * lib/errno.in.h: Likewise.
5396         * lib/float.in.h: Likewise.
5397         * lib/getopt.in.h: Likewise.
5398         * lib/iconv.in.h: Likewise.
5399         * lib/langinfo.in.h: Likewise.
5400         * lib/locale.in.h: Likewise.
5401         * lib/math.in.h: Likewise.
5402         * lib/netdb.in.h: Likewise.
5403         * lib/netinet_in.in.h: Likewise.
5404         * lib/pty.in.h: Likewise.
5405         * lib/sched.in.h: Likewise.
5406         * lib/se-selinux.in.h: Likewise.
5407         * lib/search.in.h: Likewise.
5408         * lib/spawn.in.h: Likewise.
5409         * lib/stdarg.in.h: Likewise.
5410         * lib/stdint.in.h: Likewise.
5411         * lib/string.in.h: Likewise.
5412         * lib/strings.in.h: Likewise.
5413         * lib/sys_file.in.h: Likewise.
5414         * lib/sys_ioctl.in.h: Likewise.
5415         * lib/sys_time.in.h: Likewise.
5416         * lib/sys_times.in.h: Likewise.
5417         * lib/sys_utsname.in.h: Likewise.
5418         * lib/sys_wait.in.h: Likewise.
5419         * lib/sysexits.in.h: Likewise.
5420         * lib/wctype.in.h: Likewise.
5421
5422 2010-03-28  James Youngman  <jay@gnu.org>
5423
5424         save-cwd: don't leak a file descriptor when the caller execs.
5425         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
5426         saved file descriptor.
5427         * modules/save-cwd (Depends-on): Depend on cloexec.
5428
5429 2010-03-29  Bruno Haible  <bruno@clisp.org>
5430
5431         Remove vestiges of fts-lgpl module.
5432         * lib/fts_.h: Assume GNULIB_FTS is 1.
5433         * lib/fts.c: Likewise.
5434         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
5435
5436 2010-03-28  Bruno Haible  <bruno@clisp.org>
5437
5438         Fix definition of tests witness macro.
5439         * gnulib-tool (func_import): Fix definition of witness macro.
5440
5441 2010-03-28  Bruno Haible  <bruno@clisp.org>
5442
5443         Fix ioctl's protoype on glibc systems.
5444         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
5445         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
5446         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
5447         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
5448         signature. If not, arrange to replace the ioctl function.
5449         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
5450         REPLACE_IOCTL.
5451         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
5452         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
5453         Reported by Ludovic Courtès <ludo@gnu.org>.
5454
5455 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
5456
5457         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
5458         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
5459         made it so grep -r --include=GLOB* ... did not work.
5460
5461 2010-03-26  Jim Meyering  <meyering@redhat.com>
5462             Eric Blake  <eblake@redhat.com>
5463
5464         maint.mk: prohibit use of test's -o and -a operators
5465         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
5466
5467 2010-03-28  Bruno Haible  <bruno@clisp.org>
5468
5469         Remove unused GNULIB_XYZ macro definitions.
5470         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
5471         invocation.
5472
5473 2010-03-28  Bruno Haible  <bruno@clisp.org>
5474
5475         Mark privileged tests modules.
5476         * modules/idpriv-drop-tests (Status): New section.
5477         * modules/idpriv-droptemp-tests (Status): New section.
5478
5479 2010-03-28  Bruno Haible  <bruno@clisp.org>
5480
5481         Split C++ tests into separate tests modules.
5482         * modules/dirent-c++-tests: New file, extracted from
5483         modules/dirent-tests.
5484         * modules/dirent-tests: Depend on it.
5485         * modules/fcntl-h-c++-tests: New file, extracted from
5486         modules/fcntl-h-tests.
5487         * modules/fcntl-h-tests: Depend on it.
5488         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
5489         * modules/glob-tests: Depend on it.
5490         * modules/iconv-h-c++-tests: New file, extracted from
5491         modules/iconv-h-tests.
5492         * modules/iconv-h-tests: Depend on it.
5493         * modules/langinfo-c++-tests: New file, extracted from
5494         modules/langinfo-tests.
5495         * modules/langinfo-tests: Depend on it.
5496         * modules/locale-c++-tests: New file, extracted from
5497         modules/locale-tests.
5498         * modules/locale-tests: Depend on it.
5499         * modules/math-c++-tests: New file, extracted from modules/math-tests.
5500         * modules/math-tests: Depend on it.
5501         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
5502         * modules/pty-tests: Depend on it.
5503         * modules/search-c++-tests: New file, extracted from
5504         modules/search-tests.
5505         * modules/search-tests: Depend on it.
5506         * modules/signal-c++-tests: New file, extracted from
5507         modules/signal-tests.
5508         * modules/signal-tests: Depend on it.
5509         * modules/spawn-c++-tests: New file, extracted from
5510         modules/spawn-tests.
5511         * modules/spawn-tests: Depend on it.
5512         * modules/stdio-c++-tests: New file, extracted from
5513         modules/stdio-tests.
5514         * modules/stdio-tests: Depend on it.
5515         * modules/stdlib-c++-tests: New file, extracted from
5516         modules/stdlib-tests.
5517         * modules/stdlib-tests: Depend on it.
5518         * modules/string-c++-tests: New file, extracted from
5519         modules/string-tests.
5520         * modules/string-tests: Depend on it.
5521         * modules/sys_ioctl-c++-tests: New file, extracted from
5522         modules/sys_ioctl-tests.
5523         * modules/sys_ioctl-tests: Depend on it.
5524         * modules/sys_select-c++-tests: New file, extracted from
5525         modules/sys_select-tests.
5526         * modules/sys_select-tests: Depend on it.
5527         * modules/sys_socket-c++-tests: New file, extracted from
5528         modules/sys_socket-tests.
5529         * modules/sys_socket-tests: Depend on it.
5530         * modules/sys_stat-c++-tests: New file, extracted from
5531         modules/sys_stat-tests.
5532         * modules/sys_stat-tests: Depend on it.
5533         * modules/sys_time-c++-tests: New file, extracted from
5534         modules/sys_time-tests.
5535         * modules/sys_time-tests: Depend on it.
5536         * modules/time-c++-tests: New file, extracted from modules/time-tests.
5537         * modules/time-tests: Depend on it.
5538         * modules/unistd-c++-tests: New file, extracted from
5539         modules/unistd-tests.
5540         * modules/unistd-tests: Depend on it.
5541         * modules/wchar-c++-tests: New file, extracted from
5542         modules/wchar-tests.
5543         * modules/wchar-tests: Depend on it.
5544         * modules/wctype-c++-tests: New file, extracted from
5545         modules/wctype-tests.
5546         * modules/wctype-tests: Depend on it.
5547         Reported by Simon Josefsson.
5548
5549 2010-03-28  Bruno Haible  <bruno@clisp.org>
5550
5551         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
5552         * gnulib-tool (func_exists_module): New function, extracted from
5553         func_verify_module.
5554         (func_verify_module): Use it.
5555         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
5556         'foo' only if 'foo' exists.
5557         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
5558         module.
5559
5560 2010-03-28  Bruno Haible  <bruno@clisp.org>
5561
5562         gnulib-tool: Add support for special categories of tests.
5563         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
5564         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
5565         (func_usage): Document them.
5566         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
5567         inc_unportable_tests, inc_all_tests): New variables.
5568         (func_acceptable): Consider these variables.
5569         (func_modules_transitive_closure): Make it work when the 'Status' field
5570         consists of multiple words.
5571         (func_import): Store and restore the values of inc_cxx_tests,
5572         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
5573         inc_all_tests in gnulib-comp.m4.
5574         (func_create_testdir): Set inc_all_tests to true.
5575         * doc/gnulib.texi (Extra tests modules): New section.
5576         Suggested by Jim Meyering.
5577
5578 2010-03-28  Bruno Haible  <bruno@clisp.org>
5579
5580         ansi-c++-opt: Allow turning off the C++ build by default.
5581         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
5582         gl_CXX_CHOICE_DEFAULT_NO is defined.
5583         Requested by Eric Blake.
5584
5585 2010-03-28  Bruno Haible  <bruno@clisp.org>
5586
5587         unistd: Avoid #define replacements in C++ mode.
5588         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
5589         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
5590         setsockopt, shutdown, select): In C++, attach a warning to the function
5591         if possible, rather than #defining the symbol to a dysfunctional alias.
5592         Reported by John W. Eaton <jwe@gnu.org>.
5593
5594 2010-03-28  Bruno Haible  <bruno@clisp.org>
5595
5596         Fix link errors on mingw.
5597         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
5598         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
5599         $(LIBSOCKET).
5600         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
5601         $(LIBSOCKET).
5602
5603 2010-03-28  Bruno Haible  <bruno@clisp.org>
5604             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5605
5606         lib-ignore: Determine different options for different compilers.
5607         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
5608         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
5609         Add comments.
5610         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
5611         * NEWS: Mention the change.
5612
5613 2010-03-27  Bruno Haible  <bruno@clisp.org>
5614
5615         Remove unused GNULIB_XYZ macro definitions.
5616         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
5617         * modules/fseek (configure.ac): Likewise.
5618         * modules/ioctl (configure.ac): Likewise.
5619         * modules/open (configure.ac): Likewise.
5620         * modules/stdlib-safer (configure.ac): Likewise.
5621
5622 2010-03-27  Bruno Haible  <bruno@clisp.org>
5623
5624         Add a remark about certain modules.
5625         * modules/malloc (Comment): New section.
5626         * modules/realloc (Comment): Likewise.
5627         * modules/sigpipe (Comment): Likewise.
5628
5629 2010-03-27  Bruno Haible  <bruno@clisp.org>
5630
5631         Resolve conflict between the two kinds of module indicators.
5632         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
5633         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
5634         * modules/canonicalize (configure.ac): Invoke
5635         gl_MODULE_INDICATOR_FOR_TESTS.
5636         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
5637         GNULIB_XYZ.
5638         * tests/test-dirent-c++.cc: Likewise.
5639         * tests/test-dirent-safer.c: Likewise.
5640         * tests/test-dup2.c: Likewise.
5641         * tests/test-fchdir.c: Likewise.
5642         * tests/test-fcntl-h-c++.cc: Likewise.
5643         * tests/test-getopt.c: Likewise.
5644         * tests/test-getopt.h: Likewise.
5645         * tests/test-langinfo-c++.cc: Likewise.
5646         * tests/test-locale-c++.cc: Likewise.
5647         * tests/test-math-c++.cc: Likewise.
5648         * tests/test-pty-c++.cc: Likewise.
5649         * tests/test-search-c++.cc: Likewise.
5650         * tests/test-signal-c++.cc: Likewise.
5651         * tests/test-spawn-c++.cc: Likewise.
5652         * tests/test-stdio-c++.cc: Likewise.
5653         * tests/test-stdlib-c++.cc: Likewise.
5654         * tests/test-string-c++.cc: Likewise.
5655         * tests/test-sys_ioctl-c++.cc: Likewise.
5656         * tests/test-sys_select-c++.cc: Likewise.
5657         * tests/test-sys_socket-c++.cc: Likewise.
5658         * tests/test-sys_stat-c++.cc: Likewise.
5659         * tests/test-sys_time-c++.cc: Likewise.
5660         * tests/test-time-c++.cc: Likewise.
5661         * tests/test-unistd-c++.cc: Likewise.
5662         * tests/test-wchar-c++.cc: Likewise.
5663         * tests/uninorm/test-u8-nfc.c: Likewise.
5664         * tests/uninorm/test-u8-nfd.c: Likewise.
5665         * tests/uninorm/test-u8-nfkc.c: Likewise.
5666         * tests/uninorm/test-u8-nfkd.c: Likewise.
5667         * tests/uninorm/test-u16-nfc.c: Likewise.
5668         * tests/uninorm/test-u16-nfd.c: Likewise.
5669         * tests/uninorm/test-u16-nfkc.c: Likewise.
5670         * tests/uninorm/test-u16-nfkd.c: Likewise.
5671         * tests/uninorm/test-u32-nfc.c: Likewise.
5672         * tests/uninorm/test-u32-nfc-big.c: Likewise.
5673         * tests/uninorm/test-u32-nfd.c: Likewise.
5674         * tests/uninorm/test-u32-nfd-big.c: Likewise.
5675         * tests/uninorm/test-u32-nfkc.c: Likewise.
5676         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
5677         * tests/uninorm/test-u32-nfkd.c: Likewise.
5678         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
5679         * tests/uninorm/test-u32-normalize-big.c: Likewise.
5680
5681 2010-03-27  Bruno Haible  <bruno@clisp.org>
5682
5683         Distinguish two kinds of module indicators.
5684         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
5685         gl_MODULE_INDICATOR.
5686         (gl_MODULE_INDICATOR): New macro.
5687         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
5688         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
5689         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
5690         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
5691         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
5692         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
5693         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
5694         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
5695         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
5696         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
5697         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
5698         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
5699         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
5700         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
5701         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
5702         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
5703         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
5704         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
5705         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
5706         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
5707         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
5708         * modules/cloexec (configure.ac): Likewise.
5709         * modules/getopt-gnu (configure.ac): Likewise.
5710         * modules/uninorm/u8-normalize (configure.ac): Likewise.
5711         * modules/uninorm/u16-normalize (configure.ac): Likewise.
5712         * modules/uninorm/u32-normalize (configure.ac): Likewise.
5713         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
5714
5715 2010-03-27  Bruno Haible  <bruno@clisp.org>
5716
5717         New module description field 'Comment'.
5718         * gnulib-tool: New option --extract-comment.
5719         (func_usage): Document it.
5720         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
5721         (func_get_comment): New function.
5722         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
5723
5724 2010-03-27  Bruno Haible  <bruno@clisp.org>
5725
5726         Addendum to 2010-02-07 commit.
5727         * gnulib-tool (func_usage): Document --extract-applicability option.
5728
5729 2010-03-27  Bruno Haible  <bruno@clisp.org>
5730
5731         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
5732         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
5733         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
5734         rather than link errors.
5735
5736 2010-03-27  Bruno Haible  <bruno@clisp.org>
5737
5738         Avoid side effects from tests-related modules on the compilation of lib.
5739         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
5740         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
5741         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
5742         parameter. Emit into AM_CPPFLAGS a definition of the designated C
5743         macro.
5744         (func_import): Define a witness macro. Assign it a value that depends
5745         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
5746         tests-related modules.
5747         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
5748         Reported by Jim Meyering.
5749
5750 2010-03-27  Bruno Haible  <bruno@clisp.org>
5751
5752         Factorize common .m4 code.
5753         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
5754         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
5755         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
5756         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
5757         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
5758         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
5759         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
5760         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
5761         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
5762         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
5763         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
5764         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
5765         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
5766         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
5767         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
5768         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
5769         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
5770         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
5771         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
5772         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
5773         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
5774         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
5775         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
5776         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
5777         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
5778         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
5779         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
5780         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
5781         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
5782         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
5783         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
5784         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
5785
5786 2010-03-27  Bruno Haible  <bruno@clisp.org>
5787
5788         Fix a compilation error on Cygwin with g++ >= 4.3.
5789         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
5790         if it is undefined or if we alias it to chmod.
5791         (lstat): Don't warn about the use of this function if it is undefined
5792         or if we alias it to stat.
5793         Reported by Simon Josefsson.
5794
5795 2010-03-27  Bruno Haible  <bruno@clisp.org>
5796
5797         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
5798         * modules/getlogin (configure.ac): Update.
5799
5800         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
5801         * modules/getlogin_r (configure.ac): Update.
5802
5803         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
5804         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
5805         * modules/inet_ntop (configure.ac): Update.
5806
5807         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
5808         * modules/inet_pton (configure.ac): Update.
5809
5810         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
5811         * modules/mbslen (configure.ac): Update.
5812
5813         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
5814         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
5815         * modules/forkpty (configure.ac): Update.
5816         * modules/openpty (configure.ac): Update.
5817
5818 2010-03-26  Simon Josefsson  <simon@josefsson.org>
5819
5820         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
5821         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
5822
5823 2010-03-25  Eric Blake  <eblake@redhat.com>
5824
5825         maint: use pragma consistently across replacement headers
5826         * lib/ctype.in.h (system_header): Hoist for consistent placement.
5827         * lib/dirent.in.h (system_header): Likewise.
5828         * lib/errno.in.h (system_header): Likewise.
5829         * lib/float.in.h (system_header): Likewise.
5830         * lib/getopt.in.h (system_header): Likewise.
5831         * lib/iconv.in.h (system_header): Likewise.
5832         * lib/inttypes.in.h (system_header): Likewise.
5833         * lib/langinfo.in.h (system_header): Likewise.
5834         * lib/locale.in.h (system_header): Likewise.
5835         * lib/math.in.h (system_header): Likewise.
5836         * lib/netdb.in.h (system_header): Likewise.
5837         * lib/netinet_in.in.h (system_header): Likewise.
5838         * lib/pty.in.h (system_header): Likewise.
5839         * lib/sched.in.h (system_header): Likewise.
5840         * lib/se-selinux.in.h (system_header): Likewise.
5841         * lib/search.in.h (system_header): Likewise.
5842         * lib/spawn.in.h (system_header): Likewise.
5843         * lib/stdarg.in.h (system_header): Likewise.
5844         * lib/stdint.in.h (system_header): Likewise.
5845         * lib/string.in.h (system_header): Likewise.
5846         * lib/strings.in.h (system_header): Likewise.
5847         * lib/sys_file.in.h (system_header): Likewise.
5848         * lib/sys_ioctl.in.h (system_header): Likewise.
5849         * lib/sys_socket.in.h (system_header): Likewise.
5850         * lib/sys_times.in.h (system_header): Likewise.
5851         * lib/sys_utsname.in.h (system_header): Likewise.
5852         * lib/sys_wait.in.h (system_header): Likewise.
5853         * lib/sysexits.in.h (system_header): Likewise.
5854         * lib/unistd.in.h (system_header): Likewise.
5855         * lib/wctype.in.h (system_header): Likewise.
5856
5857         arpa/inet: fix mingw compilation warning
5858         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
5859         Reported by Matthew Bolte.
5860
5861 2010-03-25  Bruno Haible  <bruno@clisp.org>
5862
5863         Avoid collision between gnulib wrapper and libintl wrapper.
5864         * lib/printf.c (printf): Don't define if a printf wrapper is already
5865         defined in intl/printf.c.
5866         Reported by Michel Boaventura <michel@michelboaventura.com>.
5867
5868 2010-03-25  Bruno Haible  <bruno@clisp.org>
5869
5870         Use ANSI C.
5871         * lib/readutmp.h (getutent): Provide ANSI C prototype.
5872
5873 2010-03-25  Bruno Haible  <bruno@clisp.org>
5874
5875         Minor formatting changes.
5876         * lib/acosl.c: Insert space before function argument list.
5877         * lib/argz.c: Likewise.
5878         * lib/asinl.c: Likewise.
5879         * lib/expl.c: Likewise.
5880         * lib/gen-uni-tables.c: Likewise.
5881         * lib/gettext.h: Likewise.
5882         * lib/glthread/lock.h: Likewise.
5883         * lib/tanl.c: Likewise.
5884         * lib/uniname/uniname.c: Likewise.
5885         * tests/test-idpriv-drop.c: Likewise.
5886         * tests/test-idpriv-droptemp.c: Likewise.
5887         * tests/test-lock.c: Likewise.
5888         * tests/test-tls.c: Likewise.
5889         * lib/argp-help.c: Insert space before function-like macro argument
5890         list.
5891         * lib/memcmp.c: Likewise.
5892         * tests/test-base64.c: Likewise.
5893         * lib/localename.c: Insert space before sizeof's argument list.
5894         * lib/safe-alloc.h: Likewise.
5895         * lib/file-set.h: Insert space before macro argument list.
5896         * tests/test-argp.c: Likewise.
5897         * lib/argp-namefrob.h: Insert space before function parameter list.
5898         * lib/getaddrinfo.c: Likewise.
5899         * lib/netdb.in.h: Likewise.
5900         * lib/parse-duration.h: Likewise.
5901         * lib/parse-duration.c: Likewise.
5902         * lib/poll.c: Likewise.
5903         * lib/select.c: Likewise.
5904         * lib/trim.h: Likewise.
5905         * tests/test-usleep.c: Likewise.
5906         * lib/ldexpl.c: Insert space before function parameter list and before
5907         function argument list.
5908         * lib/logl.c: Likewise.
5909         * lib/sqrtl.c: Likewise.
5910         * lib/trim.c: Likewise.
5911         * lib/cosl.c: Use GNU style indentation. Insert space before function
5912         argument list.
5913         * lib/sinl.c: Likewise.
5914         * lib/tsearch.c: Insert space after 'for'.
5915         Reported by Jim Meyering.
5916
5917 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
5918
5919         * maint.mk (sc_Wundef_boolean): Check for the presence of the
5920         config header before grepping, as it's not present before
5921         autoreconf/configure are run.  Reported by Simon Josefsson.
5922
5923 2010-03-23  Bruno Haible  <bruno@clisp.org>
5924
5925         pt_chown: Make it work with automake < 1.11.
5926         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
5927         Reported by Simon Josefsson.
5928
5929 2010-03-23  Bruno Haible  <bruno@clisp.org>
5930
5931         pt_chown: Don't depend on GPLed modules.
5932         * lib/pt_chown.c: Don't include idpriv.h.
5933         (main): Don't drop privileges.
5934         * modules/pt_chown (Depends-on): Remove idpriv-drop.
5935         Reported by Simon Josefsson.
5936
5937 2010-03-24  Simon Josefsson  <simon@josefsson.org>
5938
5939         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
5940         suggestions from karl@freefriends.org (Karl Berry).
5941
5942 2010-03-22  Eric Blake  <eblake@redhat.com>
5943
5944         gethostname: further tweaks
5945         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
5946         are overriding gethostname.
5947         Suggested by Bruno Haible.
5948
5949 2010-03-21  Bruno Haible  <bruno@clisp.org>
5950
5951         Fix comments.
5952         * lib/forkpty.c (rpl_forkpty): Fix comment.
5953         * lib/openpty.c (rpl_openpty): Likewise.
5954         Reported by Eric Blake.
5955
5956 2010-03-22  Eric Blake  <eblake@redhat.com>
5957
5958         gethostname: fix build on mingw
5959         * lib/unistd.in.h (includes): Work around fact that mingw
5960         <winsock2.h> re-includes <unistd.h>, by avoiding any
5961         redeclarations if we are being included by <winsock2.h>.
5962         Reported by Matthias Bolte.
5963
5964 2010-03-21  Bruno Haible  <bruno@clisp.org>
5965
5966         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
5967         * lib/forkpty.c (forkpty): New replacement function, from glibc with
5968         modifications.
5969         * lib/pty.in.h (forkpty): Update declaration. Add comments.
5970         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
5971         provide the replacement.
5972         * modules/forkpty (Depends-on): Add openpty, login_tty.
5973         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
5974         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
5975         * doc/glibc-functions/forkpty.texi: More supported platforms.
5976         * config/srclist.txt: Add forkpty.c (commented).
5977
5978 2010-03-21  Bruno Haible  <bruno@clisp.org>
5979
5980         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
5981         (Makefile.am): Verify that PTY_LIB is defined.
5982
5983         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
5984
5985 2010-03-21  Bruno Haible  <bruno@clisp.org>
5986
5987         Tests for module 'login_tty'.
5988         * modules/login_tty-tests: New file.
5989         * tests/test-login_tty.c: New file.
5990
5991         New module 'login_tty'.
5992         * lib/login_tty.c: New file.
5993         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
5994         * modules/login_tty: New file.
5995         * doc/glibc-functions/login_tty.texi: Mention the new module.
5996
5997 2010-03-21  Bruno Haible  <bruno@clisp.org>
5998
5999         login_tty: Documentation.
6000         * doc/glibc-functions/login_tty.texi: New file.
6001         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
6002
6003 2010-03-21  Bruno Haible  <bruno@clisp.org>
6004
6005         pty: Consistent macro naming.
6006         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
6007         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
6008         * modules/pty (configure.ac): Update.
6009
6010 2010-03-21  Bruno Haible  <bruno@clisp.org>
6011
6012         Tests for openpty: Make stricter.
6013         * tests/test-openpty.c (main): Add test of canonical processing and
6014         erase.
6015         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
6016
6017         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
6018         * lib/openpty.c (openpty): New replacement function.
6019         * lib/pty.in.h: Include <termios.h>.
6020         (openpty): Update declaration. Add comments.
6021         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
6022         is not declared, arrange to provide the replacement. Check for _getpty
6023         and posix_openpt.
6024         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
6025         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
6026         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
6027         * modules/pty-tests (test_pty_c___LDADD): New variable.
6028         * doc/glibc-functions/openpty.texi: More supported platforms.
6029
6030 2010-03-21  Bruno Haible  <bruno@clisp.org>
6031
6032         setenv: Tweaks.
6033         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
6034         the test program.
6035         * doc/posix-functions/setenv.texi: Update platforms list.
6036
6037 2010-03-21  Bruno Haible  <bruno@clisp.org>
6038
6039         New module 'unlockpt'.
6040         * lib/unlockpt.c: New file, from glibc with modifications.
6041         * m4/unlockpt.m4: New file.
6042         * modules/unlockpt: New file.
6043         * lib/stdlib.in.h (unlockpt): New declaration.
6044         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
6045         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
6046         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
6047         HAVE_UNLOCKPT.
6048         * doc/posix-functions/unlockpt.texi: Mention the new module.
6049         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
6050         * config/srclist.txt: Add unlockpt.c (commented).
6051
6052 2010-03-21  Jim Meyering  <meyering@redhat.com>
6053
6054         maint.mk: prohibit inclusion of "intprops.h" without use
6055         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
6056
6057 2010-03-21  Bruno Haible  <bruno@clisp.org>
6058
6059         New module 'grantpt'.
6060         * lib/grantpt.c: New file, from glibc with modifications.
6061         * m4/grantpt.m4: New file.
6062         * modules/grantpt: New file.
6063         * lib/stdlib.in.h (grantpt): New declaration.
6064         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
6065         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
6066         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
6067         HAVE_GRANTPT.
6068         * doc/posix-functions/grantpt.texi: Mention the new module.
6069         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
6070         * config/srclist.txt: Add grantpt.c (commented).
6071
6072 2010-03-21  Bruno Haible  <bruno@clisp.org>
6073
6074         New module 'pt_chown'.
6075         * lib/pt_chown.c: New file, from glibc with modifications.
6076         * lib/pty-private.h: New file, from glibc with modifications.
6077         * modules/pt_chown: New file.
6078         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
6079
6080 2010-03-21  Bruno Haible  <bruno@clisp.org>
6081
6082         Tests for module 'ptsname'.
6083         * modules/ptsname-tests: New file.
6084         * tests/test-ptsname.c: New file.
6085
6086         New module 'ptsname'.
6087         * lib/ptsname.c: New file, from glibc with modifications.
6088         * m4/ptsname.m4: New file.
6089         * modules/ptsname: New file.
6090         * lib/stdlib.in.h (ptsname): New declaration.
6091         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
6092         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
6093         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
6094         HAVE_PTSNAME.
6095         * doc/posix-functions/ptsname.texi: Mention the new module.
6096         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
6097         * config/srclist.txt: Add ptsname.c (commented).
6098
6099 2010-03-21  Bruno Haible  <bruno@clisp.org>
6100
6101         Tests for module 'ttyname_r'.
6102         * modules/ttyname_r-tests: New file.
6103         * tests/test-ttyname_r.c: New file.
6104
6105         New module 'ttyname_r'.
6106         * lib/ttyname_r.c: New file.
6107         * m4/ttyname_r.m4: New file.
6108         * modules/ttyname_r: New file.
6109         * lib/unistd.in.h (ttyname_r): New declaration.
6110         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
6111         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
6112         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
6113         HAVE_TTYNAME_R.
6114         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
6115         * doc/posix-functions/ttyname_r.texi: Mention the new module.
6116
6117 2010-03-20  Bruno Haible  <bruno@clisp.org>
6118
6119         signal: Undefine macro definitions in C++ mode.
6120         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
6121         sigfillset): Undefine macro definitions from the system header in C++
6122         mode.
6123         Reported by John W. Eaton <jwe@gnu.org>.
6124
6125 2010-03-20  Bruno Haible  <bruno@clisp.org>
6126
6127         Ensure no #include statements inside extern "C" { ... }.
6128         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
6129         contain #include statements.
6130         * lib/time.in.h: Likewise.
6131
6132 2010-03-20  Bruno Haible  <bruno@clisp.org>
6133
6134         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
6135         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
6136         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
6137         Reported by John W. Eaton <jwe@gnu.org>.
6138
6139 2010-03-20  Bruno Haible  <bruno@clisp.org>
6140
6141         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
6142         Reported by Jim Meyering.
6143
6144 2010-03-20  Bruno Haible  <bruno@clisp.org>
6145
6146         pipe: Set errno upon failure.
6147         * lib/pipe.h: Specify that when -1 is returned, errno is set.
6148         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
6149         errno value in error message.
6150
6151 2010-03-20  Bruno Haible  <bruno@clisp.org>
6152             Jim Meyering  <meyering@redhat.com>
6153
6154         lchown: Avoid "unused variable" warning.
6155         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
6156
6157 2010-03-20  Bruno Haible  <bruno@clisp.org>
6158
6159         Work around unlink() bug on MacOS X 10.5.6.
6160         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
6161         attempting to unlink a parent directory.
6162         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
6163         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
6164         activate for the replacement function.
6165         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
6166
6167 2010-03-20  Bruno Haible  <bruno@clisp.org>
6168
6169         Fix link errors on Solaris 8.
6170         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
6171         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
6172
6173 2010-03-19  Jim Meyering  <meyering@redhat.com>
6174
6175         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
6176         The _LIBC implementation of build_range_exp correctly honors the
6177         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
6178         However, the non-_LIBC implementation would ignore that syntax-bit
6179         flag and return REG_ERANGE unconditionally.
6180         This change makes it honor that flag.
6181         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
6182         Make two pointer parameters "const".
6183         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
6184         (parse_bracket_exp): Update caller.
6185
6186         regex.m4: correct the reversed range endpoint ([b-a]) test
6187         * m4/regex.m4: When requiring that [b-a] evoke failure,
6188         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
6189         test pass once again for x86-based systems.
6190
6191 2010-03-19  Bruno Haible  <bruno@clisp.org>
6192
6193         scandir: Fix link error on Solaris 8.
6194         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
6195         macros.
6196
6197 2010-03-19  Bruno Haible  <bruno@clisp.org>
6198
6199         getusershell: Fix documentation.
6200         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
6201         module.
6202         * doc/glibc-functions/setusershell.texi: Likewise.
6203
6204         getusershell: Provide declaration, missing on Solaris 9.
6205         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
6206         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
6207         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
6208         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
6209         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6210         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
6211         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
6212         HAVE_GETUSERSHELL.
6213         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
6214
6215 2010-03-19  Bruno Haible  <bruno@clisp.org>
6216
6217         wctype: Provide iswblank function.
6218         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
6219         exists and is fine.
6220         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
6221         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
6222         * tests/test-wctype.c (main): Re-enable the iswblank tests.
6223         * doc/posix-functions/iswblank.texi: Update.
6224
6225 2010-03-19  Bruno Haible  <bruno@clisp.org>
6226
6227         Tests of module 'pty' in C++ mode.
6228         * modules/pty-tests: New file.
6229         * tests/test-pty-c++.cc: New file.
6230         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
6231
6232 2010-03-19  Eric Blake  <eblake@redhat.com>
6233
6234         logb: fix documentation
6235         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
6236         1.5 declaration bug.
6237
6238         forkpty, openpty: prefer glibc's const-safe prototype
6239         * lib/forkpty.c (rpl_forkpty): New file.
6240         * lib/openpty.c (rpl_openpty): Likewise.
6241         * modules/forkpty (Files): Distribute it.
6242         * modules/openpty (Files): Likewise.
6243         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
6244         check...
6245         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
6246         replacement for for non-const BSD signature.
6247         * modules/pty (Makefile.am): Substitute witnesses.
6248         * lib/pty.in.h (forkpty, openpty): Declare replacements.
6249         * tests/test-forkpty.c: Update signature check.
6250         * tests/test-openpty.c: Likewise.
6251         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
6252         * doc/glibc-functions/openpty.texi (openpty): Likewise.
6253
6254         forkpty, openpty: split functions into new modules
6255         * modules/pty (Makefile.am): Substitute new witnesses.
6256         (Libraries): Move library detection...
6257         * modules/forkpty: ...into new module.
6258         * modules/openpty: Another new module.
6259         * modules/pty-tests: Rename and split...
6260         * modules/forkpty-tests: ...to this...
6261         * modules/openpty-tests: ...and this.
6262         * tests/test-pty.c: Rename and split...
6263         * tests/test-forkpty.c: ...to this...
6264         * tests/test-openpty.c: ...and this.
6265         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
6266         (gl_PTY): Split library searching...
6267         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
6268         (gl_FORKPTY, gl_OPENPTY): New macros.
6269         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
6270         * NEWS: Mention the split.
6271         * MODULES.html.sh (Misc): Document the modules.
6272         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
6273         * doc/glibc-functions/openpty.texi (openpty): Likewise.
6274
6275         pty: improve replacement header
6276         * lib/pty.in.h: New file.
6277         * modules/pty (Files): Ship it.
6278         (Makefile.am): Always build replacement.
6279         * m4/pty.m4: Rename...
6280         * m4/pty_h.m4: ...to this.
6281         (gl_PTY): Modernize setting of witness macros; update check of
6282         forkpty to take proper advantage of cache.
6283         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
6284
6285         getopt: avoid compiler warning
6286         * lib/getopt.c (attribute_hidden): Remove unused macro.
6287
6288 2010-03-18  Bruno Haible  <bruno@clisp.org>
6289
6290         Fix link errors on Solaris 8.
6291         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
6292         * modules/search-tests (test_search_c___LDADD): Likewise.
6293         * modules/signal-tests (test_signal_c___LDADD): Likewise.
6294         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
6295         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
6296         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
6297         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
6298         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
6299         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
6300
6301 2010-03-18  Bruno Haible  <bruno@clisp.org>
6302
6303         Fix bug introduced on 2010-03-14.
6304         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
6305         (gl_SPAWN_H): Require it.
6306         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
6307         Reported by Simon Josefsson.
6308
6309 2010-03-18  Bruno Haible  <bruno@clisp.org>
6310
6311         Fix typo introduced on 2009-12-31.
6312         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
6313         posix_spawn_file_actions_adddup2.
6314
6315 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
6316         and Eric Blake  <eblake@redhat.com>
6317
6318         test-vc-list-files-git: make more robust
6319         * tests/test-vc-list-files-git.sh: Unset problematic environment
6320         variables.  Chain commands together.
6321
6322 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
6323
6324         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
6325         `AC_CHECK_DECL' invocation.
6326
6327 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
6328
6329         * lib/inttostr.c (inttostr): Make sure the invocation of verify
6330         appears before executable statements. Suggested by Petr Sumbera
6331         <Petr.Sumbera@Sun.COM>.
6332
6333 2010-03-14  Bruno Haible  <bruno@clisp.org>
6334
6335         * tests/test-flock.c (test_exclusive): Comment out a test that causes
6336         portability problems. Instead use a simpler test.
6337         (main): Check that invalid arguments are rejected only on Linux.
6338
6339 2010-03-14  Bruno Haible  <bruno@clisp.org>
6340
6341         Fix bug introduced on 2009-12-31.
6342         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
6343         gl_PREREQ_SYS_H_WINSOCK2 always.
6344         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
6345         SYS_SOCKET_H variable.
6346         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
6347         Update comments.
6348         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
6349         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
6350         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
6351         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6352         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
6353
6354 2010-03-14  Bruno Haible  <bruno@clisp.org>
6355
6356         Fix values returned by sinl, cosl.
6357         * lib/trigl.h: Add specification comments.
6358         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
6359         that combines the values from the precomputed table with the values of
6360         the Chebyshev polynomials.
6361
6362 2010-03-14  Bruno Haible  <bruno@clisp.org>
6363
6364         Fix compilation error when modules 'posix_spawn[p]' are not used.
6365         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
6366         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
6367
6368 2010-03-14  Bruno Haible  <bruno@clisp.org>
6369
6370         Fix compilation error on mingw when module 'time_r' is not used.
6371         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
6372         is 1.
6373         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
6374         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
6375         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
6376         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
6377
6378 2010-03-14  Bruno Haible  <bruno@clisp.org>
6379
6380         Fix compilation error with Sun C.
6381         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
6382         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
6383         instead of GCC specific ULONG_LONG_MAX.
6384         * lib/xstrtoll.c: Likewise.
6385         * lib/xstrtoull.c: Likewise.
6386
6387 2010-03-13  Bruno Haible  <bruno@clisp.org>
6388
6389         Allow the user to disable C++ code and tests.
6390         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
6391         (gl_PROG_ANSI_CXX): Require it.
6392
6393 2010-03-13  Bruno Haible  <bruno@clisp.org>
6394
6395         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
6396         cases.
6397
6398 2010-03-13  Bruno Haible  <bruno@clisp.org>
6399
6400         Test that gnulib does not break the standard C++ headers.
6401         * tests/test-locale-c++2.cc: New file.
6402         * modules/locale-tests (Files): Add it.
6403         (Makefile.am): Compile it for test-locale-c++.
6404         * tests/test-math-c++2.cc: New file.
6405         * modules/math-tests (Files): Add it.
6406         (Makefile.am): Compile it for test-math-c++.
6407         * tests/test-signal-c++2.cc: New file.
6408         * modules/signal-tests (Files): Add it.
6409         (Makefile.am): Compile it for test-signal-c++.
6410         * tests/test-stdio-c++2.cc: New file.
6411         * modules/stdio-tests (Files): Add it.
6412         (Makefile.am): Compile it for test-stdio-c++.
6413         * tests/test-stdlib-c++2.cc: New file.
6414         * modules/stdlib-tests (Files): Add it.
6415         (Makefile.am): Compile it for test-stdlib-c++.
6416         * tests/test-string-c++2.cc: New file.
6417         * modules/string-tests (Files): Add it.
6418         (Makefile.am): Compile it for test-string-c++.
6419         * tests/test-time-c++2.cc: New file.
6420         * modules/time-tests (Files): Add it.
6421         (Makefile.am): Compile it for test-time-c++.
6422         Reported by John W. Eaton <jwe@gnu.org>.
6423
6424 2010-03-13  Bruno Haible  <bruno@clisp.org>
6425
6426         * gnulib-tool (func_usage): Clarify which options are available for
6427         --create-testdir and --create-megatestdir.
6428
6429 2010-03-13  Bruno Haible  <bruno@clisp.org>
6430
6431         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
6432         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
6433         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
6434         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
6435         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
6436         when appropriate.
6437         Reported by Jim Meyering.
6438
6439 2010-03-12  Simon Josefsson  <simon@josefsson.org>
6440
6441         * gnulib-tool (func_import): Explain origin of code.
6442
6443 2010-03-12  Bruno Haible  <bruno@clisp.org>
6444
6445         Fix problem with automake's definition of CXXLINK.
6446         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
6447         Reported by Simon Josefsson and Ludovic Courtès.
6448
6449 2010-03-12  Bruno Haible  <bruno@clisp.org>
6450
6451         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
6452         stable releases.
6453
6454 2010-03-11  Bruno Haible  <bruno@clisp.org>
6455
6456         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
6457         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
6458         whether the system provides one variant or multiple variants of the
6459         function.
6460         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
6461         C++ compilers.
6462         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
6463         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
6464         Reported by Jim Meyering.
6465
6466 2010-03-09  Simon Josefsson  <simon@josefsson.org>
6467
6468         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
6469
6470 2010-03-08  Bruno Haible  <bruno@clisp.org>
6471
6472         gnulib-tool: Add support for --libtool in --create-testdir.
6473         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
6474         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
6475
6476 2010-03-08  Eric Blake  <eblake@redhat.com>
6477
6478         gnulib-tool.texi: mention possibility of git submodule
6479         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
6480         submodules.
6481         * doc/.gitignore: Ignore another generated file.
6482
6483 2010-03-08  Karl Berry  <karl@gnu.org>
6484
6485         * doc/gnulib-tool.texi (VCS Issues): Mention third option
6486         of committing gnulib files while skipping others.
6487
6488 2010-03-07  Bruno Haible  <bruno@clisp.org>
6489
6490         Tests of module 'wctype' in C++ mode.
6491         * tests/test-wctype-c++.cc: New file.
6492         * modules/wctype-tests (Files): Add it and tests/signature.h.
6493         (Depends-on): Add ansi-c++-opt.
6494         (Makefile.am): Arrange to compile and run test-wctype-c++.
6495
6496         Tests of module 'wchar' in C++ mode.
6497         * tests/test-wchar-c++.cc: New file.
6498         * modules/wchar-tests (Files): Add it and tests/signature.h.
6499         (Depends-on): Add ansi-c++-opt.
6500         (Makefile.am): Arrange to compile and run test-wchar-c++.
6501         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
6502         gl_MODULE_INDICATOR.
6503
6504         Tests of module 'unistd' in C++ mode.
6505         * tests/test-unistd-c++.cc: New file.
6506         * modules/unistd-tests (Files): Add it and tests/signature.h.
6507         (Depends-on): Add ansi-c++-opt.
6508         (Makefile.am): Arrange to compile and run test-unistd-c++.
6509         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
6510         gl_MODULE_INDICATOR.
6511
6512         Tests of module 'time' in C++ mode.
6513         * tests/test-time-c++.cc: New file.
6514         * modules/time-tests (Files): Add it and tests/signature.h.
6515         (Depends-on): Add ansi-c++-opt.
6516         (Makefile.am): Arrange to compile and run test-time-c++.
6517         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
6518
6519         Tests of module 'sys_time' in C++ mode.
6520         * tests/test-sys_time-c++.cc: New file.
6521         * modules/sys_time-tests (Files): Add it and tests/signature.h.
6522         (Depends-on): Add ansi-c++-opt.
6523         (Makefile.am): Arrange to compile and run test-sys_time-c++.
6524         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
6525         gl_MODULE_INDICATOR.
6526
6527         Tests of module 'sys_stat' in C++ mode.
6528         * tests/test-sys_stat-c++.cc: New file.
6529         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
6530         (Depends-on): Add ansi-c++-opt.
6531         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
6532         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
6533         gl_MODULE_INDICATOR.
6534
6535         Tests of module 'sys_socket' in C++ mode.
6536         * tests/test-sys_socket-c++.cc: New file.
6537         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
6538         (Depends-on): Add ansi-c++-opt.
6539         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
6540         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
6541         gl_MODULE_INDICATOR.
6542
6543         Tests of module 'sys_select' in C++ mode.
6544         * tests/test-sys_select-c++.cc: New file.
6545         * modules/sys_select-tests (Files): Add it and tests/signature.h.
6546         (Depends-on): Add ansi-c++-opt.
6547         (Makefile.am): Arrange to compile and run test-sys_select-c++.
6548         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
6549         gl_MODULE_INDICATOR.
6550
6551         Tests of module 'sys_ioctl' in C++ mode.
6552         * tests/test-sys_ioctl-c++.cc: New file.
6553         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
6554         (Depends-on): Add ansi-c++-opt.
6555         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
6556         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
6557         gl_MODULE_INDICATOR.
6558
6559         Tests of module 'string' in C++ mode.
6560         * tests/test-string-c++.cc: New file.
6561         * modules/string-tests (Files): Add it and tests/signature.h.
6562         (Depends-on): Add ansi-c++-opt.
6563         (Makefile.am): Arrange to compile and run test-string-c++.
6564         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
6565         gl_MODULE_INDICATOR.
6566
6567         Tests of module 'stdlib' in C++ mode.
6568         * tests/test-stdlib-c++.cc: New file.
6569         * modules/stdlib-tests (Files): Add it and tests/signature.h.
6570         (Depends-on): Add ansi-c++-opt.
6571         (Makefile.am): Arrange to compile and run test-stdlib-c++.
6572         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
6573         gl_MODULE_INDICATOR.
6574
6575         Tests of module 'stdio' in C++ mode.
6576         * tests/test-stdio-c++.cc: New file.
6577         * modules/stdio-tests (Files): Add it and tests/signature.h.
6578         (Depends-on): Add ansi-c++-opt.
6579         (Makefile.am): Arrange to compile and run test-stdio-c++.
6580         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
6581         gl_MODULE_INDICATOR.
6582
6583         Tests of module 'spawn' in C++ mode.
6584         * tests/test-spawn-c++.cc: New file.
6585         * modules/spawn-tests (Files): Add it and tests/signature.h.
6586         (Depends-on): Add ansi-c++-opt.
6587         (Makefile.am): Arrange to compile and run test-spawn-c++.
6588         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
6589         gl_MODULE_INDICATOR.
6590
6591         Tests of module 'signal' in C++ mode.
6592         * tests/test-signal-c++.cc: New file.
6593         * modules/signal-tests (Files): Add it and tests/signature.h.
6594         (Depends-on): Add ansi-c++-opt.
6595         (Makefile.am): Arrange to compile and run test-signal-c++.
6596         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
6597         gl_MODULE_INDICATOR.
6598
6599         Tests of module 'search' in C++ mode.
6600         * tests/test-search-c++.cc: New file.
6601         * modules/search-tests (Files): Add it and tests/signature.h.
6602         (Depends-on): Add ansi-c++-opt.
6603         (Makefile.am): Arrange to compile and run test-search-c++.
6604         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
6605         gl_MODULE_INDICATOR.
6606
6607         Tests of module 'math' in C++ mode.
6608         * tests/test-math-c++.cc: New file.
6609         * modules/math-tests (Files): Add it and tests/signature.h.
6610         (Depends-on): Add ansi-c++-opt.
6611         (Makefile.am): Arrange to compile and run test-math-c++.
6612         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
6613
6614         Tests of module 'locale' in C++ mode.
6615         * tests/test-locale-c++.cc: New file.
6616         * modules/locale-tests (Files): Add it and tests/signature.h.
6617         (Depends-on): Add ansi-c++-opt.
6618         (Makefile.am): Arrange to compile and run test-locale-c++.
6619         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
6620         gl_MODULE_INDICATOR.
6621
6622         Tests of module 'langinfo' in C++ mode.
6623         * tests/test-langinfo-c++.cc: New file.
6624         * modules/langinfo-tests (Files): Add it and tests/signature.h.
6625         (Depends-on): Add ansi-c++-opt.
6626         (Makefile.am): Arrange to compile and run test-langinfo-c++.
6627         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
6628         gl_MODULE_INDICATOR.
6629
6630         Tests of module 'iconv-h' in C++ mode.
6631         * tests/test-iconv-h-c++.cc: New file.
6632         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
6633         (Depends-on): Add ansi-c++-opt.
6634         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
6635
6636         Tests of module 'glob' in C++ mode.
6637         * tests/test-glob-c++.cc: New file.
6638         * modules/glob-tests (Files): Add it.
6639         (Depends-on): Add ansi-c++-opt.
6640         (Makefile.am): Arrange to compile and run test-glob-c++.
6641
6642         Tests of module 'fcntl-h' in C++ mode.
6643         * tests/test-fcntl-h-c++.cc: New file.
6644         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
6645         (Depends-on): Add ansi-c++-opt.
6646         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
6647         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
6648         gl_MODULE_INDICATOR.
6649
6650         Tests of module 'dirent' in C++ mode.
6651         * tests/test-dirent-c++.cc: New file.
6652         * modules/dirent-tests (Files): Add it and tests/signature.h.
6653         (Depends-on): Add ansi-c++-opt.
6654         (Makefile.am): Arrange to compile and run test-dirent-c++.
6655         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
6656         gl_MODULE_INDICATOR.
6657
6658         New module 'ansi-c++-opt'.
6659         * modules/ansi-c++-opt: New file.
6660         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
6661
6662         Document C++ namespace mode.
6663         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
6664
6665         wctype: Avoid #define replacements in C++ mode.
6666         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
6667         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
6668         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
6669         In C++, define a namespaced alias symbol.
6670         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
6671         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
6672         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
6673         rule.
6674
6675         wchar: Avoid #define replacements in C++ mode.
6676         * lib/wchar.in.h: Include c++defs.h.
6677         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
6678         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
6679         symbol.
6680         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
6681         * modules/wchar (Depends-on): Add c++defs.
6682         (Makefile.am): Update wchar.h rule.
6683
6684         unistd: Avoid #define replacements in C++ mode.
6685         * lib/unistd.in.h: Include c++defs.h.
6686         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
6687         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
6688         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
6689         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
6690         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
6691         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
6692         symbol.
6693         (environ): Update.
6694         * modules/unistd (Depends-on): Add c++defs.
6695         (Makefile.am): Update unistd.h rule.
6696
6697         time: Avoid #define replacements in C++ mode.
6698         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
6699         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
6700         define a namespaced alias symbol.
6701         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
6702         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
6703         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
6704         * modules/time (Depends-on): Add c++defs, warn-on-use.
6705         (Makefile.am): Update time.h rule.
6706         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
6707         * modules/nanosleep (configure.ac): Likewise.
6708         * modules/strptime (configure.ac): Likewise.
6709         * modules/timegm (configure.ac): Likewise.
6710
6711         sys_time: Avoid #define replacements in C++ mode.
6712         * lib/sys_time.in.h: Include c++defs.h.
6713         (gettimeofday): In C++, define a namespaced alias symbol.
6714         * modules/sys_time (Depends-on): Add c++defs.
6715         (Makefile.am): Update sys/time.h rule.
6716
6717         sys_stat: Avoid #define replacements in C++ mode.
6718         * lib/sys_stat.in.h: Include c++defs.h.
6719         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
6720         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
6721         namespaced alias symbol.
6722         In C++, define a namespaced alias symbol.
6723         * modules/sys_stat (Depends-on): Add c++defs.
6724         (Makefile.am): Update sys/stat.h rule.
6725
6726         sys_socket: Avoid #define replacements in C++ mode.
6727         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
6728         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
6729         definitions also when the system has a <sys/socket.h>.
6730         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
6731         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
6732         In C++, define a namespaced alias symbol.
6733         * modules/sys_socket (Depends-on): Add c++defs.
6734         (Makefile.am): Update sys/socket.h rule.
6735
6736         sys_select: Avoid #define replacements in C++ mode.
6737         * lib/sys_select.in.h: Include c++defs.h. Enable the function
6738         definitions also when the system has a <sys/select.h>.
6739         (select): In C++, define a namespaced alias symbol.
6740         * modules/sys_select (Depends-on): Add c++defs.
6741         (Makefile.am): Update sys/select.h rule.
6742
6743         sys_ioctl: Avoid #define replacements in C++ mode.
6744         * lib/sys_ioctl.in.h: Include c++defs.h.
6745         (ioctl): In C++, define a namespaced alias symbol.
6746         * modules/sys_ioctl (Depends-on): Add c++defs.
6747         (Makefile.am): Update sys/ioctl.h rule.
6748
6749         string: Avoid #define replacements in C++ mode.
6750         * lib/string.in.h: Include c++defs.h.
6751         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
6752         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
6753         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
6754         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
6755         strsignal, strverscmp): In C++, define a namespaced alias symbol.
6756         * modules/string (Depends-on): Add c++defs.
6757         (Makefile.am): Update string.h rule.
6758
6759         stdlib: Avoid #define replacements in C++ mode.
6760         * lib/stdlib.in.h: Include c++defs.h.
6761         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
6762         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
6763         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
6764         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
6765         symbol.
6766         * modules/stdlib (Depends-on): Add c++defs.
6767         (Makefile.am): Update stdlib.h rule.
6768
6769         stdio: Avoid #define replacements in C++ mode.
6770         * lib/stdio.in.h: Include c++defs.h.
6771         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
6772         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
6773         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
6774         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
6775         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
6776         namespaced alias symbol.
6777         * modules/stdio (Depends-on): Add c++defs.
6778         (Makefile.am): Update stdio.h rule.
6779
6780         spawn: Avoid #define replacements in C++ mode.
6781         * lib/spawn.in.h: Include c++defs.h.
6782         (posix_spawn, posix_spawnp, posix_spawnattr_init,
6783         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
6784         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
6785         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
6786         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
6787         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
6788         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
6789         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
6790         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
6791         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
6792         In C++, define a namespaced alias symbol.
6793         * modules/spawn (Depends-on): Add c++defs.
6794         (Makefile.am): Update spawn.h rule.
6795
6796         signal: Avoid #define replacements in C++ mode.
6797         * lib/signal.in.h: Include c++defs.h.
6798         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
6799         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
6800         namespaced alias symbol.
6801         * modules/signal (Depends-on): Add c++defs.
6802         (Makefile.am): Update signal.h rule.
6803
6804         search: Avoid #define replacements in C++ mode.
6805         * lib/search.in.h: Include c++defs.h.
6806         (_gl_search_compar_fn, _gl_search_action_fn): New types.
6807         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
6808         symbol.
6809         * modules/search (Depends-on): Add c++defs.
6810         (Makefile.am): Update search.h rule.
6811
6812         math: Avoid #define replacements in C++ mode.
6813         * lib/math.in.h: Include c++defs.h.
6814         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
6815         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
6816         trunc, truncl): In C++, define a namespaced alias symbol.
6817         * modules/math (Depends-on): Add c++defs.
6818         (Makefile.am): Update math.h rule.
6819
6820         locale: Avoid #define replacements in C++ mode.
6821         * lib/locale.in.h: Include c++defs.h.
6822         (duplocale): In C++, define a namespaced alias symbol.
6823         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
6824         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
6825         * modules/locale (Depends-on): Add c++defs.
6826         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
6827
6828         langinfo: Avoid #define replacements in C++ mode.
6829         * lib/langinfo.in.h: Include c++defs.h.
6830         (nl_langinfo): In C++, define a namespaced alias symbol.
6831         * modules/langinfo (Depends-on): Add c++defs.
6832         (Makefile.am): Update langinfo.h rule.
6833
6834         iconv-h: Avoid #define replacements in C++ mode.
6835         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
6836         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
6837         symbol.
6838         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
6839         whenever iconv is present.
6840         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
6841         (Makefile.am): Update iconv.h rule.
6842
6843         glob: Avoid #define replacements in C++ mode.
6844         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
6845         (_gl_glob_errfunc_fn): New type.
6846         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
6847         symbol.
6848         * modules/glob (Depends-on): Add c++defs, warn-on-use.
6849         (Makefile.am): Update glob.h rule.
6850
6851         fcntl-h: Avoid #define replacements in C++ mode.
6852         * lib/fcntl.in.h: Include c++defs.h.
6853         (fcntl, open, openat): In C++, define a namespaced alias symbol.
6854         * modules/fcntl-h (Depends-on): Add c++defs.
6855         (Makefile.am): Update fcntl.h rule.
6856
6857         dirent: Avoid #define replacements in C++ mode.
6858         * lib/dirent.in.h: Include c++defs.h.
6859         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
6860         namespaced alias symbol.
6861         (dirfd): Update declaration.
6862         * modules/dirent (Depends-on): Add c++defs.
6863         (Makefile.am): Update dirent.h rule.
6864
6865         ctype: Make it usable in C++ code.
6866         * lib/ctype.in.h: Include c++defs.h.
6867         (isblank): Declare as extern "C".
6868         * modules/ctype (Depends-on): Add c++defs.
6869         (Makefile.am): Update ctype.h rule.
6870
6871         New module 'c++defs'.
6872         * modules/c++defs: New file.
6873         * build-aux/c++defs.h: New file.
6874         Reported by John W. Eaton <jwe@gnu.org>.
6875
6876 2010-03-07  Bruno Haible  <bruno@clisp.org>
6877
6878         logb: Provide missing declaration for Cygwin.
6879         * lib/math.in.h (logb): New declaration.
6880         * m4/logb.m4: New file.
6881         * modules/logb (Files): Add m4/logb.m4.
6882         (Depends-on): Add math.
6883         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
6884         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
6885         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
6886         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
6887         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
6888
6889 2010-03-07  Bruno Haible  <bruno@clisp.org>
6890
6891         Fix test-cond link error.
6892         * tests/test-cond.c: Include <stdio.h>.
6893
6894 2010-03-07  Bruno Haible  <bruno@clisp.org>
6895
6896         Fix test-dirent-safer link error.
6897         * modules/dirent-safer-tests (Makefile.am): Define
6898         test_dirent_safer_LDADD.
6899
6900 2010-03-07  Bruno Haible  <bruno@clisp.org>
6901
6902         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
6903         among default module list.
6904
6905 2010-03-07  Bruno Haible  <bruno@clisp.org>
6906
6907         Fix link error on platforms with GNU libiconv.
6908         * modules/unistr/u8-strcoll-tests (Makefile): Define
6909         test_u8_strcoll_LDADD.
6910         * modules/unistr/u16-strcoll-tests (Makefile): Define
6911         test_u16_strcoll_LDADD.
6912         * modules/unistr/u32-strcoll-tests (Makefile): Define
6913         test_u32_strcoll_LDADD.
6914
6915 2010-03-07  Bruno Haible  <bruno@clisp.org>
6916
6917         Use POSIX declarations for socket functions.
6918         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
6919         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
6920         rpl_sendto): Change declaration to match POSIX.
6921         * lib/connect.c (rpl_connect): Likewise.
6922         * lib/accept.c (rpl_accept): Likewise.
6923         * lib/bind.c (rpl_bind): Likewise.
6924         * lib/getpeername.c (rpl_getpeername): Likewise.
6925         * lib/getsockname.c (rpl_getsockname): Likewise.
6926         * lib/recv.c (rpl_recv): Likewise.
6927         * lib/send.c (rpl_send): Likewise.
6928         * lib/recvfrom.c (rpl_recvfrom): Likewise.
6929         * lib/sendto.c (rpl_sendto): Likewise.
6930
6931 2010-03-06  Bruno Haible  <bruno@clisp.org>
6932
6933         Clarify access, euidaccess, faccessat.
6934         * doc/posix-functions/faccessat.texi: Mention security problem under
6935         "Other problems", not "Portability problems".
6936         * doc/posix-functions/access.texi: Likewise. Mention a related security
6937         problem.
6938         * doc/glibc-functions/euidaccess.texi: Mention security problems.
6939         * lib/euidaccess.c: Add comments about platforms.
6940         * lib/unistd.in.h (access, euidaccess): Add warnings.
6941
6942 2010-03-07  Bruno Haible  <bruno@clisp.org>
6943
6944         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
6945         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
6946         (POSIX_SPAWN_SETSCHEDULER): Likewise.
6947         (POSIX_SPAWN_USEVFORK): Define in a way that works when
6948         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
6949         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
6950         declare when POSIX_SPAWN_SETSCHEDULER is zero.
6951         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
6952         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
6953         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
6954         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
6955         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
6956         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
6957         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
6958         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
6959         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
6960         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
6961         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
6962         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
6963         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
6964         Likewise.
6965         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
6966         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
6967         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
6968         Likewise.
6969         * tests/test-spawn.c (main): Make it work when
6970         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
6971
6972 2010-03-07  Bruno Haible  <bruno@clisp.org>
6973
6974         Fix incorrect Makefile.am generation in German locale.
6975         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6976         Execute sed command with character range in C locale.
6977
6978 2010-03-06  Bruno Haible  <bruno@clisp.org>
6979
6980         Tests for module 'iconv-h'.
6981         * modules/iconv-h-tests: New file.
6982         * tests/test-iconv-h.c: New file.
6983
6984         New module 'iconv-h'.
6985         * modules/iconv-h: New file.
6986         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
6987         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
6988         (configure.ac): Remove gl_ICONV_H.
6989         (Makefile.am): Remove rule for iconv.h.
6990
6991 2010-03-06  Bruno Haible  <bruno@clisp.org>
6992
6993         More consistent naming of *.m4 files.
6994         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
6995         * modules/wctype (Files): Update.
6996
6997         More consistent naming of *.m4 files.
6998         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
6999         * modules/wchar (Files): Update.
7000
7001 2010-03-06  Jim Meyering  <meyering@redhat.com>
7002
7003         euidaccess: relax license to LGPLv2+
7004         * modules/euidaccess (License): Relax to LGPLv2+.
7005
7006 2010-03-06  Bruno Haible  <bruno@clisp.org>
7007
7008         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
7009         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
7010         (Makefile.am): Augment lib_SOURCES instead.
7011
7012 2010-03-04  Jim Meyering  <meyering@redhat.com>
7013
7014         utime: remove obsolete module
7015         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
7016         unnecessary for years, and has been marked as obsolete for 10 months.
7017         * modules/utime: Remove file.
7018         * lib/utime.c: Remove file.
7019         * m4/utime.m4: Remove file.
7020         * m4/utimes-null.m4: Remove file.
7021         * doc/posix-functions/utime.texi (utime): Remove reference to
7022         the module.  Move the sole "fixed by gnulib" item into the
7023         "problems not fixed by Gnulib" list.
7024         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
7025
7026 2010-03-05  Simon Josefsson  <simon@josefsson.org>
7027
7028         * modules/exit (License): Relax license to LGPLv2+.
7029         (Status): Mark as obsolete.
7030         * NEWS: Mention deprecated 'exit' module.
7031         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
7032         of now obsolete 'exit'.
7033
7034 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7035
7036         fts-lgpl: remove unused module
7037         * modules/fts-lgpl: Remove.
7038         * MODULES.html.sh (func_all_modules): Adjust.
7039         * check-module (find_included_lib_files): Adjust.
7040         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
7041
7042 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
7043
7044         copy-acl: enhance Solaris ACL error handling
7045         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
7046         * lib/set-mode-acl.c (qset_acl): Likewise.
7047
7048 2010-03-02  Bruno Haible  <bruno@clisp.org>
7049
7050         spawn: Don't override the system defined values on FreeBSD 8.
7051         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
7052         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
7053         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
7054         if HAVE_POSIX_SPAWN is 1.
7055         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
7056
7057 2010-03-01  Bruno Haible  <bruno@clisp.org>
7058
7059         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
7060         regarding Automake.
7061
7062 2010-02-25  Bruno Haible  <bruno@clisp.org>
7063
7064         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
7065         * gnulib-tool: Define 'echo' as a function only before the ksh alias
7066         setting, not afterwards.
7067         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
7068
7069 2010-02-24  Eric Blake  <eblake@redhat.com>
7070
7071         bootstrap, git-version-gen: use timestamp
7072         * build-aux/git-version-gen (scriptversion): Force UTC.
7073         * build-aux/bootstrap (scriptversion): New variable.
7074
7075         bootstrap: allow older git
7076         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
7077         older than 1.6.4.  Requested by the libvirt project.
7078
7079 2010-02-23  Eric Blake  <eblake@redhat.com>
7080
7081         warn-on-use: work with old autoconf
7082         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
7083         AS_VAR semantics of autoconf 2.60.
7084         Reported by Bruno Haible.
7085
7086         bootstrap: improve some comments
7087         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
7088         clarification comments.
7089
7090         gettimeofday: provide correct function
7091         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
7092         when replacement is declared, otherwise provide gettimeofday.
7093         Reported by Michael Goffioul.
7094
7095 2010-02-23  Jim Meyering  <meyering@redhat.com>
7096
7097         lib-ignore: relax license to "unlimited", not LGPLv2+
7098         * modules/lib-ignore (License): Relax to "unlimited".
7099
7100 2010-02-23  Jim Meyering  <meyering@redhat.com>
7101
7102         lib-ignore: relax license to LGPLv2+
7103         * modules/lib-ignore (License): Relax to LGPLv2+.
7104
7105 2010-02-22  Eric Blake  <eblake@redhat.com>
7106
7107         lseek: avoid bash 3.2 broken pipe bug
7108         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
7109         warning from bash 3.2.
7110         Reported by Ben Pfaff, with analysis from Bruno Haible.
7111
7112         bootstrap: support non-FSF copyright holder
7113         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
7114         bootstrap.conf override of COPYRIGHT_HOLDER.
7115         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
7116
7117         bootstrap: interoperate with gettext 0.14.1
7118         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
7119
7120         bootstrap: allow for alternate submodule location
7121         * build-aux/bootstrap (gnulib_path): New variable; use instead of
7122         hardcoding submodule location.
7123         (gnulib_mk): Allow direct use of Makefile.am.
7124
7125         bootstrap: use GNULIB_SRCDIR to reduce disk usage
7126         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
7127         rather than reconfiguring where the submodule points.
7128
7129         gettimeofday: restore support for platforms that lack function
7130         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
7131         replacement if function is missing.
7132         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
7133         * modules/sys_time (Makefile.am): Substitute it.
7134         * lib/sys_time.in.h (gettimeofday): Check it.
7135         Reported by Michael Goffioul.
7136
7137 2010-02-21  Bruno Haible  <bruno@clisp.org>
7138
7139         * lib/stdio.in.h (obstack_printf): Fix typo.
7140
7141 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
7142
7143         vc-list-files: use bzr ls's -R option
7144         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
7145         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
7146
7147 2010-02-21  Jim Meyering  <meyering@redhat.com>
7148
7149         init.sh: fix EXEEXT shims to work also for names like test-prog
7150         * tests/init.sh: Re-exec a better shell, when needed.
7151         If the current shell lacks support for posix $(...), an init.sh-using
7152         test will now try to find a shell that supports that.  If EXEEXT is
7153         nonempty, we also require support for hyphen-in-alias-name and shell
7154         substitutions like ${var#glob}.  Failure to find such a shell results
7155         in a skipped test.
7156
7157 2010-02-21  Bruno Haible  <bruno@clisp.org>
7158
7159         Really work around around "broken pipe" error message from bash 3.2.
7160         * gnulib-tool (func_reset_sigpipe): Remove function.
7161         (echo): In bash 3.2, define to a function that uses printf.
7162         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
7163
7164 2010-02-20  Bruno Haible  <bruno@clisp.org>
7165
7166         Restore support for automake 1.9.6 with autoconf 2.61.
7167         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
7168         Reported by James Youngman <jay@gnu.org>.
7169
7170 2010-02-20  Bruno Haible  <bruno@clisp.org>
7171
7172         Improve *printf warning condition.
7173         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
7174         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
7175         and the function is overridden due to SIGPIPE emulation.
7176
7177 2010-02-20  Bruno Haible  <bruno@clisp.org>
7178
7179         * lib/stdio.in.h: Tweak comments.
7180
7181 2010-02-19  Bruno Haible  <bruno@clisp.org>
7182
7183         Make it easier to find modules. New gnulib-tool option '--find'.
7184         * gnulib-tool: New option --find.
7185         (func_usage): Document it.
7186         (func_sanitize_modulelist): New function, extracted from
7187         func_all_modules.
7188         (func_all_modules): Invoke it.
7189         * doc/gnulib-tool.texi (Which modules?): New node.
7190
7191 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
7192
7193         * lib/sys_select.in.h: Provide select replacement even if
7194         sys/select.h exists on a system, for Interix.
7195
7196 2010-02-18  Jim Meyering  <meyering@redhat.com>
7197
7198         init.sh: don't use $(...) just yet
7199         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
7200         to accommodate e.g., Solaris' /bin/sh.
7201
7202 2010-02-17  Bruno Haible  <bruno@clisp.org>
7203
7204         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
7205         Reported by Ludovic Courtès <ludo@gnu.org>.
7206
7207 2010-02-16  Simon Josefsson  <simon@josefsson.org>
7208
7209         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
7210         linking with -lintl.
7211
7212 2010-02-17  Simon Josefsson  <simon@josefsson.org>
7213
7214         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
7215         if not provided by the system's netdb.h.  Reported by
7216         ludo@gnu.org (Ludovic Courtès).
7217
7218 2010-02-15  Jim Meyering  <meyering@redhat.com>
7219
7220         init.sh: improve portability and efficiency
7221         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
7222         "dummy" in a for loop.
7223         Use '!', not '^' to select the complement of a character set used
7224         in a "case" statement.
7225         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
7226         Suggestions from Eric Blake.
7227
7228         init.sh: automatically accommodate programs with the .exe suffix
7229         Automatically arrange for an invocation of "prog" to execute the
7230         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
7231         may use the simpler "prog", yet still work when built on a system
7232         that requires specifying the added suffix.
7233         Do this by constructing a function named "prog" that invokes
7234         "prog.exe" for each .exe file in selected directories.
7235         * tests/init.sh (find_exe_basenames_): New function.
7236         (create_exe_shim_functions_): New function.
7237         (path_prepend_): Use it.
7238
7239         maint.mk: mark syntax-check sc_*.m rules as .PHONY
7240         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
7241         "make -t syntax-check" doesn't create a ton of sc_*.m files.
7242
7243 2010-02-14  Jim Meyering  <meyering@redhat.com>
7244
7245         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
7246         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
7247         (sc_prohibit_hash_pjw_without_use): New rule.
7248
7249         maint.mk: allow the default upload destination dir to be overridden
7250         * top/maint.mk (upload_dest_dir_): Define with a default that
7251         preserves the status quo.
7252         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
7253         Reported by Peter Simons.
7254
7255         maint.mk: prohibit inclusion of "hash.h" without_use
7256         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
7257
7258 2010-02-10  Jim Meyering  <meyering@redhat.com>
7259
7260         maint.mk: prohibit inclusion of "ignore-value.h" without_use
7261         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
7262
7263 2010-02-09  Eric Blake  <ebb9@byu.net>
7264         and Bruno Haible  <bruno@clisp.org>
7265
7266         obstack-printf-posix: ensure declaration
7267         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
7268         extracted from gl_FUNC_OBSTACK_PRINTF.
7269         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
7270         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
7271         Likewise.
7272         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
7273         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
7274         0.
7275
7276 2010-02-08  Bruno Haible  <bruno@clisp.org>
7277
7278         gnulib-tool: Fix typo in 2010-02-07 commit.
7279         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
7280         Reported by Eric Blake.
7281
7282 2010-02-07  Bruno Haible  <bruno@clisp.org>
7283
7284         gnulib-tool: Fix up caching patches.
7285         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
7286         option --no-cache. Use associative arrays when supported by the shell.
7287         (sed_comments): New variable.
7288         (modcache): Renamed from do_cache.
7289         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
7290         abbreviate unnecessarily.
7291         (have_associative): New variable.
7292         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
7293         way also for ksh and zsh.
7294         (func_init_sed_convert_to_cache_statements): New function, extracted
7295         from func_cache_lookup_module. Add support for associative arrays.
7296         Don't set the c_MODULE_cached variable here. Ignore all lines before
7297         the first field header. Remove only the final newline, not all trailing
7298         newlines. Support empty fields correctly. Limit the use of 'eval' to
7299         assignments.
7300         (func_get_description, func_get_status, func_get_notice,
7301         func_get_applicability, func_get_filelist, func_get_dependencies,
7302         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
7303         func_get_automake_snippet, func_get_include_directive,
7304         func_get_link_directive, func_get_license, func_get_maintainer):
7305         Update documentation. List the unoptimized code first. Add support for
7306         associative arrays. Limit the use of 'eval' to assignments.
7307         (func_get_applicability): Undo stylistic pessimisations.
7308         (func_get_automake_snippet, func_get_include_directive): Reduce code
7309         duplication.
7310         (func_modules_transitive_closure, func_modules_add_dummy,
7311         func_modules_notice, func_modules_to_filelist, func_add_file,
7312         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
7313         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
7314         func_create_testdir, func_create_megatestdir): Update documentation.
7315
7316 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7317
7318         * gnulib-tool (func_cache_lookup_module): Store the module name
7319         belonging to the cache variable; error out if two different
7320         module names map to the same cache variable name.
7321
7322 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7323
7324         gnulib-tool: Make caching optional.
7325         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
7326         Update matching short versions of --no-changelog.
7327         (func_usage): Update.
7328         (sed_extract_cache_prog): Renamed from ...
7329         (sed_extract_prog): ... this; revert to old extraction script.
7330         (func_get_description, func_get_status)
7331         (func_get_notice, func_get_applicability, func_get_filelist)
7332         (func_get_dependencies, func_get_autoconf_early_snippet)
7333         (func_get_autoconf_snippet, func_get_automake_snippet)
7334         (func_get_include_directive, func_get_link_directive)
7335         (func_get_license, func_get_maintainer): If $do_cache is false,
7336         use old, non-caching extraction scripts.
7337         Suggestion by Bruno Haible.
7338
7339 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7340
7341         gnulib-tool: cache module metainformation.
7342         * gnulib-tool (sed_extract_prog): Match newline before each
7343         header, and rewrite header to a shell variable suffix.
7344         (func_cache_var, func_cache_lookup_module): New functions,
7345         to turn a module name into a cache variable prefix, and to
7346         look up and cache module metainformation.
7347         (func_get_description, func_get_status)
7348         (func_get_notice, func_get_applicability, func_get_filelist)
7349         (func_get_dependencies, func_get_autoconf_early_snippet)
7350         (func_get_autoconf_snippet, func_get_automake_snippet)
7351         (func_get_include_directive, func_get_link_directive)
7352         (func_get_license, func_get_maintainer): Use
7353         func_cache_lookup_module.
7354
7355 2010-02-07  Bruno Haible  <bruno@clisp.org>
7356
7357         fnctl: Fix missing dependency.
7358         * modules/fcntl (Depends-on): Add getdtablesize.
7359         Reported by John W. Eaton <jwe@gnu.org>.
7360
7361 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
7362
7363         Argp: fix recognition of short alias options.
7364
7365         * lib/argp-parse.c (convert_options): Fix improper use of
7366         `|' between character values.
7367         * tests/test-argp.c (group1_option): New alias option
7368         --read (-r).
7369         (group1_parser): Special handling for 'r'.
7370         (test15): New test case.
7371         (test_fun): Add test15.
7372         * tests/test-argp-2.sh: Update expected --help and --usage
7373         outputs.
7374
7375 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
7376
7377         * tests/test-argp.c: Fix indentation.
7378
7379 2010-02-04  Eric Blake  <ebb9@byu.net>
7380
7381         gettimeofday: expose type of second argument
7382         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
7383         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
7384         * tests/test-gettimeofday.c: Use it to silence warning.
7385         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
7386         the issue.
7387
7388 2010-02-03  Jim Meyering  <meyering@redhat.com>
7389
7390         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
7391         * lib/regcomp.c (TYPE_SIGNED): Define.
7392         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
7393
7394         regcomp.c: avoid a new -Wshadow warning
7395         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
7396
7397 2010-02-01  Jim Meyering  <meyering@redhat.com>
7398
7399         removing useless parentheses in cpp #define directives
7400         For motivation, see commit c0221df4, "define STREQ(a,b)
7401         consistently, removing useless parentheses"
7402         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
7403         * lib/mountlist.c (MNT_IGNORE): Likewise.
7404         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
7405
7406 2010-02-01  Eric Blake  <ebb9@byu.net>
7407
7408         sys_time: use link-warning
7409         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
7410         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
7411         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
7412         * modules/sys_time (Depends-on): Add warn-on-use.
7413         (Makefile.am): Always build replacement.
7414         (configure.ac): Update substitutions.
7415         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
7416         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
7417         bother with SYS_TIME_H.
7418         * modules/gettimeofday (configure.ac): Declare indicator.
7419         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
7420         in use.
7421
7422         closein-tests: silence compiler warning
7423         * tests/test-closein.c (main): Ignore fread result.
7424         * modules/closein-tests (Depends-on): Add ignore-value.
7425
7426         tests: silence warning about system return
7427         * tests/test-areadlink-with-size.c (main): Ignore system result.
7428         * tests/test-areadlink.c (main): Likewise.
7429         * tests/test-areadlinkat-with-size.c (main): Likewise.
7430         * tests/test-areadlinkat.c (main): Likewise.
7431         * tests/test-canonicalize-lgpl.c (main): Likewise.
7432         * tests/test-canonicalize.c (main): Likewise.
7433         * tests/test-chown.c (main): Likewise.
7434         * tests/test-fchownat.c (main): Likewise.
7435         * tests/test-fdutimensat.c (main): Likewise.
7436         * tests/test-fstatat.c (main): Likewise.
7437         * tests/test-futimens.c (main): Likewise.
7438         * tests/test-lchown.c (main): Likewise.
7439         * tests/test-link.c (main): Likewise.
7440         * tests/test-linkat.c (main): Likewise.
7441         * tests/test-lstat.c (main): Likewise.
7442         * tests/test-mkdir.c (main): Likewise.
7443         * tests/test-mkdirat.c (main): Likewise.
7444         * tests/test-mkfifo.c (main): Likewise.
7445         * tests/test-mkfifoat.c (main): Likewise.
7446         * tests/test-mknod.c (main): Likewise.
7447         * tests/test-readlink.c (main): Likewise.
7448         * tests/test-remove.c (main): Likewise.
7449         * tests/test-rename.c (main): Likewise.
7450         * tests/test-renameat.c (main): Likewise.
7451         * tests/test-rmdir.c (main): Likewise.
7452         * tests/test-symlink.c (main): Likewise.
7453         * tests/test-symlinkat.c (main): Likewise.
7454         * tests/test-unlink.c (main): Likewise.
7455         * tests/test-unlinkat.c (main): Likewise.
7456         * tests/test-utimens.c (main): Likewise.
7457         * tests/test-utimensat.c (main): Likewise.
7458         * modules/areadlink-tests (Depends-on): Add ignore-value.
7459         * modules/areadlink-with-size-tests (Depends-on): Likewise.
7460         * modules/areadlinkat-tests (Depends-on): Likewise.
7461         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
7462         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
7463         * modules/canonicalize-tests (Depends-on): Likewise.
7464         * modules/chown-tests (Depends-on): Likewise.
7465         * modules/fdutimensat-tests (Depends-on): Likewise.
7466         * modules/futimens-tests (Depends-on): Likewise.
7467         * modules/lchown-tests (Depends-on): Likewise.
7468         * modules/link-tests (Depends-on): Likewise.
7469         * modules/linkat-tests (Depends-on): Likewise.
7470         * modules/lstat-tests (Depends-on): Likewise.
7471         * modules/mkdir-tests (Depends-on): Likewise.
7472         * modules/mkfifo-tests (Depends-on): Likewise.
7473         * modules/mkfifoat-tests (Depends-on): Likewise.
7474         * modules/mknod-tests (Depends-on): Likewise.
7475         * modules/openat-tests (Depends-on): Likewise.
7476         * modules/readlink-tests (Depends-on): Likewise.
7477         * modules/remove-tests (Depends-on): Likewise.
7478         * modules/rename-tests (Depends-on): Likewise.
7479         * modules/renameat-tests (Depends-on): Likewise.
7480         * modules/rmdir-tests (Depends-on): Likewise.
7481         * modules/symlink-tests (Depends-on): Likewise.
7482         * modules/symlinkat-tests (Depends-on): Likewise.
7483         * modules/unlink-tests (Depends-on): Likewise.
7484         * modules/utimens-tests (Depends-on): Likewise.
7485         * modules/utimensat-tests (Depends-on): Likewise.
7486
7487 2010-01-31  Bruno Haible  <bruno@clisp.org>
7488
7489         Perform the same test for many <math.h> functions.
7490         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
7491         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
7492         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
7493         of gl_MATHFUNC.
7494         * modules/acos (configure.ac): Likewise.
7495         * modules/asin (configure.ac): Likewise.
7496         * modules/atan (configure.ac): Likewise.
7497         * modules/atan2 (configure.ac): Likewise.
7498         * modules/cbrt (configure.ac): Likewise.
7499         * modules/copysign (configure.ac): Likewise.
7500         * modules/cos (configure.ac): Likewise.
7501         * modules/cosh (configure.ac): Likewise.
7502         * modules/erf (configure.ac): Likewise.
7503         * modules/erfc (configure.ac): Likewise.
7504         * modules/exp (configure.ac): Likewise.
7505         * modules/fmod (configure.ac): Likewise.
7506         * modules/hypot (configure.ac): Likewise.
7507         * modules/j0 (configure.ac): Likewise.
7508         * modules/j1 (configure.ac): Likewise.
7509         * modules/jn (configure.ac): Likewise.
7510         * modules/lgamma (configure.ac): Likewise.
7511         * modules/log (configure.ac): Likewise.
7512         * modules/log10 (configure.ac): Likewise.
7513         * modules/log1p (configure.ac): Likewise.
7514         * modules/pow (configure.ac): Likewise.
7515         * modules/remainder (configure.ac): Likewise.
7516         * modules/sin (configure.ac): Likewise.
7517         * modules/sinh (configure.ac): Likewise.
7518         * modules/tan (configure.ac): Likewise.
7519         * modules/tanh (configure.ac): Likewise.
7520         * modules/y0 (configure.ac): Likewise.
7521         * modules/y1 (configure.ac): Likewise.
7522         * modules/yn (configure.ac): Likewise.
7523         Suggested by Paolo Bonzini.
7524
7525 2010-01-31  Bruno Haible  <bruno@clisp.org>
7526
7527         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
7528
7529 2010-01-31  Bruno Haible  <bruno@clisp.org>
7530
7531         Work around getdelim() bug on FreeBSD 8.0.
7532         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
7533         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
7534         not work.
7535         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
7536         is 1.
7537         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
7538         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
7539         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
7540         a non-zero size.
7541         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
7542
7543 2010-01-31  Bruno Haible  <bruno@clisp.org>
7544
7545         Work around getline() bug on FreeBSD 8.0.
7546         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
7547         and a non-zero size.
7548         * tests/test-getline.c (main): Likewise.
7549         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
7550         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
7551
7552 2010-01-28  Eric Blake  <ebb9@byu.net>
7553
7554         regex: fix build failure
7555         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
7556         platforms.
7557
7558 2010-01-28  Jim Meyering  <meyering@redhat.com>
7559
7560         regex: do not ignore memory allocation failure
7561         * lib/regex_internal.c (create_cd_newstate): Detect
7562         re_node_set_init_copy failure.   Extracted from glibc commit
7563         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
7564
7565         regex: sync more white-space changes from libc
7566         * lib/regex_internal.c: White-space only changes.
7567         * lib/regexec.c: Likewise.
7568
7569         regex: add many uses of __attribute_warn_unused_result__
7570         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
7571         * lib/regexec.c: Likewise.
7572         Extracted from a messy glibc commit.
7573
7574         regcomp.c: spelling and merge-artifact from glibc
7575         * lib/regcomp.c: Merge remainder of glibc's
7576         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
7577
7578         regcomp.c: sync white-space changes from glibc
7579         * lib/regcomp.c: Merge to accommodate white space
7580         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
7581
7582         regcomp.c: do not ignore internal return values
7583         * lib/regcomp.c: Do not ignore internal return values.
7584         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
7585         but without its white-space changes and spelling fixes.
7586
7587         regex_internal.h: define __attribute_warn_unused_result__
7588         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
7589
7590         maint: add a syntax-check rule to check for vulnerable Makefile.in
7591         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
7592
7593 2010-01-27  Jim Meyering  <meyering@redhat.com>
7594
7595         ncftpput-ftp: clean up spaces
7596         * build-aux/ncftpput-ftp: Make Copyright line consistent.
7597         Remove trailing blanks.
7598
7599 2010-01-27  Simon Josefsson  <simon@josefsson.org>
7600
7601         * build-aux/git-version-gen: Fix copyright statement.
7602         * build-aux/gnupload: Likewise.
7603         * tests/test-arcfour.c: Likewise.
7604         * tests/test-arctwo.c: Likewise.
7605         * tests/test-count-one-bits.c: Likewise.
7606         * tests/test-crc.c: Likewise.
7607         * tests/test-des.c: Likewise.
7608         * tests/test-gc-arcfour.c: Likewise.
7609         * tests/test-gc-arctwo.c: Likewise.
7610         * tests/test-gc-des.c: Likewise.
7611         * tests/test-gc-hmac-md5.c: Likewise.
7612         * tests/test-gc-hmac-sha1.c: Likewise.
7613         * tests/test-gc-md2.c: Likewise.
7614         * tests/test-gc-md4.c: Likewise.
7615         * tests/test-gc-md5.c: Likewise.
7616         * tests/test-gc-pbkdf2-sha1.c: Likewise.
7617         * tests/test-gc-rijndael.c: Likewise.
7618         * tests/test-gc-sha1.c: Likewise.
7619         * tests/test-gc.c: Likewise.
7620         * tests/test-gethostname.c: Likewise.
7621         * tests/test-gettimeofday.c: Likewise.
7622         * tests/test-hash.c: Likewise.
7623         * tests/test-hmac-md5.c: Likewise.
7624         * tests/test-hmac-sha1.c: Likewise.
7625         * tests/test-md2.c: Likewise.
7626         * tests/test-md4.c: Likewise.
7627         * tests/test-md5.c: Likewise.
7628         * tests/test-memchr.c: Likewise.
7629         * tests/test-memchr2.c: Likewise.
7630         * tests/test-memcmp.c: Likewise.
7631         * tests/test-memmem.c: Likewise.
7632         * tests/test-memrchr.c: Likewise.
7633         * tests/test-rawmemchr.c: Likewise.
7634         * tests/test-read-file.c: Likewise.
7635         * tests/test-rijndael.c: Likewise.
7636         * tests/test-sockets.c: Likewise.
7637         * tests/test-strchrnul.c: Likewise.
7638         * tests/test-strstr.c: Likewise.
7639         * tests/test-strtod.c: Likewise.
7640         * build-aux/ncftpput-ftp: Likewise.
7641
7642 2010-01-26  Eric Blake  <ebb9@byu.net>
7643
7644         ignore-value: update recommended header name
7645         * modules/ignore-value (Include): Only use <> for headers that
7646         exist in glibc.
7647
7648 2010-01-26  Jim Meyering  <meyering@redhat.com>
7649
7650         test-userspec.c: avoid compiler warnings
7651         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
7652         and "initialization discards qualifiers..." warnings.
7653         Put the first "uid" in its own scope, and make char* members "const".
7654
7655 2010-01-25  Bruno Haible  <bruno@clisp.org>
7656
7657         gnulib-tool: Make warning diagnostics consistent.
7658         * gnulib-tool (func_warning): New function.
7659         Use it everywhere where gnulib-tool produces output to stderr and it is
7660         not a fatal error.
7661
7662 2010-01-25  Bruno Haible  <bruno@clisp.org>
7663
7664         Fix test dependencies.
7665         * modules/xstrtol-tests (Depends-on): Add inttypes.
7666         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
7667
7668 2010-01-25 Pádraig Brady <P@draigBrady.com>
7669
7670         syntax-check: detect incorrect boolean macro values in config.h
7671         * modules/maintainer-makefile (configure.ac): Parameterize the location
7672         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
7673         The logic is from Eric Blake and the location indicated by Jim Meyering.
7674         Note the more natural CONFIG_HEADER name is prohibited by automake
7675         for backwards compatibility reasons.
7676         * top/maint.mk (sc_Wundef_boolean): New rule.
7677
7678 2010-01-25  Jim Meyering  <meyering@redhat.com>
7679
7680         bootstrap: detect MacOS 10.6's shasum, too
7681         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
7682         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
7683
7684 2010-01-23  Jim Meyering  <meyering@redhat.com>
7685
7686         xstrtoll: new module
7687         * modules/xstrtoll: New file.
7688         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
7689         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
7690         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
7691         ./configure fails if you use this module and lack "long long".
7692         * modules/xstrtoll-tests: New module.
7693         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
7694         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
7695         new init.sh-based test framework.
7696
7697 2010-01-24  Bruno Haible  <bruno@clisp.org>
7698
7699         Tests for module 'yn'.
7700         * modules/yn-tests: New file.
7701         * tests/test-yn.c: New file.
7702
7703         Tests for module 'y1'.
7704         * modules/y1-tests: New file.
7705         * tests/test-y1.c: New file.
7706
7707         Tests for module 'y0'.
7708         * modules/y0-tests: New file.
7709         * tests/test-y0.c: New file.
7710
7711         Tests for module 'tanh'.
7712         * modules/tanh-tests: New file.
7713         * tests/test-tanh.c: New file.
7714
7715         Tests for module 'tan'.
7716         * modules/tan-tests: New file.
7717         * tests/test-tan.c: New file.
7718
7719         Tests for module 'sqrt'.
7720         * modules/sqrt-tests: New file.
7721         * tests/test-sqrt.c: New file.
7722
7723         Tests for module 'sinh'.
7724         * modules/sinh-tests: New file.
7725         * tests/test-sinh.c: New file.
7726
7727         Tests for module 'sin'.
7728         * modules/sin-tests: New file.
7729         * tests/test-sin.c: New file.
7730
7731         Tests for module 'rint'.
7732         * modules/rint-tests: New file.
7733         * tests/test-rint.c: New file.
7734
7735         Tests for module 'remainder'.
7736         * modules/remainder-tests: New file.
7737         * tests/test-remainder.c: New file.
7738
7739         Tests for module 'pow'.
7740         * modules/pow-tests: New file.
7741         * tests/test-pow.c: New file.
7742
7743         Tests for module 'nextafter'.
7744         * modules/nextafter-tests: New file.
7745         * tests/test-nextafter.c: New file.
7746
7747         Tests for module 'modf'.
7748         * modules/modf-tests: New file.
7749         * tests/test-modf.c: New file.
7750
7751         Tests for module 'logb'.
7752         * modules/logb-tests: New file.
7753         * tests/test-logb.c: New file.
7754
7755         Tests for module 'log1p'.
7756         * modules/log1p-tests: New file.
7757         * tests/test-log1p.c: New file.
7758
7759         Tests for module 'log10'.
7760         * modules/log10-tests: New file.
7761         * tests/test-log10.c: New file.
7762
7763         Tests for module 'log'.
7764         * modules/log-tests: New file.
7765         * tests/test-log.c: New file.
7766
7767         Tests for module 'lgamma'.
7768         * modules/lgamma-tests: New file.
7769         * tests/test-lgamma.c: New file.
7770
7771         Tests for module 'ldexp'.
7772         * modules/ldexp-tests: New file.
7773         * tests/test-ldexp.c: New file.
7774
7775         Tests for module 'jn'.
7776         * modules/jn-tests: New file.
7777         * tests/test-jn.c: New file.
7778
7779         Tests for module 'j1'.
7780         * modules/j1-tests: New file.
7781         * tests/test-j1.c: New file.
7782
7783         Tests for module 'j0'.
7784         * modules/j0-tests: New file.
7785         * tests/test-j0.c: New file.
7786
7787         Tests for module 'hypot'.
7788         * modules/hypot-tests: New file.
7789         * tests/test-hypot.c: New file.
7790
7791         Tests for module 'fmod'.
7792         * modules/fmod-tests: New file.
7793         * tests/test-fmod.c: New file.
7794
7795         Tests for module 'fabs'.
7796         * modules/fabs-tests: New file.
7797         * tests/test-fabs.c: New file.
7798
7799         Tests for module 'exp'.
7800         * modules/exp-tests: New file.
7801         * tests/test-exp.c: New file.
7802
7803         Tests for module 'erfc'.
7804         * modules/erfc-tests: New file.
7805         * tests/test-erfc.c: New file.
7806
7807         Tests for module 'erf'.
7808         * modules/erf-tests: New file.
7809         * tests/test-erf.c: New file.
7810
7811         Tests for module 'cosh'.
7812         * modules/cosh-tests: New file.
7813         * tests/test-cosh.c: New file.
7814
7815         Tests for module 'cos'.
7816         * modules/cos-tests: New file.
7817         * tests/test-cos.c: New file.
7818
7819         Tests for module 'copysign'.
7820         * modules/copysign-tests: New file.
7821         * tests/test-copysign.c: New file.
7822
7823         Tests for module 'cbrt'.
7824         * modules/cbrt-tests: New file.
7825         * tests/test-cbrt.c: New file.
7826
7827         Tests for module 'atan2'.
7828         * modules/atan2-tests: New file.
7829         * tests/test-atan2.c: New file.
7830
7831         Tests for module 'atan'.
7832         * modules/atan-tests: New file.
7833         * tests/test-atan.c: New file.
7834
7835         Tests for module 'asin'.
7836         * modules/asin-tests: New file.
7837         * tests/test-asin.c: New file.
7838
7839         Tests for module 'acos'.
7840         * modules/acos-tests: New file.
7841         * tests/test-acos.c: New file.
7842
7843 2010-01-24  Bruno Haible  <bruno@clisp.org>
7844
7845         Fix tests for common <math.h> functions.
7846         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
7847         code snippet that references the function pointer, rather than merely
7848         calling the function. Substitute the FUNC_LIBM variable.
7849         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
7850         * modules/acos (configure.ac): Likewise.
7851         * modules/asin (configure.ac): Likewise.
7852         * modules/atan (configure.ac): Likewise.
7853         * modules/atan2 (configure.ac): Likewise.
7854         * modules/cbrt (configure.ac): Likewise.
7855         * modules/copysign (configure.ac): Likewise.
7856         * modules/cos (configure.ac): Likewise.
7857         * modules/cosh (configure.ac): Likewise.
7858         * modules/erf (configure.ac): Likewise.
7859         * modules/erfc (configure.ac): Likewise.
7860         * modules/exp (configure.ac): Likewise.
7861         * modules/fabs (configure.ac): Likewise.
7862         * modules/fmod (configure.ac): Likewise.
7863         * modules/hypot (configure.ac): Likewise.
7864         * modules/j0 (configure.ac): Likewise.
7865         * modules/j1 (configure.ac): Likewise.
7866         * modules/jn (configure.ac): Likewise.
7867         * modules/ldexp (configure.ac): Likewise.
7868         * modules/lgamma (configure.ac): Likewise.
7869         * modules/log (configure.ac): Likewise.
7870         * modules/log10 (configure.ac): Likewise.
7871         * modules/log1p (configure.ac): Likewise.
7872         * modules/logb (configure.ac): Likewise.
7873         * modules/modf (configure.ac): Likewise.
7874         * modules/nextafter (configure.ac): Likewise.
7875         * modules/pow (configure.ac): Likewise.
7876         * modules/remainder (configure.ac): Likewise.
7877         * modules/rint (configure.ac): Likewise.
7878         * modules/sin (configure.ac): Likewise.
7879         * modules/sinh (configure.ac): Likewise.
7880         * modules/tan (configure.ac): Likewise.
7881         * modules/tanh (configure.ac): Likewise.
7882         * modules/y0 (configure.ac): Likewise.
7883         * modules/y1 (configure.ac): Likewise.
7884         * modules/yn (configure.ac): Likewise.
7885
7886 2010-01-24  Bruno Haible  <bruno@clisp.org>
7887
7888         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
7889         * tests/test-acosl.c (x): New variable.
7890         (main): Store argument in x and fetch it from x.
7891         * tests/test-asinl.c (x): New variable.
7892         (main): Store argument in x and fetch it from x.
7893         * tests/test-atanl.c (x): New variable.
7894         (main): Store argument in x and fetch it from x.
7895         * tests/test-cosl.c (x): New variable.
7896         (main): Store argument in x and fetch it from x.
7897         * tests/test-expl.c (x): New variable.
7898         (main): Store argument in x and fetch it from x.
7899         * tests/test-logl.c (x): New variable.
7900         (main): Store argument in x and fetch it from x.
7901         * tests/test-sinl.c (x): New variable.
7902         (main): Store argument in x and fetch it from x.
7903         * tests/test-sqrtl.c (x): New variable.
7904         (main): Store argument in x and fetch it from x.
7905         * tests/test-tanl.c (x): New variable.
7906         (main): Store argument in x and fetch it from x.
7907
7908 2010-01-24  Bruno Haible  <bruno@clisp.org>
7909
7910         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
7911         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
7912         assignments to the initial TESTS_ENVIRONMENT.
7913         * doc/gnulib.texi (Unit test modules): Document it.
7914         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
7915         TESTS_ENVIRONMENT.
7916         * modules/btowc-tests (Makefile.am): Likewise.
7917         * modules/c-stack-tests (Makefile.am): Likewise.
7918         * modules/c-strcase-tests (Makefile.am): Likewise.
7919         * modules/copy-file-tests (Makefile.am): Likewise.
7920         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
7921         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
7922         * modules/mbrtowc-tests (Makefile.am): Likewise.
7923         * modules/mbscasecmp-tests (Makefile.am): Likewise.
7924         * modules/mbscasestr-tests (Makefile.am): Likewise.
7925         * modules/mbschr-tests (Makefile.am): Likewise.
7926         * modules/mbscspn-tests (Makefile.am): Likewise.
7927         * modules/mbsinit-tests (Makefile.am): Likewise.
7928         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
7929         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
7930         * modules/mbspbrk-tests (Makefile.am): Likewise.
7931         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
7932         * modules/mbsrchr-tests (Makefile.am): Likewise.
7933         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
7934         * modules/mbsspn-tests (Makefile.am): Likewise.
7935         * modules/mbsstr-tests (Makefile.am): Likewise.
7936         * modules/nl_langinfo-tests (Makefile.am): Likewise.
7937         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
7938         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
7939         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
7940         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
7941         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
7942         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
7943         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
7944         * modules/wcrtomb-tests (Makefile.am): Likewise.
7945         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
7946         * modules/wcsrtombs-tests (Makefile.am): Likewise.
7947         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
7948         assignments from TESTS_ENVIRONMENT.
7949         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
7950         augmentation.
7951         * modules/argp-version-etc-tests (Makefile.am): Likewise.
7952         * modules/atexit-tests (Makefile.am): Likewise.
7953         * modules/binary-io-tests (Makefile.am): Likewise.
7954         * modules/closein-tests (Makefile.am): Likewise.
7955         * modules/dprintf-posix-tests (Makefile.am): Likewise.
7956         * modules/exclude-tests (Makefile.am): Likewise.
7957         * modules/fflush-tests (Makefile.am): Likewise.
7958         * modules/fpending-tests (Makefile.am): Likewise.
7959         * modules/fprintf-posix-tests (Makefile.am): Likewise.
7960         * modules/freadahead-tests (Makefile.am): Likewise.
7961         * modules/freadptr-tests (Makefile.am): Likewise.
7962         * modules/freadseek-tests (Makefile.am): Likewise.
7963         * modules/fseek-tests (Makefile.am): Likewise.
7964         * modules/fseeko-tests (Makefile.am): Likewise.
7965         * modules/ftell-tests (Makefile.am): Likewise.
7966         * modules/ftello-tests (Makefile.am): Likewise.
7967         * modules/idpriv-drop-tests (Makefile.am): Likewise.
7968         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
7969         * modules/lseek-tests (Makefile.am): Likewise.
7970         * modules/parse-duration-tests (Makefile.am): Likewise.
7971         * modules/perror-tests (Makefile.am): Likewise.
7972         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
7973         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
7974         * modules/pipe-tests (Makefile.am): Likewise.
7975         * modules/pread-tests (Makefile.am): Likewise.
7976         * modules/printf-posix-tests (Makefile.am): Likewise.
7977         * modules/select-tests (Makefile.am): Likewise.
7978         * modules/sigpipe-tests (Makefile.am): Likewise.
7979         * modules/tsearch-tests (Makefile.am): Likewise.
7980         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
7981         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
7982         * modules/uniname/uniname-tests (Makefile.am): Likewise.
7983         * modules/uniwidth/width-tests (Makefile.am): Likewise.
7984         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
7985         * modules/version-etc-tests (Makefile.am): Likewise.
7986         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
7987         * modules/vprintf-posix-tests (Makefile.am): Likewise.
7988         * modules/xalloc-die-tests (Makefile.am): Likewise.
7989         * modules/xprintf-posix-tests (Makefile.am): Likewise.
7990         * modules/xstrtoimax-tests (Makefile.am): Likewise.
7991         * modules/xstrtol-tests (Makefile.am): Likewise.
7992         * modules/xstrtoumax-tests (Makefile.am): Likewise.
7993         * modules/yesno-tests (Makefile.am): Likewise.
7994         Suggested by Jim Meyering.
7995
7996 2010-01-24  Bruno Haible  <bruno@clisp.org>
7997
7998         More documentation.
7999         * doc/gnulib.texi (Writing modules): New chapter.
8000         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
8001         the new chapter.
8002
8003 2010-01-24  Jim Meyering  <meyering@redhat.com>
8004
8005         maint.mk: do not prepend "./" after filtering
8006         * top/maint.mk (_prepend_srcdir_prefix): New variable
8007         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
8008         "./" when $(srcdir) is ".".
8009
8010         define STREQ(a,b) consistently, removing useless parentheses
8011         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
8012         since the only risk is that "a" or "b" contains an unparenthesized
8013         comma, but if either did that, STREQ would have 3 or more arguments.
8014         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
8015         * lib/fts.c (STREQ): Remove unnecessary parentheses.
8016         * lib/hash-triple.c (STREQ): Likewise.
8017         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
8018         * lib/getugroups.c (STREQ): Likewise.
8019
8020 2010-01-23  Jim Meyering  <meyering@redhat.com>
8021
8022         maint.mk: fix syntax-check in a non-srcdir build directory
8023         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
8024         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
8025
8026 2010-01-22  Jim Meyering  <meyering@redhat.com>
8027
8028         userspec: add unit tests
8029         * tests/test-userspec.c: New file.
8030         * modules/userspec-tests: Likewise.
8031
8032 2010-01-21  Jim Meyering  <meyering@redhat.com>
8033
8034         maint.mk: handle source file names containing "." robustly
8035         * top/maint.mk (_dot_escaped_srcdir): Define.
8036         (VC_LIST): Use it in LHS of sed substitution.
8037
8038 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
8039
8040         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
8041         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
8042         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
8043         from a non-srcdir build.
8044
8045 2010-01-20  Eric Blake  <ebb9@byu.net>
8046
8047         warn-on-use: use instead of link-warning
8048         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
8049         * modules/unistd (Depends-on, Makefile.am): Likewise.
8050         * modules/arpa_inet (Depends-on): Replace link-warning with
8051         warn-on-use.
8052         (Makefile.am): Update rules accordingly.
8053         * modules/ctype (Depends-on, Makefile.am): Likewise.
8054         * modules/dirent (Depends-on, Makefile.am): Likewise.
8055         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
8056         * modules/inttypes (Depends-on, Makefile.am): Likewise.
8057         * modules/langinfo (Depends-on, Makefile.am): Likewise.
8058         * modules/locale (Depends-on, Makefile.am): Likewise.
8059         * modules/math (Depends-on, Makefile.am): Likewise.
8060         * modules/search (Depends-on, Makefile.am): Likewise.
8061         * modules/signal (Depends-on, Makefile.am): Likewise.
8062         * modules/spawn (Depends-on, Makefile.am): Likewise.
8063         * modules/stdlib (Depends-on, Makefile.am): Likewise.
8064         * modules/string (Depends-on, Makefile.am): Likewise.
8065         * modules/strings (Depends-on, Makefile.am): Likewise.
8066         * modules/sys_file (Depends-on, Makefile.am): Likewise.
8067         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
8068         * modules/sys_select (Depends-on, Makefile.am): Likewise.
8069         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
8070         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
8071         * modules/sys_times (Depends-on, Makefile.am): Likewise.
8072         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
8073         * modules/wchar (Depends-on, Makefile.am): Likewise.
8074         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
8075         should be poisoned.
8076         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
8077         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
8078         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
8079         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
8080         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
8081         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
8082         * m4/math_h.m4 (gl_MATH_H): Likewise.
8083         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
8084         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
8085         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8086         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
8087         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
8088         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
8089         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
8090         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
8091         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
8092         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
8093         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
8094         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
8095         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
8096         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
8097         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8098         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
8099         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
8100         GL_LINK_WARNING.
8101         * lib/ctype.in.h: Likewise.
8102         * lib/dirent.in.h: Likewise.
8103         * lib/fcntl.in.h: Likewise.
8104         * lib/inttypes.in.h: Likewise.
8105         * lib/langinfo.in.h: Likewise.
8106         * lib/locale.in.h: Likewise.
8107         * lib/math.in.h: Likewise.
8108         * lib/search.in.h: Likewise.
8109         * lib/signal.in.h: Likewise.
8110         * lib/spawn.in.h: Likewise.
8111         * lib/stdio.in.h: Likewise.
8112         * lib/stdlib.in.h: Likewise.
8113         * lib/string.in.h: Likewise.
8114         * lib/strings.in.h: Likewise.
8115         * lib/sys_file.in.h: Likewise.
8116         * lib/sys_ioctl.in.h: Likewise.
8117         * lib/sys_select.in.h: Likewise.
8118         * lib/sys_socket.in.h: Likewise.
8119         * lib/sys_stat.in.h: Likewise.
8120         * lib/sys_times.in.h: Likewise.
8121         * lib/sys_utsname.in.h: Likewise.
8122         * lib/unistd.in.h: Likewise.
8123         * lib/wchar.in.h: Likewise.
8124
8125 2010-01-20  Bruno Haible  <bruno@clisp.org>
8126
8127         Avoid duplicate -lm.
8128         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
8129         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
8130         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
8131         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
8132         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
8133         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
8134         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
8135         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
8136         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
8137         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
8138         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
8139         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
8140         Reported by Paolo Bonzini.
8141
8142 2010-01-19  Bruno Haible  <bruno@clisp.org>
8143
8144         langinfo, nl_langinfo: Relicense under LGPLv2+.
8145         * modules/langinfo (License): Change to LGPLv2+.
8146         * modules/nl_langinfo (License): Likewise.
8147         Patch by David Lutterkort <lutter@redhat.com>.
8148
8149 2010-01-19  Bruno Haible  <bruno@clisp.org>
8150
8151         Avoid compilation error with cc on OSF/1 5.1.
8152         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
8153         statement, not before.
8154         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8155
8156 2010-01-18  Bruno Haible  <bruno@clisp.org>
8157
8158         Avoid a link error due to the __printf__ symbol.
8159         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
8160         and 2.6.x.
8161         (__format__, __printf__): Remove definitions.
8162         * lib/argp-fmtstream.h: Likewise.
8163         * lib/argp.h: Likewise.
8164         * lib/error.h: Likewise.
8165         * lib/vasnprintf.h: Likewise.
8166         * lib/xprintf.h: Likewise.
8167         * lib/xvasprintf.h: Likewise.
8168         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8169
8170 2010-01-18  Bruno Haible  <bruno@clisp.org>
8171
8172         Tests for module 'tanl'.
8173         * modules/tanl-tests: New file.
8174         * tests/test-tanl.c: New file.
8175
8176         Tests for module 'sqrtl'.
8177         * modules/sqrtl-tests: New file.
8178         * tests/test-sqrtl.c: New file.
8179
8180         Tests for module 'sinl'.
8181         * modules/sinl-tests: New file.
8182         * tests/test-sinl.c: New file.
8183
8184         Tests for module 'logl'.
8185         * modules/logl-tests: New file.
8186         * tests/test-logl.c: New file.
8187
8188         Tests for module 'expl'.
8189         * modules/expl-tests: New file.
8190         * tests/test-expl.c: New file.
8191
8192         Tests for module 'cosl'.
8193         * modules/cosl-tests: New file.
8194         * tests/test-cosl.c: New file.
8195
8196         Tests for module 'atanl'.
8197         * modules/atanl-tests: New file.
8198         * tests/test-atanl.c: New file.
8199
8200         Tests for module 'asinl'.
8201         * modules/asinl-tests: New file.
8202         * tests/test-asinl.c: New file.
8203
8204         Tests for module 'acosl'.
8205         * modules/acosl-tests: New file.
8206         * tests/test-acosl.c: New file.
8207
8208         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
8209         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
8210         tanl): Use the standard gnulib idiom.
8211         * lib/cosl.c: Don't include trigl.c and sincosl.c.
8212         * lib/sinl.c: Likewise.
8213         * lib/tanl.c: Don't include trigl.c.
8214         (kernel_tanl): Make static.
8215         * lib/sincosl.c: Include trigl.h first.
8216         * lib/trigl.c: Likewise.
8217         * m4/acosl.m4: New file.
8218         * m4/asinl.m4: New file.
8219         * m4/atanl.m4: New file.
8220         * m4/cosl.m4: New file.
8221         * m4/expl.m4: New file.
8222         * m4/logl.m4: New file.
8223         * m4/sinl.m4: New file.
8224         * m4/sqrtl.m4: New file.
8225         * m4/tanl.m4: New file.
8226         * m4/mathl.m4: Remove file.
8227         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
8228         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
8229         Don't initialize GNULIB_MATHL.
8230         * modules/acosl: New file.
8231         * modules/asinl: New file.
8232         * modules/atanl: New file.
8233         * modules/cosl: New file.
8234         * modules/expl: New file.
8235         * modules/logl: New file.
8236         * modules/sinl: New file.
8237         * modules/sqrtl: New file.
8238         * modules/tanl: New file.
8239         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
8240         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
8241         substitute GNULIB_MATHL.
8242         * modules/mathl: Rewritten.
8243         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
8244         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
8245         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
8246         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
8247         * doc/posix-functions/expl.texi: Mention the 'expl' module.
8248         * doc/posix-functions/logl.texi: Mention the 'logl' module.
8249         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
8250         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
8251         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
8252
8253 2010-01-18  Bruno Haible  <bruno@clisp.org>
8254
8255         sqrt: Make gl_FUNC_SQRT requirable.
8256         * m4/sqrt.m4: New file.
8257         * modules/sqrt (Files): Add it.
8258         (configure.ac): Invoke gl_FUNC_SQRT.
8259
8260 2010-01-18  Bruno Haible  <bruno@clisp.org>
8261
8262         New modules for common <math.h> functions.
8263         * m4/mathfunc.m4: New file.
8264         * modules/acos: New file.
8265         * modules/asin: New file.
8266         * modules/atan: New file.
8267         * modules/atan2: New file.
8268         * modules/cbrt: New file.
8269         * modules/copysign: New file.
8270         * modules/cos: New file.
8271         * modules/cosh: New file.
8272         * modules/erf: New file.
8273         * modules/erfc: New file.
8274         * modules/exp: New file.
8275         * modules/fabs: New file.
8276         * modules/fmod: New file.
8277         * modules/hypot: New file.
8278         * modules/j0: New file.
8279         * modules/j1: New file.
8280         * modules/jn: New file.
8281         * modules/ldexp: New file.
8282         * modules/lgamma: New file.
8283         * modules/log: New file.
8284         * modules/log10: New file.
8285         * modules/log1p: New file.
8286         * modules/logb: New file.
8287         * modules/modf: New file.
8288         * modules/nextafter: New file.
8289         * modules/pow: New file.
8290         * modules/remainder: New file.
8291         * modules/rint: New file.
8292         * modules/sin: New file.
8293         * modules/sinh: New file.
8294         * modules/sqrt: New file.
8295         * modules/tan: New file.
8296         * modules/tanh: New file.
8297         * modules/y0: New file.
8298         * modules/y1: New file.
8299         * modules/yn: New file.
8300         * doc/posix-functions/acos.texi: Mention the 'acos' module.
8301         * doc/posix-functions/asin.texi: Mention the 'asin' module.
8302         * doc/posix-functions/atan.texi: Mention the 'atan' module.
8303         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
8304         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
8305         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
8306         * doc/posix-functions/cos.texi: Mention the 'cos' module.
8307         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
8308         * doc/posix-functions/erf.texi: Mention the 'erf' module.
8309         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
8310         * doc/posix-functions/exp.texi: Mention the 'exp' module.
8311         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
8312         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
8313         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
8314         * doc/posix-functions/j0.texi: Mention the 'j0' module.
8315         * doc/posix-functions/j1.texi: Mention the 'j1' module.
8316         * doc/posix-functions/jn.texi: Mention the 'jn' module.
8317         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
8318         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
8319         * doc/posix-functions/log.texi: Mention the 'log' module.
8320         * doc/posix-functions/log10.texi: Mention the 'log10' module.
8321         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
8322         * doc/posix-functions/logb.texi: Mention the 'logb' module.
8323         * doc/posix-functions/modf.texi: Mention the 'modf' module.
8324         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
8325         * doc/posix-functions/pow.texi: Mention the 'pow' module.
8326         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
8327         * doc/posix-functions/rint.texi: Mention the 'rint' module.
8328         * doc/posix-functions/sin.texi: Mention the 'sin' module.
8329         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
8330         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
8331         * doc/posix-functions/tan.texi: Mention the 'tan' module.
8332         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
8333         * doc/posix-functions/y0.texi: Mention the 'y0' module.
8334         * doc/posix-functions/y1.texi: Mention the 'y1' module.
8335         * doc/posix-functions/yn.texi: Mention the 'yn' module.
8336
8337 2010-01-18  Jim Meyering  <meyering@redhat.com>
8338
8339         ignore-value: relax license to LGPLv2+
8340         * modules/ignore-value (License): Relax to LGPLv2+.
8341
8342         getdate: don't leak when TZ contains two or more '"'s
8343         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
8344         double quote in TZ after the first one.
8345
8346         readtokens: do not leak internal token_lengths buffer
8347         * lib/readtokens.c (readtokens): Free the local, lengths,
8348         when the supplied "token_lengths" parameter is NULL.
8349
8350 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8351
8352         Fix a couple of missing LIBTHREAD link failures on AIX.
8353         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
8354         $(LIBTHREAD).
8355         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
8356
8357         Link test-poll against INET_PTON_LIB.
8358         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
8359         for inet_pton on Solaris 10.
8360
8361 2010-01-17  Bruno Haible  <bruno@clisp.org>
8362
8363         unistdio/*-sprintf: Fix typo in module description.
8364         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
8365         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
8366         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
8367         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
8368         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
8369         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
8370         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
8371         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8372
8373 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8374
8375         gnulib-tool: fix filelist for AIX, HP-UX ksh.
8376         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
8377         variables in shell case patterns, for AIX and HP-UX ksh.
8378
8379         Split large sed scripts, for HP-UX sed.
8380         * modules/stdio: Split sed scripts around 50 sed commands,
8381         to avoid HP-UX limit of 99 commands, in the near future.
8382         * modules/string: Likewise.
8383         * modules/unistd: Likewise.
8384
8385         gnulib-tool: avoid writing in the current directory.
8386         * gnulib-tool (func_emit_lib_Makefile_am)
8387         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
8388         not in the current directory, so concurrent gnulib-tool
8389         instances do not interfere.
8390
8391 2010-01-16  Jim Meyering  <meyering@redhat.com>
8392
8393         doc: update users.txt
8394         * users.txt: Add grep.
8395         (diffutils, gzip): Update URLs.
8396
8397 2010-01-12  Bruno Haible  <bruno@clisp.org>
8398
8399         posix_spawn: Avoid test failure on Cygwin.
8400         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
8401         characters.
8402         Reported by Simon Josefsson.
8403
8404 2010-01-12  Bruno Haible  <bruno@clisp.org>
8405
8406         * tests/test-cond.c (main): When skipping the test, show the reason.
8407
8408 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8409
8410         * lib/striconv.c (str_cd_iconv): Avoid if before free.
8411
8412 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8413
8414         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
8415         VC_LIST_ALWAYS_EXCLUDE_REGEX.
8416
8417 2010-01-12  Eric Blake  <ebb9@byu.net>
8418
8419         build: guarantee AS_VAR_IF
8420         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
8421         (gl_AS_VAR_IF): Move...
8422         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
8423         Reported by Simon Josefsson.
8424
8425 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8426
8427         * lib/stdio.in.h: Fix typo.
8428
8429 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8430
8431         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
8432         libgpg-error.
8433
8434 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8435
8436         * tests/test-xalloc-die.sh: Use $EXEEXT.
8437
8438 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8439             Bruno Haible  <bruno@clisp.org>
8440
8441         getlogin, getlogin_r: Avoid test failure.
8442         * tests/test-getlogin.c: Include <stdio.h>.
8443         (main): Skip the test when the function fails because stdin is not a
8444         tty.
8445         * tests/test-getlogin_r.c: Include <stdio.h>.
8446         (main): Skip the test when the function fails because stdin is not a
8447         tty.
8448
8449 2010-01-11  Eric Blake  <ebb9@byu.net>
8450
8451         tests: avoid more large file warnings
8452         * tests/test-fflush.c: Avoid warning about ftell use.
8453         * tests/test-fseek.c: Avoid warning about fseek use.
8454
8455 2010-01-10  Bruno Haible  <bruno@clisp.org>
8456
8457         nproc: Work better on Linux when /proc and /sys are not mounted.
8458         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
8459         as lower bound when, on glibc/Linux systems,
8460         sysconf (_SC_NPROCESSORS_CONF) returns 1.
8461         Suggested by Pádraig Brady <P@draigbrady.com>.
8462         Reported by Dmitry V. Levin <ldv@altlinux.org>.
8463
8464         nproc: Refactor.
8465         * lib/nproc.c (num_processors_via_affinity_mask): New function,
8466         extracted from num_processors.
8467         (num_processors): Call it.
8468
8469 2010-01-11  Jim Meyering  <meyering@redhat.com>
8470
8471         utimecmp: avoid new warning from upcoming gcc-4.5.0
8472         * lib/utimecmp.c (BILLION): Define using #define rather than an
8473         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
8474
8475 2010-01-11  Eric Blake  <ebb9@byu.net>
8476
8477         math: add portability warnings for classification macros
8478         * modules/math (Depends-on): Add warn-on-use.
8479         (Makefile.am): Provide new substitutions.
8480         * m4/math_h.m4 (gl_MATH_H): Require inline.
8481         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
8482         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
8483         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
8484         implement warnings.
8485
8486         unistd: warn on use of environ without module
8487         * modules/unistd (Depends-on): Add warn-on-use.
8488         (Makefile.am): Provide new substitutions.
8489         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
8490         * lib/unistd.in.h (environ): Wrap with a warning helper function.
8491
8492         stdio: warn on suspicious uses
8493         * modules/stdio (Depends-on): Add warn-on-use.
8494         (Makefile.am): Provide new substitutions.
8495         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
8496         fseeko.
8497         * lib/stdio.in.h (gets): Always warn on use.
8498         (fseek, ftell): Adjust when warnings are issued, and honor
8499         _GL_NO_LARGE_FILES as a way to silence the warning.
8500         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
8501         any warning about large file offsets.
8502         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
8503         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
8504         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
8505         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
8506         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
8507         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
8508         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
8509         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
8510
8511         warn-on-use: new module
8512         * modules/warn-on-use: New file.
8513         * build-aux/warn-on-use.h: Likewise.
8514         * m4/warn-on-use.m4: Likewise.
8515         * MODULES.html.sh (Support for building): Mention it.
8516
8517 2010-01-10  Bruno Haible  <bruno@clisp.org>
8518
8519         Tests for module 'unistr/u32-strdup'.
8520         * modules/unistr/u32-strdup-tests: New file.
8521         * tests/unistr/test-u32-strdup.c: New file.
8522
8523         Tests for module 'unistr/u16-strdup'.
8524         * modules/unistr/u16-strdup-tests: New file.
8525         * tests/unistr/test-u16-strdup.c: New file.
8526
8527         Tests for module 'unistr/u8-strdup'.
8528         * modules/unistr/u8-strdup-tests: New file.
8529         * tests/unistr/test-u8-strdup.c: New file.
8530         * tests/unistr/test-strdup.h: New file.
8531
8532         Tests for module 'unistr/u32-strncmp'.
8533         * modules/unistr/u32-strncmp-tests: New file.
8534         * tests/unistr/test-u32-strncmp.c: New file.
8535
8536         Tests for module 'unistr/u16-strncmp'.
8537         * modules/unistr/u16-strncmp-tests: New file.
8538         * tests/unistr/test-u16-strncmp.c: New file.
8539
8540         Tests for module 'unistr/u8-strncmp'.
8541         * modules/unistr/u8-strncmp-tests: New file.
8542         * tests/unistr/test-u8-strncmp.c: New file.
8543         * tests/unistr/test-strncmp.h: New file.
8544
8545         Tests for module 'unistr/u32-strcoll'.
8546         * modules/unistr/u32-strcoll-tests: New file.
8547         * tests/unistr/test-u32-strcoll.c: New file.
8548
8549         Tests for module 'unistr/u16-strcoll'.
8550         * modules/unistr/u16-strcoll-tests: New file.
8551         * tests/unistr/test-u16-strcoll.c: New file.
8552
8553         Tests for module 'unistr/u8-strcoll'.
8554         * modules/unistr/u8-strcoll-tests: New file.
8555         * tests/unistr/test-u8-strcoll.c: New file.
8556
8557         Tests for module 'unistr/u32-strcmp'.
8558         * modules/unistr/u32-strcmp-tests: New file.
8559         * tests/unistr/test-u32-strcmp.c: New file.
8560         * tests/unistr/test-u32-strcmp.h: New file.
8561
8562         Tests for module 'unistr/u16-strcmp'.
8563         * modules/unistr/u16-strcmp-tests: New file.
8564         * tests/unistr/test-u16-strcmp.c: New file.
8565         * tests/unistr/test-u16-strcmp.h: New file.
8566
8567         Tests for module 'unistr/u8-strcmp'.
8568         * modules/unistr/u8-strcmp-tests: New file.
8569         * tests/unistr/test-u8-strcmp.c: New file.
8570         * tests/unistr/test-u8-strcmp.h: New file.
8571         * tests/unistr/test-strcmp.h: New file.
8572
8573         Tests for module 'unistr/u32-strncat'.
8574         * modules/unistr/u32-strncat-tests: New file.
8575         * tests/unistr/test-u32-strncat.c: New file.
8576
8577         Tests for module 'unistr/u16-strncat'.
8578         * modules/unistr/u16-strncat-tests: New file.
8579         * tests/unistr/test-u16-strncat.c: New file.
8580
8581         Tests for module 'unistr/u8-strncat'.
8582         * modules/unistr/u8-strncat-tests: New file.
8583         * tests/unistr/test-u8-strncat.c: New file.
8584         * tests/unistr/test-strncat.h: New file.
8585
8586         Tests for module 'unistr/u32-strcat'.
8587         * modules/unistr/u32-strcat-tests: New file.
8588         * tests/unistr/test-u32-strcat.c: New file.
8589
8590         Tests for module 'unistr/u16-strcat'.
8591         * modules/unistr/u16-strcat-tests: New file.
8592         * tests/unistr/test-u16-strcat.c: New file.
8593
8594         Tests for module 'unistr/u8-strcat'.
8595         * modules/unistr/u8-strcat-tests: New file.
8596         * tests/unistr/test-u8-strcat.c: New file.
8597         * tests/unistr/test-strcat.h: New file.
8598
8599         Tests for module 'unistr/u32-stpncpy'.
8600         * modules/unistr/u32-stpncpy-tests: New file.
8601         * tests/unistr/test-u32-stpncpy.c: New file.
8602
8603         Tests for module 'unistr/u16-stpncpy'.
8604         * modules/unistr/u16-stpncpy-tests: New file.
8605         * tests/unistr/test-u16-stpncpy.c: New file.
8606
8607         Tests for module 'unistr/u8-stpncpy'.
8608         * modules/unistr/u8-stpncpy-tests: New file.
8609         * tests/unistr/test-u8-stpncpy.c: New file.
8610         * tests/unistr/test-stpncpy.h: New file.
8611
8612         Tests for module 'unistr/u32-strncpy'.
8613         * modules/unistr/u32-strncpy-tests: New file.
8614         * tests/unistr/test-u32-strncpy.c: New file.
8615
8616         Tests for module 'unistr/u16-strncpy'.
8617         * modules/unistr/u16-strncpy-tests: New file.
8618         * tests/unistr/test-u16-strncpy.c: New file.
8619
8620         Tests for module 'unistr/u8-strncpy'.
8621         * modules/unistr/u8-strncpy-tests: New file.
8622         * tests/unistr/test-u8-strncpy.c: New file.
8623         * tests/unistr/test-strncpy.h: New file.
8624
8625         Tests for module 'unistr/u32-stpcpy'.
8626         * modules/unistr/u32-stpcpy-tests: New file.
8627         * tests/unistr/test-u32-stpcpy.c: New file.
8628
8629         Tests for module 'unistr/u16-stpcpy'.
8630         * modules/unistr/u16-stpcpy-tests: New file.
8631         * tests/unistr/test-u16-stpcpy.c: New file.
8632
8633         Tests for module 'unistr/u8-stpcpy'.
8634         * modules/unistr/u8-stpcpy-tests: New file.
8635         * tests/unistr/test-u8-stpcpy.c: New file.
8636         * tests/unistr/test-stpcpy.h: New file.
8637
8638         Tests for module 'unistr/u32-strcpy'.
8639         * modules/unistr/u32-strcpy-tests: New file.
8640         * tests/unistr/test-u32-strcpy.c: New file.
8641
8642         Tests for module 'unistr/u16-strcpy'.
8643         * modules/unistr/u16-strcpy-tests: New file.
8644         * tests/unistr/test-u16-strcpy.c: New file.
8645
8646         Tests for module 'unistr/u8-strcpy'.
8647         * modules/unistr/u8-strcpy-tests: New file.
8648         * tests/unistr/test-u8-strcpy.c: New file.
8649         * tests/unistr/test-strcpy.h: New file.
8650
8651         Tests for module 'unistr/u32-strnlen'.
8652         * modules/unistr/u32-strnlen-tests: New file.
8653         * tests/unistr/test-u32-strnlen.c: New file.
8654
8655         Tests for module 'unistr/u16-strnlen'.
8656         * modules/unistr/u16-strnlen-tests: New file.
8657         * tests/unistr/test-u16-strnlen.c: New file.
8658
8659         Tests for module 'unistr/u8-strnlen'.
8660         * modules/unistr/u8-strnlen-tests: New file.
8661         * tests/unistr/test-u8-strnlen.c: New file.
8662         * tests/unistr/test-strnlen.h: New file.
8663
8664         Tests for module 'unistr/u32-strlen'.
8665         * modules/unistr/u32-strlen-tests: New file.
8666         * tests/unistr/test-u32-strlen.c: New file.
8667
8668         Tests for module 'unistr/u16-strlen'.
8669         * modules/unistr/u16-strlen-tests: New file.
8670         * tests/unistr/test-u16-strlen.c: New file.
8671
8672         Tests for module 'unistr/u8-strlen'.
8673         * modules/unistr/u8-strlen-tests: New file.
8674         * tests/unistr/test-u8-strlen.c: New file.
8675
8676         Tests for module 'unistr/u32-prev'.
8677         * modules/unistr/u32-prev-tests: New file.
8678         * tests/unistr/test-u32-prev.c: New file.
8679
8680         Tests for module 'unistr/u16-prev'.
8681         * modules/unistr/u16-prev-tests: New file.
8682         * tests/unistr/test-u16-prev.c: New file.
8683
8684         Tests for module 'unistr/u8-prev'.
8685         * modules/unistr/u8-prev-tests: New file.
8686         * tests/unistr/test-u8-prev.c: New file.
8687
8688         Tests for module 'unistr/u32-next'.
8689         * modules/unistr/u32-next-tests: New file.
8690         * tests/unistr/test-u32-next.c: New file.
8691
8692         Tests for module 'unistr/u16-next'.
8693         * modules/unistr/u16-next-tests: New file.
8694         * tests/unistr/test-u16-next.c: New file.
8695
8696         Tests for module 'unistr/u8-next'.
8697         * modules/unistr/u8-next-tests: New file.
8698         * tests/unistr/test-u8-next.c: New file.
8699
8700         Tests for module 'unistr/u32-strmbtouc'.
8701         * modules/unistr/u32-strmbtouc-tests: New file.
8702         * tests/unistr/test-u32-strmbtouc.c: New file.
8703
8704         Tests for module 'unistr/u16-strmbtouc'.
8705         * modules/unistr/u16-strmbtouc-tests: New file.
8706         * tests/unistr/test-u16-strmbtouc.c: New file.
8707
8708         Tests for module 'unistr/u8-strmbtouc'.
8709         * modules/unistr/u8-strmbtouc-tests: New file.
8710         * tests/unistr/test-u8-strmbtouc.c: New file.
8711
8712         Tests for module 'unistr/u32-strmblen'.
8713         * modules/unistr/u32-strmblen-tests: New file.
8714         * tests/unistr/test-u32-strmblen.c: New file.
8715
8716         Tests for module 'unistr/u16-strmblen'.
8717         * modules/unistr/u16-strmblen-tests: New file.
8718         * tests/unistr/test-u16-strmblen.c: New file.
8719
8720         Tests for module 'unistr/u8-strmblen'.
8721         * modules/unistr/u8-strmblen-tests: New file.
8722         * tests/unistr/test-u8-strmblen.c: New file.
8723
8724         Tests for module 'unistr/u32-cpy-alloc'.
8725         * modules/unistr/u32-cpy-alloc-tests: New file.
8726         * tests/unistr/test-u32-cpy-alloc.c: New file.
8727
8728         Tests for module 'unistr/u16-cpy-alloc'.
8729         * modules/unistr/u16-cpy-alloc-tests: New file.
8730         * tests/unistr/test-u16-cpy-alloc.c: New file.
8731
8732         Tests for module 'unistr/u8-cpy-alloc'.
8733         * modules/unistr/u8-cpy-alloc-tests: New file.
8734         * tests/unistr/test-u8-cpy-alloc.c: New file.
8735         * tests/unistr/test-cpy-alloc.h: New file.
8736
8737         Tests for module 'unistr/u32-mbsnlen'.
8738         * modules/unistr/u32-mbsnlen-tests: New file.
8739         * tests/unistr/test-u32-mbsnlen.c: New file.
8740
8741         Tests for module 'unistr/u16-mbsnlen'.
8742         * modules/unistr/u16-mbsnlen-tests: New file.
8743         * tests/unistr/test-u16-mbsnlen.c: New file.
8744
8745         Tests for module 'unistr/u8-mbsnlen'.
8746         * modules/unistr/u8-mbsnlen-tests: New file.
8747         * tests/unistr/test-u8-mbsnlen.c: New file.
8748
8749         Tests for module 'unistr/u32-chr'.
8750         * modules/unistr/u32-chr-tests: New file.
8751         * tests/unistr/test-u32-chr.c: New file.
8752
8753         Tests for module 'unistr/u16-chr'.
8754         * modules/unistr/u16-chr-tests: New file.
8755         * tests/unistr/test-u16-chr.c: New file.
8756
8757         Tests for module 'unistr/u8-chr'.
8758         * modules/unistr/u8-chr-tests: New file.
8759         * tests/unistr/test-u8-chr.c: New file.
8760         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
8761
8762         Tests for module 'unistr/u32-cmp2'.
8763         * modules/unistr/u32-cmp2-tests: New file.
8764         * tests/unistr/test-u32-cmp2.c: New file.
8765
8766         Tests for module 'unistr/u16-cmp2'.
8767         * modules/unistr/u16-cmp2-tests: New file.
8768         * tests/unistr/test-u16-cmp2.c: New file.
8769
8770         Tests for module 'unistr/u8-cmp2'.
8771         * modules/unistr/u8-cmp2-tests: New file.
8772         * tests/unistr/test-u8-cmp2.c: New file.
8773         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
8774
8775         Tests for module 'unistr/u32-cmp'.
8776         * modules/unistr/u32-cmp-tests: New file.
8777         * tests/unistr/test-u32-cmp.c: New file.
8778
8779         Tests for module 'unistr/u16-cmp'.
8780         * modules/unistr/u16-cmp-tests: New file.
8781         * tests/unistr/test-u16-cmp.c: New file.
8782
8783         Tests for module 'unistr/u8-cmp'.
8784         * modules/unistr/u8-cmp-tests: New file.
8785         * tests/unistr/test-u8-cmp.c: New file.
8786         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
8787
8788         Tests for module 'unistr/u32-set'.
8789         * modules/unistr/u32-set-tests: New file.
8790         * tests/unistr/test-u32-set.c: New file.
8791
8792         Tests for module 'unistr/u16-set'.
8793         * modules/unistr/u16-set-tests: New file.
8794         * tests/unistr/test-u16-set.c: New file.
8795
8796         Tests for module 'unistr/u8-set'.
8797         * modules/unistr/u8-set-tests: New file.
8798         * tests/unistr/test-u8-set.c: New file.
8799         * tests/unistr/test-set.h: New file.
8800
8801         Tests for module 'unistr/u32-move'.
8802         * modules/unistr/u32-move-tests: New file.
8803         * tests/unistr/test-u32-move.c: New file.
8804
8805         Tests for module 'unistr/u16-move'.
8806         * modules/unistr/u16-move-tests: New file.
8807         * tests/unistr/test-u16-move.c: New file.
8808
8809         Tests for module 'unistr/u8-move'.
8810         * modules/unistr/u8-move-tests: New file.
8811         * tests/unistr/test-u8-move.c: New file.
8812         * tests/unistr/test-move.h: New file.
8813
8814         Tests for module 'unistr/u32-cpy'.
8815         * modules/unistr/u32-cpy-tests: New file.
8816         * tests/unistr/test-u32-cpy.c: New file.
8817
8818         Tests for module 'unistr/u16-cpy'.
8819         * modules/unistr/u16-cpy-tests: New file.
8820         * tests/unistr/test-u16-cpy.c: New file.
8821
8822         Tests for module 'unistr/u8-cpy'.
8823         * modules/unistr/u8-cpy-tests: New file.
8824         * tests/unistr/test-u8-cpy.c: New file.
8825         * tests/unistr/test-cpy.h: New file.
8826
8827 2010-01-09  Bruno Haible  <bruno@clisp.org>
8828
8829         Tests for module 'unistr/u32-uctomb'.
8830         * modules/unistr/u32-uctomb-tests: New file.
8831         * tests/unistr/test-u32-uctomb.c: New file.
8832
8833         Tests for module 'unistr/u16-uctomb'.
8834         * modules/unistr/u16-uctomb-tests: New file.
8835         * tests/unistr/test-u16-uctomb.c: New file.
8836
8837         Tests for module 'unistr/u8-uctomb'.
8838         * modules/unistr/u8-uctomb-tests: New file.
8839         * tests/unistr/test-u8-uctomb.c: New file.
8840
8841         Tests for module 'unistr/u32-mbtoucr'.
8842         * modules/unistr/u32-mbtoucr-tests: New file.
8843         * tests/unistr/test-u32-mbtoucr.c: New file.
8844
8845         Tests for module 'unistr/u16-mbtoucr'.
8846         * modules/unistr/u16-mbtoucr-tests: New file.
8847         * tests/unistr/test-u16-mbtoucr.c: New file.
8848
8849         Tests for module 'unistr/u8-mbtoucr'.
8850         * modules/unistr/u8-mbtoucr-tests: New file.
8851         * tests/unistr/test-u8-mbtoucr.c: New file.
8852
8853         Tests for module 'unistr/u32-mbtouc'.
8854         * modules/unistr/u32-mbtouc-tests: New file.
8855         * tests/unistr/test-u32-mbtouc.c: New file.
8856
8857         Tests for module 'unistr/u16-mbtouc'.
8858         * modules/unistr/u16-mbtouc-tests: New file.
8859         * tests/unistr/test-u16-mbtouc.c: New file.
8860
8861         Tests for module 'unistr/u8-mbtouc'.
8862         * modules/unistr/u8-mbtouc-tests: New file.
8863         * tests/unistr/test-u8-mbtouc.c: New file.
8864
8865         Tests for module 'unistr/u32-mbtouc-unsafe'.
8866         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
8867         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
8868         * tests/unistr/test-u32-mbtouc.h: New file.
8869
8870         Tests for module 'unistr/u16-mbtouc-unsafe'.
8871         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
8872         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
8873         * tests/unistr/test-u16-mbtouc.h: New file.
8874
8875         Tests for module 'unistr/u8-mbtouc-unsafe'.
8876         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
8877         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
8878         * tests/unistr/test-u8-mbtouc.h: New file.
8879
8880         Tests for module 'unistr/u32-mblen'.
8881         * modules/unistr/u32-mblen-tests: New file.
8882         * tests/unistr/test-u32-mblen.c: New file.
8883
8884         Tests for module 'unistr/u16-mblen'.
8885         * modules/unistr/u16-mblen-tests: New file.
8886         * tests/unistr/test-u16-mblen.c: New file.
8887
8888         Tests for module 'unistr/u8-mblen'.
8889         * modules/unistr/u8-mblen-tests: New file.
8890         * tests/unistr/test-u8-mblen.c: New file.
8891
8892         Tests for module 'unistr/u32-to-u16'.
8893         * modules/unistr/u32-to-u16-tests: New file.
8894         * tests/unistr/test-u32-to-u16.c: New file.
8895
8896         Tests for module 'unistr/u32-to-u8'.
8897         * modules/unistr/u32-to-u8-tests: New file.
8898         * tests/unistr/test-u32-to-u8.c: New file.
8899
8900         Tests for module 'unistr/u16-to-u32'.
8901         * modules/unistr/u16-to-u32-tests: New file.
8902         * tests/unistr/test-u16-to-u32.c: New file.
8903
8904         Tests for module 'unistr/u16-to-u8'.
8905         * modules/unistr/u16-to-u8-tests: New file.
8906         * tests/unistr/test-u16-to-u8.c: New file.
8907
8908         Tests for module 'unistr/u8-to-u32'.
8909         * modules/unistr/u8-to-u32-tests: New file.
8910         * tests/unistr/test-u8-to-u32.c: New file.
8911
8912         Tests for module 'unistr/u8-to-u16'.
8913         * modules/unistr/u8-to-u16-tests: New file.
8914         * tests/unistr/test-u8-to-u16.c: New file.
8915
8916         Tests for module 'unistr/u32-check'.
8917         * modules/unistr/u32-check-tests: New file.
8918         * tests/unistr/test-u32-check.c: New file.
8919
8920         Tests for module 'unistr/u16-check'.
8921         * modules/unistr/u16-check-tests: New file.
8922         * tests/unistr/test-u16-check.c: New file.
8923
8924         Tests for module 'unistr/u8-check'.
8925         * modules/unistr/u8-check-tests: New file.
8926         * tests/unistr/test-u8-check.c: New file.
8927
8928         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
8929         (category_equals): New function.
8930         (main): Add more tests.
8931         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
8932
8933         * tests/unictype/test-bidi_byname.c (main): Add more tests.
8934
8935 2010-01-10  Bruno Haible  <bruno@clisp.org>
8936
8937         unistr/u*-strcoll: Try harder to distinguish different strings.
8938         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
8939         compare s1 and s2 to see if they are different.
8940
8941 2010-01-10  Bruno Haible  <bruno@clisp.org>
8942
8943         unistr/u*-stpncpy: Fix the return value.
8944         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
8945         description of the return value consistent with stpncpy in glibc.
8946         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
8947         written non-NUL unit.
8948
8949 2010-01-10  Bruno Haible  <bruno@clisp.org>
8950
8951         unistr/u*-next: Add missing dependencies.
8952         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
8953         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
8954         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
8955
8956 2010-01-10  Bruno Haible  <bruno@clisp.org>
8957
8958         unistr/u8-mbsnlen: Fix return value for incomplete character.
8959         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
8960         u8_mblen.
8961         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
8962         Remove unistr/u8-mblen.
8963         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
8964         u16_mblen.
8965         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
8966         Remove unistr/u16-mblen.
8967
8968 2010-01-10  Bruno Haible  <bruno@clisp.org>
8969
8970         wchar: Fix compilation error when <wchar.h> is used from coreutils.
8971         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
8972         Reported by Brian Gough <bjg@gnu.org> and
8973         Chris Clayton <chris2553@googlemail.com> via
8974         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
8975
8976 2010-01-09  Bruno Haible  <bruno@clisp.org>
8977
8978         unistr/u16-to-u32: Reject invalid input.
8979         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
8980         u16_mbtouc.
8981         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
8982         Remove unistr/u16-mbtouc.
8983
8984         unistr/u16-to-u8: Reject invalid input.
8985         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
8986         u16_mbtouc.
8987         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
8988         Remove unistr/u16-mbtouc.
8989
8990         unistr/u8-to-u32: Reject invalid input.
8991         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
8992         u8_mbtouc.
8993         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
8994         Remove unistr/u8-mbtouc.
8995
8996         unistr/u8-to-u16: Reject invalid input.
8997         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
8998         u8_mbtouc.
8999         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
9000         Remove unistr/u8-mbtouc.
9001
9002 2010-01-09  Bruno Haible  <bruno@clisp.org>
9003
9004         Tests for module 'getlogin'.
9005         * modules/getlogin-tests: New file.
9006         * tests/test-getlogin.c: New file.
9007
9008         New module 'getlogin'.
9009         * lib/unistd.in.h (getlogin): New declaration.
9010         * lib/getlogin.c: New file.
9011         * m4/getlogin.m4: New file.
9012         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
9013         HAVE_GETLOGIN.
9014         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
9015         HAVE_GETLOGIN.
9016         * modules/getlogin: New file.
9017         * doc/posix-functions/getlogin.texi: Mention the new module.
9018         Reported by John W. Eaton <jwe@gnu.org>.
9019
9020 2010-01-09  Bruno Haible  <bruno@clisp.org>
9021
9022         getlogin_r: Support for native Windows.
9023         * lib/getlogin_r.c: Include <windows.h>
9024         (getlogin_r): Implement for native Windows.
9025         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
9026         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
9027         via John W. Eaton <jwe@gnu.org>.
9028
9029 2010-01-09  Bruno Haible  <bruno@clisp.org>
9030
9031         getlogin_r: Small fixes.
9032         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
9033         succeeds.
9034         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
9035         before testing whether getlogin_r is declared. No need to set
9036         HAVE_DECL_GETLOGIN_R to 1.
9037         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
9038
9039 2010-01-09  Bruno Haible  <bruno@clisp.org>
9040
9041         * lib/unistd.in.h (getlogin_r): Add comment.
9042
9043 2010-01-09  Bruno Haible  <bruno@clisp.org>
9044
9045         Tests for module 'getlogin_r'.
9046         * modules/getlogin_r-tests: New file.
9047         * tests/test-getlogin_r.c: New file.
9048
9049 2010-01-09  Jim Meyering  <meyering@redhat.com>
9050
9051         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
9052         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
9053         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
9054
9055 2010-01-08  Simon Josefsson  <simon@josefsson.org>
9056
9057         * lib/dup2.c (rpl_dup2): Improve comment.
9058
9059 2010-01-08  Eric Blake  <ebb9@byu.net>
9060
9061         maint.mk: allow packages to add makefile @@ exceptions
9062         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
9063         (sc_makefile_check): Rename...
9064         (sc_makefile_at_at_check): ...to this, and use hook.
9065
9066         dup2: work around mingw bug
9067         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
9068         Reported by Simon Josefsson.
9069
9070 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
9071
9072         glob: Fix C++ compilation.
9073         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
9074         C++.
9075
9076 2010-01-07  Bruno Haible  <bruno@clisp.org>
9077
9078         Fix indentation of wctype.in.h, broken since 2007-01-06.
9079         * lib/wctype.in.h: Fix indentation of preprocessor directives.
9080
9081 2010-01-07  Bruno Haible  <bruno@clisp.org>
9082
9083         mbslen: Avoid collision with system function.
9084         * lib/string.in.h [MirBSD]: Include <wchar.h>.
9085         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
9086         * m4/mbslen.m4: New file.
9087         * modules/mbslen (Files): Add it.
9088         (configure.ac): Invoke gl_MBSLEN.
9089         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
9090         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
9091         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
9092         via Ian Beckwith <ianb@erislabs.net>.
9093
9094 2010-01-07  Bruno Haible  <bruno@clisp.org>
9095
9096         dirent: Document the last fix.
9097         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
9098
9099 2010-01-07  Bruno Haible  <bruno@clisp.org>
9100
9101         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
9102         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
9103         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
9104         va_list are defined.
9105         * doc/posix-headers/stdio.texi: Document the bug of missing types.
9106         Reported by Eric Blake.
9107
9108 2010-01-07  Bruno Haible  <bruno@clisp.org>
9109
9110         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
9111         * modules/xlist (Depends-on): Add 'list',
9112         * modules/xoset (Depends-on): Add 'oset'.
9113         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9114
9115 2010-01-07  Bruno Haible  <bruno@clisp.org>
9116
9117         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
9118         * doc/posix-functions/strncasecmp.texi: Likewise.
9119
9120 2010-01-07  Bruno Haible  <bruno@clisp.org>
9121
9122         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
9123
9124 2010-01-07  John W. Eaton  <jwe@octave.org>
9125
9126         wctype: allow C++ use
9127         * lib/wctype.in.h: Add extern "C" block for C++.
9128
9129 2010-01-06  Eric Blake  <ebb9@byu.net>
9130
9131         maint.mk: detect incorrect GFDL usage
9132         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
9133
9134 2010-01-06  Jim Meyering  <meyering@redhat.com>
9135         and Eric Blake  <ebb9@byu.net>
9136
9137         maint.mk: ignore multi-line copyright in NEWS
9138         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
9139
9140 2010-01-06  Eric Blake  <ebb9@byu.net>
9141
9142         select: add missing dependency
9143         * modules/select-tests (Depends-on): Move sockets dependency...
9144         * modules/select (Depends-on): ...here.
9145         Reported by Ian Beckwith.
9146
9147         doc: regenerate INSTALL
9148         * doc/INSTALL: Reflect recent autoconf update.
9149         * doc/INSTALL.ISO: Likewise.
9150         * doc/INSTALL.UTF-8: Likewise.
9151
9152         pread: fix compilation on glibc
9153         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
9154         Reported by Ralf Wildenhues.
9155
9156         dirent: fix test failure
9157         * lib/dirent.in.h (includes): Guarantee ino_t.
9158         Reported by Ralf Wildenhues.
9159
9160 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
9161
9162         linkat, renameat: avoid bad free
9163         * lib/at-func2.c (at_func2): Fix typo.
9164         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
9165
9166 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9167
9168         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
9169         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
9170         to avoid failure of symlink test later.
9171
9172 2010-01-06  Eric Blake  <ebb9@byu.net>
9173
9174         stdio, unistd: guarantee ssize_t
9175         * lib/unistd.in.h (includes): Ensure that types required by POSIX
9176         2008 are exposed when needed.
9177         * lib/stdio.in.h (includes): Likewise.
9178         Reported by Ralf Wildenhues.
9179
9180 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
9181
9182         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
9183         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
9184         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
9185
9186 2010-01-06  Jim Meyering  <meyering@redhat.com>
9187
9188         readtokens: this module *does* require xalloc.h
9189         It uses only functions that were omitted by the old syntax-check rule.
9190         * lib/readtokens.c: Include "xalloc.h" once again.
9191         * modules/readtokens (Depends-on): Add xalloc.
9192         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
9193
9194 2010-01-05  Eric Blake  <ebb9@byu.net>
9195
9196         maint: support 'make announcement' from a VPATH build
9197         * top/maint.mk (announcement): Look for correct NEWS file.
9198
9199 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
9200
9201         utimens (fdutimens): ignore a negative FD, per contract
9202         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
9203         when we have a valid file descriptor.  Otherwise, using a brand
9204         new glibc (with just-patched futimens that now fails with EBADF)
9205         would cause this function to fail with ENOSYS.
9206         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
9207         See also http://bugzilla.redhat.com/552320.
9208
9209 2010-01-05  Eric Blake  <ebb9@byu.net>
9210
9211         strcase: document what it provides
9212         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
9213         gnulib module.
9214         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
9215         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
9216
9217 2010-01-05  Jim Meyering  <meyering@redhat.com>
9218
9219         maint: remove useless inclusions of "xalloc.h"
9220         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
9221         * lib/readtokens.c: Likewise.
9222         * lib/same.c: Likewise.
9223         * modules/getloadavg (Depends-on): Remove xalloc.
9224         * modules/readtokens: Likewise.
9225         * modules/same: Likewise.
9226
9227         maint.mk: include 4 more function names in alloca.h-checking regexp
9228         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
9229         regexp.  Before, we would give a false-positive (saying alloca.h
9230         is included unnecessarily) when the only uses involved omitted symbols.
9231
9232         xalloc.h: use consistent formatting
9233         * lib/xalloc.h: Move declarations to start in the first column.
9234
9235 2010-01-05  Eric Blake  <ebb9@byu.net>
9236
9237         mkdir: avoid xalloc
9238         * lib/mkdir.c (includes): Drop unused header.
9239         Reported by John W. Eaton.
9240
9241 2010-01-04  Jim Meyering  <meyering@redhat.com>
9242
9243         nl_langinfo: avoid configure-time syntax error
9244         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
9245         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
9246         the empty string.  Don't let that provoke a shell syntax error.
9247
9248         regcomp, regexec, fnmatch: avoid array bounds read error
9249         * lib/regcomp.c (build_equiv_class): From glibc:
9250         Use only the low 24 bits of a findidx return value as an index
9251         into the weights array.  Patch by Ulrich Drepper:
9252         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
9253         * lib/regexec.c (check_node_accept_bytes): Likewise.
9254         * lib/fnmatch_loop.c (FCT): Likewise.
9255
9256         regcomp: skip collseq lookup when there are no rules
9257         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
9258         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
9259
9260         regcomp: recognize ill-formed { } expressions
9261         * lib/regcomp.c (parse_dup_op): From glibc:
9262         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
9263
9264         regcomp: fix typo in comment
9265         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
9266         s/satisfy/satisfies/.
9267
9268         regcomp: sync from glibc: remove dead store
9269         * lib/regcomp.c (duplicate_node_closure): Remove useless
9270         search_duplicated_node call and dead store.
9271
9272         regcomp: sync from glibc; always use nl_langinfo
9273         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
9274         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
9275         * modules/regex (Depends-on): Add nl_langinfo.
9276
9277 2010-01-04  Eric Blake  <ebb9@byu.net>
9278
9279         fdopendir: fix configure test
9280         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
9281
9282 2010-01-01  Bruno Haible  <bruno@clisp.org>
9283
9284         wchar: Remove unused configure check.
9285         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
9286
9287 2010-01-01  Eric Blake  <ebb9@byu.net>
9288
9289         headers: make check of system header explicit
9290         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
9291         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
9292         ourselves.
9293         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
9294         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9295         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
9296         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
9297         internals.
9298         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
9299         missing.
9300         Suggested by Bruno Haible.
9301
9302 2010-01-01  Jim Meyering  <meyering@redhat.com>
9303
9304         ChangeLog: tweak to eliminate unnecessary copyright line
9305         * ChangeLog: Remove a copyright line that was mistakenly updated
9306         by today's update-copyright run.  Reported by Eric Blake.
9307
9308         test-update-copyright: don't let envvar setting cause test failure
9309         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
9310
9311 2010-01-01  Bruno Haible  <bruno@clisp.org>
9312
9313         localename: Avoid gcc warning.
9314         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
9315         function if it is not used.
9316
9317 2010-01-01  Jim Meyering  <meyering@redhat.com>
9318
9319         update nearly all FSF copyright year lists to include 2010
9320         Use the same procedure as for 2009, outlined in
9321         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
9322
9323         version-etc: set COPYRIGHT_YEAR to 2010
9324         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
9325
9326 2009-12-31  Eric Blake  <ebb9@byu.net>
9327
9328         doc: correct availability of cygwin 1.5.x getopt
9329         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
9330         variables.
9331         * doc/posix-functions/opterr.texi (opterr): Likewise.
9332         * doc/posix-functions/optind.texi (optind): Likewise.
9333         * doc/posix-functions/optopt.texi (optopt): Likewise.
9334         * doc/posix-functions/tzname.texi (tzname): Likewise.
9335
9336         openat: update maintainer
9337         * modules/openat (Maintainer): Add myself.
9338
9339         utimens: avoid shadowing warning
9340         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
9341         buffers into one, to avoid shadowing, as well as avoiding a
9342         redundant stat.
9343         Reported by Jim Meyering.
9344
9345         test-dup2: avoid compiler warning
9346         * tests/test-dup2.c (is_inheritable): Only define if used.
9347
9348 2010-01-01  Bruno Haible  <bruno@clisp.org>
9349
9350         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
9351         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
9352         defined, use wctomb instead of wcrtomb.
9353
9354 2010-01-01  Bruno Haible  <bruno@clisp.org>
9355
9356         iconv: Reject native Solaris iconv.
9357         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
9358         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
9359
9360 2009-12-31  Bruno Haible  <bruno@clisp.org>
9361
9362         * tests/test-signal.c (main): Remove test of 'SIG'.
9363
9364 2009-12-31  Bruno Haible  <bruno@clisp.org>
9365
9366         spawn: Fix incomplete fix.
9367         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
9368         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
9369         warnings for GNULIB_POSIXCHECK again.
9370         Reported by Eric Blake.
9371
9372 2009-12-31  Bruno Haible  <bruno@clisp.org>
9373
9374         Avoid namespace pollution on glibc systems.
9375         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
9376         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
9377         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
9378         glibc systems.
9379
9380 2009-12-31  Bruno Haible  <bruno@clisp.org>
9381
9382         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
9383         (gl_REPLACE_WCHAR_H): Turn into a no-op.
9384         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
9385         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
9386         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
9387         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
9388         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
9389
9390 2009-12-31  Bruno Haible  <bruno@clisp.org>
9391
9392         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
9393         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
9394         afterwards.
9395
9396 2009-12-31  Bruno Haible  <bruno@clisp.org>
9397
9398         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
9399         SYS_UTSNAME_H.
9400
9401 2009-12-31  Bruno Haible  <bruno@clisp.org>
9402
9403         spawn: Fix misapplied patch.
9404         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
9405         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
9406         warnings for GNULIB_POSIXCHECK.
9407
9408 2009-12-31  Bruno Haible  <bruno@clisp.org>
9409
9410         times: Update after sys_times changed.
9411         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
9412         * modules/times (Files): Add it.
9413         (configure.ac): Invoke gl_FUNC_TIMES.
9414
9415 2009-12-31  Bruno Haible  <bruno@clisp.org>
9416
9417         Use AC_C_INLINE where necessary.
9418         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
9419         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
9420         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
9421         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
9422         * m4/mbfile.m4 (gl_MBFILE): Likewise.
9423         * m4/mbiter.m4 (gl_MBITER): Likewise.
9424         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9425         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9426         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
9427         * modules/u64 (configure.ac): Likewise.
9428
9429 2009-12-31  Bruno Haible  <bruno@clisp.org>
9430
9431         Use AC_C_INLINE instead of module 'inline' where possible.
9432         * modules/inline (Description): Clarify purpose.
9433         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
9434         * modules/count-one-bits (Depends-on): Remove inline.
9435         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
9436         * modules/openat (Depends-on): Remove inline.
9437         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
9438         instead of depending on module 'inline'.
9439         * modules/filevercmp (Depends-on, configure.ac): Likewise.
9440         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
9441         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
9442         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
9443         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
9444         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
9445         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
9446         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
9447         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
9448         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
9449         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
9450         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
9451         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
9452         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
9453         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
9454         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
9455         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
9456         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
9457         Likewise.
9458         * modules/unictype/property-ascii-hex-digit (Depends-on,
9459         configure.ac): Likewise.
9460         * modules/unictype/property-bidi-arabic-digit (Depends-on,
9461         configure.ac): Likewise.
9462         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
9463         configure.ac): Likewise.
9464         * modules/unictype/property-bidi-block-separator (Depends-on,
9465         configure.ac): Likewise.
9466         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
9467         configure.ac): Likewise.
9468         * modules/unictype/property-bidi-common-separator (Depends-on,
9469         configure.ac): Likewise.
9470         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
9471         Likewise.
9472         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
9473         configure.ac): Likewise.
9474         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
9475         configure.ac): Likewise.
9476         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
9477         configure.ac): Likewise.
9478         * modules/unictype/property-bidi-european-digit (Depends-on,
9479         configure.ac): Likewise.
9480         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
9481         configure.ac): Likewise.
9482         * modules/unictype/property-bidi-left-to-right (Depends-on,
9483         configure.ac): Likewise.
9484         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
9485         configure.ac): Likewise.
9486         * modules/unictype/property-bidi-other-neutral (Depends-on,
9487         configure.ac): Likewise.
9488         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
9489         Likewise.
9490         * modules/unictype/property-bidi-segment-separator (Depends-on,
9491         configure.ac): Likewise.
9492         * modules/unictype/property-bidi-whitespace (Depends-on,
9493         configure.ac): Likewise.
9494         * modules/unictype/property-combining (Depends-on, configure.ac):
9495         Likewise.
9496         * modules/unictype/property-composite (Depends-on, configure.ac):
9497         Likewise.
9498         * modules/unictype/property-currency-symbol (Depends-on,
9499         configure.ac): Likewise.
9500         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
9501         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
9502         Likewise.
9503         * modules/unictype/property-default-ignorable-code-point (Depends-on,
9504         configure.ac): Likewise.
9505         * modules/unictype/property-deprecated (Depends-on, configure.ac):
9506         Likewise.
9507         * modules/unictype/property-diacritic (Depends-on, configure.ac):
9508         Likewise.
9509         * modules/unictype/property-extender (Depends-on, configure.ac):
9510         Likewise.
9511         * modules/unictype/property-format-control (Depends-on, configure.ac):
9512         Likewise.
9513         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
9514         Likewise.
9515         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
9516         Likewise.
9517         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
9518         Likewise.
9519         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
9520         Likewise.
9521         * modules/unictype/property-hyphen (Depends-on, configure.ac):
9522         Likewise.
9523         * modules/unictype/property-id-continue (Depends-on, configure.ac):
9524         Likewise.
9525         * modules/unictype/property-id-start (Depends-on, configure.ac):
9526         Likewise.
9527         * modules/unictype/property-ideographic (Depends-on, configure.ac):
9528         Likewise.
9529         * modules/unictype/property-ids-binary-operator (Depends-on,
9530         configure.ac): Likewise.
9531         * modules/unictype/property-ids-trinary-operator (Depends-on,
9532         configure.ac): Likewise.
9533         * modules/unictype/property-ignorable-control (Depends-on,
9534         configure.ac): Likewise.
9535         * modules/unictype/property-iso-control (Depends-on, configure.ac):
9536         Likewise.
9537         * modules/unictype/property-join-control (Depends-on, configure.ac):
9538         Likewise.
9539         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
9540         Likewise.
9541         * modules/unictype/property-line-separator (Depends-on, configure.ac):
9542         Likewise.
9543         * modules/unictype/property-logical-order-exception (Depends-on,
9544         configure.ac): Likewise.
9545         * modules/unictype/property-lowercase (Depends-on, configure.ac):
9546         Likewise.
9547         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
9548         * modules/unictype/property-non-break (Depends-on, configure.ac):
9549         Likewise.
9550         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
9551         Likewise.
9552         * modules/unictype/property-numeric (Depends-on, configure.ac):
9553         Likewise.
9554         * modules/unictype/property-other-alphabetic (Depends-on,
9555         configure.ac): Likewise.
9556         * modules/unictype/property-other-default-ignorable-code-point
9557         (Depends-on, configure.ac): Likewise.
9558         * modules/unictype/property-other-grapheme-extend (Depends-on,
9559         configure.ac): Likewise.
9560         * modules/unictype/property-other-id-continue (Depends-on,
9561         configure.ac): Likewise.
9562         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
9563         Likewise.
9564         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
9565         Likewise.
9566         * modules/unictype/property-other-math (Depends-on, configure.ac):
9567         Likewise.
9568         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
9569         Likewise.
9570         * modules/unictype/property-paired-punctuation (Depends-on,
9571         configure.ac): Likewise.
9572         * modules/unictype/property-paragraph-separator (Depends-on,
9573         configure.ac): Likewise.
9574         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
9575         Likewise.
9576         * modules/unictype/property-pattern-white-space (Depends-on,
9577         configure.ac): Likewise.
9578         * modules/unictype/property-private-use (Depends-on, configure.ac):
9579         Likewise.
9580         * modules/unictype/property-punctuation (Depends-on, configure.ac):
9581         Likewise.
9582         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
9583         Likewise.
9584         * modules/unictype/property-radical (Depends-on, configure.ac):
9585         Likewise.
9586         * modules/unictype/property-sentence-terminal (Depends-on,
9587         configure.ac): Likewise.
9588         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
9589         Likewise.
9590         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
9591         * modules/unictype/property-terminal-punctuation (Depends-on,
9592         configure.ac): Likewise.
9593         * modules/unictype/property-titlecase (Depends-on, configure.ac):
9594         Likewise.
9595         * modules/unictype/property-unassigned-code-value (Depends-on,
9596         configure.ac): Likewise.
9597         * modules/unictype/property-unified-ideograph (Depends-on,
9598         configure.ac): Likewise.
9599         * modules/unictype/property-uppercase (Depends-on, configure.ac):
9600         Likewise.
9601         * modules/unictype/property-variation-selector (Depends-on,
9602         configure.ac): Likewise.
9603         * modules/unictype/property-white-space (Depends-on, configure.ac):
9604         Likewise.
9605         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
9606         Likewise.
9607         * modules/unictype/property-xid-start (Depends-on, configure.ac):
9608         Likewise.
9609         * modules/unictype/property-zero-width (Depends-on, configure.ac):
9610         Likewise.
9611         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
9612         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
9613         Likewise.
9614
9615 2009-12-31  Bruno Haible  <bruno@clisp.org>
9616
9617         Remove unnecessary AC_C_INLINE invocation.
9618         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
9619         since 2009-08-21.
9620
9621 2009-12-31  Jim Meyering  <meyering@redhat.com>
9622
9623         maint.mk: don't require explicit gpg_key_ID in cfg.mk
9624         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
9625         With this change, we can all remove the gpg_key_ID = ... definition
9626         from our respective cfg.mk files.
9627
9628         maint.mk: create announcement template in ~/, not in /tmp
9629         * top/maint.mk (emit_upload_commands): Adjust.
9630         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
9631         Remove temporary file, .ci-msg.
9632
9633 2009-12-31  Eric Blake  <ebb9@byu.net>
9634
9635         link-warning: always build headers with link warnings
9636         * modules/arpa_inet (Makefile.am): Always build replacement
9637         header.
9638         * modules/ctype (Makefile.am): Likewise.
9639         * modules/dirent (Makefile.am): Likewise.
9640         * modules/inttypes (Makefile.am): Likewise.
9641         * modules/langinfo (Makefile.am): Likewise.
9642         * modules/locale (Makefile.am): Likewise.
9643         * modules/spawn (Makefile.am): Likewise.
9644         * modules/sys_file (Makefile.am): Likewise.
9645         * modules/sys_ioctl (Makefile.am): Likewise.
9646         * modules/sys_select (Makefile.am): Likewise.
9647         * modules/sys_socket (Makefile.am): Likewise.
9648         * modules/sys_times (Makefile.am): Likewise.
9649         * modules/sys_utsname (Makefile.am): Likewise.
9650         * modules/sys_wait (Makefile.am): Likewise.
9651         * modules/wchar (Makefile.am): Likewise.
9652         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
9653         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
9654         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
9655         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
9656         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
9657         Likewise.
9658         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
9659         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
9660         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
9661         Likewise.
9662         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
9663         Likewise.
9664         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
9665         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
9666         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
9667         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9668         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9669         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
9670         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
9671         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
9672         (gl_WCHAR_H_DEFAULTS): Likewise.
9673
9674 2009-12-31  Eric Blake  <ebb9@byu.net>
9675
9676         signal, spawn: use link warnings
9677         * lib/signal.in.h (sigset_t): Make unconditional.
9678         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
9679         (sigpending, sigprocmask, sigaction): Add link warnings.
9680         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
9681         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
9682         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
9683         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
9684         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
9685         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
9686         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
9687         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
9688         (posix_spawn_file_actions_destroy)
9689         (posix_spawn_file_actions_addopen)
9690         (posix_spawn_file_actions_addclose)
9691         (posix_spawn_file_actions_adddup2): Likewise.
9692         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
9693         * tests/test-signal.c (main): Enhance test.
9694
9695         spawn: improve wrapper support
9696         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
9697         (gl_SPAWN_H_DEFAULTS): New defaults.
9698         * modules/spawn (Makefile.am): Substitute them.
9699         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
9700         Only declare if missing or broken.
9701
9702         sys_times, sys_utsname: use include_next
9703         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
9704         header.
9705         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
9706         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
9707         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
9708         * modules/sys_times (Depends-on): Add include_next.
9709         (Makefile.am): Substitute additional values.
9710         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
9711         * lib/sys_times.in.h (includes): Include native header, if
9712         available.
9713         * lib/sys_utsname.in.h (includes): Likewise.
9714         * tests/test-sys_times.c (main): Enhance test.
9715
9716         fdutimensat: revert prior patch
9717         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
9718         utimens.h.
9719         Reported by Bruno Haible.
9720
9721 2009-12-30  Eric Blake  <ebb9@byu.net>
9722
9723         sys_wait: drop link-warning dependency
9724         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
9725         link-warning efforts.
9726         * lib/sys_wait.in.h: Likewise.
9727
9728         fdutimensat: remove bogus dependency
9729         * modules/fdutimensat (Depends-on): Drop inline.
9730
9731         unistd: fix typo
9732         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
9733
9734 2009-12-30  Bruno Haible  <bruno@clisp.org>
9735
9736         Fix compilation error with Solaris cc.
9737         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
9738         * lib/unicase/u16-is-invariant.c: Likewise.
9739         * lib/unicase/u32-is-invariant.c: Likewise.
9740         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
9741
9742 2009-12-30  Bruno Haible  <bruno@clisp.org>
9743
9744         Fix test crash.
9745         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
9746         locales.
9747         Reported by Simon Josefsson <simon@josefsson.org>.
9748
9749 2009-12-30  Bruno Haible  <bruno@clisp.org>
9750
9751         Fix compilation error on most platforms.
9752         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
9753         Reported by Simon Josefsson <simon@josefsson.org>
9754         and Nelson H. F. Beebe <beebe@math.utah.edu>.
9755
9756 2009-12-30  Eric Blake  <ebb9@byu.net>
9757
9758         futimens, utimensat: work around ntfs-3g bug
9759         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
9760         a ctime bug is present, and expand workaround to cover ntfs-3g.
9761         * lib/utimens.c (fdutimens, lutimens): Likewise.
9762         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
9763         (validate_timespec): Adjust return value.
9764         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
9765         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9766         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
9767
9768 2009-12-29  Eric Blake  <ebb9@byu.net>
9769
9770         link-warning: make usage consistent
9771         * modules/ctype (Depends-on): Add link-warning.
9772         (Makefile.am): Update rules accordingly.
9773         * modules/langinfo (Depends-on, Makefile.am): Likewise.
9774         * modules/locale (Depends-on, Makefile.am): Likewise.
9775         * modules/sys_file (Makefile.am): Likewise.
9776         * modules/getopt-posix (Makefile.am): Delete unused link warning
9777         efforts.
9778         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
9779         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
9780         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
9781         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
9782
9783         stdio: remove unused variables
9784         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
9785         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
9786         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
9787
9788         tests: test more substitute headers
9789         * modules/ctype-tests: New file.
9790         * modules/dirent-tests: Likewise.
9791         * modules/spawn-tests: Likewise.
9792         * modules/sys_file-tests: Likewise.
9793         * modules/sys_ioctl-tests: Likewise.
9794         * modules/sys_wait-tests: Likewise.
9795         * tests/test-ctype.c: Likewise.
9796         * tests/test-dirent.c: Likewise.
9797         * tests/test-spawn.c: Likewise.
9798         * tests/test-sys_file.c: Likewise.
9799         * tests/test-sys_ioctl.c: Likewise.
9800         * tests/test-sys_wait.c: Likewise.
9801         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
9802         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
9803         whether or not flock is in use.
9804
9805         tests: remove License section from module
9806         * modules/arpa_inet-tests: Remove unneeded section.
9807         * modules/byteswap-tests: Likewise.
9808         * modules/ceilf-tests: Likewise.
9809         * modules/ceill-tests: Likewise.
9810         * modules/crypto/des-tests: Likewise.
9811         * modules/crypto/gc-arcfour-tests: Likewise.
9812         * modules/crypto/gc-arctwo-tests: Likewise.
9813         * modules/crypto/gc-des-tests: Likewise.
9814         * modules/crypto/gc-hmac-md5-tests: Likewise.
9815         * modules/crypto/gc-hmac-sha1-tests: Likewise.
9816         * modules/crypto/gc-md2-tests: Likewise.
9817         * modules/crypto/gc-md4-tests: Likewise.
9818         * modules/crypto/gc-md5-tests: Likewise.
9819         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
9820         * modules/crypto/gc-rijndael-tests: Likewise.
9821         * modules/crypto/gc-sha1-tests: Likewise.
9822         * modules/crypto/gc-tests: Likewise.
9823         * modules/crypto/md2-tests: Likewise.
9824         * modules/crypto/md4-tests: Likewise.
9825         * modules/fcntl-h-tests: Likewise.
9826         * modules/floorf-tests: Likewise.
9827         * modules/floorl-tests: Likewise.
9828         * modules/frexp-nolibm-tests: Likewise.
9829         * modules/frexp-tests: Likewise.
9830         * modules/frexpl-nolibm-tests: Likewise.
9831         * modules/frexpl-tests: Likewise.
9832         * modules/getaddrinfo-tests: Likewise.
9833         * modules/inttypes-tests: Likewise.
9834         * modules/isfinite-tests: Likewise.
9835         * modules/isinf-tests: Likewise.
9836         * modules/ldexpl-tests: Likewise.
9837         * modules/locale-tests: Likewise.
9838         * modules/math-tests: Likewise.
9839         * modules/netdb-tests: Likewise.
9840         * modules/netinet_in-tests: Likewise.
9841         * modules/printf-frexp-tests: Likewise.
9842         * modules/printf-frexpl-tests: Likewise.
9843         * modules/priv-set-tests: Likewise.
9844         * modules/random_r-tests: Likewise.
9845         * modules/round-tests: Likewise.
9846         * modules/roundf-tests: Likewise.
9847         * modules/roundl-tests: Likewise.
9848         * modules/search-tests: Likewise.
9849         * modules/select-tests: Likewise.
9850         * modules/signal-tests: Likewise.
9851         * modules/stdbool-tests: Likewise.
9852         * modules/stddef-tests: Likewise.
9853         * modules/stdint-tests: Likewise.
9854         * modules/stdio-tests: Likewise.
9855         * modules/stdlib-tests: Likewise.
9856         * modules/string-tests: Likewise.
9857         * modules/strings-tests: Likewise.
9858         * modules/sys_select-tests: Likewise.
9859         * modules/sys_socket-tests: Likewise.
9860         * modules/sys_stat-tests: Likewise.
9861         * modules/sys_time-tests: Likewise.
9862         * modules/sys_utsname-tests: Likewise.
9863         * modules/sysexits-tests: Likewise.
9864         * modules/time-tests: Likewise.
9865         * modules/trunc-tests: Likewise.
9866         * modules/truncf-tests: Likewise.
9867         * modules/truncl-tests: Likewise.
9868         * modules/tsearch-tests: Likewise.
9869         * modules/unistd-tests: Likewise.
9870         * modules/wchar-tests: Likewise.
9871         * modules/wctype-tests: Likewise.
9872
9873         tests: fix license on several tests
9874         * tests/test-des.c: Update to GPLv3+.
9875         * tests/test-flock.c: Likewise.
9876         * tests/test-fsync.c: Likewise.
9877         * tests/test-futimens.h: Likewise.
9878         * tests/test-gc-arcfour.c: Likewise.
9879         * tests/test-gc-arctwo.c: Likewise.
9880         * tests/test-gc-des.c: Likewise.
9881         * tests/test-gc-hmac-md5.c: Likewise.
9882         * tests/test-gc-hmac-sha1.c: Likewise.
9883         * tests/test-gc-md2.c: Likewise.
9884         * tests/test-gc-md4.c: Likewise.
9885         * tests/test-gc-md5.c: Likewise.
9886         * tests/test-gc-pbkdf2-sha1.c: Likewise.
9887         * tests/test-gc-rijndael.c: Likewise.
9888         * tests/test-gc-sha1.c: Likewise.
9889         * tests/test-gc.c: Likewise.
9890         * tests/test-getcwd.c: Likewise.
9891         * tests/test-link.c: Likewise.
9892         * tests/test-link.h: Likewise.
9893         * tests/test-lutimens.h: Likewise.
9894         * tests/test-md2.c: Likewise.
9895         * tests/test-md4.c: Likewise.
9896         * tests/test-mkdir.h: Likewise.
9897         * tests/test-rename.c: Likewise.
9898         * tests/test-rename.h: Likewise.
9899         * tests/test-safe-alloc.c: Likewise.
9900         * tests/test-utimens-common.h: Likewise.
9901         * tests/test-utimens.h: Likewise.
9902
9903         maint: sync license texts
9904         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
9905         * doc/gpl-3.0.texi: Revert copyright year update.
9906         * doc/lgpl-3.0.texi: Likewise.
9907
9908 2009-12-29  Jim Meyering  <meyering@redhat.com>
9909
9910         update nearly all FSF copyright year lists to include 2009
9911         The files named by the following are exempted:
9912             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
9913               test -f "$dst" && { echo "$dst"; continue; }
9914               test -d "$dst" || continue
9915               echo "$dst"/$(basename "$src")
9916             done > exempt
9917             git ls-files tests/unictype >> exempt
9918         In the remaining files, convert to all-interval notation if
9919         - there is already at least one year interval like 2000-2003
9920         - the file is maintained by me
9921         - the file is in lib/uni*/, where that style already prevails
9922         Otherwise, use update-copyright's default.
9923
9924 2009-12-29  Simon Josefsson  <simon@josefsson.org>
9925         and Eric Blake  <ebb9@byu.net>
9926
9927         tests: don't require debug system() to pass
9928         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
9929         * tests/test-rmdir.h (test_rmdir_func): Likewise.
9930         * tests/test-unlink.h (test_unlink_func): Likewise.
9931         * tests/test-fstatat.c (main): ...into callers.
9932         * tests/test-lstat.c (main): Likewise.
9933         * tests/test-rmdir.c (main): Likewise.
9934         * tests/test-unlink.c (main): Likewise.
9935         * tests/test-unlinkat.c (main): Likewise.
9936         * tests/test-areadlink-with-size.c (main): Don't require a
9937         debug-only system call to pass, aiding cross-testing to mingw.
9938         * tests/test-areadlink.c (main): Likewise.
9939         * tests/test-areadlinkat-with-size.c (main): Likewise.
9940         * tests/test-areadlinkat.c (main): Likewise.
9941         * tests/test-canonicalize-lgpl.c (main): Likewise.
9942         * tests/test-canonicalize.c (main): Likewise.
9943         * tests/test-chown.c (main): Likewise.
9944         * tests/test-fchownat.c (main): Likewise.
9945         * tests/test-lchown.c (main): Likewise.
9946         * tests/test-fdutimensat.c (main): Likewise.
9947         * tests/test-futimens.c (main): Likewise.
9948         * tests/test-link.c (main): Likewise.
9949         * tests/test-linkat.c (main): Likewise.
9950         * tests/test-mkdir.c (main): Likewise.
9951         * tests/test-mkdirat.c (main): Likewise.
9952         * tests/test-mkfifo.c (main): Likewise.
9953         * tests/test-mkfifoat.c (main): Likewise.
9954         * tests/test-mknod.c (main): Likewise.
9955         * tests/test-readlink.c (main): Likewise.
9956         * tests/test-remove.c (main): Likewise.
9957         * tests/test-rename.c (main): Likewise.
9958         * tests/test-renameat.c (main): Likewise.
9959         * tests/test-symlink.c (main): Likewise.
9960         * tests/test-symlinkat.c (main): Likewise.
9961         * tests/test-utimens.c (main): Likewise.
9962         * tests/test-utimensat.c (main): Likewise.
9963
9964 2009-12-29  Simon Josefsson  <simon@josefsson.org>
9965
9966         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
9967         on $(UNUSED_PARAMETER_H) to avoid build failure.
9968
9969 2009-12-28  Jim Meyering  <meyering@redhat.com>
9970
9971         update-copyright: you may specify a max. line length other than 72
9972         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
9973
9974         maint: use consistent FSF copyright line syntax
9975         * lib/posixtm.c: Add missing comma in FSF copyright line.
9976         * lib/posixtm.h: Likewise.
9977         * lib/getugroups.c: Add missing ", Inc.".
9978
9979         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
9980         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
9981         FSF copyright line.  Remove trailing blanks.
9982
9983 2009-12-28  Eric Blake  <ebb9@byu.net>
9984
9985         test-dup2: reduce dependencies
9986         * modules/cloexec (Configure.ac): Set witness.
9987         * modules/dup2-tests (Depends-on): Drop cloexec.
9988         * tests/test-dup2.c (main): Skip portion of test if cloexec module
9989         not present.
9990         Suggested by Bruno Haible.
9991
9992 2009-12-26  Bruno Haible  <bruno@clisp.org>
9993
9994         Remove an unneeded dependency.
9995         * modules/fseterr (Depends-on): Remove dup2.
9996
9997 2009-12-26  Eric Blake  <ebb9@byu.net>
9998
9999         tests: use macros.h in more places
10000         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
10001         (ASSERT_STREAM): Provide default of stderr.
10002         * tests/test-dirent-safer.c: Include macros.h, using alternate
10003         stream for assertions.
10004         * tests/test-dup-safer.c: Likewise.
10005         * tests/test-freopen-safer.c: Likewise.
10006         * tests/test-getopt.c: Likewise.
10007         * tests/test-openat-safer.c: Likewise.
10008         * tests/test-pipe.c: Likewise.
10009         * tests/test-popen-safer.c: Likewise.
10010         * modules/dirent-safer-tests (Files): Include macros.h.
10011         * modules/unistd-safer-tests (Files): Likewise.
10012         * modules/freopen-safer-tests (Files): Likewise.
10013         * modules/getopt-posix-tests (Files): Likewise.
10014         * modules/openat-safer-tests (Files): Likewise.
10015         * modules/pipe-tests (Files): Likewise.
10016
10017 2009-12-26  Bruno Haible  <bruno@clisp.org>
10018
10019         javacomp: Portability fix.
10020         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
10021         that it also works on Solaris.
10022
10023 2009-12-26  Bruno Haible  <bruno@clisp.org>
10024
10025         localename: Fix storage allocation of gl_locale_name_thread's result.
10026         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
10027         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
10028         all platforms that have 'uselocale'.
10029         (gl_locale_name_thread_unsafe): New function, extracted from
10030         gl_locale_name_thread.
10031         (gl_locale_name_thread): Call struniq on all platforms that have
10032         'uselocale'.
10033         * tests/test-localename.c (test_locale_name_thread): Check that the
10034         resulting strings are permanently allocated.
10035         * modules/localename-tests (Depends-on): Add strdup.
10036
10037 2009-12-26  Bruno Haible  <bruno@clisp.org>
10038
10039         * tests/test-localename.c (categories): Fill in the strings.
10040
10041 2009-12-26  Jim Meyering  <meyering@redhat.com>
10042
10043         isdir: complete the removal of m4/isdir.m4
10044         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
10045
10046         isdir: clean up, since at least grep still uses it
10047         * lib/isdir.c: Include "isdir.h".
10048         (S_ISDIR): Remove now-unneeded definition.
10049         * modules/isdir (Files): Add lib/isdir.h.
10050         * lib/isdir.h: New file, with declaration.
10051         * m4/isdir.m4: Remove file -- unneeded.
10052
10053 2009-12-25  Bruno Haible  <bruno@clisp.org>
10054
10055         selinux-h: Make generated .h files standalone.
10056         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
10057         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
10058         * lib/se-selinux.in.h: Likewise.
10059         * modules/selinux-h (Depends-on): Add unused-parameter.
10060         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
10061         selinux/selinux.h and selinux/context.h.
10062         Suggested by Eric Blake.
10063
10064 2009-12-25  Bruno Haible  <bruno@clisp.org>
10065
10066         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
10067         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
10068         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
10069         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
10070         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
10071
10072 2009-12-24  Bruno Haible  <bruno@clisp.org>
10073
10074         openat: Fix warning.
10075         * lib/openat-proc.c: Include <unistd.h>.
10076
10077 2009-12-24  Bruno Haible  <bruno@clisp.org>
10078
10079         New module 'unused-parameter'.
10080         * build-aux/unused-parameter.h: New file, extracted from earlier
10081         gnulib-common.m4.
10082         * modules/unused-parameter: New file.
10083         * lib/unistr.h: Include unused-parameter.h.
10084         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
10085         _GL_UNUSED.
10086         * modules/unistr/base (Depends-on): Add unused-parameter.
10087
10088 2009-12-24  Bruno Haible  <bruno@clisp.org>
10089
10090         Add missing dependencies to 'extensions' module.
10091         * m4/extensions.m4: Add comment.
10092         * modules/accept4 (Depends-on): Add extensions.
10093         * modules/dup3 (Depends-on): Likewise.
10094         * modules/fcntl (Depends-on): Likewise.
10095         * modules/futimens (Depends-on): Likewise.
10096         * modules/mknod (Depends-on): Likewise.
10097         * modules/pipe2 (Depends-on): Likewise.
10098         * modules/stat-time (Depends-on): Likewise.
10099         * modules/strcasestr-simple (Depends-on): Likewise.
10100         * modules/strsignal (Depends-on): Likewise.
10101         * modules/utimensat (Depends-on): Likewise.
10102         * modules/localcharset (Depends-on): Likewise. Needed because of
10103         gl_FCNTL_O_FLAGS.
10104         * modules/wcrtomb (Depends-on): Likewise. Needed because of
10105         AC_TYPE_MBSTATE_T.
10106         * modules/wcsnrtombs (Depends-on): Likewise.
10107         * modules/wcsrtombs (Depends-on): Likewise.
10108
10109 2009-12-24  Bruno Haible  <bruno@clisp.org>
10110
10111         binary-io: Avoid gcc warning due to SET_BINARY.
10112         * lib/binary-io.h (SET_BINARY): Cast the result to void.
10113         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
10114
10115 2009-12-24  Bruno Haible  <bruno@clisp.org>
10116
10117         Avoid future namespace pollution on glibc systems.
10118         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
10119         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
10120         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
10121         glibc systems.
10122
10123 2009-12-24  Bruno Haible  <bruno@clisp.org>
10124
10125         Refactor common macros used in tests.
10126         * tests/macros.h: New file.
10127         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
10128         and/or <stdlib.h>, if appropriate.
10129         (ASSERT, SIZEOF): Remove macros.
10130         * tests/test-areadlink-with-size.c: Likewise.
10131         * tests/test-areadlinkat.c: Likewise.
10132         * tests/test-areadlinkat-with-size.c: Likewise.
10133         * tests/test-argmatch.c: Likewise.
10134         * tests/test-argv-iter.c: Likewise.
10135         * tests/test-array-mergesort.c: Likewise.
10136         * tests/test-array_list.c: Likewise.
10137         * tests/test-array_oset.c: Likewise.
10138         * tests/test-avltree_list.c: Likewise.
10139         * tests/test-avltree_oset.c: Likewise.
10140         * tests/test-avltreehash_list.c: Likewise.
10141         * tests/test-base64.c: Likewise.
10142         * tests/test-binary-io.c: Likewise.
10143         * tests/test-bitrotate.c: Likewise.
10144         * tests/test-btowc.c: Likewise.
10145         * tests/test-byteswap.c: Likewise.
10146         * tests/test-c-ctype.c: Likewise.
10147         * tests/test-c-stack.c: Likewise.
10148         * tests/test-c-strcasecmp.c: Likewise.
10149         * tests/test-c-strcasestr.c: Likewise.
10150         * tests/test-c-strncasecmp.c: Likewise.
10151         * tests/test-c-strstr.c: Likewise.
10152         * tests/test-canonicalize-lgpl.c: Likewise.
10153         * tests/test-canonicalize.c: Likewise.
10154         * tests/test-carray_list.c: Likewise.
10155         * tests/test-ceilf1.c: Likewise.
10156         * tests/test-ceilf2.c: Likewise.
10157         * tests/test-ceill.c: Likewise.
10158         * tests/test-chown.c: Likewise.
10159         * tests/test-cloexec.c: Likewise.
10160         * tests/test-copy-acl.c: Likewise.
10161         * tests/test-copy-file.c: Likewise.
10162         * tests/test-count-one-bits.c: Likewise.
10163         * tests/test-dprintf-posix.c: Likewise.
10164         * tests/test-dup2.c: Likewise.
10165         * tests/test-dup3.c: Likewise.
10166         * tests/test-duplocale.c: Likewise.
10167         * tests/test-fbufmode.c: Likewise.
10168         * tests/test-fchdir.c: Likewise.
10169         * tests/test-fchownat.c: Likewise.
10170         * tests/test-fcntl-safer.c: Likewise.
10171         * tests/test-fcntl.c: Likewise.
10172         * tests/test-fdopendir.c: Likewise.
10173         * tests/test-fdutimensat.c: Likewise.
10174         * tests/test-fflush2.c: Likewise.
10175         * tests/test-file-has-acl.c: Likewise.
10176         * tests/test-filevercmp.c: Likewise.
10177         * tests/test-flock.c: Likewise.
10178         * tests/test-floorf1.c: Likewise.
10179         * tests/test-floorf2.c: Likewise.
10180         * tests/test-floorl.c: Likewise.
10181         * tests/test-fnmatch.c: Likewise.
10182         * tests/test-fopen.h: Likewise.
10183         * tests/test-fpending.c: Likewise.
10184         * tests/test-fprintf-posix.c: Likewise.
10185         * tests/test-fpurge.c: Likewise.
10186         * tests/test-freadable.c: Likewise.
10187         * tests/test-freadahead.c: Likewise.
10188         * tests/test-freading.c: Likewise.
10189         * tests/test-freadptr.c: Likewise.
10190         * tests/test-freadptr2.c: Likewise.
10191         * tests/test-freadseek.c: Likewise.
10192         * tests/test-freopen.c: Likewise.
10193         * tests/test-frexp.c: Likewise.
10194         * tests/test-frexpl.c: Likewise.
10195         * tests/test-fseek.c: Likewise.
10196         * tests/test-fseeko.c: Likewise.
10197         * tests/test-fstatat.c: Likewise.
10198         * tests/test-fstrcmp.c: Likewise.
10199         * tests/test-fsync.c: Likewise.
10200         * tests/test-ftell.c: Likewise.
10201         * tests/test-ftello.c: Likewise.
10202         * tests/test-func.c: Likewise.
10203         * tests/test-futimens.c: Likewise.
10204         * tests/test-fwritable.c: Likewise.
10205         * tests/test-fwriting.c: Likewise.
10206         * tests/test-getcwd.c: Likewise.
10207         * tests/test-getdate.c: Likewise.
10208         * tests/test-getdelim.c: Likewise.
10209         * tests/test-getdtablesize.c: Likewise.
10210         * tests/test-getgroups.c: Likewise.
10211         * tests/test-getline.c: Likewise.
10212         * tests/test-getndelim2.c: Likewise.
10213         * tests/test-glob.c: Likewise.
10214         * tests/test-hash.c: Likewise.
10215         * tests/test-i-ring.c: Likewise.
10216         * tests/test-iconv-utf.c: Likewise.
10217         * tests/test-iconv.c: Likewise.
10218         * tests/test-idpriv-drop.c: Likewise.
10219         * tests/test-idpriv-droptemp.c: Likewise.
10220         * tests/test-inet_ntop.c: Likewise.
10221         * tests/test-inet_pton.c: Likewise.
10222         * tests/test-isblank.c: Likewise.
10223         * tests/test-isfinite.c: Likewise.
10224         * tests/test-isinf.c: Likewise.
10225         * tests/test-isnan.c: Likewise.
10226         * tests/test-isnand.h: Likewise.
10227         * tests/test-isnanf.h: Likewise.
10228         * tests/test-isnanl.h: Likewise.
10229         * tests/test-lchown.c: Likewise.
10230         * tests/test-ldexpl.c: Likewise.
10231         * tests/test-link.c: Likewise.
10232         * tests/test-linkat.c: Likewise.
10233         * tests/test-linked_list.c: Likewise.
10234         * tests/test-linkedhash_list.c: Likewise.
10235         * tests/test-localename.c: Likewise.
10236         * tests/test-lseek.c: Likewise.
10237         * tests/test-lstat.c: Likewise.
10238         * tests/test-mbmemcasecmp.c: Likewise.
10239         * tests/test-mbmemcasecoll.c: Likewise.
10240         * tests/test-mbrtowc.c: Likewise.
10241         * tests/test-mbscasecmp.c: Likewise.
10242         * tests/test-mbscasestr1.c: Likewise.
10243         * tests/test-mbscasestr2.c: Likewise.
10244         * tests/test-mbscasestr3.c: Likewise.
10245         * tests/test-mbscasestr4.c: Likewise.
10246         * tests/test-mbschr.c: Likewise.
10247         * tests/test-mbscspn.c: Likewise.
10248         * tests/test-mbsinit.c: Likewise.
10249         * tests/test-mbsncasecmp.c: Likewise.
10250         * tests/test-mbsnrtowcs.c: Likewise.
10251         * tests/test-mbspbrk.c: Likewise.
10252         * tests/test-mbspcasecmp.c: Likewise.
10253         * tests/test-mbsrchr.c: Likewise.
10254         * tests/test-mbsrtowcs.c: Likewise.
10255         * tests/test-mbsspn.c: Likewise.
10256         * tests/test-mbsstr1.c: Likewise.
10257         * tests/test-mbsstr2.c: Likewise.
10258         * tests/test-mbsstr3.c: Likewise.
10259         * tests/test-memchr.c: Likewise.
10260         * tests/test-memchr2.c: Likewise.
10261         * tests/test-memcmp.c: Likewise.
10262         * tests/test-memmem.c: Likewise.
10263         * tests/test-memrchr.c: Likewise.
10264         * tests/test-mkdir.c: Likewise.
10265         * tests/test-mkdirat.c: Likewise.
10266         * tests/test-mkfifo.c: Likewise.
10267         * tests/test-mkfifoat.c: Likewise.
10268         * tests/test-mknod.c: Likewise.
10269         * tests/test-nanosleep.c: Likewise.
10270         * tests/test-nl_langinfo.c: Likewise.
10271         * tests/test-obstack-printf.c: Likewise.
10272         * tests/test-open.c: Likewise.
10273         * tests/test-openat.c: Likewise.
10274         * tests/test-pipe-filter-gi1.c: Likewise.
10275         * tests/test-pipe-filter-gi2-main.c: Likewise.
10276         * tests/test-pipe-filter-ii1.c: Likewise.
10277         * tests/test-pipe-filter-ii2-main.c: Likewise.
10278         * tests/test-pipe2.c: Likewise.
10279         * tests/test-popen.h: Likewise.
10280         * tests/test-posixtm.c: Likewise.
10281         * tests/test-pread.c: Likewise.
10282         * tests/test-printf-frexp.c: Likewise.
10283         * tests/test-printf-frexpl.c: Likewise.
10284         * tests/test-printf-posix.c: Likewise.
10285         * tests/test-priv-set.c: Likewise.
10286         * tests/test-quotearg.c: Likewise.
10287         * tests/test-random_r.c: Likewise.
10288         * tests/test-rawmemchr.c: Likewise.
10289         * tests/test-rbtree_list.c: Likewise.
10290         * tests/test-rbtree_oset.c: Likewise.
10291         * tests/test-rbtreehash_list.c: Likewise.
10292         * tests/test-readlink.c: Likewise.
10293         * tests/test-remove.c: Likewise.
10294         * tests/test-rename.c: Likewise.
10295         * tests/test-renameat.c: Likewise.
10296         * tests/test-rmdir.c: Likewise.
10297         * tests/test-round1.c: Likewise.
10298         * tests/test-roundf1.c: Likewise.
10299         * tests/test-roundl.c: Likewise.
10300         * tests/test-safe-alloc.c: Likewise.
10301         * tests/test-sameacls.c: Likewise.
10302         * tests/test-set-mode-acl.c: Likewise.
10303         * tests/test-setenv.c: Likewise.
10304         * tests/test-sigaction.c: Likewise.
10305         * tests/test-signbit.c: Likewise.
10306         * tests/test-sleep.c: Likewise.
10307         * tests/test-snprintf-posix.c: Likewise.
10308         * tests/test-snprintf.c: Likewise.
10309         * tests/test-sprintf-posix.c: Likewise.
10310         * tests/test-stat-time.c: Likewise.
10311         * tests/test-stat.c: Likewise.
10312         * tests/test-strcasestr.c: Likewise.
10313         * tests/test-strchrnul.c: Likewise.
10314         * tests/test-strerror.c: Likewise.
10315         * tests/test-striconv.c: Likewise.
10316         * tests/test-striconveh.c: Likewise.
10317         * tests/test-striconveha.c: Likewise.
10318         * tests/test-strsignal.c: Likewise.
10319         * tests/test-strstr.c: Likewise.
10320         * tests/test-strtod.c: Likewise.
10321         * tests/test-strverscmp.c: Likewise.
10322         * tests/test-symlink.c: Likewise.
10323         * tests/test-symlinkat.c: Likewise.
10324         * tests/test-trunc1.c: Likewise.
10325         * tests/test-trunc2.c: Likewise.
10326         * tests/test-truncf1.c: Likewise.
10327         * tests/test-truncf2.c: Likewise.
10328         * tests/test-truncl.c: Likewise.
10329         * tests/test-uname.c: Likewise.
10330         * tests/test-unlink.c: Likewise.
10331         * tests/test-unlinkat.c: Likewise.
10332         * tests/test-unsetenv.c: Likewise.
10333         * tests/test-usleep.c: Likewise.
10334         * tests/test-utimens.c: Likewise.
10335         * tests/test-utimensat.c: Likewise.
10336         * tests/test-vasnprintf-posix.c: Likewise.
10337         * tests/test-vasnprintf-posix2.c: Likewise.
10338         * tests/test-vasnprintf.c: Likewise.
10339         * tests/test-vasprintf-posix.c: Likewise.
10340         * tests/test-vasprintf.c: Likewise.
10341         * tests/test-vdprintf-posix.c: Likewise.
10342         * tests/test-vfprintf-posix.c: Likewise.
10343         * tests/test-vprintf-posix.c: Likewise.
10344         * tests/test-vsnprintf-posix.c: Likewise.
10345         * tests/test-vsnprintf.c: Likewise.
10346         * tests/test-vsprintf-posix.c: Likewise.
10347         * tests/test-wcrtomb.c: Likewise.
10348         * tests/test-wcsnrtombs.c: Likewise.
10349         * tests/test-wcsrtombs.c: Likewise.
10350         * tests/test-wctype.c: Likewise.
10351         * tests/test-wcwidth.c: Likewise.
10352         * tests/test-xfprintf-posix.c: Likewise.
10353         * tests/test-xmemdup0.c: Likewise.
10354         * tests/test-xprintf-posix.c: Likewise.
10355         * tests/test-xvasprintf.c: Likewise.
10356         * tests/unicase/test-locale-language.c: Likewise.
10357         * tests/unicase/test-mapping-part1.h: Likewise.
10358         * tests/unicase/test-predicate-part1.h: Likewise.
10359         * tests/unicase/test-u8-casecmp.c: Likewise.
10360         * tests/unicase/test-u8-casecoll.c: Likewise.
10361         * tests/unicase/test-u8-casefold.c: Likewise.
10362         * tests/unicase/test-u8-is-cased.c: Likewise.
10363         * tests/unicase/test-u8-is-casefolded.c: Likewise.
10364         * tests/unicase/test-u8-is-lowercase.c: Likewise.
10365         * tests/unicase/test-u8-is-titlecase.c: Likewise.
10366         * tests/unicase/test-u8-is-uppercase.c: Likewise.
10367         * tests/unicase/test-u8-tolower.c: Likewise.
10368         * tests/unicase/test-u8-totitle.c: Likewise.
10369         * tests/unicase/test-u8-toupper.c: Likewise.
10370         * tests/unicase/test-u16-casecmp.c: Likewise.
10371         * tests/unicase/test-u16-casecoll.c: Likewise.
10372         * tests/unicase/test-u16-casefold.c: Likewise.
10373         * tests/unicase/test-u16-is-cased.c: Likewise.
10374         * tests/unicase/test-u16-is-casefolded.c: Likewise.
10375         * tests/unicase/test-u16-is-lowercase.c: Likewise.
10376         * tests/unicase/test-u16-is-titlecase.c: Likewise.
10377         * tests/unicase/test-u16-is-uppercase.c: Likewise.
10378         * tests/unicase/test-u16-tolower.c: Likewise.
10379         * tests/unicase/test-u16-totitle.c: Likewise.
10380         * tests/unicase/test-u16-toupper.c: Likewise.
10381         * tests/unicase/test-u32-casecmp.c: Likewise.
10382         * tests/unicase/test-u32-casecoll.c: Likewise.
10383         * tests/unicase/test-u32-casefold.c: Likewise.
10384         * tests/unicase/test-u32-is-cased.c: Likewise.
10385         * tests/unicase/test-u32-is-casefolded.c: Likewise.
10386         * tests/unicase/test-u32-is-lowercase.c: Likewise.
10387         * tests/unicase/test-u32-is-titlecase.c: Likewise.
10388         * tests/unicase/test-u32-is-uppercase.c: Likewise.
10389         * tests/unicase/test-u32-tolower.c: Likewise.
10390         * tests/unicase/test-u32-totitle.c: Likewise.
10391         * tests/unicase/test-u32-toupper.c: Likewise.
10392         * tests/unicase/test-ulc-casecmp.c: Likewise.
10393         * tests/unicase/test-ulc-casecoll.c: Likewise.
10394         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
10395         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
10396         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
10397         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
10398         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
10399         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
10400         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
10401         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
10402         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
10403         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
10404         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
10405         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
10406         * tests/unictype/test-bidi_byname.c: Likewise.
10407         * tests/unictype/test-bidi_name.c: Likewise.
10408         * tests/unictype/test-bidi_of.c: Likewise.
10409         * tests/unictype/test-bidi_test.c: Likewise.
10410         * tests/unictype/test-block_list.c: Likewise.
10411         * tests/unictype/test-block_of.c: Likewise.
10412         * tests/unictype/test-block_test.c: Likewise.
10413         * tests/unictype/test-categ_and.c: Likewise.
10414         * tests/unictype/test-categ_and_not.c: Likewise.
10415         * tests/unictype/test-categ_byname.c: Likewise.
10416         * tests/unictype/test-categ_name.c: Likewise.
10417         * tests/unictype/test-categ_none.c: Likewise.
10418         * tests/unictype/test-categ_of.c: Likewise.
10419         * tests/unictype/test-categ_or.c: Likewise.
10420         * tests/unictype/test-categ_test_withtable.c: Likewise.
10421         * tests/unictype/test-combining.c: Likewise.
10422         * tests/unictype/test-decdigit.c: Likewise.
10423         * tests/unictype/test-digit.c: Likewise.
10424         * tests/unictype/test-mirror.c: Likewise.
10425         * tests/unictype/test-numeric.c: Likewise.
10426         * tests/unictype/test-pr_byname.c: Likewise.
10427         * tests/unictype/test-pr_test.c: Likewise.
10428         * tests/unictype/test-predicate-part1.h: Likewise.
10429         * tests/unictype/test-scripts.c: Likewise.
10430         * tests/unictype/test-sy_c_ident.c: Likewise.
10431         * tests/unictype/test-sy_java_ident.c: Likewise.
10432         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
10433         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
10434         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
10435         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
10436         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
10437         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
10438         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
10439         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
10440         * tests/uninorm/test-canonical-decomposition.c: Likewise.
10441         * tests/uninorm/test-compat-decomposition.c: Likewise.
10442         * tests/uninorm/test-composition.c: Likewise.
10443         * tests/uninorm/test-decomposing-form.c: Likewise.
10444         * tests/uninorm/test-decomposition.c: Likewise.
10445         * tests/uninorm/test-u8-nfc.c: Likewise.
10446         * tests/uninorm/test-u8-nfd.c: Likewise.
10447         * tests/uninorm/test-u8-nfkc.c: Likewise.
10448         * tests/uninorm/test-u8-nfkd.c: Likewise.
10449         * tests/uninorm/test-u8-normcmp.c: Likewise.
10450         * tests/uninorm/test-u8-normcoll.c: Likewise.
10451         * tests/uninorm/test-u16-nfc.c: Likewise.
10452         * tests/uninorm/test-u16-nfd.c: Likewise.
10453         * tests/uninorm/test-u16-nfkc.c: Likewise.
10454         * tests/uninorm/test-u16-nfkd.c: Likewise.
10455         * tests/uninorm/test-u16-normcmp.c: Likewise.
10456         * tests/uninorm/test-u16-normcoll.c: Likewise.
10457         * tests/uninorm/test-u32-nfc.c: Likewise.
10458         * tests/uninorm/test-u32-nfd.c: Likewise.
10459         * tests/uninorm/test-u32-nfkc.c: Likewise.
10460         * tests/uninorm/test-u32-nfkd.c: Likewise.
10461         * tests/uninorm/test-u32-normalize-big.c: Likewise.
10462         * tests/uninorm/test-u32-normcmp.c: Likewise.
10463         * tests/uninorm/test-u32-normcoll.c: Likewise.
10464         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
10465         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
10466         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
10467         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
10468         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
10469         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
10470         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
10471         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
10472         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
10473         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
10474         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
10475         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
10476         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
10477         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
10478         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
10479         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
10480         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
10481         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
10482         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
10483         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
10484         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
10485         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
10486         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
10487         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
10488         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
10489         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
10490         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
10491         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
10492         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
10493         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
10494         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
10495         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
10496         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
10497         * tests/uniwidth/test-u8-strwidth.c: Likewise.
10498         * tests/uniwidth/test-u8-width.c: Likewise.
10499         * tests/uniwidth/test-u16-strwidth.c: Likewise.
10500         * tests/uniwidth/test-u16-width.c: Likewise.
10501         * tests/uniwidth/test-u32-strwidth.c: Likewise.
10502         * tests/uniwidth/test-u32-width.c: Likewise.
10503         * tests/uniwidth/test-uc_width.c: Likewise.
10504         * tests/uniwidth/test-uc_width2.c: Likewise.
10505         * modules/acl-tests (Files): Add tests/macros.h.
10506         * modules/areadlink-tests (Files): Likewise.
10507         * modules/areadlink-with-size-tests (Files): Likewise.
10508         * modules/areadlinkat-tests (Files): Likewise.
10509         * modules/areadlinkat-with-size-tests (Files): Likewise.
10510         * modules/argmatch-tests (Files): Likewise.
10511         * modules/argv-iter-tests (Files): Likewise.
10512         * modules/array-list-tests (Files): Likewise.
10513         * modules/array-mergesort-tests (Files): Likewise.
10514         * modules/array-oset-tests (Files): Likewise.
10515         * modules/avltree-list-tests (Files): Likewise.
10516         * modules/avltree-oset-tests (Files): Likewise.
10517         * modules/avltreehash-list-tests (Files): Likewise.
10518         * modules/base64-tests (Files): Likewise.
10519         * modules/binary-io-tests (Files): Likewise.
10520         * modules/bitrotate-tests (Files): Likewise.
10521         * modules/btowc-tests (Files): Likewise.
10522         * modules/byteswap-tests (Files): Likewise.
10523         * modules/c-ctype-tests (Files): Likewise.
10524         * modules/c-stack-tests (Files): Likewise.
10525         * modules/c-strcase-tests (Files): Likewise.
10526         * modules/c-strcasestr-tests (Files): Likewise.
10527         * modules/c-strstr-tests (Files): Likewise.
10528         * modules/canonicalize-lgpl-tests (Files): Likewise.
10529         * modules/canonicalize-tests (Files): Likewise.
10530         * modules/carray-list-tests (Files): Likewise.
10531         * modules/ceilf-tests (Files): Likewise.
10532         * modules/ceill-tests (Files): Likewise.
10533         * modules/chown-tests (Files): Likewise.
10534         * modules/cloexec-tests (Files): Likewise.
10535         * modules/copy-file-tests (Files): Likewise.
10536         * modules/count-one-bits-tests (Files): Likewise.
10537         * modules/dprintf-posix-tests (Files): Likewise.
10538         * modules/dup2-tests (Files): Likewise.
10539         * modules/dup3-tests (Files): Likewise.
10540         * modules/duplocale-tests (Files): Likewise.
10541         * modules/fbufmode-tests (Files): Likewise.
10542         * modules/fchdir-tests (Files): Likewise.
10543         * modules/fcntl-safer-tests (Files): Likewise.
10544         * modules/fcntl-tests (Files): Likewise.
10545         * modules/fdopendir-tests (Files): Likewise.
10546         * modules/fdutimensat-tests (Files): Likewise.
10547         * modules/fflush-tests (Files): Likewise.
10548         * modules/filevercmp-tests (Files): Likewise.
10549         * modules/flock-tests (Files): Likewise.
10550         * modules/floorf-tests (Files): Likewise.
10551         * modules/floorl-tests (Files): Likewise.
10552         * modules/fnmatch-tests (Files): Likewise.
10553         * modules/fopen-safer-tests (Files): Likewise.
10554         * modules/fopen-tests (Files): Likewise.
10555         * modules/fpending-tests (Files): Likewise.
10556         * modules/fprintf-posix-tests (Files): Likewise.
10557         * modules/fpurge-tests (Files): Likewise.
10558         * modules/freadable-tests (Files): Likewise.
10559         * modules/freadahead-tests (Files): Likewise.
10560         * modules/freading-tests (Files): Likewise.
10561         * modules/freadptr-tests (Files): Likewise.
10562         * modules/freadseek-tests (Files): Likewise.
10563         * modules/freopen-tests (Files): Likewise.
10564         * modules/frexp-nolibm-tests (Files): Likewise.
10565         * modules/frexp-tests (Files): Likewise.
10566         * modules/frexpl-nolibm-tests (Files): Likewise.
10567         * modules/frexpl-tests (Files): Likewise.
10568         * modules/fseek-tests (Files): Likewise.
10569         * modules/fseeko-tests (Files): Likewise.
10570         * modules/fstrcmp-tests (Files): Likewise.
10571         * modules/fsync-tests (Files): Likewise.
10572         * modules/ftell-tests (Files): Likewise.
10573         * modules/ftello-tests (Files): Likewise.
10574         * modules/func-tests (Files): Likewise.
10575         * modules/futimens-tests (Files): Likewise.
10576         * modules/fwritable-tests (Files): Likewise.
10577         * modules/fwriting-tests (Files): Likewise.
10578         * modules/getcwd-tests (Files): Likewise.
10579         * modules/getdate-tests (Files): Likewise.
10580         * modules/getdelim-tests (Files): Likewise.
10581         * modules/getdtablesize-tests (Files): Likewise.
10582         * modules/getgroups-tests (Files): Likewise.
10583         * modules/getline-tests (Files): Likewise.
10584         * modules/getndelim2-tests (Files): Likewise.
10585         * modules/glob-tests (Files): Likewise.
10586         * modules/hash-tests (Files): Likewise.
10587         * modules/i-ring-tests (Files): Likewise.
10588         * modules/iconv-tests (Files): Likewise.
10589         * modules/iconv_open-utf-tests (Files): Likewise.
10590         * modules/idpriv-drop-tests (Files): Likewise.
10591         * modules/idpriv-droptemp-tests (Files): Likewise.
10592         * modules/inet_ntop-tests (Files): Likewise.
10593         * modules/inet_pton-tests (Files): Likewise.
10594         * modules/isblank-tests (Files): Likewise.
10595         * modules/isfinite-tests (Files): Likewise.
10596         * modules/isinf-tests (Files): Likewise.
10597         * modules/isnan-tests (Files): Likewise.
10598         * modules/isnand-nolibm-tests (Files): Likewise.
10599         * modules/isnand-tests (Files): Likewise.
10600         * modules/isnanf-nolibm-tests (Files): Likewise.
10601         * modules/isnanf-tests (Files): Likewise.
10602         * modules/isnanl-nolibm-tests (Files): Likewise.
10603         * modules/isnanl-tests (Files): Likewise.
10604         * modules/lchown-tests (Files): Likewise.
10605         * modules/ldexpl-tests (Files): Likewise.
10606         * modules/link-tests (Files): Likewise.
10607         * modules/linkat-tests (Files): Likewise.
10608         * modules/linked-list-tests (Files): Likewise.
10609         * modules/linkedhash-list-tests (Files): Likewise.
10610         * modules/localename-tests (Files): Likewise.
10611         * modules/lseek-tests (Files): Likewise.
10612         * modules/lstat-tests (Files): Likewise.
10613         * modules/mbmemcasecmp-tests (Files): Likewise.
10614         * modules/mbmemcasecoll-tests (Files): Likewise.
10615         * modules/mbrtowc-tests (Files): Likewise.
10616         * modules/mbscasecmp-tests (Files): Likewise.
10617         * modules/mbscasestr-tests (Files): Likewise.
10618         * modules/mbschr-tests (Files): Likewise.
10619         * modules/mbscspn-tests (Files): Likewise.
10620         * modules/mbsinit-tests (Files): Likewise.
10621         * modules/mbsncasecmp-tests (Files): Likewise.
10622         * modules/mbsnrtowcs-tests (Files): Likewise.
10623         * modules/mbspbrk-tests (Files): Likewise.
10624         * modules/mbspcasecmp-tests (Files): Likewise.
10625         * modules/mbsrchr-tests (Files): Likewise.
10626         * modules/mbsrtowcs-tests (Files): Likewise.
10627         * modules/mbsspn-tests (Files): Likewise.
10628         * modules/mbsstr-tests (Files): Likewise.
10629         * modules/memchr-tests (Files): Likewise.
10630         * modules/memchr2-tests (Files): Likewise.
10631         * modules/memcmp-tests (Files): Likewise.
10632         * modules/memmem-tests (Files): Likewise.
10633         * modules/memrchr-tests (Files): Likewise.
10634         * modules/mkdir-tests (Files): Likewise.
10635         * modules/mkfifo-tests (Files): Likewise.
10636         * modules/mkfifoat-tests (Files): Likewise.
10637         * modules/mknod-tests (Files): Likewise.
10638         * modules/nanosleep-tests (Files): Likewise.
10639         * modules/nl_langinfo-tests (Files): Likewise.
10640         * modules/obstack-printf-tests (Files): Likewise.
10641         * modules/open-tests (Files): Likewise.
10642         * modules/openat-tests (Files): Likewise.
10643         * modules/pipe-filter-gi-tests (Files): Likewise.
10644         * modules/pipe-filter-ii-tests (Files): Likewise.
10645         * modules/pipe2-tests (Files): Likewise.
10646         * modules/popen-safer-tests (Files): Likewise.
10647         * modules/popen-tests (Files): Likewise.
10648         * modules/posixtm-tests (Files): Likewise.
10649         * modules/pread-tests (Files): Likewise.
10650         * modules/printf-frexp-tests (Files): Likewise.
10651         * modules/printf-frexpl-tests (Files): Likewise.
10652         * modules/printf-posix-tests (Files): Likewise.
10653         * modules/priv-set-tests (Files): Likewise.
10654         * modules/quotearg-tests (Files): Likewise.
10655         * modules/random_r-tests (Files): Likewise.
10656         * modules/rawmemchr-tests (Files): Likewise.
10657         * modules/rbtree-list-tests (Files): Likewise.
10658         * modules/rbtree-oset-tests (Files): Likewise.
10659         * modules/rbtreehash-list-tests (Files): Likewise.
10660         * modules/readlink-tests (Files): Likewise.
10661         * modules/remove-tests (Files): Likewise.
10662         * modules/rename-tests (Files): Likewise.
10663         * modules/renameat-tests (Files): Likewise.
10664         * modules/rmdir-tests (Files): Likewise.
10665         * modules/round-tests (Files): Likewise.
10666         * modules/roundf-tests (Files): Likewise.
10667         * modules/roundl-tests (Files): Likewise.
10668         * modules/safe-alloc-tests (Files): Likewise.
10669         * modules/setenv-tests (Files): Likewise.
10670         * modules/sigaction-tests (Files): Likewise.
10671         * modules/signbit-tests (Files): Likewise.
10672         * modules/sleep-tests (Files): Likewise.
10673         * modules/snprintf-posix-tests (Files): Likewise.
10674         * modules/snprintf-tests (Files): Likewise.
10675         * modules/sprintf-posix-tests (Files): Likewise.
10676         * modules/stat-tests (Files): Likewise.
10677         * modules/stat-time-tests (Files): Likewise.
10678         * modules/strcasestr-tests (Files): Likewise.
10679         * modules/strchrnul-tests (Files): Likewise.
10680         * modules/strerror-tests (Files): Likewise.
10681         * modules/striconv-tests (Files): Likewise.
10682         * modules/striconveh-tests (Files): Likewise.
10683         * modules/striconveha-tests (Files): Likewise.
10684         * modules/strsignal-tests (Files): Likewise.
10685         * modules/strstr-tests (Files): Likewise.
10686         * modules/strtod-tests (Files): Likewise.
10687         * modules/strverscmp-tests (Files): Likewise.
10688         * modules/symlink-tests (Files): Likewise.
10689         * modules/symlinkat-tests (Files): Likewise.
10690         * modules/trunc-tests (Files): Likewise.
10691         * modules/truncf-tests (Files): Likewise.
10692         * modules/truncl-tests (Files): Likewise.
10693         * modules/uname-tests (Files): Likewise.
10694         * modules/unicase/cased-tests (Files): Likewise.
10695         * modules/unicase/ignorable-tests (Files): Likewise.
10696         * modules/unicase/locale-language-tests (Files): Likewise.
10697         * modules/unicase/tolower-tests (Files): Likewise.
10698         * modules/unicase/totitle-tests (Files): Likewise.
10699         * modules/unicase/toupper-tests (Files): Likewise.
10700         * modules/unicase/u8-casecmp-tests (Files): Likewise.
10701         * modules/unicase/u8-casecoll-tests (Files): Likewise.
10702         * modules/unicase/u8-casefold-tests (Files): Likewise.
10703         * modules/unicase/u8-is-cased-tests (Files): Likewise.
10704         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
10705         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
10706         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
10707         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
10708         * modules/unicase/u8-tolower-tests (Files): Likewise.
10709         * modules/unicase/u8-totitle-tests (Files): Likewise.
10710         * modules/unicase/u8-toupper-tests (Files): Likewise.
10711         * modules/unicase/u16-casecmp-tests (Files): Likewise.
10712         * modules/unicase/u16-casecoll-tests (Files): Likewise.
10713         * modules/unicase/u16-casefold-tests (Files): Likewise.
10714         * modules/unicase/u16-is-cased-tests (Files): Likewise.
10715         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
10716         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
10717         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
10718         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
10719         * modules/unicase/u16-tolower-tests (Files): Likewise.
10720         * modules/unicase/u16-totitle-tests (Files): Likewise.
10721         * modules/unicase/u16-toupper-tests (Files): Likewise.
10722         * modules/unicase/u32-casecmp-tests (Files): Likewise.
10723         * modules/unicase/u32-casecoll-tests (Files): Likewise.
10724         * modules/unicase/u32-casefold-tests (Files): Likewise.
10725         * modules/unicase/u32-is-cased-tests (Files): Likewise.
10726         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
10727         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
10728         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
10729         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
10730         * modules/unicase/u32-tolower-tests (Files): Likewise.
10731         * modules/unicase/u32-totitle-tests (Files): Likewise.
10732         * modules/unicase/u32-toupper-tests (Files): Likewise.
10733         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
10734         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
10735         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
10736         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
10737         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
10738         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
10739         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
10740         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
10741         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
10742         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
10743         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
10744         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
10745         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
10746         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
10747         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
10748         * modules/unictype/bidicategory-name-tests (Files): Likewise.
10749         * modules/unictype/bidicategory-of-tests (Files): Likewise.
10750         * modules/unictype/bidicategory-test-tests (Files): Likewise.
10751         * modules/unictype/block-list-tests (Files): Likewise.
10752         * modules/unictype/block-of-tests (Files): Likewise.
10753         * modules/unictype/block-test-tests (Files): Likewise.
10754         * modules/unictype/category-C-tests (Files): Likewise.
10755         * modules/unictype/category-Cc-tests (Files): Likewise.
10756         * modules/unictype/category-Cf-tests (Files): Likewise.
10757         * modules/unictype/category-Cn-tests (Files): Likewise.
10758         * modules/unictype/category-Co-tests (Files): Likewise.
10759         * modules/unictype/category-Cs-tests (Files): Likewise.
10760         * modules/unictype/category-L-tests (Files): Likewise.
10761         * modules/unictype/category-Ll-tests (Files): Likewise.
10762         * modules/unictype/category-Lm-tests (Files): Likewise.
10763         * modules/unictype/category-Lo-tests (Files): Likewise.
10764         * modules/unictype/category-Lt-tests (Files): Likewise.
10765         * modules/unictype/category-Lu-tests (Files): Likewise.
10766         * modules/unictype/category-M-tests (Files): Likewise.
10767         * modules/unictype/category-Mc-tests (Files): Likewise.
10768         * modules/unictype/category-Me-tests (Files): Likewise.
10769         * modules/unictype/category-Mn-tests (Files): Likewise.
10770         * modules/unictype/category-N-tests (Files): Likewise.
10771         * modules/unictype/category-Nd-tests (Files): Likewise.
10772         * modules/unictype/category-Nl-tests (Files): Likewise.
10773         * modules/unictype/category-No-tests (Files): Likewise.
10774         * modules/unictype/category-P-tests (Files): Likewise.
10775         * modules/unictype/category-Pc-tests (Files): Likewise.
10776         * modules/unictype/category-Pd-tests (Files): Likewise.
10777         * modules/unictype/category-Pe-tests (Files): Likewise.
10778         * modules/unictype/category-Pf-tests (Files): Likewise.
10779         * modules/unictype/category-Pi-tests (Files): Likewise.
10780         * modules/unictype/category-Po-tests (Files): Likewise.
10781         * modules/unictype/category-Ps-tests (Files): Likewise.
10782         * modules/unictype/category-S-tests (Files): Likewise.
10783         * modules/unictype/category-Sc-tests (Files): Likewise.
10784         * modules/unictype/category-Sk-tests (Files): Likewise.
10785         * modules/unictype/category-Sm-tests (Files): Likewise.
10786         * modules/unictype/category-So-tests (Files): Likewise.
10787         * modules/unictype/category-Z-tests (Files): Likewise.
10788         * modules/unictype/category-Zl-tests (Files): Likewise.
10789         * modules/unictype/category-Zp-tests (Files): Likewise.
10790         * modules/unictype/category-Zs-tests (Files): Likewise.
10791         * modules/unictype/category-and-not-tests (Files): Likewise.
10792         * modules/unictype/category-and-tests (Files): Likewise.
10793         * modules/unictype/category-byname-tests (Files): Likewise.
10794         * modules/unictype/category-name-tests (Files): Likewise.
10795         * modules/unictype/category-none-tests (Files): Likewise.
10796         * modules/unictype/category-of-tests (Files): Likewise.
10797         * modules/unictype/category-or-tests (Files): Likewise.
10798         * modules/unictype/category-test-withtable-tests (Files): Likewise.
10799         * modules/unictype/combining-class-tests (Files): Likewise.
10800         * modules/unictype/ctype-alnum-tests (Files): Likewise.
10801         * modules/unictype/ctype-alpha-tests (Files): Likewise.
10802         * modules/unictype/ctype-blank-tests (Files): Likewise.
10803         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
10804         * modules/unictype/ctype-digit-tests (Files): Likewise.
10805         * modules/unictype/ctype-graph-tests (Files): Likewise.
10806         * modules/unictype/ctype-lower-tests (Files): Likewise.
10807         * modules/unictype/ctype-print-tests (Files): Likewise.
10808         * modules/unictype/ctype-punct-tests (Files): Likewise.
10809         * modules/unictype/ctype-space-tests (Files): Likewise.
10810         * modules/unictype/ctype-upper-tests (Files): Likewise.
10811         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
10812         * modules/unictype/decimal-digit-tests (Files): Likewise.
10813         * modules/unictype/digit-tests (Files): Likewise.
10814         * modules/unictype/mirror-tests (Files): Likewise.
10815         * modules/unictype/numeric-tests (Files): Likewise.
10816         * modules/unictype/property-alphabetic-tests (Files): Likewise.
10817         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
10818         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
10819         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
10820         Likewise.
10821         * modules/unictype/property-bidi-block-separator-tests (Files):
10822         Likewise.
10823         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
10824         Likewise.
10825         * modules/unictype/property-bidi-common-separator-tests (Files):
10826         Likewise.
10827         * modules/unictype/property-bidi-control-tests (Files): Likewise.
10828         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
10829         Likewise.
10830         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
10831         Likewise.
10832         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
10833         Likewise.
10834         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
10835         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
10836         Likewise.
10837         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
10838         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
10839         Likewise.
10840         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
10841         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
10842         * modules/unictype/property-bidi-segment-separator-tests (Files):
10843         Likewise.
10844         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
10845         * modules/unictype/property-byname-tests (Files): Likewise.
10846         * modules/unictype/property-combining-tests (Files): Likewise.
10847         * modules/unictype/property-composite-tests (Files): Likewise.
10848         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
10849         * modules/unictype/property-dash-tests (Files): Likewise.
10850         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
10851         * modules/unictype/property-default-ignorable-code-point-tests (Files):
10852         Likewise.
10853         * modules/unictype/property-deprecated-tests (Files): Likewise.
10854         * modules/unictype/property-diacritic-tests (Files): Likewise.
10855         * modules/unictype/property-extender-tests (Files): Likewise.
10856         * modules/unictype/property-format-control-tests (Files): Likewise.
10857         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
10858         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
10859         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
10860         * modules/unictype/property-hex-digit-tests (Files): Likewise.
10861         * modules/unictype/property-hyphen-tests (Files): Likewise.
10862         * modules/unictype/property-id-continue-tests (Files): Likewise.
10863         * modules/unictype/property-id-start-tests (Files): Likewise.
10864         * modules/unictype/property-ideographic-tests (Files): Likewise.
10865         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
10866         * modules/unictype/property-ids-trinary-operator-tests (Files):
10867         Likewise.
10868         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
10869         * modules/unictype/property-iso-control-tests (Files): Likewise.
10870         * modules/unictype/property-join-control-tests (Files): Likewise.
10871         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
10872         * modules/unictype/property-line-separator-tests (Files): Likewise.
10873         * modules/unictype/property-logical-order-exception-tests (Files):
10874         Likewise.
10875         * modules/unictype/property-lowercase-tests (Files): Likewise.
10876         * modules/unictype/property-math-tests (Files): Likewise.
10877         * modules/unictype/property-non-break-tests (Files): Likewise.
10878         * modules/unictype/property-not-a-character-tests (Files): Likewise.
10879         * modules/unictype/property-numeric-tests (Files): Likewise.
10880         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
10881         * modules/unictype/property-other-default-ignorable-code-point-tests
10882         (Files): Likewise.
10883         * modules/unictype/property-other-grapheme-extend-tests (Files):
10884         Likewise.
10885         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
10886         * modules/unictype/property-other-id-start-tests (Files): Likewise.
10887         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
10888         * modules/unictype/property-other-math-tests (Files): Likewise.
10889         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
10890         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
10891         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
10892         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
10893         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
10894         * modules/unictype/property-private-use-tests (Files): Likewise.
10895         * modules/unictype/property-punctuation-tests (Files): Likewise.
10896         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
10897         * modules/unictype/property-radical-tests (Files): Likewise.
10898         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
10899         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
10900         * modules/unictype/property-space-tests (Files): Likewise.
10901         * modules/unictype/property-terminal-punctuation-tests (Files):
10902         Likewise.
10903         * modules/unictype/property-test-tests (Files): Likewise.
10904         * modules/unictype/property-titlecase-tests (Files): Likewise.
10905         * modules/unictype/property-unassigned-code-value-tests (Files):
10906         Likewise.
10907         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
10908         * modules/unictype/property-uppercase-tests (Files): Likewise.
10909         * modules/unictype/property-variation-selector-tests (Files): Likewise.
10910         * modules/unictype/property-white-space-tests (Files): Likewise.
10911         * modules/unictype/property-xid-continue-tests (Files): Likewise.
10912         * modules/unictype/property-xid-start-tests (Files): Likewise.
10913         * modules/unictype/property-zero-width-tests (Files): Likewise.
10914         * modules/unictype/scripts-tests (Files): Likewise.
10915         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
10916         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
10917         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
10918         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
10919         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
10920         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
10921         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
10922         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
10923         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
10924         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
10925         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
10926         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
10927         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
10928         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
10929         * modules/uninorm/composition-tests (Files): Likewise.
10930         * modules/uninorm/decomposing-form-tests (Files): Likewise.
10931         * modules/uninorm/decomposition-tests (Files): Likewise.
10932         * modules/uninorm/filter-tests (Files): Likewise.
10933         * modules/uninorm/nfc-tests (Files): Likewise.
10934         * modules/uninorm/nfd-tests (Files): Likewise.
10935         * modules/uninorm/nfkc-tests (Files): Likewise.
10936         * modules/uninorm/nfkd-tests (Files): Likewise.
10937         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
10938         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
10939         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
10940         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
10941         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
10942         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
10943         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
10944         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
10945         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
10946         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
10947         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
10948         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
10949         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
10950         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
10951         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
10952         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
10953         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
10954         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
10955         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
10956         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
10957         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
10958         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
10959         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
10960         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
10961         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
10962         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
10963         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
10964         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
10965         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
10966         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
10967         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
10968         * modules/uniwidth/u8-width-tests (Files): Likewise.
10969         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
10970         * modules/uniwidth/u16-width-tests (Files): Likewise.
10971         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
10972         * modules/uniwidth/u32-width-tests (Files): Likewise.
10973         * modules/uniwidth/width-tests (Files): Likewise.
10974         * modules/unlink-tests (Files): Likewise.
10975         * modules/unsetenv-tests (Files): Likewise.
10976         * modules/usleep-tests (Files): Likewise.
10977         * modules/utimens-tests (Files): Likewise.
10978         * modules/utimensat-tests (Files): Likewise.
10979         * modules/vasnprintf-posix-tests (Files): Likewise.
10980         * modules/vasnprintf-tests (Files): Likewise.
10981         * modules/vasprintf-posix-tests (Files): Likewise.
10982         * modules/vasprintf-tests (Files): Likewise.
10983         * modules/vdprintf-posix-tests (Files): Likewise.
10984         * modules/vfprintf-posix-tests (Files): Likewise.
10985         * modules/vprintf-posix-tests (Files): Likewise.
10986         * modules/vsnprintf-posix-tests (Files): Likewise.
10987         * modules/vsnprintf-tests (Files): Likewise.
10988         * modules/vsprintf-posix-tests (Files): Likewise.
10989         * modules/wcrtomb-tests (Files): Likewise.
10990         * modules/wcsnrtombs-tests (Files): Likewise.
10991         * modules/wcsrtombs-tests (Files): Likewise.
10992         * modules/wctype-tests (Files): Likewise.
10993         * modules/wcwidth-tests (Files): Likewise.
10994         * modules/xmemdup0-tests (Files): Likewise.
10995         * modules/xprintf-posix-tests (Files): Likewise.
10996         * modules/xvasprintf-tests (Files): Likewise.
10997
10998 2009-12-24  Eric Blake  <ebb9@byu.net>
10999
11000         test-nanosleep: fix typo
11001         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
11002         patch.
11003         Reported by Bruno Haible.
11004
11005 2009-12-24  Bruno Haible  <bruno@clisp.org>
11006
11007         Reduce namespace pollution on glibc systems.
11008         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
11009         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
11010         systems.
11011         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
11012         <getopt.h> on glibc systems.
11013         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
11014         systems.
11015         * lib/fcntl.c: Include <unistd.h> here instead.
11016
11017 2009-12-24  Bruno Haible  <bruno@clisp.org>
11018
11019         * lib/stdlib.in.h (includes): Fix typo in today's commit.
11020
11021 2009-12-24  Eric Blake  <ebb9@byu.net>
11022
11023         tests: add signature checks
11024         * tests/signature.h (SIGNATURE_CHECK): New file.
11025         * modules/atexit-tests (Files): Use it.
11026         * modules/btowc-tests (Files): Likewise.
11027         * modules/canonicalize-lgpl-tests (Files): Likewise.
11028         * modules/ceilf-tests (Files): Likewise.
11029         * modules/ceill-tests (Files): Likewise.
11030         * modules/chown-tests (Files): Likewise.
11031         * modules/dprintf-posix-tests (Files): Likewise.
11032         * modules/dup2-tests (Files): Likewise.
11033         * modules/dup3-tests (Files): Likewise.
11034         * modules/duplocale-tests (Files): Likewise.
11035         * modules/fchdir-tests (Files): Likewise.
11036         * modules/fcntl-tests (Files): Likewise.
11037         * modules/fdopendir-tests (Files): Likewise.
11038         * modules/fflush-tests (Files): Likewise.
11039         * modules/flock-tests (Files): Likewise.
11040         * modules/floorf-tests (Files): Likewise.
11041         * modules/floorl-tests (Files): Likewise.
11042         * modules/fnmatch-tests (Files): Likewise.
11043         * modules/fopen-tests (Files): Likewise.
11044         * modules/fprintf-posix-tests (Files): Likewise.
11045         * modules/freopen-tests (Files): Likewise.
11046         * modules/frexp-nolibm-tests (Files): Likewise.
11047         * modules/frexp-tests (Files): Likewise.
11048         * modules/frexpl-nolibm-tests (Files): Likewise.
11049         * modules/frexpl-tests (Files): Likewise.
11050         * modules/fseek-tests (Files): Likewise.
11051         * modules/fseeko-tests (Files): Likewise.
11052         * modules/fsync-tests (Files): Likewise.
11053         * modules/ftell-tests (Files): Likewise.
11054         * modules/ftello-tests (Files): Likewise.
11055         * modules/futimens-tests (Files): Likewise.
11056         * modules/getaddrinfo-tests (Files): Likewise.
11057         * modules/getcwd-tests (Files): Likewise.
11058         * modules/getdelim-tests (Files): Likewise.
11059         * modules/getdtablesize-tests (Files): Likewise.
11060         * modules/getgroups-tests (Files): Likewise.
11061         * modules/gethostname-tests (Files): Likewise.
11062         * modules/getline-tests (Files): Likewise.
11063         * modules/getopt-posix-tests (Files): Likewise.
11064         * modules/gettimeofday-tests (Files): Likewise.
11065         * modules/glob-tests (Files): Likewise.
11066         * modules/iconv-tests (Files): Likewise.
11067         * modules/inet_ntop-tests (Files): Likewise.
11068         * modules/inet_pton-tests (Files): Likewise.
11069         * modules/isblank-tests (Files): Likewise.
11070         * modules/lchown-tests (Files): Likewise.
11071         * modules/ldexpl-tests (Files): Likewise.
11072         * modules/link-tests (Files): Likewise.
11073         * modules/linkat-tests (Files): Likewise.
11074         * modules/lseek-tests (Files): Likewise.
11075         * modules/lstat-tests (Files): Likewise.
11076         * modules/mbrtowc-tests (Files): Likewise.
11077         * modules/mbsinit-tests (Files): Likewise.
11078         * modules/mbsnrtowcs-tests (Files): Likewise.
11079         * modules/mbsrtowcs-tests (Files): Likewise.
11080         * modules/memchr-tests (Files): Likewise.
11081         * modules/memcmp-tests (Files): Likewise.
11082         * modules/memmem-tests (Files): Likewise.
11083         * modules/memrchr-tests (Files): Likewise.
11084         * modules/mkdir-tests (Files): Likewise.
11085         * modules/mkfifo-tests (Files): Likewise.
11086         * modules/mkfifoat-tests (Files): Likewise.
11087         * modules/mknod-tests (Files): Likewise.
11088         * modules/nanosleep-tests (Files): Likewise.
11089         * modules/nl_langinfo-tests (Files): Likewise.
11090         * modules/obstack-printf-tests (Files): Likewise.
11091         * modules/open-tests (Files): Likewise.
11092         * modules/openat-tests (Files): Likewise.
11093         * modules/perror-tests (Files): Likewise.
11094         * modules/pipe2-tests (Files): Likewise.
11095         * modules/poll-tests (Files): Likewise.
11096         * modules/popen-tests (Files): Likewise.
11097         * modules/posix_spawn-tests (Files): Likewise.
11098         * modules/posix_spawnp-tests (Files): Likewise.
11099         * modules/pread-tests (Files): Likewise.
11100         * modules/printf-posix-tests (Files): Likewise.
11101         * modules/pty-tests (Files): Likewise.
11102         * modules/random_r-tests (Files): Likewise.
11103         * modules/rawmemchr-tests (Files): Likewise.
11104         * modules/readlink-tests (Files): Likewise.
11105         * modules/remove-tests (Files): Likewise.
11106         * modules/rename-tests (Files): Likewise.
11107         * modules/renameat-tests (Files): Likewise.
11108         * modules/rmdir-tests (Files): Likewise.
11109         * modules/round-tests (Files): Likewise.
11110         * modules/roundf-tests (Files): Likewise.
11111         * modules/roundl-tests (Files): Likewise.
11112         * modules/select-tests (Files): Likewise.
11113         * modules/setenv-tests (Files): Likewise.
11114         * modules/sigaction-tests (Files): Likewise.
11115         * modules/sleep-tests (Files): Likewise.
11116         * modules/snprintf-posix-tests (Files): Likewise.
11117         * modules/snprintf-tests (Files): Likewise.
11118         * modules/sprintf-posix-tests (Files): Likewise.
11119         * modules/stat-tests (Files): Likewise.
11120         * modules/strcasestr-tests (Files): Likewise.
11121         * modules/strchrnul-tests (Files): Likewise.
11122         * modules/strerror-tests (Files): Likewise.
11123         * modules/strsignal-tests (Files): Likewise.
11124         * modules/strstr-tests (Files): Likewise.
11125         * modules/strtod-tests (Files): Likewise.
11126         * modules/strverscmp-tests (Files): Likewise.
11127         * modules/symlink-tests (Files): Likewise.
11128         * modules/symlinkat-tests (Files): Likewise.
11129         * modules/times-tests (Files): Likewise.
11130         * modules/trunc-tests (Files): Likewise.
11131         * modules/truncf-tests (Files): Likewise.
11132         * modules/truncl-tests (Files): Likewise.
11133         * modules/tsearch-tests (Files): Likewise.
11134         * modules/uname-tests (Files): Likewise.
11135         * modules/unlink-tests (Files): Likewise.
11136         * modules/unsetenv-tests (Files): Likewise.
11137         * modules/usleep-tests (Files): Likewise.
11138         * modules/utimensat-tests (Files): Likewise.
11139         * modules/vasprintf-tests (Files): Likewise.
11140         * modules/vdprintf-posix-tests (Files): Likewise.
11141         * modules/vfprintf-posix-tests (Files): Likewise.
11142         * modules/vprintf-posix-tests (Files): Likewise.
11143         * modules/vsnprintf-posix-tests (Files): Likewise.
11144         * modules/vsnprintf-tests (Files): Likewise.
11145         * modules/vsprintf-posix-tests (Files): Likewise.
11146         * modules/wcrtomb-tests (Files): Likewise.
11147         * modules/wcsnrtombs-tests (Files): Likewise.
11148         * modules/wcsrtombs-tests (Files): Likewise.
11149         * modules/wcwidth-tests (Files): Likewise.
11150         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
11151         * tests/test-isinf.c (isinf): Likewise.
11152         * tests/test-isnan.c (isnan): Likewise.
11153         * tests/test-signbit.c (signbit): Likewise.
11154         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
11155         declaration, either as macro or with correct signature.
11156         (select): Ensure function under test is declared with correct
11157         signature in correct header.
11158         * tests/test-atexit.c (atexit): Likewise.
11159         * tests/test-btowc.c (btowc): Likewise.
11160         * tests/test-canonicalize-lgpl.c (realpath)
11161         (canonicalize_file_name): Likewise.
11162         * tests/test-ceilf1.c (ceilf): Likewise.
11163         * tests/test-ceill.c (ceill): Likewise.
11164         * tests/test-chown.c (chown): Likewise.
11165         * tests/test-dprintf-posix.c (dprintf): Likewise.
11166         * tests/test-dup2.c (dup2): Likewise.
11167         * tests/test-dup3.c (dup3): Likewise.
11168         * tests/test-duplocale.c (duplocale): Likewise.
11169         * tests/test-fchdir.c (fchdir): Likewise.
11170         * tests/test-fchownat.c (fchownat): Likewise.
11171         * tests/test-fcntl.c (fcntl): Likewise.
11172         * tests/test-fdopendir.c (fdopendir): Likewise.
11173         * tests/test-fflush.c (fflush): Likewise.
11174         * tests/test-flock.c (flock): Likewise.
11175         * tests/test-floorf1.c (floorf): Likewise.
11176         * tests/test-floorl.c (floorl): Likewise.
11177         * tests/test-fnmatch.c (fnmatch): Likewise.
11178         * tests/test-fopen.c (fopen): Likewise.
11179         * tests/test-fprintf-posix.c (fprintf): Likewise.
11180         * tests/test-freopen.c (freopen): Likewise.
11181         * tests/test-frexp.c (frexp): Likewise.
11182         * tests/test-frexpl.c (frexpl): Likewise.
11183         * tests/test-fseek.c (fseek): Likewise.
11184         * tests/test-fseeko.c (fseeko): Likewise.
11185         * tests/test-fstatat.c (fstatat): Likewise.
11186         * tests/test-fsync.c (fsync): Likewise.
11187         * tests/test-ftell.c (ftell): Likewise.
11188         * tests/test-ftello.c (ftello): Likewise.
11189         * tests/test-futimens.c (futimens): Likewise.
11190         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
11191         (gai_strerror): Likewise.
11192         * tests/test-getcwd.c (getcwd): Likewise.
11193         * tests/test-getdelim.c (getdelim): Likewise.
11194         * tests/test-getdtablesize.c (getdtablesize): Likewise.
11195         * tests/test-getgroups.c (getgroups): Likewise.
11196         * tests/test-gethostname.c (gethostname): Likewise.
11197         * tests/test-getline.c (getline): Likewise.
11198         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
11199         Likewise.
11200         * tests/test-gettimeofday.c (gettimeofday): Likewise.
11201         * tests/test-glob.c (glob, globfree): Likewise.
11202         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
11203         * tests/test-inet_ntop.c (inet_ntop): Likewise.
11204         * tests/test-inet_pton.c (inet_pton): Likewise.
11205         * tests/test-isblank.c (isblank): Likewise.
11206         * tests/test-lchown.c (lchown): Likewise.
11207         * tests/test-ldexpl.c (ldexpl): Likewise.
11208         * tests/test-link.c (link): Likewise.
11209         * tests/test-linkat.c (linkat): Likewise.
11210         * tests/test-lseek.c (lseek): Likewise.
11211         * tests/test-lstat.c (lstat): Likewise.
11212         * tests/test-mbrtowc.c (mbrtowc): Likewise.
11213         * tests/test-mbsinit.c (mbsinit): Likewise.
11214         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
11215         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
11216         * tests/test-memchr.c (memchr): Likewise.
11217         * tests/test-memcmp.c (memcmp): Likewise.
11218         * tests/test-memmem.c (memmem): Likewise.
11219         * tests/test-memrchr.c (memrchr): Likewise.
11220         * tests/test-mkdir.c (mkdir): Likewise.
11221         * tests/test-mkdirat.c (mkdirat): Likewise.
11222         * tests/test-mkfifo.c (mkfifo): Likewise.
11223         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
11224         * tests/test-mknod.c (mknod): Likewise.
11225         * tests/test-nanosleep.c (nanosleep): Likewise.
11226         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
11227         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
11228         Likewise.
11229         * tests/test-open.c (open): Likewise.
11230         * tests/test-openat.c (openat): Likewise.
11231         * tests/test-perror.c (perror): Likewise.
11232         * tests/test-pipe2.c (pipe2): Likewise.
11233         * tests/test-poll.c (poll): Likewise.
11234         * tests/test-popen.c (popen, pclose): Likewise.
11235         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
11236         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
11237         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
11238         (posix_spawn_file_actions_destroy)
11239         (posix_spawn_file_actions_addclose)
11240         (posix_spawn_file_actions_addopen)
11241         (posix_spawn_file_actions_adddup2): Likewise.
11242         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
11243         * tests/test-pread.c (pread): Likewise.
11244         * tests/test-printf-posix.c (printf): Likewise.
11245         * tests/test-pty.c (openpty, forkpty): Likewise.
11246         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
11247         (random_r): Likewise.
11248         * tests/test-rawmemchr.c (rawmemchr): Likewise.
11249         * tests/test-readlink.c (readlink): Likewise.
11250         * tests/test-remove.c (remove): Likewise.
11251         * tests/test-rename.c (rename): Likewise.
11252         * tests/test-renameat.c (renameat): Likewise.
11253         * tests/test-rmdir.c (rmdir): Likewise.
11254         * tests/test-round1.c (round): Likewise.
11255         * tests/test-roundf1.c (roundf): Likewise.
11256         * tests/test-roundl.c (roundl): Likewise.
11257         * tests/test-setenv.c (setenv): Likewise.
11258         * tests/test-sigaction.c (sigaction): Likewise.
11259         * tests/test-sleep.c (sleep): Likewise.
11260         * tests/test-snprintf.c (snprintf): Likewise.
11261         * tests/test-sprintf-posix.c (sprintf): Likewise.
11262         * tests/test-stat.c (stat): Likewise.
11263         * tests/test-stpncpy.c (stpncpy): Likewise.
11264         * tests/test-strcasestr.c (strcasestr): Likewise.
11265         * tests/test-strchrnul.c (strchrnul): Likewise.
11266         * tests/test-strerror.c (strerror): Likewise.
11267         * tests/test-strsignal.c (strsignal): Likewise.
11268         * tests/test-strstr.c (strstr): Likewise.
11269         * tests/test-strtod.c (strtod): Likewise.
11270         * tests/test-strverscmp.c (strverscmp): Likewise.
11271         * tests/test-symlink.c (symlink): Likewise.
11272         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
11273         * tests/test-times.c (times): Likewise.
11274         * tests/test-trunc1.c (trunc): Likewise.
11275         * tests/test-truncf1.c (truncf): Likewise.
11276         * tests/test-truncl.c (truncl): Likewise.
11277         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
11278         Likewise.
11279         * tests/test-uname.c (uname): Likewise.
11280         * tests/test-unlink.c (unlink): Likewise.
11281         * tests/test-unlinkat.c (unlinkat): Likewise.
11282         * tests/test-unsetenv.c (unsetenv): Likewise.
11283         * tests/test-usleep.c (usleep): Likewise.
11284         * tests/test-utimensat.c (utimensat): Likewise.
11285         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
11286         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
11287         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
11288         * tests/test-vprintf-posix.c (vprintf): Likewise.
11289         * tests/test-vsnprintf.c (vsnprintf): Likewise.
11290         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
11291         * tests/test-wcrtomb.c (wcrtomb): Likewise.
11292         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
11293         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
11294         * tests/test-wcwidth.c (wcwidth): Likewise.
11295
11296         build: pull in conditional headers during GNULIB_POSIXCHECK
11297         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
11298         definitions from any conditionally-included headers.
11299         * lib/stdlib.in.h (includes): Likewise.
11300         * lib/unistd.in.h (includes): Likewise.
11301
11302 2009-12-24  Bruno Haible  <bruno@clisp.org>
11303
11304         * tests/test-argv-iter.c: Include header file being tested immediately
11305         after config.h.
11306         * tests/test-base64.c: Likewise.
11307         * tests/test-flock.c: Likewise.
11308         * tests/test-fsync.c: Likewise.
11309         * tests/test-getdate.c: Likewise.
11310         * tests/test-getndelim2.c: Likewise.
11311         * tests/test-isfinite.c: Likewise.
11312         * tests/test-isinf.c: Likewise.
11313         * tests/test-strerror.c: Likewise.
11314         * tests/test-strsignal.c: Likewise.
11315
11316 2009-12-23  Eric Blake  <ebb9@byu.net>
11317
11318         unistd: work around cygwin bug
11319         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
11320         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
11321         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
11322
11323 2009-12-23  Bruno Haible  <bruno@clisp.org>
11324
11325         localename: More tests.
11326         * tests/test-localename.c (SIZEOF): New macro.
11327         (categories): New variable.
11328         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
11329         test_locale_name_default): Add test w.r.t. thread locale.
11330         (test_locale_name_thread): New function.
11331         (main): Invoke it.
11332
11333         localename: Make aware of thread locale.
11334         * lib/localename.h (gl_locale_name_thread): New declaration.
11335         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
11336         behaviour with respect to thread locale.
11337         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
11338         <langinfo.h>, glthread/lock.h.
11339         (SIZE_BITS): New macro.
11340         (string_hash): New function.
11341         (struct hash_node): New type.
11342         (HASH_TABLE_SIZE): New macro.
11343         (struniq_hash_table, struniq_lock): New variables.
11344         (struniq): New function.
11345         (gl_locale_name_thread): New function.
11346         (gl_locale_name): Invoke it.
11347         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
11348         * modules/localename (Depends-on): Add lock.
11349         Reported by Mike Gran <spk121@yahoo.com>.
11350
11351 2009-12-23  Eric Blake  <ebb9@byu.net>
11352
11353         va-args: new module
11354         * modules/va-args: New file.
11355         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
11356         * MODULES.html.sh (Core language properties): Mention it.
11357
11358         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
11359         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
11360         named alias for __attribute__((__unused__)).
11361         * lib/chown.c: Update client.
11362         * lib/fchmodat.c: Likewise.
11363         * lib/fts.c: Likewise.
11364         * lib/getdate.y: Likewise.
11365         * lib/getgroups.c: Likewise.
11366         * lib/getopt.c: Likewise.
11367         * lib/getugroups.c: Likewise.
11368         * lib/mkdir.c: Likewise.
11369         * lib/mkfifo.c: Likewise.
11370         * lib/mkfifoat.c: Likewise.
11371         * lib/mknod.c: Likewise.
11372         * lib/mknodat.c: Likewise.
11373         * lib/readlink.c: Likewise.
11374         * lib/se-context.in.h: Likewise.
11375         * lib/se-selinux.in.h: Likewise.
11376         * lib/sockets.c: Likewise.
11377         * lib/symlink.c: Likewise.
11378         * lib/symlinkat.c: Likewise.
11379         * lib/unicodeio.c: Likewise.
11380         * lib/unistr.h: Likewise.
11381         * tests/test-areadlink.c: Likewise.
11382         * tests/test-areadlinkat.c: Likewise.
11383         * tests/test-filenamecat.c: Likewise.
11384         * tests/test-fseeko.c: Likewise.
11385         * tests/test-ftello.c: Likewise.
11386         * tests/test-getdate.c: Likewise.
11387         * tests/test-getgroups.c: Likewise.
11388         * tests/test-gethostname.c: Likewise.
11389         * tests/test-quotearg.c: Likewise.
11390         * tests/test-version-etc.c: Likewise.
11391         * tests/test-xalloc-die.c: Likewise.
11392         * tests/test-xfprintf-posix.c: Likewise.
11393         * tests/test-xprintf-posix.c: Likewise.
11394         * tests/test-xvasprintf.c: Likewise.
11395
11396         tests: avoid compiler warnings
11397         * tests/test-fcntl.c (main): Delete unused parameters.
11398         * tests/test-freopen-safer.c (main): Likewise.
11399         * tests/test-xalloc-die.c (main): Mark unused parameters.
11400         * tests/test-fseeko.c (main): Likewise.
11401         * tests/test-ftello.c (main): Likewise.
11402         * tests/test-nanosleep.c (main): Avoid declaration warning.
11403         * tests/test-sleep.c (main): Likewise.
11404         * tests/test-unsetenv.c (main): Silence warning about string
11405         literal.
11406         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
11407
11408 2009-12-23  Bruno Haible  <bruno@clisp.org>
11409
11410         * tests/test-localename.c (test_locale_name): New function, extracted
11411         from main. Also test mixed situations.
11412         (test_locale_name_posix, test_locale_name_environ,
11413         test_locale_name_default): New functions.
11414         (main): Invoke them all.
11415         * modules/localename-tests (configure.ac): Test for newlocale.
11416
11417 2009-12-23  Bruno Haible  <bruno@clisp.org>
11418
11419         unistd: Ensure getcwd gets declared before being overridden.
11420         * lib/unistd.in.h: Conditionally include <io.h>.
11421
11422 2009-12-22  Bruno Haible  <bruno@clisp.org>
11423
11424         wchar: Diagnose broken combination of glibc and gcc versions and flags.
11425         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
11426         (gl_WCHAR_H): Invoke it.
11427         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
11428         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
11429         Reported by Karl Berry <karl@freefriends.org>.
11430
11431 2009-12-22  Eric Blake  <ebb9@byu.net>
11432
11433         math, unistd: avoid redundant includes
11434         * lib/math.in.h (isnan): No need to re-include <math.h>.
11435         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
11436
11437         getsubopt: work around cygwin bug
11438         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
11439         avoid conflicting with system getsubopt.
11440         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
11441         bug.
11442
11443         getopt: synchronize from glibc
11444         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
11445         parameter order.  Adjust all callers.
11446         (_getopt_internal_r, main): Adjust quoting in error messages.
11447         Drop considerations for outdated POSIX 1003.2 error message.
11448         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
11449         callers.
11450         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
11451
11452         test-getopt: test stderr behavior
11453         * modules/getopt-posix-tests (Depends-on): Add dup2.
11454         * tests/test-getopt.c (ASSERT): Avoid stderr.
11455         (main): Move stderr to a temporary file.
11456         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
11457         Instead, add parameter to inform caller if output occurred.
11458         (test_getopt): Adjust all existing tests to expect silence, and
11459         add new tests of leading ":".
11460         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
11461         glibc shortcomings with leading "-:" or "+:" in optstring.
11462         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11463         Likewise.
11464         * doc/posix-functions/getopt.texi (getopt): Likewise.
11465
11466         test-getopt: enhance test
11467         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
11468         supports optind=0.
11469         * tests/test-getopt.c (OPTIND_MIN): Move...
11470         * tests/test-getopt.h (OPTIND_MIN): ...here.
11471         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
11472         Require that optind=0 works, since modern BSD supports it in
11473         addition to optreset, and since coreutils expects it.
11474         (test_getopt_long_only): New test.
11475         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
11476         glibc shortcomings with 'W;', and enforcement of optind=0.
11477         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11478         Likewise.
11479
11480 2009-12-21  Bruno Haible  <bruno@clisp.org>
11481
11482         localename: Improvements for MacOS X and Cygwin.
11483         * lib/localename.h (gl_locale_name_environ): New declaration.
11484         * lib/localename.c (gl_locale_name_environ): New function, extracted from
11485         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
11486         (gl_locale_name_posix): Invoke it.
11487         (gl_locale_name_default): Add comments. Use Windows native API also on
11488         Cygwin.
11489
11490 2009-12-21  Bruno Haible  <bruno@clisp.org>
11491
11492         Update list of Win32 locale ids.
11493         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
11494         (LANG_SAMI): Renamed from LANG_SAAMI.
11495         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
11496         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
11497         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
11498         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
11499         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
11500         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
11501         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
11502         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
11503         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
11504         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
11505         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
11506         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
11507         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
11508         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
11509         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
11510         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
11511         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
11512         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
11513         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
11514         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
11515         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
11516         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
11517         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
11518         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
11519         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
11520         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
11521         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
11522         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
11523         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
11524         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
11525         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
11526         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
11527         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
11528         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
11529         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
11530         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
11531         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
11532         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
11533         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
11534         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
11535         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
11536         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
11537         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
11538         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
11539         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
11540         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
11541         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
11542         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
11543         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
11544         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
11545         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
11546         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
11547         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
11548         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
11549         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
11550         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
11551         Add more languages and countries for Sami, Sorbian. Add more countries
11552         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
11553         for Pashto. Change country for Syriac, Tswana.
11554
11555 2009-12-21  Eric Blake  <ebb9@byu.net>
11556
11557         test-utimens: avoid spurious failure
11558         * tests/test-chown.h (nap): Factor...
11559         * tests/nap.h: ...into new file.
11560         * tests/test-lchown.h (nap): Avoid duplication.
11561         * tests/test-utimens-common.h (nap): Use shared implementation,
11562         necessary on file systems with 1-second resolution.
11563         * modules/chown-tests (Files): Include new file.
11564         * modules/fdutimensat-tests (Files): Likewise.
11565         * modules/futimens-tests (Files): Likewise.
11566         * modules/lchown-tests (Files): Likewise.
11567         * modules/openat-tests (Files): Likewise.
11568         * modules/utimens-tests (Files): Likewise.
11569         * modules/utimensat-tests (Files): Likewise.
11570
11571 2009-12-19  Eric Blake  <ebb9@byu.net>
11572
11573         futimens, utimensat: work around Linux bug
11574         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
11575         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
11576         * lib/utimensat.c (rpl_utimensat): Work around it.
11577         * lib/futimens.c (rpl_futimens): Adjust comment.
11578
11579         utimens: work around Linux ctime bug
11580         * lib/utimens.c (detect_ctime_bug): New helper function.
11581         (update_timespec): Differentiate between workaround needed for
11582         this bug vs. what is needed for systems that lack utimensat.
11583         (fdutimens, lutimens): Work around bug.
11584
11585         utimens: check for ctime update
11586         * tests/test-utimens-common.h (check_ctime): Define.
11587         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
11588         * tests/test-futimens.h (test_futimens): Likewise.
11589         * tests/test-lutimens.h (test_lutimens): Likewise.
11590         * doc/posix-functions/futimens.texi (futimens): Document the bug.
11591         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
11592
11593 2009-12-19  Bruno Haible  <bruno@clisp.org>
11594
11595         dprintf-posix: Check against memory leak fixed on 2009-12-15.
11596         * tests/test-dprintf-posix2.sh: New file.
11597         * tests/test-dprintf-posix2.c: New file.
11598         * modules/dprintf-posix-tests (Files): Add them.
11599         (configure.ac): Check for getrlimit and setrlimit.
11600         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
11601
11602 2009-12-19  Bruno Haible  <bruno@clisp.org>
11603
11604         fprintf-posix: Check against memory leak fixed on 2009-12-15.
11605         * tests/test-fprintf-posix3.sh: New file.
11606         * tests/test-fprintf-posix3.c: New file.
11607         * modules/fprintf-posix-tests (Files): Add them.
11608         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
11609
11610 2009-12-19  Eric Blake  <ebb9@byu.net>
11611
11612         dirfd: fix prototype
11613         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
11614         * lib/dirfd.c (dirfd): Likewise.
11615
11616         canonicalize: reduce memory usage
11617         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
11618         allocation to size.
11619         Reported by Solar Designer <solar@openwall.com>.
11620
11621 2009-12-19  Bruno Haible  <bruno@clisp.org>
11622
11623         New module attribute 'Applicability'.
11624         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
11625         * gnulib-tool: New option --extract-applicability.
11626         (func_usage): Document it.
11627         (sed_extract_prog): Recognize it.
11628         (func_get_applicability): New function.
11629         (func_import): Generalize handling of 'link-warning' module.
11630         * modules/link-warning (Applicability): New section.
11631         * modules/arg-nonnull (Applicability): New section.
11632         Repoted by Simon Josefsson <simon@josefsson.org>.
11633
11634 2009-12-19  Bruno Haible  <bruno@clisp.org>
11635
11636         fflush: tweak
11637         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
11638         * lib/fseeko.c (rpl_fseeko): Likewise.
11639
11640 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
11641
11642         * lib/gl_list.h: Fix typo in comment.
11643
11644 2009-12-16  Eric Blake  <ebb9@byu.net>
11645
11646         fcntl: use to simplify other modules
11647         * modules/cloexec (Depends-on): Add fcntl.
11648         * modules/fchdir (Depends-on): Likewise.
11649         * modules/fd-safer-flag (Depends-on): Likewise.
11650         * modules/unistd-safer (Depends-on): Likewise.
11651         * modules/dup3 (configure.ac): Set module indicator.
11652         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
11653         missing.
11654         * lib/fchdir.c (_gl_register_dup): Fix comment.
11655         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
11656         * lib/dup-safer.c (dup_safer): Likewise.
11657         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
11658         * lib/dup3.c (dup3): Likewise.
11659         * tests/test-fchdir.c (main): Enhance test.
11660         Fixes a dup_cloexec bug reported by Ondřej Vašík.
11661
11662         fcntl: port portions of fcntl to mingw
11663         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
11664         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
11665         replacement for mingw.
11666         * modules/fcntl (Description): Update.
11667         (Depends-on): Add dup2.
11668         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
11669         * modules/fcntl-h (Makefile.am): Substitute it.
11670         * lib/fcntl.in.h (fcntl): Update declaration.
11671         (F_DUPFD, F_GETFD): New macros, when needed.
11672         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
11673         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
11674         * tests/test-fcntl.c (check_flags, main): Enhance test for items
11675         we now guarantee.
11676
11677         fcntl: work around cygwin bug in F_DUPFD
11678         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
11679         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
11680         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
11681         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
11682         * doc/posix-functions/fcntl.texi (fcntl): Document it.
11683
11684         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
11685         * modules/fcntl (Files): List new files.
11686         (configure.ac): Run a test.
11687         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
11688         * lib/fcntl.c (rpl_fcntl): Likewise.
11689         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
11690         (gl_FCNTL_H): Always replace fcntl.h.
11691         * modules/fcntl-h (Makefile.am): Substitute witnesses.
11692         * lib/fcntl.in.h (fcntl): Declare replacement.
11693         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
11694         needed, plus a witness.
11695         * doc/posix-functions/fcntl.texi (fcntl): Document this.
11696         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
11697         * tests/test-fcntl.c: New file.
11698         * modules/fcntl-tests: Likewise.
11699
11700         binary-io: avoid potential compilation warning
11701         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
11702         directives.
11703
11704         fflush: avoid compilation error on NetBSD
11705         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
11706         between off_t and fpos_t, since the latter is sometimes a struct.
11707         * lib/fseeko.c (rpl_fseeko): Likewise.
11708         Reported by Alexander Nasonov <alnsn@yandex.ru>.
11709
11710 2009-12-15  Eric Blake  <ebb9@byu.net>
11711
11712         fcntl-h, stdio, sys_ioctl: fix declarations
11713         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
11714         function must not take arguments.
11715         * lib/sys_ioctl.in.h (ioctl): Likewise.
11716         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
11717         (open): Add a link warning.
11718
11719 2009-12-15  Jim Meyering  <meyering@redhat.com>
11720
11721         areadlink, areadlink-with-size: relax license to LGPLv2+
11722         * modules/areadlink (License): Relax to LGPLv2+.
11723         * modules/areadlink-with-size (License): Likewise.
11724
11725 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
11726             Bruno Haible  <bruno@clisp.org>
11727
11728         *printf: Fix memory leak.
11729         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
11730         * lib/vfprintf.c (vfprintf): Likewise.
11731         * lib/dprintf.c (dprintf): Likewise.
11732         * lib/vdprintf.c (vdprintf): Likewise.
11733
11734 2009-12-14  Eric Blake  <ebb9@byu.net>
11735
11736         accept4: adjust module dependencies
11737         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
11738
11739         utimens: one more try at avoiding compiler warning
11740         * lib/utimens.c (lutimens): Lower scope of result.
11741
11742 2009-12-13  Bruno Haible  <bruno@clisp.org>
11743
11744         Move the malloc checking from module 'list' to new module 'xlist'.
11745         * modules/xlist: New file.
11746         * lib/gl_xlist.h: New file.
11747         * lib/gl_xlist.c: New file.
11748         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
11749         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
11750         gl_list_add_last, gl_list_add_before, gl_list_add_after,
11751         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
11752         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
11753         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
11754         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
11755         gl_sortedlist_nx_add): New declarations.
11756         (struct gl_list_implementation): Rename and change methods accordingly.
11757         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
11758         (gl_list_nx_create): Renamed from gl_list_create.
11759         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
11760         (gl_list_nx_set_at): Renamed from gl_list_set_at.
11761         (gl_list_nx_add_first): Renamed from gl_list_add_first.
11762         (gl_list_nx_add_last): Renamed from gl_list_add_last.
11763         (gl_list_nx_add_before): Renamed from gl_list_add_before.
11764         (gl_list_nx_add_after): Renamed from gl_list_add_after.
11765         (gl_list_nx_add_at): Renamed from gl_list_add_at.
11766         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
11767         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
11768         gl_list_create_empty.
11769         (gl_list_nx_create): Renamed from gl_list_create.
11770         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
11771         (gl_list_nx_set_at): Renamed from gl_list_set_at.
11772         (gl_list_nx_add_first): Renamed from gl_list_add_first.
11773         (gl_list_nx_add_last): Renamed from gl_list_add_last.
11774         (gl_list_nx_add_before): Renamed from gl_list_add_before.
11775         (gl_list_nx_add_after): Renamed from gl_list_add_after.
11776         (gl_list_nx_add_at): Renamed from gl_list_add_at.
11777         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
11778         * lib/gl_array_list.c: Don't include xalloc.h.
11779         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
11780         NULL upon out-of-memory.
11781         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
11782         out-of-memory.
11783         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
11784         Change return type to 'int'.
11785         (gl_array_nx_set_at): Renamed from gl_array_set_at.
11786         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
11787         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
11788         upon out-of-memory.
11789         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
11790         upon out-of-memory.
11791         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
11792         upon out-of-memory.
11793         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
11794         upon out-of-memory.
11795         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
11796         out-of-memory.
11797         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
11798         Update.
11799         (gl_array_list_implementation): Update.
11800         * lib/gl_carray_list.c: Don't include xalloc.h.
11801         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
11802         Return NULL upon out-of-memory.
11803         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
11804         out-of-memory.
11805         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
11806         Change return type to 'int'.
11807         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
11808         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
11809         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
11810         upon out-of-memory.
11811         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
11812         upon out-of-memory.
11813         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
11814         out-of-memory.
11815         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
11816         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
11817         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
11818         Update.
11819         (gl_carray_list_implementation): Update.
11820         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
11821         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
11822         gl_linked_create_empty. Return NULL upon out-of-memory.
11823         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
11824         out-of-memory.
11825         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
11826         Change return type to 'int'. Return -1 upon out-of-memory.
11827         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
11828         out-of-memory.
11829         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
11830         upon out-of-memory.
11831         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
11832         upon out-of-memory.
11833         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
11834         NULL upon out-of-memory.
11835         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
11836         upon out-of-memory.
11837         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
11838         out-of-memory.
11839         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
11840         Update.
11841         * lib/gl_linked_list.c: Don't include xalloc.h.
11842         (gl_linked_list_implementation): Update.
11843         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
11844         (add_to_bucket): Change return type to 'int'.
11845         (gl_linkedhash_list_implementation): Update.
11846         * lib/gl_anytree_list1.h (free_subtree): New function.
11847         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
11848         gl_tree_create_empty. Return NULL upon out-of-memory.
11849         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
11850         Change return type to 'int'. Return -1 upon out-of-memory.
11851         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
11852         out-of-memory.
11853         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
11854         (gl_tree_remove_node): New function, moved here from
11855         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
11856         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
11857         Update.
11858         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
11859         malloc, not xmalloc. Return NULL upon out-of-memory.
11860         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
11861         out-of-memory.
11862         (gl_tree_remove_node_from_tree): New function, extracted from
11863         gl_tree_remove_node.
11864         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
11865         upon out-of-memory.
11866         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
11867         out-of-memory.
11868         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
11869         upon out-of-memory.
11870         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
11871         upon out-of-memory.
11872         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
11873         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
11874         not xmalloc. Return NULL upon out-of-memory.
11875         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
11876         out-of-memory.
11877         (gl_tree_remove_node_from_tree): New function, extracted from
11878         gl_tree_remove_node.
11879         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
11880         upon out-of-memory.
11881         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
11882         out-of-memory.
11883         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
11884         upon out-of-memory.
11885         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
11886         upon out-of-memory.
11887         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
11888         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
11889         gl_anytree_list1.h before gl_anyavltree_list2.h.
11890         (gl_avltree_list_implementation): Update.
11891         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
11892         gl_anytree_list1.h before gl_anyavltree_list2.h.
11893         (gl_rbtree_list_implementation): Update.
11894         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
11895         Change return type to 'int'. Return -1 upon out-of-memory. Use
11896         __builtin_expect.
11897         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
11898         (gl_avltreehash_list_implementation): Update.
11899         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
11900         (gl_rbtreehash_list_implementation): Update.
11901         * modules/array-list (Depends-on): Remove xalloc.
11902         * modules/carray-list (Depends-on): Likewise.
11903         * modules/linked-list (Depends-on): Likewise.
11904         * modules/linkedhash-list (Depends-on): Likewise.
11905         * modules/avltree-list (Depends-on): Likewise.
11906         * modules/rbtree-list (Depends-on): Likewise.
11907         * modules/avltreehash-list (Depends-on): Likewise.
11908         * modules/rbtreehash-list (Depends-on): Likewise.
11909
11910         * modules/xsublist: New file.
11911         * lib/gl_xsublist.h: New file.
11912         * lib/gl_xsublist.c: New file.
11913         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
11914         (gl_sublist_nx_create): New declaration.
11915         * lib/gl_sublist.c: Don't include xalloc.h.
11916         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
11917         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
11918         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
11919         Change return type to 'int'. Return -1 upon out-of-memory.
11920         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
11921         upon out-of-memory.
11922         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
11923         NULL upon out-of-memory.
11924         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
11925         upon out-of-memory.
11926         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
11927         NULL upon out-of-memory.
11928         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
11929         NULL upon out-of-memory.
11930         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
11931         upon out-of-memory.
11932         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
11933         (gl_sublist_list_implementation): Update.
11934         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
11935         upon out-of-memory.
11936         * modules/sublist (Depends-on): Remove xalloc.
11937
11938         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
11939         * tests/test-carray_list.c: Likewise.
11940         * tests/test-linked_list.c: Likewise.
11941         * tests/test-linkedhash_list.c: Likewise.
11942         * tests/test-avltree_list.c: Likewise.
11943         * tests/test-rbtree_list.c: Likewise.
11944         * tests/test-avltreehash_list.c: Likewise.
11945         * tests/test-rbtreehash_list.c: Likewise.
11946         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
11947         * modules/carray-list-tests (Makefile.am): Likewise.
11948         * modules/linked-list-tests (Makefile.am): Likewise.
11949         * modules/linkedhash-list-tests (Makefile.am): Likewise.
11950         * modules/avltree-list-tests (Makefile.am): Likewise.
11951         * modules/rbtree-list-tests (Makefile.am): Likewise.
11952         * modules/avltreehash-list-tests (Makefile.am): Likewise.
11953         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
11954
11955         * NEWS: Mention the changes.
11956
11957         * lib/clean-temp.c: Include gl_xlist.h.
11958         * modules/clean-temp (Depends-on): Add xlist.
11959
11960         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
11961         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
11962
11963         * tests/test-array_oset.c: Include gl_xlist.h.
11964         * modules/array-oset-tests (Depends-on): Add xlist.
11965
11966         Reported by José E. Marchesi <jemarch@gnu.org>.
11967
11968 2009-12-13  Bruno Haible  <bruno@clisp.org>
11969
11970         Move the malloc checking from module 'oset' to new module 'xoset'.
11971         * modules/xoset: New file.
11972         * lib/gl_xoset.h: New file.
11973         * lib/gl_xoset.c: New file.
11974         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
11975         declarations.
11976         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
11977         (struct gl_oset_implementation): Rename and change methods accordingly.
11978         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
11979         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
11980         'int'. Mark as __warn_unused_result__.
11981         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
11982         gl_oset_create_empty.
11983         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
11984         'int'.
11985         * lib/gl_array_oset.c: Don't include xalloc.h.
11986         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
11987         malloc, not xmalloc.
11988         (grow): Change return type to 'int'. Don't call xalloc_die.
11989         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
11990         to 'int'.
11991         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
11992         'int'.
11993         (gl_array_oset_implementation): Update.
11994         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
11995         gl_tree_create_empty.
11996         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
11997         'int'.
11998         * lib/gl_avltree_oset.c: Don't include xalloc.h.
11999         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
12000         xmalloc.
12001         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
12002         not xmalloc.
12003         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
12004         xmalloc.
12005         (gl_avltree_oset_implementation): Update.
12006         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
12007         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
12008         xmalloc.
12009         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
12010         not xmalloc.
12011         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
12012         xmalloc.
12013         (gl_rbtree_oset_implementation): Update.
12014         * modules/array-oset (Depends-on): Remove xalloc.
12015         * modules/avltree-oset (Depends-on): Likewise.
12016         * modules/rbtree-oset (Depends-on): Likewise.
12017         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
12018         * tests/test-avltree_oset.c: Likewise.
12019         * tests/test-rbtree_oset.c: Likewise.
12020         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
12021         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
12022         * modules/rbtree-oset-tests (Makefile.am): Likewise.
12023         * NEWS: Mention the change.
12024
12025 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
12026
12027         maint.mk: allow a project to override release-prep commands
12028         * top/maint.mk (alpha, beta, stable): Move release-preparatory
12029         commands into a new rule.
12030         (release-prep): New rule.
12031         (release-prep-hook): New overridable variable.
12032
12033 2009-12-13  Bruno Haible  <bruno@clisp.org>
12034
12035         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
12036
12037 2009-12-13  Jim Meyering  <meyering@redhat.com>
12038
12039         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
12040         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
12041
12042 2009-12-12  Bruno Haible  <bruno@clisp.org>
12043
12044         duplocale: Tweak.
12045         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
12046
12047 2009-12-12  Karl Berry  <karl@gnu.org>
12048
12049         * config/srclist.txt (strtoll.c): tab changes, no more sync.
12050
12051 2009-12-12  Bruno Haible  <bruno@clisp.org>
12052
12053         * m4/po.m4: Undo incorrect untabification.
12054
12055 2009-12-12  Bruno Haible  <bruno@clisp.org>
12056
12057         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
12058         * modules/c-strtod (Depends-on): Add locale.
12059         * modules/c-strtold (Depends-on): Likewise.
12060
12061 2009-12-12  Bruno Haible  <bruno@clisp.org>
12062
12063         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
12064
12065 2009-12-11  Eric Blake  <ebb9@byu.net>
12066
12067         setenv: relax requirement in light of POSIX ruling
12068         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
12069         not NULL.
12070         * tests/test-setenv.c (main): Relax test.
12071         * tests/test-unsetenv.c (main): Likewise.
12072         * doc/posix-functions/setenv.texi (setenv): Document this.
12073         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
12074
12075 2009-12-11  Bruno Haible  <bruno@clisp.org>
12076
12077         New module 'fd-safer-flag'.
12078         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
12079         * lib/dup-safer.c (dup_safer_flag): Remove function.
12080         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
12081         * lib/fd-safer.c (fd_safer_flag): Remove function.
12082         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
12083         * modules/cloexec (configure.ac): Drop indicator macro.
12084         * modules/fd-safer-flag: New file.
12085         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
12086         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
12087         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
12088
12089 2009-12-11  Bruno Haible  <bruno@clisp.org>
12090
12091         Tests for module 'nl_langinfo'.
12092         * modules/nl_langinfo-tests: New file.
12093         * tests/test-nl_langinfo.sh: New file.
12094         * tests/test-nl_langinfo.c: New file.
12095
12096         New module 'nl_langinfo'.
12097         * lib/nl_langinfo.c: New file.
12098         * m4/nl_langinfo.m4: New file.
12099         * modules/nl_langinfo: New file.
12100         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
12101
12102 2009-12-11  Bruno Haible  <bruno@clisp.org>
12103
12104         Tests for module 'langinfo'.
12105         * modules/langinfo-tests: New file.
12106         * tests/test-langinfo.c: New file.
12107
12108         New module 'langinfo'.
12109         * lib/langinfo.in.h: New file.
12110         * m4/langinfo_h.m4: New file.
12111         * modules/langinfo: New file.
12112         * doc/posix-headers/langinfo.texi: Mention the new module.
12113
12114 2009-12-11  Bruno Haible  <bruno@clisp.org>
12115
12116         * lib/config.charset: Untabify.
12117
12118 2009-12-11  Bruno Haible  <bruno@clisp.org>
12119
12120         * modules/unistd-safer (configure.ac): Drop indicator macro.
12121
12122 2009-12-11  Bruno Haible  <bruno@clisp.org>
12123
12124         Move pipe2-safer code to its own file.
12125         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
12126         * lib/pipe-safer.c (pipe2_safer): Remove function.
12127         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
12128         (Makefile.am): Add it to lib_SOURCES.
12129
12130 2009-12-10  Bruno Haible  <bruno@clisp.org>
12131
12132         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
12133
12134 2009-12-10  Bruno Haible  <bruno@clisp.org>
12135
12136         Declare which arguments expect non-NULL values, for GCC and clang.
12137         * build-aux/arg-nonnull.h: New file.
12138         * modules/arg-nonnull: New file.
12139         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
12140         (inet_ntop, inet_pton): Use it.
12141         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
12142         (closedir, dirfd, opendir, scandir, alphasort): Use it.
12143         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
12144         (open, openat): Use it.
12145         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
12146         (fnmatch): Use it.
12147         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
12148         (getopt, getopt_long, getopt_long_only): Use it.
12149         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
12150         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
12151         Use it.
12152         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
12153         (iconv_open): Use it.
12154         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
12155         (strtoimax, strtoumax): Use it.
12156         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
12157         (duplocale): Use it.
12158         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
12159         (frexp, frexpl): Use it.
12160         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
12161         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
12162         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
12163         (tsearch, tfind, tdelete, twalk): Use it.
12164         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
12165         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
12166         sigpending): Use it.
12167         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
12168         (posix_spawn, posix_spawnp, posix_spawnattr_init,
12169         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
12170         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
12171         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
12172         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
12173         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
12174         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
12175         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
12176         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
12177         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
12178         Use it.
12179         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
12180         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
12181         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
12182         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
12183         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
12184         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
12185         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
12186         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
12187         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
12188         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
12189         strtoull, unsetenv): Use it.
12190         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
12191         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
12192         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
12193         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
12194         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
12195         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
12196         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
12197         (strcasecmp, strncasecmp): Use it.
12198         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
12199         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
12200         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
12201         rpl_setsockopt): Use it.
12202         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
12203         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
12204         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
12205         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
12206         (gettimeofday): Use it.
12207         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
12208         (times): Use it.
12209         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
12210         (uname): Use it.
12211         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
12212         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
12213         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
12214         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
12215         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
12216         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
12217         unlinkat, write): Use it.
12218         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
12219         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
12220         * lib/argv-iter.h: Include arg-nonnull.h.
12221         (_ATTRIBUTE_NONNULL_): Remove macro.
12222         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
12223         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
12224         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
12225         optimization.
12226         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
12227         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
12228         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
12229         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
12230         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
12231         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
12232         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
12233         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
12234         * modules/arpa_inet (Depends-on): Add arg-nonnull.
12235         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
12236         * modules/dirent (Depends-on): Add arg-nonnull.
12237         (Makefile.am): Insert arg-nonnull.h into dirent.h.
12238         * modules/fcntl-h (Depends-on): Add arg-nonnull.
12239         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
12240         * modules/fnmatch (Depends-on): Add arg-nonnull.
12241         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
12242         * modules/getopt-posix (Depends-on): Add arg-nonnull.
12243         (Makefile.am): Insert arg-nonnull.h into getopt.h.
12244         * modules/glob (Depends-on): Add arg-nonnull.
12245         (Makefile.am): Insert arg-nonnull.h into glob.h.
12246         * modules/iconv_open (Depends-on): Add arg-nonnull.
12247         (Makefile.am): Insert arg-nonnull.h into iconv.h.
12248         * modules/inttypes (Depends-on): Add arg-nonnull.
12249         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
12250         * modules/locale (Depends-on): Add arg-nonnull.
12251         (Makefile.am): Insert arg-nonnull.h into locale.h.
12252         * modules/math (Depends-on): Add arg-nonnull.
12253         (Makefile.am): Insert arg-nonnull.h into math.h.
12254         * modules/netdb (Depends-on): Add arg-nonnull.
12255         (Makefile.am): Insert arg-nonnull.h into netdb.h.
12256         * modules/search (Depends-on): Add arg-nonnull.
12257         (Makefile.am): Insert arg-nonnull.h into search.h.
12258         * modules/signal (Depends-on): Add arg-nonnull.
12259         (Makefile.am): Insert arg-nonnull.h into signal.h.
12260         * modules/spawn (Depends-on): Add arg-nonnull.
12261         (Makefile.am): Insert arg-nonnull.h into spawn.h.
12262         * modules/stdio (Depends-on): Add arg-nonnull.
12263         (Makefile.am): Insert arg-nonnull.h into stdio.h.
12264         * modules/stdlib (Depends-on): Add arg-nonnull.
12265         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
12266         * modules/string (Depends-on): Add arg-nonnull.
12267         (Makefile.am): Insert arg-nonnull.h into string.h.
12268         * modules/strings (Depends-on): Add arg-nonnull.
12269         (Makefile.am): Insert arg-nonnull.h into strings.h.
12270         * modules/sys_socket (Depends-on): Add arg-nonnull.
12271         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
12272         * modules/sys_stat (Depends-on): Add arg-nonnull.
12273         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
12274         * modules/sys_time (Depends-on): Add arg-nonnull.
12275         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
12276         * modules/sys_times (Depends-on): Add arg-nonnull.
12277         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
12278         * modules/sys_utsname (Depends-on): Add arg-nonnull.
12279         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
12280         * modules/time (Depends-on): Add arg-nonnull.
12281         (Makefile.am): Insert arg-nonnull.h into time.h.
12282         * modules/unistd (Depends-on): Add arg-nonnull.
12283         (Makefile.am): Insert arg-nonnull.h into unistd.h.
12284         * modules/wchar (Depends-on): Add arg-nonnull.
12285         (Makefile.am): Insert arg-nonnull.h into wchar.h.
12286         * modules/argv-iter (Depends-on): Add arg-nonnull.
12287         * tests/test-canonicalize.c (null_ptr): New function.
12288         (main): Use it.
12289         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
12290         (main): Use it.
12291         * tests/test-memmem.c (null_ptr): New function.
12292         (main): Use it.
12293         Reported by Jim Meyering.
12294
12295 2009-12-10  Bruno Haible  <bruno@clisp.org>
12296
12297         Use spaces for indentation, not tabs.
12298         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
12299         * m4/*.m4: Untabify.
12300         * build-aux/*.h: Untabify.
12301         * tests/**/*.[hc]: Untabify.
12302         * README: New section "Indent with spaces, not TABs", based on
12303         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
12304         * NEWS: Mention the change.
12305
12306 2009-12-10  Bruno Haible  <bruno@clisp.org>
12307
12308         pty test: Fix link error.
12309         * modules/pty-tests (Makefile.am): Add the default LDADD value to
12310         test_pty_LDADD.
12311
12312 2009-12-07  Simon Josefsson  <simon@josefsson.org>
12313
12314         * modules/pty: New file.
12315         * modules/pty-tests: New file.
12316         * m4/pty.m4: New file.
12317         * tests/test-pty.c: New file.
12318         * doc/glibc-headers/pty.texi: Modified.
12319         * doc/glibc-functions/forkpty.texi: Modified.
12320         * doc/glibc-functions/openpty.texi: Modified.
12321
12322 2009-12-10  Bruno Haible  <bruno@clisp.org>
12323
12324         Avoid syntax error in C++ mode.
12325         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
12326
12327 2009-12-10  Bruno Haible  <bruno@clisp.org>
12328
12329         Use sed with option -e.
12330         * gnulib-tool (func_version, func_emit_copyright_notice,
12331         func_emit_initmacro_end, func_import, func_create_testdir): Pass
12332         option -e to sed.
12333         * modules/link-warning (Makefile.am): Likewise.
12334
12335 2009-12-10  Jim Meyering  <meyering@redhat.com>
12336
12337         mgetgroups: do not write bytes beyond end of malloc'd buffer
12338         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
12339         username, we call getgroups with a one-element-shorter buffer,
12340         but still told it the length was original, max_n_groups.
12341
12342 2009-12-09  Eric Blake  <ebb9@byu.net>
12343
12344         cloexec: relax license
12345         * modules/cloexec (Maintainer): Add myself.
12346         (License): Use LGPL, not GPL.
12347
12348         link-warning: optimize generation
12349         * modules/link-warning (Makefile.am): Reduce process usage.
12350
12351 2009-12-09  Bruno Haible  <bruno@clisp.org>
12352
12353         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
12354         workaround was added on 2009-11-17.
12355
12356 2009-12-09  Jim Meyering  <meyering@redhat.com>
12357             Bruno Haible  <bruno@clisp.org>
12358
12359         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
12360         * modules/link-warning (Makefile.am): Make the comment-removing sed
12361         command more robust in the face of bootstrap-prepended comment lines.
12362
12363 2009-12-09  Bruno Haible  <bruno@clisp.org>
12364
12365         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
12366         most one group.
12367
12368 2009-12-09  Simon Josefsson <simon@josefsson.org>
12369             Bruno Haible  <bruno@clisp.org>
12370
12371         * build-aux/link-warning.h: Add copyright notice.
12372         * modules/link-warning (Makefile.am): Generate link-warning.h from
12373         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
12374         * NEWS: Mention change in link-warning module.
12375         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
12376         * modules/dirent (Makefile.am): Add dependency to dirent.h.
12377         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
12378         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
12379         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
12380         * modules/math (Makefile.am): Add dependency to math.h.
12381         * modules/search (Makefile.am): Add dependency to search.h.
12382         * modules/signal (Makefile.am): Add dependency to signal.h.
12383         * modules/spawn (Makefile.am): Add dependency to spawn.h.
12384         * modules/stdio (Makefile.am): Add dependency to stdio.h.
12385         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
12386         * modules/string (Makefile.am): Add dependency to string.h.
12387         * modules/strings (Makefile.am): Add dependency to strings.h.
12388         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
12389         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
12390         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
12391         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
12392         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
12393         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
12394         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
12395         * modules/unistd (Makefile.am): Add dependency to unistd.h.
12396         * modules/wchar (Makefile.am): Add dependency to wchar.h.
12397
12398 2009-12-09  Bruno Haible  <bruno@clisp.org>
12399
12400         fchdir: Optimize away rpl_fstat when possible.
12401         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
12402         REPLACE_OPEN_DIRECTORY.
12403         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
12404
12405 2009-12-09  Bruno Haible  <bruno@clisp.org>
12406
12407         * lib/fchdir.c: Update comment.
12408
12409 2009-12-09  Bruno Haible  <bruno@clisp.org>
12410
12411         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
12412
12413 2009-12-08  Eric Blake  <ebb9@byu.net>
12414
12415         fchdir: avoid memory leak on re-registration.
12416         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
12417
12418 2009-12-08  Jim Meyering  <meyering@redhat.com>
12419
12420         init.sh: avoid Solaris 10 /bin/sh portability problem
12421         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
12422         sourced script:
12423           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
12424           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
12425           bar
12426         tests/init.sh relied on that, accepting a --set-path=DIR argument,
12427         and two tests used that idiom.
12428         * tests/init.sh: Update suggested usage comments.
12429         (path_prepend_): New function, to be used in place
12430         of the --src-path=DIR option.
12431         (setup_): Move PATH-prepending code into path_prepend_.
12432         * tests/test-pread.sh: Adapt to new usage.
12433         * tests/test-xalloc-die.sh: Likewise.
12434
12435 2009-12-08  Simon Josefsson  <simon@josefsson.org>
12436
12437         * doc/gnulib.texi (Glibc pty.h): Add.
12438         * doc/glibc-functions/forkpty.texi: Add.
12439         * doc/glibc-functions/openpty.texi: Add.
12440         Suggested by Bruno Haible.
12441
12442 2009-12-08  Eric Blake  <ebb9@byu.net>
12443
12444         fchdir: fix logic bugs
12445         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
12446         * tests/test-fchdir.c (main): Enhance test.
12447         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
12448         is in use.
12449
12450         dup2: fix logic bugs
12451         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
12452         REPLACE_DUP2 to decide when rpl_dup2 is needed.
12453         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
12454         exists.
12455         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
12456
12457 2009-12-07  Eric Blake  <ebb9@byu.net>
12458
12459         unlink: fix m4 detection
12460         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
12461
12462         unistd-safer: add unit test
12463         * modules/unistd-safer-tests: New file.
12464         * tests/test-dup-safer.c: Likewise.
12465         * tests/test-cloexec.c (setmode): Avoid compiler warning.
12466         * tests/test-dup2.c (setmode): Likewise.
12467         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
12468
12469         cloexec: preserve text vs. binary across dup_cloexec
12470         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
12471         mode.
12472         * modules/dup2-tests (Depends-on): Add binary-io.
12473         * modules/cloexec-tests (Depends-on): Likewise.
12474         * tests/test-dup2.c (setmode, is_mode): New helpers.
12475         (main): Add tests that translation mode is preserved.
12476         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
12477         Reported by Bruno Haible.
12478
12479         mgetgroups: reduce duplicate listings
12480         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
12481         resulting array.
12482         * tests/test-chown.h (test_chown): Simplify client.
12483         * tests/test-lchown.h (test_lchown): Likewise.
12484
12485 2009-12-06  Bruno Haible  <bruno@clisp.org>
12486
12487         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
12488         value.
12489
12490 2009-12-06  Bruno Haible  <bruno@clisp.org>
12491
12492         * lib/progname.c: Include stdio.h, stdlib.h.
12493         (set_program_name): Reject a NULL argument.
12494
12495 2009-12-05  Eric Blake  <ebb9@byu.net>
12496
12497         pipe2-safer: new module
12498         * modules/pipe2-safer: New file.
12499         * lib/unistd-safer.h (pipe2_safer): New prototype.
12500         * lib/unistd--.h (pipe2): New wrapper.
12501         * lib/pipe-safer.c (pipe2_safer): New function.
12502         * modules/pipe (Depends-on): Add pipe2-safer.
12503         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
12504
12505         stdlib-safer: preserve cloexec flag for mkostemp[s]
12506         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
12507         fd_safer_flag.
12508
12509         unistd-safer: allow preservation of cloexec status via flag
12510         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
12511         prototypes.
12512         * lib/dup-safer.c (dup_safer_flag): New function.
12513         * lib/fd-safer.c (fd_safer_flag): Likewise.
12514         * modules/cloexec (configure.ac): Set witness.
12515
12516         test-dup2: enhance test
12517         * modules/dup2-tests (Depends-on): Add cloexec.
12518         * tests/test-dup2.c (main): Enhance test.
12519
12520         cloexec: add dup_cloexec
12521         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
12522         header and comments.
12523         * lib/cloexec.c (set_cloexec_flag): Add comments.
12524         (dup_cloexec): New function, with mingw implementation borrowed
12525         from...
12526         * lib/w32spawn.h (dup_noinherit): ...here.
12527         * modules/execute (Depends-on): Add cloexec.
12528         * modules/pipe (Depends-on): Likewise.
12529         * modules/cloexec (Depends-on): Add dup2.
12530         * modules/cloexec-tests (Files): New file.
12531         * tests/test-cloexec.c: Likewise.
12532
12533         test-xalloc-die: fix test for mingw
12534         * modules/xalloc-die-tests (Files): Add tests/init.sh.
12535         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
12536         directory and .exe suffix off argv[0] output.
12537
12538         test-fseeko: fix test for mingw
12539         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
12540         than undefining fseek, so test will pass on mingw.
12541
12542 2009-12-05  Bruno Haible  <bruno@clisp.org>
12543
12544         * lib/progname.h (set_program_name): Clarify specification.
12545         * lib/progname.c (set_program_name): Likewise.
12546         Reported by Jim Meyering.
12547
12548 2009-12-05  Jim Meyering  <meyering@redhat.com>
12549
12550         maint.mk: backslash-escape parens in default regexp
12551         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
12552         backslash-escape the literal parentheses.
12553
12554         maint.mk: news-date-check: use grep -E
12555         * top/maint.mk (today): Define a Make variable, not a...
12556         (news-date-check): ...shell variable.
12557         (news-date-regexp): Use the Make variable.
12558         Use grep's -E option.  Change the failing diagnostic to mention
12559         the variable, $(news-date-regexp).
12560
12561 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
12562
12563         maintainer-makefile: allow customization of NEWS entry format
12564         * top/maint.mk (news-date-regexp): New overridable variable.
12565         (news-date-check): Use it.
12566
12567 2009-12-04  Eric Blake  <ebb9@byu.net>
12568
12569         mgetgroups: add xgetgroups, and avoid ENOSYS failures
12570         * lib/mgetgroups.h (xgetgroups): New prototype.
12571         * lib/mgetgroups.c (xgetgroups): New wrapper.
12572         (mgetgroups): Handle ENOSYS.
12573         * modules/mgetgroups (Depends-on): Add realloc.
12574         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
12575
12576         mgetgroups: avoid argument promotion issues with -1
12577         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
12578         for invalid gid_t.
12579         * tests/test-chown.h (getegid, test_chown): Likewise.
12580         * tests/test-lchown.h (getegid, test_lchown): Likewise.
12581
12582 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
12583
12584         exclude: Fix header file problems.
12585         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
12586
12587 2009-12-01  Jim Meyering  <meyering@redhat.com>
12588
12589         fts: fts_open: do not let an empty string cause immediate failure
12590         This is required in support of GNU rm, for which the command
12591         "rm A '' B" must process and remove both A and B, in spite of
12592         the empty string argument.
12593         * lib/fts.c (fts_open): Do not let the presence of an empty string
12594         cause fts_open to fail immediately.  Most fts-using tools must be
12595         able to process all arguments, in order, and can be expected to
12596         diagnose such arguments themselves.
12597
12598 2009-11-30  Eric Blake  <ebb9@byu.net>
12599
12600         utimens: fix compilation error
12601         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
12602         Declare variable at right scope.
12603
12604 2009-11-29  Jim Meyering  <meyering@redhat.com>
12605
12606         bootstrap: handle perl-5.11's changed --version output
12607         * build-aux/bootstrap (get_version): Handle perl separately,
12608         since perl-5.11's --version output is different.
12609
12610 2009-11-28  Jim Meyering  <meyering@redhat.com>
12611
12612         userspec: depend on the inttostr module, too
12613         * modules/userspec (Depends-on): Add inttostr.
12614
12615         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
12616         * lib/userspec.c (parse_with_separator): Do not accept a user ID
12617         number of MAXUID when it evaluates to (uid_t) -1.
12618         Likewise for group ID.  Reported by Matt McCutchen in
12619         <http://savannah.gnu.org/bugs/?28113>
12620
12621         userspec: reformat to use spaces, not TABs
12622         * lib/userspec.c: Expand TABs to spaces.
12623         Add Emacs' "indent-tabs-mode: nil" hint.
12624
12625 2009-11-27  Eric Blake  <ebb9@byu.net>
12626
12627         getopt-gnu: flush out another BSD bug
12628         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
12629         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
12630         flush out BSD bug.
12631         * tests/test-getopt.h (test_getopt): End lists with NULL.
12632         * tests/test-getopt_long.h (test_getopt_long): Likewise.
12633         (test_getopt_long_posix): Enhance test.
12634         * modules/getopt-posix-tests (Depends-on): Add stdbool.
12635         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
12636         getopt-gnu.
12637         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12638         Likewise.
12639
12640 2009-11-27  Simon Josefsson  <simon@josefsson.org>
12641
12642         * modules/idpriv-droptemp-tests (Notice): Fix text.
12643
12644 2009-11-27  Jim Meyering  <meyering@redhat.com>
12645
12646         test-xalloc-die: avoid spurious failure due to libtool argv difference
12647         In a libtool-enabled project, this test would fail due to a difference
12648         in the emitted program name, e.g.,
12649         -test-xalloc-die: memory exhausted
12650         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
12651         Use program to avoid that.
12652         * modules/xalloc-die-tests (Depends-on): Add progname.
12653         * tests/test-xalloc-die.c: Include progname.h".
12654         (program_name): Remove decl.
12655         (main): Call set_program_name.
12656         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
12657
12658 2009-11-26  Richard Jones  <rjones@redhat.com>
12659
12660         w32sock: leave win32 error in place.
12661         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
12662
12663 2009-11-26  Eric Blake  <ebb9@byu.net>
12664
12665         init.sh: suggest to use skip_ and fail_ functions in comments
12666         * tests/init.sh: Add a sentence.
12667
12668 2009-11-25  Bruno Haible  <bruno@clisp.org>
12669
12670         init.sh: add documentation in comments
12671         * tests/init.sh: Add some developer and user documentation.
12672
12673 2009-11-26  Jim Meyering  <meyering@redhat.com>
12674
12675         init.sh: accommodate even those who specify bogus srcdir manually
12676         * tests/init.sh: Normally, srcdir is guaranteed by automake and
12677         configure-time tests to be sanitized, so that there is no need to
12678         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
12679         (with no double quotes) suffices.  However, since tests may be
12680         invoked manually, and since you may explicitly set srcdir to the
12681         name of a directory containing spaces, do quote its uses here.
12682         * tests/test-pread.sh: Likewise.
12683         Suggested by Bruno Haible.
12684
12685         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
12686         * tests/test-pread.sh: Write no data into the pipe, because
12687         test-pread actually reads none.  This avoids a diagnostic,
12688         "bash: echo: write error: Broken pipe", that arises in the unusual
12689         event something is ignoring SIGPIPE, and might be interpreted
12690         as some sort of failure.  Reported by Bruno Haible.
12691
12692 2009-11-25  Jim Meyering  <meyering@redhat.com>
12693
12694         test-pread: cover failure with ESPIPE and EINVAL
12695         * tests/test-pread.c (main): Test for failure, too.
12696         * tests/test-pread.sh: Invoke with stdin on a pipe.
12697         Suggested by Eric Blake.
12698
12699         pread: improvement and fix
12700         * modules/pread (Depends-on): Depend on lseek, for portability to
12701         e.g., mingw.  Suggested by Eric Blake.
12702         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
12703
12704         unistd.in.h: correct declaration of pread
12705         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
12706         Reported by Richard W.M. Jones.
12707
12708         test-pread.sh: distribute the test script
12709         * modules/pread-tests (Files): Include test-pread.sh.
12710
12711         test-pread.sh: clean up
12712         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
12713         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
12714         That is unnecessary, since it's always ".".
12715         Suggestion from Eric Blake.
12716
12717         test-pread.sh: make executable
12718         * tests/test-pread.sh: Set executable bit.
12719         Reported by Eric Blake.
12720
12721         correct typo in test-pread.sh
12722         * tests/test-pread.sh: Add #! line.
12723
12724         test pread
12725         * tests/test-pread.c: New file.
12726         * tests/test-pread.sh: Likewise.
12727         * modules/pread-tests: Likewise.
12728
12729         pread: new module
12730         * modules/pread: New file.
12731         * lib/unistd.in.h (pread): Define/declare.
12732         * lib/pread.c (pread): New file.
12733         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
12734         * modules/unistd (Makefile.am): Substitute witnesses.
12735         * doc/posix-functions/pread.texi (pread): Update.
12736         * MODULES.html.sh: Add pread.
12737
12738 2009-11-25  Jim Meyering  <meyering@redhat.com>
12739
12740         tests/init.sh: new file to be used via most *.sh tests
12741         * tests/init.sh: New file.
12742
12743 2009-11-25  Eric Blake  <ebb9@byu.net>
12744
12745         utimens: work around older Linux failure with symlinks
12746         * lib/utimens.c (lutimensat_works_really): New variable.
12747         (fdutimens, lutimens): Use it to manage kernels that support
12748         nanosecond times on files, but not on symlinks.
12749         Reported by Ondřej Vašík.
12750
12751         utimes: fix configure grammar
12752         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
12753
12754 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
12755
12756         regex: Fix fastmap for multibyte character ranges.
12757         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
12758         characters when a multibyte character range is included.
12759
12760 2009-11-22  Andy Wingo  <wingo@pobox.com>
12761
12762         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
12763         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
12764
12765 2009-11-24  Bruno Haible  <bruno@clisp.org>
12766
12767         doc: Most *_l functions exist in MacOS X 10.5.
12768         * doc/posix-functions/duplocale.texi: Update platforms list.
12769         * doc/posix-functions/freelocale.texi: Likewise.
12770         * doc/posix-functions/newlocale.texi: Likewise.
12771         * doc/posix-functions/uselocale.texi: Likewise.
12772         * doc/posix-functions/isalnum_l.texi: Likewise.
12773         * doc/posix-functions/isalpha_l.texi: Likewise.
12774         * doc/posix-functions/isblank_l.texi: Likewise.
12775         * doc/posix-functions/iscntrl_l.texi: Likewise.
12776         * doc/posix-functions/isdigit_l.texi: Likewise.
12777         * doc/posix-functions/isgraph_l.texi: Likewise.
12778         * doc/posix-functions/islower_l.texi: Likewise.
12779         * doc/posix-functions/isprint_l.texi: Likewise.
12780         * doc/posix-functions/ispunct_l.texi: Likewise.
12781         * doc/posix-functions/isspace_l.texi: Likewise.
12782         * doc/posix-functions/isupper_l.texi: Likewise.
12783         * doc/posix-functions/iswalnum_l.texi: Likewise.
12784         * doc/posix-functions/iswalpha_l.texi: Likewise.
12785         * doc/posix-functions/iswblank_l.texi: Likewise.
12786         * doc/posix-functions/iswcntrl_l.texi: Likewise.
12787         * doc/posix-functions/iswctype_l.texi: Likewise.
12788         * doc/posix-functions/iswdigit_l.texi: Likewise.
12789         * doc/posix-functions/iswgraph_l.texi: Likewise.
12790         * doc/posix-functions/iswlower_l.texi: Likewise.
12791         * doc/posix-functions/iswprint_l.texi: Likewise.
12792         * doc/posix-functions/iswpunct_l.texi: Likewise.
12793         * doc/posix-functions/iswspace_l.texi: Likewise.
12794         * doc/posix-functions/iswupper_l.texi: Likewise.
12795         * doc/posix-functions/iswxdigit_l.texi: Likewise.
12796         * doc/posix-functions/isxdigit_l.texi: Likewise.
12797         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
12798         * doc/posix-functions/strcasecmp_l.texi: Likewise.
12799         * doc/posix-functions/strcoll_l.texi: Likewise.
12800         * doc/posix-functions/strfmon_l.texi: Likewise.
12801         * doc/posix-functions/strftime_l.texi: Likewise.
12802         * doc/posix-functions/strncasecmp_l.texi: Likewise.
12803         * doc/posix-functions/strxfrm_l.texi: Likewise.
12804         * doc/posix-functions/tolower_l.texi: Likewise.
12805         * doc/posix-functions/toupper_l.texi: Likewise.
12806         * doc/posix-functions/towctrans_l.texi: Likewise.
12807         * doc/posix-functions/towlower_l.texi: Likewise.
12808         * doc/posix-functions/towupper_l.texi: Likewise.
12809         * doc/posix-functions/wcscoll_l.texi: Likewise.
12810         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
12811         * doc/posix-functions/wctrans_l.texi: Likewise.
12812         * doc/posix-functions/wctype_l.texi: Likewise.
12813         * doc/glibc-functions/strptime_l.texi: Likewise.
12814         * doc/glibc-functions/strtod_l.texi: Likewise.
12815         * doc/glibc-functions/strtof_l.texi: Likewise.
12816         * doc/glibc-functions/strtol_l.texi: Likewise.
12817         * doc/glibc-functions/strtold_l.texi: Likewise.
12818         * doc/glibc-functions/strtoll_l.texi: Likewise.
12819         * doc/glibc-functions/strtoul_l.texi: Likewise.
12820         * doc/glibc-functions/strtoull_l.texi: Likewise.
12821         * doc/glibc-functions/wcsftime_l.texi: Likewise.
12822         * doc/glibc-functions/wcstod_l.texi: Likewise.
12823         * doc/glibc-functions/wcstof_l.texi: Likewise.
12824         * doc/glibc-functions/wcstol_l.texi: Likewise.
12825         * doc/glibc-functions/wcstold_l.texi: Likewise.
12826         * doc/glibc-functions/wcstoll_l.texi: Likewise.
12827         * doc/glibc-functions/wcstoul_l.texi: Likewise.
12828         * doc/glibc-functions/wcstoull_l.texi: Likewise.
12829
12830 2009-11-24  Bruno Haible  <bruno@clisp.org>
12831
12832         duplocale: Fix logic bug.
12833         * lib/duplocale.c: Don't include <langinfo.h>.
12834         (_NL_LOCALE_NAME): Remove macro.
12835         (rpl_duplocale): Use setlocale instead of nl_langinfo.
12836         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
12837
12838 2009-11-23  Jim Meyering  <meyering@redhat.com>
12839
12840         test-update-copyright: don't hard-code /usr/bin/perl
12841         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
12842         perl to print the current year.  Gilles Espinasse reported that
12843         the replaced use of perl was hard-coded as /usr/bin/perl.
12844
12845 2009-11-23  Bruno Haible  <bruno@clisp.org>
12846
12847         duplocale: Add support for glibc 2.3.x.
12848         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
12849
12850 2009-11-22  Bruno Haible  <bruno@clisp.org>
12851
12852         vasnprintf: Tiny optimization.
12853         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
12854         MacOS X.
12855
12856 2009-11-22  Bruno Haible  <bruno@clisp.org>
12857
12858         Tests for module 'duplocale'.
12859         * modules/duplocale-tests: New file.
12860         * tests/test-duplocale.c: New file.
12861
12862         New module 'duplocale'.
12863         * m4/duplocale.m4: New file.
12864         * lib/locale.in.h (duplocale): New declaration.
12865         * lib/duplocale.c: New file.
12866         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
12867         gl_LOCALE_H_DEFAULTS): New macros.
12868         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
12869         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
12870         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
12871         REPLACE_DUPLOCALE.
12872         * modules/duplocale: New file.
12873         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
12874
12875 2009-11-22  Bruno Haible  <bruno@clisp.org>
12876
12877         * modules/locale-tests (configure.ac): Test for newlocale function.
12878         * tests/test-locale.c: When the system has extended locale functions,
12879         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
12880
12881         locale: Make locale_t available when possible.
12882         * lib/locale.in.h: Include <xlocale.h> when it exists.
12883         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
12884         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
12885         * modules/locale (Depends-on): Add extensions.
12886         (Makefile.am): Also substitute HAVE_XLOCALE_H.
12887         * doc/posix-headers/locale.texi: Document the problem with locale_t.
12888
12889 2009-11-22  Bruno Haible  <bruno@clisp.org>
12890
12891         Add comments.
12892         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
12893         invocation.
12894         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
12895         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12896         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
12897
12898 2009-11-22  Bruno Haible  <bruno@clisp.org>
12899
12900         error: account for the possibility of freopen (stdout).
12901         * lib/error.c: Include <unistd.h>.
12902         (flush_stdout): New function, extracted from error and error_at_line.
12903         Determine stdout's fd dynamically.
12904         (error, error_at_line): Invoke flush_stdout.
12905         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
12906         * modules/error (Depends-on): Add unistd.
12907
12908 2009-11-22  Bruno Haible  <bruno@clisp.org>
12909
12910         diffseq: Add comment.
12911         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
12912
12913 2009-11-22  Jim Meyering  <meyering@redhat.com>
12914
12915         c-stack: avoid defining an unused static function
12916         * lib/c-stack.c (find_stack_direction): Do not define this function
12917         when it will not be used.
12918
12919         diffseq: avoid spurious gcc warnings
12920         * lib/diffseq.h (IF_LINT2): Define.
12921         (compareseq): Use it to initialize two members of "part".
12922         This avoids two used-uninitialized warnings.
12923
12924 2009-11-21  Jim Meyering  <meyering@redhat.com>
12925
12926         c-stack: avoid "ignoring return value of `write'" warning
12927         * lib/c-stack.c: Include "ignore-value.h".
12928         (die): Explicitly ignore each write return value.
12929         * modules/c-stack (Depends-on): Add ignore-value.
12930
12931 2009-11-21  Bruno Haible  <bruno@clisp.org>
12932
12933         diffseq: reduce scope of variable 'best'.
12934         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
12935         variable, earlier used for two different purposes.
12936
12937 2009-11-21  Jim Meyering  <meyering@redhat.com>
12938
12939         diffseq: remove useless assignment to "best"
12940         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
12941         assignment.  At that point "best" is already guaranteed to be zero.
12942
12943 2009-11-20  Eric Blake  <ebb9@byu.net>
12944
12945         build: mention ftp redirector in release announcements
12946         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
12947         values that used to come from cfg.mk; mention FTP redirect URL.
12948         * build-aux/announce-gen: Mention the mirror list.
12949         Suggested by Karl Berry.
12950
12951         nanosleep: improve port to mingw
12952         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
12953         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
12954         LIB_NANOSLEEP, but only when needed.
12955         * modules/select (Link): Document LIBSOCKET.
12956         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
12957         enough.
12958
12959         nanosleep: work around cygwin bug
12960         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
12961         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
12962         bug.
12963         (getnow): Delete, not needed.
12964         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
12965         LIB_CLOCK_GETTIME.
12966         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
12967         clock-time, gettime.
12968         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
12969         bug.
12970         * modules/nanosleep-tests: New test.
12971         * tests/test-nanosleep.c: New file.
12972
12973         sleep: work around cygwin bug
12974         * lib/sleep.c (rpl_sleep): Work around the bug.
12975         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
12976         (gl_PREREQ_SLEEP): Delete unused macro.
12977         * modules/sleep (Depends-on): Add verify.
12978         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
12979         * modules/unistd (Makefile.am): Substitute witness.
12980         * lib/unistd.in.h (sleep): Update prototype.
12981         * doc/posix-functions/sleep.texi (sleep): Document the bug.
12982         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
12983         * modules/sleep-tests (Depends-on): Check for alarm.
12984
12985 2009-11-20  Jim Meyering  <meyering@redhat.com>
12986
12987         maint.mk: improve sc_prohibit_magic_number_exit
12988         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
12989         so it does not match uses like System.exit(1).
12990         Add comments showing how to correct all offenders.
12991
12992 2009-11-19  Eric Blake  <ebb9@byu.net>
12993
12994         xalloc-die-tests: add missing library
12995         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
12996
12997         test-xvasprintf: silence compiler warnings
12998         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
12999         empty string from gcc.
13000
13001 2009-11-19  Jim Meyering  <meyering@redhat.com>
13002
13003         xfreopen: new module, from coreutils
13004         * modules/xfreopen: New module.
13005         * lib/xfreopen.c: New file.
13006         * lib/xfreopen.h: New file.
13007         * MODULES.html.sh (File stream based Input/Output"): Add it.
13008
13009 2009-11-19  Eric Blake  <ebb9@byu.net>
13010
13011         manywarnings: depend on warnings
13012         * modules/manywarnings (Depends-on): Add warnings.
13013
13014         build: avoid compiler warnings
13015         * lib/select.c (rpl_select): Delete unused variable.
13016         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
13017
13018 2009-11-18  Eric Blake  <ebb9@byu.net>
13019
13020         tests: avoid false negative with --with-packager
13021         * tests/test-version-etc.sh: Discard packager information.
13022         * tests/test-argp-version-etc-1.sh: Likewise.
13023         Reported by Mike Frysinger.
13024
13025         utimens: fix regression on Solaris
13026         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
13027         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
13028         can only change fd timestamps via futimesat.  Instead, use an
13029         additional witness macro to avoid BSD bug.
13030         Reported by Jim Meyering.
13031
13032 2009-11-17  Eric Blake  <ebb9@byu.net>
13033
13034         usleep: use it to simplify tests
13035         * modules/stat-time-tests (Depends-on): Add usleep.
13036         (configure.ac): Drop usleep check.
13037         * modules/chown-tests (Depends-on, configure.ac): Likewise.
13038         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
13039         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
13040         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
13041         * modules/openat-tests (Depends-on, configure.ac): Likewise.
13042         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
13043         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
13044         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
13045         Likewise.
13046         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
13047         * tests/test-lchown.h (nap): Likewise.
13048         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
13049         * tests/test-stat-time.c (nap): Likewise.
13050         * tests/test-utimens-common.h (nap): Update comments.
13051
13052         usleep: new module
13053         * modules/usleep: New file.
13054         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
13055         * lib/usleep.c (usleep): Likewise.
13056         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
13057         * modules/unistd (Makefile.am): Substitute witnesses.
13058         * lib/unistd.in.h (usleep): Add declaration.
13059         * doc/pastposix-functions/usleep.texi (usleep): Document this.
13060         * MODULES.html.sh (Date and time): Likewise.
13061         * modules/usleep-tests (Depends-on): New test.
13062         * tests/test-usleep.c: New file.
13063
13064         chown: work around OpenBSD bug
13065         * lib/chown.c (rpl_chown): Work around the bug.
13066         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
13067         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
13068         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
13069         * modules/chown (Depends-on): Add stdbool.
13070         * modules/lchown (Depends-on): Likewise.
13071         * doc/posix-functions/chown.texi (chown): Document the bug.
13072         * doc/posix-functions/lchown.texi (lchown): Likewise.
13073         * tests/test-lchown.h (test_chown): Relax test.
13074
13075         mkstemp: avoid conflict with C++ keyword template
13076         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
13077         * lib/mkostemp.c (mkostemp): Likewise.
13078         * lib/mkostemps.c (mkostemps): Likewise.
13079         * lib/mkstemp.c (mkstemp): Likewise.
13080         * lib/mkstemps.c (mkstemps): Likewise.
13081
13082         xalloc-die-tests: optimize
13083         * tests/test-xalloc-die.sh: Reduce number of processes.
13084
13085 2009-11-17  Simon Josefsson  <simon@josefsson.org>
13086
13087         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
13088         patch from ludo@gnu.org (Ludovic Courtès).
13089
13090 2009-11-17  Jim Meyering  <meyering@redhat.com>
13091
13092         version-etc: use proper license string
13093         * modules/version-etc (License): Use LGPL, not LGPLv3+.
13094         * modules/version-etc-fsf: Likewise.
13095
13096 2009-11-17  Simon Josefsson  <simon@josefsson.org>
13097
13098         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
13099         printed to stdout.  Deal with EOL differences.
13100
13101 2009-11-17  Eric Blake  <ebb9@byu.net>
13102
13103         unsetenv: work around Solaris bug
13104         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
13105         * lib/unsetenv.c (rpl_unsetenv): Work around it.
13106         Reported by Jim Meyering.
13107
13108         vasnprintf: avoid compiler warnings
13109         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
13110         variables.
13111         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
13112
13113 2009-11-17  Simon Josefsson  <simon@josefsson.org>
13114
13115         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
13116         settings since xalloc-die is no longer the self test,
13117         xalloc-die.sh is.
13118
13119 2009-11-17  Jim Meyering  <meyering@redhat.com>
13120
13121         test-xalloc-die.sh: make the code agree with the commit log
13122         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
13123         at the end, just in case you happen to have a test-xalloc-die
13124         program in some other PATH directory.
13125
13126         test-xalloc-die.sh: fix a portability bug
13127         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
13128         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
13129         Otherwise, argv[0] (as often seen in diagnostics) would be too
13130         system-dependent, sometimes with, and sometimes without the leading "./".
13131
13132         version-etc-fsf: relax license to LGPLv3+
13133         * modules/version-etc-fsf (License): Relax license.
13134
13135 2009-11-16  Eric Blake  <ebb9@byu.net>
13136
13137         xalloc-die-tests: avoid printing null pointer
13138         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
13139         shell script.
13140         * tests/test-xalloc-die.c (program_name): Declare.
13141         * tests/test-xalloc-die.sh (tmpfiles): New file.
13142
13143         setenv, unsetenv: work around various bugs
13144         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
13145         (setenv) [HAVE_SETENV]: Work around bugs.
13146         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
13147         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
13148         for bugs.
13149         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
13150         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
13151         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
13152         * modules/stdlib (Makefile.am): Update substitutions.
13153         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
13154         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
13155         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
13156         * modules/setenv-tests: New test.
13157         * modules/unsetenv-tests: Likewise.
13158         * tests/test-setenv.c: New file.
13159         * tests/test-unsetenv.c: Likewise.
13160
13161 2009-11-16  Jim Meyering  <meyering@redhat.com>
13162
13163         version-etc: relax license to LGPLv3+
13164         * modules/version-etc (License): Relax license.
13165
13166         better AC_REQUIRE expanded-before-required-warning avoidance
13167         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
13168         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
13169         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
13170         which is no longer needed.
13171
13172 2009-11-16  Eric Blake  <ebb9@byu.net>
13173
13174         test-freading: clean up temporary file
13175         * tests/test-freading.c (main): Remove file on success, and use
13176         ASSERT more liberally.
13177         Reported by Jim Meyering.
13178
13179 2009-11-16  Jim Meyering  <meyering@redhat.com>
13180
13181         avoid new AC_REQUIRE expanded-before-required warnings
13182         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
13183         merely using it.
13184         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
13185         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
13186
13187 2009-11-15  Simon Josefsson  <simon@josefsson.org>
13188
13189         * tests/test-xalloc-die.c: New file.
13190         * modules/xalloc-die-tests: New file.
13191         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
13192         XFAIL_TESTS so it can be appended by modules.
13193
13194 2009-11-15  Simon Josefsson  <simon@josefsson.org>
13195
13196         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
13197         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
13198
13199 2009-11-14  Eric Blake  <ebb9@byu.net>
13200
13201         fnmatch: avoid compiler warning
13202         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
13203         to silence compiler warning about mismatch signedness in ?:.
13204         Reported by Robert Millan.
13205
13206         intprops: add double-inclusion guard
13207         * lib/intprops.h: Allow idempotent includes.
13208         Suggested by Bruce Korb.
13209
13210         openat: detect Solaris fchownat bug
13211         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
13212         penalizing glibc chownat when only lchownat is broken.
13213         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
13214         trailing slash bugs.
13215         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
13216         * modules/openat-tests (Files): Include more files.
13217         (Depends-on): Add mgetgroups, sleep, stat-time.
13218         (configure.ac): Add additional checks.
13219         (Makefile.am): Build new test.
13220         * tests/test-fchownat.c: New file.
13221
13222         lchown: detect Solaris and FreeBSD bug
13223         * lib/lchown.c (rpl_lchown): Work around bug.
13224         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
13225         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13226         * modules/unistd (Makefile.am): Populate it.
13227         * lib/unistd.in.h (lchown): Update declaration.
13228         * doc/posix-functions/lchown.texi (lchown): Document the bug.
13229         * modules/lchown-tests: New file.
13230         * tests/test-lchown.h (test_lchown): Likewise.
13231         * tests/test-lchown.c (main): Likewise.
13232
13233         chown: detect Solaris and FreeBSD bug
13234         * lib/chown.c (rpl_chown): Work around bug.
13235         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
13236         (gl_PREREQ_CHOWN): Delete.
13237         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13238         * modules/unistd (Makefile.am): Populate it.
13239         * lib/unistd.in.h (chown): Update declaration.
13240         * lib/lchown.c (chown): Update client.
13241         * modules/lchown (Depends-on): Add lstat.
13242         * doc/posix-functions/chown.texi (chown): Document the bug.
13243         * doc/posix-functions/getgroups.texi (getgroups): Document
13244         getgroups pitfall.
13245         * modules/chown-tests: New file.
13246         * tests/test-chown.h (test_chown): Likewise.
13247         * tests/test-chown.c (main): Likewise.
13248
13249 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
13250
13251         gnulib-tool: correctly detect absence of m4 directories
13252         * gnulib-tool: Avoid extra newline on data passed to wc -l.
13253
13254 2009-11-14  Jim Meyering  <meyering@redhat.com>
13255
13256         maint.mk: Prohibit inclusion of "xalloc.h" without use.
13257         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
13258
13259 2009-11-14  John W. Eaton  <jwe@gnu.org>
13260
13261         strftime.h: wrap funtion declaration in extern "C" block
13262         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
13263
13264 2009-11-13  Eric Blake  <ebb9@byu.net>
13265
13266         getgroups: avoid compiler warning
13267         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
13268
13269         getgroups: work around FreeBSD bug
13270         * lib/getgroups.c (rpl_getgroups): Work around the bug.
13271         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
13272         * doc/posix-functions/getgroups.texi (getgroups): Document it.
13273         * tests/test-getgroups.c (main): Fix buffer overrun.
13274
13275         getgroups: avoid compilation failure
13276         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
13277         * modules/getgroups (Depends-on): Add stdint.
13278
13279 2009-11-13  Jim Meyering  <meyering@redhat.com>
13280
13281         test-getgroups: avoid compilation failure
13282         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
13283
13284 2009-11-13  Eric Blake  <ebb9@byu.net>
13285
13286         mgetgroups: new module, taken from coreutils
13287         * modules/mgetgroups: New file.
13288         * lib/mgetgroups.h: Likewise.
13289         * lib/mgetgroups.c (mgetgroups): Likewise.
13290         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
13291         * MODULES.html.sh (Users and groups): Mention it.
13292
13293         getgroups: don't expose GETGROUPS_T to user
13294         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
13295         an element at a time if GETGROUPS_T is wrong size.
13296         * lib/getugroups.h (getugroups): Change signature.
13297         * lib/unistd.in.h (getgroups): Likewise.
13298         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
13299         signature needs fixing.
13300         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
13301         AC_TYPE_GETGROUPS.
13302         * modules/group-member (Depends-on): Add getgroups.
13303         * lib/group-member.c (group_info, get_group_info): Use gid_t.
13304         (group_member): Rely on getgroups replacement.
13305         * lib/getugroups.c (getugroups): Use gid_t.
13306         * tests/test-getgroups.c (main): Likewise.
13307         * NEWS: Mention the signature change.
13308         * doc/posix-functions/getgroups.texi (getgroups): Mention the
13309         problem with signature.
13310         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
13311         GETGROUPS_T is still useful for setgroups.
13312
13313         getgroups, getugroups: provide stubs for mingw
13314         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
13315         * lib/getugroups.c (getugroups): Likewise.
13316         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
13317         function.  Modernize replacement scheme.
13318         (gl_PREREQ_GETGROUPS): Delete.
13319         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
13320         * modules/getgroups (configure.ac): Declare witness.
13321         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
13322         * modules/unistd (Depends-on): Substitute witness.
13323         * lib/unistd.in.h (getgroups): Declare replacement.
13324
13325         getgroups: avoid calling exit
13326         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
13327         drop xalloc.
13328         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
13329         dependencies.
13330         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
13331         exiting, in the rare case of malloc failure.
13332
13333         getgroups: fix logic error
13334         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
13335         has more than 20 groups.
13336         * modules/getgroups-tests: New test.
13337         * tests/test-getgroups.c: New file.
13338
13339 2009-11-13  Simon Josefsson  <simon@josefsson.org>
13340
13341         * tests/test-base64.c: Improve.
13342
13343 2009-11-13  Simon Josefsson  <simon@josefsson.org>
13344
13345         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
13346         Blake <ebb9@byu.net>.
13347
13348 2009-11-13  Simon Josefsson  <simon@josefsson.org>
13349
13350         * tests/test-xvasprintf.c: Add %s%s related checks.
13351
13352 2009-11-12  Eric Blake  <ebb9@byu.net>
13353
13354         version-etc: match standards.texi style
13355         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
13356         and use <> only for URLs.
13357
13358 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
13359
13360         fts: do not fail on a submount during traversal
13361         * lib/fts.c (fts_build): Read the stat info again after opening
13362         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
13363         Original report at http://bugzilla.redhat.com/501848.
13364
13365 2009-11-12  Jim Meyering  <meyering@redhat.com>
13366
13367         bootstrap: sync from coreutils
13368         * build-aux/bootstrap (bootstrap_epilogue): New function.
13369         Use git_modules_config in one more place.  This make bootstrap's
13370         --gnulib-srcdir option more useful for testing.
13371
13372         bootstrap: generalize autoheader check
13373         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
13374         AC_CONFIG_HEADERS.
13375
13376 2009-11-11  Eric Blake  <ebb9@byu.net>
13377
13378         mkfifoat: use new modules for Solaris and BSD bugs
13379         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
13380         * lib/mkfifoat.c (mknodat): Split...
13381         * lib/mknodat.c (mknodat): ...into new file.
13382         * modules/mkfifoat (Files): Ship new file.
13383         (Depends-on): Add mkfifo, mknod.
13384         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
13385         (Depends-on): Add symlink.
13386         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
13387         redundant with test_mkfifo.h.
13388         (do_mkfifoat, do_mknodat): New helpers.
13389
13390         mknod: new module
13391         * modules/mknod: New file.
13392         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
13393         * lib/mknod.c (mknod): Likewise.
13394         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
13395         defaults.
13396         * modules/sys_stat (Makefile.am): Substitute them.
13397         * lib/sys_stat.in.h (mknod): Declare replacement.
13398         * MODULES.html.sh (Support for systems lacking POSIX:2008):
13399         Document it.
13400         * doc/posix-functions/mknod.texi (mknod): Likewise.
13401         * modules/mknod-tests: New test.
13402         * tests/test-mknod.c: Likewise.
13403
13404         mkfifo: new module
13405         * modules/mkfifo: New file.
13406         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
13407         * lib/mkfifo.c (mkfifo): Likewise.
13408         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
13409         defaults.
13410         * modules/sys_stat (Makefile.am): Substitute them.
13411         * lib/sys_stat.in.h (mkfifo): Declare replacement.
13412         * MODULES.html.sh (Support for systems lacking POSIX:2008):
13413         Document it.
13414         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
13415         * modules/mkfifo-tests: New test.
13416         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
13417         from test-mkfifoat.c.
13418         * tests/test-mkfifo.c: New file.
13419
13420         readlink: detect FreeBSD bug
13421         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
13422         slash on symlink.
13423         * doc/posix-functions/readlink.texi (readlink): Document the bug.
13424         * tests/test-readlink.h (test_readlink): Enhance test.
13425
13426         symlink: detect FreeBSD bug
13427         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
13428         slash on symlink.
13429         * doc/posix-functions/symlink.texi (symlink): Document the bug.
13430         * tests/test-symlink.h (test_symlink): Enhance test.
13431
13432 2009-11-10  Eric Blake  <ebb9@byu.net>
13433
13434         link: detect FreeBSD bug
13435         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
13436         symlink.
13437         * doc/posix-functions/link.texi (link): Document the bug.
13438         * tests/test-link.h (test_link): Enhance test.
13439         * tests/test-linkat.c (main): Update caller.
13440
13441         unlink, remove: detect FreeBSD bug
13442         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
13443         slash on symlink.
13444         * doc/posix-functions/unlink.texi (unlink): Document the bug.
13445         * doc/posix-functions/remove.texi (remove): Likewise.
13446         * tests/test-unlink.h (test_unlink): Enhance test.
13447         * tests/test-remove.c (main): Likewise.
13448
13449 2009-11-09  Eric Blake  <ebb9@byu.net>
13450
13451         rename: detect FreeBSD bug
13452         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
13453         slash on symlink.
13454         * modules/renameat-tests (Depends-on): Add filenamecat.
13455         * tests/test-rename.h (test_rename): Allow one more errno.
13456         * tests/test-renameat.c (main): Likewise.
13457         * doc/posix-functions/rename.texi (rename): Document the bug.
13458
13459         open: detect FreeBSD bug
13460         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
13461         symlink.
13462         * doc/posix-functions/open.texi (open): Document the bug.
13463         * doc/posix-functions/utimes.texi (utimes): Likewise.
13464         * tests/test-open.h (test_open): Add parameters, and test symlink
13465         handling.
13466         * tests/test-open.c (main): Adjust caller.
13467         * tests/test-fcntl-safer.c (main): Likewise.
13468         * modules/open-tests (Depends-on): Add stdbool, symlink.
13469         * modules/fcntl-safer-tests (Depends-on): Likewise.
13470         * tests/test-openat.c (main): Add test-open tests.
13471
13472         stat: detect FreeBSD bug
13473         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
13474         symlink.
13475         * doc/posix-functions/stat.texi (stat): Document the bug.
13476         * tests/test-stat.h (test_stat_func): Add argument.
13477         * tests/test-stat.c (main): Adjust caller.
13478         * tests/test-fstatat.c (main): Likewise.
13479         * modules/stat-tests (Depends-on): Add stdbool, symlink.
13480         Reported by Jim Meyering.
13481
13482 2009-11-09  James Youngman  <jay@gnu.org>
13483
13484         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
13485         * lib/strftime.c: Correct placement of #include "ignore-value.h".
13486
13487 2009-11-08  Jim Meyering  <meyering@redhat.com>
13488
13489         utimens: remove invalid futimesat call
13490         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
13491         It used the file descriptor of the target file as the DIR_FD
13492         parameter and NULL as the file name.  That caused failure with
13493         errno == EFAULT on FreeBSD-8.0-rc2
13494
13495 2009-11-07  Eric Blake  <ebb9@byu.net>
13496
13497         fflush, freadseek: use fseeko, not fseek
13498         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
13499         (clear_ungetc_buffer): Avoid potential problems on large files.
13500         * lib/freadseek.c (freadseek): Likewise.
13501         * modules/freadseek (Depends-on): Add fseeko.
13502         * modules/fseek (configure.ac): Set a witness.
13503         * tests/test-fflush.c (main): Use fseeko.
13504         * tests/test-fpurge.c (fseek): Disable link warning.
13505         * tests/test-freadable.c (fseek): Likewise.
13506         * tests/test-freading.c (fseek): Likewise.
13507         * tests/test-fseeko.c (fseek): Likewise.
13508         * tests/test-ftell.c (fseek): Likewise.
13509         * tests/test-ftello.c (fseek): Likewise.
13510         * tests/test-fwritable.c (fseek): Likewise.
13511         * tests/test-fwriting.c (fseek): Likewise.
13512
13513 2009-11-06  Simon Josefsson  <simon@josefsson.org>
13514
13515         * modules/memchr (Depends-on): Drop getpagesize dependency.
13516
13517 2009-11-06  Simon Josefsson  <simon@josefsson.org>
13518
13519         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
13520         Reported by Ludovic Courtès.
13521         * build-aux/pmccabe2html: Improve example usage.
13522         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
13523
13524 2009-11-06  Jim Meyering  <meyering@redhat.com>
13525
13526         do-release-commit-and-tag: New module.
13527         Automate the release-commit and tag process.
13528         * build-aux/do-release-commit-and-tag: New script, from coreutils.
13529         * modules/do-release-commit-and-tag: New file.
13530         * MODULES.html.sh (Support for maintaining and releasing): Add it.
13531
13532 2009-11-06  Simon Josefsson  <simon@josefsson.org>
13533
13534         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
13535         because test-select.c uses inet_pton.
13536
13537 2009-11-06  Simon Josefsson  <simon@josefsson.org>
13538
13539         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
13540         GETADDRINFO_LIB.  Bump serial number.
13541         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
13542         Suggested by Eric Blake <ebb9@byu.net>.
13543
13544 2009-11-05  Eric Blake  <ebb9@byu.net>
13545
13546         strtod: detect darwin bug
13547         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
13548         Reported by Leo Davis.
13549
13550         freopen-safer: new module
13551         * modules/freopen-safer: New module.
13552         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
13553         * lib/freopen-safer.c (freopen_safer): New file.
13554         * lib/stdio-safer.h (freopen_safer): New declaration.
13555         * lib/stdio--.h (freopen): New override.
13556         * MODULES.html.sh (File stream based Input/Output): Mention it.
13557         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
13558         freopen-safer module.
13559         * doc/posix-functions/stderr.texi (stderr): Likewise.
13560         * doc/posix-functions/stdin.texi (stdin): Likewise.
13561         * doc/posix-functions/stdout.texi (stdout): Likewise.
13562         * modules/freopen-safer-tests: New test.
13563         * tests/test-reopen-safer.c: New file.
13564
13565 2009-11-05  Jim Meyering  <meyering@redhat.com>
13566
13567         maint.mk: Prohibit inclusion of "close-stream.h" without use.
13568         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
13569
13570 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13571
13572         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
13573
13574 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13575
13576         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
13577
13578 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13579
13580         Fix link error.
13581         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
13582         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
13583
13584 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13585
13586         * tests/test-func.c: Also test value of __func__.
13587
13588 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13589
13590         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
13591         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
13592
13593 2009-11-05  Bruno Haible  <bruno@clisp.org>
13594
13595         Fix link error.
13596         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
13597         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
13598         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
13599
13600 2009-11-05  Bruno Haible  <bruno@clisp.org>
13601
13602         Tests for module 'inet_pton'.
13603         * modules/inet_pton-tests: New file.
13604         * tests/test-inet_pton.c: New file.
13605
13606 2009-11-05  Bruno Haible  <bruno@clisp.org>
13607
13608         Tests for module 'inet_ntop'.
13609         * modules/inet_ntop-tests: New file.
13610         * tests/test-inet_ntop.c: New file.
13611
13612 2009-11-04  Eric Blake  <ebb9@byu.net>
13613
13614         stdlib-safer: wrap all mkstemp variants
13615         * modules/mkostemp (configure.ac): Set witness.
13616         * modules/mkostemps (configure.ac): Likewise.
13617         * modules/mkstemps (configure.ac): Likewise.
13618         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
13619         (mkstemps_safer): Wrap more functions.
13620         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
13621         wrapping.
13622         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
13623         (mkstemps_safer): Implement the wrappers.
13624
13625         mkstemps, mkostemps: new modules
13626         * modules/mkostemps: New module.
13627         * modules/mkstemps: Likewise.
13628         * lib/mkostemps.c (mkostemps): New file.
13629         * lib/mkstemps.c (mkstemps): Likewise.
13630         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
13631         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
13632         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
13633         * modules/stdlib (Makefile.am): Substitute them.
13634         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
13635         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
13636         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
13637         * doc/gnulib.texi (Glibc stdlib.h): Include them.
13638         * MODULES.html.sh (File system functions): Mention them.
13639
13640         tempname: resync from glibc
13641         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
13642         same values for __GT_FILE as glibc.  Abort even when assertions
13643         are disabled.
13644         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
13645         match its value otherwise.  Allow idempotent inclusion.
13646         * lib/mkdtemp.c (mkdtemp): Adjust caller.
13647         * lib/mkostemp.c (mkostemp): Likewise.
13648         * lib/mkstemp.c (mkstemp): Likewise.
13649         * lib/tmpfile.c (tmpfile): Likewise.
13650         * NEWS: Document this.
13651
13652         utimens: fix use of futimens on older Linux
13653         * lib/utimens.c (fdutimens): Use updated, rather than original,
13654         timespec to avoid bug in older Linux kernel.
13655         Reported by Simon Josefsson.
13656
13657 2009-11-04  Bruno Haible  <bruno@clisp.org>
13658
13659         Make num_processors more flexible and consistent.
13660         * lib/nproc.h (enum nproc_query): New type.
13661         (num_processors): Add a 'query' argument.
13662         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
13663         (num_processors): Add a 'query' argument. Test the value of the
13664         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
13665         mingw, count the number of CPUs available for the current process.
13666         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
13667         Check for sched_getaffinity and sched_getaffinity_np.
13668         * modules/nproc (Depends-on): Add c-ctype, extensions.
13669         * NEWS: Mention the change.
13670
13671 2009-11-03  Bruno Haible  <bruno@clisp.org>
13672
13673         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
13674
13675 2009-11-03  Jim Meyering  <meyering@redhat.com>
13676
13677         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
13678         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
13679         if it is defined.
13680
13681 2009-11-02  Eric Blake  <ebb9@byu.net>
13682
13683         mktime, timegm: share common declaration
13684         * lib/mktime-internal.h: New file.
13685         * lib/mktime.c: Use it rather than open-coding a declaration.
13686         * lib/timegm.c: Likewise.
13687         * modules/mktime (Files): Ship it.
13688         * modules/timegm (Files): Likewise.
13689         Suggested by Bruno Haible.
13690
13691         test-update-copyright: update test to match script changes
13692         * tests/test-update-copyright.sh: Avoid hard-coding perl
13693         location.  Don't update *.bak created by earlier runs.
13694
13695 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
13696             Simon Josefsson  <simon@josefsson.org>
13697             Bruno Haible  <bruno@clisp.org>
13698
13699         Fix link error on Solaris 8.
13700         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
13701         also in libnsl. Define also INET_PTON_LIB.
13702         * modules/inet_pton (Link): New section.
13703
13704 2009-11-02  Simon Josefsson  <simon@josefsson.org>
13705             Bruno Haible  <bruno@clisp.org>
13706
13707         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
13708         * modules/inet_ntop (Link): New section.
13709         Reported by Boyan Kasarov <bkasarov@gmail.com>.
13710
13711 2009-11-02  Eric Blake  <ebb9@byu.net>
13712
13713         maint: avoid compiler warnings in m4 macros
13714         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
13715         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
13716
13717 2009-11-02  Simon Josefsson  <simon@josefsson.org>
13718
13719         * m4/pmccabe2html.m4: Remove file.
13720         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
13721         function.  Change maintainer.
13722         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
13723         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
13724         Courtès).
13725
13726 2009-10-31  Eric Blake  <ebb9@byu.net>
13727
13728         fseeko: fix m4 regression
13729         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
13730         regression from 2009-10-27.
13731         Reported by Ralf Wildenhues.
13732
13733 2009-10-31  Jim Meyering  <meyering@redhat.com>
13734
13735         inttostr: aesthetics and improved (compile-time) safety
13736         Define inttype_is_signed rather than inttype_is_unsigned,
13737         since the sole use is via "#if inttype_is_signed".
13738         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
13739         inttype_is_unsigned.
13740         * lib/offtostr.c (inttype_is_signed): Likewise.
13741         * lib/uinttostr.c (inttype_is_signed): Likewise.
13742         * lib/umaxtostr.c (inttype_is_signed): Likewise.
13743         * lib/inttostr.c (inttostr): Use verify to cross-check the
13744         inttype_is_signed value and the signedness of the actual type.
13745         * modules/inttostr (Depends-on): Add verify.
13746
13747 2009-10-30  Eric Blake  <ebb9@byu.net>
13748
13749         build: avoid compiler warnings
13750         * lib/fchmodat.c (lchmod): Mark unused variables.
13751         * lib/getopt.c (_getopt_initialize): Likewise.
13752         * lib/mktime.c (__mktime_internal): Provide prototype.
13753         * lib/inttostr.c (inttostr): Avoid compiler warning even with
13754         older gcc that do not understand #pragma GCC diagnostic.
13755         * lib/uinttostr.c (inttype_is_unsigned): Define.
13756         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
13757
13758 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
13759
13760         stat: fix compilation on AIX
13761         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
13762         only see struct stat64.
13763
13764 2009-10-30  Eric Blake  <ebb9@byu.net>
13765
13766         exclude: make more robust
13767         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
13768         rather than masking a coding bug.
13769         Suggested by Bruno Haible.
13770
13771 2009-10-30  Jim Meyering  <meyering@redhat.com>
13772
13773         perl scripts: remove #!/usr/bin/perl in favor of more portable...
13774         Rather than putting #!/usr/bin/perl on the first line,
13775         start with a variant of what's recommended by "man perlrun" that
13776         invokes the first "perl" program from your shell's search path.
13777         * build-aux/gitlog-to-changelog: Replace #!... as above.
13778         Add a "Local Variables" perl mode setting.
13779         Prompted by a patch from Ludovic Courtès.
13780         Improved by Eric Blake.
13781         * build-aux/useless-if-before-free: Likewise.
13782         * build-aux/announce-gen: Likewise.
13783         * build-aux/update-copyright: Likewise.
13784
13785 2009-10-29  Eric Blake  <ebb9@byu.net>
13786
13787         filenamecat-lgpl: adjust clients
13788         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
13789         filenamecat.
13790         * modules/renameat (Depends-on): Likewise.
13791
13792         filenamecat: split into filenamecat-lgpl
13793         * modules/filenamecat-lgpl: New module.
13794         * modules/filenamecat (Files): Move library-safe files into
13795         filenamecat-lgpl.
13796         (Depends-on): Add filenamecat-lgpl.
13797         (configure.ac): Declare witness.
13798         * lib/filenamecat.h (file_name_concat): Only declare when using
13799         GPL module.
13800         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
13801         Move...
13802         * lib/filenamecat-lgpl.c: ...into new file.
13803         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
13804         (gl_FILE_NAME_CONCAT): Use it.
13805         * MODULES.html.sh (File system functions): Mention new module.
13806
13807         argp: avoid memory leak
13808         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
13809         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
13810         base_name, since the latter malloc()s and can call exit().
13811         Leak introduced 2006-07-03.
13812
13813         dirname-lgpl: adjust clients that don't need full dirname
13814         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
13815         * modules/filenamecat (Depends-on): Likewise.
13816         * modules/linkat (Depends-on): Likewise.
13817         * modules/mkancesdirs (Depends-on): Likewise.
13818         * modules/mkdir (Depends-on): Likewise.
13819         * modules/openat (Depends-on): Likewise.
13820         * modules/savewd (Depends-on): Likewise.
13821         * modules/rename (Depends-on): Likewise.
13822         (License): Relax license.
13823         * modules/mkdir-tests (Depends-on): Drop progname.
13824         (Makefile.am): Delete unneeded LDADD.
13825         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
13826
13827         dirname: split into dirname-lgpl
13828         * modules/dirname-lgpl: New module.
13829         * modules/dirname (Files): Move library-safe files into
13830         dirname-lgpl.
13831         (Depends-on): Add dirname-lgpl.
13832         (configure.ac): Declare witness.
13833         * modules/double-slash-root (License): Relax license.
13834         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
13835         module.
13836         * lib/dirname.c (dir_len, mdir_name): Move...
13837         * lib/dirname-lgpl.c: ...into new file.
13838         * lib/basename.c (last_component, base_len): Move...
13839         * lib/basename-lgpl.c: ...into new file.
13840         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
13841         (gl_DIRNAME): Use it.
13842         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
13843         Mention new module.
13844         * modules/dirname-tests (Depends-on): Add progname.
13845         * tests/test-dirname.c (program_name): Delete.
13846
13847         mkdir: make safe for libraries
13848         * modules/mkdir (Depends-on): Drop xalloc.
13849         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
13850         exit.
13851
13852         tests: avoid some compiler warnings
13853         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
13854         literals.
13855         * tests/test-memchr.c (main): Avoid type mismatch.
13856         * tests/test-arpa_inet.c (main): Avoid unused parameters.
13857         * tests/test-base64.c (main): Likewise.
13858         * tests/test-getdelim.c (main): Likewise.
13859         * tests/test-gethostname.c (main): Likewise.
13860         * tests/test-getline.c (main): Likewise.
13861         * tests/test-netinet_in.c (main): Likewise.
13862         * tests/test-select.c (open_server_socket, main): Likewise.
13863         * tests/test-select-stdin.c (main): Likewise.
13864         * tests/test-sockets.c (main): Likewise.
13865         * tests/test-strsignal.c (main): Likewise.
13866         * tests/test-sys_select.c (main): Likewise.
13867         * tests/test-sys_socket.c (main): Likewise.
13868         * tests/test-u64.c (main): Likewise.
13869         * tests/test-xfprintf-posix.c (main): Likewise.
13870         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
13871
13872         sockets: avoid compiler warning
13873         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
13874
13875         maint: detect usage(1) and other suspicious exits
13876         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
13877
13878 2009-10-29  Jim Meyering  <meyering@redhat.com>
13879
13880         timespec: long-to-int truncation could make timespec_cmp malfunction
13881         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
13882         a multiple of 2^32 nanoseconds as no difference.
13883
13884 2009-10-28  Jim Meyering  <meyering@redhat.com>
13885
13886         fprintftime: wrap macro code argument in "do {...} while(0)"
13887         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
13888         cpy macro must be a statement that can be followed by a semicolon.
13889         Now that the else clause contains a comment and is hence longer
13890         than one line, I require curly braces.  That in turn requires
13891         that we wrap this code block in the standard do...while(0).
13892
13893         fprintftime: remove stray semicolon from previous change
13894         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
13895
13896         fprintftime: avoid a warning about ignored fwrite return value
13897         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
13898         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
13899         that is unsafe.
13900         * modules/fprintftime (Depends-on): Add ignore-value.
13901
13902         exclude: avoid an unwarranted warning
13903         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
13904
13905 2009-10-27  Eric Blake  <ebb9@byu.net>
13906
13907         fseek: avoid compilation failure when fflush is replaced
13908         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
13909         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
13910         module is in use.
13911         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
13912         module is not in use; since REPLACE_FSEEK worked otherwise.
13913         (GNULIB_FTELLO): Likewise for ftell.
13914         Reported by Ian Beckwith and others.
13915
13916 2009-10-27  Bruno Haible  <bruno@clisp.org>
13917
13918         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
13919         Reported by Jim Meyering.
13920
13921 2009-10-27  Jim Meyering  <jim@meyering.net>
13922             Bruno Haible  <bruno@clisp.org>
13923
13924         Avoid warning despite dropping the return value of fwrite.
13925         * lib/unicodeio.c: Include ignore-value.h.
13926         (fwrite_success_callback): Explicitly ignore fwrite's return value.
13927         * modules/unicodeio (Depends-on): Add ignore-value.
13928
13929 2009-10-26  Eric Blake  <ebb9@byu.net>
13930
13931         areadlinkat: fix fallback path
13932         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
13933         pointer and zero.
13934
13935 2009-10-22  Pádraig Brady  <P@draigBrady.com>
13936
13937         Use a better IO block size for modern systems
13938         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
13939         * lib/md2.c: Likewise.
13940         * lib/md4.c: Likewise.
13941         * lib/md5.c: Likewise.
13942         * lib/sha1.c: Likewise.
13943         * lib/sha256.c: Likewise.
13944         * lib/sha512.c: Likewise.
13945
13946 2009-10-22  Eric Blake  <ebb9@byu.net>
13947
13948         tests: avoid several compiler warnings
13949         * tests/test-getcwd.c (main): Avoid buffer underflow.
13950         * tests/test-getdate.c (main): String literals are not safe with
13951         putenv, so use setenv.  Declare unused argument.
13952         * modules/getdate-tests (Depends-on): Add setenv.
13953         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
13954         problems with string literals in char *.
13955         * tests/test-hash.c (main): Avoid shadowing declaration.
13956         (insert_new): Treat string literals as char const *.
13957         * tests/test-getopt.h (test_getopt): Likewise.
13958         (getopt_loop): Alter types to minimize casting elsewhere.
13959         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
13960         (test_getopt_long_posix): Likewise.
13961         (do_getopt_long): Add wrapper to minimize casting.
13962         * tests/test-atexit.c (clear_temp_file): Use void.
13963         * tests/test-areadlink-with-size.c (main): Declare unused
13964         arguments.
13965         * tests/test-areadlink.c (main): Likewise.
13966         * tests/test-areadlinkat-with-size.c (main): Likewise.
13967         * tests/test-areadlinkat.c (main): Likewise.
13968         * tests/test-canonicalize-lgpl.c (main): Likewise.
13969         * tests/test-canonicalize.c (main): Likewise.
13970         * tests/test-dirent-safer.c (main): Likewise.
13971         * tests/test-dirname.c (main): Likewise.
13972         * tests/test-dup2.c (main): Likewise.
13973         * tests/test-fchdir.c (main): Likewise.
13974         * tests/test-fcntl-h.c (main): Likewise.
13975         * tests/test-fcntl-safer.c (main): Likewise.
13976         * tests/test-fdopendir.c (main): Likewise.
13977         * tests/test-fdutimensat.c (main): Likewise.
13978         * tests/test-fflush.c (main): Likewise.
13979         * tests/test-filenamecat.c (main): Likewise.
13980         * tests/test-filevercmp.c (main): Likewise.
13981         * tests/test-fopen-safer.c (main): Likewise.
13982         * tests/test-fopen.c (main): Likewise.
13983         * tests/test-fpending.c (main): Likewise.
13984         * tests/test-fpurge.c (main): Likewise.
13985         * tests/test-freading.c (main): Likewise.
13986         * tests/test-fstatat.c (main): Likewise.
13987         * tests/test-fsync.c (main): Likewise.
13988         * tests/test-futimens.c (main): Likewise.
13989         * tests/test-getndelim2.c (main): Likewise.
13990         * tests/test-gettimeofday.c (main): Likewise.
13991         * tests/test-getopt.c (main): Likewise.
13992         * tests/test-i-ring.c (main): Likewise.
13993         * tests/test-inttypes.c (main): Likewise.
13994         * tests/test-link.c (main): Likewise.
13995         * tests/test-lstat.c (main): Likewise.
13996         * tests/test-math.c (main): Likewise.
13997         * tests/test-md5.c (main): Likewise.
13998         * tests/test-memchr2.c (main): Likewise.
13999         * tests/test-memrchr.c (main): Likewise.
14000         * tests/test-mkdir.c (main): Likewise.
14001         * tests/test-mkdirat.c (main): Likewise.
14002         * tests/test-mkfifoat.c (main): Likewise.
14003         * tests/test-open.c (main): Likewise.
14004         * tests/test-openat-safer.c (main): Likewise.
14005         * tests/test-openat.c (main): Likewise.
14006         * tests/test-quotearg.c (main): Likewise.
14007         * tests/test-rawmemchr.c (main): Likewise.
14008         * tests/test-readlink.c (main): Likewise.
14009         * tests/test-remove.c (main): Likewise.
14010         * tests/test-rename.c (main): Likewise.
14011         * tests/test-renameat.c (main): Likewise.
14012         * tests/test-rmdir.c (main): Likewise.
14013         * tests/test-sha1.c (main): Likewise.
14014         * tests/test-signal.c (main): Likewise.
14015         * tests/test-sigaction.c (main): Likewise.
14016         * tests/test-stat.c (main): Likewise.
14017         * tests/test-stat-time.c (main): Likewise.
14018         * tests/test-stddef.c (main): Likewise.
14019         * tests/test-stdint.c (main): Likewise.
14020         * tests/test-stdio.c (main): Likewise.
14021         * tests/test-stdlib.c (main): Likewise.
14022         * tests/test-strchrnul.c (main): Likewise.
14023         * tests/test-strerror.c (main): Likewise.
14024         * tests/test-string.c (main): Likewise.
14025         * tests/test-strtod.c (main): Likewise.
14026         * tests/test-strverscmp.c (main): Likewise.
14027         * tests/test-symlink.c (main): Likewise.
14028         * tests/test-symlinkat.c (main): Likewise.
14029         * tests/test-sys_stat.c (main): Likewise.
14030         * tests/test-sys_time.c (main): Likewise.
14031         * tests/test-time.c (main): Likewise.
14032         * tests/test-unistd.c (main): Likewise.
14033         * tests/test-unlink.c (main): Likewise.
14034         * tests/test-unlinkat.c (main): Likewise.
14035         * tests/test-utimens.c (main): Likewise.
14036         * tests/test-utimensat.c (main): Likewise.
14037         * tests/test-version-etc.c (main): Likewise.
14038         * tests/test-wchar.c (main): Likewise.
14039         * tests/test-wctype.c (main): Likewise.
14040         * tests/test-xprintf-posix.c (main): Likewise.
14041         * tests/test-posixtm.c (main): Likewise.
14042         (STREQ): Delete unused macro.
14043         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
14044         shadowed variables.
14045         * tests/test-memchr.c (main): Likewise.
14046
14047 2009-10-21  Eric Blake  <ebb9@byu.net>
14048
14049         areadlinkat: avoid failure on older glibc
14050         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
14051         rather than mis-comparing 0 against FUNC_RESULT of char*.
14052
14053 2009-10-21  Bruno Haible  <bruno@clisp.org>
14054
14055         * modules/stpncpy (License): Relicense under LGPLv2+.
14056         Reported by David Lutterkort <lutter@redhat.com>.
14057
14058 2009-10-20  Eric Blake  <ebb9@byu.net>
14059
14060         utimensat: work around Solaris 9 bug
14061         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
14062         has trailing slash bugs.
14063         * tests/test-lutimens.h (test_lutimens): Enhance test.
14064         * tests/test-utimens.h (test_utimens): Likewise.
14065         * doc/posix-functions/utime.texi (utime): Enhance documentation.
14066         * doc/posix-functions/utimes.texi (utimes): Likewise.
14067         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
14068         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
14069         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
14070         * doc/posix-functions/futimens.texi (futimens): Likewise.
14071
14072         fdutimensat: new module
14073         * modules/fdutimensat: New file.
14074         * lib/fdutimensat.c (fdutimensat): Likewise.
14075         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
14076         * MODULES.html.sh (File system functions): Mention module.
14077         * modules/fdutimensat-tests: New test.
14078         * tests/test-fdutimensat.c: Likewise.
14079
14080         doc: regenerate INSTALL
14081         * doc/INSTALL: Reflect recent autoconf update.
14082         * doc/INSTALL.ISO: Likewise.
14083         * doc/INSTALL.UTF-8: Likewise.
14084
14085 2009-10-20  Pádraig Brady  <P@draigBrady.com>
14086
14087         acl: warn if ACL support is not detected
14088         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
14089
14090 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
14091
14092         * lib/nproc.h: Add extern "C" block for C++.
14093
14094 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
14095             Bruno Haible  <bruno@clisp.org>
14096
14097         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
14098         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
14099         * doc/posix-functions/isalpha.texi: Likewise.
14100         * doc/posix-functions/isblank.texi: Likewise.
14101         * doc/posix-functions/iscntrl.texi: Likewise.
14102         * doc/posix-functions/isdigit.texi: Likewise.
14103         * doc/posix-functions/isgraph.texi: Likewise.
14104         * doc/posix-functions/islower.texi: Likewise.
14105         * doc/posix-functions/isprint.texi: Likewise.
14106         * doc/posix-functions/ispunct.texi: Likewise.
14107         * doc/posix-functions/isspace.texi: Likewise.
14108         * doc/posix-functions/isupper.texi: Likewise.
14109         * doc/posix-functions/isxdigit.texi: Likewise.
14110
14111 2009-10-18  Bruno Haible  <bruno@clisp.org>
14112
14113         Tests for module 'isblank'.
14114         * modules/isblank-tests: New file.
14115         * tests/test-isblank.c: New file.
14116
14117         New module 'isblank'.
14118         * lib/isblank.c: New file.
14119         * m4/isblank.m4: New file.
14120         * modules/isblank: New file.
14121         * doc/posix-functions/isblank.texi: Mention the new module.
14122
14123 2009-10-18  Bruno Haible  <bruno@clisp.org>
14124
14125         New module 'ctype'.
14126         * lib/ctype.in.h: New file.
14127         * m4/ctype.m4: New file.
14128         * modules/ctype: New file.
14129         * doc/posix-headers/ctype.texi: Mention the new module.
14130
14131 2009-10-18  Jim Meyering  <meyering@redhat.com>
14132
14133         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
14134         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
14135         right after its initialization, rather than farther down.
14136         Keeping these in close proximity makes it easier to ensure
14137         that each such variable is initialized.  E.g.,
14138
14139             LIB_CLOCK_GETTIME=
14140             AC_SUBST([LIB_CLOCK_GETTIME])
14141
14142         This change also increments these serial numbers.
14143         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
14144         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
14145         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14146
14147 2009-10-18  Bruno Haible  <bruno@clisp.org>
14148
14149         Don't let environment variables perturb build.
14150         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
14151         (gl_PREREQ_GETHRXTIME): ... not here.
14152
14153 2009-10-18  Bruno Haible  <bruno@clisp.org>
14154
14155         Avoid symlink attack in localcharset module.
14156         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
14157         (O_NOFOLLOW): Define fallback.
14158         (get_charset_aliases): Don't open the file if it is a symbolic link.
14159         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
14160         gl_FCNTL_H.
14161         (gl_FCNTL_H): Require it.
14162         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
14163         * modules/localcharset (Files): Add m4/fcntl_h.m4.
14164         Reported by Fergal Glynn <fglynn@veracode.com>.
14165
14166 2009-10-18  Bruno Haible  <bruno@clisp.org>
14167
14168         Implement nproc for mingw.
14169         * lib/nproc.c: Include <windows.h>
14170         (num_processors): On native Windows platforms, try GetSystemInfo.
14171
14172 2009-10-18  Bruno Haible  <bruno@clisp.org>
14173
14174         Implement nproc for IRIX.
14175         * lib/nproc.c: Include <sys/sysmp.h>.
14176         (num_processors): On IRIX systems, try sysmp.
14177         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
14178
14179 2009-10-18  Bruno Haible  <bruno@clisp.org>
14180
14181         Implement nproc for HP-UX.
14182         * lib/nproc.c: Include <sys/pstat.h>
14183         (num_processors): On HP-UX systems, try pstat_getdynamic.
14184         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
14185         pstat_getdynamic.
14186
14187 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
14188             Bruno Haible  <bruno@clisp.org>
14189
14190         Implement nproc for NetBSD, OpenBSD.
14191         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
14192         (ARRAY_SIZE): New macro.
14193         (num_processors): On BSD systems, try sysctl of HW_NCPU.
14194         * m4/nproc.m4: New file.
14195         * modules/nproc (Files): Add m4/nproc.m4.
14196         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
14197         (Makefile.am): Instead, augment lib_SOURCES.
14198
14199 2009-10-18  Bruno Haible  <bruno@clisp.org>
14200
14201         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
14202         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
14203         sys/param.h.
14204
14205 2009-10-16  Eric Blake  <ebb9@byu.net>
14206
14207         utimensat: new module
14208         * modules/utimensat: New file.
14209         * lib/utimensat.c (utimensat): Likewise.
14210         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
14211         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
14212         so we can work around Linux bugs.
14213         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
14214         * modules/sys_stat (Makefile.am): Substitute them.
14215         * lib/sys_stat.in.h (utimensat): Declare it.
14216         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14217         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
14218         * modules/utimensat-tests: New test.
14219         * tests/test-utimensat.c: Likewise.
14220
14221         utimens: let lutimens work on non-symlinks
14222         * lib/utimens.c (lutimens): Fall back to utimens rather than
14223         failing with ENOSYS, when file is not a symlink.
14224         (utimens): Reduce redirection.
14225         * tests/test-lutimens.h (test_lutimens): Update test to cover
14226         non-symlinks.
14227         * tests/test-utimens.h (test_utimens): Update test to cover
14228         symlinks.
14229         * tests/test-utimens.c (main): Update caller.
14230
14231         utimens: cache whether utimensat syscall works
14232         * lib/utimens.c (utimensat_works_really): New cache variable.
14233         (fdutimens, lutimens): Use it to avoid failing syscall.
14234
14235         test-stat-time, test-utimens: improve portability
14236         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
14237         ext4 on alpha, and for cygwin.
14238         * tests/test-utimens-common.h: New file.
14239         (nap): Factor delays into single function.
14240         * tests/test-lutimens.h (test_lutimens): Use new header.
14241         * tests/test-futimens.h (test_futimens): Likewise.
14242         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
14243         timestamps to occur from same machine, as was done previously for
14244         test_utimens.
14245         * modules/utimens-tests (Files): Ship new file.
14246         * modules/futimens-tests (Files): Likewise.
14247         Reported in part by Jim Meyering.
14248
14249         sys_stat: sort replacement declarations
14250         * lib/sys_stat.in.h: Sort declarations.
14251         * lib/futimens.c (futimens): Fix typo.
14252
14253 2009-10-15  Jim Meyering  <meyering@redhat.com>
14254
14255         don't let environment settings perturb build
14256         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
14257         could cause a configure-time and/or build-time malfunction.
14258         Typically, a configure-time function-in-library test is performed
14259         via code like this:
14260
14261           LIB_VAR=
14262           AC_SUBST([LIB_VAR])
14263           prefix_saved_LIBS=$LIBS
14264             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
14265                        [test "$ac_cv_search_FUNC" = "none required" ||
14266                         LIB_VAR=$ac_cv_search_FUNC])
14267           LIBS=$prefix_saved_LIBS
14268
14269         However, in each of the files affected by this change, the LIB_VAR=
14270         initialization was omitted.  Thus, when set in the environment, its
14271         value would propagate into generated Makefiles when FUNC is not found
14272         in LIB_NAME.
14273         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
14274         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
14275         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14276
14277 2009-10-14  Eric Blake  <ebb9@byu.net>
14278
14279         fchdir: avoid infinite recursion in mingw
14280         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
14281         recursing.
14282
14283         test-stat-time: port to mingw
14284         * tests/test-stat-time.c (force_unlink): Return a value.
14285         (test_ctime) [W32]: Fix compilation error.
14286         (nap): Don't call usleep with too large an argument.  Use
14287         force_unlink.
14288         * doc/pastposix-functions/usleep.texi (usleep): Document the
14289         portability issue.
14290
14291 2009-10-13  Jim Meyering  <meyering@redhat.com>
14292
14293         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
14294         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
14295         * modules/pipe-filter-ii: Likewise.
14296         * modules/sys_socket-tests: Likewise.
14297         * modules/tsearch-tests: Likewise.
14298         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
14299         (check): Depend on it.
14300
14301 2009-10-12  Eric Blake  <ebb9@byu.net>
14302
14303         utimens-tests: port to NFS file systems
14304         * tests/test-utimens.h (test_utimens): Refactor utimecmp
14305         comparisons to avoid spurious failures from timestamp drift
14306         between NFS machines.
14307
14308 2009-10-12  Eric Blake  <ebb9@byu.net>
14309
14310         stat-time-tests: minor cleanups
14311         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
14312         * tests/test-stat-time.c (nap): Separate assignment from call.
14313         Suggested by Paolo Bonzini and Bruno Haible.
14314
14315         sys_stat: guarantee struct timespec
14316         * lib/sys_stat.in.h (includes): Always include <time.h>
14317         * modules/sys_stat (Depends-on): Add time.
14318         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
14319         mode_t permission values.
14320         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
14321         get at subsecond timestamps.
14322
14323 2009-10-10  Eric Blake  <ebb9@byu.net>
14324
14325         futimens: new module
14326         * modules/futimens: New file.
14327         * lib/futimens.c (futimens): Likewise.
14328         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
14329         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
14330         we can work around Linux bugs.
14331         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
14332         * modules/sys_stat (Makefile.am): Substitute them.
14333         * lib/sys_stat.in.h (futimens): Declare it.
14334         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14335         * doc/posix-functions/futimens.texi (futimens): Likewise.
14336         * modules/futimens-tests: New test.
14337         * tests/test-futimens.c: Likewise.
14338
14339         utimens: introduce fdutimens
14340         * lib/utimens.h (fdutimens): New prototype.
14341         * lib/utimens.c (gl_futimens): Move guts...
14342         (fdutimens): ...to new interface.
14343         * tests/test-utimens.c (do_fdutimens): Use it.
14344
14345         utimens: add UTIME_NOW and UTIME_OMIT support
14346         * lib/utimens.c (validate_timespec, update_timespec): New helper
14347         functions.
14348         (gl_futimens, lutimens): Use them.
14349         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
14350         stdbool, sys_stat.
14351         (Link): Mention resulting library dependency.
14352         * modules/utimecmp (Link): Likewise.
14353         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
14354         (Makefile.am): Pick up library dependency.
14355         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
14356         definition.
14357         * tests/test-sys_stat.c: Test the definitions.
14358         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
14359         * NEWS: Document library dependency.
14360
14361         utimecmp: support symlink timestamps
14362         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
14363         hashing when possible.  Use pathconf when available.
14364         (SYSCALL_RESOLUTION): Recognize tighter resolution.
14365         * modules/utimecmp (Depends-on): Add lstat.
14366
14367         utimens: add lutimens interface
14368         * lib/utimens.c (lutimens): New function.
14369         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
14370         * lib/utimens.h (lutimens): Declare new interface.
14371         * tests/test-utimens.c (main): Enhance test.
14372         * tests/test-lutimens.h (test_lutimens): New file.
14373         * modules/utimens-tests (Files): Distribute it.
14374         (Depends-on): Add symlink.
14375         (configure.ac): Check for usleep.
14376
14377         utimens: validate futimens usage
14378         * lib/utimens.c (gl_futimens): Require valid fd up front, using
14379         fewer syscalls on failure later on.  Avoid compiler warning on
14380         mingw.
14381         * modules/utimens (Depends-on): Add dup2.
14382
14383         utimens: add test
14384         * modules/utimens-tests: New test.
14385         * tests/test-utimens.h: New file.
14386         * tests/test-futimens.h: Likewise.
14387         * tests/test-utimens.c: Likewise.
14388
14389         doc: mention timestamp portability issues
14390         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
14391         instead.
14392         * doc/posix-functions/utime.texi (utime): Likewise.
14393         * doc/posix-functions/utimes.texi (utimes): Likewise.
14394         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
14395         instead.
14396         * doc/posix-functions/futimens.texi (futimens): Mention utimens
14397         module.
14398         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
14399         Mention weakness with symlink timestamps.
14400         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
14401         to utimensat/futimens instead.
14402         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
14403
14404         test-dup2: enhance test
14405         * tests/test-dup2.c (main): Also check AT_FDCWD.
14406
14407         test-stat-time: avoid more spurious failures
14408         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
14409         xfs; and avoid race if the two timestamps cross quantization edge.
14410
14411         relocatable: prefer 'file system' over 'filesystem'
14412         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
14413         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
14414         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
14415         * doc/relocatable.texi (Enabling Relocatability): Likewise.
14416         * lib/relocatable.c (compute_curr_prefix): Likewise.
14417
14418 2009-10-10  Jim Meyering  <meyering@redhat.com>
14419
14420         stat-time-tests: check for the usleep function
14421         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
14422
14423 2009-10-10  Bruno Haible  <bruno@clisp.org>
14424
14425         * modules/xnanosleep: Put the Link section after the Include section.
14426
14427 2009-10-09  Eric Blake  <ebb9@byu.net>
14428
14429         dup2: work around FreeBSD 6.1 bug
14430         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
14431         * doc/posix-functions/dup2.texi (dup2): Document it.
14432         Reported by Nelson H. F. Beebe and Jim Meyering.
14433
14434         test-stat-time: port to buggy NFS clients
14435         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
14436         (test_ctime): Also skip test if mtime and ctime are skewed.
14437
14438         maint: prefer 'file system' over 'filesystem'
14439         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
14440         * doc/posix-functions/lstat.texi (lstat): Likewise.
14441         * lib/file-has-acl.c (file_has_acl): Likewise.
14442         * lib/fwriteerror.c [TEST]: Likewise.
14443         * tests/test-areadlink.h (test_areadlink): Likewise.
14444         * tests/test-areadlinkat-with-size.c (main): Likewise.
14445         * tests/test-areadlinkat.c (main): Likewise.
14446         * tests/test-canonicalize-lgpl.c (main): Likewise.
14447         * tests/test-canonicalize.c (main): Likewise.
14448         * tests/test-fstatat.c (main): Likewise.
14449         * tests/test-linkat.c (main): Likewise.
14450         * tests/test-lstat.h (test_lstat_func): Likewise.
14451         * tests/test-mkdir.h (test_mkdir): Likewise.
14452         * tests/test-readlink.h (test_readlink): Likewise.
14453         * tests/test-remove.c (main): Likewise.
14454         * tests/test-rename.h (test_rename): Likewise.
14455         * tests/test-renameat.c (main): Likewise.
14456         * tests/test-rmdir.h (test_rmdir_func): Likewise.
14457         * tests/test-symlink.h (test_symlink): Likewise.
14458         * tests/test-symlinkat.c (main): Likewise.
14459         * tests/test-unlink.h (test_unlink_func): Likewise.
14460         * tests/test-unlinkat.c (main): Likewise.
14461
14462         maint: make realtime library usage explicit
14463         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
14464         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
14465         * modules/settime (Link): Likewise.
14466         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
14467
14468         test-stat-time: speed up execution
14469         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
14470         warning on mingw.
14471         (nap): New helper function.
14472         (prepare_test): Use it to reduce sleep time.
14473         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
14474         execution.
14475         * modules/stat-time-tests (configure.ac): Check for usleep.
14476
14477 2009-10-09  Jim Meyering  <meyering@redhat.com>
14478
14479         selinux-h: always use getfilecon wrappers
14480         * lib/getfilecon.c: New file.
14481         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
14482         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
14483         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
14484         (fgetfilecon): Provide a stub.
14485         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
14486         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
14487         file unconditionally.
14488         When <selinux/selinux.h> is found, arrange to use wrappers.
14489         * modules/selinux-h (Files): Add getfilecon.c.
14490         (Makefile.am): Substitute include-next-related bits
14491         into the now-always-generated selinux/selinux.h file.
14492         * doc/glibc-functions/lgetfilecon.texi: New file.
14493         * doc/glibc-functions/fgetfilecon.texi: New file.
14494         * doc/glibc-functions/getfilecon.texi: New file.
14495         * doc/glibc-functions/getfilecon-desc.texi: New file.
14496         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
14497         which to pull in the new files.
14498         * MODULES.html.sh (Misc): Add selinux-h.
14499
14500 2009-10-08  Jim Meyering  <meyering@redhat.com>
14501
14502         unistd: fix comment typo
14503         * lib/unistd.in.h (euidaccess): Fix a comment typo.
14504
14505 2009-10-08  Eric Blake  <ebb9@byu.net>
14506
14507         areadlink: use SIZE_MAX consistently
14508         * modules/areadlink (Depends-on): Add stdint.
14509         * modules/areadlink-with-size (Depends-on): Likewise.
14510         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
14511         gives NULL; drop sys/types, since unistd gives size_t; and add
14512         stdint for SIZE_MAX.
14513         (SIZE_MAX): Rely on headers.
14514         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
14515         and add stdint.
14516         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
14517         (SIZE_MAX): Likewise.
14518         (INITIAL_BUF_SIZE): Turn into enum.
14519         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
14520
14521 2009-10-08  Jim Meyering  <meyering@redhat.com>
14522
14523         areadlinkat: avoid compilation failure
14524         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
14525         Fix typo in comment.
14526
14527 2009-10-07  Eric Blake  <ebb9@byu.net>
14528
14529         areadlinkat-with-size: new module
14530         * modules/areadlinkat-with-size: New module.
14531         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
14532         * lib/areadlink.h (areadlinkat): Declare it.
14533         * MODULES.html.sh (File system functions): Mention it.
14534         * modules/areadlinkat-with-size-tests: New test.
14535         * tests/test-areadlinkat-with-size.c: New file.
14536
14537         xreadlinkat: new module
14538         * modules/xreadlinkat: New module.
14539         * lib/xreadlinkat.c (xreadlinkat): New file.
14540         * lib/xreadlink.h (xreadlinkat): Declare it.
14541         * MODULES.html.sh (File system functions): Mention it.
14542
14543         areadlinkat: new module
14544         * lib/at-func.c (FUNC_FAIL): New define.
14545         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
14546         * modules/areadlinkat: New module.
14547         * lib/linkat.c (areadlinkat): Move...
14548         * lib/areadlinkat.c (areadlinkat): ...to new file.
14549         * lib/areadlink.h (areadlinkat): Declare it.
14550         * modules/linkat (Depends-on): Add areadlinkat.
14551         * MODULES.html.sh (File system functions): Mention it.
14552         * modules/areadlinkat-tests: New test.
14553         * tests/test-areadlinkat.c: New file.
14554
14555         areadlink, areadlink-with-size: add tests
14556         * modules/areadlink-tests: New test.
14557         * modules/areadlink-with-size-tests: Likewise.
14558         * tests/test-areadlink.h: New file.
14559         * tests/test-areadlink.c: Likewise.
14560         * tests/test-areadlink-with-size.c: Likewise.
14561
14562         maint: minor cleanups
14563         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
14564         _UNUSED_PARAMETER_ instead.
14565         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
14566         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
14567         * modules/linkat-tests (Files): Distribute test-link.h.
14568
14569         openat, utimens: whitespace cleanup
14570         * lib/openat.c: Prefer space throughout, rather than mix of 8
14571         spaces vs. tabs.
14572         * lib/at-func.c: Likewise.
14573         * lib/utimens.c: Likewise.
14574
14575         openat: avoid using wrong fd
14576         * lib/openat.c (openat_permissive): Reject user's fd if saving the
14577         working directory chooses same fd.
14578         * lib/at-func.c (AT_FUNC_NAME): Likewise.
14579
14580         mkdir, mkdirat: fix cygwin 1.5.x bug
14581         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
14582         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
14583         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
14584         bug.
14585         (gl_PREREQ_MKDIR): Delete unused macro.
14586         * modules/mkdir (Files): Track file rename.
14587         (configure.ac): Update macro name.
14588         * modules/openat (Depends-on): Add mkdir.
14589         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
14590
14591         mkdir, mkdirat: add tests
14592         * modules/mkdir-tests: New test.
14593         * tests/test-mkdir.h: New file.
14594         * tests/test-mkdir.c: Likewise.
14595         * tests/test-mkdirat.c: Likewise.
14596         * modules/openat-tests (Files): Add new files.
14597         (Makefile.am): Run new test.
14598
14599 2009-10-06  Eric Blake  <ebb9@byu.net>
14600
14601         doc: tweak *at function documentation
14602         * doc/posix-functions/faccessat.texi (faccessat): Mention
14603         known issue with replacement.
14604         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
14605         * doc/posix-functions/linkat.texi (linkat): Likewise.
14606         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
14607         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
14608         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
14609         * doc/posix-functions/renameat.texi (renameat): Likewise.
14610         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
14611
14612         openat: fix GNU/Hurd bug in unlinkat
14613         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
14614         broken.
14615         * doc/posix-functions/unlink.texi (unlink): Document this.
14616         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
14617
14618         fdopendir: fix GNU/Hurd bug
14619         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
14620         allowing non-directory fds.
14621         * lib/fdopendir.c (rpl_fdopendir): Work around it.
14622         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
14623         * modules/dirent (Makefile.am): Substitute it.
14624         * lib/dirent.in.h (fdopendir): Declare replacement.
14625         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
14626         * tests/test-fdopendir.c (main): Test something other than
14627         /dev/null, since on Hurd that behaves like a directory.
14628
14629         test-symlink: port to GNU/Hurd
14630         * tests/test-symlink.h (test_symlink): Relax expected errno.
14631
14632         doc: tweak more cygwin information
14633         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
14634         now compatible with glibc.
14635         * doc/posix-functions/getopt.texi (getopt): Likewise.
14636
14637         getopt-gnu: add another test
14638         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
14639         guarantee behavior relied on by m4.
14640         * tests/test-getopt.c (main): Use it.
14641         * modules/getopt-posix-tests (Depends-on): Add setenv.
14642         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
14643
14644         getopt: fix compilation on darwin
14645         * lib/getopt.in.h (includes): Leave breadcrumbs during system
14646         include.
14647         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
14648         Reported by Ludovic Courtès.
14649
14650 2009-10-06  Bruno Haible  <bruno@clisp.org>
14651
14652         * modules/size_max (Description): Discourage its use.
14653         Reported by Simon Josefsson.
14654
14655 2009-10-06  Jim Meyering  <meyering@redhat.com>
14656
14657         linkat: avoid compilation failure
14658         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
14659
14660 2009-10-05  Eric Blake  <ebb9@byu.net>
14661
14662         linkat: support Linux 2.6.17
14663         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
14664         linkat on Linux, but allow cache variable override.
14665         * lib/linkat.c (rpl_linkat): Define override.
14666         * modules/linkat (Depends-on): Add symlinkat.
14667         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
14668         * modules/unistd (Makefile.am): Substitute it.
14669         * lib/unistd.in.h (linkat): Declare replacement.
14670         Reported by Pádraig Brady.
14671
14672         quotearg: port test to systems with C.UTF-8 locale
14673         * tests/test-quotearg.c (struct result_strings): Add another
14674         member, differentiating between C.ASCII and C.UTF-8 handling.
14675         (compare_strings): Add parameter.
14676         (main): Adjust all callers.
14677
14678         getopt: avoid clash with FreeBSD _getopt_internal
14679         * lib/getopt.in.h (_getopt_internal): Override the name.
14680         * lib/getopt_int.h (includes): Pick up any overrides.
14681         Reported by Reuben Thomas.
14682
14683         hash: allow C89 compilation
14684         * lib/hash.c (check_tuning): Move declaration before statement.
14685         Reported by Reuben Thomas.
14686
14687 2009-10-05  Karl Berry  <karl@gnu.org>
14688
14689         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
14690
14691 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
14692             Bruno Haible  <bruno@clisp.org>
14693
14694         * lib/uname.c (uname): Use a table-driven algorithm to compute
14695         Windows NT versions.
14696
14697 2009-10-04  Bruno Haible  <bruno@clisp.org>
14698
14699         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
14700         program_invocation_short_name.
14701         * modules/progname (configure.ac): Test for presence of
14702         program_invocation_short_name.
14703         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
14704
14705 2009-10-04  Bruno Haible  <bruno@clisp.org>
14706
14707         * lib/progname.c (set_program_name): Fix comment.
14708         Reported by Jim Meyering.
14709
14710 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
14711             Bruno Haible  <bruno@clisp.org>
14712
14713         * lib/uname.c: Include <string.h>.
14714         (uname): Do only one call to GetVersionEx in the common case.
14715
14716 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
14717             Bruno Haible  <bruno@clisp.org>
14718
14719         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
14720         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
14721         (uname): Add support for Windows CE and various non-x86 CPU types.
14722
14723 2009-10-03  Bruno Haible  <bruno@clisp.org>
14724
14725         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
14726         invocation to tests/configure.ac.
14727         Reported by Ian Beckwith <ianb@erislabs.net>.
14728
14729 2009-10-02  Eric Blake  <ebb9@byu.net>
14730
14731         fchdir: avoid compiler warning
14732         * lib/fchdir.c (canonicalize_file_name)
14733         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
14734
14735         test-open: support mingw errno values
14736         * tests/test-open.h (test_open): Relax test.
14737         * tests/test-fopen.h (test_fopen): Likewise.
14738         * tests/test-openat-safer.c (main): Likewise.
14739
14740         open: fix opening directory on mingw
14741         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
14742
14743         test-open: on GNU/Hurd, /dev/null is a directory
14744         * tests/test-fopen.h (main): Rename...
14745         (test_fopen): ...to this.  Use a guaranteed non-directory when
14746         confirming open behavior on trailing slash.
14747         * tests/test-openat-safer.c (main): Likewise.
14748         * tests/test-open.h (main): Likewise....
14749         (test_open): ...to this.
14750         * tests/test-fopen.c (main): Adjust caller.
14751         * tests/test-fopen-safer.c (main): Likewise.
14752         * tests/test-open.c (main): Likewise.
14753         * tests/test-fcntl-safer.c (main): Likewise.
14754         Reported by Samuel Thibault.
14755
14756         rename, fchdir: don't ignore chdir failure
14757         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
14758         * lib/rename.c (rpl_rename) [W32]: Likewise.
14759         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
14760         an empty destination directory if source cannot be renamed,
14761         although there is still possibility for failure.
14762         * doc/posix-functions/rename.texi (rename): Document the race.
14763         Reported by Jim Meyering.
14764
14765         maint: cleanup whitespace in recent commits
14766         * lib/rename.c (rpl_rename): Remove tabs.
14767         * tests/test-link.h (test_link): Likewise.
14768         * lib/fchdir.c (get_name): Likewise.
14769         Reported by Jim Meyering.
14770
14771 2009-10-02  Ben Pfaff  <blp@gnu.org>
14772
14773         relocatable-prog-wrapper: Add missing dependency on
14774         double-slash-root.
14775         * modules/relocatable-prog-wrapper: Add dependency.
14776         Reported by Ian Beckwith <ianb@erislabs.net>.
14777
14778 2009-10-02  Eric Blake  <ebb9@byu.net>
14779
14780         renameat: fix Solaris bugs
14781         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
14782         needed fixing.
14783         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
14784         * modules/stdio (Makefile.am): Substitute it.
14785         * lib/stdio.in.h (renameat): Declare replacement.
14786         * lib/renameat.c (rpl_renameat): Implement fix.
14787
14788         renameat: new module
14789         * modules/renameat: New file.
14790         * lib/renameat.c (renameat): Likewise.
14791         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
14792         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
14793         * modules/stdio (Makefile.am): Substitute them.
14794         * lib/stdio.in.h (renameat): Declare it.
14795         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14796         * doc/posix-functions/renameat.texi (renameat): Likewise.
14797         * modules/renameat-tests: New test.
14798         * tests/test-renameat.c: Likewise.
14799
14800         rename: fix mingw bugs
14801         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
14802         directory overwrite bugs.
14803
14804         rename: fix another cygwin 1.5 bug
14805         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
14806         checks.
14807         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
14808         unnecessary cygwin workarounds.  Also work around bug with moving
14809         full directory onto an empty one.
14810         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
14811
14812         rename-dest-slash: merge into rename module
14813         * modules/rename-dest-slash (Status): Mark obsolete.
14814         (Depends-on): Add rename.
14815         (Files): Let rename do it all.
14816         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
14817         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
14818         * m4/rename-dest-slash.m4: ...so this file can be deleted.
14819         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
14820         * lib/rename.c (rpl_rename): Update comments.
14821
14822         rename: fix cygwin 1.5.x bugs
14823         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
14824         * lib/rename.c (rpl_rename): Work around them.
14825         * modules/rename (Depends-on): Add same-inode.
14826
14827         rename: fix Solaris 10 bug
14828         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
14829         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
14830         was the only bug.
14831
14832         rename: fix Solaris 9 bug
14833         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
14834         on non-directory.  Avoid calling exit.
14835         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
14836         strdup.
14837         * modules/rename-tests (Depends-on): Drop lstat.
14838         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
14839         (gl_PREREQ_RENAME): Delete unused macro.
14840
14841         rename-dest-slash: fix NetBSD bug
14842         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
14843         links.
14844         * modules/rename-dest-slash (Depends-on): Add same-inode.
14845
14846         rename-tests: new test, exposes several platform bugs
14847         * modules/rename-tests: New file.
14848         * tests/test-rename.h: Likewise.
14849         * tests/test-rename.c: Likewise.
14850         * doc/posix-functions/rename.texi (rename): Improve documentation,
14851         including bugs that will eventually be fixed in gnulib.
14852
14853 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
14854
14855         * lib/uname.c: Include <stdlib.h>
14856         (uname): Assume version info is available.
14857
14858 2009-10-02  Jim Meyering  <meyering@redhat.com>
14859
14860         gnu-web-doc-update: correct --help output
14861         * build-aux/gnu-web-doc-update: Make --help output relevant.
14862
14863         gnu-web-doc-update: add standard options
14864         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
14865
14866         gnu-web-doc-update: New module.
14867         Use this script to automatically update the on-line web documentation
14868         for your GNU project at http://www.gnu.org/software/$pkg/manual/
14869         * modules/gnu-web-doc-update: New file, from coreutils.
14870         * build-aux/gnu-web-doc-update: New script.
14871
14872 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
14873
14874         link: LoadLibrary is not needed.
14875         * lib/link.c: Use GetModuleHandle.
14876
14877 2009-10-01  Eric Blake  <ebb9@byu.net>
14878
14879         getopt: bump serial number
14880         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
14881         change.
14882
14883         tests: tighten link, rmdir, and remove tests
14884         * tests/test-link.h (includes): No need to use <config.h> here.
14885         Clean up if directory hard link was created, otherwise test for
14886         trailing '.'.
14887         * tests/test-linkat.c (main): Simplify.
14888         * tests/test-remove.c (main): Enhance test for trailing '.'.
14889         * tests/test-rmdir.h (test_rmdir_func): Likewise.
14890
14891 2009-10-01  Jim Meyering  <meyering@redhat.com>
14892
14893         maint.mk: requiring "make major" was annoying, for a "minor" release.
14894         What is intended is "stable", to contrast with alpha and beta,
14895         so require "make stable", not "make major".
14896         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
14897         (get_tool_versions): Likewise.
14898         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
14899
14900 2009-09-30  Ben Pfaff  <blp@gnu.org>
14901
14902         Fix broken build of replacement for Windows tmpfile().
14903         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
14904         flags argument added along with the 'mkostemp' module.
14905
14906 2009-09-28  Bruno Haible  <bruno@clisp.org>
14907
14908         Avoid identifier clash with POSIX function 'remove' defined as a macro.
14909         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
14910         to 'remove_elt'.
14911         (gl_list_remove): Update.
14912         * lib/gl_list.c (gl_list_remove): Update.
14913         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
14914         to 'remove_elt'.
14915         (gl_oset_remove): Update.
14916         * lib/gl_list.c (gl_oset_remove): Update.
14917         Reported by Eric Blake.
14918
14919 2009-09-28  Eric Blake  <ebb9@byu.net>
14920
14921         doc: mention yet more cygwin 1.7 status
14922         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
14923         cygwin.
14924         * doc/glibc-functions/execvpe.texi (execvpe): New file.
14925         * doc/gnulib.texi (Glibc unistd.h): Mention it.
14926
14927         argp: fix test failure
14928         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
14929         that are not upper-case.  Pass correct range to tolower.
14930
14931 2009-09-27  Jim Meyering  <meyering@redhat.com>
14932
14933         test-yesno: work around sparc-dash here-document infelicity
14934         Without this change, the literal \177 byte in a here document
14935         would make dash 0.5.5.1-3 access uninitialized memory.
14936         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
14937         Instead, use a marker, "@", and filter through tr to create the desired
14938         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
14939
14940 2009-09-27  Bruno Haible  <bruno@clisp.org>
14941
14942         Disable untested support for new flavours of ACLs on AIX.
14943         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
14944         progress.
14945         * lib/set-mode-acl.c (qset_acl): Likewise.
14946
14947 2008-12-07  Bruno Haible  <bruno@clisp.org>
14948
14949         Add support for new flavours of ACLs on AIX. (Untested.)
14950         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
14951         (file_has_acl): Add support for newer AIX.
14952         * lib/set-mode-acl.c (qset_acl): Likewise.
14953         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
14954         Rainer Tammer <tammer@tammer.net>.
14955
14956 2009-09-26  Eric Blake  <ebb9@byu.net>
14957
14958         argp: fix compilation of getopt
14959         * lib/getopt.in.h (includes): Use different guard than glibc.
14960         Reported by Sergey Poznyakoff.
14961
14962         doc: mention more cygwin 1.7 status
14963         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
14964         bug.
14965         * doc/posix-functions/execl.texi (execl): Likewise.
14966         * doc/posix-functions/execle.texi (execle): Likewise.
14967         * doc/posix-functions/execlp.texi (execlp): Likewise.
14968         * doc/posix-functions/execv.texi (execv): Likewise.
14969         * doc/posix-functions/execve.texi (execve): Likewise.
14970         * doc/posix-functions/execvp.texi (execvp): Likewise.
14971         * doc/glibc-functions/canonicalize_file_name.texi
14972         (canonicalize_file_name): Cygwin 1.7 now provides this.
14973         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
14974         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
14975         on AT_SYMLINK_NOFOLLOW.
14976
14977 2009-09-24  Eric Blake  <ebb9@byu.net>
14978
14979         test-linkat: make test more robust
14980         * tests/test-linkat.c (main): Avoid collision with EEXIST.
14981
14982         getopt: fix inclusion guards for cygwin
14983         * modules/getopt-posix (Depends-on): Add include-next.
14984         (Makefile.am): Substitute more items in replacement header.
14985         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
14986         <getopt.h>.
14987         * lib/getopt.in.h (includes): Use split inclusion guard, and
14988         prefer <getopt.h> over include <unistd.h> when one is present.
14989         (option): Also override name of 'struct option'.
14990
14991         same-inode: revert prior change; it is not yet ready
14992         * NEWS: Undo mention of this change.
14993         * lib/same-inode.h (same-inode.h): Undo tri-state change.
14994         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
14995         * lib/cycle-check.c (cycle_check): Likewise.
14996         * lib/same.c (same_name): Likewise.
14997         * lib/at-func2.c (at_func2): Likewise.
14998
14999 2009-09-23  Eric Blake  <ebb9@byu.net>
15000
15001         linkat: new module
15002         * modules/linkat: New file.
15003         * lib/at-func2.c (at_func2): Likewise.
15004         * lib/linkat.c (linkat): Likewise.
15005         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
15006         * lib/openat-priv.h (at_func2): Add declaration.
15007         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
15008         * modules/unistd (Makefile.am): Substitute them.
15009         * lib/unistd.in.h (linkat): Declare it.
15010         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15011         * doc/posix-functions/linkat.texi (linkat): Likewise.
15012         * doc/posix-functions/link.texi (link): Tweak wording.
15013         * tests/test-link.c (main): Move guts...
15014         * tests/test-link.h (test_link): ...into new file.
15015         * modules/linkat-tests: New test.
15016         * tests/test-linkat.c: Likewise.
15017         * modules/link-tests (Files): Ship new file.
15018         (Depends-on): Add stdbool.
15019
15020         dirname: add library-safe mdir_name
15021         * lib/dirname.h (mdir_name): New prototype.
15022         * lib/dirname.c (dir_name): Move guts...
15023         (mdir_name): ...to new function that avoids xalloc_die.
15024
15025         fchdir: another mingw fix
15026         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
15027         * lib/fchdir.c (get_name): New helper method; skips canonicalize
15028         on mingw (where it has not yet been ported), and make it optional
15029         elsewhere.
15030         (_gl_register_fd): Use it.
15031
15032         same-inode: make SAME_INODE tri-state, to port to mingw
15033         * NEWS: Mention this change.
15034         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
15035         st_ino always being 0.
15036         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
15037         * lib/cycle-check.c (cycle_check): Likewise.
15038         * lib/same.c (same_name): Likewise.
15039
15040         lstat: avoid mingw compilation error
15041         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
15042         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
15043         lstat ourselves.
15044         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
15045         was adequate.
15046         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
15047         the checks for lstat.
15048         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
15049
15050         link: fix test failure on Solaris 9
15051         * lib/link.c (rpl_link): Don't assume link will catch bogus
15052         trailing slash on source.
15053
15054         test-symlinkat: enhance test
15055         * tests/test-readlink.c (main): Move guts...
15056         * tests/test-readlink.h (test_readlink): ...into new file.
15057         * tests/test-symlink.c (main): Move guts...
15058         * tests/test-symlink.h (test_symlink): ...into new file.
15059         * tests/test-symlinkat.c (main): Use new files for further
15060         coverage.
15061         (do_symlink, do_readlink): New helper functions.
15062         * modules/symlink-tests (Files): Ship new file.
15063         (Depends-on): Add stdbool.
15064         * modules/readlink-tests (Files): Ship new file.
15065         (Depends-on): Add stdbool.
15066         * modules/symlinkat-tests (Files): Use new files.
15067
15068 2009-09-23  Eric Blake  <ebb9@byu.net>
15069
15070         readlink: document portability issue with symlink length
15071         * doc/posix-functions/lstat.texi (lstat): Mention that some file
15072         systems have bogus st_size on symlinks, and mention the
15073         areadlink-with-size module.
15074         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
15075         * doc/posix-functions/readlink.texi (readlink): Mention the
15076         areadlink module, and ERANGE failure.
15077         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
15078         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
15079
15080         readlink: fix Solaris 9 bug with trailing slash
15081         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
15082         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
15083         * doc/posix-functions/readlink.texi (readlink): Document this.
15084         * modules/readlink-tests: New test.
15085         * tests/test-readlink.c: Likewise.
15086
15087         readlink: fix cygwin 1.5.x bug with return type
15088         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
15089         * lib/unistd.in.h (readlink): Use ssize_t.
15090         * lib/readlink.c (readlink): Likewise.
15091         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15092         * modules/unistd (Makefile.am): Substitute it.
15093         * lib/unistd.in.h (readlink): Declare replacement.
15094         * doc/posix-functions/readlink.texi (readlink): Document this.
15095
15096         symlink: use throughout gnulib
15097         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
15098         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
15099         symlink is not used.
15100         * modules/symlinkat (Depends-on): Add symlink.
15101         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
15102         * modules/canonicalize-tests (Depends-on): Likewise.
15103         * modules/lstat-tests (Depends-on): Likewise.
15104         * modules/openat-tests (Depends-on): Likewise.
15105         * modules/remove-tests (Depends-on): Likewise.
15106         * modules/rmdir-tests (Depends-on): Likewise.
15107         * modules/unlink-tests (Depends-on): Likewise.
15108         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
15109         * tests/test-canonicalize.c (symlink): Likewise.
15110         * tests/test-fstatat.c (symlink): Likewise.
15111         * tests/test-lstat.c (symlink): Likewise.
15112         * tests/test-remove.c (symlink): Likewise.
15113         * tests/test-rmdir.c (symlink): Likewise.
15114         * tests/test-unlink.c (symlink): Likewise.
15115         * tests/test-unlinkat.c (symlink): Likewise.
15116
15117         symlink: new module, for Solaris 9 bug
15118         * modules/symlink: New file.
15119         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
15120         * lib/symlink.c: Likewise.
15121         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
15122         * modules/unistd (Makefile.am): Substitute them.
15123         * lib/unistd.in.h (symlink): Declare replacement.
15124         * MODULES.html.sh (File system functions): Mention it.
15125         * doc/posix-functions/symlink.texi (symlink): Likewise.
15126         * modules/symlink-tests: New test.
15127         * tests/test-symlink.c: Likewise.
15128
15129 2009-09-23  Bruno Haible  <bruno@clisp.org>
15130
15131         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
15132         when needed.
15133         Test case: gnulib-tool --import --with-tests atexit inttypes.
15134         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
15135
15136 2009-09-23  Bruno Haible  <bruno@clisp.org>
15137
15138         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
15139         subcommand, not in a subshell.
15140
15141 2009-09-22  Eric Blake  <ebb9@byu.net>
15142
15143         unistd: sort replacement declarations
15144         * lib/unistd.in.h: Sort declarations.
15145
15146         open, openat: minor optimization
15147         * lib/open.c (open): If open succeeded, len is non-zero.
15148         * lib/openat.c (rpl_openat): Likewise.
15149
15150         link-follow: ensure correct result
15151         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
15152         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
15153         distinguish between possible failures.
15154
15155 2009-09-21  Eric Blake  <ebb9@byu.net>
15156
15157         fts: avoid compiler warning
15158         * lib/fts.c (dirent_inode_sort_may_be_useful)
15159         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
15160
15161 2009-09-19  Bruno Haible  <bruno@clisp.org>
15162
15163         * lib/progreloc.c (canonicalize_file_name): New declaration.
15164
15165 2009-09-19  Eric Blake  <ebb9@byu.net>
15166
15167         link: fix quoting
15168         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
15169
15170         openat: fix openat bugs on Solaris 9
15171         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
15172         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
15173         * modules/openat (Depends-on): Add open.
15174         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
15175         * modules/fcntl-h (Makefile.am): Substitute it.
15176         * lib/fcntl.in.h (openat): Declare replacement.
15177         * doc/posix-functions/openat.texi (openat): Document this.
15178
15179         openat: move fstatat and unlinkat into correct files
15180         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
15181         compiled.
15182         * lib/openat.c (fstatat, unlinkat): Move...
15183         * lib/fstatat.c (fstatat): ...into correct files.
15184         * lib/unlinkat.c (unlinkat): Likewise.
15185
15186         openat: fix unlinkat bugs on Solaris 9
15187         * lib/unlinkat.c (unlinkat): New file.
15188         * modules/openat (Depends-on): Add unlink.
15189         (Files): Distribute it.
15190         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
15191         trailing slash behavior is broken.
15192         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15193         * modules/unistd (Makefile.am): Substitute it.
15194         * lib/unistd.in.h (unlinkat): Declare replacement.
15195         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
15196
15197         openat: fix fstatat bugs on Solaris 9
15198         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
15199         stat.
15200         * doc/posix-functions/fstatat.texi (fstatat): Document this.
15201
15202         test-unlinkat: enhance test, to expose Solaris 9 bug
15203         * tests/test-unlink.c (main): Factor guts...
15204         * tests/test-unlink.h (test_rmdir_func): ...into new file.
15205         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
15206         * tests/test-rmdir.c (main): Adjust caller.
15207         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
15208         (unlinker): New helper function.
15209         (rmdirat): Enhance check.
15210         * modules/rmdir-tests (Depends-on): Add stdbool.
15211         * modules/unlink-tests (Depends-on): Likewise.
15212         (Files): Add test-unlink.h.
15213         * modules/openat-tests (Files): Likewise.
15214         (Depends-on): Add unlinkdir.
15215
15216         test-fstatat: new test, to expose Solaris 9 bugs
15217         * tests/test-stat.c (main): Factor guts...
15218         * tests/test-stat.h (test_stat_func): ...into new file.
15219         * tests/test-lstat.c (main): Factor guts...
15220         * tests/test-lstat.h (test_lstat_func): ...into new file.
15221         * tests/test-fstatat.c: New file.
15222         * modules/stat-tests (Files): Add test-stat.h.
15223         * modules/lstat-tests (Files): Add test-lstat.h.
15224         (Depends-on): Add stdbool.
15225         * modules/openat-tests (Depends-on): Add pathmax.
15226         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
15227         (Makefile.am): Run new test.
15228
15229         remove: new module, for mingw and Solaris 9 bugs
15230         * modules/remove: New file.
15231         * lib/remove.c: Likewise.
15232         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
15233         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
15234         * modules/stdio (Makefile.am): Use them.
15235         * lib/stdio.in.h (remove): Declare replacement.
15236         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15237         * doc/posix-functions/remove.texi (remove): Likewise.
15238         * modules/remove-tests: New test.
15239         * tests/test-remove.c: Likewise.
15240
15241         unlink: new module, for Solaris 9 bug
15242         * modules/unlink: New file.
15243         * lib/unlink.c: Likewise.
15244         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
15245         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
15246         * modules/unistd (Makefile.am): Use them.
15247         * lib/unistd.in.h (stat): Declare replacement.
15248         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15249         * doc/posix-functions/unlink.texi (unlink): Likewise.
15250         * modules/unlink-tests: New test.
15251         * tests/test-unlink.c: Likewise.
15252
15253         lstat: fix Solaris 9 bug
15254         * lib/lstat.c (lstat): Also check for trailing slash on
15255         non-symlink, non-directories.  Use stat module to simplify logic.
15256         * doc/posix-functions/lstat.texi (lstat): Document it.
15257         * modules/lstat-tests (Depends-on): Add errno, same-inode.
15258         (configure.ac): Check for symlink.
15259         * tests/test-lstat.c (main): Add more tests.
15260
15261         stat: add as dependency to other modules
15262         * modules/chown (Depends-on): Add stat.
15263         * modules/euidaccess (Depends-on): Likewise.
15264         * modules/fchdir (Depends-on): Likewise.
15265         * modules/isdir (Depends-on): Likewise.
15266         * modules/link (Depends-on): Likewise.
15267         * modules/lstat (Depends-on): Likewise.
15268         * modules/mkdir-p (Depends-on): Likewise.
15269         * modules/modechange (Depends-on): Likewise.
15270         * modules/open (Depends-on): Likewise.
15271         * modules/readlink (Depends-on): Likewise.
15272         * modules/same (Depends-on): Likewise.
15273
15274         stat: fix Solaris 9 bug
15275         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
15276         slash.
15277         * lib/stat.c (rpl_stat): Work around it.
15278         * doc/posix-functions/stat.texi (stat): Update documentation.
15279
15280         stat: new module, for mingw bug
15281         * modules/stat: New file.
15282         * lib/stat.c: Likewise.
15283         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
15284         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
15285         * modules/sys_stat (Makefile.am): Use them.
15286         * lib/sys_stat.in.h (stat): Declare replacement.
15287         * lib/openat.c (fstatat): Deal with lstat and stat being function
15288         macros.
15289         * modules/openat (Depends-on): Add inline.
15290         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15291         * doc/posix-functions/stat.texi (stat): Likewise.
15292         * modules/stat-tests: New test.
15293         * tests/test-stat.c: Likewise.
15294
15295 2009-09-19  Jim Meyering  <meyering@redhat.com>
15296
15297         syntax-check: detect unnecessary inclusion of canonicalize.h
15298         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
15299
15300 2009-09-19  Eric Blake  <ebb9@byu.net>
15301
15302         canonicalize-lgpl: adjust clients to use correct header
15303         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
15304         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
15305         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
15306         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
15307         * lib/progreloc.c (includes): Likewise.
15308
15309 2009-09-19  Jim Meyering  <meyering@redhat.com>
15310
15311         test-posixtm.c: correct a comment
15312         * tests/test-posixtm.c: Correct first-line comment.
15313         Spotted by Eric Blake.
15314
15315 2009-09-16  Jim Meyering  <meyering@redhat.com>
15316
15317         posixtm-tests: make T const-correct; add a test case
15318         * tests/test-posixtm.c (T): Declare const.
15319         Add a test for -(2^31+1).
15320         Remove useless can-succeed-only-in-2002 test.
15321
15322         posixtm-tests: adjust the sole failing test
15323         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
15324         expected output matches what mktime now produces.  Cross-checked via
15325         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
15326
15327         posixtm: move #ifdef'd tests into a new module
15328         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
15329         * tests/test-posixtm.c: ... this new file.
15330         * modules/posixtm-tests: New module.
15331
15332 2009-09-19  Eric Blake  <ebb9@byu.net>
15333
15334         openat: simplify use of at-func.c
15335         * lib/at-func.c (includes): Include prerequisites here, to
15336         simplify requirements on client files.
15337         * lib/openat-priv.h: Add double-inclusion guard.
15338         * lib/faccessat.c (includes): Simplify.
15339         * lib/fchmodat.c (includes): Likewise.
15340         * lib/fchownat.c (includes): Likewise.
15341         * lib/mkdirat.c (includes): Likewise.
15342         * lib/mkfifoat.c (includes): Likewise.
15343         * lib/symlinkat.c (includes): Likewise.
15344
15345         openat: allow return of fd 0
15346         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
15347         * modules/save-cwd (Depends-on): Replace fcntl-safer with
15348         unistd-safer.
15349         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
15350         <fcntl.h>; this module does not leak fds.
15351         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
15352         must be allowed to return 0, leaving openat_safer to add the
15353         safety.
15354         (openat_permissive): Avoid writing to just-opened fd 2 if
15355         restoring the current directory fails.
15356         * lib/openat-die.c (openat_restore_fail): Add comment.
15357         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
15358         (save_cwd): Guarantee safe fd, but without use of open_safer.
15359         * tests/test-openat.c: New test.
15360         * modules/openat-tests (Files, Makefile.am): Distribute and build
15361         new file.
15362
15363         relocatable-prog-wrapper: fix build
15364         * modules/relocatable-prog-wrapper (Files): Update name of
15365         canonicalize m4 file, broken on 2009-09-17.
15366         Reported by emad hajjar <aleppos@hotmail.com>.
15367
15368 2009-09-19  Bruno Haible  <bruno@clisp.org>
15369
15370         * lib/safe-alloc.h: Use the standard header with GPL copyright.
15371         * lib/safe-alloc.c: Likewise.
15372         Reported by Ian Beckwith <ianb@erislabs.net>.
15373
15374 2009-09-18  Bruno Haible  <bruno@clisp.org>
15375
15376         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
15377         Reported by <erobles@sensacd.com.mx>.
15378
15379 2009-09-17  Eric Blake  <ebb9@byu.net>
15380
15381         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
15382         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
15383         slashes when checking if last component is missing.
15384         * tests/test-canonicalize.c (main): Test this.
15385
15386         canonicalize, canonicalize-lgpl: honor // if distinct from /
15387         * modules/canonicalize (Files): Add double-slash-root.m4.
15388         * modules/canonicalize-lgpl (Files): Likewise.
15389         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
15390         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
15391         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
15392         fallback definition.
15393         (canonicalize_filename_mode): Use it to protect //.
15394         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
15395         (__realpath): Likewise.
15396         * tests/test-canonicalize.c (main): Test this.
15397         * tests/test-canonicalize-lgpl.c (main): Likewise.
15398         * modules/canonicalize-tests (Depends-on): Add same-inode.
15399         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
15400
15401         canonicalize-lgpl: fix glibc bug with trailing slash
15402         * m4/canonicalize-lgpl.m4: Move contents...
15403         * m4/canonicalize.m4: ...here.
15404         (gl_CANONICALIZE_LGPL): Factor realpath check...
15405         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
15406         glibc 2.3.5 bug, fixed 2005-04-27.
15407         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
15408         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
15409         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
15410         * modules/canonicalize-lgpl (Files): Manage file rename.
15411         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
15412         * modules/stdlib (Makefile.am): Substitute witness.
15413         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
15414         is needed.
15415         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
15416         replacement is required.
15417         * lib/canonicalize.c (canonicalize_file_name): Likewise.
15418         * doc/glibc-functions/canonicalize_file_name.texi
15419         (canonicalize_file_name): Document this.
15420         * doc/posix-functions/realpath.texi (realpath): Likewise.
15421
15422         canonicalize-lgpl: reject non-directory with trailing slash
15423         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
15424         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
15425         catches failures in glibc 2.3.5.
15426         * tests/test-canonicalize.c (main): Likewise.
15427
15428         canonicalize-lgpl: use native realpath if it works
15429         * lib/canonicalize-lgpl.c (realpath): Guard with
15430         FUNC_REALPATH_WORKS.
15431         * lib/stdlib.in.h (realpath): Make declaration optional based on
15432         HAVE_REALPATH.
15433         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
15434         native realpath works.
15435         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
15436         * modules/stdlib (Makefile.am): Substitute witness.
15437
15438         canonicalize, canonicalize-lgpl: use <stdlib.h>
15439         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
15440         (Include): Mention <stdlib.h>.
15441         (configure.ac): Mention functions we provide.
15442         * modules/canonicalize (configure.ac): Likewise.
15443         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
15444         realpath if canonicalize_file_name is missing.
15445         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
15446         * modules/stdlib (Makefile.am): Substitute witnesses.
15447         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
15448         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
15449         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
15450         * NEWS: Document this.
15451         * doc/glibc-functions/canonicalize_file_name.texi
15452         (canonicalize_file_name): Likewise.
15453         * doc/posix-functions/realpath.texi (realpath): Likewise.
15454         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
15455
15456         test-canonicalize: consolidate into single C program
15457         * tests/test-canonicalize.sh: Delete; move setup into...
15458         * tests/test-canonicalize.c (main): ...the program, making it
15459         easier to run in debugger.  Add some tests.
15460         * modules/canonicalize-tests (Files): Remove unused file.
15461         (Depends-on): Add progname.
15462         (configure.ac, Makefile.am): Simplify.
15463
15464         test-canonicalize-lgpl: consolidate into single C program
15465         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
15466         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
15467         easier to run in debugger.  Add some tests.
15468         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
15469         (configure.ac, Makefile.am): Simplify.
15470
15471         canonicalize: avoid resolvepath
15472         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
15473         unnecessary checks.
15474         * lib/canonicalize.c (includes): Simplify.
15475         (canonicalize_file_name): Drop resolvepath implementation.
15476         * modules/canonicalize (Depends-on): Drop filenamecat.
15477
15478         canonicalize: don't lose errno
15479         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
15480         over calls to free.
15481
15482         canonicalize: simplify errno handling
15483         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
15484         assignment.
15485
15486         canonicalize, canonicalize-lgpl: update module dependencies
15487         * modules/canonicalize (Depends-on): Add extensions, lstat,
15488         pathmax, stdlib.
15489         (Files): Drop pathmax.h.
15490         (configure.ac): Adjust macro name.
15491         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
15492         lstat, stdlib, sys_stat.
15493         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
15494         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
15495         extensions.
15496         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
15497         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
15498         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
15499         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
15500         declaration, if available.
15501         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
15502         we can rely on the readlink module.
15503         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
15504         (includes): Use <unistd.h> unconditionally.
15505
15506 2009-09-17  Eric Blake  <ebb9@byu.net>
15507
15508         maint: make Include sections of modules consistent
15509         * modules/alloca: Use only header name; no need to list #include.
15510         * modules/alloca-opt: Likewise.
15511         * modules/arpa_inet: Likewise.
15512         * modules/canon-host: Likewise.
15513         * modules/configmake: Likewise.
15514         * modules/dirent: Likewise.
15515         * modules/eealloc: Likewise.
15516         * modules/environ: Likewise.
15517         * modules/fchdir: Likewise.
15518         * modules/fcntl: Likewise.
15519         * modules/fcntl-h: Likewise.
15520         * modules/gethrxtime: Likewise.
15521         * modules/gettime: Likewise.
15522         * modules/ignore-value: Likewise.
15523         * modules/inet_ntop: Likewise.
15524         * modules/inet_pton: Likewise.
15525         * modules/inttypes: Likewise.
15526         * modules/isnand-nolibm: Likewise.
15527         * modules/isnanf-nolibm: Likewise.
15528         * modules/mbchar: Likewise.
15529         * modules/mbfile: Likewise.
15530         * modules/mbiter: Likewise.
15531         * modules/mbuiter: Likewise.
15532         * modules/netdb: Likewise.
15533         * modules/netinet_in: Likewise.
15534         * modules/nproc: Likewise.
15535         * modules/pagealign_alloc: Likewise.
15536         * modules/poll: Likewise.
15537         * modules/printf-frexp: Likewise.
15538         * modules/pthread: Likewise.
15539         * modules/putenv: Likewise.
15540         * modules/random_r: Likewise.
15541         * modules/relocatable-prog: Likewise.
15542         * modules/search: Likewise.
15543         * modules/select: Likewise.
15544         * modules/selinux-h: Likewise.
15545         * modules/settime: Likewise.
15546         * modules/signal: Likewise.
15547         * modules/size_max: Likewise.
15548         * modules/socklen: Likewise.
15549         * modules/ssize_t: Likewise.
15550         * modules/stdarg: Likewise.
15551         * modules/stdbool: Likewise.
15552         * modules/stddef: Likewise.
15553         * modules/stdint: Likewise.
15554         * modules/stdio: Likewise.
15555         * modules/stdlib: Likewise.
15556         * modules/string: Likewise.
15557         * modules/strings: Likewise.
15558         * modules/sys_file: Likewise.
15559         * modules/sys_ioctl: Likewise.
15560         * modules/sys_select: Likewise.
15561         * modules/sys_socket: Likewise.
15562         * modules/sys_stat: Likewise.
15563         * modules/sys_time: Likewise.
15564         * modules/sys_times: Likewise.
15565         * modules/sys_utsname: Likewise.
15566         * modules/sys_wait: Likewise.
15567         * modules/sysexits: Likewise.
15568         * modules/time: Likewise.
15569         * modules/times: Likewise.
15570         * modules/tmpfile: Likewise.
15571         * modules/trim: Likewise.
15572         * modules/unistd: Likewise.
15573         * modules/wchar: Likewise.
15574         * modules/wctype: Likewise.
15575
15576 2009-09-17  Bruno Haible  <bruno@clisp.org>
15577
15578         Make getdate.y compile on QNX and NetBSD 5 / i386.
15579         * m4/getdate.m4 (gl_GETDATE): Conditionally define
15580         TIME_T_FITS_IN_LONG_INT.
15581         * lib/getdate.y (long_time_t): New type.
15582         (relative_time): Change type of 'seconds' field to long_time_t.
15583         (get_date): Update types of local variables. Check against overflow
15584         during conversion from long_time_t to time_t.
15585         Reported by Matt Kraai <kraai@ftbfs.org>
15586         and Hasso Tepper <hasso@netbsd.org>.
15587
15588 2009-09-17  Bruno Haible  <bruno@clisp.org>
15589
15590         * modules/COPYING: Update copyright years.
15591         * modules/README: Likeiwse.
15592         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
15593         Reported by Ian Beckwith <ianb@erislabs.net>.
15594
15595 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
15596
15597         * users.txt: Update references for gnuit package.
15598
15599 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
15600
15601         * m4/getdelim.m4: Fix typo in copyright line.
15602
15603 2009-09-17  Bruno Haible  <bruno@clisp.org>
15604
15605         * lib/atoll.c: Use the standard header with GPL copyright.
15606         * lib/argz.in.h: Likewise.
15607         * lib/glob.c: Likewise.
15608         * lib/glob-libc.h: Likewise.
15609         * lib/random_r.c: Likewise.
15610         * lib/siglist.h: Likewise.
15611         * lib/strsignal.c: Likewise.
15612         Reported by Ian Beckwith <ianb@erislabs.net>.
15613
15614 2009-09-17  Eric Blake  <ebb9@byu.net>
15615
15616         rmdir: ensure correct dependency order
15617         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
15618
15619 2009-09-17  Bruno Haible  <bruno@clisp.org>
15620
15621         Disable assertion that fails on NetBSD 5 / i386.
15622         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
15623         Reported by Sam Steingold <sds@gnu.org>
15624         and Hasso Tepper <hasso@netbsd.org>.
15625
15626 2009-09-16  Eric Blake  <ebb9@byu.net>
15627
15628         unlinkdir: port to mingw
15629         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
15630         on which no one can unlink a directory.
15631
15632         stdlib: sort witness names
15633         * modules/stdlib (Makefile.am): Sort replacements.
15634         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
15635         * lib/stdlib.in.h: Likewise.
15636
15637         parse-duration-tests: avoid link failure
15638         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
15639         LIBINTL.
15640         Reported by Tom G. Christensen.
15641
15642         openat-tests: ensure unlinkat behaves like rmdir
15643         * tests/test-rmdir.c (main): Factor guts...
15644         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
15645         * modules/rmdir-tests (Files): Ship new file.
15646         * modules/openat-tests: New test.
15647         * tests/test-unlinkat.c: Likewise.
15648
15649         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
15650         * modules/rmdir-errno (Status, Notice): Now obsolete.
15651
15652         rmdir: work around cygwin 1.5.x and mingw bugs
15653         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
15654         * lib/rmdir.c (rmdir): Work around it.
15655         * modules/rmdir (Status, Notice): No longer obsolete.
15656         (Files): Add dos.m4.
15657         (Depends-on): Add unistd.
15658         (configure.ac): Set witnesses.
15659         (License): Relax to LGPLv2+.
15660         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
15661         * modules/unistd (Makefile.am): Substitute witnesses.
15662         * lib/unistd.in.h (rmdir): Declare replacement.
15663         * doc/posix-functions/rmdir.texi (rmdir): Document this.
15664         * modules/rmdir-tests: New tests.
15665         * tests/test-rmdir.c: Likewise.
15666
15667 2009-09-15  Eric Blake  <ebb9@byu.net>
15668
15669         fchdir: improve use of replacement functions
15670         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
15671         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
15672         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
15673         REPLACE_CLOSEDIR.
15674         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
15675         * modules/sys_stat (Makefile.am): Substitute correct witness.
15676         * modules/dirent (Makefile.am): Likewise.
15677         * modules/unistd (Makefile.am): Likewise.
15678         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
15679         * lib/unistd.in.h (dup): Likewise.
15680         * lib/sys_stat.in.h (fstat): Likewise.
15681
15682         maint: ignore gnulib-tool temp files
15683         * .gitignore: Ignore files created during gnulib-tool --test.
15684
15685 2009-09-13  Jim Meyering  <meyering@redhat.com>
15686
15687         posixtm: don't reject a time that specify "60" as the number of seconds
15688         * lib/posixtm.c (posixtime): The code to reject invalid dates
15689         would also reject a time specified with the .60 suffix.
15690         But POSIX allows that, in order to accommodate leap seconds.
15691         So don't reject it.
15692         (main): Adjust tests accordingly.
15693         * modules/posixtm (Depends-on): Add stpcpy.
15694
15695 2009-09-11  Jim Meyering  <meyering@redhat.com>
15696
15697         announce-gen: include [$release_type] in emitted Subject:
15698         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
15699         e.g., [stable] in the emitted Subject: line.
15700
15701 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15702
15703         Remove obsolete macros from several modules.
15704         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
15705         obsolete Autoconf macros with their modern counterparts.
15706         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
15707         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
15708         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
15709         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
15710         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
15711         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
15712         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
15713         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
15714         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
15715         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
15716         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15717         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15718         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
15719         * m4/sockets.m4 (gl_SOCKETS): Likewise.
15720         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
15721         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
15722         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
15723         * m4/time_r.m4 (gl_TIME_R): Likewise.
15724         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
15725         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
15726         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
15727
15728         Fix copyright header in build-aux scripts.
15729         * build-aux/git-version-gen: Fix copyright header to match GPLv3
15730         recommendation.
15731         * build-aux/ncftpput-ftp: Likewise.
15732         * build-aux/update-copyright: Likewise.
15733
15734 2009-09-09  Eric Blake  <ebb9@byu.net>
15735
15736         test-link: allow Linux choice of errno
15737         * tests/test-link.c (main): Relax test for alternate error.
15738
15739         strndup: fix improper m4 caching
15740         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
15741         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
15742         (gl_PREREQ_STRNDUP): Delete.
15743         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
15744         * modules/string (Makefile.am): Substitute it.
15745         * lib/string.in.h (strndup): Modernize prototype.
15746
15747         getcwd: port to mingw
15748         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
15749         different from the POSIX assumptions made throughout the getcwd
15750         module; fortunately, the mingw getcwd does not need replacement.
15751         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
15752         * modules/getcwd-tests: New test.
15753         * tests/test-getcwd.c: Likewise.
15754
15755         link: fix platform bugs
15756         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
15757         * lib/link.c (link): Work around them.  Fix related mingw bug.
15758         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
15759         * modules/unistd (Makefile.am): Substitute it.
15760         * lib/unistd.in.h (link): Declare replacement.
15761         * doc/posix-functions/link.texi (link): Document this.
15762         * modules/link (Depends-on): Add strdup-posix, sys_stat.
15763
15764         test-link: consolidate into single C program, test more cases
15765         * tests/test-link.sh: Delete.
15766         * tests/test-link.c: Test more error conditions.  Exposes bugs on
15767         at least Cygwin and Solaris.
15768         * modules/link-tests (Files): Remove unused file.
15769         (Depends-on): Add errno, sys_stat.
15770         (Makefile.am): Simplify.
15771
15772 2009-09-08  Bruno Haible  <bruno@clisp.org>
15773
15774         Work around towlower, towupper bug on mingw.
15775         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
15776         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
15777         * doc/posix-functions/towlower.texi: Mention the mingw bug.
15778         * doc/posix-functions/towupper.texi: Likewise.
15779         Reported by Eric Blake.
15780
15781 2009-09-08  Jim Meyering  <meyering@redhat.com>
15782
15783         build: don't try to run autoheader if we don't use it
15784         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
15785         is not used in configure.ac.
15786
15787 2009-09-08  Eric Blake  <ebb9@byu.net>
15788
15789         euidaccess: fix compilation error
15790         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
15791
15792         rawmemchr: relax license
15793         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
15794         okay.
15795         Reported by Jim Meyering.
15796
15797         mkfifoat: new module
15798         * modules/mkfifoat: New file.
15799         * lib/mkfifoat.c: Likewise.
15800         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
15801         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
15802         * modules/sys_stat (Makefile.am): Use them.
15803         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
15804         * MODULES.html.sh (File system functions): Mention module.
15805         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
15806         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
15807         * modules/mkfifoat-tests: New test.
15808         * tests/test-mkfifoat.c: Likewise.
15809
15810         strchrnul: relax license
15811         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
15812         okay.
15813         Reported by Jim Meyering.
15814
15815 2009-09-08  Eric Blake  <ebb9@byu.net>
15816
15817         fstatat: fix compilation on Solaris
15818         * lib/fstatat.c (includes): Add fcntl.h.
15819         Reported by Pádraig Brady.
15820
15821 2009-09-07  Eric Blake  <ebb9@byu.net>
15822
15823         rename: modernize replacement
15824         * modules/rename (Depends-on): Add stdio.
15825         (configure.ac): Declare witness.
15826         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
15827         stdio take care of replacement.
15828         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
15829         * modules/stdio (Makefile.am): Substitute them.
15830         * lib/stdio.in.h (rename): Declare replacement.
15831         * lib/rename.c (includes): Allow cross-compilation to non-windows
15832         machines.
15833         * doc/posix-functions/rename.texi (rename): Improve
15834         documentation.
15835
15836         stdio: sort witness names
15837         * modules/stdio (Makefile.am): Sort replacements.
15838         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
15839         * lib/stdio.in.h: Likewise.
15840
15841         getcwd: minor cleanups
15842         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
15843         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
15844
15845         openat: provide more convenience names
15846         * modules/faccessat (configure.ac): Add C witness.
15847         * lib/unistd.in.h (readlinkat): Fix typo.
15848         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
15849         convenience wrappers.
15850         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
15851         wrappers in syntax checks.
15852
15853 2009-09-06  Eric Blake  <ebb9@byu.net>
15854
15855         doc: fix comments in recent patches
15856         * lib/faccessat.c: Mention correct function.
15857         * lib/fchmodat.c: Likewise.
15858         * lib/fchownat.c: Likewise.
15859         * lib/symlinkat.c: Likewise.
15860         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
15861         constants.
15862
15863         faccessat, symlinkat: continue cleanup of previous patch
15864         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
15865         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
15866         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
15867         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
15868         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
15869         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
15870         set.
15871
15872 2009-09-06  Bruno Haible  <bruno@clisp.org>
15873
15874         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
15875         (fstatat): Declare if GNULIB_FSTATAT is set.
15876         (mkdirat): Declare if GNULIB_MKDIRAT is set.
15877         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
15878         (unlinkat): Declare if GNULIB_UNLINKAT is set.
15879         * modules/fcntl-h (Files): Remove m4/openat.m4.
15880         * modules/sys_stat (Files): Remove m4/openat.m4.
15881         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
15882         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
15883         * modules/unistd (Files): Remove m4/openat.m4.
15884         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
15885         GNULIB_OPENAT.
15886         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
15887         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
15888         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
15889         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
15890         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
15891         gl_OPENAT_DEFAULTS.
15892         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
15893         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
15894         Don't require gl_OPENAT_DEFAULTS.
15895         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
15896         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
15897         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
15898         (gl_OPENAT_DEFAULTS): Remove macro.
15899
15900 2009-09-06  Bruno Haible  <bruno@clisp.org>
15901
15902         * modules/openat (configure.ac): Remove unneeded witness.
15903
15904 2009-09-06  Bruno Haible  <bruno@clisp.org>
15905
15906         Set errno to ENOSYS when a function is entirely unsupported.
15907         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
15908         EOPNOTSUPP.
15909         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
15910         * modules/chown (Depends-on): Remove errno.
15911
15912 2009-09-06  Bruno Haible  <bruno@clisp.org>
15913
15914         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
15915
15916 2009-09-06  Bruno Haible  <bruno@clisp.org>
15917
15918         * lib/sys_stat.in.h: Fix preprocessor command indentation.
15919
15920 2009-09-06  Ben Pfaff  <blp@gnu.org>
15921             Bruno Haible  <bruno@clisp.org>
15922
15923         Work around a glibc bug in strtok_r.
15924         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
15925         Undefine if UNDEFINE_STRTOK_R is set.
15926         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
15927         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15928         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
15929         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
15930         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
15931         UNDEFINE_STRTOK_R.
15932         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
15933
15934 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
15935
15936         exclude: minor fix
15937         * lib/exclude.c: Include wctype.h
15938
15939 2009-09-06  Akim Demaille  <demaille@gostai.com>
15940
15941         bootstrap: improve error message
15942         * build-aux/bootstrap (find_tool): Upon failure, report the list
15943         of candidates.
15944         Honor the initial value of the envvar.
15945
15946 2009-09-05  Eric Blake  <ebb9@byu.net>
15947
15948         symlinkat: new module
15949         * modules/symlinkat: New file.
15950         * lib/symlinkat.c: Likewise.
15951         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
15952         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
15953         * modules/unistd (Makefile.am): Use them.
15954         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
15955         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
15956         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
15957         * MODULES.html.sh (File system functions): Mention module.
15958         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
15959         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
15960         * modules/symlinkat-tests: New test.
15961         * tests/test-symlinkat.c: Likewise.
15962
15963         test-openat-safer: add more checks
15964         * tests/test-openat-safer.c (main): Check more code paths.
15965
15966 2009-09-05  Jim Meyering  <meyering@redhat.com>
15967
15968         syntax-check: detect unnecessary inclusion of openat.h
15969         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
15970
15971 2009-09-05  Bruno Haible  <bruno@clisp.org>
15972
15973         Support towlower, towupper.
15974         * doc/posix-functions/towlower.texi: Mention module wctype.
15975         * doc/posix-functions/towupper.texi: Likewise.
15976         * lib/wctype.in.h (towlower, towupper): New functions.
15977         * tests/test-wctype.c: Include stdio.h, stdlib.h.
15978         (ASSERT): New macro.
15979         (e): New variable.
15980         (main): Test also towlower, towupper. Test WEOF argument.
15981         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15982
15983 2009-09-05  Bruno Haible  <bruno@clisp.org>
15984
15985         Fix conversion behaviour when the input is invalid.
15986         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
15987         mark occurring in first pass of indirect conversion.
15988         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
15989         input.
15990         Found by clang's static analyzer.
15991
15992 2009-09-05  Bruno Haible  <bruno@clisp.org>
15993
15994         * tests/test-striconveh.c (main): Test indirect conversion on platforms
15995         where direct conversion is possible.
15996
15997 2009-09-04  Eric Blake  <ebb9@byu.net>
15998
15999         openat: fail with ENOENT on empty name
16000         * lib/openat-proc.c (openat_proc_name): Special-case the empty
16001         buffer.
16002
16003         link-follow: fix logic bug in prior patch
16004         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
16005         reversed sense of yes and no in prior patch.  Avoid confusing
16006         compilation failure with desired semantics.
16007
16008         link-follow: accomodate mingw and cross-compilation
16009         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
16010         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
16011         cross-compilation results to -1, to make linkat easier to
16012         implement when cross-compiling.  Trivially support mingw.
16013         * modules/link-follow (configure.ac): Call new name.
16014         * NEWS: Mention this.
16015
16016 2009-09-03  Eric Blake  <ebb9@byu.net>
16017
16018         faccessat: compile replacement
16019         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
16020         needed.
16021
16022         fts: fix compilation error
16023         * lib/fts.c (includes): Re-add "openat.h", for
16024         openat_needs_fchdir.
16025
16026         faccessat: new module
16027         * modules/faccessat: New file.
16028         * lib/faccessat.c: Likewise.
16029         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
16030         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
16031         * modules/unistd (Makefile.am): Use it.
16032         * lib/unistd.in.h (faccessat): Declare it.
16033         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
16034         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
16035         * MODULES.html.sh (File system functions): Mention it.
16036         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
16037         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
16038
16039         euidaccess: prefer POSIX over non-standard implementation
16040         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
16041         * lib/euidaccess.c (euidaccess): Use it if available.
16042
16043         openat: make template easier to use
16044         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
16045         AT_FUNC_F2 to be undefined.
16046         (VALIDATE_FLAG): New macro; use it to reject bad flags.
16047         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
16048         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
16049         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
16050         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
16051         Likewise.
16052         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
16053         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
16054         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
16055         Likewise.
16056
16057         openat: declare in POSIX headers
16058         * NEWS: Mention this.
16059         * modules/openat (configure.ac): Declare witnesses.
16060         (Depends-on): Add fcntl-h, sys_stat, unistd.
16061         (Include): Mention correct headers.
16062         * modules/fcntl-h (Depends-on): Add link-warning.
16063         (Files): Add openat.m4.
16064         (Makefile.am): Substitute witnesses.
16065         * modules/sys_stat (Files, Makefile.am): Likewise.
16066         * modules/unistd (Files, Makefile.am): Likewise.
16067         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
16068         (gl_OPENAT_DEFAULTS): New macro.
16069         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
16070         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
16071         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
16072         (SYS_STAT_H): Remove unused variable.
16073         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
16074         * lib/fcntl--.h (includes): Remove unneeded header.
16075         * lib/openat-safer.c (includes): Likewise.
16076         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
16077         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
16078         appropriate headers.
16079         (__OPENAT_PREFIX): Delete.
16080         * lib/fcntl.in.h (openat): Provide declaration.
16081         (AT_FDCWD): Fix Solaris bug.
16082         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
16083         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
16084         * lib/fchmodat.c (includes):  Adjust to find declaration.
16085         * lib/fchownat.c (includes): Likewise.
16086         * lib/mkdirat.c (includes): Likewise.
16087         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
16088         still visible.
16089
16090 2009-09-02  Eric Blake  <ebb9@byu.net>
16091
16092         errno: use consistently
16093         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
16094         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
16095         * lib/canonicalize.c (ELOOP): Likewise.
16096         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
16097         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
16098         * lib/lchown.c (EOPNOTSUPP): Likewise.
16099         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
16100         * lib/savewd.c (ESTALE): Likewise.
16101         * lib/settime.c (ENOSYS): Likewise.
16102         * lib/utimens.c (ENOSYS): Likewise.
16103         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
16104         * lib/chdir-safer.c (ELOOP): Likewise.
16105         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
16106         * modules/c-stack (Depends-on): Add errno.
16107         * modules/canonicalize (Depends-on): Likewise.
16108         * modules/chdir-safer (Depends-on): Likewise.
16109         * modules/fdopendir (Depends-on): Likewise.
16110         * modules/inet_ntop (Depends-on): Likewise.
16111         * modules/inet_pton (Depends-on): Likewise.
16112         * modules/lchown (Depends-on): Likewise.
16113         * modules/openat (Depends-on): Likewise.
16114         * modules/savewd (Depends-on): Likewise.
16115         * modules/settime (Depends-on): Likewise.
16116         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
16117
16118         fts: avoid leaking fds
16119         * modules/fts (Depends-on): Add cloexec.
16120         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
16121         flag.
16122
16123         fts: make directory fds more robust
16124         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
16125         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
16126
16127         backupfile, chdir-long, fts, savedir: make safer
16128         * lib/backupfile.c (includes): Use "dirent--.h", since
16129         numbered_backup can write to stderr during readdir.
16130         * lib/savedir.c (includes): Likewise.
16131         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
16132         emulation can write to stderr on failure.
16133         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
16134         * lib/getcwd.c: Document why opendir_safer is unused.
16135         * lib/glob.c: Likewise.
16136         * lib/scandir.c: Likewise.
16137         * lib/openat-proc.c: Likewise, for open_safer.
16138         * modules/backupfile (Depends-on): Add dirent-safer.
16139         * modules/savedir (Depends-on): Likewise.
16140         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
16141         * modules/chdir-long (Depends-on): Add openat-safer.
16142
16143         openat-safer: new module
16144         * modules/openat-safer: New file.
16145         * lib/openat-safer.c: Likewise.
16146         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
16147         * lib/fcntl-safer.h (openat_safer): Declare.
16148         * lib/fcntl--.h (openat): Override.
16149         * MODULES.html.sh (File descriptor based I/O): Mention it.
16150         * lib/openat.h: Add double-inclusion guards.
16151         * lib/openat.c (includes): Only include "fcntl-safer.h", not
16152         "fcntl--.h", so we can implement openat.
16153         * modules/openat-safer-tests: New test.
16154         * tests/test-openat-safer.c: New file.
16155
16156         dirent-safer: new module
16157         * modules/dirent-safer: New file.
16158         * lib/dirent--.h: Likewise.
16159         * lib/dirent-safer.h: Likewise.
16160         * lib/opendir-safer.c: Likewise.
16161         * m4/dirent-safer.m4: Likewise.
16162         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
16163         * modules/dirent-safer-tests: New test.
16164         * tests/test-dirent-safer.c: New file.
16165         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
16166
16167         fdopendir: optimize on mingw
16168         * lib/unistd.in.h (_gl_directory_name): New prototype.
16169         * lib/fchdir.c (_gl_directory_name): Implement it.
16170         (fchdir): Use it to simplify implementation.
16171         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
16172         fchdir, when available, to avoid calling [f]chdir().
16173
16174         fdopendir: split into its own module
16175         * lib/openat.c (fdopendir): Move...
16176         * lib/fdopendir.c: ...into new file.
16177         * modules/fdopendir: New module.
16178         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
16179         * modules/openat (Depends-on): Add fdopendir.
16180         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
16181         fdopendir here.
16182         * modules/savedir (Depends-on): Only need fdopendir, not full
16183         openat.
16184         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
16185         * lib/openat.h (fdopendir): Drop prototype.
16186         * lib/dirent.in.h (fdopendir): Provide prototype.
16187         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
16188         * modules/dirent (Makefile.am): Substitute them.
16189         * MODULES.html.sh (File system functions): Mention it.
16190         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
16191         * modules/fdopendir-tests: New file.
16192         * tests/test-fdopendir.c: Likewise.
16193
16194         fchdir: use more consistent macro convention
16195         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
16196         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
16197         REPLACE_FCHDIR, rather than relying on config.h macros.
16198         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
16199         inside a single make-time REPLACE_FCHDIR block, rather than using
16200         the config.h FCHDIR_REPLACEMENT.
16201         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
16202         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
16203         Manage fstat replacement.
16204         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
16205         REPLACE_FCHDIR.
16206         * modules/sys_stat (Files): Add m4/unistd_h.m4.
16207         (Makefile.am): Substitute REPLACE_FCHDIR.
16208         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
16209         FCHDIR_REPLACEMENT.
16210         * lib/dup-safer.c (dup_safer): Likewise.
16211         * lib/dup2.c (rpl_dup2): Likewise.
16212         * lib/dup3.c (rpl_dup3): Likewise.
16213         * lib/open.c (rpl_open): Likewise.
16214
16215         fchdir: simplify error handling, and support dup3
16216         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
16217         stdbool, malloc-posix, realloc-posix.
16218         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
16219         (ensure_dirs_slot): Return false on allocation failure.
16220         (rpl_dup2): Delete.
16221         (_gl_register_dup): New function.
16222         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
16223         (_gl_register_fd): Close fd on allocation failure.
16224         * lib/fcntl.in.h (_gl_register_fd): Update signature.
16225         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
16226         prototype.
16227         (rpl_dup2_fchdir): Delete prototype.
16228         * lib/open.c (open): Update caller.
16229         * lib/dup2.c (dup2): Track fchdir metadata.
16230         * lib/dup3.c (dup3): Likewise.
16231         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
16232         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
16233
16234 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16235
16236         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
16237         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
16238         don't pass arguments to AC_OUTPUT.
16239
16240 2009-09-02  Bruno Haible  <bruno@clisp.org>
16241
16242         * modules/mkdtemp (License): Relicense under LGPLv2+.
16243         Reported by Paolo Bonzini.
16244
16245 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16246
16247         Replace uses of obsolete autoconf macros in Jim's modules.
16248         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
16249         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
16250         can evoke a warning from autoconf when run with -Wobsolete
16251         enabled.  They were declared obsolete for good reasons (see
16252         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
16253         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
16254         should not continue using the deprecated macros.
16255         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
16256         obsolete Autoconf macros with modern counterparts.
16257         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
16258         * m4/dos.m4 (gl_AC_DOS): Likewise.
16259         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
16260         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
16261         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
16262         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
16263         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
16264         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
16265         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
16266         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
16267         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
16268         Likewise.
16269         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
16270         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
16271         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
16272         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
16273         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
16274         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
16275
16276 2009-09-01  Eric Blake  <ebb9@byu.net>
16277
16278         fchdir: fix off-by-one bug in previous patch
16279         * lib/fchdir.c (rpl_fstat): Use correct bounds.
16280         (_gl_unregister_fd): Delete useless if.
16281
16282 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
16283
16284         maint.mk: sort the list of syntax-check rules
16285         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
16286         easier to get a sense of progress when the rules are run sequentially
16287         and take a long time.
16288
16289 2009-09-01  Simon Josefsson  <simon@josefsson.org>
16290
16291         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
16292         * modules/netinet_in: Likewise.
16293         * modules/sys_file: Likewise.
16294         * modules/sys_ioctl: Likewise.
16295         * modules/sys_select: Likewise.
16296         * modules/sys_socket: Likewise.
16297         * modules/sys_stat: Likewise.
16298         * modules/sys_time: Likewise.
16299         * modules/sys_times: Likewise.
16300         * modules/sys_utsname: Likewise.
16301         * modules/sys_wait: Likewise.
16302
16303 2009-09-01  Jim Meyering  <meyering@redhat.com>
16304
16305         fts: help ensure that return values are not ignored
16306         * lib/fts_.h (__GNUC_PREREQ): Define.
16307         (__attribute_warn_unused_result__): Define.
16308         (fts_children, fts_close, fts_open, fts_read): Declare with
16309         __attribute_warn_unused_result__.
16310
16311         fts: fts_close now fails also when closing a dir file descriptor fails
16312         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
16313         and propagate to caller, along with errno.
16314
16315         announce-gen: correct formatting in --help output
16316         * build-aux/announce-gen (usage): Move the one-line description in
16317         --help output "up", to where it belongs, just after Usage:.
16318
16319 2009-08-31  Eric Blake  <ebb9@byu.net>
16320
16321         fchdir: port to mingw
16322         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
16323         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
16324         opened, then use a substitute.
16325         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
16326         replacement.
16327         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
16328         (_gl_register_fd): No need to check stat if open already filters
16329         all directories.
16330         (fchdir): Fix error condition to match POSIX.
16331         * modules/fchdir (Depends-on): Add sys_stat.
16332         * doc/posix-functions/open.texi (open): Document the limitation.
16333         * modules/fchdir-tests: New file.
16334         * tests/test-fchdir.c: Likewise.
16335
16336         canonicalize: allow cross-testing from cygwin to mingw
16337         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
16338         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
16339         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
16340         Likewise.
16341         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
16342         target does not support symlinks.
16343         * tests/test-canonicalize-lgpl.sh: Likewise.
16344
16345         chown: avoid compilation warning on mingw
16346         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
16347         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
16348         mingw.
16349         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
16350         * modules/chown (Depends-on): Add errno.
16351
16352 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
16353
16354         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
16355         command.
16356
16357 2009-08-31  Jim Meyering  <meyering@redhat.com>
16358
16359         canonicalize: remove useless initialization
16360         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
16361         initialization of local, "end".
16362
16363 2009-08-30  Bruno Haible  <bruno@clisp.org>
16364
16365         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
16366         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
16367         ENOSYS.
16368
16369 2009-08-30  Bruno Haible  <bruno@clisp.org>
16370
16371         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
16372         /usr/xpg4/bin/tr when it exists.
16373         * tests/test-pipe-filter-gi1.sh: Likewise.
16374
16375 2009-08-30  Bruno Haible  <bruno@clisp.org>
16376
16377         Work around deficient /usr/bin/id program on Solaris.
16378         * tests/test-file-has-acl.sh (ID): New variable.
16379         * tests/test-set-mode-acl.sh (ID): Likewise.
16380         * tests/test-copy-acl.sh (ID): Likewise.
16381         * tests/test-copy-file.sh (ID): Likewise.
16382
16383 2009-08-30  Bruno Haible  <bruno@clisp.org>
16384
16385         New module 'xstriconveh'.
16386         * lib/xstriconveh.h: New file.
16387         * lib/xstriconveh.c: New file.
16388         * modules/xstriconveh: New file.
16389
16390 2009-08-30  Bruno Haible  <bruno@clisp.org>
16391
16392         Make it easier to use mem_cd_iconveh.
16393         * lib/striconveh.h (iconveh_t): New type.
16394         (iconveh_open, iconveh_close): New declarations.
16395         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
16396         with a single 'const iconveh_t *' argument.
16397         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
16398         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
16399         with a single 'const iconveh_t *' argument.
16400         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
16401         * tests/test-striconveh.c (main): Update.
16402         * NEWS: Mention the change.
16403
16404 2009-08-30  Bruno Haible  <bruno@clisp.org>
16405
16406         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
16407         problem.
16408
16409 2009-08-30  Bruno Haible  <bruno@clisp.org>
16410
16411         Work around iconv_open problem on Solaris.
16412         * lib/iconv_open-solaris.gperf: New file.
16413         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
16414         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
16415         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
16416         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
16417         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
16418         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
16419
16420 2009-08-29  Jim Meyering  <meyering@redhat.com>
16421
16422         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
16423         * top/maint.mk (cvs-check): Remove target; it was just an alias
16424         to the better-named vc-diff-check.
16425         (maintainer-distcheck): Remove rule.  It was used only from
16426         the (alpha/beta/major) target, and all of its commands but one
16427         were coreutils-specific.
16428         (vc-dist): Remove rule.
16429         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
16430         Run vc-diff-check, not vc-dist.
16431         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
16432
16433 2009-08-27  Bruno Haible  <bruno@clisp.org>
16434
16435         * tests/test-bitrotate.c (main): Remove test that uses a shift count
16436         of 0.
16437
16438 2009-08-27  Bruno Haible  <bruno@clisp.org>
16439
16440         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
16441         compilers.
16442         * doc/func.texi: Document the SunPRO C bug.
16443
16444 2009-08-27  Bruno Haible  <bruno@clisp.org>
16445
16446         Fix link error on Solaris.
16447         * tests/test-parse-duration.c (xstrdup): Remove function.
16448
16449 2009-08-26  Pádraig Brady  <P@draigbrady.com>
16450
16451         ignore-value: handle pointer types, too
16452         * lib/ignore-value.h (__attribute__): Remove definition.
16453         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
16454         of a more concise and more-often effective "(void) i" statement.
16455         (ignore_ptr): New function to suppress warnings from functions that
16456         return pointers, and to make it explicit that one function doesn't
16457         handle all cases.
16458
16459 2009-08-25  Bruno Haible  <bruno@clisp.org>
16460
16461         dup2: work around a Linux bug.
16462         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
16463         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
16464         * doc/posix-functions/dup2.texi: Mention the Linux bug.
16465         Reported by Simon Josefsson.
16466
16467 2009-08-25  Jim Meyering  <meyering@redhat.com>
16468
16469         libguestfs uses gnulib
16470         * users.txt: Add libguestfs.
16471
16472 2009-08-24  Eric Blake  <ebb9@byu.net>
16473
16474         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
16475         * lib/pipe2.c (includes): Add binary-io.h.
16476         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
16477
16478 2009-08-24  Bruno Haible  <bruno@clisp.org>
16479
16480         Tolerate declared but missing accept4 syscall.
16481         * lib/accept4.c (accept4): Invoke original accept4 function first, if
16482         available.
16483         * lib/sys_socket.in.h (accept4): If the function is already present,
16484         override it.
16485         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
16486         * modules/accept4 (Makefile.am): Compile accept4.c always.
16487         Reported by Paolo Bonzini and Eric Blake.
16488
16489 2009-08-23  Bruno Haible  <bruno@clisp.org>
16490
16491         New module 'accept4'.
16492         * lib/sys_socket.in.h (accept4): New declaration.
16493         * lib/accept4.c: New file.
16494         * m4/accept4.m4: New file.
16495         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
16496         GNULIB_ACCEPT4, HAVE_ACCEPT4.
16497         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
16498         HAVE_ACCEPT4.
16499         * modules/accept4: New file.
16500         * doc/glibc-functions/accept4.texi: Mention the new module.
16501
16502 2009-08-24  Jim Meyering  <meyering@redhat.com>
16503
16504         progname: also set global program_invocation_name, when possible
16505         Before this change, a libtool-enabled program that calls glibc's
16506         error function would report the program name as
16507         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
16508         * modules/progname (configure.ac): Check for a declaration of
16509         program_invocation_name.
16510         * lib/progname.c:  Include <errno.h>.
16511         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
16512         Set program_invocation_name.
16513
16514 2009-08-23  Bruno Haible  <bruno@clisp.org>
16515
16516         * lib/dup3.c: Include <string.h>.
16517
16518 2009-08-23  Bruno Haible  <bruno@clisp.org>
16519
16520         * lib/dup3.c (dup3): Test only once whether the system actually exists.
16521         * lib/pipe2.c (pipe2): Likewise.
16522         Suggested by Eric Blake.
16523
16524 2009-08-23  Bruno Haible  <bruno@clisp.org>
16525
16526         Tolerate declared but missing dup3 syscall.
16527         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
16528         * lib/unistd.in.h (dup3): If the function is already present,
16529         override it.
16530         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
16531         * modules/dup3 (Makefile.am): Compile dup3.c always.
16532         Reported by Paolo Bonzini.
16533
16534 2009-08-23  Bruno Haible  <bruno@clisp.org>
16535
16536         Tolerate declared but missing pipe2 syscall.
16537         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
16538         available.
16539         * lib/unistd.in.h (pipe2): If the function is already present,
16540         override it.
16541         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
16542         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
16543         Reported by Paolo Bonzini.
16544
16545 2009-08-23  Bruno Haible  <bruno@clisp.org>
16546
16547         * lib/pipe2.c (pipe2): Move #ifs inside function.
16548
16549 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
16550
16551         quotearg: document limitations of quote_these_too
16552         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
16553         those limitations are created.
16554         * lib/quotearg.h (set_char_quoting): Document that digits and
16555         letters that are special after backslash are not permitted.
16556         (quotearg_char): Cross-reference set_char_quoting documentation.
16557
16558 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
16559
16560         quotearg: implement custom_quoting_style
16561         * lib/quotearg.c: (struct quoting_options): Add left_quote and
16562         right_quote fields.
16563         (set_custom_quoting): New public function.
16564         (quotearg_buffer_restyled): Add left_quote and right_quote
16565         arguments, handle them very much like locale quoting, and update
16566         all uses.
16567         (quotearg_n_custom): New public function.
16568         (quotearg_n_custom_mem): New public function.
16569         (quotearg_custom): New public function.
16570         (quotearg_custom_mem): New public function.
16571         * lib/quotearg.h: Prototype and document new public functions.
16572         (enum quoting_style): For escape_quoting_style and
16573         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
16574         ignored even though they're otherwise like c_quoting_style.
16575         Add custom_quoting_style member and document with comparison to
16576         clocale_quoting_style.
16577         * tests/test-quotearg.c (custom_quotes): New array.
16578         (custom_results): New array.
16579         (main): Extend to test custom quoting.
16580
16581 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
16582
16583         quotearg: fix right quote escaping when it's in quote_these_too
16584         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
16585         quote, be sure to prepend only one backslash.
16586         * tests/test-quotearg.c (use_quote_double_quotes): New function.
16587         (main): Test it.
16588
16589 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
16590
16591         quotearg-tests: test escaping of embedded locale quotes
16592         * tests/test-quotearg.c (struct result_strings): Add member for
16593         new input.
16594         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
16595         (inputs): Add new input.
16596         (results_g): Add expected results.
16597         (flag_results): Likewise.
16598         (locale_results): Likewise.
16599         (compare_strings): Check those.
16600
16601 2009-08-23  Bruno Haible  <bruno@clisp.org>
16602
16603         Tests for module 'dup3'.
16604         * modules/dup3-tests: New file.
16605         * tests/test-dup3.c: New file.
16606
16607         New module 'dup3'.
16608         * lib/unistd.in.h (dup3): New declaration.
16609         * lib/dup3.c: New file.
16610         * m4/dup3.m4: New file.
16611         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
16612         HAVE_DUP3.
16613         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
16614         * modules/dup3: New file.
16615         * doc/glibc-functions/dup3.texi: Mention the new module.
16616
16617 2009-08-23  Bruno Haible  <bruno@clisp.org>
16618
16619         Tweak the dup2 test.
16620         * tests/test-dup2.c (main): Create the test file empty. Verify that an
16621         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
16622         the test file is still empty. Fix argument order of lseek.
16623
16624 2009-08-23  Bruno Haible  <bruno@clisp.org>
16625
16626         Avoid test link errors when the modules getopt-gnu, gettext are used.
16627         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
16628         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16629
16630 2009-08-23  Bruno Haible  <bruno@clisp.org>
16631
16632         Fix getdtablesize() on mingw.
16633         * lib/getdtablesize.c (getdtablesize): Implement differently.
16634         * lib/unistd.in.h (getdtablesize): Improve comment.
16635
16636 2009-08-23  Bruno Haible  <bruno@clisp.org>
16637
16638         New module 'mkostemp'.
16639         Based on Ulrich Drepper's 2007-08-10 change in glibc.
16640         * lib/stdlib.in.h (mksotemp): New declaration.
16641         * lib/mkostemp.c: New file, from glibc with modifications.
16642         * lib/tempname.h (GT_FILE): Remove outdated comment.
16643         (gen_tempname): Add flags argument.
16644         * lib/tempname.c (__GT_BIGFILE): Remove macro.
16645         (__GT_FILE): Map to 1.
16646         (small_open, large_open): Remove macros.
16647         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
16648         * lib/mkstemp.c (mkstemp): Update.
16649         * lib/mkdtemp.c (mkdtemp): Likewise.
16650         * m4/mkostemp.m4: New file.
16651         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
16652         HAVE_MKOSTEMP.
16653         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
16654         HAVE_MKOSTEMP.
16655         * modules/mkostemp: New file, based on modules/mkstemp.
16656         * doc/glibc-functions/mkostemp.texi: Mention the new module.
16657         * NEWS: Mention the change.
16658
16659 2009-08-23  Bruno Haible  <bruno@clisp.org>
16660
16661         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
16662         Reported by Eric Blake.
16663
16664 2009-08-23  Bruno Haible  <bruno@clisp.org>
16665
16666         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
16667         Reported by Eric Blake.
16668
16669 2009-08-23  Bruno Haible  <bruno@clisp.org>
16670
16671         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
16672         * modules/pipe2 (Depends-on): Likewise.
16673
16674 2009-08-23  Eric Blake  <ebb9@byu.net>
16675
16676         fcntl-h: add O_TTY_INIT support
16677         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
16678         * tests/test-fcntl-h.c (o): Test it.
16679         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
16680
16681         fcntl-h: rename from fcntl, in preparation for fcntl(2)
16682         * modules/fcntl: Move <fcntl.h> header replacement...
16683         * modules/fcntl-h: ...to new name, so as not to collide with
16684         like-named function.
16685         * tests/test-fcntl.c: Rename...
16686         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
16687         * modules/fcntl-tests: Rename...
16688         * modules/fcntl-h-tests: ...to this.  Update test file name.
16689         * modules/chdir-long (Depends-on): Update clients.
16690         * modules/chdir-safer (Depends-on): Likewise.
16691         * modules/fcntl-safer (Depends-on): Likewise.
16692         * modules/fts (Depends-on): Likewise.
16693         * modules/mkancesdirs (Depends-on): Likewise.
16694         * modules/mkdir-p (Depends-on): Likewise.
16695         * modules/open (Depends-on): Likewise.
16696         * modules/savewd (Depends-on): Likewise.
16697         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
16698         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
16699
16700 2009-08-22  Bruno Haible  <bruno@clisp.org>
16701
16702         * modules/binary-io (License): Relicense under LGPL.
16703         * modules/pipe2 (License): Likewise.
16704
16705 2009-08-22  Bruno Haible  <bruno@clisp.org>
16706
16707         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
16708         return value.
16709         * lib/pipe-filter-gi.c (filter_init): Likewise.
16710         Reported by Eric Blake.
16711
16712 2009-08-22  Bruno Haible  <bruno@clisp.org>
16713
16714         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
16715         * modules/pipe (Depends-on): Add pipe2.
16716
16717 2009-08-22  Bruno Haible  <bruno@clisp.org>
16718
16719         Tests for module 'pipe2'.
16720         * modules/pipe2-tests: New file.
16721         * tests/test-pipe2.c: New file.
16722
16723         New module 'pipe2'.
16724         * lib/unistd.in.h (pipe2): New declaration.
16725         * lib/pipe2.c: New file.
16726         * m4/pipe2.m4: New file.
16727         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
16728         HAVE_PIPE2.
16729         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
16730         * modules/pipe2: New file.
16731         * doc/glibc-functions/pipe2.texi: Mention the new module.
16732
16733 2009-08-22  Bruno Haible  <bruno@clisp.org>
16734
16735         Reference some new glibc functions.
16736         * doc/glibc-functions/accept4.texi: New file.
16737         * doc/glibc-functions/dup3.texi: New file.
16738         * doc/glibc-functions/mkostemp.texi: New file.
16739         * doc/glibc-functions/pipe2.texi: New file.
16740         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
16741         (Glibc sys/socket.h): Refer to accept4.
16742         (Glibc unistd.h): Refer to dup3, pipe2.
16743         Reported by Eric Blake.
16744
16745 2009-08-22  Jim Meyering  <meyering@redhat.com>
16746             Bruno Haible  <bruno@clisp.org>
16747
16748         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
16749         This makes it so packages using automake-1.11's silent-rules option
16750         can print e.g., a single "GEN    configmake.h" line, rather than
16751         the 30+ statements that perform the job.  If you want to see the
16752         actual commands, you can still run "make V=1".
16753         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
16754         so that make output is abbreviated when those variables are defined
16755         appropriately.
16756         * modules/argz: Likewise.
16757         * modules/arpa_inet: Likewise.
16758         * modules/byteswap: Likewise.
16759         * modules/configmake: Likewise.
16760         * modules/dirent: Likewise.
16761         * modules/errno: Likewise.
16762         * modules/fcntl: Likewise.
16763         * modules/float: Likewise.
16764         * modules/fnmatch: Likewise.
16765         * modules/getopt-posix: Likewise.
16766         * modules/glob: Likewise.
16767         * modules/iconv_open: Likewise.
16768         * modules/inttypes: Likewise.
16769         * modules/localcharset: Likewise.
16770         * modules/locale: Likewise.
16771         * modules/math: Likewise.
16772         * modules/netdb: Likewise.
16773         * modules/netinet_in: Likewise.
16774         * modules/poll: Likewise.
16775         * modules/posix_spawnp-tests: Likewise.
16776         * modules/sched: Likewise.
16777         * modules/search: Likewise.
16778         * modules/selinux-h: Likewise.
16779         * modules/signal: Likewise.
16780         * modules/spawn: Likewise.
16781         * modules/stdarg: Likewise.
16782         * modules/stdbool: Likewise.
16783         * modules/stddef: Likewise.
16784         * modules/stdint: Likewise.
16785         * modules/stdio: Likewise.
16786         * modules/stdlib: Likewise.
16787         * modules/string: Likewise.
16788         * modules/strings: Likewise.
16789         * modules/sys_file: Likewise.
16790         * modules/sys_ioctl: Likewise.
16791         * modules/sys_select: Likewise.
16792         * modules/sys_socket: Likewise.
16793         * modules/sys_stat: Likewise.
16794         * modules/sys_time: Likewise.
16795         * modules/sys_times: Likewise.
16796         * modules/sys_utsname: Likewise.
16797         * modules/sys_wait: Likewise.
16798         * modules/sysexits: Likewise.
16799         * modules/time: Likewise.
16800         * modules/unistd: Likewise.
16801         * modules/wchar: Likewise.
16802         * modules/wctype: Likewise.
16803
16804 2009-08-22  Jim Meyering  <meyering@redhat.com>
16805
16806         announce-gen: detect write failure
16807         * build-aux/announce-gen: Add Coda at end.
16808         Remove equivalent-but-more-verbose block at top.
16809
16810 2009-08-19  Akim Demaille  <demaille@gostai.com>
16811
16812         bootstrap: --help to stdout.
16813         * bootstrap (usage): Don't send --help to stderr.
16814         Use a here doc instead of a long string.
16815
16816 2009-08-21  Eric Blake  <ebb9@byu.net>
16817
16818         test-popen-safer: split from test-popen
16819         * tests/test-popen.c (main): Move...
16820         * tests/test-popen.h: ...into new file.
16821         * tests/test-popen-safer2.c: New file.
16822         * modules/popen-tests (Files): Add test-popen.h.
16823         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
16824         Suggested by Bruno Haible.
16825
16826         test-fcntl-safer: split from test-open
16827         * tests/test-open.c (main): Move...
16828         * tests/test-open.h: ...into new file.
16829         * tests/test-fcntl-safer.c: New file.
16830         * modules/open-tests (Files): Add test-open.h.
16831         * modules/fcntl-safer-tests: New file.
16832         Suggested by Bruno Haible.
16833
16834         test-fopen-safer: split from test-fopen
16835         * tests/test-fopen.c (main): Move...
16836         * tests/test-fopen.h: ...into new file.
16837         * tests/test-fopen-safer.c: New file.
16838         * modules/fopen-tests (Files): Add test-fopen.h.
16839         * modules/fopen-safer-tests: New file.
16840         Suggested by Bruno Haible.
16841
16842 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
16843
16844         popen-safer: test O_CLOEXEC at run-time.
16845         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
16846
16847 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
16848
16849         fcntl: move more flags to the header
16850         * lib/cloexec.c: Do not define FD_CLOEXEC here.
16851         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
16852         * lib/fcntl.in.h: Do both things here.
16853
16854 2009-08-21  Jim Meyering  <meyering@redhat.com>
16855
16856         consistently remove $@-t before redirecting to it
16857         * modules/argz: Remove $@-t and $@ before redirecting to the former.
16858         * modules/alloca-opt: Likewise.
16859         * modules/byteswap: Likewise.
16860         * modules/fnmatch: Likewise.
16861         * modules/getopt-posix: Likewise.
16862         * modules/glob: Likewise.
16863         * modules/poll: Likewise.
16864         * modules/posix_spawnp-tests: Likewise.
16865         * modules/sys_socket: Likewise.
16866         * modules/sysexits: Likewise.
16867
16868 2009-08-21  Eric Blake  <ebb9@byu.net>
16869
16870         popen: simplify access to original popen
16871         * lib/popen.c (rpl_popen): No need to worry about popen being a
16872         macro.
16873         Reported by Bruno Haible.
16874
16875 2009-08-20  Eric Blake  <ebb9@byu.net>
16876
16877         build: avoid some compiler warnings
16878         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
16879         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
16880         type.
16881         (new_exclude_segment, excluded_file_pattern_p)
16882         (excluded_file_name_p): Reduce scope.
16883         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
16884         old-style declaration.
16885
16886 2009-08-20  Simon Josefsson  <simon@josefsson.org>
16887
16888         * tests/test-exclude1.sh: Handle Windows EOL.
16889         * tests/test-exclude2.sh: Likewise.
16890         * tests/test-exclude3.sh: Likewise.
16891         * tests/test-exclude4.sh: Likewise.
16892         * tests/test-exclude5.sh: Likewise.
16893         * tests/test-exclude6.sh: Likewise.
16894         * tests/test-exclude7.sh: Likewise.
16895
16896 2009-08-19  Akim Demaille  <demaille@gostai.com>
16897
16898         bootstrap: find sha1sum when named gsha1sum.
16899         * bootstrap (find_tool): New.
16900         ($SHA1SUM): New.
16901         Use it.
16902
16903 2009-08-20  Jim Meyering  <meyering@redhat.com>
16904
16905         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
16906         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
16907         expression that converts "." in a file name to "\." in the resulting
16908         regexp.  Start with a dummy statement, so that prior shell variable
16909         definitions are expanded portably.  Reported by Simon Josefsson.
16910
16911 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
16912
16913         Fix polling for writeability of a screen buffer.
16914         * lib/poll.c: Distinguish input and screen buffers for the
16915         Win32 implementation.
16916         * lib/select.c: Likewise.
16917
16918 2009-08-19  Eric Blake  <ebb9@byu.net>
16919
16920         popen-safer: prevent popen from clobbering std descriptors
16921         * modules/popen-safer: New file.
16922         * lib/popen-safer.c: Likewise.
16923         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
16924         * lib/stdio--.h (popen): Provide override.
16925         * lib/stdio-safer.h (popen_safer): Provide declaration.
16926         * tests/test-popen.c (includes): Partially test this.
16927         * modules/popen-safer-tests: New file, for more tests.
16928         * tests/test-popen-safer.c: Likewise.
16929         * MODULES.html.sh (file stream based Input/Output): Mention it.
16930
16931         tests: test some of the *-safer modules
16932         * modules/fopen-safer (Depends-on): Add fopen.
16933         * modules/fcntl-safer (Depends-on): Add fcntl.
16934         * modules/stdlib-safer (Depends-on): Add stdlib.
16935         (configure.ac): Set indicator.
16936         * modules/unistd-safer (configure.ac): Likewise.
16937         * modules/tmpfile-safer (configure.ac): Likewise.
16938         (Depends-on): Add tmpfile.
16939         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
16940         active.
16941         * tests/test-fopen.c (includes): Test safer versions when they are
16942         in use.
16943         * tests/test-open.c (includes): Likewise.
16944
16945         popen: fix cygwin 1.5 bug when stdin closed
16946         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
16947         * modules/popen: New file.
16948         * modules/popen-tests: Likewise.
16949         * tests/test-popen.c: Likewise.
16950         * m4/popen.m4: Likewise.
16951         * lib/popen.c: Likewise.
16952         * lib/stdio.in.h (popen): New declaration.
16953         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
16954         * modules/stdio (Makefile.am): Likewise.
16955         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
16956
16957 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
16958
16959         maint.mk: give full control over update-copyright exclusions
16960         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
16961         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
16962         (update-copyright): Don't force inclusion of top-level
16963         ChangeLog.  Don't force exclusion of all COPYING files, but make
16964         them the default exclusion instead.
16965
16966 2009-08-16  Bruno Haible  <bruno@clisp.org>
16967
16968         Fix test failures on Solaris 10.
16969         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
16970         tests when Solaris iconv() is used.
16971         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
16972         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
16973         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
16974         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
16975         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
16976
16977 2009-08-16  Bruno Haible  <bruno@clisp.org>
16978
16979         Fix test failures on Solaris 10.
16980         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
16981         'tr' program and pass it as first argument.
16982         * tests/test-pipe-filter-gi1.sh: Likewise.
16983         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
16984         program as first argument.
16985         * tests/test-pipe-filter-gi1.c (main): Likewise.
16986
16987 2009-08-16  Eric Blake  <ebb9@byu.net>
16988
16989         fpurge: fix previous commits
16990         * modules/fpurge (Makefile.am): Make replacement conditional,
16991         partially reverting 2007-04-29 change; missed in previous
16992         attempt.
16993         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
16994         is missing.
16995
16996 2009-08-16  Bruno Haible  <bruno@clisp.org>
16997
16998         Clarify fpurge's effect on the file position.
16999         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
17000         * tests/test-fpurge.c (main): Make a second pass for checking the file
17001         position.
17002
17003 2009-08-16  Bruno Haible  <bruno@clisp.org>
17004
17005         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
17006         declaration of fpurge is missing.
17007         * tests/test-fpurge.c (main): Check that the file has not more contents
17008         than expected. Close the file before removing it.
17009
17010 2009-08-15  Eric Blake  <ebb9@byu.net>
17011
17012         fpurge: don't wrap working cygwin implementation
17013         * lib/fpurge.c (fpurge): Fix comment typo.
17014         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
17015         1.7 to avoid replacement.
17016         * tests/test-fpurge.c (main): Enhance test.
17017
17018 2009-08-15  Eric Blake  <ebb9@byu.net>
17019         and Jim Meyering  <meyering@redhat.com>
17020
17021         test-update-copyright: skip if perl is insufficient
17022         * tests/test-update-copyright.sh: Failure to run maintainer tool
17023         should not cause testsuite failure on cygwin 1.5.
17024
17025 2009-08-14  Eric Blake  <ebb9@byu.net>
17026
17027         doc: mention more functions added in cygwin 1.7.0
17028         * doc/posix-headers/limits.texi (limits.h): Update for recent
17029         cygwin additions.
17030         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
17031         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
17032         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
17033         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
17034         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
17035
17036 2009-08-14  Eric Blake  <ebb9@byu.net>
17037
17038         maint.mk: simplify update-copyright rule
17039         * top/maint.mk (update-copyright-local): Delete, and document how
17040         to do it in cfg.mk instead.
17041         (update-copyright-exclude-regexp): Delete, and document how to do
17042         it in .x-update-copyright instead.
17043         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
17044         exclude ChangeLog.
17045
17046 2009-08-14  Bruno Haible  <bruno@clisp.org>
17047
17048         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
17049
17050 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
17051
17052         maint.mk: support update-copyright-env
17053         * top/maint.mk (update-copyright-env): Define place-holder.
17054         (update-copyright): Expand $(update-copyright-env) before
17055         invoking update-copyright.
17056
17057 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
17058
17059         update-copyright: implement forced reformatting
17060         * build-aux/update-copyright: Implement and document
17061         UPDATE_COPYRIGHT_FORCE.
17062         * tests/test-update-copyright.sh: Test it.
17063
17064 2009-08-14  Eric Blake  <ebb9@byu.net>
17065         and Bruno Haible  <bruno@clisp.org>
17066
17067         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
17068         * tests/test-locale.c: Revert previous patch related to NULL.
17069         * tests/test-stdio.c: Likewise.
17070         * tests/test-stdlib.c: Likewise.
17071         * tests/test-string.c: Likewise.
17072         * tests/test-unistd.c: Likewise.
17073         * modules/time-tests (Depends-on): Add verify.
17074         * modules/wchar-tests (Depends-on): Likewise.
17075         * tests/test-time.c: Test for NULL compliance.
17076         * tests/test-wchar.c: Likewise.
17077         * modules/locale (Depends-on): Add stddef.
17078         * modules/stdio (Depends-on): Likewise.
17079         * modules/stdlib (Depends-on): Likewise.
17080         * modules/string (Depends-on): Likewise.
17081         * modules/time (Depends-on): Likewise.
17082         * modules/unistd (Depends-on): Likewise.
17083         * modules/wchar (Depends-on): Likewise.
17084         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
17085         * lib/stdlib.in.h (includes): Likewise.
17086         * lib/string.in.h (includes): Likewise.
17087         * lib/time.in.h (includes): Likewise.
17088         * lib/unistd.in.h (includes): Likewise.
17089         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
17090         replaced.
17091         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
17092         * m4/stddef_h.m4: New file.
17093         * modules/stddef: Likewise.
17094         * lib/stddef.in.h: Likewise.
17095         * modules/stddef-tests: Likewise.
17096         * tests/test-stddef.c: Likewise.
17097         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
17098         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
17099         * doc/posix-headers/locale.texi (locale.h): Likewise.
17100         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
17101         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
17102         * doc/posix-headers/string.texi (string.h): Likewise.
17103         * doc/posix-headers/time.texi (time.h): Likewise.
17104         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
17105         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
17106
17107 2009-08-14  Eric Blake  <ebb9@byu.net>
17108
17109         doc: improve git diff of texinfo files
17110         * .gitattributes: Add rule for *.texi files, with hint on how to
17111         use it.
17112         Copied from m4, and based on a report by Bruno Haible.
17113
17114 2009-08-14  Bruno Haible  <bruno@clisp.org>
17115
17116         Disable multithread support by default on Cygwin 1.5.x for real.
17117         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
17118
17119 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
17120
17121         update-copyright: much ado about intervals
17122         * build-aux/update-copyright: Implement and document
17123         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
17124         of copyright year intervals.
17125         Also, document UPDATE_COPYRIGHT_YEAR.
17126         * tests/test-update-copyright.sh: Test it.
17127
17128         update-copyright: convert 2-digit to 4-digit years
17129         * build-aux/update-copyright: Implement and document.
17130         * tests/test-update-copyright.sh: Update.
17131
17132 2009-08-14  Jim Meyering  <meyering@redhat.com>
17133
17134         test-exclude: avoid coreutils "make check" failure
17135         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
17136         just as in test-argmatch.c.
17137
17138 2009-08-13  Eric Blake  <ebb9@byu.net>
17139
17140         test-dup2: fix bad assumption
17141         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
17142         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
17143
17144         test-version-etc: fix CRLF portability issue
17145         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
17146         recognize \r.
17147         * tests/test-argp-version-etc-1.sh: Likewise.
17148
17149         getopt: update client modules
17150         * modules/argp (Depends-on): Use getopt-gnu.
17151         * modules/git-merge-changelog (Depends-on): Likewise.
17152         * modules/long-options (Depends-on): Likewise.
17153         * modules/xstrtol (Depends-on): Likewise.
17154
17155 2009-08-13  Simon Josefsson  <simon@josefsson.org>
17156
17157         * tests/test-version-etc.sh: Don't fail on different
17158         project/version.  Don't fail on CRLF differences.  Rewrite to use
17159         multiple -e instead of multiple sed forks, suggested by Eric Blake
17160         <ebb9@byu.net>.
17161         * tests/test-argp-version-etc-1.sh: Likewise.
17162
17163 2009-08-13  Simon Josefsson  <simon@josefsson.org>
17164
17165         * tests/test-version-etc.sh: Don't fail on different
17166         project/version.
17167
17168 2009-08-12  Bruno Haible  <bruno@clisp.org>
17169
17170         Tests for modules 'getopt-posix', 'getopt-gnu'.
17171         * modules/getopt-posix-tests: New file.
17172         * tests/test-getopt.c: New file.
17173         * tests/test-getopt.h: New file.
17174         * tests/test-getopt_long.h: New file.
17175
17176         New modules 'getopt-posix', 'getopt-gnu'.
17177         * modules/getopt-gnu: New file, renamed from modules/getopt.
17178         * modules/getopt-posix: New file.
17179         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
17180         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
17181         (gl_GETOPT): Remove macro.
17182         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
17183         Disable the test against BSD systems that declare optreset. Test
17184         against mingw bug. Test against lack of support of optional arguments
17185         on many platforms.
17186         * doc/glibc-headers/getopt.texi: Update module name and list of
17187         relevant platforms.
17188         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
17189         'getopt-gnu' and more portability problems.
17190         * NEWS: Mention the changes.
17191
17192 2009-08-12  Bruno Haible  <bruno@clisp.org>
17193
17194         Ensure that optarg etc. get declared by <unistd.h>.
17195         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
17196         AC_USE_SYSTEM_EXTENSIONS.
17197         * modules/getopt (Depends-on): Add 'extensions'.
17198
17199 2009-08-12  Bruno Haible  <bruno@clisp.org>
17200
17201         Avoid test link errors.
17202         * modules/pipe-filter-ii-tests (Makefile.am): Define
17203         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
17204         * modules/pipe-filter-gi-tests (Makefile.am): Define
17205         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
17206         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17207
17208 2009-08-12  Bruno Haible  <bruno@clisp.org>
17209
17210         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
17211         gl_GETOPT_SUBSTITUTE before.
17212         (gl_GETOPT): Use it.
17213         * m4/argp.m4 (gl_ARGP): Update.
17214         Reported by Sergey Poznyakoff.
17215
17216         * m4/getopt.m4: Reorder macros.
17217         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
17218         (gl_GETOPT_SUBSTITUTE): Remove macro.
17219
17220 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
17221
17222         Minor improvement in gitlog-to-changelog
17223
17224         * build-aux/gitlog-to-changelog: New option `--format' makes
17225         output format string configurable.
17226
17227 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
17228
17229         Optimize exclude: use hash tables for non-wildcard patterns.
17230
17231         * lib/exclude.c: Include hash.h and mbuiter.h
17232         (struct exclude_pattern, exclude_segment): New data types.
17233         (struct exclude): Rewrite.
17234         (fnmatch_pattern_has_wildcards): New function.
17235         (new_exclude_segment, free_exclude_segment): New functions.
17236         (excluded_file_pattern_p, excluded_file_name_p): New functions.
17237         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
17238         * lib/exclude.h (is_fnmatch_pattern): New prototype.
17239         * modules/exclude: Depend on hash and mbuiter.
17240
17241         * modules/exclude-tests: New file.
17242         * tests/test-exclude.c: New file.
17243         * tests/test-exclude1.sh: New file.
17244         * tests/test-exclude2.sh: New file.
17245         * tests/test-exclude3.sh: New file.
17246         * tests/test-exclude4.sh: New file.
17247         * tests/test-exclude5.sh: New file.
17248         * tests/test-exclude6.sh: New file.
17249         * tests/test-exclude7.sh: New file.
17250
17251 2009-08-12  Bruno Haible  <bruno@clisp.org>
17252
17253         Ensure that getopt() gets declared by <unistd.h>.
17254         * lib/unistd.in.h: Conditionally include getopt.h.
17255         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
17256         Set GNULIB_UNISTD_H_GETOPT.
17257         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17258         GNULIB_UNISTD_H_GETOPT.
17259         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
17260
17261 2009-08-12  Bruno Haible  <bruno@clisp.org>
17262
17263         Clarify logic.
17264         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
17265         gl_replace_getopt instead of GETOPT_H.
17266
17267 2009-08-12  Bruno Haible  <bruno@clisp.org>
17268
17269         * m4/getopt.m4: Add comments.
17270
17271 2009-08-12  Bruno Haible  <bruno@clisp.org>
17272
17273         Disable multithread support by default on Cygwin 1.5.x.
17274         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
17275         set gl_use_threads=no if not specified otherwise.
17276
17277 2009-08-11  Bruno Haible  <bruno@clisp.org>
17278
17279         Avoid compilation error on NetBSD 5.0.
17280         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
17281         * tests/test-stdio.c: Likewise.
17282         * tests/test-stdlib.c: Likewise.
17283         * tests/test-string.c: Likewise.
17284         * tests/test-unistd.c: Likewise.
17285         Reported by Greg Troxel <gdt@ir.bbn.com>
17286         at <https://savannah.gnu.org/support/?106973>.
17287
17288 2009-08-11  Bruno Haible  <bruno@clisp.org>
17289
17290         * modules/dup2-tests (Depends-on): Remove close.
17291
17292         Undo 2009-07-19 commit.
17293         * modules/acl-tests (Depends-on): Remove close.
17294         * modules/binary-io-tests (Depends-on): Likewise.
17295         * modules/closein-tests (Depends-on): Likewise.
17296         * modules/flock-tests (Depends-on): Likewise.
17297         * modules/fsync-tests (Depends-on): Likewise.
17298         * modules/lseek-tests (Depends-on): Likewise.
17299         * modules/pipe-tests (Depends-on): Likewise.
17300         * modules/posix_spawn-tests (Depends-on): Likewise.
17301         * modules/posix_spawnp-tests (Depends-on): Likewise.
17302         * modules/stat-time-tests (Depends-on): Likewise.
17303         * modules/yesno-tests (Depends-on): Likewise.
17304
17305 2009-08-10  Bruno Haible  <bruno@clisp.org>
17306
17307         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
17308
17309 2009-08-10  Bruno Haible  <bruno@clisp.org>
17310
17311         Fix a gcc warning.
17312         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
17313
17314 2009-08-10  Bruno Haible  <bruno@clisp.org>
17315
17316         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
17317         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
17318         not only the first time.
17319         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
17320         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
17321         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
17322         is 1, not only the the first time.
17323
17324 2009-08-10  Bruno Haible  <bruno@clisp.org>
17325
17326         Make it possible to use module 'gethostname' without module 'close'.
17327         * lib/unistd.in.h (close): Evoke a link error only if
17328         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
17329         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17330         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17331         * modules/unistd (Makefile.am): Substitute
17332         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17333         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
17334         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
17335         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
17336         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17337         * modules/sys_ioctl (Makefile.am): Substitute
17338         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17339         * modules/socket (configure.ac): On native Windows, set
17340         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
17341         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17342         Reported by Sam Steingold <sds@gnu.org>.
17343
17344 2009-08-10  Bruno Haible  <bruno@clisp.org>
17345
17346         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
17347         * modules/ioctl (configure.ac): Likewise.
17348
17349 2009-08-10  Bruno Haible  <bruno@clisp.org>
17350
17351         Avoid collision between gnulib wrapper and libintl wrapper.
17352         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
17353         already defined in intl/printf.c.
17354         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
17355         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
17356
17357 2009-08-09  Bruno Haible  <bruno@clisp.org>
17358
17359         Make <sys/select.h> really self-contained, also on Solaris 10.
17360         * lib/sys_select.in.h: Include <string.h>.
17361         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
17362         Solaris 10 problem.
17363         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
17364         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
17365         Reported by Jim Meyering.
17366
17367 2009-08-09  Bruno Haible  <bruno@clisp.org>
17368
17369         Avoid warnings from 'aclocal' that are due to a use of macro name
17370         AM_XGETTEXT_OPTION that is not defined in automake.
17371         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
17372         automake.
17373         * modules/error (configure.ac): Likewise.
17374         * modules/propername (configure.ac): Likewise.
17375         * modules/vasprintf (configure.ac): Likewise.
17376         * modules/verror (configure.ac): Likewise.
17377         * modules/xprintf (configure.ac): Likewise.
17378         * modules/xvasprintf (configure.ac): Likewise.
17379
17380 2009-08-08  Bruno Haible  <bruno@clisp.org>
17381
17382         Avoid compilation error in C++ mode.
17383         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
17384         Reported by Sam Steingold <sds@gnu.org>.
17385
17386 2009-08-08  Bruno Haible  <bruno@clisp.org>
17387
17388         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
17389         for the various Unix platforms.
17390         * doc/posix-headers/limits.texi: Update platforms list regarding
17391         HOST_NAME_MAX.
17392         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17393
17394 2009-08-07  Jim Meyering  <meyering@redhat.com>
17395
17396         selinux-at: fix typo in a comment
17397         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
17398         Spotted by Paolo Bonzini.
17399
17400         selinux-at: remove redundant m4 code, add documentation
17401         * modules/selinux-at (configure.ac): Remove redundant code.
17402         LIB_SELINUX is already set via the dependent module, selinux-h.
17403         (Include): Add quotes around selinux-at.h.
17404         * lib/selinux-at.h: Add documentation.
17405         Reported by Bruno Haible in
17406         http://marc.info/?l=gnulib-bug&m=124958988300749
17407
17408 2009-08-07  Bruno Haible  <bruno@clisp.org>
17409
17410         Avoid link error on MacOS X 10.3 and 10.4.
17411         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
17412         on non-ELF systems.
17413         * lib/argp-pv.c (argp_program_version): Likewise.
17414         Reported by Simon Josefsson.
17415
17416 2009-08-07  Simon Josefsson  <simon@josefsson.org>
17417
17418         * tests/test-version-etc.sh: Use $EXEEXT.
17419
17420 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
17421
17422         update-copyright: update documentation to point to maint.mk
17423         * build-aux/update-copyright: Here.
17424
17425 2009-08-06  Jim Meyering  <meyering@redhat.com>
17426
17427         maint.mk: support update-copyright-local
17428         * top/maint.mk (update-copyright-local): Define place-holder.
17429         (update-copyright): Depend on $(update-copyright-local).
17430
17431 2009-08-06  Jim Meyering  <meyering@redhat.com>
17432
17433         selinux-at: new module
17434         Initially written for coreutils, this module will soon be
17435         used by findutils, too.
17436         * MODULES.html.sh [Misc]: Add selinux-at.
17437         * lib/selinux-at.h: New file, from coreutils.
17438         * lib/selinux-at.c: Likewise.
17439         * modules/selinux-at: Likewise.
17440         (License): Change from LGPL to GPL, since it depends
17441         on the GPL'd openat module.
17442
17443         doc: update README
17444         * README: Remove references to cogito.
17445         Remove cvs-repo-updating instructions from 2007.
17446         Don't imply that CVS is better if you have limited disk space.
17447
17448 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17449
17450         update-copyright: support C-style comments
17451         * build-aux/update-copyright: Implement and document.
17452         * tests/test-update-copyright.sh: Test.
17453
17454 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17455
17456         update-copyright: support omitted "(C)"
17457         * build-aux/update-copyright: Implement and document.  Also,
17458         allow variable whitespace before "(C)".
17459         * tests/test-update-copyright.sh: Test.
17460
17461 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17462
17463         update-copyright: don't trip on non-FSF copyright statements
17464         * build-aux/update-copyright: Fix so that the first correctly
17465         formatted FSF copyright statement is recognized no matter what
17466         appears before it.  Update documentation.
17467         * tests/test-update-copyright.sh: Test that.
17468
17469 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17470
17471         update-copyright: clean up code a little
17472         * build-aux/update-copyright: Append "_re" to the name of any
17473         variable holding a regular expression.
17474         Replace "old" and "new" with "stmt" in variable names.
17475         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
17476         handled correctly.
17477         Format code more consistently.
17478
17479 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17480
17481         update-copyright-tests: improve portability
17482         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
17483         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
17484
17485 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
17486
17487         update-copyright: support @copyright{} and &copy;
17488         * build-aux/update-copyright: Implement and document.
17489         * tests/test-update-copyright.sh: Test.
17490
17491 2009-08-04  Jim Meyering  <meyering@redhat.com>
17492
17493         update-copyright-tests: correctly test EOL=\r\n handling
17494         * tests/test-update-copyright.sh: Put \r at the end of some lines
17495         for the dos-eol tests.  Based on a patch by Joel E. Denny.
17496
17497         maint.mk: make update-copyright exclusion list more configurable
17498         * top/maint.mk (update-copyright): Default to excluding COPYING,
17499         but allow an override, in case someone does want to update that file.
17500
17501         maint.mk: don't update copyright date in COPYING
17502         * top/maint.mk (update-copyright): Exclude COPYING.
17503
17504         maint.mk: add a copyright-updating rule
17505         * top/maint.mk (update-copyright): New rule.
17506         Derived from coreutils/Makefile.am.
17507
17508         update-copyright: rename some variables
17509         * build-aux/update-copyright: Rename a few variables for clarity.
17510         Tweak syntax.  List Joel E. Denny as coauthor.
17511
17512 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
17513
17514         update-copyright: fix bug for 2-digit last year and add tests
17515         * build-aux/update-copyright: Fix bug.
17516         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
17517         specified.
17518         * modules/update-copyright-tests: New
17519         * tests/test-update-copyright.sh: New.
17520
17521 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
17522
17523         update-copyright: handle leading tabs in line prefix
17524         * build-aux/update-copyright: Count leading tabs as 8 spaces
17525         when computing margin.  This helps with the formatting of
17526         ChangeLogs, for example.
17527         Fix documentation a little.
17528
17529 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
17530
17531         update-copyright: support EOL=\r\n
17532         * build-aux/update-copyright: Implement that.
17533
17534 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
17535
17536         update-copyright: automatically format copyright statements
17537         * build-aux/update-copyright: Implement that.
17538         Also, be a little more predictable and safer by always failing
17539         when the full copyright format is not perfectly recognized as an
17540         unbroken whole.  Discussed at
17541         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
17542         Rewrite documentation.
17543
17544 2009-08-03  Bruno Haible  <bruno@clisp.org>
17545
17546         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
17547
17548 2009-08-02  Bruno Haible  <bruno@clisp.org>
17549
17550         Tests for module 'uname'.
17551         * modules/uname-tests: New file.
17552         * tests/test-uname.c: New file.
17553
17554         New module 'uname'.
17555         * lib/uname.c: New file.
17556         * m4/uname.m4: New file.
17557         * modules/uname: New file.
17558         * doc/posix-functions/uname.texi: Mention the new module.
17559
17560 2009-08-02  Bruno Haible  <bruno@clisp.org>
17561
17562         Tests for module 'sys_utsname'.
17563         * modules/sys_utsname-tests: New file.
17564         * tests/test-sys_utsname.c: New file.
17565
17566         New module 'sys_utsname'.
17567         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
17568         * m4/sys_utsname_h.m4: New file.
17569         * modules/sys_utsname: New file.
17570         * doc/posix-headers/sys_utsname.texi: Mention the new module.
17571
17572 2009-08-02  Bruno Haible  <bruno@clisp.org>
17573
17574         Implicitly initialize the sockets library.
17575         * lib/gethostname.c: Include sockets.h.
17576         (rpl_gethostname): Invoke gl_sockets_startup.
17577         * lib/socket.c: Include sockets.h.
17578         (rpl_socket): Invoke gl_sockets_startup.
17579         * modules/gethostname (Depends-on): Add sockets.
17580         * modules/socket (Depends-on): Likewise.
17581         * tests/test-poll.c: Don't include sockets.h.
17582         (main): Don't invoke gl_sockets_startup.
17583         * tests/test-select.c: Don't include sockets.h.
17584         (main): Don't invoke gl_sockets_startup.
17585
17586 2009-08-02  Bruno Haible  <bruno@clisp.org>
17587
17588         Allow multiple calls to gl_sockets_startup.
17589         * lib/sockets.c (initialized_sockets_version): New variable.
17590         (gl_sockets_startup): Do nothing if already called for this or a higher
17591         version.
17592         (gl_sockets_cleanup): Reset initialized_sockets_version.
17593
17594 2009-08-03  Simon Josefsson  <simon@josefsson.org>
17595
17596         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
17597         different project/version.
17598
17599 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
17600             Bruno Haible  <bruno@clisp.org>
17601
17602         Tests for module 'pipe-filter-gi'.
17603         * modules/pipe-filter-gi-tests: New file.
17604         * tests/test-pipe-filter-gi1.sh: New file.
17605         * tests/test-pipe-filter-gi1.c: New file.
17606         * tests/test-pipe-filter-gi2.sh: New file.
17607         * tests/test-pipe-filter-gi2-main.c: New file.
17608         * tests/test-pipe-filter-gi2-child.c: New file.
17609
17610         New module 'pipe-filter-gi'.
17611         * lib/pipe-filter-gi.c: New file.
17612         * modules/pipe-filter-gi: New file.
17613
17614 2009-08-02  Bruno Haible  <bruno@clisp.org>
17615             Paolo Bonzini  <bonzini@gnu.org>
17616
17617         Tests for module 'pipe-filter-ii'.
17618         * modules/pipe-filter-ii-tests: New file.
17619         * tests/test-pipe-filter-ii1.sh: New file.
17620         * tests/test-pipe-filter-ii1.c: New file.
17621         * tests/test-pipe-filter-ii2.sh: New file.
17622         * tests/test-pipe-filter-ii2-main.c: New file.
17623         * tests/test-pipe-filter-ii2-child.c: New file.
17624
17625         New module 'pipe-filter-ii'.
17626         * lib/pipe-filter.h: New file.
17627         * lib/pipe-filter-ii.c: New file.
17628         * lib/pipe-filter-aux.h: New file.
17629         * modules/pipe-filter-ii: New file.
17630
17631 2009-08-02  Simon Josefsson  <simon@josefsson.org>
17632
17633         * lib/gc-libgcrypt.c: Change copyright to FSF.
17634         * lib/gc-gnulib.c: Likewise.
17635
17636 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
17637
17638         * lib/gethostname.c: Include limits.h.
17639
17640 2009-08-02  Simon Josefsson  <simon@josefsson.org>
17641             Bruno Haible  <bruno@clisp.org>
17642
17643         Ensure HOST_NAME_MAX as part of the gethostname module.
17644         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
17645         define also HOST_NAME_MAX.
17646         * tests/test-gethostname.c: Include <limits.h>.
17647         (main): Check also HOST_NAME_MAX.
17648         * doc/posix-headers/limits.texi: Document the mingw problem.
17649
17650 2009-08-02  Bruno Haible  <bruno@clisp.org>
17651
17652         * lib/gethostname.c (gethostname): Fix handling of large len argument.
17653         Add comments.
17654
17655 2009-03-31  Simon Josefsson  <simon@josefsson.org>
17656
17657         * lib/gethostname.c: Add Windows wrapper.
17658         * m4/gethostname.m4: Look for gethostname in -lws2_32.
17659         * modules/gethostname: Depend on sys_socket & errno, for also
17660         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
17661         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
17662
17663 2009-07-31  Jim Meyering  <meyering@redhat.com>
17664
17665         getloadavg: fix symbol name in comment
17666         * lib/getloadavg.c: Correct a typo I introduced when adding
17667         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
17668         Matt Kraai spotted the problem.
17669
17670 2009-07-29  Matt Kraai  <mkraai@beckman.com>
17671
17672         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
17673         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
17674         code also if ! defined N_NAME_POINTER.
17675         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
17676         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
17677         but the n_name member is a 12-byte array.
17678
17679 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
17680
17681         update-copyright: generalize comment handling
17682         * build-aux/update-copyright: Handle copyright statements
17683         within more comment styles.
17684         Document usage.
17685         Report any file with an external copyright holder or parse failure.
17686
17687 2009-07-29  Jim Meyering  <meyering@redhat.com>
17688
17689         mktime: correct setting of REPLACE_MKTIME
17690         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
17691
17692         update-copyright: new module
17693         * modules/update-copyright: New file.
17694         * build-aux/update-copyright: New file.
17695         * MODULES.html.sh (maint+release support): Add update-copyright.
17696
17697 2009-07-27  Bruno Haible  <bruno@clisp.org>
17698
17699         Fix compilation error when <ctime> is used and mktime is replaced.
17700         * lib/time.in.h (mktime): New declaration.
17701         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
17702         REPLACE_MKTIME instead of defining mktime in config.h.
17703         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
17704         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
17705         Reported by Ross McFarland <rwmcfa1@neces.com>.
17706
17707 2009-07-27  Bruno Haible  <bruno@clisp.org>
17708
17709         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
17710         Reported by Matt Kraai <mkraai@beckman.com>.
17711
17712 2009-07-25  Jim Meyering  <meyering@redhat.com>
17713
17714         maint.mk: avoid warnings about missing files
17715         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
17716         diagnostic when .prev-version does not exist.
17717         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
17718         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
17719         nonexistent cfg.mk.
17720         Suggestions from Simon Josefsson.
17721
17722 2009-07-25  Bruno Haible  <bruno@clisp.org>
17723
17724         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
17725         defined as macros. Needed on QNX 6.4.1.
17726         Reported by Matt Kraai <mkraai@beckman.com>.
17727
17728 2009-07-23  Jim Meyering  <meyering@redhat.com>
17729
17730         maint.mk: invoke "make dist" with a working value of XZ_OPT
17731         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
17732
17733 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
17734
17735         Make fseeko.c compile on QNX.
17736         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
17737
17738 2009-07-22  Peter Simons  <simons@cryp.to>
17739
17740         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
17741         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
17742         * lib/md4.h: Likewise.
17743         * lib/md5.h: Likewise.
17744         * lib/sha1.h: Likewise.
17745         * lib/sha256.h: Likewise.
17746         * lib/sha512.h: Likewise.
17747
17748         tests-sha1: don't assign literal string to 'char *' variable
17749         * tests/test-sha1.c (main): Declare locals with "const" to match
17750         attributes of the right hand side.
17751
17752 2009-07-21  Eric Blake  <ebb9@byu.net>
17753
17754         dup2: fix more mingw problems
17755         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
17756         fd to itself.
17757         * doc/posix-functions/dup2.texi (dup2): Document the bug.
17758         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
17759         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
17760         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
17761         care of mingw bugs.
17762
17763 2009-07-21  Jim Meyering  <meyering@redhat.com>
17764
17765         vc-list-files: avoid failure when /bin/sh is dash
17766         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
17767         On some Debian based systems, /bin/sh is a symlink to dash, and running
17768         this command would omit the "/" following each 'tests' prefix:
17769           dash -x build-aux/vc-list-files -C . tests
17770         That is because bash and dash work differently:
17771           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
17772           bash ok
17773           dash odd
17774
17775 2009-07-21  Eric Blake  <ebb9@byu.net>
17776
17777         dup2-tests: test previous patch
17778         * modules/dup2-tests: New file.
17779         * tests/test-dup2.c: Likewise.
17780         * tests/test-open.c (main): Avoid unspecified behavior.
17781         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
17782         test.
17783
17784         dup2: work around mingw and cygwin 1.5 bug
17785         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
17786         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17787         * modules/unistd (Makefile.am): Substitute it.
17788         * lib/unistd.in.h (dup2): Declare the replacement.
17789         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
17790         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
17791         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
17792         * modules/execute (Depends-on): Add dup2.
17793         * modules/fseterr (Depends-on): Likewise.
17794         * modules/pipe (Depends-on): Likewise.
17795         * modules/posix_spawn-internal (Depends-on): Likewise.
17796
17797 2009-07-21  Bruno Haible  <bruno@clisp.org>
17798
17799         * modules/.gitattributes: New file.
17800
17801 2009-07-20  Bruno Haible  <bruno@clisp.org>
17802
17803         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
17804         (main): Use it.
17805
17806 2009-07-20  Eric Blake  <ebb9@byu.net>
17807
17808         test-pipe: make a bit more robust.
17809         * tests/test-pipe.c (myerr): Allow error messages regardless of
17810         what we do to stderr.
17811         (test_pipe): Rearrange to avoid deadlock.
17812         (child_main): Try a larger read, to ensure we avoided deadlock.
17813         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
17814         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
17815         if misused.
17816
17817 2009-07-19  Jim Meyering  <meyering@redhat.com>
17818
17819         fts: avoid false-positive cycle-detection
17820         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
17821         for each new command line argument.
17822
17823 2009-07-19  Bruno Haible  <bruno@clisp.org>
17824
17825         Fix build error on mingw with the modules sys_select and unistd.
17826         * modules/acl-tests (Depends-on): Add close.
17827         * modules/binary-io-tests (Depends-on): Likewise.
17828         * modules/closein-tests (Depends-on): Likewise.
17829         * modules/flock-tests (Depends-on): Likewise.
17830         * modules/fsync-tests (Depends-on): Likewise.
17831         * modules/lseek-tests (Depends-on): Likewise.
17832         * modules/pipe-tests (Depends-on): Likewise.
17833         * modules/posix_spawn-tests (Depends-on): Likewise.
17834         * modules/posix_spawnp-tests (Depends-on): Likewise.
17835         * modules/stat-time-tests (Depends-on): Likewise.
17836         * modules/yesno-tests (Depends-on): Likewise.
17837
17838 2009-07-19  Bruno Haible  <bruno@clisp.org>
17839
17840         Unify conditionals.
17841         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
17842         macros, not at the compiler macros.
17843         * lib/pipe.c: Likewise.
17844         * lib/execute.c: Likewise.
17845         * lib/spawni.c: Likewise.
17846
17847 2009-07-19  Bruno Haible  <bruno@clisp.org>
17848
17849         Fix handling of closed stdin/stdout/stderr on mingw.
17850         * lib/w32spawn.h: Include unistd.h.
17851         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
17852         file descriptor with O_NOINHERIT flag.
17853         (fd_safer_noinherit): New function, based on fd-safer.c.
17854         (dup_safer_noinherit): New function, based on dup-safer.c.
17855         (undup_safer_noinherit): New function.
17856         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
17857         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
17858         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
17859         instead of fd_safer.
17860         * tests/test-pipe.c: Include <windows.h>.
17861         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
17862
17863         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
17864         from main.
17865         (test_pipe): Pass an extra argument for disambiguation.
17866         (main): Invoke parent_main or child_main.
17867
17868         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
17869         consistently.
17870
17871 2009-07-18  Eric Blake  <ebb9@byu.net>
17872
17873         test-pipe: fix mingw build
17874         * tests/test-pipe.c (main): Avoid fcntl on mingw.
17875
17876 2009-07-18  Bruno Haible  <bruno@clisp.org>
17877
17878         * modules/pipe-tests (Makefile.am): Fix typo.
17879
17880 2009-07-18  Eric Blake  <ebb9@byu.net>
17881
17882         error: fix mingw build
17883         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
17884         Reported by Bruno Haible.
17885
17886         error: avoid undefined use of stdout
17887         * lib/error.c (error, error_at_line): Check that fd 1 is open
17888         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
17889         is handling faults and the close_stdout module wants to report the
17890         detection of closed stdout as an error.
17891
17892 2009-07-17  Eric Blake  <ebb9@byu.net>
17893
17894         pipe: be robust in face of closed fds
17895         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
17896         should cause child to misbehave.
17897         * modules/pipe-tests: New module.
17898         * tests/test-pipe.c: New file.
17899         * tests/test-pipe.sh: New file.
17900         Reported by Akim Demaille.
17901
17902 2009-07-14  Bruno Haible  <bruno@clisp.org>
17903
17904         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
17905         Reported by anonymous kc.
17906
17907 2009-07-07  Jim Meyering  <meyering@redhat.com>
17908
17909         maint.mk: don't look for translatable strings in *.m4 or *.mk
17910         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
17911         when searching for translatable strings.
17912
17913 2009-07-05  Jim Meyering  <meyering@redhat.com>
17914
17915         remove superfluous parentheses in STREQ definition
17916         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
17917         * lib/getugroups.c (STREQ): Likewise.
17918         * lib/fnmatch.c (STREQ): Likewise.
17919         Spotted by Bruno Haible.
17920
17921 2009-07-04  Jim Meyering  <meyering@redhat.com>
17922
17923         argv-iter: new module
17924         * MODULES.html.sh: Add argv-iter.
17925         * lib/argv-iter.c, lib/argv-iter.h: New files.
17926         * modules/argv-iter: New file.
17927         * modules/argv-iter-tests: New file.
17928         * tests/test-argv-iter.c: Test it.
17929
17930 2009-07-04  Bruno Haible  <bruno@clisp.org>
17931
17932         Fix assertion.
17933         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
17934         contains more exact copies of a given entry than file2, leave the extra
17935         copies unpaired rather than aborting.
17936         Reported by Eric Blake.
17937
17938 2009-07-02  Bruno Haible  <bruno@clisp.org>
17939
17940         Speedup git-merge-changelog for git cherry-pick.
17941         * lib/git-merge-changelog.c (struct entries_mapping): New type.
17942         (entries_mapping_get): New function, extracted from compute_mapping.
17943         (entries_mapping_reverse_get): New function.
17944         (compute_mapping): Add a 'full' argument. Return the result in a
17945         'struct entries_mapping'.
17946         (main): Update. Access the mappings through entries_mapping_get.
17947         Reported by Eric Blake.
17948
17949 2009-07-02  Bruno Haible  <bruno@clisp.org>
17950
17951         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
17952         best_i.
17953
17954 2009-07-02  Bruno Haible  <bruno@clisp.org>
17955
17956         Speed up approximate search for matching ChangeLog entries.
17957         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
17958         argument. Call fstrcmp_bounded instead of fstrcmp.
17959         (compute_mapping, try_split_merged_entry, main): Update callers.
17960
17961 2009-07-02  Bruno Haible  <bruno@clisp.org>
17962
17963         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
17964
17965 2009-06-30  Bruno Haible  <bruno@clisp.org>
17966
17967         Reduce the number of uc_is_cased calls.
17968         * lib/unicase.h (casing_suffix_context_t): Add
17969         'first_char_except_ignorable' field.
17970         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
17971         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
17972         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
17973         Update initializer.
17974         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
17975         case-ignorable characters.
17976         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
17977         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
17978         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
17979         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
17980         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
17981
17982 2009-06-30  Bruno Haible  <bruno@clisp.org>
17983
17984         Tests for module 'unicase/ignorable'.
17985         * modules/unicase/ignorable-tests: New file.
17986         * tests/unicase/test-ignorable.c: New file, generated by
17987         gen-uni-tables.
17988
17989         Tests for module 'unicase/cased'.
17990         * modules/unicase/cased-tests: New file.
17991         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
17992         * tests/unicase/test-predicate-part1.h: New file, derived from
17993         tests/unictype/test-predicate-part1.h.
17994         * tests/unicase/test-predicate-part2.h: New file, same as
17995         tests/unictype/test-predicate-part2.h.
17996
17997         Fix evaluation of "Before C" condition of FINAL_SIGMA.
17998         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
17999         (output_casing_properties): New function.
18000         (main): Call it.
18001         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
18002         * lib/unicase/cased.c: Include unictype/bitmap.h.
18003         (uc_is_cased): Define through a bitmap lookup.
18004         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
18005         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
18006         (uc_is_case_ignorable): Define through a bitmap lookup.
18007         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
18008         lib/unictype/bitmap.h.
18009         (Depends-on): Add inline. Clean up.
18010         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
18011         lib/unictype/bitmap.h.
18012         (Depends-on): Add inline. Clean up.
18013         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
18014         recognition.
18015         * tests/unicase/test-u16-tolower.c (main): Likewise.
18016         * tests/unicase/test-u32-tolower.c (main): Likewise.
18017
18018 2009-06-30  Bruno Haible  <bruno@clisp.org>
18019
18020         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
18021         * lib/unicase/u16-casemap.c: Likewise.
18022         * lib/unicase/u32-casemap.c: Likewise.
18023
18024 2009-06-29  Bruno Haible  <bruno@clisp.org>
18025
18026         Define u32_casefold as a wrapper around u32_ct_casefold.
18027         * lib/unicase/u32-casefold.c: Update.
18028         * modules/unicase/u32-casefold (Depends-on): Add
18029         unicase/u32-ct-casefold, unicase/empty-prefix-context,
18030         unicase/empty-suffix-context. Clean up.
18031
18032         Define u16_casefold as a wrapper around u16_ct_casefold.
18033         * lib/unicase/u16-casefold.c: Update.
18034         * modules/unicase/u16-casefold (Depends-on): Add
18035         unicase/u16-ct-casefold, unicase/empty-prefix-context,
18036         unicase/empty-suffix-context. Clean up.
18037
18038         Define u8_casefold as a wrapper around u8_ct_casefold.
18039         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
18040         * lib/unicase/u8-casefold.c: Update.
18041         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
18042         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
18043
18044         Define u32_totitle as a wrapper around u32_ct_totitle.
18045         * lib/unicase/u32-totitle.c: Update.
18046         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
18047         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
18048
18049         Define u16_totitle as a wrapper around u16_ct_totitle.
18050         * lib/unicase/u16-totitle.c: Update.
18051         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
18052         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
18053
18054         Define u8_totitle as a wrapper around u8_ct_totitle.
18055         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
18056         functions.
18057         (FUNC): Delegate to U_CT_TOTITLE.
18058         * lib/unicase/u8-totitle.c: Update.
18059         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
18060         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
18061
18062         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
18063         invocation.
18064         * modules/unicase/u32-tolower (Depends-on): Add
18065         unicase/empty-prefix-context, unicase/empty-suffix-context.
18066
18067         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
18068         invocation.
18069         * modules/unicase/u16-tolower (Depends-on): Add
18070         unicase/empty-prefix-context, unicase/empty-suffix-context.
18071
18072         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
18073         * modules/unicase/u8-tolower (Depends-on): Add
18074         unicase/empty-prefix-context, unicase/empty-suffix-context.
18075
18076         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
18077         invocation.
18078         * modules/unicase/u32-toupper (Depends-on): Add
18079         unicase/empty-prefix-context, unicase/empty-suffix-context.
18080
18081         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
18082         invocation.
18083         * modules/unicase/u16-toupper (Depends-on): Add
18084         unicase/empty-prefix-context, unicase/empty-suffix-context.
18085
18086         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
18087         * modules/unicase/u8-toupper (Depends-on): Add
18088         unicase/empty-prefix-context, unicase/empty-suffix-context.
18089
18090         New module 'unicase/u32-ct-casefold'.
18091         * lib/unicase/u32-ct-casefold.c: New file.
18092         * modules/unicase/u32-ct-casefold: New file.
18093
18094         New module 'unicase/u16-ct-casefold'.
18095         * lib/unicase/u16-ct-casefold.c: New file.
18096         * modules/unicase/u16-ct-casefold: New file.
18097
18098         New module 'unicase/u8-ct-casefold'.
18099         * lib/unicase/u8-ct-casefold.c: New file.
18100         * lib/unicase/u-ct-casefold.h: New file, derived from
18101         lib/unicase/u-casefold.h.
18102         * modules/unicase/u8-ct-casefold: New file.
18103
18104         New module 'unicase/u32-ct-totitle'.
18105         * lib/unicase/u32-ct-totitle.c: New file.
18106         * modules/unicase/u32-ct-totitle: New file.
18107
18108         New module 'unicase/u16-ct-totitle'.
18109         * lib/unicase/u16-ct-totitle.c: New file.
18110         * modules/unicase/u16-ct-totitle: New file.
18111
18112         New module 'unicase/u8-ct-totitle'.
18113         * lib/unicase/u8-ct-totitle.c: New file.
18114         * lib/unicase/u-ct-totitle.h: New file, derived from
18115         lib/unicase/u-totitle.h.
18116         * modules/unicase/u8-ct-totitle: New file.
18117
18118         New module 'unicase/u32-ct-tolower'.
18119         * lib/unicase/u32-ct-tolower.c: New file.
18120         * modules/unicase/u32-ct-tolower: New file.
18121
18122         New module 'unicase/u16-ct-tolower'.
18123         * lib/unicase/u16-ct-tolower.c: New file.
18124         * modules/unicase/u16-ct-tolower: New file.
18125
18126         New module 'unicase/u8-ct-tolower'.
18127         * lib/unicase/u8-ct-tolower.c: New file.
18128         * modules/unicase/u8-ct-tolower: New file.
18129
18130         New module 'unicase/u32-ct-toupper'.
18131         * lib/unicase/u32-ct-toupper.c: New file.
18132         * modules/unicase/u32-ct-toupper: New file.
18133
18134         New module 'unicase/u16-ct-toupper'.
18135         * lib/unicase/u16-ct-toupper.c: New file.
18136         * modules/unicase/u16-ct-toupper: New file.
18137
18138         New module 'unicase/u8-ct-toupper'.
18139         * lib/unicase/u8-ct-toupper.c: New file.
18140         * modules/unicase/u8-ct-toupper: New file.
18141
18142         Add context arguments to u*_casemap functions.
18143         * lib/unicase/unicasemap.h: Include unicase.h.
18144         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
18145         suffix_context arguments.
18146         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
18147         functions.
18148         (FUNC): Add prefix_context and suffix_context arguments. Use
18149         uc_is_cased and uc_is_case_ignorable.
18150         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
18151         * lib/unicase/u16-casemap.c: Likewise.
18152         * lib/unicase/u32-casemap.c: Likewise.
18153         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
18154         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
18155         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
18156         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
18157         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
18158         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
18159
18160         New module 'unicase/u32-suffix-context'.
18161         * lib/unicase/u32-suffix-context.c: New file.
18162         * modules/unicase/u32-suffix-context: New file.
18163
18164         New module 'unicase/u16-suffix-context'.
18165         * lib/unicase/u16-suffix-context.c: New file.
18166         * modules/unicase/u16-suffix-context: New file.
18167
18168         New module 'unicase/u8-suffix-context'.
18169         * lib/unicase/u8-suffix-context.c: New file.
18170         * lib/unicase/u-suffix-context.h: New file.
18171         * modules/unicase/u8-suffix-context: New file.
18172
18173         New module 'unicase/empty-suffix-context'.
18174         * lib/unicase/empty-suffix-context.c: New file.
18175         * modules/unicase/empty-suffix-context: New file.
18176
18177         New module 'unicase/u32-prefix-context'.
18178         * lib/unicase/u32-prefix-context.c: New file.
18179         * modules/unicase/u32-prefix-context: New file.
18180
18181         New module 'unicase/u16-prefix-context'.
18182         * lib/unicase/u16-prefix-context.c: New file.
18183         * modules/unicase/u16-prefix-context: New file.
18184
18185         New module 'unicase/u8-prefix-context'.
18186         * lib/unicase/u8-prefix-context.c: New file.
18187         * lib/unicase/u-prefix-context.h: New file.
18188         * lib/unicase/context.h: New file.
18189         * modules/unicase/u8-prefix-context: New file.
18190
18191         New module 'unicase/empty-prefix-context'.
18192         * lib/unicase/empty-prefix-context.c: New file.
18193         * modules/unicase/empty-prefix-context: New file.
18194
18195         New module 'unicase/ignorable'.
18196         * lib/unicase/ignorable.c: New file.
18197         * modules/unicase/ignorable: New file.
18198
18199         New module 'unicase/cased'.
18200         * lib/unicase/caseprop.h: New file.
18201         * lib/unicase/cased.c: New file.
18202         * modules/unicase/cased: New file.
18203
18204         New functions for case mapping of substrings.
18205         * lib/unicase.h (casing_prefix_context_t): New type.
18206         (unicase_empty_prefix_context): New variable.
18207         (u8_casing_prefix_context, u16_casing_prefix_context,
18208         u32_casing_prefix_context, u8_casing_prefixes_context,
18209         u16_casing_prefixes_context, u32_casing_prefixes_context): New
18210         declarations.
18211         (casing_suffix_context_t): New type.
18212         (unicase_empty_suffix_context): New variable.
18213         (u8_casing_suffix_context, u16_casing_suffix_context,
18214         u32_casing_suffix_context, u8_casing_suffixes_context,
18215         u16_casing_suffixes_context, u32_casing_suffixes_context,
18216         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
18217         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
18218         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
18219         declarations.
18220
18221 2009-06-28  Jim Meyering  <meyering@redhat.com>
18222
18223         boostrap: indent only with spaces
18224         * build-aux/bootstrap: Indent only with spaces, never TABs.
18225
18226         bootstrap: split long lines
18227         * build-aux/bootstrap: Keep line length < 80.
18228
18229         bootstrap: sync from coreutils
18230         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
18231         just as autoreconf does.  Verify a list of prerequisite
18232         package-name,version-number pairs if defined in bootstrap.conf.
18233         Refer to README-prereq, if prerequisites are not satisfied.
18234
18235 2009-06-27  Eric Blake  <ebb9@byu.net>
18236
18237         tests: add test for bogus NULL definition
18238         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
18239         * tests/test-stdlib.c: Likewise.
18240         * tests/test-string.c: Likewise.
18241         * tests/test-locale.c: Likewise.
18242         * tests/test-unistd.c: Likewise.
18243         * modules/stdio-tests (Depends-on): Add verify.
18244         * modules/stdlib-tests (Depends-on): Likewise.
18245         * modules/string-tests (Depends-on): Likewise.
18246         * modules/locale-tests (Depends-on): Likewise.
18247         * modules/unistd-tests (Depends-on): Likewise.
18248
18249 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
18250
18251         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
18252         self-explaining comment.
18253         * m4/selinux-selinux-h: Update serial.
18254         (gl_LIBSELINUX): New macro, adding a warning for missing development
18255         packages to code extracted from...
18256         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
18257         Add warning for missing development packages here, too.
18258
18259 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
18260
18261         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
18262
18263 2009-06-25  Eric Blake  <ebb9@byu.net>
18264
18265         version-etc: fix regression
18266         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
18267         gcc.
18268         (version_etc): Use it, to catch bugs with trailing NULL.
18269         * lib/version-etc.c (version_etc_arn): Delete unused argument.
18270         (version_etc_va): Fix logic bug.
18271         * modules/version-etc-tests: Add test.
18272         * tests/test-version-etc.c: New file.
18273         * tests/test-version-etc.sh: Likewise.
18274
18275 2009-06-25  Sam Steingold  <sds@gnu.org>
18276
18277         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
18278         mbtowc declaration.
18279
18280 2009-06-25  Eric Blake  <ebb9@byu.net>
18281
18282         fpurge: migrate into <stdio.h>
18283         * lib/fpurge.h: Delete...
18284         * lib/stdio.in.h (fpurge): ...and declare here, instead.
18285         * lib/fpurge.c (fpurge): Change declaring header.
18286         * modules/fpurge (Files): Drop deleted file.
18287         (Depends-on): Add stdio.
18288         (configure.ac): Set witness.
18289         * modules/stdio (Makefile.am): Support fpurge macros.
18290         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
18291         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
18292         * lib/fflush.c: Update client.
18293         * tests/test-fpurge.c: Likewise.
18294         * NEWS: Mention the change.
18295
18296 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
18297
18298         * lib/argp-version-etc.c (program_authors): Add const
18299         qualifier.
18300         * lib/version-etc.c: Fix typos in the comments.
18301         * modules/argp-version-etc: Depends on version-etc.
18302
18303 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
18304
18305         argp-version-etc: new module.
18306
18307         * lib/argp-version-etc.c: New file.
18308         * lib/argp-version-etc.h: New file.
18309         * modules/argp-version-etc: New file.
18310         * modules/argp-version-etc-tests: New file.
18311         * tests/test-argp-version-etc.c: New test.
18312         * tests/test-argp-version-etc-1.sh: New test.
18313
18314 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
18315
18316         Provide additional interfaces and documentation for version-etc
18317         module.
18318
18319         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
18320         interfaces.
18321         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
18322         prototypes.
18323
18324 2009-06-24  Bruno Haible  <bruno@clisp.org>
18325
18326         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
18327         HAVE_LIB${NAME} macro.
18328         Reported by Sam Steingold <sds@gnu.org>.
18329
18330 2009-06-23  Simon Josefsson  <simon@josefsson.org>
18331
18332         * modules/hash-tests (test_hash_LDADD): Link to libintl when
18333         needed.
18334
18335 2009-06-21  Bruno Haible  <bruno@clisp.org>
18336
18337         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
18338         work.
18339         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
18340         together with LIB${NAME}, LTLIB${NAME}.
18341         Reported by Sam Steingold <sds@gnu.org>.
18342
18343 2009-06-20  Jim Meyering  <meyering@redhat.com>
18344
18345         tests: make sc_require_test_exit_idiom more generic
18346         * top/maint.mk (Exit_witness_file): New overridable variable.
18347         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
18348         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
18349
18350 2009-06-19  Jim Meyering  <meyering@redhat.com>
18351
18352         hash: reverse order of src/dst parameters in an internal interface
18353         * lib/hash.c (transfer_entries): Reverse order of parameters to
18354         put DST before SRC.  Adjust callers.
18355
18356         tests: test-hash: avoid wholesale duplication
18357         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
18358         Instead, use a loop and add a single conditional.
18359
18360         tests: test-hash: allow seed selection via a command line argument
18361         * tests/test-hash.c (get_seed): New function.
18362         (main): Use it.
18363
18364 2009-06-19  Eric Blake  <ebb9@byu.net>
18365
18366         hash: avoid memory leak on allocation failure
18367         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
18368         failure.  Factor repeated algorithm...
18369         (transfer_entries): ...into new helper routine.
18370         (hash_delete): React to hash_rehash return value.
18371
18372         hash: reduce memory pressure in hash_rehash no-op case
18373         * lib/hash.c (next_prime): Avoid overflow.
18374         (hash_initialize): Factor bucket size computation...
18375         (compute_bucket_size): ...into new helper function.
18376         (hash_rehash): Use new function and open coding to reduce memory
18377         pressure, and avoid a memory leak in USE_OBSTACK code.
18378         Reported by Jim Meyering.
18379
18380 2009-06-18  Eric Blake  <ebb9@byu.net>
18381
18382         hash: make rotation more obvious
18383         * modules/hash (Depends-on): Add bitrotate and stdint.
18384         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
18385         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
18386         (SIZE_MAX): Rely on headers for definition.
18387         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
18388         (raw_hasher): Use rotr_sz.
18389         Suggested by Jim Meyering.
18390
18391         hash: fix memory leak in last patch
18392         * lib/hash.c (hash_rehash): Avoid memory leak.
18393
18394         hash: avoid no-op rehashing
18395         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
18396
18397         hash: provide default callback functions
18398         * lib/hash.c (raw_hasher, raw_comparator): New functions.
18399         (hash_initialize): Use them as defaults.
18400         * tests/test-hash.c (main): Test this.
18401
18402         hash: minor optimization
18403         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
18404         when possible.
18405         (hash_initialize): Document this promise.
18406         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
18407         * tests/test-hash.c (hash_compare_strings): Test this.
18408
18409 2009-06-18  Bruno Haible  <bruno@clisp.org>
18410
18411         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
18412         going to be replaced anyway.
18413
18414 2009-06-18  Bruno Haible  <bruno@clisp.org>
18415
18416         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
18417         in one place.
18418         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
18419         be replaced anyway.
18420
18421 2009-06-18  Eric Blake  <ebb9@byu.net>
18422
18423         hash: check for resize before insertion
18424         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
18425         threshold before insertion, so that a pathological hash_rehash
18426         that fills every bucket can still trigger another rehash.
18427
18428 2009-06-18  Jim Meyering  <meyering@redhat.com>
18429
18430         hash-tests: add a loop around the small tests
18431         * tests/test-hash.c (main): Repeat small tests with selected
18432         small initial table sizes.
18433
18434 2009-06-17  Eric Blake  <ebb9@byu.net>
18435
18436         hash: minor cleanups
18437         * lib/hash.h (hash_entry): Make opaque, by moving...
18438         * lib/hash.c (hash_entry): ...here.
18439         (hash_insert): Clarify restrictions on what can be inserted.
18440         (hash_get_next): Clarify when it is safe to remove an element
18441         during traversal.
18442         (check_tuning): Skip verification when tuning is known safe.
18443         (hash_initialize): Clarify restrictions on tuning.
18444
18445 2009-06-17  Jim Meyering  <jim@meyering.net>
18446         and Eric Blake  <ebb9@byu.net>
18447
18448         hash-tests: new module
18449         * modules/hash-tests: New file.
18450         * tests/test-hash.c: New file.
18451
18452 2009-06-17  Eric Blake  <ebb9@byu.net>
18453
18454         strstr-simple: document new module
18455         * MODULES.html.sh: Document new module.
18456
18457         strstr, strcasestr: replace on platforms with broken memchr
18458         * modules/strstr: Split into...
18459         * modules/strstr-simple: ...new module that does not care about
18460         performance, but does care about glibc bug.
18461         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
18462         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
18463         if platform memchr is broken, per Debian bug 521737.
18464         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
18465         memchr.
18466         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
18467         * doc/posix-functions/strstr.texi (strstr): Document the fix.
18468         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
18469         * modules/mountlist (Depends-on): Add strstr-simple.
18470         * modules/gen-uni-tables (Depends-on): Likewise.
18471         * modules/argz (Depends-on): Add strstr.
18472
18473 2009-06-17  Bruno Haible  <bruno@clisp.org>
18474
18475         * modules/posix_spawn-internal (Depends-on): Add errno.
18476
18477 2009-06-17  Bruno Haible  <bruno@clisp.org>
18478
18479         Define missing ESTALE on Interix 3.5.
18480         * lib/errno.in.h (ESTALE): Assign a value if missing.
18481         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
18482         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
18483         missing.
18484         * doc/posix-headers/errno.texi: Mention the Interix bug.
18485         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
18486
18487 2009-06-15  Eric Blake  <ebb9@byu.net>
18488
18489         memchr, memchr2: add valgrind exception
18490         * lib/memchr.valgrind: New file.
18491         * lib/memchr2.valgrind: New file.
18492         * modules/memchr (Files): Distribute valgrind file.
18493         * modules/memchr2 (Files): Likewise.
18494
18495         docs: memchr is no longer obsolete
18496         * MODULES.html.sh: Move memchr from obsolete to string.h section.
18497         * lib/string.in.h (memchr): Simplify logic.
18498
18499 2009-06-14  Jim Meyering  <meyering@redhat.com>
18500
18501         link-follow: fix the "checking..." message to not mention trailing slash
18502         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
18503         never considered trailing slashes.
18504
18505 2009-06-14  Bruno Haible  <bruno@clisp.org>
18506
18507         * m4/memchr.m4: Mention also the bug on IA-64.
18508         * doc/posix-functions/memchr.texi: Likewise.
18509
18510 2009-06-12  Eric Blake  <ebb9@byu.net>
18511
18512         memchr: detect broken x86_64 and alpha implementations
18513         * modules/memchr-tests (Depends-on): Move mmap detection...
18514         * modules/memchr (Depends-on): ...here.
18515         (configure.ac): Set indicator.
18516         * lib/string.in.h (memchr): Declare replacement.
18517         * modules/string (Makefile.am): Trigger replacement.
18518         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
18519         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
18520         bugs.
18521         * doc/posix-functions/memchr.texi (memchr): Document the bug.
18522         * modules/getpagesize (License): Relax license.
18523
18524 2009-06-11  Bruno Haible  <bruno@clisp.org>
18525
18526         * lib/idpriv.h: Add more references.
18527
18528 2009-06-08  Bruno Haible  <bruno@clisp.org>
18529
18530         Tests for module 'idpriv-droptemp'.
18531         * modules/idpriv-droptemp-tests: New file.
18532         * tests/test-idpriv-droptemp.sh: New file.
18533         * tests/test-idpriv-droptemp.su.sh: New file.
18534         * tests/test-idpriv-droptemp.c: New file.
18535
18536         New module 'idpriv-droptemp'.
18537         * lib/idpriv-droptemp.c: New file.
18538         * modules/idpriv-droptemp: New file.
18539
18540 2009-06-08  Bruno Haible  <bruno@clisp.org>
18541
18542         Tests for module 'idpriv-drop'.
18543         * modules/idpriv-drop-tests: New file.
18544         * tests/test-idpriv-drop.sh: New file.
18545         * tests/test-idpriv-drop.su.sh: New file.
18546         * tests/test-idpriv-drop.c: New file.
18547
18548         New module 'idpriv-drop'.
18549         * lib/idpriv.h: New file.
18550         * lib-idpriv-drop.c: New file.
18551         * m4/idpriv.m4: New file.
18552         * modules/idpriv-drop: New file.
18553
18554 2009-06-08  Bruno Haible  <bruno@clisp.org>
18555
18556         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
18557         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18558         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18559         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18560         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18561         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18562         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18563
18564 2009-06-08  Eric Blake  <ebb9@byu.net>
18565
18566         test-strstr: use memory fence, when possible
18567         * tests/test-strstr.c (main): Use memory fence, in order to be
18568         more likely to trigger Debian bug 521737.
18569         * modules/strstr-tests (Files): Pull in additional files.
18570
18571         memchr: no longer obsolete, for wider field testing
18572         * modules/memchr (Status, Notice): Delete, this module is no
18573         longer obsolete.
18574         * modules/vasnprintf (Depends-on): Add memchr.
18575
18576 2009-06-07  Jim Meyering  <meyering@redhat.com>
18577
18578         hash: declare some functions with the warn_unused_result attribute
18579         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
18580
18581 2009-06-07  Bruno Haible  <bruno@clisp.org>
18582
18583         * tests/test-alignof.c: Don't test int64_t if it does not exist.
18584         Reported by Eric Blake.
18585
18586 2009-06-06  Eric Blake  <ebb9@byu.net>
18587
18588         test-alignof: fix typo with long double
18589         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
18590         compiler error.
18591
18592 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
18593
18594         Escape non-texinfo { and }s.
18595         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
18596         markup error.
18597
18598 2009-06-04  Jim Meyering  <meyering@redhat.com>
18599
18600         gitlog-to-changelog: don't infloop on an empty commit log
18601         * build-aux/gitlog-to-changelog: Warn about an empty log message.
18602         Reported by Boris Petersen <transacid@centerim.org>.
18603
18604 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
18605
18606         version-etc: extend for packagers
18607         Add three new configure options, intended for packagers:
18608           --with-packager="packager name"
18609           --with-packager-version="packager-specific version"
18610           --with-packager-bug-reports="packager bug reporting"
18611         An example with coreutils:
18612           $ ./configure \
18613             --with-packager=Gentoo \
18614             --with-packager-bug-report=http://bugs.gentoo.org/ \
18615             --with-packager-version="patchset 1.6"
18616           $ ./src/ls --version | head -n2
18617           ls (GNU coreutils) 7.1-dirty
18618           Packaged by Gentoo (patchset 1.6)
18619         Note that the bug reporting info via --help doesn't show up because
18620         coreutils uses its own custom emit_bug_reporting_address() implementation
18621         in src/system.h.  If it didn't, it'd look like:
18622           $ ./src/ls --help | tail -n4
18623           Report bugs to <bug-coreutils@gnu.org>.
18624           Report Gentoo bugs to <http://bugs.gentoo.org/>.
18625           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
18626           General help using GNU software: <http://www.gnu.org/gethelp/>.
18627         * lib/version-etc.c: Print new information, if provided.
18628         * m4/version-etc.m4: New file.
18629         * modules/version-etc (Files): Add m4/version-etc.m4.
18630         (configure.ac): Add gl_VERSION_ETC.
18631
18632 2009-05-31  Bruno Haible  <bruno@clisp.org>
18633
18634         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
18635         and 'int64_t'.
18636         * modules/alignof-tests (Dependencies): Add stdint.
18637         Reported by Eric Blake.
18638
18639 2009-05-31  Bruno Haible  <bruno@clisp.org>
18640
18641         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
18642         restriction due to compiler bugs.
18643         Reported by Eric Blake.
18644
18645 2009-05-31  Simon Josefsson  <simon@josefsson.org>
18646             Bruno Haible  <bruno@clisp.org>
18647
18648         Fix test-alignof failure.
18649         * lib/alignof.h (alignof_slot): New macro.
18650         (alignof_type): New macro, with the same semantics as the previous
18651         'alignof'.
18652         (alignof): Alias to alignof_slot.
18653         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
18654         check that the results are usable as constant expressions.
18655
18656 2009-05-31  Bruno Haible  <bruno@clisp.org>
18657
18658         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
18659         * tests/test-memchr.c (main): Check that memchr does not read past the
18660         first occurrence of the byte.
18661         * tests/test-strstr.c (main): Update comment.
18662         Suggested by Eric Blake.
18663
18664 2009-05-30  Bruno Haible  <bruno@clisp.org>
18665
18666         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
18667         detail how to use dumpbin.
18668         Reported by David Byron <dbyron@dbyron.com>.
18669
18670 2009-06-02  Simon Josefsson  <simon@josefsson.org>
18671
18672         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
18673
18674 2009-06-02  Simon Josefsson  <simon@josefsson.org>
18675
18676         * m4/manywarnings.m4: Add GCC 4.4 warnings.
18677
18678 2009-05-28  Bruno Haible  <bruno@clisp.org>
18679
18680         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
18681         build-aux/ files.
18682
18683 2009-05-28  Simon Josefsson  <simon@josefsson.org>
18684
18685         * gnulib-tool (func_import): Transform license on build-aux/ files too.
18686
18687 2009-05-27  Simon Josefsson  <simon@josefsson.org>
18688
18689         * gnulib-tool (sed_transform_main_lib_file)
18690         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
18691         regexps.
18692
18693 2009-05-26  Simon Josefsson  <simon@josefsson.org>
18694
18695         * tests/test-strstr.c: Add another self-test.
18696         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
18697         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
18698
18699 2009-05-23  Bruno Haible  <bruno@clisp.org>
18700
18701         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
18702         change.
18703
18704 2009-05-21  Bruno Haible  <bruno@clisp.org>
18705
18706         Simplify use of mode_t varargs.
18707         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
18708         uses 'mode_t' or 'int'.
18709         * lib/openat.c (openat): Likewise.
18710         * lib/open-safer.c (open_safer): Likewise.
18711         * m4/mode_t.m4: New file.
18712         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
18713         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
18714         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
18715         * modules/open (Files): Add m4/mode_t.m4.
18716         * modules/openat (Files): Likewise.
18717         * modules/fcntl-safer (Files): Likewise.
18718         Suggested by Eric Blake.
18719
18720 2009-05-21  Pádraig Brady  <P@draigbrady.com>
18721
18722         * doc/glibc-functions/fallocate.texi: New file.
18723         * doc/gnulib.texi: Include it.
18724
18725 2009-05-21  Eric Blake  <ebb9@byu.net>
18726             Bruno Haible  <bruno@clisp.org>
18727
18728         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
18729         invocations.
18730         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
18731
18732 2009-05-21  Eric Blake  <ebb9@byu.net>
18733             Bruno Haible  <bruno@clisp.org>
18734
18735         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
18736         include_next. Fix of 2008-11-20 commit.
18737         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
18738         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
18739         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
18740         NEXT_MATH_H.
18741         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
18742         instead of NEXT_MATH_H.
18743
18744 2009-05-21  Bruno Haible  <bruno@clisp.org>
18745
18746         Avoid redefinition warnings for SIZE_MAX.
18747         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
18748         Reported by Simon Josefsson.
18749
18750 2009-05-21  Bruno Haible  <bruno@clisp.org>
18751
18752         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
18753         AC_CACHE_VAL.
18754
18755 2009-05-20  Bruno Haible  <bruno@clisp.org>
18756
18757         Make zeroptr.h work on mingw.
18758         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
18759         mprotect.
18760         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
18761         * modules/memchr2-tests (configure.ac): Likewise.
18762         * modules/memcmp-tests (configure.ac): Likewise.
18763         * modules/memmem-tests (configure.ac): Likewise.
18764         * modules/memrchr-tests (configure.ac): Likewise.
18765         Reported by Simon Josefsson.
18766
18767 2009-05-20  Simon Josefsson  <simon@josefsson.org>
18768
18769         * tests/test-glob.c: Include string.h for strcmp prototype.
18770
18771 2009-05-20  Simon Josefsson  <simon@josefsson.org>
18772
18773         * modules/getdelim (Depends-on): Add explicit stdint, although it
18774         was implicitly already pulled in via realloc-posix.
18775         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
18776
18777 2009-05-20  Simon Josefsson  <simon@josefsson.org>
18778
18779         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
18780         G. Christensen" <tgc@jupiterrise.com>.
18781         * m4/sys_socket_h.m4: Check for sa_family_t.
18782         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
18783         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
18784         * tests/test-sys_socket.c: Check that sa_family_t works.
18785
18786 2009-05-18  Eric Blake  <ebb9@byu.net>
18787
18788         maint.mk: allow gnulib_dir in VPATH build
18789         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
18790
18791 2009-05-15  Jim Meyering  <meyering@redhat.com>
18792
18793         maint.mk: Give gnulib_dir a default definition.
18794         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
18795         Thus, most packages no longer need to specify this variable in cfg.mk
18796
18797 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
18798
18799         rename.m4: fix typos that would make non-mingw cross-configure fail
18800         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
18801
18802 2009-05-13  Eric Blake  <ebb9@byu.net>
18803
18804         mmap-anon: avoid out-of-order autoconf expansion
18805         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
18806         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
18807         * modules/memchr-tests (Depends-on): Add extensions.
18808         * modules/memchr2-tests (Depends-on): Add extensions.
18809         * modules/memcmp-tests (Depends-on): Add extensions.
18810         * modules/memmem-tests (Depends-on): Add extensions.
18811         * modules/memrchr-tests (Depends-on): Add extensions.
18812
18813 2009-05-13  Bruno Haible  <bruno@clisp.org>
18814
18815         Make some tests ISO C 99 compliant.
18816         * tests/zerosize-ptr.h: New file.
18817         * tests/test-memchr.c: Include zerosize-ptr.h.
18818         (main): Use a zero-size object pointer instead of NULL.
18819         * tests/test-memchr2.c: Include zerosize-ptr.h.
18820         (main): Use a zero-size object pointer instead of NULL.
18821         * tests/test-memcmp.c: Include zerosize-ptr.h.
18822         (main): Use a zero-size object pointer instead of NULL.
18823         * tests/test-memmem.c: Include zerosize-ptr.h.
18824         (main): Use a zero-size object pointer instead of NULL.
18825         * tests/test-memrchr.c: Include zerosize-ptr.h.
18826         (main): Use a zero-size object pointer instead of NULL.
18827         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
18828         m4/mmap-anon.m4.
18829         (Depends-on): Add getpagesize.
18830         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18831         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
18832         m4/mmap-anon.m4.
18833         (Depends-on): Add getpagesize.
18834         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18835         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
18836         m4/mmap-anon.m4.
18837         (Depends-on): Add getpagesize.
18838         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18839         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
18840         m4/mmap-anon.m4.
18841         (Depends-on): Add getpagesize.
18842         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18843         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
18844         m4/mmap-anon.m4.
18845         (Depends-on): Add getpagesize.
18846         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18847
18848 2009-05-12  Bruno Haible  <bruno@clisp.org>
18849
18850         Tests for module 'alignof'.
18851         * modules/alignof-tests: New file.
18852         * tests/test-alignof.c: New file.
18853
18854 2009-05-12  Bruno Haible  <bruno@clisp.org>
18855
18856         Fix alignof macro.
18857         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
18858         vendor compilers that are always correct.
18859
18860 2009-05-12  Bruno Haible  <bruno@clisp.org>
18861
18862         Make the MAP_ANONYMOUS detection work on HP-UX 11.
18863         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
18864         not whether its fully works.
18865
18866 2009-05-12  Bruno Haible  <bruno@clisp.org>
18867
18868         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
18869
18870 2009-05-12  Jim Meyering  <meyering@redhat.com>
18871
18872         * top/maint.mk: Adjust backslash alignment.
18873
18874 2009-05-11  Simon Josefsson  <simon@josefsson.org>
18875
18876         * top/maint.mk: Make $(srcdir)/build-aux configurable.
18877
18878 2009-05-11  Eric Blake  <ebb9@byu.net>
18879
18880         argp: avoid undefined behavior
18881         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
18882         macros.
18883
18884 2009-05-08  Simon Josefsson  <simon@josefsson.org>
18885
18886         * tests/test-vc-list-files-git.sh: Do git config of user.email and
18887         user.name to prevent git commit from complaining.
18888
18889 2009-05-10  Bruno Haible  <bruno@clisp.org>
18890
18891         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
18892         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
18893         it rewrites every file name only once.
18894         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
18895
18896 2009-05-08  Bruno Haible  <bruno@clisp.org>
18897
18898         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
18899         instead of 'max'.
18900
18901 2009-05-08  Simon Josefsson  <simon@josefsson.org>
18902
18903         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
18904         sockaddr_storage test.
18905
18906 2009-05-07  Simon Josefsson  <simon@josefsson.org>
18907
18908         * modules/sys_socket (Makefile.am): Substitute
18909         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
18910         * m4/sys_socket_h.m4: Check for sockaddr_storage.
18911         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
18912         * tests/test-sys_socket.c: Check sockaddr_storage.
18913
18914 2009-05-08  Bruno Haible  <bruno@clisp.org>
18915
18916         New module 'alignof'.
18917         * lib/alignof.h: New file.
18918         * modules/alignof: New file.
18919
18920 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
18921             Bruno Haible  <bruno@clisp.org>
18922
18923         Fix test-file-has-acl on FreeBSD.
18924         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
18925         mask is implicitly added.
18926         * tests/test-file-has-acl.c: Include <signal.h>.
18927         (main): Terminate the test after 5 seconds.
18928         * modules/acl-tests (configure.ac): Check for alarm function.
18929
18930 2009-05-04  Bruno Haible  <bruno@clisp.org>
18931
18932         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
18933         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
18934         * modules/errno (configure.ac): Drop AC_REQUIRE.
18935         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
18936         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
18937
18938 2009-05-04  Simon Josefsson  <simon@josefsson.org>
18939
18940         * modules/glob-tests: New module.
18941         * tests/test-glob.c: Add.
18942
18943 2009-05-04  Simon Josefsson  <simon@josefsson.org>
18944
18945         * modules/fnmatch-tests: New module.
18946         * tests/test-fnmatch.c: Add.
18947
18948 2009-05-04  Eric Blake  <ebb9@byu.net>
18949
18950         maint: make the new no-submodule-changes rule VPATH-safe
18951         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
18952
18953 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
18954             Bruno Haible  <bruno@clisp.org>
18955
18956         acl: Fix infinite loop on FreeBSD.
18957         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
18958         of return value from acl_get_entry.
18959         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
18960         Likewise.
18961
18962 2009-05-03  Bruno Haible  <bruno@clisp.org>
18963
18964         * lib/acl-internal.h (acl_entries): Clarify return value.
18965         * lib/acl_entries.c (acl_entries): Likewise.
18966
18967 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
18968
18969         Bug fix in acl module.
18970         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
18971
18972 2009-05-03  Bruno Haible  <bruno@clisp.org>
18973
18974         Create gperf-generated file in the source dir, not in the build dir.
18975         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
18976         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
18977         * modules/unicase/locale-language (unicase/locale-languages.h):
18978         Likewise.
18979         * modules/unicase/special-casing (unicase/special-casing-table.h):
18980         Likewise.
18981         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
18982         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
18983         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
18984         Reported by Ralf Wildenhues.
18985
18986 2009-05-03  Bruno Haible  <bruno@clisp.org>
18987
18988         * modules/fnmatch (Description, configure.ac): Taken from
18989         fnmatch-posix.
18990         * modules/fnmatch-posix: Turn into a symbolic reference to the
18991         'fnmatch' module, and deprecate.
18992         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
18993
18994 2009-05-03  Bruno Haible  <bruno@clisp.org>
18995
18996         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
18997         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
18998         Reported by Ralf Wildenhues.
18999
19000 2009-05-04  Simon Josefsson  <simon@josefsson.org>
19001
19002         * m4/fnmatch.m4: Fix fnmatch re-define.
19003
19004 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
19005
19006         priv-set: new module and tests; adapt write-any-file
19007         * lib/priv-set.c: New file.
19008         * lib/priv-set.h: New file.
19009         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
19010         * lib/write-any-file.c: Simplify by using priv-set module.
19011         * m4/priv-set.m4: New file.
19012         * modules/priv-set: New file.
19013         * modules/unlinkdir: Add dependency on priv-set module.
19014         * modules/write-any-file: Likewise.
19015
19016         Tests for module 'priv-set'.
19017         * modules/priv-set-tests: New file.
19018         * tests/test-priv-set.c: New file.
19019
19020 2009-05-03  Jim Meyering  <meyering@redhat.com>
19021             Bruno Haible  <bruno@clisp.org>
19022
19023         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
19024         use the converted UTF-8 variant of the name instead.
19025
19026 2009-05-03  Jim Meyering  <meyering@redhat.com>
19027
19028         tests: tighten some getdate tests
19029         * tests/test-getdate.c (main): Tighten tests: require equality,
19030         not just greater than.  Set TZ envvar to UTC0.
19031
19032 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
19033
19034         getdate: correctly interpret "next monday" when run on a Monday
19035         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
19036         that e.g., "next tues" (when run on a tuesday) results in a date
19037         that is one week in the future, and not today's date.
19038         I.e., add a week when the wday is the same as the current one.
19039         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
19040         and earlier by Martin Bernreuther and Jan Minář.
19041         * tests/test-getdate.c (main): Check that "next DAY" is always in
19042         the future and that "last DAY" is always in the past.
19043
19044 2009-05-02  Jim Meyering  <meyering@redhat.com>
19045
19046         build: ensure that a release build fails when a submodule is unclean
19047         * top/maint.mk (no-submodule-changes): New rule.
19048         (alpha beta major): Depend on it.
19049
19050 2009-05-02  Bruno Haible  <bruno@clisp.org>
19051
19052         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
19053         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
19054         shell variable gl_fnmatch_required to detect which variant is
19055         requested.
19056         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
19057         gl_FUNC_FNMATCH_POSIX.
19058         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
19059         exclude fnmatch-posix.
19060
19061 2009-05-02  Bruno Haible  <bruno@clisp.org>
19062
19063         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
19064         * modules/mbsrtowcs (License): Change to LGPLv2+.
19065         * modules/strnlen1 (License): Likewise.
19066         Reported by Simon Josefsson.
19067
19068 2009-05-02  Bruno Haible  <bruno@clisp.org>
19069
19070         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
19071         "cross".
19072         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
19073         gnulib-tool was called with option --source-base=lib.
19074
19075 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19076
19077         Use automake *-local hooks without commands, for extensibility.
19078         * modules/localcharset (Makefile.am): Rename install-exec-local
19079         rule to install-exec-localcharset, and make it a prerequisite of
19080         install-exec-local.  Likewise, rename the uninstall-local rule to
19081         uninstall-localcharset, and make it a prerequisite of the former.
19082
19083 2009-05-01  Bruno Haible  <bruno@clisp.org>
19084
19085         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
19086         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
19087         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
19088         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
19089         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
19090         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
19091         m4/locale-zh.m4, m4/codeset.m4.
19092
19093         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
19094         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
19095         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
19096         m4/locale-zh.m4.
19097
19098         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
19099         REPLACE_WCRTOMB if mbstate_t must be replaced.
19100         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
19101         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
19102
19103 2009-05-01  Bruno Haible  <bruno@clisp.org>
19104
19105         Avoid compiler warnings when redefining macros defined by <libintl.h>.
19106         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
19107         dngettext, dcngettext, textdomain, bindtextdomain,
19108         bind_textdomain_codeset): Undefine before redefining.
19109
19110 2009-04-30  Bruno Haible  <bruno@clisp.org>
19111
19112         Fix bug introduced on 2009-04-25.
19113         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
19114         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
19115         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
19116         is defined.
19117         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
19118         is defined.
19119         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
19120         is defined.
19121         Reported by Elbert_Pol <elbert.pol@gmail.com>.
19122
19123 2009-04-28  Bruno Haible  <bruno@clisp.org>
19124
19125         Comment tweaks.
19126         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
19127         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
19128         * lib/unicase.h (u*_casexfrm): Likewise.
19129         Reported by Paolo Bonzini.
19130
19131 2009-04-28  Bruno Haible  <bruno@clisp.org>
19132
19133         Fix a compilation error.
19134         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
19135         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
19136         Reported by Jim Meyering.
19137
19138 2009-04-27  Bruno Haible  <bruno@clisp.org>
19139
19140         New module 'libunistring'.
19141         * modules/libunistring: New file.
19142         * m4/libunistring.m4: New file.
19143         * MODULES.html.sh (Unicode string functions): Add it.
19144
19145 2009-04-27  Eric Blake  <ebb9@byu.net>
19146
19147         maint.mk: allow package-specific header to provide <config.h>
19148         * top/maint.mk (sc_require_config_h): New variable.
19149         (sc_require_config_h, sc_require_config_h_first): Use it.
19150
19151 2009-04-27  Simon Josefsson  <simon@josefsson.org>
19152
19153         * top/maint.mk (sc_avoid_if_before_free): Except
19154         useless-if-before-free script.
19155
19156 2009-04-27  Eric Blake  <ebb9@byu.net>
19157
19158         maintainer-makefile: depend on all required helper scripts
19159         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
19160         useless-if-before-free.
19161         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
19162         version, rather than assuming gnulib checkout is available.
19163         Reported by Simen Josefsson.
19164
19165 2009-04-26  Bruno Haible  <bruno@clisp.org>
19166
19167         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
19168         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
19169         "../" or "..".
19170
19171 2009-04-26  Bruno Haible  <bruno@clisp.org>
19172
19173         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
19174         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
19175         AC_LIB_HAVE_LINKFLAGS.
19176
19177 2009-04-26  Bruno Haible  <bruno@clisp.org>
19178
19179         Simplify calling convention of u*_conv_from_encoding.
19180         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
19181         u32_conv_from_encoding): Expect a resultbuf argument and return the
19182         result directly as a pointer.
19183         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
19184         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
19185         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
19186         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
19187         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
19188         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
19189         Update.
19190         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
19191         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
19192         * lib/vasnprintf.c (VASNPRINTF): Update.
19193         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
19194         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
19195         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
19196         * NEWS: Mention the change.
19197
19198 2009-04-26  Bruno Haible  <bruno@clisp.org>
19199
19200         Simplify calling convention of u*_conv_to_encoding.
19201         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
19202         u32_conv_to_encoding): Expect a resultbuf argument and return the
19203         result directly as a pointer.
19204         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
19205         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
19206         freeing scaled_offsets if mem_iconveha failed.
19207         * lib/unicase/u-casexfrm.h (FUNC): Update.
19208         * lib/uninorm/u-normxfrm.h (FUNC): Update.
19209         * lib/vasnprintf.c (VASNPRINTF): Update.
19210         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
19211         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
19212         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
19213         * NEWS: Mention the change.
19214
19215 2009-04-26  Bruno Haible  <bruno@clisp.org>
19216
19217         Avoid test failures on AIX and OSF/1.
19218         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
19219         malloc(0).
19220         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
19221         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
19222         Likewise.
19223         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
19224         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
19225         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
19226         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
19227         * doc/posix-functions/malloc.texi: Document the portability problem
19228         related to malloc(0).
19229
19230 2009-04-26  Bruno Haible  <bruno@clisp.org>
19231
19232         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
19233         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
19234         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
19235
19236 2009-04-25  Bruno Haible  <bruno@clisp.org>
19237
19238         Avoid link error when creating a namespace clean library.
19239         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
19240         as macro with arguments if already defined as an alias.
19241         * lib/signbitf.c (gl_signbitf): Don't undefine.
19242         * lib/signbitd.c (gl_signbitd): Don't undefine.
19243         * lib/signbitl.c (gl_signbitl): Don't undefine.
19244
19245 2009-04-25  Jim Meyering  <meyering@redhat.com>
19246
19247         vc-list-files: fix another quoting bug
19248         * build-aux/vc-list-files: Avoid sed backslash expansion
19249         of pathological directory names.
19250
19251 2009-04-25  Eric Blake  <ebb9@byu.net>
19252
19253         vc-list-files: fix shell quoting error
19254         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
19255         timestamp.
19256
19257 2009-04-25  Jim Meyering  <meyering@redhat.com>
19258
19259         vc-list-files: restore lost functionality with subdir argument
19260         * build-aux/vc-list-files: When given a non-"." sub-directory
19261         argument, substitute the $dir/ prefix back onto each resulting name.
19262         Otherwise, coreutils' root_tests check would fail.
19263
19264 2009-04-24  Eric Blake  <ebb9@byu.net>
19265
19266         vc-list-files: ignore git symlinks
19267         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
19268         than ls-files, to ignore git symlinks.
19269
19270         maint.mk: import improvements from m4
19271         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
19272         (move_if_change): Delete unused macro.
19273         (news-date-check, vc-diff-check): Support VPATH builds.
19274         (announcement): Likewise.  Split --bootstrap-tools list...
19275         (boostrap-tools): ...into separate list, which can be overridden
19276         in cfg.mk.
19277         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
19278         requiring dependency on useless-if-before-free module.
19279         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
19280         Support VPATH builds.
19281
19282 2009-04-24  Jim Meyering  <meyering@redhat.com>
19283
19284         maint.mk: remove coreutils-specific rules and variables
19285         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
19286         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
19287         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
19288
19289         maint.mk: remove obsolete rule
19290         * top/maint.mk (rel-check): Remove rule.
19291         (WGET, WGETFLAGS): Remove now-unused variables.
19292
19293 2009-04-24  Simon Josefsson  <simon@josefsson.org>
19294
19295         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
19296         consistency.
19297
19298         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
19299         '$(PATH_SEPARATOR)' instead of ':'.
19300
19301 2009-04-24  Simon Josefsson  <simon@josefsson.org>
19302
19303         * lib/getopt1.c (main): Use 'const' for static array.
19304
19305 2009-04-24  Simon Josefsson  <simon@josefsson.org>
19306
19307         * top/maint.mk: Sync with coreutils.
19308         * NEWS: Explain incompatibilities.
19309
19310 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19311             Bruno Haible  <bruno@clisp.org>
19312
19313         Fix cross-compilation results.
19314         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
19315         statement, as third argument of AC_TRY_RUN.
19316         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
19317         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
19318         Likewise.
19319         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19320         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
19321         Likewise.
19322         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
19323         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
19324         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
19325
19326 2009-04-20  Bruno Haible  <bruno@clisp.org>
19327
19328         Avoid test failure on mingw.
19329         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
19330
19331 2009-04-20  Bruno Haible  <bruno@clisp.org>
19332
19333         Avoid compilation error on mingw.
19334         * modules/localename-tests (Depends-on): Add locale.
19335
19336 2009-04-19  Bruno Haible  <bruno@clisp.org>
19337
19338         Support for building a shared library on Windows platforms.
19339         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
19340         (main): Test the presence of UNINORM_NFC here.
19341         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
19342         (main): Test the presence of UNINORM_NFD here.
19343         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
19344         (main): Test the presence of UNINORM_NFKC here.
19345         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
19346         (main): Test the presence of UNINORM_NFKD here.
19347
19348 2009-04-19  Bruno Haible  <bruno@clisp.org>
19349
19350         Avoid a compiler warning.
19351         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
19352         Change type of variable 'sequence'.
19353
19354 2009-04-19  Bruno Haible  <bruno@clisp.org>
19355
19356         * modules/configmake (Makefile.am): When the contents of configmake.h
19357         does not change, arrange to preserve its modification time.
19358
19359 2009-04-17  Simon Josefsson  <simon@josefsson.org>
19360
19361         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
19362         gettext domain.
19363
19364 2009-04-16  Jim Meyering  <meyering@redhat.com>
19365
19366         useless-if-before-free: improve conversion code
19367         * build-aux/useless-if-before-free: Adjust code-in-comment to match
19368         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
19369
19370 2009-04-14  Bruno Haible  <bruno@clisp.org>
19371
19372         * modules/fcntl (Depends-on): Add extensions.
19373         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
19374
19375 2009-04-12  Ben Pfaff  <blp@gnu.org>
19376
19377         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
19378         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
19379
19380 2009-03-20  Ben Pfaff  <blp@gnu.org>
19381
19382         Make rename replace existing destinations on Windows.
19383         * m4/rename.m4: Add test for Mingw.
19384         * lib/rename.c: Add rename replacement that uses MoveFileEx with
19385         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
19386         * doc/posix-functions/rename.texi: Document.
19387
19388 2009-04-10  Bruno Haible  <bruno@clisp.org>
19389
19390         New include file "iconveh.h".
19391         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
19392         * lib/striconveh.h: Include it.
19393         (enum iconv_ilseq_handler): Remove definition.
19394         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
19395         striconveh.h.
19396         * lib/striconveha.c: Include striconveh.h.
19397         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
19398         * modules/striconveh (Files): Add lib/iconveh.h.
19399         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
19400         lib/striconveh.h.
19401
19402 2009-04-10  Bruno Haible  <bruno@clisp.org>
19403
19404         * lib/uniconv.h: Update comment.
19405
19406 2009-04-10  Bruno Haible  <bruno@clisp.org>
19407
19408         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
19409         always.
19410         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
19411         * lib/unistr/u16-mbtouc-aux.c: Likewise.
19412         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
19413         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
19414         "unistring-notinline.h", so that the function gets defined always.
19415         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
19416         * lib/unistr/u8-uctomb.c: Likewise.
19417         * lib/unistr/u16-mbtouc.c: Likewise.
19418         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
19419         * lib/unistr/u16-uctomb.c: Likewise.
19420         * lib/unistr/u32-mbtouc.c: Likewise.
19421         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
19422         * lib/unistr/u32-uctomb.c: Likewise.
19423
19424 2009-04-10  Bruno Haible  <bruno@clisp.org>
19425
19426         Mark 'utime' obsolete.
19427         * modules/utime (Status, Notice): New sections.
19428         Suggested by Jim Meyering.
19429
19430         Fix cross-compile guess for utime test.
19431         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
19432         autoconf.
19433         * doc/posix-functions/utime.texi: Give more precisions.
19434         Reported by Jan <ipif@ymail.com>.
19435
19436 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
19437
19438         filevercmp: correct today's change
19439         * lib/filevercmp.c: Also handle coreutils' test inputs.
19440         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
19441
19442         Fix regression in 'filevercmp' module. Thanks Sven Joachim
19443         for reporting it.
19444         * lib/filevercmp.c: Special handle for "", "." and "..".
19445         * tests/test-filevercmp.c: Enlarge the set suite.
19446
19447 2009-04-07  Jim Meyering  <meyering@redhat.com>
19448
19449         useless-if-before-free: show how to remove braced useless free, too
19450         * build-aux/useless-if-before-free: still only in a comment, though.
19451
19452 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
19453
19454         maint.mk: import changes to syntax-check macros from coreutils
19455         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
19456         Use them in the relevant macros.
19457
19458 2009-04-06  Bruno Haible  <bruno@clisp.org>
19459
19460         Fix unportable use of bit-fields.
19461         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
19462         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
19463         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
19464
19465 2009-04-06  Bruno Haible  <bruno@clisp.org>
19466
19467         Avoid test failures on AIX and OSF/1.
19468         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
19469         that malloc(0) = NULL.
19470         * tests/unicase/test-u8-tolower.c (check): Likewise.
19471         * tests/unicase/test-u8-totitle.c (check): Likewise.
19472         * tests/unicase/test-u8-toupper.c (check): Likewise.
19473         * tests/unicase/test-u16-casefold.c (check): Likewise.
19474         * tests/unicase/test-u16-tolower.c (check): Likewise.
19475         * tests/unicase/test-u16-totitle.c (check): Likewise.
19476         * tests/unicase/test-u16-toupper.c (check): Likewise.
19477         * tests/unicase/test-u32-casefold.c (check): Likewise.
19478         * tests/unicase/test-u32-tolower.c (check): Likewise.
19479         * tests/unicase/test-u32-totitle.c (check): Likewise.
19480         * tests/unicase/test-u32-toupper.c (check): Likewise.
19481         * tests/uninorm/test-u8-nfc.c (check): Likewise.
19482         * tests/uninorm/test-u8-nfd.c (check): Likewise.
19483         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
19484         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
19485         * tests/uninorm/test-u16-nfc.c (check): Likewise.
19486         * tests/uninorm/test-u16-nfd.c (check): Likewise.
19487         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
19488         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
19489         * tests/uninorm/test-u32-nfc.c (check): Likewise.
19490         * tests/uninorm/test-u32-nfd.c (check): Likewise.
19491         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
19492         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
19493
19494 2009-04-05  Bruno Haible  <bruno@clisp.org>
19495
19496         Work around an autoconf limitation.
19497         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
19498         comment line if it would be longer than 3 KB.
19499
19500 2009-04-05  Bruno Haible  <bruno@clisp.org>
19501
19502         Avoid test failure with libiconv-1.13.
19503         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
19504         of the expected test results.
19505
19506 2009-04-05  Bruno Haible  <bruno@clisp.org>
19507
19508         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
19509         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
19510         that it should be installed.
19511
19512 2009-04-05  Bruno Haible  <bruno@clisp.org>
19513
19514         * gnulib-tool: New option --copy-file.
19515         (func_usage): Document it.
19516         (func_dest_tmpfilename): Moved out of func_import.
19517         (func_add_file, func_update_file): New functions, extracted from
19518         func_import.
19519         (func_import): Update.
19520
19521 2009-04-05  Karl Berry  <karl@gnu.org>
19522
19523         * README: prominently mention gnulib-tool.
19524         Rearrange sections so getting the code is near the top.
19525
19526 2009-04-05  Bruno Haible  <bruno@clisp.org>
19527
19528         * lib/unicase.h: Mention u*_cmp2.
19529         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
19530         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
19531         * lib/unicase/ulc-casecmp.c: Likewise.
19532         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
19533         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
19534         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
19535         unistr/u8-cmp.
19536         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
19537         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
19538         unistr/u16-cmp.
19539         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
19540         unistr/u32-cmp.
19541
19542         * lib/uninorm.h: Mention u*_cmp2.
19543         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
19544         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
19545         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
19546         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
19547         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
19548         unistr/u8-cmp.
19549         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
19550         unistr/u16-cmp.
19551         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
19552         unistr/u32-cmp.
19553
19554         New module 'unistr/u32-cmp2'.
19555         * lib/unistr/u32-cmp2.c: New file.
19556         * modules/unistr/u32-cmp2: New file.
19557
19558         New module 'unistr/u16-cmp2'.
19559         * lib/unistr/u16-cmp2.c: New file.
19560         * modules/unistr/u16-cmp2: New file.
19561
19562         New module 'unistr/u8-cmp2'.
19563         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
19564         * lib/unistr/u8-cmp2.c: New file.
19565         * lib/unistr/u-cmp2.h: New file.
19566         * modules/unistr/u8-cmp2: New file.
19567
19568 2009-04-05  Bruno Haible  <bruno@clisp.org>
19569
19570         * lib/unictype.h (uc_property_is_valid): New macro.
19571         * tests/unictype/test-pr_byname.c (main): Use it.
19572
19573         * lib/unistr.h: Doc fixes.
19574         * lib/uniconv.h: Doc fixes.
19575         * lib/unictype.h: Doc fixes.
19576
19577 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
19578
19579         Port coreutils 7.2 to Solaris 8.
19580
19581         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
19582         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
19583         for Solaris 8.  This is a bit of a hack, as it means it's the
19584         caller's responsibility to add -lnsl if needed, but most likely it
19585         won't be needed since only getaddrinfo uses this and getaddrinfo
19586         isn't needed on Solaris 8.
19587
19588         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
19589         problem to Solaris 8 encountered with coreutils 7.2, which
19590         resulted in a message "fnmatch.c:292: warning: passing argument 4
19591         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
19592         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
19593
19594 2009-04-03  Simon Josefsson  <simon@josefsson.org>
19595
19596         * m4/ld-version-script.m4: Add FIXME comment.
19597
19598 2009-04-02  Simon Josefsson  <simon@josefsson.org>
19599
19600         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
19601         SOVERSION variable.
19602
19603 2009-04-02  Bruno Haible  <bruno@clisp.org>
19604
19605         * Makefile (info, html, dvi, pdf): Combine the rules.
19606         Suggested by Jim Meyering.
19607
19608 2009-04-01  Bruno Haible  <bruno@clisp.org>
19609
19610         * Makefile (info, html, dvi, pdf): New targets.
19611         Reported by Reuben Thomas <rrt@sc3d.org>.
19612
19613 2009-04-01  Bruno Haible  <bruno@clisp.org>
19614
19615         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
19616         can be put into PATH.
19617         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
19618
19619 2009-04-01  Bruno Haible  <bruno@clisp.org>
19620
19621         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
19622
19623 2009-04-01  Bruno Haible  <bruno@clisp.org>
19624
19625         Rename module 'visibility'.
19626         * modules/lib-symbol-visibility: Renamed from modules/visibility.
19627         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
19628         * doc/gnulib.texi: Update.
19629         * MODULES.html.sh (Misc): Update.
19630         * NEWS: Mention the change.
19631
19632 2009-04-01  Simon Josefsson  <simon@josefsson.org>
19633
19634         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
19635         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
19636         Eric Blake <ebb9@byu.net> for review.
19637         * MODULES.html.sh: Add lib-msvc-compat.
19638         * doc/gnulib.texi: Link to new section.
19639         * m4/ld-output-def.m4: New file.
19640         * doc/ld-output-def.texi: New file.
19641
19642 2009-04-01  Simon Josefsson  <simon@josefsson.org>
19643
19644         Rename ld-version-script to lib-symbol-versions.  Suggested by
19645         Bruno Haible <bruno@clisp.org>.
19646         * modules/ld-version-script: Renamed to lib-symbol-versions.
19647         * doc/ld-version-script.texi: Fix module name.
19648         * MODULES.html.sh: Add lib-symbol-versions.
19649
19650 2009-03-31  Simon Josefsson  <simon@josefsson.org>
19651
19652         * modules/u64-tests: New file.
19653         * tests/test-u64.c: New file.
19654
19655 2009-03-04  Simon Josefsson  <simon@josefsson.org>
19656
19657         * MODULES.html.sh: Mention u64.
19658         * modules/u64: New module.
19659         * modules/crypto/sha512: Depend on u64 module instead of providing
19660         u64.h.
19661
19662 2009-03-27  Eric Blake  <ebb9@byu.net>
19663
19664         test-strerror: make debugging EAI_SYSTEM easier
19665         * modules/getaddrinfo-tests (Depends-on): Add strerror.
19666         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
19667         failure was EAI_SYSTEM.
19668
19669 2009-03-25  Bruno Haible  <bruno@clisp.org>
19670
19671         Fix a problem with --enable-relocatable on Solaris 7.
19672         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
19673         since 2008-02-24.
19674
19675 2009-03-25  Eric Blake  <ebb9@byu.net>
19676
19677         test-sockets: avoid gcc warning
19678         * tests/test-sockets.c (main): Silence compiler warning.
19679
19680 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
19681
19682         New modules nproc, pthread, contributed by Glen Lenker.
19683
19684         * MODULES.html.sh: Add pthread, nproc.
19685         * lib/nproc.c: New file.
19686         * lib/nproc.h: New file.
19687         * lib/pthread.in.h: New file.
19688         * m4/pthread.m4: New file.
19689         * modules/nproc: New file.
19690         * modules/pthread: New file.
19691
19692 2009-03-24  Simon Josefsson  <simon@josefsson.org>
19693
19694         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
19695         New variable.
19696
19697 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
19698
19699         filevercmp: handle simple~ and numbered.~3~ backup suffixes
19700         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
19701         * tests/test-filevercmp.c: Add tests for backup suffixes.
19702
19703 2009-03-24  Simon Josefsson  <simon@josefsson.org>
19704
19705         * modules/stdlib (Depends-on): Add stdint, needed when defining
19706         struct random_data on, for example, HP-UX 10.20.  Reported by
19707         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19708
19709 2009-03-24  Simon Josefsson  <simon@josefsson.org>
19710
19711         * lib/readline.c (readline): Call fflush on stdout after printing
19712         prompt.
19713
19714 2009-03-20  Bruno Haible  <bruno@clisp.org>
19715
19716         Remove dependency from 'close' module to -lws2_32 on native Windows.
19717         * lib/close-hook.h: New file.
19718         * lib/close-hook.c: New file.
19719         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
19720         w32sock.h.
19721         (_gl_close_fd_maybe_socket): Remove function.
19722         (rpl_close): Invoke execute_all_close_hooks instead of
19723         _gl_close_fd_maybe_socket.
19724         * lib/sockets.c: Include close-hook.h, w32sock.h.
19725         (close_fd_maybe_socket): New function, essentially from lib/close.c.
19726         (close_sockets_hook): New variable.
19727         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
19728         (gl_sockets_cleanup): Unregister it.
19729         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
19730         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
19731         * modules/close-hook: New file.
19732         * modules/close (Files): Remove lib/w32sock.h.
19733         (Depends-on): Add close-hook.
19734         (Link): Remove section.
19735         * modules/sockets (Files): Add lib/w32sock.h.
19736         (Depends-on): Add close-hook.
19737         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
19738         invocation.
19739         * NEWS: Mention that LIB_CLOSE is gone.
19740
19741 2009-03-23  Eric Blake  <ebb9@byu.net>
19742
19743         signal-tests: test previous patch
19744         * tests/test-signal.c: New file.
19745         * modules/signal-tests: Likewise.
19746
19747         signal.h: always support 'volatile sig_atomic_t'
19748         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
19749         (gl_SIGNAL_H_DEFAULTS): Add a default.
19750         * modules/signal (Makefile.am): Substitute if needed.
19751         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
19752         users can blindly add volatile.
19753         * doc/posix-headers/signal.texi (signal.h): Document it.
19754         Reported by Matthew Woehlke.
19755
19756 2009-03-23  Jim Meyering  <meyering@redhat.com>
19757
19758         pathmax: PATH_MAX: use pathconf only when available
19759         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
19760         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
19761         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
19762         This avoids a link failure in a PSP cross-compilation environment
19763         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
19764
19765         * lib/vasnprintf.c (divide): Fix typo in comment.
19766
19767 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19768
19769         * gnulib-tool (func_filter_filelist): Fix comment.
19770
19771 2009-03-20  Bruno Haible  <bruno@clisp.org>
19772
19773         Make sockets.h self-contained.
19774         * lib/sockets.c: Include sockets.h first.
19775         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
19776
19777 2009-03-19  Eric Blake  <ebb9@byu.net>
19778
19779         doc: mention more functions added in cygwin 1.7.0
19780         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
19781         addition.
19782         * doc/posix-functions/log2f.texi: Likewise.
19783
19784 2009-03-19  Jim Meyering  <meyering@redhat.com>
19785
19786         fsusage: avoid syntax error due to statement-before-declaration
19787         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
19788         after all declarations.  Reported by Matthew Woehlke in
19789         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
19790
19791 2009-03-18  Eric Blake  <ebb9@byu.net>
19792
19793         build-aux/compile: sync from automake
19794         * build-aux/compile: New file, from automake.
19795         * config/srclist.txt: Mention build-aux/compile.
19796
19797 2009-03-17  Bruno Haible  <bruno@clisp.org>
19798
19799         * lib/git-merge-changelog.c: Fix typo in comment.
19800         Reported by Reuben Thomas <rrt@sc3d.org>.
19801
19802 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
19803
19804         * m4/regex.m4: update and improve help for
19805         --without-included-regex.
19806
19807 2009-03-17  Simon Josefsson  <simon@josefsson.org>
19808
19809         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
19810         failure on missing include files.
19811
19812 2009-03-17  Eric Blake  <ebb9@byu.net>
19813
19814         doc: mention more functions added in cygwin 1.7.0
19815         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
19816         addition.
19817         * doc/posix-functions/fwscanf.texi: Likewise.
19818         * doc/posix-functions/swprintf.texi: Likewise.
19819         * doc/posix-functions/swscanf.texi: Likewise.
19820         * doc/posix-functions/vfwprintf.texi: Likewise.
19821         * doc/posix-functions/vfwscanf.texi: Likewise.
19822         * doc/posix-functions/vswprintf.texi: Likewise.
19823         * doc/posix-functions/vswscanf.texi: Likewise.
19824         * doc/posix-functions/vwprintf.texi: Likewise.
19825         * doc/posix-functions/vwscanf.texi: Likewise.
19826         * doc/posix-functions/wcscasecmp.texi: Likewise.
19827         * doc/posix-functions/wcsdup.texi: Likewise.
19828         * doc/posix-functions/wcsftime.texi: Likewise.
19829         * doc/posix-functions/wcsncasecmp.texi: Likewise.
19830         * doc/posix-functions/wprintf.texi: Likewise.
19831         * doc/posix-functions/wscanf.texi: Likewise.
19832         * doc/glibc-functions/gethostbyname2.texi: Likewise.
19833
19834 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19835
19836         maint.mk: really add $(AM_MAKEFLAGS)
19837         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
19838         was inadvertently omitted in the last commit.
19839         Spotted by Bruno Haible.
19840
19841         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
19842         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
19843         $(AM_MAKEFLAGS)' rather than plain `make'.
19844
19845         gnulib-tool: execute $MAKE not make
19846         * gnulib-tool: Default $MAKE to 'make'.
19847         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
19848         than make.  Initialize $MAKE in the do-autobuild script.
19849
19850         gnulib-tool: use $MAKE not make in generated files
19851         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
19852         make, in generated files.  Initialize $MAKE in the do-autobuild
19853         script.
19854
19855         * top/GNUmakefile (_have-git-version-gen): Fix typo.
19856
19857         GNUmakefile: disable parallelism only for multiple, recursive targets
19858         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
19859         additions in the Makefile.
19860         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
19861         by Automake.
19862         (.NOTPARALLEL): Only disable parallel builds if multiple targets
19863         are listed on the command line and at least one of them is
19864         listed in $(ALL_RECURSIVE_TARGETS).
19865
19866 2009-03-14  Bruno Haible  <bruno@clisp.org>
19867
19868         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
19869         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
19870         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
19871         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
19872         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
19873         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
19874         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
19875         unistr/u8-uctomb.
19876         * modules/unistr/u8-strchr (Depends-on): Likewise.
19877         * modules/unistr/u8-strrchr (Depends-on): Likewise.
19878         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
19879         unistr/u16-uctomb.
19880         * modules/unistr/u16-strchr (Depends-on): Likewise.
19881         * modules/unistr/u16-strrchr (Depends-on): Likewise.
19882
19883 2009-03-12  Bruno Haible  <bruno@clisp.org>
19884
19885         Work around select() bug on Interix 3.5.
19886         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
19887         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
19888         * m4/select.m4: New file.
19889         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
19890         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
19891         * modules/select (Files): Add m4/select.m4.
19892         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
19893         * modules/nanosleep (Depends-on): Add select.
19894         * modules/poll (Depends-on): Likewise.
19895         * doc/posix-functions/select.texi: Mention the Interix bug.
19896         Reported by Markus Duft <mduft@gentoo.org>.
19897
19898         * lib/select.c: Renamed from lib/winsock-select.c.
19899         * modules/select (Files): Add lib/select.c, remove
19900         lib/winsock-select.c.
19901         (configure.ac): Update.
19902
19903 2009-03-12  Jim Meyering  <meyering@redhat.com>
19904
19905         avoid gcc warnings about unused macro definitions
19906         * lib/readtokens.c (STREQ): Remove unused definition.
19907         * lib/xmalloc.c (SIZE_MAX): Likewise.
19908         * lib/openat-die.c (N_): Likewise.
19909         * lib/mountlist.c (SIZE_MAX): Remove definition.
19910         Instead, include <stdint.h>.
19911         * lib/readutmp.c: Likewise.
19912         * modules/readutmp (Depends-on): Add stdint.
19913         * modules/mountlist (Depends-on): Add stdint.
19914         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
19915
19916 2009-03-10  Bruno Haible  <bruno@clisp.org>
19917
19918         Tests for module 'mbmemcasecoll'.
19919         * modules/mbmemcasecoll-tests: New file.
19920         * tests/test-mbmemcasecoll1.sh: New file.
19921         * tests/test-mbmemcasecoll2.sh: New file.
19922         * tests/test-mbmemcasecoll3.sh: New file.
19923         * tests/test-mbmemcasecoll.c: New file.
19924
19925         New module 'mbmemcasecoll'.
19926         * lib/mbmemcasecoll.h: New file.
19927         * lib/mbmemcasecoll.c: New file.
19928         * modules/mbmemcasecoll: New file.
19929
19930         * tests/test-mbmemcasecmp.h: New file, extracted from
19931         tests/test-mbmemcasecmp.c.
19932         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
19933         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
19934         (main): Update.
19935         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
19936
19937 2009-03-09  Bruno Haible  <bruno@clisp.org>
19938
19939         Tests for module 'mbmemcasecmp'.
19940         * modules/mbmemcasecmp-tests: New file.
19941         * tests/test-mbmemcasecmp1.sh: New file.
19942         * tests/test-mbmemcasecmp2.sh: New file.
19943         * tests/test-mbmemcasecmp3.sh: New file.
19944         * tests/test-mbmemcasecmp.c: New file.
19945
19946         New module 'mbmemcasecmp'.
19947         * lib/mbmemcasecmp.h: New file.
19948         * lib/mbmemcasecmp.c: New file.
19949         * modules/mbmemcasecmp: New file.
19950
19951 2009-03-09  Bruno Haible  <bruno@clisp.org>
19952
19953         Tests for module 'unicase/ulc-casecoll'.
19954         * modules/unicase/ulc-casecoll-tests: New file.
19955         * tests/unicase/test-ulc-casecoll1.sh: New file.
19956         * tests/unicase/test-ulc-casecoll2.sh: New file.
19957         * tests/unicase/test-ulc-casecoll.c: New file.
19958
19959         New module 'unicase/ulc-casecoll'.
19960         * lib/unicase.h (ulc_casecoll): New declaration.
19961         * lib/unicase/ulc-casecoll.c: New file.
19962         * modules/unicase/ulc-casecoll: New file.
19963
19964         New module 'unicase/ulc-casexfrm'.
19965         * lib/unicase.h (ulc_casexfrm): New declaration.
19966         * lib/unicase/ulc-casexfrm.c: New file.
19967         * modules/unicase/ulc-casexfrm: New file.
19968
19969 2009-03-09  Bruno Haible  <bruno@clisp.org>
19970
19971         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
19972         invocations.
19973
19974         * m4/mbscasecmp.m4: Remove file.
19975         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
19976         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
19977
19978         * m4/mbscasestr.m4: Remove file.
19979         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
19980         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
19981
19982         * m4/mbschr.m4: Remove file.
19983         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
19984         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
19985
19986         * m4/mbscspn.m4: Remove file.
19987         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
19988         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
19989
19990         * m4/mbslen.m4: Remove file.
19991         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
19992         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
19993
19994         * m4/mbsncasecmp.m4: Remove file.
19995         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
19996         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
19997
19998         * m4/mbsnlen.m4: Remove file.
19999         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
20000         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
20001
20002         * m4/mbspbrk.m4: Remove file.
20003         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
20004         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
20005
20006         * m4/mbspcasecmp.m4: Remove file.
20007         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
20008         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
20009
20010         * m4/mbsrchr.m4: Remove file.
20011         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
20012         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
20013
20014         * m4/mbssep.m4: Remove file.
20015         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
20016         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
20017
20018         * m4/mbsspn.m4: Remove file.
20019         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
20020         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
20021
20022         * m4/mbsstr.m4: Remove file.
20023         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
20024         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
20025
20026         * m4/mbstok_r.m4: Remove file.
20027         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
20028         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
20029
20030         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
20031
20032         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
20033         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
20034
20035         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
20036
20037 2009-03-08  Bruno Haible  <bruno@clisp.org>
20038
20039         Tests for module 'unicase/ulc-casecmp'.
20040         * modules/unicase/ulc-casecmp-tests: New file.
20041         * tests/unicase/test-ulc-casecmp1.sh: New file.
20042         * tests/unicase/test-ulc-casecmp2.sh: New file.
20043         * tests/unicase/test-ulc-casecmp.c: New file.
20044
20045         New module 'unicase/ulc-casecmp'.
20046         * lib/unicase.h (ulc_casecmp): New declaration.
20047         * lib/unicase/ulc-casecmp.c: New file.
20048         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
20049         'const SRC_UNIT *'.
20050         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
20051         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
20052         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
20053         * modules/unicase/ulc-casecmp: New file.
20054
20055         Tests for module 'unicase/u32-is-cased'.
20056         * modules/unicase/u32-is-cased-tests: New file.
20057         * tests/unicase/test-u32-is-cased.c: New file.
20058
20059         Tests for module 'unicase/u16-is-cased'.
20060         * modules/unicase/u16-is-cased-tests: New file.
20061         * tests/unicase/test-u16-is-cased.c: New file.
20062
20063         Tests for module 'unicase/u8-is-cased'.
20064         * modules/unicase/u8-is-cased-tests: New file.
20065         * tests/unicase/test-u8-is-cased.c: New file.
20066         * tests/unicase/test-is-cased.h: New file.
20067
20068         New module 'unicase/u32-is-cased'.
20069         * lib/unicase/u32-is-cased.c: New file.
20070         * modules/unicase/u32-is-cased: New file.
20071
20072         New module 'unicase/u16-is-cased'.
20073         * lib/unicase/u16-is-cased.c: New file.
20074         * modules/unicase/u16-is-cased: New file.
20075
20076         New module 'unicase/u8-is-cased'.
20077         * lib/unicase/u8-is-cased.c: New file.
20078         * lib/unicase/u-is-cased.h: New file.
20079         * modules/unicase/u8-is-cased: New file.
20080
20081         Tests for module 'unicase/u32-is-casefolded'.
20082         * modules/unicase/u32-is-casefolded-tests: New file.
20083         * tests/unicase/test-u32-is-casefolded.c: New file.
20084
20085         Tests for module 'unicase/u16-is-casefolded'.
20086         * modules/unicase/u16-is-casefolded-tests: New file.
20087         * tests/unicase/test-u16-is-casefolded.c: New file.
20088
20089         Tests for module 'unicase/u8-is-casefolded'.
20090         * modules/unicase/u8-is-casefolded-tests: New file.
20091         * tests/unicase/test-u8-is-casefolded.c: New file.
20092         * tests/unicase/test-is-casefolded.h: New file.
20093
20094         New module 'unicase/u32-is-casefolded'.
20095         * lib/unicase/u32-is-casefolded.c: New file.
20096         * modules/unicase/u32-is-casefolded: New file.
20097
20098         New module 'unicase/u16-is-casefolded'.
20099         * lib/unicase/u16-is-casefolded.c: New file.
20100         * modules/unicase/u16-is-casefolded: New file.
20101
20102         New module 'unicase/u8-is-casefolded'.
20103         * lib/unicase/u8-is-casefolded.c: New file.
20104         * modules/unicase/u8-is-casefolded: New file.
20105
20106         Tests for module 'unicase/u32-is-titlecase'.
20107         * modules/unicase/u32-is-titlecase-tests: New file.
20108         * tests/unicase/test-u32-is-titlecase.c: New file.
20109
20110         Tests for module 'unicase/u16-is-titlecase'.
20111         * modules/unicase/u16-is-titlecase-tests: New file.
20112         * tests/unicase/test-u16-is-titlecase.c: New file.
20113
20114         Tests for module 'unicase/u8-is-titlecase'.
20115         * modules/unicase/u8-is-titlecase-tests: New file.
20116         * tests/unicase/test-u8-is-titlecase.c: New file.
20117         * tests/unicase/test-is-titlecase.h: New file.
20118
20119         New module 'unicase/u32-is-titlecase'.
20120         * lib/unicase/u32-is-titlecase.c: New file.
20121         * modules/unicase/u32-is-titlecase: New file.
20122
20123         New module 'unicase/u16-is-titlecase'.
20124         * lib/unicase/u16-is-titlecase.c: New file.
20125         * modules/unicase/u16-is-titlecase: New file.
20126
20127         New module 'unicase/u8-is-titlecase'.
20128         * lib/unicase/u8-is-titlecase.c: New file.
20129         * modules/unicase/u8-is-titlecase: New file.
20130
20131         Tests for module 'unicase/u32-is-lowercase'.
20132         * modules/unicase/u32-is-lowercase-tests: New file.
20133         * tests/unicase/test-u32-is-lowercase.c: New file.
20134
20135         Tests for module 'unicase/u16-is-lowercase'.
20136         * modules/unicase/u16-is-lowercase-tests: New file.
20137         * tests/unicase/test-u16-is-lowercase.c: New file.
20138
20139         Tests for module 'unicase/u8-is-lowercase'.
20140         * modules/unicase/u8-is-lowercase-tests: New file.
20141         * tests/unicase/test-u8-is-lowercase.c: New file.
20142         * tests/unicase/test-is-lowercase.h: New file.
20143
20144         New module 'unicase/u32-is-lowercase'.
20145         * lib/unicase/u32-is-lowercase.c: New file.
20146         * modules/unicase/u32-is-lowercase: New file.
20147
20148         New module 'unicase/u16-is-lowercase'.
20149         * lib/unicase/u16-is-lowercase.c: New file.
20150         * modules/unicase/u16-is-lowercase: New file.
20151
20152         New module 'unicase/u8-is-lowercase'.
20153         * lib/unicase/u8-is-lowercase.c: New file.
20154         * modules/unicase/u8-is-lowercase: New file.
20155
20156         Tests for module 'unicase/u32-is-uppercase'.
20157         * modules/unicase/u32-is-uppercase-tests: New file.
20158         * tests/unicase/test-u32-is-uppercase.c: New file.
20159
20160         Tests for module 'unicase/u16-is-uppercase'.
20161         * modules/unicase/u16-is-uppercase-tests: New file.
20162         * tests/unicase/test-u16-is-uppercase.c: New file.
20163
20164         Tests for module 'unicase/u8-is-uppercase'.
20165         * modules/unicase/u8-is-uppercase-tests: New file.
20166         * tests/unicase/test-u8-is-uppercase.c: New file.
20167         * tests/unicase/test-is-uppercase.h: New file.
20168
20169         New module 'unicase/u32-is-uppercase'.
20170         * lib/unicase/u32-is-uppercase.c: New file.
20171         * modules/unicase/u32-is-uppercase: New file.
20172
20173         New module 'unicase/u16-is-uppercase'.
20174         * lib/unicase/u16-is-uppercase.c: New file.
20175         * modules/unicase/u16-is-uppercase: New file.
20176
20177         New module 'unicase/u8-is-uppercase'.
20178         * lib/unicase/u8-is-uppercase.c: New file.
20179         * modules/unicase/u8-is-uppercase: New file.
20180
20181         New module 'unicase/u32-is-invariant'.
20182         * lib/unicase/u32-is-invariant.c: New file.
20183         * modules/unicase/u32-is-invariant: New file.
20184
20185         New module 'unicase/u16-is-invariant'.
20186         * lib/unicase/u16-is-invariant.c: New file.
20187         * modules/unicase/u16-is-invariant: New file.
20188
20189         New module 'unicase/u8-is-invariant'.
20190         * lib/unicase/u8-is-invariant.c: New file.
20191         * lib/unicase/invariant.h: New file.
20192         * lib/unicase/u-is-invariant.h: New file.
20193         * modules/unicase/u8-is-invariant: New file.
20194
20195         Tests for module 'unicase/u32-casecoll'.
20196         * modules/unicase/u32-casecoll-tests: New file.
20197         * tests/unicase/test-u32-casecoll.c: New file.
20198
20199         Tests for module 'unicase/u16-casecoll'.
20200         * modules/unicase/u16-casecoll-tests: New file.
20201         * tests/unicase/test-u16-casecoll.c: New file.
20202
20203         Tests for module 'unicase/u8-casecoll'.
20204         * modules/unicase/u8-casecoll-tests: New file.
20205         * tests/unicase/test-u8-casecoll.c: New file.
20206
20207         New module 'unicase/u32-casecoll'.
20208         * lib/unicase/u32-casecoll.c: New file.
20209         * modules/unicase/u32-casecoll: New file.
20210
20211         New module 'unicase/u16-casecoll'.
20212         * lib/unicase/u16-casecoll.c: New file.
20213         * modules/unicase/u16-casecoll: New file.
20214
20215         New module 'unicase/u8-casecoll'.
20216         * lib/unicase/u8-casecoll.c: New file.
20217         * lib/unicase/u-casecoll.h: New file.
20218         * modules/unicase/u8-casecoll: New file.
20219
20220         New module 'unicase/u32-casexfrm'.
20221         * lib/unicase/u32-casexfrm.c: New file.
20222         * modules/unicase/u32-casexfrm: New file.
20223
20224         New module 'unicase/u16-casexfrm'.
20225         * lib/unicase/u16-casexfrm.c: New file.
20226         * modules/unicase/u16-casexfrm: New file.
20227
20228         New module 'unicase/u8-casexfrm'.
20229         * lib/unicase/u8-casexfrm.c: New file.
20230         * lib/unicase/u-casexfrm.h: New file.
20231         * modules/unicase/u8-casexfrm: New file.
20232
20233         Tests for module 'unicase/u32-casecmp'.
20234         * modules/unicase/u32-casecmp-tests: New file.
20235         * tests/unicase/test-u32-casecmp.c: New file.
20236
20237         Tests for module 'unicase/u16-casecmp'.
20238         * modules/unicase/u16-casecmp-tests: New file.
20239         * tests/unicase/test-u16-casecmp.c: New file.
20240
20241         Tests for module 'unicase/u8-casecmp'.
20242         * modules/unicase/u8-casecmp-tests: New file.
20243         * tests/unicase/test-u8-casecmp.c: New file.
20244         * tests/unicase/test-casecmp.h: New file.
20245
20246         New module 'unicase/u32-casecmp'.
20247         * lib/unicase/u32-casecmp.c: New file.
20248         * modules/unicase/u32-casecmp: New file.
20249
20250         New module 'unicase/u16-casecmp'.
20251         * lib/unicase/u16-casecmp.c: New file.
20252         * modules/unicase/u16-casecmp: New file.
20253
20254         New module 'unicase/u8-casecmp'.
20255         * lib/unicase/u8-casecmp.c: New file.
20256         * lib/unicase/u-casecmp.h: New file.
20257         * modules/unicase/u8-casecmp: New file.
20258
20259         Tests for module 'unicase/u32-casefold'.
20260         * modules/unicase/u32-casefold-tests: New file.
20261         * tests/unicase/test-u32-casefold.c: New file.
20262
20263         Tests for module 'unicase/u16-casefold'.
20264         * modules/unicase/u16-casefold-tests: New file.
20265         * tests/unicase/test-u16-casefold.c: New file.
20266
20267         Tests for module 'unicase/u8-casefold'.
20268         * modules/unicase/u8-casefold-tests: New file.
20269         * tests/unicase/test-u8-casefold.c: New file.
20270
20271         New module 'unicase/u32-casefold'.
20272         * lib/unicase/u32-casefold.c: New file.
20273         * modules/unicase/u32-casefold: New file.
20274
20275         New module 'unicase/u16-casefold'.
20276         * lib/unicase/u16-casefold.c: New file.
20277         * modules/unicase/u16-casefold: New file.
20278
20279         New module 'unicase/u8-casefold'.
20280         * lib/unicase/u8-casefold.c: New file.
20281         * lib/unicase/u-casefold.h: New file.
20282         * modules/unicase/u8-casefold: New file.
20283
20284         New module 'unicase/tocasefold'.
20285         * lib/unicase/casefold.h: New file.
20286         * lib/unicase/tocasefold.c: New file.
20287         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
20288         * modules/unicase/tocasefold: New file.
20289
20290         Tests for module 'unicase/u32-totitle'.
20291         * modules/unicase/u32-totitle-tests: New file.
20292         * tests/unicase/test-u32-totitle.c: New file.
20293
20294         Tests for module 'unicase/u16-totitle'.
20295         * modules/unicase/u16-totitle-tests: New file.
20296         * tests/unicase/test-u16-totitle.c: New file.
20297
20298         Tests for module 'unicase/u8-totitle'.
20299         * modules/unicase/u8-totitle-tests: New file.
20300         * tests/unicase/test-u8-totitle.c: New file.
20301
20302         New module 'unicase/u32-totitle'.
20303         * lib/unicase/u32-totitle.c: New file.
20304         * modules/unicase/u32-totitle: New file.
20305
20306         New module 'unicase/u16-totitle'.
20307         * lib/unicase/u16-totitle.c: New file.
20308         * modules/unicase/u16-totitle: New file.
20309
20310         New module 'unicase/u8-totitle'.
20311         * lib/unicase/u8-totitle.c: New file.
20312         * lib/unicase/u-totitle.h: New file.
20313         * modules/unicase/u8-totitle: New file.
20314
20315         Tests for module 'unicase/u32-tolower'.
20316         * modules/unicase/u32-tolower-tests: New file.
20317         * tests/unicase/test-u32-tolower.c: New file.
20318
20319         Tests for module 'unicase/u16-tolower'.
20320         * modules/unicase/u16-tolower-tests: New file.
20321         * tests/unicase/test-u16-tolower.c: New file.
20322
20323         Tests for module 'unicase/u8-tolower'.
20324         * modules/unicase/u8-tolower-tests: New file.
20325         * tests/unicase/test-u8-tolower.c: New file.
20326
20327         New module 'unicase/u32-tolower'.
20328         * lib/unicase/u32-tolower.c: New file.
20329         * modules/unicase/u32-tolower: New file.
20330
20331         New module 'unicase/u16-tolower'.
20332         * lib/unicase/u16-tolower.c: New file.
20333         * modules/unicase/u16-tolower: New file.
20334
20335         New module 'unicase/u8-tolower'.
20336         * lib/unicase/u8-tolower.c: New file.
20337         * modules/unicase/u8-tolower: New file.
20338
20339         Tests for module 'unicase/u32-toupper'.
20340         * modules/unicase/u32-toupper-tests: New file.
20341         * tests/unicase/test-u32-toupper.c: New file.
20342
20343         Tests for module 'unicase/u16-toupper'.
20344         * modules/unicase/u16-toupper-tests: New file.
20345         * tests/unicase/test-u16-toupper.c: New file.
20346
20347         Tests for module 'unicase/u8-toupper'.
20348         * modules/unicase/u8-toupper-tests: New file.
20349         * tests/unicase/test-u8-toupper.c: New file.
20350
20351         New module 'unicase/u32-toupper'.
20352         * lib/unicase/u32-toupper.c: New file.
20353         * modules/unicase/u32-toupper: New file.
20354
20355         New module 'unicase/u16-toupper'.
20356         * lib/unicase/u16-toupper.c: New file.
20357         * modules/unicase/u16-toupper: New file.
20358
20359         New module 'unicase/u8-toupper'.
20360         * lib/unicase/u8-toupper.c: New file.
20361         * modules/unicase/u8-toupper: New file.
20362
20363         New module 'unicase/u32-casemap'.
20364         * lib/unicase/u32-casemap.c: New file.
20365         * modules/unicase/u32-casemap: New file.
20366
20367         New module 'unicase/u16-casemap'.
20368         * lib/unicase/u16-casemap.c: New file.
20369         * modules/unicase/u16-casemap: New file.
20370
20371         New module 'unicase/u8-casemap'.
20372         * lib/unicase/unicasemap.h: New file.
20373         * lib/unicase/u8-casemap.c: New file.
20374         * lib/unicase/u-casemap.h: New file.
20375         * modules/unicase/u8-casemap: New file.
20376
20377         New module 'unicase/special-casing'.
20378         * lib/unicase/special-casing.h: New file.
20379         * lib/unicase/special-casing.c: New file.
20380         * lib/unicase/special-casing-table.gperf: New file, generated by
20381         gen-uni-tables.c.
20382         * modules/unicase/special-casing: New file.
20383
20384         Tests for module 'unicase/locale-language'.
20385         * modules/unicase/locale-language-tests: New file.
20386         * tests/unicase/test-locale-language.sh: New file.
20387         * tests/unicase/test-locale-language.c: New file.
20388
20389         New module 'unicase/locale-language'.
20390         * lib/unicase/locale-language.c: New file.
20391         * lib/unicase/locale-languages.gperf: New file.
20392         * modules/unicase/locale-language: New file.
20393
20394         Generate more tables for case conversion and case folding.
20395         * lib/gen-uni-tables.c (SCC_*): New enum items.
20396         (struct special_casing_rule): New type.
20397         (casing_rules, num_casing_rules, allocated_casing_rules): New
20398         variables.
20399         (add_casing_rule, fill_casing_rules): New functions.
20400         (struct casefold_rule): New type.
20401         (casefolding_rules, num_casefolding_rules,
20402         allocated_casefolding_rules): New variables.
20403         (fill_casefolding_rules): New function.
20404         (unicode_casefold): New variable.
20405         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
20406         sort_casing_rules, output_casing_rules): New functions.
20407         (main): Accept to more arguments: SpecialCasing.txt and
20408         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
20409         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
20410         Output mapping for casefolding.
20411
20412         * lib/unicase.h: Include stdbool.h, uninorm.h.
20413         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
20414         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
20415         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
20416         arguments.
20417         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
20418         resultp arguments.
20419         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
20420         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
20421         resultp arguments.
20422         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
20423         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
20424         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
20425         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
20426         declarations.
20427         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
20428
20429 2009-03-08  Bruno Haible  <bruno@clisp.org>
20430
20431         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
20432         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
20433         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
20434         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
20435
20436 2009-03-07  Bruno Haible  <bruno@clisp.org>
20437
20438         Adjust u*_normcmp, u*_normcoll API.
20439         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
20440         u16_normcoll, u32_normcoll): Change failure conventions.
20441         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
20442         errno and return -1.
20443         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
20444
20445 2009-03-07  Bruno Haible  <bruno@clisp.org>
20446
20447         Tests for module 'uninorm/u32-normcoll'.
20448         * modules/uninorm/u32-normcoll-tests: New file.
20449         * tests/uninorm/test-u32-normcoll.c: New file.
20450
20451         Tests for module 'uninorm/u16-normcoll'.
20452         * modules/uninorm/u16-normcoll-tests: New file.
20453         * tests/uninorm/test-u16-normcoll.c: New file.
20454
20455         Tests for module 'uninorm/u8-normcoll'.
20456         * modules/uninorm/u8-normcoll-tests: New file.
20457         * tests/uninorm/test-u8-normcoll.c: New file.
20458
20459 2009-03-07  Bruno Haible  <bruno@clisp.org>
20460
20461         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
20462         tests/uninorm/test-u32-normcmp.c.
20463         * tests/uninorm/test-u32-normcmp.c: Include it.
20464         (test_nonascii): New function, extracted from main. Add some more
20465         tests.
20466         (main): Invoke test_ascii and test_nonascii.
20467         * modules/uninorm/u32-normcmp-tests (Files): Add
20468         tests/uninorm/test-u32-normcmp.h.
20469         (Depends-on): Remove uninorm/u32-normcmp.
20470
20471         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
20472         tests/uninorm/test-u16-normcmp.c.
20473         * tests/uninorm/test-u16-normcmp.c: Include it.
20474         (test_nonascii): New function, extracted from main. Add some more
20475         tests.
20476         (main): Invoke test_ascii and test_nonascii.
20477         * modules/uninorm/u16-normcmp-tests (Files): Add
20478         tests/uninorm/test-u16-normcmp.h.
20479         (Depends-on): Remove uninorm/u16-normcmp.
20480
20481         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
20482         tests/uninorm/test-u8-normcmp.c.
20483         * tests/uninorm/test-u8-normcmp.c: Include it.
20484         (test_nonascii): New function, extracted from main. Add some more
20485         tests.
20486         (main): Invoke test_ascii and test_nonascii.
20487         * modules/uninorm/u8-normcmp-tests (Files): Add
20488         tests/uninorm/test-u8-normcmp.h.
20489         (Depends-on): Remove uninorm/u8-normcmp.
20490
20491 2009-03-07  Bruno Haible  <bruno@clisp.org>
20492
20493         New module 'uninorm/u32-normcoll'.
20494         * lib/uninorm/u32-normcoll.c: New file.
20495         * modules/uninorm/u32-normcoll: New file.
20496
20497         New module 'uninorm/u16-normcoll'.
20498         * lib/uninorm/u16-normcoll.c: New file.
20499         * modules/uninorm/u16-normcoll: New file.
20500
20501         New module 'uninorm/u8-normcoll'.
20502         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
20503         declarations.
20504         * lib/uninorm/u8-normcoll.c: New file.
20505         * lib/uninorm/u-normcoll.h: New file.
20506         * modules/uninorm/u8-normcoll: New file.
20507
20508         New module 'uninorm/u32-normxfrm'.
20509         * lib/uninorm/u32-normxfrm.c: New file.
20510         * modules/uninorm/u32-normxfrm: New file.
20511
20512         New module 'uninorm/u16-normxfrm'.
20513         * lib/uninorm/u16-normxfrm.c: New file.
20514         * modules/uninorm/u16-normxfrm: New file.
20515
20516         New module 'uninorm/u8-normxfrm'.
20517         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
20518         declarations.
20519         * lib/uninorm/u8-normxfrm.c: New file.
20520         * lib/uninorm/u-normxfrm.h: New file.
20521         * modules/uninorm/u8-normxfrm: New file.
20522
20523 2009-03-07  Bruno Haible  <bruno@clisp.org>
20524
20525         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
20526         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
20527         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
20528
20529 2009-03-07  Bruno Haible  <bruno@clisp.org>
20530
20531         New module 'memxfrm'.
20532         * lib/memxfrm.h: New file.
20533         * lib/memxfrm.c: New file.
20534         * modules/memxfrm: New file.
20535
20536 2009-03-07  Bruno Haible  <bruno@clisp.org>
20537
20538         New module 'memcmp2'.
20539         * lib/memcmp2.h: New file.
20540         * lib/memcmp2.c: New file.
20541         * modules/memcmp2: New file.
20542
20543 2009-03-07  Bruno Haible  <bruno@clisp.org>
20544
20545         Tests for module 'uninorm/decomposing-form'.
20546         * modules/uninorm/decomposing-form-tests: New file.
20547         * tests/uninorm/test-decomposing-form.c: New file.
20548
20549         New module 'uninorm/decomposing-form'.
20550         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
20551         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
20552         Add 'decomposing_variant' field.
20553         * lib/uninorm/decomposing-form.c: New file.
20554         * lib/uninorm/nfc.c (uninorm_nfc): Update.
20555         * lib/uninorm/nfd.c (uninorm_nfd): Update.
20556         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
20557         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
20558         * modules/uninorm/decomposing-form: New file.
20559         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
20560         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
20561
20562 2009-03-07  Bruno Haible  <bruno@clisp.org>
20563
20564         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
20565         strings.
20566
20567 2009-03-06  Bruno Haible  <bruno@clisp.org>
20568
20569         Tests for module 'uninorm/u32-normcmp'.
20570         * tests/uninorm/test-u32-normcmp.c: New file.
20571         * modules/uninorm/u32-normcmp-tests: New file.
20572
20573         Tests for module 'uninorm/u16-normcmp'.
20574         * tests/uninorm/test-u16-normcmp.c: New file.
20575         * modules/uninorm/u16-normcmp-tests: New file.
20576
20577         Tests for module 'uninorm/u8-normcmp'.
20578         * tests/uninorm/test-u8-normcmp.c: New file.
20579         * modules/uninorm/u8-normcmp-tests: New file.
20580
20581         New module 'uninorm/u32-normcmp'.
20582         * lib/uninorm/u32-normcmp.c: New file.
20583         * modules/uninorm/u32-normcmp: New file.
20584
20585         New module 'uninorm/u16-normcmp'.
20586         * lib/uninorm/u16-normcmp.c: New file.
20587         * modules/uninorm/u16-normcmp: New file.
20588
20589         New module 'uninorm/u8-normcmp'.
20590         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
20591         declarations.
20592         * lib/uninorm/u8-normcmp.c: New file.
20593         * lib/uninorm/u-normcmp.h: New file.
20594         * modules/uninorm/u8-normcmp: New file.
20595
20596 2009-03-06  Bruno Haible  <bruno@clisp.org>
20597
20598         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
20599         Reported by Eric Blake.
20600
20601 2009-03-06  Eric Blake  <ebb9@byu.net>
20602             Bruno Haible  <bruno@clisp.org>
20603
20604         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
20605         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
20606         condition.
20607         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
20608         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
20609         condition.
20610         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
20611
20612 2009-03-06  Eric Blake  <ebb9@byu.net>
20613
20614         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
20615         to avoid compiler warnings.
20616         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
20617
20618 2009-03-05  Bruno Haible  <bruno@clisp.org>
20619
20620         * tests/test-ftell.c (main): Disable test beyond end of file on
20621         FreeMiNT.
20622         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
20623
20624 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
20625
20626         * lib/filevercmp.c: Move hidden files up in ordering.
20627         * tests/test-filevercmp.c: Add tests for hidden files.
20628
20629 2009-03-04  Bruno Haible  <bruno@clisp.org>
20630
20631         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
20632         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
20633         AM_CFLAGS.
20634         Reported by Simon Josefsson.
20635
20636 2009-03-03  Bruno Haible  <bruno@clisp.org>
20637
20638         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
20639         Reported by Simon Josefsson.
20640
20641         * doc/ld-version-script.texi: Update node reference.
20642
20643 2009-03-03  Bruno Haible  <bruno@clisp.org>
20644
20645         * modules/visibility (License): Change to 'unlimited'.
20646         Suggested by Simon Josefsson.
20647
20648 2009-03-03  Jim Meyering  <meyering@redhat.com>
20649
20650         unlinkdir: cannot_unlink_dir may modify process state
20651         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
20652         it's neither thread-safe nor appropriate for use in a library.
20653
20654 2009-03-03  Eric Blake  <ebb9@byu.net>
20655
20656         test-closein: silence test under Darwin
20657         * tests/test-closein.sh: Ignore stderr from cat, since we don't
20658         care if it dies from EPIPE or EBADF.
20659
20660 2009-03-03  Bruno Haible  <bruno@clisp.org>
20661
20662         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
20663         earlier.
20664         * doc/visibility.texi: Fix @node and @section.
20665
20666 2009-03-03  Simon Josefsson  <simon@josefsson.org>
20667
20668         * doc/gnulib.texi: Link to sections for ld version script and
20669         visibility.
20670         * doc/visibility.texi: Add @node and @section.
20671         * modules/ld-version-script: New module.
20672         * m4/ld-version-script.m4: New file.
20673         * doc/ld-version-script.texi: New file.
20674
20675 2009-03-02  David Lutterkort  <lutter@redhat.com>
20676
20677         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
20678         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20679
20680 2009-03-02  Bruno Haible  <bruno@clisp.org>
20681
20682         * doc/visibility.texi: Mention libtool's -export-symbols option.
20683
20684 2009-03-02  Jim Meyering  <meyering@redhat.com>
20685
20686         announce-gen: new option: --no-print-checksums
20687         * build-aux/announce-gen (usage): Describe it.
20688         (print_checksums): Print a newline here, not in the [*] footnote.
20689         (main): Honor it.
20690
20691 2009-03-01  Bruno Haible  <bruno@clisp.org>
20692
20693         Use socklen_t in the native Windows replacements prototypes.
20694         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
20695         instead of 'int'.
20696         * lib/getsockopt.c (rpl_getsockopt): Likewise.
20697         * lib/setsockopt.c (rpl_setsockopt): Likewise.
20698         * modules/getsockopt (Depends-on): Add socklen.
20699         * modules/setsockopt (Depends-on): Add socklen.
20700
20701 2009-03-01  Bruno Haible  <bruno@clisp.org>
20702
20703         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
20704         least 4.2.
20705
20706 2009-03-01  Eric Blake  <ebb9@byu.net>
20707             Bruno Haible  <bruno@clisp.org>
20708
20709         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
20710         error messages.
20711         * lib/wait-process.c (wait_subprocess): Omit error message about
20712         deadly signal sent to the child of termsigp != NULL.
20713
20714 2009-03-01  Eric Blake  <ebb9@byu.net>
20715
20716         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
20717
20718 2009-03-01  Bruno Haible  <bruno@clisp.org>
20719
20720         Avoid a gcc warning.
20721         * tests/test-sched.c (b): Make global.
20722         Reported by Eric Blake.
20723
20724 2009-01-19  Martin Lambers  <marlam@marlam.de>
20725
20726         Provide POSIX semantics for socket timeout options on W32.
20727         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
20728         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
20729         * modules/setsockopt: Depend on sys_time module for struct timeval.
20730         * modules/getsockopt: Depend on sys_time module for struct timeval.
20731
20732 2009-03-01  Simon Josefsson  <simon@josefsson.org>
20733
20734         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
20735         __USE_GNU, for consistency with netdb.in.h.
20736         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20737
20738 2009-03-01  Bruno Haible  <bruno@clisp.org>
20739
20740         More support for FreeMiNT.
20741         * lib/fseeko.c (rpl_fseeko): Complete last commit.
20742         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20743
20744 2009-03-01  Bruno Haible  <bruno@clisp.org>
20745
20746         More support for FreeMiNT.
20747         * lib/fpurge.c (fpurge): Correct last commit.
20748         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20749
20750 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20751
20752         Fix unportable awk script in vc-list-files.
20753         * build-aux/vc-list-files: In the replacement awk script, use
20754         substr with a second argument of 1, not zero.
20755         Report by Simon Josefsson.
20756
20757 2009-02-28  Bruno Haible  <bruno@clisp.org>
20758
20759         More support for FreeMiNT.
20760         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
20761         to FreeMiNT today.
20762         * lib/fwriting.c (fwriting): Likewise.
20763         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
20764
20765 2009-02-28  Bruno Haible  <bruno@clisp.org>
20766
20767         * tests/test-freadseek.c (main): Disable test beyond end of file on
20768         FreeMiNT.
20769         * tests/test-ftello.c (main): Likewise.
20770         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
20771
20772 2009-02-28  Bruno Haible  <bruno@clisp.org>
20773
20774         Add tentative support for FreeMiNT.
20775         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
20776         * lib/fpurge.c (fpurge): Likewise.
20777         * lib/freadable.c (freadable): Likewise.
20778         * lib/freading.c (freading): Likewise.
20779         * lib/freadptr.c (freadptr): Likewise.
20780         * lib/freadseek.c (freadptrinc): Likewise.
20781         * lib/fseeko.c (rpl_fseeko): Likewise.
20782         * lib/fseterr.c (fseterr): Likewise.
20783         * lib/fwritable.c (fwritable): Likewise.
20784         * lib/fwriting.c (fwriting): Likewise.
20785         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
20786         Hourihane.
20787         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20788
20789 2009-02-28  Bruno Haible  <bruno@clisp.org>
20790
20791         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
20792         SIGCHLD.
20793         Reported by Jim Meyering.
20794
20795 2009-02-28  Bruno Haible  <bruno@clisp.org>
20796
20797         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
20798         Mention the results of these tests on various platforms.
20799         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
20800         order.
20801         * doc/posix-functions/printf.texi: Likewise.
20802         * doc/posix-functions/snprintf.texi: Likewise.
20803         * doc/posix-functions/sprintf.texi: Likewise.
20804         * doc/posix-functions/vfprintf.texi: Likewise.
20805         * doc/posix-functions/vprintf.texi: Likewise.
20806         * doc/posix-functions/vsnprintf.texi: Likewise.
20807         * doc/posix-functions/vsprintf.texi: Likewise.
20808         * doc/glibc-functions/obstack_printf.texi: Likewise.
20809         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
20810
20811 2009-02-28  Bruno Haible  <bruno@clisp.org>
20812
20813         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
20814         Reported by Loïc Minier <lool@dooz.org>.
20815
20816 2009-02-27  Bruno Haible  <bruno@clisp.org>
20817
20818         * gnulib-tool (func_import): Make the sed expression used to create the
20819         sed script for updating the .gitignore file POSIX compliant.
20820         Reported by Eric Blake.
20821
20822 2009-02-27  Bruno Haible  <bruno@clisp.org>
20823
20824         * gnulib-tool (sed): Don't alias as "sed --posix".
20825         Reported by Eric Blake.
20826
20827 2009-02-27  Bruno Haible  <bruno@clisp.org>
20828
20829         Avoid test link errors.
20830         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
20831         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
20832         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
20833         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
20834         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20835
20836 2009-02-27  Bruno Haible  <bruno@clisp.org>
20837
20838         Avoid spurious "(cached)" in configure output.
20839         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
20840         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
20841         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
20842         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
20843         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
20844         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
20845         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
20846         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
20847         Reported by Eric Blake.
20848
20849 2009-02-27  Eric Blake  <ebb9@byu.net>
20850
20851         printf: fix regression in previous patch
20852         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
20853
20854 2009-02-27  Bruno Haible  <bruno@clisp.org>
20855
20856         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
20857         value.
20858         * lib/stdint.in.h: Likewise.
20859         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
20860
20861 2009-02-27  Eric Blake  <ebb9@byu.net>
20862
20863         doc: mention more functions added in cygwin 1.7.0
20864         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
20865         addition.
20866         * doc/posix-functions/open_wmemstream.texi: Likewise.
20867         * doc/posix-functions/wcsnlen.texi: Likewise.
20868         * doc/posix-functions/wcsnrtombs.texi: Likewise.
20869         * doc/posix-functions/wcstod.texi: Likewise.
20870         * doc/posix-functions/wcstof.texi: Likewise.
20871         * doc/posix-functions/wcstoimax.texi: Likewise.
20872         * doc/posix-functions/wcstok.texi: Likewise.
20873         * doc/posix-functions/wcstoumax.texi: Likewise.
20874
20875         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
20876         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
20877         * doc/posix-functions/fprintf.texi: Update.
20878         * doc/posix-functions/printf.texi: Update.
20879         * doc/posix-functions/snprintf.texi: Update.
20880         * doc/posix-functions/sprintf.texi: Update.
20881         * doc/posix-functions/vfprintf.texi: Update.
20882         * doc/posix-functions/vprintf.texi: Update.
20883         * doc/posix-functions/vsnprintf.texi: Update.
20884         * doc/posix-functions/vsprintf.texi: Update.
20885         * doc/glibc-functions/obstack_printf.texi: Update.
20886         * doc/glibc-functions/obstack_vprintf.texi: Update.
20887
20888 2009-02-26  Eric Blake  <ebb9@byu.net>
20889
20890         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
20891         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
20892         compilation bug by using runtime conversion.
20893         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
20894         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
20895         * modules/ceill-tests (Files): Use nan.h.
20896         * modules/floorl-tests (Files): Likewise.
20897         * modules/frexpl-tests (Files): Likewise.
20898         * modules/isnanl-tests (Files): Likewise.
20899         * modules/ldexpl-tests (Files): Likewise.
20900         * modules/roundl-tests (Files): Likewise.
20901         * modules/truncl-tests (Files): Likewise.
20902         * tests/test-ceill.c (main): Use a working NaN.
20903         * tests/test-floorl.c (main): Likewise.
20904         * tests/test-frexpl.c (main): Likewise.
20905         * tests/test-isnan.c (test_long_double): Likewise.
20906         * tests/test-isnanl.h (main): Likewise.
20907         * tests/test-ldexpl.h (main): Likewise.
20908         * tests/test-roundl.h (main): Likewise.
20909         * tests/test-truncl.h (main): Likewise.
20910         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
20911
20912 2009-02-26  Eric Blake  <ebb9@byu.net>
20913             Bruno Haible  <bruno@clisp.org>
20914
20915         Work around a *printf bug with %ls on Solaris.
20916         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
20917         precision is specified, sprintf stops converting the wide string
20918         argument when the number of bytes that have been produced by this
20919         conversion equals or exceeds the precision.
20920         * doc/posix-functions/fprintf.texi: Update.
20921         * doc/posix-functions/printf.texi: Update.
20922         * doc/posix-functions/snprintf.texi: Update.
20923         * doc/posix-functions/sprintf.texi: Update.
20924         * doc/posix-functions/vfprintf.texi: Update.
20925         * doc/posix-functions/vprintf.texi: Update.
20926         * doc/posix-functions/vsnprintf.texi: Update.
20927         * doc/posix-functions/vsprintf.texi: Update.
20928         * doc/glibc-functions/obstack_printf.texi: Update.
20929         * doc/glibc-functions/obstack_vprintf.texi: Update.
20930
20931 2009-02-26  Eric Blake  <ebb9@byu.net>
20932
20933         stdlib: favor compiler check of random.h
20934         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
20935         to avoid an ObjC random.h installed by Swarm.
20936
20937 2009-02-26  Bruno Haible  <bruno@clisp.org>
20938
20939         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
20940         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
20941         Reported by Gary V. Vaughan <gary@gnu.org>.
20942
20943 2009-02-26  Bruno Haible  <bruno@clisp.org>
20944
20945         Fix *printf behaviour regarding the %ls directive.
20946         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
20947         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
20948         NEED_PRINTF_DIRECTIVE_LS.
20949         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
20950         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
20951         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
20952         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
20953         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
20954         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
20955         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
20956         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
20957         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20958         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20959         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20960         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
20961         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20962         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20963         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20964         * doc/posix-functions/fprintf.texi: Update.
20965         * doc/posix-functions/printf.texi: Update.
20966         * doc/posix-functions/snprintf.texi: Update.
20967         * doc/posix-functions/sprintf.texi: Update.
20968         * doc/posix-functions/vfprintf.texi: Update.
20969         * doc/posix-functions/vprintf.texi: Update.
20970         * doc/posix-functions/vsnprintf.texi: Update.
20971         * doc/posix-functions/vsprintf.texi: Update.
20972         * doc/glibc-functions/obstack_printf.texi: Update.
20973         * doc/glibc-functions/obstack_vprintf.texi: Update.
20974         Reported by Eric Blake.
20975
20976 2009-02-25  Bruno Haible  <bruno@clisp.org>
20977
20978         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
20979         with known value.
20980         Reported by Gary V. Vaughan <gary@gnu.org>.
20981
20982 2009-02-25  Bruno Haible  <bruno@clisp.org>
20983
20984         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
20985         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
20986         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
20987         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
20988         Reported by Gary V. Vaughan <gary@gnu.org>.
20989
20990 2009-02-25  Bruno Haible  <bruno@clisp.org>
20991
20992         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
20993         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
20994         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
20995         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
20996         Reported by Gary V. Vaughan <gary@gnu.org>.
20997
20998 2009-02-25  Eric Blake  <ebb9@byu.net>
20999
21000         tests: skip fseek/ftell tests if ungetc is broken
21001         * m4/ungetc.m4: New file.
21002         * modules/fseek-tests: Split test, so ungetc dependency is
21003         separate from rest of test.
21004         * modules/fseeko-tests: Likewise.
21005         * modules/ftell-tests: Likewise.
21006         * modules/ftello-tests: Likewise.
21007         * tests/test-fseek.c (main): Isolate ungetc dependency.
21008         * tests/test-fseeko.c (main): Likewise.
21009         * tests/test-ftell.c (main): Likewise.
21010         * tests/test-ftello.c (main): Likewise.
21011         * tests/test-fseek2.sh: New file.
21012         * tests/test-fseeko2.sh: Likewise.
21013         * tests/test-ftell2.sh: Likewise.
21014         * tests/test-ftello2.sh: Likewise.
21015
21016 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
21017
21018         test-getaddrinfo: fix usage of skip return code 77
21019         * tests/test-gettaddrinfo.c: Return skip code 77 only
21020         for first occurance of skip (4x77 is not 77)
21021
21022 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
21023
21024         strtod: avoid C99 decl-after-statement
21025         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
21026
21027 2009-02-24  Eric Blake  <ebb9@byu.net>
21028
21029         strtod: detect HP-UX 11.31 bug
21030         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
21031         Reported by Gary V. Vaughan.
21032
21033 2009-02-23  Bruno Haible  <bruno@clisp.org>
21034
21035         Fix invalid read past end of memory block.
21036         * lib/vasnprintf.c (DCHAR_SET): Define.
21037         (local_wcslen): Define only when needed.
21038         (local_strnlen, local_wcsnlen): New functions.
21039         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
21040         directives that involve a conversion ourselves.
21041         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
21042         wcsnlen, mbrtowc, wcrtomb.
21043         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
21044         * tests/test-vasprintf-posix.c (test_function): Likewise.
21045         * tests/test-snprintf-posix.h (test_function): Likewise.
21046         * tests/test-sprintf-posix.h (test_function): Likewise.
21047         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21048
21049 2009-02-22  Bruno Haible  <bruno@clisp.org>
21050
21051         Implement new clarified decomposition of Hangul syllables.
21052         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
21053         of type LTV, return only a pairwise decomposition.
21054         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
21055         Likewise.
21056         * tests/uninorm/test-decomposition.c (main): Updated expected result.
21057         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
21058         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
21059
21060 2009-02-22  Bruno Haible  <bruno@clisp.org>
21061
21062         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
21063         zero-length results and shrink excess allocated memory.
21064         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
21065         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
21066         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
21067         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
21068         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
21069         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
21070         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
21071         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
21072         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
21073         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
21074         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
21075         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
21076
21077 2009-02-21  Bruno Haible  <bruno@clisp.org>
21078
21079         * doc/gnulib.texi: Include safe-alloc.texi earlier.
21080         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
21081         spaces after a period. Put a space between a macro name and its
21082         argument list. Trivial rewordings.
21083         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
21084         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
21085         (main): Return 0 explicitly.
21086
21087 2009-02-21  Bruno Haible  <bruno@clisp.org>
21088
21089         Tests for module 'uninorm/filter'.
21090         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
21091         * modules/uninorm/filter-tests: New file.
21092
21093         New module 'uninorm/filter'.
21094         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
21095         uninorm_filter_flush, uninorm_filter_free): New declarations.
21096         * lib/uninorm/uninorm-filter.c: New file.
21097         * modules/uninorm/filter: New file.
21098
21099 2009-02-21  Bruno Haible  <bruno@clisp.org>
21100
21101         Tests for module 'uninorm/nfkc'.
21102         * tests/uninorm/test-nfkc.c: New file.
21103         * tests/uninorm/test-u8-nfkc.c: New file.
21104         * tests/uninorm/test-u16-nfkc.c: New file.
21105         * tests/uninorm/test-u32-nfkc.c: New file.
21106         * tests/uninorm/test-u32-nfkc-big.sh: New file.
21107         * tests/uninorm/test-u32-nfkc-big.c: New file.
21108         * modules/uninorm/nfkc-tests: New file.
21109
21110         New module 'uninorm/nfkc'.
21111         * lib/uninorm/nfkc.c: New file.
21112         * modules/uninorm/nfkc: New file.
21113
21114         Tests for module 'uninorm/nfkd'.
21115         * tests/uninorm/test-nfkd.c: New file.
21116         * tests/uninorm/test-u8-nfkd.c: New file.
21117         * tests/uninorm/test-u16-nfkd.c: New file.
21118         * tests/uninorm/test-u32-nfkd.c: New file.
21119         * tests/uninorm/test-u32-nfkd-big.sh: New file.
21120         * tests/uninorm/test-u32-nfkd-big.c: New file.
21121         * modules/uninorm/nfkd-tests: New file.
21122
21123         New module 'uninorm/nfkd'.
21124         * lib/uninorm/nfkd.c: New file.
21125         * modules/uninorm/nfkd: New file.
21126
21127         Tests for module 'uninorm/nfc'.
21128         * tests/uninorm/test-nfc.c: New file.
21129         * tests/uninorm/test-u8-nfc.c: New file.
21130         * tests/uninorm/test-u16-nfc.c: New file.
21131         * tests/uninorm/test-u32-nfc.c: New file.
21132         * tests/uninorm/test-u32-nfc-big.sh: New file.
21133         * tests/uninorm/test-u32-nfc-big.c: New file.
21134         * modules/uninorm/nfc-tests: New file.
21135
21136         New module 'uninorm/nfc'.
21137         * lib/uninorm/nfc.c: New file.
21138         * modules/uninorm/nfc: New file.
21139
21140         Tests for module 'uninorm/nfd'.
21141         * tests/uninorm/test-nfd.c: New file.
21142         * tests/uninorm/test-u8-nfd.c: New file.
21143         * tests/uninorm/test-u16-nfd.c: New file.
21144         * tests/uninorm/test-u32-nfd.c: New file.
21145         * tests/uninorm/test-u32-nfd-big.sh: New file.
21146         * tests/uninorm/test-u32-nfd-big.c: New file.
21147         * tests/uninorm/test-u32-normalize-big.h: New file.
21148         * tests/uninorm/test-u32-normalize-big.c: New file.
21149         * tests/uninorm/NormalizationTest.txt: New file, created from
21150         Unicode 5.1.0 NormalizationTest.txt.
21151         * modules/uninorm/nfd-tests: New file.
21152
21153         New module 'uninorm/nfd'.
21154         * lib/uninorm/nfd.c: New file.
21155         * modules/uninorm/nfd: New file.
21156
21157         New module 'uninorm/u32-normalize'.
21158         * lib/uninorm/u32-normalize.c: New file.
21159         * modules/uninorm/u32-normalize: New file.
21160
21161         New module 'uninorm/u16-normalize'.
21162         * lib/uninorm/u16-normalize.c: New file.
21163         * modules/uninorm/u16-normalize: New file.
21164
21165         New module 'uninorm/u8-normalize'.
21166         * lib/uninorm/u8-normalize.c: New file.
21167         * lib/uninorm/normalize-internal.h: New file.
21168         * lib/uninorm/u-normalize-internal.h: New file.
21169         * modules/uninorm/u8-normalize: New file.
21170
21171         New module 'uninorm/decompose-internal'.
21172         * lib/uninorm/decompose-internal.c: New file.
21173         * modules/uninorm/decompose-internal: New file.
21174
21175         Tests for module 'uninorm/composition'.
21176         * tests/uninorm/test-composition.c: New file.
21177         * modules/uninorm/composition-tests: New file.
21178
21179         New module 'uninorm/composition'.
21180         * lib/uninorm/composition.c: New file.
21181         * lib/uninorm/composition-table.gperf: New file, generated by
21182         gen-uni-tables.
21183         * modules/uninorm/composition: New file.
21184
21185         Tests for module 'uninorm/compat-decomposition'.
21186         * tests/uninorm/test-compat-decomposition.c: New file.
21187         * modules/uninorm/compat-decomposition-tests: New file.
21188
21189         New module 'uninorm/compat-decomposition'.
21190         * lib/uninorm/decompose-internal.h: New file.
21191         * lib/uninorm/compat-decomposition.c: New file.
21192         * modules/uninorm/compat-decomposition: New file.
21193
21194         Tests for module 'uninorm/canonical-decomposition'.
21195         * tests/uninorm/test-canonical-decomposition.c: New file.
21196         * modules/uninorm/canonical-decomposition-tests: New file.
21197
21198         New module 'uninorm/canonical-decomposition'.
21199         * lib/uninorm/canonical-decomposition.c: New file.
21200         * modules/uninorm/canonical-decomposition: New file.
21201
21202         Tests for module 'uninorm/decomposition'.
21203         * tests/uninorm/test-decomposition.c: New file.
21204         * modules/uninorm/decomposition-tests: New file.
21205
21206         New module 'uninorm/decomposition'.
21207         * lib/uninorm/decomposition.c: New file.
21208         * modules/uninorm/decomposition: New file.
21209
21210         New module 'uninorm/decomposition-table'.
21211         * lib/uninorm/decomposition-table.h: New file.
21212         * lib/uninorm/decomposition-table.c: New file.
21213         * lib/uninorm/decomposition-table1.h: New file, generated by
21214         gen-uni-tables.
21215         * lib/uninorm/decomposition-table2.h: New file, generated by
21216         gen-uni-tables.
21217         * modules/uninorm/decomposition-table: New file.
21218
21219         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
21220         (UC_DECOMP_*): New enumeration items.
21221         (get_decomposition): New function.
21222         (struct decomp_table): New type.
21223         (output_decomposition, output_decomposition_tables): New functions.
21224         (unicode_composition_exclusions): New variable.
21225         (fill_composition_exclusions, debug_output_composition_tables): New
21226         functions.
21227         (main): Accept one more argument. Invoke fill_composition_exclusions.
21228         Output decomposition and composition tables.
21229
21230         New module 'uninorm/base'.
21231         * lib/uninorm.h: New file.
21232         * lib/unictype.h: Update comment.
21233         * modules/uninorm/base: New file.
21234
21235 2009-02-21  David Lutterkort  <lutter@redhat.com>
21236
21237         Tests for module 'safe-alloc'.
21238         * tests/test-safe-alloc.c: New file.
21239         * modules/safe-alloc-tests: New file.
21240
21241         New module 'safe-alloc'.
21242         * lib/safe-alloc.h: New file.
21243         * lib/safe-alloc.c: New file.
21244         * m4/safe-alloc.m4: New file.
21245         * modules/safe-alloc: New file.
21246         * doc/safe-alloc.texi: New file.
21247         * doc/gnulib.texi: Include it.
21248         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
21249         safe-alloc.
21250
21251 2009-02-18  Bruno Haible  <bruno@clisp.org>
21252
21253         Fix link error on non-glibc systems.
21254         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
21255         variable.
21256         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21257
21258 2009-02-18  Jim Meyering  <meyering@redhat.com>
21259
21260         fts: avoid used-uninitialized error due to recent change
21261         * lib/fts.c (fts_read): Guard uses of the new member,
21262         parent->fts_n_dirs_remaining, since it's not relevant for
21263         the parent of a directory specified on the command-line.
21264
21265 2009-02-17  James Youngman  <jay@gnu.org>
21266             Bruno Haible  <bruno@clisp.org>
21267
21268         * m4/include_next.m4: Reformulate comment.
21269
21270 2009-02-16  Jim Meyering  <meyering@redhat.com>
21271
21272         fts: add #if guards so that the fts_lgpl module still builds
21273         * lib/fts.c: Guard just-added hash-table-using parts with
21274         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
21275         Reported by Simon Josefsson.
21276
21277 2009-02-15  Bruno Haible  <bruno@clisp.org>
21278
21279         * modules/array-mergesort-tests: New file.
21280         * tests/test-array-mergesort.c: New file.
21281
21282         New module 'array-mergesort'.
21283         * modules/array-mergesort: New file.
21284         * lib/array-mergesort.h: New file.
21285
21286 2009-02-15  Bruno Haible  <bruno@clisp.org>
21287
21288         Fix 2009-02-07 commit.
21289         * lib/gen-uni-tables.c (output_predicate, output_category,
21290         output_combclass, output_bidi_category, output_decimal_digit,
21291         output_digit, output_numeric, output_mirror, output_scripts,
21292         output_ident_category, output_simple_mapping): Fix format directives.
21293         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
21294
21295 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
21296
21297         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
21298         fixes are available from IBM.
21299
21300 2009-02-13  Jim Meyering  <meyering@redhat.com>
21301
21302         fts: arrange not to stat non-directories in more cases
21303         This makes GNU find (when it doesn't need to stat each file)
21304         *much* more efficient at traversing reiserfs file systems.
21305         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
21306         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
21307         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
21308         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
21309         (leaf_optimization_applies): New function.
21310         (LCO_hash, LCO_compare): New helper functions.
21311         (link_count_optimize_ok): New function.
21312         (fts_stat): Initialize new member (if dir).
21313         (fts_read): Decrement parent's fts_n_dirs_remaining count if
21314         we've just stat'ed a directory.  Skip the stat call when possible.
21315         ---
21316         Note this AFS-related exchange:
21317         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
21318         and note find's pioctl call in find/fstype.c.
21319         But that is necessary only if you want to enable the
21320         optimization for AFS, and for now, I don't.
21321
21322         fts: move a function definition "up" (no semantic change)
21323         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
21324         "up" to precede upcoming use of a related function.
21325
21326 2009-02-11  Jim Meyering  <meyering@redhat.com>
21327
21328         fts: correct internal computation of nlinks (optimization-related)
21329         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
21330         whether the current entry is a directory, so don't test it.
21331
21332 2009-02-10  Bruno Haible  <bruno@clisp.org>
21333
21334         Tests for module 'uniwbrk/ulc-wordbreaks'.
21335         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
21336         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
21337         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
21338
21339         Tests for module 'uniwbrk/u32-wordbreaks'.
21340         * modules/uniwbrk/u32-wordbreaks-tests: New file.
21341         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
21342
21343         Tests for module 'uniwbrk/u16-wordbreaks'.
21344         * modules/uniwbrk/u16-wordbreaks-tests: New file.
21345         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
21346
21347         Tests for module 'uniwbrk/u8-wordbreaks'.
21348         * modules/uniwbrk/u8-wordbreaks-tests: New file.
21349         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
21350
21351 2009-02-10  Bruno Haible  <bruno@clisp.org>
21352
21353         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
21354         property.
21355         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
21356         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
21357         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
21358
21359 2009-02-10  Simon Josefsson  <simon@josefsson.org>
21360
21361         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
21362         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
21363
21364 2009-02-10  Bruno Haible  <bruno@clisp.org>
21365
21366         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
21367         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
21368         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
21369         * lib/unilbrk/u8-possible-linebreaks.c: Update.
21370         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
21371         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
21372
21373 2009-02-09  Simon Josefsson  <simon@josefsson.org>
21374
21375         * lib/sockets.h (gl_fd_to_handle): New function.
21376
21377         * tests/test-sockets.c: Call gl_fd_to_handle.
21378
21379 2009-02-09  Bruno Haible  <bruno@clisp.org>
21380
21381         * doc/havelib.texi: Document the conventions on bi-arch systems.
21382
21383 2009-02-08  Bruno Haible  <bruno@clisp.org>
21384
21385         Document the AC_LIB_LINKFLAGS macro.
21386         * doc/havelib.texi: New file, mostly written on 2005-05-24.
21387         * doc/gnulib.texi: Include it.
21388
21389 2009-02-08  Bruno Haible  <bruno@clisp.org>
21390
21391         Fix wrong order of sections, compared to TOC.
21392         * doc/gnulib.texi: Include relocatable-maint.texi after the
21393         "Regular expressions" node, not before.
21394
21395 2009-02-08  Bruno Haible  <bruno@clisp.org>
21396
21397         Tests for module 'unicase/totitle'.
21398         * modules/unicase/totitle-tests: New file.
21399
21400         Tests for module 'unicase/tolower'.
21401         * modules/unicase/tolower-tests: New file.
21402
21403         Tests for module 'unicase/toupper'.
21404         * modules/unicase/toupper-tests: New file.
21405         * tests/unicase/test-mapping-part1.h: New file.
21406         * tests/unicase/test-mapping-part2.h: New file.
21407
21408         New module 'unicase/totitle'.
21409         * modules/unicase/totitle: New file.
21410         * lib/unicase/totitle.c: New file.
21411
21412         New module 'unicase/tolower'.
21413         * modules/unicase/tolower: New file.
21414         * lib/unicase/tolower.c: New file.
21415
21416         New module 'unicase/toupper'.
21417         * modules/unicase/toupper: New file.
21418         * lib/unicase/toupper.c: New file.
21419         * lib/unicase/simple-mapping.h: New file.
21420
21421         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
21422         (mapping_table): New structure.
21423         (output_simple_mapping): New function.
21424         (main): Invoke output_simple_mapping_test and output_simple_mapping.
21425         * modules/gen-uni-tables (Description): Update.
21426         * lib/unicase/toupper.h: New file, automatically generated by
21427         gen-uni-tables.
21428         * lib/unicase/tolower.h: New file, automatically generated by
21429         gen-uni-tables.
21430         * lib/unicase/totitle.h: New file, automatically generated by
21431         gen-uni-tables.
21432         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
21433         gen-uni-tables.
21434         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
21435         gen-uni-tables.
21436         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
21437         gen-uni-tables.
21438
21439         New module 'unicase/base'.
21440         * modules/unicase/base: New file.
21441         * lib/unicase.h: New file.
21442
21443 2009-02-08  Bruno Haible  <bruno@clisp.org>
21444
21445         New module 'uniwbrk/ulc-wordbreaks'.
21446         * modules/uniwbrk/ulc-wordbreaks: New file.
21447         * lib/uniwbrk/ulc-wordbreaks.c: New file.
21448
21449         New module 'uniwbrk/u32-wordbreaks'.
21450         * modules/uniwbrk/u32-wordbreaks: New file.
21451         * lib/uniwbrk/u32-wordbreaks.c: New file.
21452
21453         New module 'uniwbrk/u16-wordbreaks'.
21454         * modules/uniwbrk/u16-wordbreaks: New file.
21455         * lib/uniwbrk/u16-wordbreaks.c: New file.
21456
21457         New module 'uniwbrk/u8-wordbreaks'.
21458         * modules/uniwbrk/u8-wordbreaks: New file.
21459         * lib/uniwbrk/u8-wordbreaks.c: New file.
21460         * lib/uniwbrk/u-wordbreaks.h: New file.
21461
21462         New module 'uniwbrk/table'.
21463         * modules/uniwbrk/table: New file.
21464         * lib/uniwbrk/wbrktable.h: New file.
21465         * lib/uniwbrk/wbrktable.c: New file.
21466
21467         New module 'uniwbrk/wordbreak-property'.
21468         * modules/uniwbrk/wordbreak-property: New file.
21469         * lib/uniwbrk/wordbreak-property.c: New file.
21470
21471         * lib/gen-uni-tables.c (WBP_*): New enum items.
21472         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
21473         (unicode_org_wbp): New variable.
21474         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
21475         New functions.
21476         (wbp_table): New structure.
21477         (output_wbp, output_wbrk_tables): New functions.
21478         (main): Accept additional argument. Invoke fill_org_wbp,
21479         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
21480         output_wbrk_tables.
21481         * modules/gen-uni-tables (Description): Update.
21482         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
21483         gen-uni-tables.
21484
21485         New module 'uniwbrk/base'.
21486         * modules/uniwbrk/base: New file.
21487         * lib/uniwbrk.h: New file.
21488
21489 2009-02-08  Bruno Haible  <bruno@clisp.org>
21490
21491         Update to Unicode 5.1.0.
21492         * lib/gen-uni-tables.c (is_property_alphabetic): Include
21493         U+2185..U+2188.
21494         (is_property_default_ignorable_code_point): Don't include characters
21495         of category Cc or Cs and not-a-characters.
21496         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
21497         U+0D79, U+109E, U+109F, U+A60C.
21498         * lib/unictype/bidi_of.h: Regenerated.
21499         * lib/unictype/blocks.h: Regenerated.
21500         * lib/unictype/categ_C.h: Regenerated.
21501         * lib/unictype/categ_Cf.h: Regenerated.
21502         * lib/unictype/categ_Cn.h: Regenerated.
21503         * lib/unictype/categ_L.h: Regenerated.
21504         * lib/unictype/categ_Ll.h: Regenerated.
21505         * lib/unictype/categ_Lm.h: Regenerated.
21506         * lib/unictype/categ_Lo.h: Regenerated.
21507         * lib/unictype/categ_Lu.h: Regenerated.
21508         * lib/unictype/categ_M.h: Regenerated.
21509         * lib/unictype/categ_Mc.h: Regenerated.
21510         * lib/unictype/categ_Me.h: Regenerated.
21511         * lib/unictype/categ_Mn.h: Regenerated.
21512         * lib/unictype/categ_N.h: Regenerated.
21513         * lib/unictype/categ_Nd.h: Regenerated.
21514         * lib/unictype/categ_Nl.h: Regenerated.
21515         * lib/unictype/categ_No.h: Regenerated.
21516         * lib/unictype/categ_P.h: Regenerated.
21517         * lib/unictype/categ_Pd.h: Regenerated.
21518         * lib/unictype/categ_Pe.h: Regenerated.
21519         * lib/unictype/categ_Pf.h: Regenerated.
21520         * lib/unictype/categ_Pi.h: Regenerated.
21521         * lib/unictype/categ_Po.h: Regenerated.
21522         * lib/unictype/categ_Ps.h: Regenerated.
21523         * lib/unictype/categ_S.h: Regenerated.
21524         * lib/unictype/categ_Sk.h: Regenerated.
21525         * lib/unictype/categ_Sm.h: Regenerated.
21526         * lib/unictype/categ_So.h: Regenerated.
21527         * lib/unictype/categ_of.h: Regenerated.
21528         * lib/unictype/combining.h: Regenerated.
21529         * lib/unictype/ctype_alnum.h: Regenerated.
21530         * lib/unictype/ctype_alpha.h: Regenerated.
21531         * lib/unictype/ctype_graph.h: Regenerated.
21532         * lib/unictype/ctype_lower.h: Regenerated.
21533         * lib/unictype/ctype_print.h: Regenerated.
21534         * lib/unictype/ctype_punct.h: Regenerated.
21535         * lib/unictype/ctype_upper.h: Regenerated.
21536         * lib/unictype/decdigit.h: Regenerated.
21537         * lib/unictype/digit.h: Regenerated.
21538         * lib/unictype/mirror.h: Regenerated.
21539         * lib/unictype/numeric.h: Regenerated.
21540         * lib/unictype/pr_alphabetic.h: Regenerated.
21541         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
21542         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
21543         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
21544         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
21545         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
21546         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
21547         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
21548         * lib/unictype/pr_combining.h: Regenerated.
21549         * lib/unictype/pr_dash.h: Regenerated.
21550         * lib/unictype/pr_decimal_digit.h: Regenerated.
21551         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
21552         * lib/unictype/pr_deprecated.h: Regenerated.
21553         * lib/unictype/pr_diacritic.h: Regenerated.
21554         * lib/unictype/pr_extender.h: Regenerated.
21555         * lib/unictype/pr_format_control.h: Regenerated.
21556         * lib/unictype/pr_grapheme_base.h: Regenerated.
21557         * lib/unictype/pr_grapheme_extend.h: Regenerated.
21558         * lib/unictype/pr_grapheme_link.h: Regenerated.
21559         * lib/unictype/pr_id_continue.h: Regenerated.
21560         * lib/unictype/pr_id_start.h: Regenerated.
21561         * lib/unictype/pr_ideographic.h: Regenerated.
21562         * lib/unictype/pr_ignorable_control.h: Regenerated.
21563         * lib/unictype/pr_lowercase.h: Regenerated.
21564         * lib/unictype/pr_math.h: Regenerated.
21565         * lib/unictype/pr_numeric.h: Regenerated.
21566         * lib/unictype/pr_other_alphabetic.h: Regenerated.
21567         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
21568         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
21569         * lib/unictype/pr_other_id_continue.h: Regenerated.
21570         * lib/unictype/pr_other_lowercase.h: Regenerated.
21571         * lib/unictype/pr_other_math.h: Regenerated.
21572         * lib/unictype/pr_punctuation.h: Regenerated.
21573         * lib/unictype/pr_sentence_terminal.h: Regenerated.
21574         * lib/unictype/pr_soft_dotted.h: Regenerated.
21575         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
21576         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
21577         * lib/unictype/pr_unified_ideograph.h: Regenerated.
21578         * lib/unictype/pr_uppercase.h: Regenerated.
21579         * lib/unictype/pr_xid_continue.h: Regenerated.
21580         * lib/unictype/pr_xid_start.h: Regenerated.
21581         * lib/unictype/pr_zero_width.h: Regenerated.
21582         * lib/unictype/scripts.h: Regenerated.
21583         * lib/unictype/scripts_byname.gperf: Regenerated.
21584         * lib/unictype/sy_java_ident.h: Regenerated.
21585         * lib/unilbrk/lbrkprop1.h: Regenerated.
21586         * lib/unilbrk/lbrkprop2.h: Regenerated.
21587         * tests/unictype/test-categ_C.c: Regenerated.
21588         * tests/unictype/test-categ_Cf.c: Regenerated.
21589         * tests/unictype/test-categ_Cn.c: Regenerated.
21590         * tests/unictype/test-categ_L.c: Regenerated.
21591         * tests/unictype/test-categ_Ll.c: Regenerated.
21592         * tests/unictype/test-categ_Lm.c: Regenerated.
21593         * tests/unictype/test-categ_Lo.c: Regenerated.
21594         * tests/unictype/test-categ_Lu.c: Regenerated.
21595         * tests/unictype/test-categ_M.c: Regenerated.
21596         * tests/unictype/test-categ_Mc.c: Regenerated.
21597         * tests/unictype/test-categ_Me.c: Regenerated.
21598         * tests/unictype/test-categ_Mn.c: Regenerated.
21599         * tests/unictype/test-categ_N.c: Regenerated.
21600         * tests/unictype/test-categ_Nd.c: Regenerated.
21601         * tests/unictype/test-categ_Nl.c: Regenerated.
21602         * tests/unictype/test-categ_No.c: Regenerated.
21603         * tests/unictype/test-categ_P.c: Regenerated.
21604         * tests/unictype/test-categ_Pd.c: Regenerated.
21605         * tests/unictype/test-categ_Pe.c: Regenerated.
21606         * tests/unictype/test-categ_Pf.c: Regenerated.
21607         * tests/unictype/test-categ_Pi.c: Regenerated.
21608         * tests/unictype/test-categ_Po.c: Regenerated.
21609         * tests/unictype/test-categ_Ps.c: Regenerated.
21610         * tests/unictype/test-categ_S.c: Regenerated.
21611         * tests/unictype/test-categ_Sk.c: Regenerated.
21612         * tests/unictype/test-categ_Sm.c: Regenerated.
21613         * tests/unictype/test-categ_So.c: Regenerated.
21614         * tests/unictype/test-ctype_alnum.c: Regenerated.
21615         * tests/unictype/test-ctype_alpha.c: Regenerated.
21616         * tests/unictype/test-ctype_graph.c: Regenerated.
21617         * tests/unictype/test-ctype_lower.c: Regenerated.
21618         * tests/unictype/test-ctype_print.c: Regenerated.
21619         * tests/unictype/test-ctype_punct.c: Regenerated.
21620         * tests/unictype/test-ctype_upper.c: Regenerated.
21621         * tests/unictype/test-decdigit.h: Regenerated.
21622         * tests/unictype/test-digit.h: Regenerated.
21623         * tests/unictype/test-numeric.h: Regenerated.
21624         * tests/unictype/test-pr_alphabetic.c: Regenerated.
21625         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
21626         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
21627         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
21628         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
21629         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
21630         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
21631         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
21632         * tests/unictype/test-pr_combining.c: Regenerated.
21633         * tests/unictype/test-pr_dash.c: Regenerated.
21634         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
21635         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
21636         * tests/unictype/test-pr_deprecated.c: Regenerated.
21637         * tests/unictype/test-pr_diacritic.c: Regenerated.
21638         * tests/unictype/test-pr_extender.c: Regenerated.
21639         * tests/unictype/test-pr_format_control.c: Regenerated.
21640         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
21641         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
21642         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
21643         * tests/unictype/test-pr_id_continue.c: Regenerated.
21644         * tests/unictype/test-pr_id_start.c: Regenerated.
21645         * tests/unictype/test-pr_ideographic.c: Regenerated.
21646         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
21647         * tests/unictype/test-pr_lowercase.c: Regenerated.
21648         * tests/unictype/test-pr_math.c: Regenerated.
21649         * tests/unictype/test-pr_numeric.c: Regenerated.
21650         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
21651         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
21652         Regenerated.
21653         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
21654         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
21655         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
21656         * tests/unictype/test-pr_other_math.c: Regenerated.
21657         * tests/unictype/test-pr_punctuation.c: Regenerated.
21658         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
21659         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
21660         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
21661         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
21662         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
21663         * tests/unictype/test-pr_uppercase.c: Regenerated.
21664         * tests/unictype/test-pr_xid_continue.c: Regenerated.
21665         * tests/unictype/test-pr_xid_start.c: Regenerated.
21666         * tests/unictype/test-pr_zero_width.c: Regenerated.
21667
21668         Update to Unicode 5.1.0.
21669         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
21670         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
21671         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
21672         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
21673         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
21674         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
21675         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
21676         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
21677         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
21678         (nonspacing_table_ind): Update.
21679         * tests/uniwidth/test-uc_width2.sh: Update expected result.
21680
21681         Update to Unicode 5.1.0.
21682         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
21683         code transform.
21684         * lib/uniname/uniname.c (unicode_character_name,
21685         unicode_name_character): Add the range 0x1Fxxx to the code transform.
21686         * lib/uniname/uninames.h: Regenerated.
21687         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
21688
21689 2009-02-07  Bruno Haible  <bruno@clisp.org>
21690
21691         Merge gen-ctype and gen-lbrk into a single program.
21692         * lib/gen-uni-tables.c: New file, incorporating
21693         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
21694         Add directory prefixes to the names of the generated files.
21695         * lib/unictype/gen-ctype.c: Remove file.
21696         * lib/unilbrk/gen-lbrk.c: Remove file.
21697         * modules/gen-uni-tables: New file.
21698         * modules/unictype/gen-ctype: Remove file.
21699         * modules/unilbrk/gen-lbrk: Remove file.
21700
21701 2009-02-07  Bruno Haible  <bruno@clisp.org>
21702
21703         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
21704
21705         New module 'unistr/u32-strcoll'.
21706         * modules/unistr/u32-strcoll: New file.
21707         * lib/unistr/u32-strcoll.c: New file.
21708
21709         New module 'unistr/u16-strcoll'.
21710         * modules/unistr/u16-strcoll: New file.
21711         * lib/unistr/u16-strcoll.c: New file.
21712
21713         New module 'unistr/u8-strcoll'.
21714         * modules/unistr/u8-strcoll: New file.
21715         * lib/unistr/u8-strcoll.c: New file.
21716         * lib/unistr/u-strcoll.h: New file.
21717
21718 2009-02-07  Bruno Haible  <bruno@clisp.org>
21719
21720         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
21721         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
21722         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
21723         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
21724         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
21725         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
21726
21727 2009-02-07  Bruno Haible  <bruno@clisp.org>
21728
21729         Make 64-bit clean.
21730         * lib/unictype/gen-ctype.c (output_predicate, output_category,
21731         output_combclass, output_bidi_category, output_decimal_digit,
21732         output_digit, output_numeric, output_mirror, output_scripts,
21733         output_ident_category): Use proper width specifier in format strings.
21734
21735 2009-02-07  Bruno Haible  <bruno@clisp.org>
21736
21737         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
21738         failure behaviour.
21739
21740 2009-02-07  Jim Meyering  <meyering@redhat.com>
21741
21742         regex: avoid compilation failure with upcoming gcc-4.4
21743         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
21744         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
21745         "... error: integer overflow in preprocessor expression".
21746
21747 2009-02-05  Ben Pfaff  <blp@gnu.org>
21748
21749         Fix link errors on Windows when close module is used.
21750         * modules/close: Add $(LIB_CLOSE) to Link section.
21751         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
21752         $(LIB_CLOSE) on Windows.
21753
21754 2009-02-05  Jim Meyering  <meyering@redhat.com>
21755
21756         still avoid unused-parameter warnings, but do it cleanly
21757         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
21758         (get_fs_usage): Cast to void instead.
21759         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
21760         (dev_from_mount_options, read_file_system_list): Cast to void.
21761         Prompted by Bruno Haible.
21762
21763 2009-02-04  Jim Meyering  <meyering@redhat.com>
21764
21765         fsusage.c: correct copyright year
21766         * lib/fsusage.c: Reflect year in which the change is pushed into
21767
21768         avoid misc. warnings
21769         * lib/fsusage.c (UNUSED_PARAM): Define.
21770         (get_fs_usage): Mark parameter "disk" as unused.
21771         * lib/getugroups.c (getgrent): Use "void" in prototype.
21772         * lib/mountlist.c: Mark unused parameters.
21773         (read_file_system_list): Declare a local with "const".
21774         * lib/nanosleep.c (getnow): Declare static.
21775         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
21776
21777         dirfd: set errno upon failure
21778         * lib/dirfd.c: Include <errno.h>.
21779         Set errno to ENOTSUP when returning -1.
21780         * modules/dirfd (Depends-on): Add errno.
21781         Suggested by John Kodis <kodis@comcast.net>.
21782
21783 2009-02-01  Bruno Haible  <bruno@clisp.org>
21784
21785         Don't assume sizeof (long) >= sizeof (void *).
21786         * lib/memcmp.c: Include stdint.h.
21787         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
21788         srcp2 to 'const byte *'.
21789         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
21790         types to uintptr_t.
21791         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
21792         * modules/memcmp (Depends-on): Add stdint.
21793         Reported by Ozkan Sezer <sezeroz@gmail.com>.
21794
21795 2009-01-30  Eric Blake  <ebb9@byu.net>
21796
21797         fix more require-before-expand issues
21798         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
21799         expand, AC_PROG_AWK.
21800         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
21801
21802 2009-01-28  Eric Blake  <ebb9@byu.net>
21803
21804         version-etc: use consistent URL formatting
21805         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
21806         Improve formatting.  Use fputs for string without %.
21807
21808 2009-01-28  Jim Meyering  <meyering@redhat.com>
21809
21810         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
21811         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
21812         "underquoted definition of NAME" from autoconf-2.59.
21813
21814 2009-01-28  Bruno Haible  <bruno@clisp.org>
21815
21816         * doc/gnulib.texi: Add "Obsolete modules" to index.
21817
21818 2009-01-28  Jim Meyering  <meyering@redhat.com>
21819
21820         useless-if-before-free: recognize more variants
21821         * build-aux/useless-if-before-free: Also recognize e.g.,
21822         if (NULL != p) free (p);
21823
21824 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
21825
21826         test-getaddrinfo: skip (don't fail) this test when there's no network
21827         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
21828         on the presumption that it means you lack network access.
21829
21830 2009-01-26  Jim Meyering  <meyering@redhat.com>
21831
21832         fflush: avoid warnings on modern systems
21833         * lib/fflush.c (rpl_fflush): Move declarations of locals,
21834         pos and result, into scopes where they're used.
21835
21836 2009-01-26  Eric Blake  <ebb9@byu.net>
21837
21838         Silence warning reintroduced by recent extensions patch.
21839         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
21840         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
21841         autoconf.
21842
21843         Backport improved autoconf semantics of AC_DEFUN_ONCE.
21844         * m4/00gnulib.m4: New file.
21845         * gnulib-tool (func_get_filelist): Always use it.
21846         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
21847         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
21848
21849 2009-01-25  Bruno Haible  <bruno@clisp.org>
21850
21851         Make test-quotearg work on MacOS X and AIX.
21852         * tests/test-quotearg.sh: New file.
21853         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
21854         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
21855         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
21856         include <libintl.h>.
21857         (fake_locale): Remove variable.
21858         (gettext, dgettext, dcgettext): Remove functions.
21859         (main): Instead of setting a fake locale, set a real locale. Call
21860         textdomain and bindtextdomain.
21861         * modules/quotearg-tests (Files): Add the new files.
21862         (Depends-on): Add gettext, setenv, unsetenv.
21863         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
21864         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
21865         Augment TESTS_ENVIRONMENT.
21866
21867 2009-01-25  Bruno Haible  <bruno@clisp.org>
21868
21869         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
21870         fr_FR.ISO8859-1 locale on MacOS X.
21871         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
21872         ja_JP.eucJP locale on MacOS X.
21873         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
21874         zh_CN.GB18030 locale on MacOS X.
21875
21876 2009-01-25  Bruno Haible  <bruno@clisp.org>
21877
21878         Avoid link errors on MacOS X 10.3.
21879         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
21880         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
21881
21882 2009-01-25  Bruno Haible  <bruno@clisp.org>
21883
21884         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
21885         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
21886         * modules/pipe (Files): Remove m4/posix_spawn.m4.
21887         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
21888         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
21889         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
21890         posix_spawnattr_init, posix_spawnattr_setsigmask,
21891         posix_spawnattr_setflags, posix_spawnattr_destroy.
21892
21893         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
21894         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
21895         * modules/execute (Files): Remove m4/posix_spawn.m4.
21896         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
21897         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
21898         posix_spawnattr_init, posix_spawnattr_setsigmask,
21899         posix_spawnattr_setflags, posix_spawnattr_destroy.
21900
21901 2009-01-25  Bruno Haible  <bruno@clisp.org>
21902
21903         * lib/glthread/threadlib.c: Include <stdlib.h>.
21904
21905 2009-01-25  Bruno Haible  <bruno@clisp.org>
21906
21907         * lib/glthread/threadlib.c (dummy): New declaration.
21908
21909 2009-01-25  Bruno Haible  <bruno@clisp.org>
21910
21911         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
21912         multibyte characters also for the GB18030 encoding. Don't crash when
21913         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
21914
21915 2009-01-25  Bruno Haible  <bruno@clisp.org>
21916
21917         Avoid redefining 'struct random_data' on OSF/1 5.1.
21918         * lib/stdlib.in.h: Include <random.h> if it exists.
21919         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
21920         HAVE_RANDOM_H. Include <random.h> when testing whether
21921         'struct random_data' exists.
21922         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
21923
21924 2009-01-25  Bruno Haible  <bruno@clisp.org>
21925
21926         Don't install charset.alias on MacOS X >= 10.3.
21927         * lib/localcharset.c (DARWIN7): New macro.
21928         (get_charset_aliases): Hardcode the result for Darwin7.
21929         * modules/localcharset (install-exec-local): Don't install
21930         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
21931
21932 2009-01-25  Bruno Haible  <bruno@clisp.org>
21933
21934         Don't install charset.alias on mingw and Cygwin.
21935         * modules/localcharset (install-exec-local): Don't install
21936         charset.alias on mingw and Cygwin, if the file does not yet exist.
21937         The result for these platforms is hardcoded in localcharset.c.
21938
21939 2009-01-25  Bruno Haible  <bruno@clisp.org>
21940
21941         Make it possible again to use AC_GNU_SOURCE together with gnulib.
21942         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
21943         before requiring AC_USE_SYSTEM_EXTENSIONS.
21944
21945 2009-01-25  Jim Meyering  <meyering@redhat.com>
21946
21947         c-strtod: avoid warnings
21948         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
21949         "assignment discards qualifiers from pointer target type" warnings.
21950
21951 2009-01-24  Bruno Haible  <bruno@clisp.org>
21952
21953         Add support for non-UTF-8 locales on MacOS X.
21954         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
21955         canonical encodings. For Darwin 7 and newer, don't map traditional
21956         encodings to UTF-8.
21957         Reported by Vincent Lefevre <vincent@vinc17.org>
21958         at <http://savannah.gnu.org/bugs/?25235>.
21959
21960 2009-01-24  Bruno Haible  <bruno@clisp.org>
21961
21962         * doc/gnulib.texi (Obsolete modules): New section.
21963         Reported by Mike Frysinger <vapier@gentoo.org>.
21964
21965 2009-01-24  Bruno Haible  <bruno@clisp.org>
21966
21967         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
21968         (%.dvi): New rule.
21969
21970 2009-01-24  Bruno Haible  <bruno@clisp.org>
21971
21972         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
21973         Reported by Eric Blake.
21974
21975 2009-01-24  Bruno Haible  <bruno@clisp.org>
21976
21977         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
21978         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
21979         Reported by Gary V. Vaughan <gary@gnu.org>.
21980
21981 2009-01-24  Bruno Haible  <bruno@clisp.org>
21982
21983         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
21984
21985 2009-01-23  Bruno Haible  <bruno@clisp.org>
21986
21987         Make c-strtod, c-strtold usable in libraries.
21988         * lib/c-strtod.c: Include string.h instead of xalloc.h.
21989         (C_STRTOD): Call strdup instead of xstrdup.
21990         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
21991         * modules/c-strtold (Depends-on): Likewise.
21992         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
21993         * NEWS: Mention the change.
21994         Reported by Michael Gold <mgold@ncf.ca>.
21995
21996 2009-01-23  Jim Meyering  <meyering@redhat.com>
21997
21998         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
21999         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
22000         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
22001
22002 2009-01-23  Simon Josefsson  <simon@josefsson.org>
22003
22004         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
22005         GNU CoreUtils.
22006         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
22007         * modules/version-etc (Description): Update.
22008
22009 2009-01-22  Bruno Haible  <bruno@clisp.org>
22010
22011         Cache the C locale object.
22012         * lib/c-strtod.c (c_locale_cache): New variable.
22013         (c_locale): New function.
22014         (C_STRTOD): Use it, and don't call freelocale.
22015         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
22016         Suggested by Paolo Bonzini.
22017
22018 2009-01-21  Bruno Haible  <bruno@clisp.org>
22019
22020         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
22021         conditions other than overflow.
22022
22023 2009-01-21  Bruno Haible  <bruno@clisp.org>
22024
22025         * lib/c-strtod.c: Include errno.h.
22026         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
22027         value from STRTOD_L and STRTOD.
22028
22029 2009-01-21  Bruno Haible  <bruno@clisp.org>
22030         and Jim Meyering  <meyering@redhat.com>
22031
22032         nanosleep: skip configure test (fail it) for apple universal builds
22033         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
22034         universal builds, assume that nanosleep does not work.
22035         * modules/nanosleep (Depends-on): Add multiarch.
22036
22037         mktime: skip configure test (fail it) for apple universal builds
22038         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
22039         universal builds, assume that mktime does not work.
22040         * modules/mktime (Depends-on): Add multiarch.
22041
22042 2009-01-21  Eric Blake  <ebb9@byu.net>
22043
22044         multiarch: avoid expand-before-require warning
22045         * modules/multiarch (configure.ac): Require, rather than expand,
22046         gl_MULTIARCH.
22047         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
22048         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
22049         enforce that all clients require it.  Partial reversion of
22050         2008-12-29 patch.
22051
22052         error: avoid expand-before-require warning
22053         * modules/errno (configure.ac): Require, rather than expand,
22054         gl_HEADER_ERRNO_H.
22055         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
22056         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
22057         enforce that all clients require it.
22058
22059         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
22060         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
22061         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
22062         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
22063
22064 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
22065
22066         Revert:
22067         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
22068
22069         regex: do not depend on obsolete modules.
22070         * modules/regex: Remove memcmp and memmove.
22071
22072 2009-01-20  Bruno Haible  <bruno@clisp.org>
22073
22074         Make the 'link' module link on Windows NT 4.
22075         * lib/link.c (_WIN32_WINNT): Don't define.
22076         (CreateHardLinkFuncType): New type.
22077         (CreateHardLinkFunc, initialized): New variables.
22078         (initialize): New function.
22079         (link): Invoke CreateHardLink indirectly through the function pointer.
22080
22081 2009-01-20  Bruno Haible  <bruno@clisp.org>
22082
22083         Fix compilation failure on mingw.
22084         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
22085
22086 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
22087
22088         * doc/c-strtod.texi: Mention a couple of restrictions.
22089
22090 2009-01-20  Jim Meyering  <meyering@redhat.com>
22091
22092         gettimeofday: move more declarations out of functions
22093         * lib/gettimeofday.c: Move extern declarations of tzset and
22094         gmtime out of containing functions.  Prompted by Bruno Haible.
22095
22096 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
22097
22098         regex: do not depend on obsolete modules.
22099         * modules/regex: Remove memcmp and memmove.
22100
22101 2009-01-19  Bruno Haible  <bruno@clisp.org>
22102
22103         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
22104         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
22105         gl_BIGENDIAN, not AC_C_BIGENDIAN.
22106         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
22107         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
22108
22109 2009-01-19  Bruno Haible  <bruno@clisp.org>
22110
22111         * tests/test-link.c: Include <errno.h>.
22112         (main): Exit with code 77 when a hard link cannot be created due to
22113         the file system.
22114         * tests/test-link.sh: Skip test when a hard link cannot be created due
22115         to the file system.
22116         Suggested by Eric Blake.
22117
22118 2009-01-19  Martin Lambers  <marlam@marlam.de>
22119
22120         * modules/link-tests: New file.
22121         * tests/test-link.sh: New file.
22122         * tests/test-link.c: New file.
22123
22124 2009-01-19  Eric Blake  <ebb9@byu.net>
22125
22126         doc: mention another function added in cygwin 1.7.0
22127         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
22128         Another new function in cygwin 1.7.
22129
22130 2009-01-19  Bruno Haible  <bruno@clisp.org>
22131
22132         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
22133         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
22134         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
22135         gl_BIGENDIAN, not AC_C_BIGENDIAN.
22136         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
22137         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
22138         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
22139         * m4/md4.m4 (gl_MD4): Likewise.
22140         * m4/md5.m4 (gl_MD5): Likewise.
22141         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
22142         * m4/sha1.m4 (gl_SHA1): Likewise.
22143         * m4/sha256.m4 (gl_SHA256): Likewise.
22144         * m4/sha512.m4 (gl_SHA512): Likewise.
22145
22146 2009-01-19  Bruno Haible  <bruno@clisp.org>
22147
22148         * modules/uniname/uniname-tests (Depends-on): Add progname.
22149         * tests/uniname/test-uninames.c: Include progname.h.
22150         (main): Call set_program_name.
22151
22152         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
22153         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
22154         (main): Call set_program_name.
22155
22156         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
22157         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
22158         (main): Call set_program_name.
22159
22160         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
22161         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
22162         (main): Call set_program_name.
22163
22164         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
22165         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
22166         (main): Call set_program_name.
22167
22168         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
22169         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
22170         (main): Call set_program_name.
22171
22172         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
22173         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
22174         (main): Call set_program_name.
22175
22176         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
22177         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
22178         (main): Call set_program_name.
22179
22180         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
22181         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
22182         (main): Call set_program_name.
22183
22184 2009-01-19  Eric Blake  <ebb9@byu.net>
22185
22186         test-unistd: test previous patch
22187         * tests/test-unistd.c: Test *_FILENO macros.
22188
22189         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
22190         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
22191         Guarantee a definition.
22192         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
22193         * modules/unistd-safer (Depends-on): Add dependency on unistd.
22194         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
22195         * lib/dup-safer.c (STDERR_FILENO): Likewise.
22196         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
22197         Likewise.
22198         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
22199         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
22200         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
22201         Likewise.
22202         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
22203         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
22204         (STDERR_FILENO): Likewise.
22205         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
22206         (STDERR_FILENO): Likewise.
22207         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
22208         (STDERR_FILENO): Likewise.
22209         Reported by Elbert Pol.
22210
22211 2009-01-19  Eric Blake  <ebb9@byu.net>
22212
22213         doc: mention more functions added in cygwin 1.7.0
22214         * doc/posix-functions/abort.texi (abort): Update wording related
22215         to cygwin.
22216         * doc/posix-functions/daylight.texi (daylight): Likewise.
22217         * doc/posix-functions/optarg.texi (optarg): Likewise.
22218         * doc/posix-functions/optarg.texi (opterr): Likewise.
22219         * doc/posix-functions/optarg.texi (optind): Likewise.
22220         * doc/posix-functions/optarg.texi (optopt): Likewise.
22221         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
22222         worked in 1.5.x, and was withdrawn in 1.7.
22223         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
22224         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
22225         cygwin versions.
22226         * doc/posix-functions/perror.texi (perror): Likewise.
22227         * doc/posix-functions/printf.texi (printf): Likewise.
22228         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
22229         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
22230         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
22231         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
22232         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
22233         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
22234         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
22235         Likewise.
22236         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
22237         Likewise.
22238         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
22239         this function.
22240         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
22241         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
22242         Likewise.
22243         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
22244         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
22245         * doc/posix-functions/confstr.texi (confstr): Likewise.
22246         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
22247         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
22248         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
22249         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
22250         * doc/posix-functions/fputws.texi (fputws): Likewise.
22251         * doc/posix-functions/fwide.texi (fwide): Likewise.
22252         * doc/posix-functions/getwc.texi (getwc): Likewise.
22253         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
22254         * doc/posix-functions/putwc.texi (putwc): Likewise.
22255         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
22256         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
22257         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
22258         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
22259         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
22260         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
22261         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
22262         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
22263         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
22264         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
22265         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
22266
22267 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
22268
22269         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
22270         * lib/ioctl.c: Include <sys/ioctl.h>.
22271
22272 2009-01-19  Simon Josefsson  <simon@josefsson.org>
22273
22274         * modules/getdate-tests (Depends-on): Add progname.
22275         * tests/test-getdate.c: Use progname module, to avoid link errors
22276         on non-glibc systems.
22277
22278 2009-01-18  Simon Josefsson  <simon@josefsson.org>
22279
22280         * modules/filenamecat-tests (Depends-on): Add progname.
22281         * modules/fstrcmp-tests (Depends-on): Likewise.
22282
22283         * tests/test-filenamecat.c: Use progname module, to avoid link
22284         errors on non-glibc systems.
22285         * tests/test-fstrcmp.c: Likewise.
22286
22287 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
22288
22289         gettimeofday: avoid warning: nested extern declaration of 'localtime'
22290         * lib/gettimeofday.c: Move extern declaration out of function.
22291
22292 2009-01-18  Bruno Haible  <bruno@clisp.org>
22293
22294         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
22295         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
22296         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
22297
22298 2009-01-18  Bruno Haible  <bruno@clisp.org>
22299
22300         * lib/strftime.c (MEMPCPY): Remove unused macro.
22301         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
22302
22303 2009-01-18  Martin Lambers  <marlam@marlam.de>
22304
22305         New module 'link'.
22306         * lib/unistd.in.h (link): New declaration.
22307         * lib/link.c: New file.
22308         * m4/link.m4: New file.
22309         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
22310         HAVE_LINK.
22311         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
22312         * modules/link: New file.
22313         * doc/posix-functions/link.texi: Mention the new module.
22314
22315 2009-01-18  Bruno Haible  <bruno@clisp.org>
22316
22317         * tests/test-avltree_list.c (main): Call set_program_name.
22318         * tests/test-avltree_oset.c (main): Likewise.
22319         * tests/test-obstack-printf.c: Include progname.h.
22320         (main): Call set_program_name.
22321         * tests/test-quotearg.c: Include progname.h.
22322         (main): Call set_program_name.
22323         * tests/test-xmemdup0.c: Include progname.h.
22324         (main): Call set_program_name.
22325
22326 2009-01-18  Bruno Haible  <bruno@clisp.org>
22327
22328         New module 'alphasort'.
22329         * lib/dirent.in.h (alphasort): New declaration.
22330         * lib/alphasort.c: New file, from glibc with modifications.
22331         * m4/alphasort.m4: New file.
22332         * modules/alphasort: New file.
22333         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
22334         HAVE_ALPHASORT.
22335         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
22336         HAVE_ALPHASORT.
22337         * doc/posix-functions/alphasort.texi: Mention the new module and the
22338         portability problems.
22339
22340 2009-01-18  Bruno Haible  <bruno@clisp.org>
22341
22342         New module 'scandir'.
22343         * lib/dirent.in.h (scandir): New declaration.
22344         * lib/scandir.c: New file, from glibc with modifications.
22345         * m4/scandir.m4: New file.
22346         * modules/scandir: New file.
22347         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
22348         HAVE_SCANDIR.
22349         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
22350         HAVE_SCANDIR.
22351         * doc/posix-functions/scandir.texi: Mention the new module and the
22352         portability problems.
22353
22354 2009-01-17  Bruno Haible  <bruno@clisp.org>
22355
22356         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
22357         Update documentation.
22358         (func_remove_suffix): Escape all dots in the suffix. Update
22359         documentation.
22360         (func_filter_filelist): Update documentation.
22361         Reported by Ralf Wildenhues.
22362
22363 2009-01-17  Bruno Haible  <bruno@clisp.org>
22364
22365         * modules/dprintf-posix-tests: New file.
22366         * tests/test-dprintf-posix.sh: New file.
22367         * tests/test-dprintf-posix.c: New file.
22368
22369         New modules 'dprintf', 'dprintf-posix'.
22370         * lib/stdio.in.h (dprintf): New declaration.
22371         * lib/dprintf.c: New file.
22372         * m4/dprintf.m4: New file.
22373         * m4/dprintf-posix.m4: New file.
22374         * modules/dprintf: New file.
22375         * modules/dprintf-posix: New file.
22376         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
22377         HAVE_DPRINTF, REPLACE_DPRINTF.
22378         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
22379         HAVE_DPRINTF, REPLACE_DPRINTF.
22380         * doc/posix-functions/dprintf.texi: Mention the new modules.
22381
22382 2009-01-17  Bruno Haible  <bruno@clisp.org>
22383
22384         * modules/vdprintf-posix-tests: New file.
22385         * tests/test-vdprintf-posix.sh: New file.
22386         * tests/test-vdprintf-posix.c: New file.
22387
22388         New modules 'vdprintf', 'vdprintf-posix'.
22389         * lib/stdio.in.h (vdprintf): New declaration.
22390         * lib/vdprintf.c: New file.
22391         * m4/vdprintf.m4: New file.
22392         * m4/vdprintf-posix.m4: New file.
22393         * modules/vdprintf: New file.
22394         * modules/vdprintf-posix: New file.
22395         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
22396         HAVE_VDPRINTF, REPLACE_VDPRINTF.
22397         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
22398         HAVE_VDPRINTF, REPLACE_VDPRINTF.
22399         * doc/posix-functions/vdprintf.texi: Mention the new modules.
22400
22401 2009-01-17  Bruno Haible  <bruno@clisp.org>
22402
22403         Fix replacement of fopen on mingw.
22404         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
22405         mingw.
22406
22407 2009-01-17  Bruno Haible  <bruno@clisp.org>
22408
22409         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
22410         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
22411
22412 2009-01-17  Bruno Haible  <bruno@clisp.org>
22413
22414         Avoid test-fflush2.sh failure on mingw.
22415         * tests/test-fflush2.c: Include binary-io.h.
22416         (main): Put standard input into binary mode.
22417         * modules/fflush-tests (Depends-on): Add binary-io.
22418
22419 2009-01-17  Bruno Haible  <bruno@clisp.org>
22420
22421         * lib/wchar.in.h: In another particular situation, include only the
22422         system's <wchar.h> file.
22423         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
22424         Reported by Albert Chin-A-Young <china@thewrittenword.com>
22425         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
22426
22427 2009-01-17  Bruno Haible  <bruno@clisp.org>
22428
22429         Support for stripping executables in --enable-relocatable.
22430         * build-aux/install-reloc: Expect one more argument, or an environment
22431         variable RELOC_STRIP_PROG. If set, strip the destination program and
22432         its wrapper.
22433         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
22434         RELOC_STRIP_PROG.
22435         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
22436         to set RELOCATABLE_STRIP.
22437         * NEWS: Mention the new Makefile requirement.
22438
22439 2009-01-17  Bruno Haible  <bruno@clisp.org>
22440
22441         * build-aux/install-reloc: Remove debugging information left over by
22442         C compiler on MacOS X.
22443
22444 2009-01-17  Bruno Haible  <bruno@clisp.org>
22445
22446         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
22447         * lib/progreloc.c (find_executable): Fix type of pointer passed to
22448         _NSGetExecutablePath.
22449
22450 2009-01-16  Jim Meyering  <meyering@redhat.com>
22451
22452         strerror: avoid warnings about discarding "const"
22453         * lib/strerror.c (rpl_strerror): Instead of returning a const
22454         string from each and every "case", use a variable, and add a single
22455         cast after the switch.
22456
22457 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
22458
22459         * lib/arpa_inet.in.h: Add extern "C" block for C++.
22460
22461 2009-01-16  Bruno Haible  <bruno@clisp.org>
22462
22463         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
22464         array initializer syntax that also works in C++ mode.
22465         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22466
22467 2009-01-16  Jim Meyering  <meyering@redhat.com>
22468
22469         poll: suppress a warning
22470         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
22471         to ignore "...unsigned expression < 0 is always false" warnings.
22472
22473 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
22474
22475         poll: remove declarations of unused variables
22476         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
22477         sockbuf and optlen.
22478
22479 2009-01-15  Bruno Haible  <bruno@clisp.org>
22480
22481         Make fflush-after-ungetc POSIX compliant on BSD systems.
22482         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
22483         (clear_ungetc_buffer): Implement also for other systems.
22484         (rpl_fflush): On glibc systems, invoke
22485         clear_ungetc_buffer_preserving_position. Otherwise, invoke
22486         clear_ungetc_buffer after fetching the stream's position, not before.
22487
22488 2009-01-15  Bruno Haible  <bruno@clisp.org>
22489
22490         Make fflush-after-ungetc POSIX compliant on glibc systems.
22491         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
22492         after ungetc.
22493         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
22494         (rpl_fflush): On glibc systems, simply call the system's fflush
22495         function after clearing the ungetc buffer.
22496         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
22497         Instead, lseek only to the end of file, then use the system's fseeko
22498         for the rest. On glibc systems, reset the EOF indicator bit.
22499
22500 2009-01-15  Jim Meyering  <meyering@redhat.com>
22501
22502         openmp.m4: revert quote-adding change, for portability to older autoconf
22503         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
22504         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
22505         Simon Josefsson noticed the problem when using autoconf-2.61.
22506
22507 2009-01-15  Bruno Haible  <bruno@clisp.org>
22508
22509         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
22510         * tests/test-fflush2.c (ASSERT): Always fail.
22511         (main): Add two tests for fflush() after ungetc(), taking into account
22512         the Austin Group's clarification.
22513         Suggested by Eric Blake.
22514
22515 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
22516
22517         mktime.m4: remove K&R-style function prototypes
22518         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
22519         for the Sun C++ compiler.
22520
22521 2009-01-14  Bruno Haible  <bruno@clisp.org>
22522
22523         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
22524         while including <wchar.h>.
22525         * lib/wchar.in.h: In two particular situations on HP-UX, include only
22526         the system's <wchar.h> file.
22527         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22528
22529 2009-01-14  Bruno Haible  <bruno@clisp.org>
22530
22531         * m4/csharp.m4: Don't mention gettext on the serial number line.
22532         * m4/csharpexec.m4: Likewise.
22533         * m4/eaccess.m4: Likewise.
22534         * m4/javaexec.m4: Likewise.
22535         * m4/sig_atomic_t.m4: Likewise.
22536         * m4/tmpdir.m4: Likewise.
22537         * m4/intldir.m4: Bump gettext version.
22538         * m4/lib-ld.m4: Likewise.
22539
22540 2009-01-14  Bruno Haible  <bruno@clisp.org>
22541
22542         * lib/progname.c (set_program_name): Add more comments.
22543         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
22544
22545 2009-01-14  Simon Josefsson  <simon@josefsson.org>
22546
22547         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
22548         were sys/stat.h does not define it.
22549
22550 2009-01-14  Jim Meyering  <meyering@redhat.com>
22551
22552         many *.m4 files: improve m4 quoting
22553         99% of this change was performed by running the following commands:
22554         git ls-files | grep '\.m4$' | xargs perl -pi \
22555           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
22556           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
22557           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
22558           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
22559         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
22560         The remainder were to add Copyright dates, increment serial numbers,
22561         undo some changes in comments, exclude m4/intl.m4, and add quotes
22562         around the "1" in ",1" where the unusual spacing prohibited the
22563         above regexps from doing the job.  For more details, see
22564         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
22565         * m4/acl.m4: Modified.
22566         * m4/afs.m4: Likewise.
22567         * m4/alloca.m4: Likewise.
22568         * m4/argp.m4: Likewise.
22569         * m4/argz.m4: Likewise.
22570         * m4/atexit.m4: Likewise.
22571         * m4/bison-i18n.m4: Likewise.
22572         * m4/bison.m4: Likewise.
22573         * m4/byteswap.m4: Likewise.
22574         * m4/c-stack.m4: Likewise.
22575         * m4/c-strtod.m4: Likewise.
22576         * m4/calloc.m4: Likewise.
22577         * m4/canonicalize-lgpl.m4: Likewise.
22578         * m4/chown.m4: Likewise.
22579         * m4/clock_time.m4: Likewise.
22580         * m4/codeset.m4: Likewise.
22581         * m4/copy-file.m4: Likewise.
22582         * m4/csharp.m4: Likewise.
22583         * m4/csharpcomp.m4: Likewise.
22584         * m4/csharpexec.m4: Likewise.
22585         * m4/d-ino.m4: Likewise.
22586         * m4/d-type.m4: Likewise.
22587         * m4/dirfd.m4: Likewise.
22588         * m4/double-slash-root.m4: Likewise.
22589         * m4/eaccess.m4: Likewise.
22590         * m4/eealloc.m4: Likewise.
22591         * m4/environ.m4: Likewise.
22592         * m4/errno_h.m4: Likewise.
22593         * m4/euidaccess.m4: Likewise.
22594         * m4/execute.m4: Likewise.
22595         * m4/fatal-signal.m4: Likewise.
22596         * m4/fchdir.m4: Likewise.
22597         * m4/fcntl_h.m4: Likewise.
22598         * m4/fileblocks.m4: Likewise.
22599         * m4/filenamecat.m4: Likewise.
22600         * m4/findprog.m4: Likewise.
22601         * m4/flexmember.m4: Likewise.
22602         * m4/fnmatch.m4: Likewise.
22603         * m4/fopen.m4: Likewise.
22604         * m4/fpending.m4: Likewise.
22605         * m4/fprintf-posix.m4: Likewise.
22606         * m4/free.m4: Likewise.
22607         * m4/frexp.m4: Likewise.
22608         * m4/frexpl.m4: Likewise.
22609         * m4/fsusage.m4: Likewise.
22610         * m4/ftruncate.m4: Likewise.
22611         * m4/gc-camellia.m4: Likewise.
22612         * m4/gc-random.m4: Likewise.
22613         * m4/gc.m4: Likewise.
22614         * m4/getaddrinfo.m4: Likewise.
22615         * m4/getcwd-abort-bug.m4: Likewise.
22616         * m4/getcwd-path-max.m4: Likewise.
22617         * m4/getdate.m4: Likewise.
22618         * m4/getdomainname.m4: Likewise.
22619         * m4/getgroups.m4: Likewise.
22620         * m4/gethostname.m4: Likewise.
22621         * m4/gethrxtime.m4: Likewise.
22622         * m4/getline.m4: Likewise.
22623         * m4/getloadavg.m4: Likewise.
22624         * m4/getndelim2.m4: Likewise.
22625         * m4/getpass.m4: Likewise.
22626         * m4/gettext.m4: Likewise.
22627         * m4/gettime.m4: Likewise.
22628         * m4/gettimeofday.m4: Likewise.
22629         * m4/gnulib-common.m4: Likewise.
22630         * m4/group-member.m4: Likewise.
22631         * m4/host-os.m4: Likewise.
22632         * m4/iconv.m4: Likewise.
22633         * m4/iconv_open.m4: Likewise.
22634         * m4/inet_ntop.m4: Likewise.
22635         * m4/inet_pton.m4: Likewise.
22636         * m4/inline.m4: Likewise.
22637         * m4/intldir.m4: Likewise.
22638         * m4/intlmacosx.m4: Likewise.
22639         * m4/intmax.m4: Likewise.
22640         * m4/intmax_t.m4: Likewise.
22641         * m4/inttypes.m4: Likewise.
22642         * m4/inttypes_h.m4: Likewise.
22643         * m4/inttypes-pri.m4: Likewise.
22644         * m4/isapipe.m4: Likewise.
22645         * m4/isnand.m4: Likewise.
22646         * m4/isnanf.m4: Likewise.
22647         * m4/isnanl.m4: Likewise.
22648         * m4/javacomp.m4: Likewise.
22649         * m4/javaexec.m4: Likewise.
22650         * m4/jm-winsz1.m4: Likewise.
22651         * m4/jm-winsz2.m4: Likewise.
22652         * m4/lchown.m4: Likewise.
22653         * m4/lcmessage.m4: Likewise.
22654         * m4/ldexpl.m4: Likewise.
22655         * m4/lib-ld.m4: Likewise.
22656         * m4/lib-link.m4: Likewise.
22657         * m4/libsigsegv.m4: Likewise.
22658         * m4/link-follow.m4: Likewise.
22659         * m4/localcharset.m4: Likewise.
22660         * m4/locale-fr.m4: Likewise.
22661         * m4/locale-ja.m4: Likewise.
22662         * m4/locale-tr.m4: Likewise.
22663         * m4/locale-zh.m4: Likewise.
22664         * m4/lock.m4: Likewise.
22665         * m4/longlong.m4: Likewise.
22666         * m4/ls-mntd-fs.m4: Likewise.
22667         * m4/lstat.m4: Likewise.
22668         * m4/malloc.m4: Likewise.
22669         * m4/mathl.m4: Likewise.
22670         * m4/mbrtowc.m4: Likewise.
22671         * m4/mbstate_t.m4: Likewise.
22672         * m4/mbswidth.m4: Likewise.
22673         * m4/memchr.m4: Likewise.
22674         * m4/memcmp.m4: Likewise.
22675         * m4/memcpy.m4: Likewise.
22676         * m4/memmem.m4: Likewise.
22677         * m4/memmove.m4: Likewise.
22678         * m4/mempcpy.m4: Likewise.
22679         * m4/memrchr.m4: Likewise.
22680         * m4/memset.m4: Likewise.
22681         * m4/minmax.m4: Likewise.
22682         * m4/mkdir-slash.m4: Likewise.
22683         * m4/mkdtemp.m4: Likewise.
22684         * m4/mktime.m4: Likewise.
22685         * m4/mmap-anon.m4: Likewise.
22686         * m4/mountlist.m4: Likewise.
22687         * m4/nanosleep.m4: Likewise.
22688         * m4/nls.m4: Likewise.
22689         * m4/nocrash.m4: Likewise.
22690         * m4/open.m4: Likewise.
22691         * m4/openat.m4: Likewise.
22692         * m4/openmp.m4: Likewise.
22693         * m4/pathmax.m4: Likewise.
22694         * m4/perl.m4: Likewise.
22695         * m4/physmem.m4: Likewise.
22696         * m4/pipe.m4: Likewise.
22697         * m4/po.m4: Likewise.
22698         * m4/poll.m4: Likewise.
22699         * m4/posixtm.m4: Likewise.
22700         * m4/posixver.m4: Likewise.
22701         * m4/printf-frexp.m4: Likewise.
22702         * m4/printf-frexpl.m4: Likewise.
22703         * m4/printf-posix.m4: Likewise.
22704         * m4/printf-posix-rpl.m4: Likewise.
22705         * m4/printf.m4: Likewise.
22706         * m4/progtest.m4: Likewise.
22707         * m4/putenv.m4: Likewise.
22708         * m4/readline.m4: Likewise.
22709         * m4/readlink.m4: Likewise.
22710         * m4/readutmp.m4: Likewise.
22711         * m4/realloc.m4: Likewise.
22712         * m4/regex.m4: Likewise.
22713         * m4/relocatable.m4: Likewise.
22714         * m4/relocatable-lib.m4: Likewise.
22715         * m4/rename-dest-slash.m4: Likewise.
22716         * m4/rename.m4: Likewise.
22717         * m4/rmdir-errno.m4: Likewise.
22718         * m4/rmdir.m4: Likewise.
22719         * m4/roundf.m4: Likewise.
22720         * m4/roundl.m4: Likewise.
22721         * m4/rpmatch.m4: Likewise.
22722         * m4/save-cwd.m4: Likewise.
22723         * m4/selinux-selinux-h.m4: Likewise.
22724         * m4/setenv.m4: Likewise.
22725         * m4/settime.m4: Likewise.
22726         * m4/sig2str.m4: Likewise.
22727         * m4/sig_atomic_t.m4: Likewise.
22728         * m4/signalblocking.m4: Likewise.
22729         * m4/signbit.m4: Likewise.
22730         * m4/sigpipe.m4: Likewise.
22731         * m4/sockets.m4: Likewise.
22732         * m4/sockpfaf.m4: Likewise.
22733         * m4/st_dm_mode.m4: Likewise.
22734         * m4/stat-time.m4: Likewise.
22735         * m4/stdbool.m4: Likewise.
22736         * m4/stdint.m4: Likewise.
22737         * m4/stdint_h.m4: Likewise.
22738         * m4/stpcpy.m4: Likewise.
22739         * m4/stpncpy.m4: Likewise.
22740         * m4/strcase.m4: Likewise.
22741         * m4/strchrnul.m4: Likewise.
22742         * m4/strcspn.m4: Likewise.
22743         * m4/strdup.m4: Likewise.
22744         * m4/strftime.m4: Likewise.
22745         * m4/strndup.m4: Likewise.
22746         * m4/strnlen.m4: Likewise.
22747         * m4/strpbrk.m4: Likewise.
22748         * m4/strptime.m4: Likewise.
22749         * m4/strsep.m4: Likewise.
22750         * m4/strtod.m4: Likewise.
22751         * m4/strtoimax.m4: Likewise.
22752         * m4/strtok_r.m4: Likewise.
22753         * m4/strtol.m4: Likewise.
22754         * m4/strtoll.m4: Likewise.
22755         * m4/strtoul.m4: Likewise.
22756         * m4/strtoull.m4: Likewise.
22757         * m4/strtoumax.m4: Likewise.
22758         * m4/strverscmp.m4: Likewise.
22759         * m4/threadlib.m4: Likewise.
22760         * m4/timegm.m4: Likewise.
22761         * m4/tm_gmtoff.m4: Likewise.
22762         * m4/tmpdir.m4: Likewise.
22763         * m4/tmpfile.m4: Likewise.
22764         * m4/tzset.m4: Likewise.
22765         * m4/uintmax_t.m4: Likewise.
22766         * m4/unlinkdir.m4: Likewise.
22767         * m4/unlocked-io.m4: Likewise.
22768         * m4/uptime.m4: Likewise.
22769         * m4/userspec.m4: Likewise.
22770         * m4/utimbuf.m4: Likewise.
22771         * m4/utime.m4: Likewise.
22772         * m4/utimes-null.m4: Likewise.
22773         * m4/utimes.m4: Likewise.
22774         * m4/vararrays.m4: Likewise.
22775         * m4/vasnprintf.m4: Likewise.
22776         * m4/vfprintf-posix.m4: Likewise.
22777         * m4/vprintf-posix.m4: Likewise.
22778         * m4/wait-process.m4: Likewise.
22779         * m4/wchar_t.m4: Likewise.
22780         * m4/wint_t.m4: Likewise.
22781         * m4/write-any-file.m4: Likewise.
22782         * m4/yield.m4: Likewise.
22783
22784 2009-01-13  Bruno Haible  <bruno@clisp.org>
22785
22786         Avoid test-copy-file.sh failures when ACL support insufficient.
22787         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
22788         TESTS_ENVIRONMENT.
22789         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
22790         Reported by Jim Meyering.
22791
22792 2009-01-13  Bruno Haible  <bruno@clisp.org>
22793
22794         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
22795         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
22796         * modules/unistdio/u8-printf-parse (Files): Likewise.
22797         * modules/unistdio/u32-printf-parse (Files): Likewise.
22798         * modules/unistdio/ulc-printf-parse (Files): Likewise.
22799
22800 2009-01-13  Simon Josefsson  <simon@josefsson.org>
22801
22802         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
22803         and m4/inttypes_h.m4 too.
22804
22805 2009-01-12  Eric Blake  <ebb9@byu.net>
22806
22807         tests: IRIX 6.2 cc can't compile -0.0 into .data
22808         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
22809         rather than at compile-time.
22810         * tests/test-floorl.c (minus_zero): Likewise.
22811         * tests/test-frexpl.c (minus_zero): Likewise.
22812         * tests/test-isnan.c (minus_zerol): Likewise.
22813         * tests/test-isnanl.h (minus_zero): Likewise.
22814         * tests/test-ldexpl.c (minus_zero): Likewise.
22815         * tests/test-roundl.c (minus_zero): Likewise.
22816         * tests/test-signbit.c (minus_zerol): Likewise.
22817         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
22818         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
22819         * tests/test-truncl.c (minus_zero): Likewise.
22820         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
22821         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
22822         Reported by Tom G. Christensen and Nelson H. F. Beebe.
22823
22824 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
22825
22826         regex: fix glibc bug 9697
22827         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
22828         handling.
22829
22830 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
22831
22832         regex: fix glibc bug 697
22833         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
22834         being NULL also if there are no backreferences.
22835
22836 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
22837
22838         regex: merge glibc changes
22839         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
22840         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
22841         re_string_skip_chars, re_string_reconstruct): Likewise.
22842         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
22843
22844 2009-01-07  Jim Meyering  <meyering@redhat.com>
22845
22846         poll: filter through cppi
22847         * lib/poll.c: Indent cpp directives to reflect nesting.
22848
22849 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
22850
22851         poll: don't return uninitialized
22852         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
22853
22854 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
22855
22856         avoid compile failure on AIX 6.1
22857         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
22858         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
22859
22860 2009-01-04  Jim Meyering  <meyering@redhat.com>
22861
22862         remove duplicate inclusion of <stdio.h>
22863         * tests/test-fprintf-posix.c: Likewise.
22864         * tests/test-printf-posix.c: Likewise.
22865         * tests/test-snprintf-posix.c: Likewise.
22866         * tests/test-sprintf-posix.c: Likewise.
22867         * tests/test-vasprintf-posix.c: Likewise.
22868         * tests/test-vfprintf-posix.c: Likewise.
22869         * tests/test-vprintf-posix.c: Likewise.
22870         * tests/test-vsnprintf-posix.c: Likewise.
22871         * tests/test-vsprintf-posix.c: Likewise.
22872
22873 2009-01-03  Jim Meyering  <meyering@redhat.com>
22874
22875         gnulib-tool: fix sed-based filtering
22876         * gnulib-tool (func_filter_filelist): Remove extra backslash
22877         in sed_fff_filter definition.
22878
22879 2009-01-02  Jim Meyering  <meyering@redhat.com>
22880
22881         strftime: avoid compilation failure on Solaris 2.6
22882         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
22883         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
22884         Don't #define mbrlen or mbsinit, since now they're guaranteed to
22885         be available.  Reported by Tom G. Christensen.  Details in
22886         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
22887
22888 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22889             Bruno Haible  <bruno@clisp.org>
22890
22891         Speed up gnulib-tool by doing more string processing through shell
22892         built-ins.
22893         * gnulib-tool (fast_func_append): New variable.
22894         (func_remove_prefix, func_remove_suffix): New functions.
22895         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
22896         (func_filter_filelist): New function.
22897         (func_get_dependencies): Use func_remove_suffix instead of sed.
22898         (func_get_automake_snippet): Use func_filter_filelist instead of a
22899         subshell and sed invocation.
22900
22901 2009-01-01  Bruno Haible  <bruno@clisp.org>
22902
22903         Fix a security bug.
22904         * gnulib-tool (func_import, import, update): Don't allow the characters
22905         '"', '$', '`', '\' in macro arguments that become part of commands that
22906         are evaluated.
22907
22908 2009-01-01  Bruno Haible  <bruno@clisp.org>
22909
22910         * gnulib-tool (func_reset_sigpipe): Add more comments.
22911
22912 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22913
22914         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
22915         func_emit_tests_Makefile_am, func_import): Abort loops early if we
22916         already know the answer.
22917
22918 2009-01-01  Jim Meyering  <meyering@redhat.com>
22919
22920         * lib/version-etc.c (version_etc_va): Update copyright year.
22921
22922 2008-12-30  Bruno Haible  <bruno@clisp.org>
22923
22924         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
22925         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
22926         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
22927
22928 2008-12-29  Eric Blake  <ebb9@byu.net>
22929
22930         multiarch: avoid autoconf AC_REQUIRE bug
22931         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
22932         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
22933         2.63 and older.
22934         Reported by Bruno Haible, and analyzed in
22935         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
22936
22937 2008-12-29  Bruno Haible  <bruno@clisp.org>
22938
22939         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
22940         files in subdirectories correctly.
22941         Reported by Ralf Wildenhues.
22942
22943 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22944
22945         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
22946         rather than 'join FILE -', for Solaris join.
22947
22948 2008-12-29  Bruno Haible  <bruno@clisp.org>
22949
22950         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
22951         quoting.
22952         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
22953         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
22954         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
22955         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
22956         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
22957         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
22958         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
22959         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
22960         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
22961         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
22962         * m4/nls.m4 (AM_NLS): Likewise.
22963         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
22964         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
22965         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
22966         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
22967         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
22968         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
22969         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
22970         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
22971         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
22972         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
22973         * m4/xsize.m4 (gl_XSIZE): Likewise.
22974         Suggested by Jim Meyering.
22975
22976 2008-11-17  Bruce Korb  <bkorb@gnu.org>
22977
22978         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
22979         * lib/parse-duration.c: use a switch instead of cascading if's.
22980
22981 2008-12-29  Eric Blake  <ebb9@byu.net>
22982
22983         wchar.h: supply WEOF on Irix 5.3
22984         * lib/wchar.in.h (wint_t): Also supply WEOF.
22985         * lib/wctype.in.h (wint_t): Likewise.
22986         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
22987         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
22988         Reported by Tom G. Christensen.
22989
22990 2008-12-26  Bruno Haible  <bruno@clisp.org>
22991
22992         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
22993         i486, i586, i686.
22994
22995 2008-12-26  Bruno Haible  <bruno@clisp.org>
22996
22997         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
22998
22999 2008-12-26  Bruno Haible  <bruno@clisp.org>
23000
23001         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
23002         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
23003         not __STDC_CONSTANT_MACROS.
23004         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
23005
23006 2008-12-25  Bruno Haible  <bruno@clisp.org>
23007
23008         Add support for universal builds to vasnprintf.
23009         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
23010         universal builds, guess no.
23011         * modules/vasnprintf-posix (Depends-on): Add multiarch.
23012         * modules/vasprintf-posix (Depends-on): Likewise.
23013         * modules/fprintf-posix (Depends-on): Likewise.
23014         * modules/vfprintf-posix (Depends-on): Likewise.
23015         * modules/snprintf-posix (Depends-on): Likewise.
23016         * modules/vsnprintf-posix (Depends-on): Likewise.
23017         * modules/sprintf-posix (Depends-on): Likewise.
23018         * modules/vsprintf-posix (Depends-on): Likewise.
23019         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
23020         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
23021         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
23022         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
23023         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
23024         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
23025         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
23026
23027         Add support for universal builds to <inttypes.h>.
23028         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
23029         _SCNu64_PREFIX): In Apple
23030         universal builds, define directly, using _LP64.
23031         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
23032         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
23033         * modules/inttypes (Depends-on): Add multiarch.
23034         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
23035
23036         Add support for universal builds to <stdint.h>.
23037         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
23038         universal builds, define directly, using _LP64.
23039         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
23040         Apple universal builds, don't test for the size and suffix of ptrdiff_t
23041         and size_t.
23042         * modules/stdint (Depends-on): Add multiarch.
23043         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
23044
23045         New module 'multiarch'.
23046         * modules/multiarch: New file.
23047         * m4/multiarch.m4: New file.
23048
23049 2008-12-25  Bruno Haible  <bruno@clisp.org>
23050
23051         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
23052
23053 2008-12-25  Bruno Haible  <bruno@clisp.org>
23054
23055         * modules/btowc (License): Relicense under LGPLv2+.
23056         * modules/mbsinit (License): Likewise.
23057         * modules/mbrtowc (License): Likewise.
23058         * modules/wcrtomb (License): Likewise.
23059         * modules/streq (License): Likewise.
23060         Reported by David Lutterkort <lutter@redhat.com>.
23061
23062 2008-12-23  Bruno Haible  <bruno@clisp.org>
23063
23064         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
23065
23066 2008-12-23  Bruno Haible  <bruno@clisp.org>
23067
23068         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
23069         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
23070         GETADDRINFO_LIB, not in LIBS.
23071         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
23072         * modules/canon-host (Link): Likewise.
23073         * NEWS: Mention the change.
23074         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
23075         GETADDRINFO_LIB.
23076
23077 2008-12-22  Bruno Haible  <bruno@clisp.org>
23078
23079         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
23080         * doc/posix-functions/iswalpha_l.texi: Likewise.
23081         * doc/posix-functions/iswblank_l.texi: Likewise.
23082         * doc/posix-functions/iswcntrl_l.texi: Likewise.
23083         * doc/posix-functions/iswctype_l.texi: Likewise.
23084         * doc/posix-functions/iswdigit_l.texi: Likewise.
23085         * doc/posix-functions/iswgraph_l.texi: Likewise.
23086         * doc/posix-functions/iswlower_l.texi: Likewise.
23087         * doc/posix-functions/iswprint_l.texi: Likewise.
23088         * doc/posix-functions/iswpunct_l.texi: Likewise.
23089         * doc/posix-functions/iswspace_l.texi: Likewise.
23090         * doc/posix-functions/iswupper_l.texi: Likewise.
23091         * doc/posix-functions/iswxdigit_l.texi: Likewise.
23092         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
23093         * doc/posix-functions/open_wmemstream.texi: Likewise.
23094         * doc/posix-functions/swscanf.texi: Likewise.
23095         * doc/posix-functions/towctrans_l.texi: Likewise.
23096         * doc/posix-functions/towlower.texi: Likewise.
23097         * doc/posix-functions/towlower_l.texi: Likewise.
23098         * doc/posix-functions/towupper.texi: Likewise.
23099         * doc/posix-functions/towupper_l.texi: Likewise.
23100         * doc/posix-functions/vfwprintf.texi: Likewise.
23101         * doc/posix-functions/vfwscanf.texi: Likewise.
23102         * doc/posix-functions/vswscanf.texi: Likewise.
23103         * doc/posix-functions/vwprintf.texi: Likewise.
23104         * doc/posix-functions/vwscanf.texi: Likewise.
23105         * doc/posix-functions/wcpcpy.texi: Likewise.
23106         * doc/posix-functions/wcpncpy.texi: Likewise.
23107         * doc/posix-functions/wcscasecmp.texi: Likewise.
23108         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
23109         * doc/posix-functions/wcscoll_l.texi: Likewise.
23110         * doc/posix-functions/wcsdup.texi: Likewise.
23111         * doc/posix-functions/wcsncasecmp.texi: Likewise.
23112         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
23113         * doc/posix-functions/wcsnlen.texi: Likewise.
23114         * doc/posix-functions/wcsnrtombs.texi: Likewise.
23115         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
23116         * doc/posix-functions/wctrans_l.texi: Likewise.
23117         * doc/posix-functions/wctype_l.texi: Likewise.
23118         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
23119         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
23120         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
23121         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
23122         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
23123         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
23124         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
23125         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
23126         * doc/glibc-functions/wcschrnul.texi: Likewise.
23127         * doc/glibc-functions/wcsftime_l.texi: Likewise.
23128         * doc/glibc-functions/wcstod_l.texi: Likewise.
23129         * doc/glibc-functions/wcstof_l.texi: Likewise.
23130         * doc/glibc-functions/wcstol_l.texi: Likewise.
23131         * doc/glibc-functions/wcstold_l.texi: Likewise.
23132         * doc/glibc-functions/wcstoll_l.texi: Likewise.
23133         * doc/glibc-functions/wcstoq.texi: Likewise.
23134         * doc/glibc-functions/wcstoul_l.texi: Likewise.
23135         * doc/glibc-functions/wcstoull_l.texi: Likewise.
23136         * doc/glibc-functions/wcstouq.texi: Likewise.
23137         * doc/glibc-functions/wmempcpy.texi: Likewise.
23138
23139 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
23140             Eric Blake  <ebb9@byu.net>
23141             Paolo Bonzini  <bonzini@gnu.org>
23142             Bruno Haible  <bruno@clisp.org>
23143
23144         Make c-stack work on Haiku.
23145         * lib/c-stack.c (SA_ONSTACK): Define fallback.
23146         (c_stack_action): Use SA_ONSTACK flag.
23147
23148 2008-12-22  Bruno Haible  <bruno@clisp.org>
23149
23150         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
23151
23152 2008-12-22  Bruno Haible  <bruno@clisp.org>
23153
23154         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
23155         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
23156         being overridden.
23157         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
23158         New macros.
23159         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
23160         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
23161         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
23162         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
23163
23164 2008-12-22  Bruno Haible  <bruno@clisp.org>
23165
23166         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
23167         from test code.
23168
23169 2008-12-22  Eric Blake  <ebb9@byu.net>
23170
23171         Avoid gcc warnings on cygwin.
23172         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
23173         Avoid unused variable.
23174         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
23175         Likewise.
23176
23177 2008-12-22  Bruno Haible  <bruno@clisp.org>
23178
23179         Remove HAVE_MBRTOWC conditionals.
23180         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
23181         (mbscasecmp): Assume mbrtowc function.
23182         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
23183         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
23184         * lib/mbschr.c: Include mbuiter.h unconditionally.
23185         (mbschr): Assume mbrtowc function.
23186         * lib/mbscspn.c: Include mbuiter.h unconditionally.
23187         (mbscspn): Assume mbrtowc function.
23188         * lib/mbslen.c: Include mbuiter.h unconditionally.
23189         (mbslen): Assume mbrtowc function.
23190         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
23191         (mbsncasecmp): Assume mbrtowc function.
23192         * lib/mbsnlen.c: Include mbiter.h unconditionally.
23193         (mbsnlen): Assume mbrtowc function.
23194         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
23195         (mbspbrk): Assume mbrtowc function.
23196         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
23197         (mbspcasecmp): Assume mbrtowc function.
23198         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
23199         (mbsrchr): Assume mbrtowc function.
23200         * lib/mbssep.c: Include mbuiter.h unconditionally.
23201         (mbssep): Assume mbrtowc function.
23202         * lib/mbsspn.c: Include mbuiter.h unconditionally.
23203         (mbsspn): Assume mbrtowc function.
23204         * lib/mbsstr.c: Include mbuiter.h unconditionally.
23205         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
23206         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
23207         (mbstok_r): Assume mbrtowc function.
23208         * lib/propername.c: Include mbuiter.h unconditionally.
23209         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
23210         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
23211         (trim2): Assume mbrtowc function.
23212         * lib/mbswidth.c (mbsinit): Remove fallback definition.
23213         (mbsnwidth): Assume mbrtowc function.
23214         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
23215         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
23216         fallback definitions.
23217         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
23218
23219 2008-12-22  Bruno Haible  <bruno@clisp.org>
23220
23221         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
23222
23223 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
23224
23225         * modules/regex: Request emulations for the mb*/wc* functions we need.
23226         * m4/regex.m4: Don't look for those functions here.
23227         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
23228
23229 2008-12-22  Bruno Haible  <bruno@clisp.org>
23230
23231         * modules/fnmatch (Depends-on): Remove duplicated dependency.
23232
23233 2008-12-21  Bruno Haible  <bruno@clisp.org>
23234
23235         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
23236         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
23237         (Include): Remove conditionalization.
23238         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
23239         (Include): Remove conditionalization.
23240         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
23241         (Include): Remove conditionalization.
23242         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
23243         * m4/mbfile.m4 (gl_MBFILE): Likewise.
23244         * NEWS: Mention the change.
23245         Reported by Alan Hourihane <alanh@fairlite.co.uk>
23246         via Sergey Poznyakoff <gray@gnu.org.ua>.
23247
23248 2008-12-21  Bruno Haible  <bruno@clisp.org>
23249
23250         * MODULES.html.sh (Extended multibyte and wide character utilities
23251         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
23252         wcrtomb, wcsrtombs.
23253         (Support for systems lacking POSIX:2008): Add accept, bind, close,
23254         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
23255         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
23256         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
23257
23258 2008-12-21  Bruno Haible  <bruno@clisp.org>
23259
23260         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
23261
23262 2008-12-21  Bruno Haible  <bruno@clisp.org>
23263
23264         * modules/wcsnrtombs-tests: New file.
23265         * tests/test-wcsnrtombs1.sh: New file.
23266         * tests/test-wcsnrtombs2.sh: New file.
23267         * tests/test-wcsnrtombs3.sh: New file.
23268         * tests/test-wcsnrtombs4.sh: New file.
23269         * tests/test-wcsnrtombs.c: New file.
23270
23271         New module 'wcsnrtombs'.
23272         * lib/wchar.in.h (wcsnrtombs): New declaration.
23273         * lib/wcsnrtombs.c: New file.
23274         * lib/wcsrtombs-state.c: New file.
23275         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
23276         (internal_state): Remove variable.
23277         * m4/wcsnrtombs.m4: New file.
23278         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
23279         compilation units.
23280         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
23281         HAVE_WCSNRTOMBS.
23282         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
23283         HAVE_WCSNRTOMBS.
23284         * modules/wcsnrtombs: New file.
23285         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
23286         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
23287
23288 2008-12-21  Bruno Haible  <bruno@clisp.org>
23289
23290         * modules/wcsrtombs-tests: New file.
23291         * tests/test-wcsrtombs1.sh: New file.
23292         * tests/test-wcsrtombs2.sh: New file.
23293         * tests/test-wcsrtombs3.sh: New file.
23294         * tests/test-wcsrtombs4.sh: New file.
23295         * tests/test-wcsrtombs.c: New file.
23296
23297         New module 'wcsrtombs'.
23298         * lib/wchar.in.h (wcsrtombs): New declaration.
23299         * lib/wcsrtombs.c: New file.
23300         * m4/wcsrtombs.m4: New file.
23301         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
23302         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
23303         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
23304         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
23305         * modules/wcsrtombs: New file.
23306         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
23307         bugs.
23308
23309 2008-12-21  Bruno Haible  <bruno@clisp.org>
23310
23311         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
23312         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
23313         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
23314         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
23315         if not correct.
23316         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
23317         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
23318         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
23319         m4/locale-zh.m4, m4/codeset.m4.
23320         * doc/posix-functions/wcrtomb.texi: Document the bug.
23321
23322 2008-12-21  Bruno Haible  <bruno@clisp.org>
23323
23324         Work around a btowc() bug on IRIX 6.5.
23325         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
23326         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
23327         REPLACE_WTOBC if not.
23328         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
23329         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
23330         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
23331
23332 2008-12-21  Bruno Haible  <bruno@clisp.org>
23333
23334         * modules/wcrtomb-tests: New file.
23335         * tests/test-wcrtomb.sh: New file.
23336         * tests/test-wcrtomb.c: New file.
23337
23338         New module 'wcrtomb'.
23339         * lib/wchar.in.h (wcrtomb): New declaration.
23340         * lib/wcrtomb.c: New file.
23341         * m4/wcrtomb.m4: New file.
23342         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
23343         HAVE_WCRTOMB.
23344         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
23345         HAVE_WCRTOMB.
23346         * modules/wcrtomb: New file.
23347         * doc/posix-functions/wcrtomb.texi: Mention the new module.
23348
23349 2008-12-21  Bruno Haible  <bruno@clisp.org>
23350
23351         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
23352         * modules/mbsrtowcs (Files): Likewise.
23353         * modules/wctob (Files): Likewise.
23354         * modules/c-strcase-tests (Files): Likewise.
23355         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
23356         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
23357         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
23358         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
23359         * modules/vasnprintf-posix-tests (Files): Likewise.
23360
23361 2008-12-21  William Pursell  <bill.pursell@gmail.com>
23362
23363         gitlog-to-changelog: pass all command-line arguments to git-log
23364         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
23365         it is sometimes convenient to filter the commits in various ways.
23366         gitlog-to-changelog only allows --since to specify a start date,
23367         but git-log itself supports many other filtering mechanisms.
23368         At the moment, I want to filter by branch name.  Rather than
23369         adding a --branch option to gitlog-to-changelog, it seems more
23370         flexible to simply pass all options directly to git-log and let
23371         git do the work.  Notice that this effectively makes --since a
23372         redundant option for gitlog-to-changelog, but removing it would
23373         require current usage to change since calls would then require
23374         an additional '--'.
23375
23376 2008-12-21  Bruno Haible  <bruno@clisp.org>
23377
23378         * modules/mbsnrtowcs-tests: New file.
23379         * tests/test-mbsnrtowcs1.sh: New file.
23380         * tests/test-mbsnrtowcs2.sh: New file.
23381         * tests/test-mbsnrtowcs3.sh: New file.
23382         * tests/test-mbsnrtowcs4.sh: New file.
23383         * tests/test-mbsnrtowcs.c: New file.
23384
23385         New module 'mbsnrtowcs'.
23386         * lib/wchar.in.h (mbsnrtowcs): New declaration.
23387         * lib/mbsnrtowcs.c: New file.
23388         * lib/mbsrtowcs-state.c: New file.
23389         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
23390         (internal_state): Remove variable.
23391         * m4/mbsnrtowcs.m4: New file.
23392         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
23393         compilation units.
23394         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
23395         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
23396         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
23397         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
23398         * modules/mbsnrtowcs: New file.
23399         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
23400         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
23401         portability problem.
23402
23403 2008-12-21  Bruno Haible  <bruno@clisp.org>
23404
23405         Work around mbsrtowcs bug.
23406         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
23407         (gl_FUNC_MBSRTOWCS): Invoke it.
23408         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
23409         m4/locale-zh.m4.
23410         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
23411
23412 2008-12-21  Bruno Haible  <bruno@clisp.org>
23413
23414         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
23415
23416 2008-12-21  Bruno Haible  <bruno@clisp.org>
23417
23418         Update doc for AIX.
23419         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
23420         16-bit wchar_t type.
23421         * doc/posix-functions/btowc.texi: Likewise.
23422         * doc/posix-functions/fgetwc.texi: Likewise.
23423         * doc/posix-functions/fgetws.texi: Likewise.
23424         * doc/posix-functions/fputwc.texi: Likewise.
23425         * doc/posix-functions/fputws.texi: Likewise.
23426         * doc/posix-functions/fwide.texi: Likewise.
23427         * doc/posix-functions/fwprintf.texi: Likewise.
23428         * doc/posix-functions/fwscanf.texi: Likewise.
23429         * doc/posix-functions/getwchar.texi: Likewise.
23430         * doc/posix-functions/getwc.texi: Likewise.
23431         * doc/posix-functions/iswalnum.texi: Likewise.
23432         * doc/posix-functions/iswalpha.texi: Likewise.
23433         * doc/posix-functions/iswblank.texi: Likewise.
23434         * doc/posix-functions/iswcntrl.texi: Likewise.
23435         * doc/posix-functions/iswctype.texi: Likewise.
23436         * doc/posix-functions/iswdigit.texi: Likewise.
23437         * doc/posix-functions/iswgraph.texi: Likewise.
23438         * doc/posix-functions/iswlower.texi: Likewise.
23439         * doc/posix-functions/iswprint.texi: Likewise.
23440         * doc/posix-functions/iswpunct.texi: Likewise.
23441         * doc/posix-functions/iswspace.texi: Likewise.
23442         * doc/posix-functions/iswupper.texi: Likewise.
23443         * doc/posix-functions/iswxdigit.texi: Likewise.
23444         * doc/posix-functions/mbrtowc.texi: Likewise.
23445         * doc/posix-functions/mbsrtowcs.texi: Likewise.
23446         * doc/posix-functions/mbstowcs.texi: Likewise.
23447         * doc/posix-functions/mbtowc.texi: Likewise.
23448         * doc/posix-functions/putwchar.texi: Likewise.
23449         * doc/posix-functions/putwc.texi: Likewise.
23450         * doc/posix-functions/swprintf.texi: Likewise.
23451         * doc/posix-functions/tolower.texi: Likewise.
23452         * doc/posix-functions/toupper.texi: Likewise.
23453         * doc/posix-functions/towctrans.texi: Likewise.
23454         * doc/posix-functions/ungetwc.texi: Likewise.
23455         * doc/posix-functions/vswprintf.texi: Likewise.
23456         * doc/posix-functions/wcrtomb.texi: Likewise.
23457         * doc/posix-functions/wcscat.texi: Likewise.
23458         * doc/posix-functions/wcschr.texi: Likewise.
23459         * doc/posix-functions/wcscmp.texi: Likewise.
23460         * doc/posix-functions/wcscoll.texi: Likewise.
23461         * doc/posix-functions/wcscpy.texi: Likewise.
23462         * doc/posix-functions/wcscspn.texi: Likewise.
23463         * doc/posix-functions/wcsftime.texi: Likewise.
23464         * doc/posix-functions/wcslen.texi: Likewise.
23465         * doc/posix-functions/wcsncat.texi: Likewise.
23466         * doc/posix-functions/wcsncmp.texi: Likewise.
23467         * doc/posix-functions/wcsncpy.texi: Likewise.
23468         * doc/posix-functions/wcspbrk.texi: Likewise.
23469         * doc/posix-functions/wcsrchr.texi: Likewise.
23470         * doc/posix-functions/wcsrtombs.texi: Likewise.
23471         * doc/posix-functions/wcsspn.texi: Likewise.
23472         * doc/posix-functions/wcsstr.texi: Likewise.
23473         * doc/posix-functions/wcstod.texi: Likewise.
23474         * doc/posix-functions/wcstof.texi: Likewise.
23475         * doc/posix-functions/wcstoimax.texi: Likewise.
23476         * doc/posix-functions/wcstok.texi: Likewise.
23477         * doc/posix-functions/wcstold.texi: Likewise.
23478         * doc/posix-functions/wcstoll.texi: Likewise.
23479         * doc/posix-functions/wcstol.texi: Likewise.
23480         * doc/posix-functions/wcstombs.texi: Likewise.
23481         * doc/posix-functions/wcstoull.texi: Likewise.
23482         * doc/posix-functions/wcstoul.texi: Likewise.
23483         * doc/posix-functions/wcstoumax.texi: Likewise.
23484         * doc/posix-functions/wcswidth.texi: Likewise.
23485         * doc/posix-functions/wcsxfrm.texi: Likewise.
23486         * doc/posix-functions/wctob.texi: Likewise.
23487         * doc/posix-functions/wctomb.texi: Likewise.
23488         * doc/posix-functions/wctrans.texi: Likewise.
23489         * doc/posix-functions/wctype.texi: Likewise.
23490         * doc/posix-functions/wcwidth.texi: Likewise.
23491         * doc/posix-functions/wmemchr.texi: Likewise.
23492         * doc/posix-functions/wmemcmp.texi: Likewise.
23493         * doc/posix-functions/wmemcpy.texi: Likewise.
23494         * doc/posix-functions/wmemmove.texi: Likewise.
23495         * doc/posix-functions/wmemset.texi: Likewise.
23496         * doc/posix-functions/wprintf.texi: Likewise.
23497         * doc/posix-functions/wscanf.texi: Likewise.
23498
23499 2008-12-21  Bruno Haible  <bruno@clisp.org>
23500
23501         Update doc for HP-UX 11.11.
23502         * doc/posix-functions/btowc.texi: Clarify that the function is missing
23503         in HP-UX version 11.00, not in all versions of HP-UX 11.
23504         * doc/posix-functions/fwide.texi: Likewise.
23505         * doc/posix-functions/fwprintf.texi: Likewise.
23506         * doc/posix-functions/fwscanf.texi: Likewise.
23507         * doc/posix-functions/inet_ntop.texi: Likewise.
23508         * doc/posix-functions/inet_pton.texi: Likewise.
23509         * doc/posix-functions/mbrlen.texi: Likewise.
23510         * doc/posix-functions/mbrtowc.texi: Likewise.
23511         * doc/posix-functions/mbsinit.texi: Likewise.
23512         * doc/posix-functions/mbsrtowcs.texi: Likewise.
23513         * doc/posix-functions/swprintf.texi: Likewise.
23514         * doc/posix-functions/swscanf.texi: Likewise.
23515         * doc/posix-functions/towctrans.texi: Likewise.
23516         * doc/posix-functions/vfwprintf.texi: Likewise.
23517         * doc/posix-functions/vswprintf.texi: Likewise.
23518         * doc/posix-functions/vwprintf.texi: Likewise.
23519         * doc/posix-functions/wcrtomb.texi: Likewise.
23520         * doc/posix-functions/wcsrtombs.texi: Likewise.
23521         * doc/posix-functions/wcsstr.texi: Likewise.
23522         * doc/posix-functions/wctob.texi: Likewise.
23523         * doc/posix-functions/wctrans.texi: Likewise.
23524         * doc/posix-functions/wmemchr.texi: Likewise.
23525         * doc/posix-functions/wmemcmp.texi: Likewise.
23526         * doc/posix-functions/wmemcpy.texi: Likewise.
23527         * doc/posix-functions/wmemmove.texi: Likewise.
23528         * doc/posix-functions/wmemset.texi: Likewise.
23529         * doc/posix-functions/wprintf.texi: Likewise.
23530         * doc/posix-functions/wscanf.texi: Likewise.
23531
23532 2008-12-21  Bruno Haible  <bruno@clisp.org>
23533
23534         Work around a portability problem.
23535         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
23536         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
23537
23538 2008-12-20  Bruno Haible  <bruno@clisp.org>
23539
23540         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
23541         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
23542         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
23543         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
23544         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
23545
23546         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
23547         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
23548         set.
23549         (GNULIB_defined_mbstate_t): New macro.
23550         (mbsinit): Redefine if REPLACE_MBSINIT is set.
23551         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
23552         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
23553         reuses the system's mbrtowc function but works around the bugs.
23554         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
23555         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
23556         macros.
23557         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
23558         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
23559         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
23560         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
23561         REPLACE_MBSINIT if mbsinit needs to be overridden.
23562         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
23563         REPLACE_MBSINIT, REPLACE_MBRTOWC.
23564         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
23565         REPLACE_MBSINIT, REPLACE_MBRTOWC.
23566         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
23567         m4/locale-zh.m4.
23568         (Depends): Add mbsinit.
23569         * modules/mbsinit (Depends): Add mbrtowc.
23570         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
23571
23572 2008-12-20  Bruno Haible  <bruno@clisp.org>
23573
23574         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
23575         so that there are no conversion errors on AIX.
23576         * tests/test-mbsrtowcs.c (main): LIkewise.
23577
23578 2008-12-20  Bruno Haible  <bruno@clisp.org>
23579
23580         Work around wctob bug on Solaris <= 9.
23581         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
23582         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
23583         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
23584         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
23585         * modules/wctob (Files): Add m4/locale-fr.m4.
23586         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
23587
23588 2008-12-20  Bruno Haible  <bruno@clisp.org>
23589
23590         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
23591         /dev/null.
23592         * tests/test-select-in.sh: Likewise.
23593         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23594
23595 2008-12-20  Bruno Haible  <bruno@clisp.org>
23596
23597         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
23598         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
23599         Cygwin 1.5.x.
23600
23601 2008-12-20  Bruno Haible  <bruno@clisp.org>
23602
23603         Ensure mbstate_t is defined on HP-UX 11.11.
23604         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
23605         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
23606         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
23607         AC_USE_SYSTEM_EXTENSIONS.
23608         * modules/fnmatch (Depends-on): Add extensions.
23609         * modules/mbrlen (Depends-on): Likewise.
23610         * modules/mbrtowc (Depends-on): Likewise.
23611         * modules/mbsinit (Depends-on): Likewise.
23612         * modules/mbsrtowcs (Depends-on): Likewise.
23613         * modules/mbswidth (Depends-on): Likewise.
23614         * modules/quotearg (Depends-on): Likewise.
23615         * modules/strftime (Depends-on): Likewise.
23616
23617 2008-12-20  Bruno Haible  <bruno@clisp.org>
23618
23619         Ensure wctob is declared on IRIX 6.5.
23620         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
23621         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
23622         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
23623         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
23624         of HAVE_WCTOB.
23625         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
23626         HAVE_WCTOB.
23627         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
23628
23629 2008-12-19  Bruno Haible  <bruno@clisp.org>
23630
23631         * modules/mbsrtowcs-tests: New file.
23632         * tests/test-mbsrtowcs1.sh: New file.
23633         * tests/test-mbsrtowcs2.sh: New file.
23634         * tests/test-mbsrtowcs3.sh: New file.
23635         * tests/test-mbsrtowcs4.sh: New file.
23636         * tests/test-mbsrtowcs.c: New file.
23637
23638         New module 'mbsrtowcs'.
23639         * lib/wchar.in.h (mbsrtowcs): New declaration.
23640         * lib/mbsrtowcs.c: New file.
23641         * m4/mbsrtowcs.m4: New file.
23642         * modules/mbsrtowcs: New file.
23643         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
23644         HAVE_MBSRTOWCS.
23645         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
23646         HAVE_MBSRTOWCS.
23647         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
23648
23649 2008-12-19  Bruno Haible  <bruno@clisp.org>
23650
23651         New module 'mbrlen'.
23652         * lib/wchar.in.h (mbrlen): New declaration.
23653         * lib/mbrlen.c: New file.
23654         * m4/mbrlen.m4: New file.
23655         * modules/mbrlen: New file.
23656         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
23657         HAVE_MBRLEN.
23658         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
23659         HAVE_MBRLEN.
23660         * doc/posix-functions/mbrlen.texi: Document the new module.
23661
23662 2008-12-19  Bruno Haible  <bruno@clisp.org>
23663
23664         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
23665         * modules/mbrtowc (Depends-on): Add verify.
23666         Suggested by Paul Eggert.
23667
23668 2008-12-18  Bruno Haible  <bruno@clisp.org>
23669
23670         * modules/mbsinit-tests: New file.
23671         * tests/test-mbsinit.sh: New file.
23672         * tests/test-mbsinit.c: New file.
23673
23674 2008-12-18  Bruno Haible  <bruno@clisp.org>
23675
23676         * modules/mbrtowc-tests: New file.
23677         * tests/test-mbrtowc1.sh: New file.
23678         * tests/test-mbrtowc2.sh: New file.
23679         * tests/test-mbrtowc3.sh: New file.
23680         * tests/test-mbrtowc4.sh: New file.
23681         * tests/test-mbrtowc.c: New file.
23682
23683         New module 'mbrtowc'.
23684         * lib/wchar.in.h (mbstate_t): Override when the system does not have
23685         mbsinit and mbrtowc.
23686         (mbrtowc): New declaration.
23687         * lib/mbrtowc.c: New file.
23688         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
23689         * modules/mbrtowc: New file.
23690         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
23691         HAVE_MBRTOWC.
23692         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
23693         HAVE_MBRTOWC.
23694         * doc/posix-functions/mbrtowc.texi: Document the new module.
23695
23696 2008-12-18  Bruno Haible  <bruno@clisp.org>
23697
23698         New module 'wctob'.
23699         * lib/wchar.in.h (wctob): New declaration.
23700         * lib/wctob.c: New file.
23701         * m4/wctob.m4: New file.
23702         * modules/wctob: New file.
23703         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
23704         HAVE_WCTOB.
23705         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
23706         * doc/posix-functions/wctob.texi: Document the new module.
23707
23708 2008-12-18  Bruno Haible  <bruno@clisp.org>
23709
23710         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
23711         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
23712
23713 2008-12-18  Simon Josefsson  <simon@josefsson.org>
23714
23715         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
23716         G. Christensen" <tgc@jupiterrise.com>.
23717
23718         * lib/flock.c: Need to include errno.h.  Reported by "Tom
23719         G. Christensen" <tgc@jupiterrise.com>.
23720
23721         * lib/flock.c: Need to include string.h.  Reported by "Tom
23722         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
23723         <ebb9@byu.net>.
23724
23725 2008-12-18  Bruno Haible  <bruno@clisp.org>
23726
23727         * m4/locale-ja.m4: New file, from GNU gettext.
23728
23729 2008-12-17  Bruno Haible  <bruno@clisp.org>
23730
23731         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
23732         Suggested by Eric Blake.
23733
23734 2008-12-17  Bruno Haible  <bruno@clisp.org>
23735
23736         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
23737
23738 2008-12-17  Bruno Haible  <bruno@clisp.org>
23739
23740         * lib/mbsinit.c: Include verify.h. Verify an assumption.
23741         * modules/mbsinit (Depends-on): Add verify.
23742         Suggested by Paul Eggert.
23743
23744 2008-12-17  Bruno Haible  <bruno@clisp.org>
23745
23746         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
23747         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
23748         gl_FUNC_MBRTOWC.
23749         * m4/mbiter.m4 (gl_MBITER): LIkewise.
23750         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
23751         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
23752         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
23753         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
23754         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
23755         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
23756         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
23757         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
23758         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
23759         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
23760         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
23761         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
23762         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
23763         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
23764         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
23765         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
23766         * modules/trim (configure.ac): Likewise.
23767
23768 2008-12-17  Bruno Haible  <bruno@clisp.org>
23769
23770         * modules/btowc-tests: New file.
23771         * tests/test-btowc1.sh: New file.
23772         * tests/test-btowc2.sh: New file.
23773         * tests/test-btowc.c: New file.
23774
23775         New module 'btowc'.
23776         * lib/wchar.in.h (btowc): New declaration.
23777         * lib/btowc.c: New file.
23778         * m4/btowc.m4: New file.
23779         * modules/btowc: New file.
23780         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
23781         HAVE_BTOWC.
23782         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
23783         * doc/posix-functions/btowc.texi: Document the new module.
23784
23785 2008-12-17  Bruno Haible  <bruno@clisp.org>
23786
23787         New module 'mbsinit'.
23788         * lib/wchar.in.h (mbsinit): New declaration.
23789         * lib/mbsinit.c: New file.
23790         * m4/mbsinit.m4: New file.
23791         * modules/mbsinit: New file.
23792         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
23793         HAVE_MBSINIT.
23794         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
23795         HAVE_MBSINIT.
23796         * doc/posix-functions/mbsinit.texi: Document the new module.
23797
23798 2008-12-16  Bruno Haible  <bruno@clisp.org>
23799
23800         * lib/unistd.in.h: Add comment.
23801         * tests/test-environ.c: Don't include <stdlib.h>.
23802
23803 2008-12-16  Bruno Haible  <bruno@clisp.org>
23804
23805         * lib/parse-duration.h (parse_duration): Document return value
23806         convention.
23807         * lib/parse-duration.c: Include specification header first. Add
23808         comments.
23809         (_): Remove macro.
23810         (parse_year_month_day, parse_hour_minute_second): Move side effects
23811         outside of strchr call.
23812         (parse_non_iso8601): Move side effects outside of isspace call.
23813         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
23814         call.
23815
23816 2008-12-16  Bruno Haible  <bruno@clisp.org>
23817
23818         * tests/test-parse-duration.sh: Produce no output when the test
23819         succeeds.
23820
23821 2008-12-16  Bruno Haible  <bruno@clisp.org>
23822
23823         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
23824         expressions.
23825
23826 2008-12-15  Bruno Haible  <bruno@clisp.org>
23827
23828         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
23829         * doc/glibc-functions/flistxattr.texi: Likewise.
23830         * doc/glibc-functions/fopencookie.texi: Likewise.
23831         * doc/glibc-functions/fremovexattr.texi: Likewise.
23832         * doc/glibc-functions/fsetxattr.texi: Likewise.
23833         * doc/glibc-functions/getxattr.texi: Likewise.
23834         * doc/glibc-functions/lgetxattr.texi: Likewise.
23835         * doc/glibc-functions/listxattr.texi: Likewise.
23836         * doc/glibc-functions/llistxattr.texi: Likewise.
23837         * doc/glibc-functions/lremovexattr.texi: Likewise.
23838         * doc/glibc-functions/lsetxattr.texi: Likewise.
23839         * doc/glibc-functions/removexattr.texi: Likewise.
23840         * doc/glibc-functions/setxattr.texi: Likewise.
23841         * doc/posix-functions/open_memstream.texi: Likewise.
23842
23843 2008-12-15  Eric Blake  <ebb9@byu.net>
23844
23845         Update doc for cygwin 1.7.
23846         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
23847         functions.
23848         * doc/posix-functions/fchmodat.texi: Likewise.
23849         * doc/posix-functions/fchownat.texi: Likewise.
23850         * doc/posix-functions/fdopendir.texi: Likewise.
23851         * doc/posix-functions/fmemopen.texi: Likewise.
23852         * doc/posix-functions/freeaddrinfo.texi: Likewise.
23853         * doc/posix-functions/fstatat.texi: Likewise.
23854         * doc/posix-functions/futimens.texi: Likewise.
23855         * doc/posix-functions/gai_strerror.texi: Likewise.
23856         * doc/posix-functions/getaddrinfo.texi: Likewise.
23857         * doc/posix-functions/getnameinfo.texi: Likewise.
23858         * doc/posix-functions/if_freenameindex.texi: Likewise.
23859         * doc/posix-functions/if_indextoname.texi: Likewise.
23860         * doc/posix-functions/if_nameindex.texi: Likewise.
23861         * doc/posix-functions/if_nametoindex.texi: Likewise.
23862         * doc/posix-functions/insque.texi: Likewise.
23863         * doc/posix-functions/linkat.texi: Likewise.
23864         * doc/posix-functions/llrint.texi: Likewise.
23865         * doc/posix-functions/llrintf.texi: Likewise.
23866         * doc/posix-functions/llrintl.texi: Likewise.
23867         * doc/posix-functions/lockf.texi: Likewise.
23868         * doc/posix-functions/lrintl.texi: Likewise.
23869         * doc/posix-functions/mkdirat.texi: Likewise.
23870         * doc/posix-functions/mkfifoat.texi: Likewise.
23871         * doc/posix-functions/mknodat.texi: Likewise.
23872         * doc/posix-functions/mq_close.texi: Likewise.
23873         * doc/posix-functions/mq_getattr.texi: Likewise.
23874         * doc/posix-functions/mq_notify.texi: Likewise.
23875         * doc/posix-functions/mq_open.texi: Likewise.
23876         * doc/posix-functions/mq_receive.texi: Likewise.
23877         * doc/posix-functions/mq_send.texi: Likewise.
23878         * doc/posix-functions/mq_setattr.texi: Likewise.
23879         * doc/posix-functions/mq_timedreceive.texi: Likewise.
23880         * doc/posix-functions/mq_timedsend.texi: Likewise.
23881         * doc/posix-functions/mq_unlink.texi: Likewise.
23882         * doc/posix-functions/open_memstream.texi: Likewise.
23883         * doc/posix-functions/openat.texi: Likewise.
23884         * doc/posix-functions/posix_fadvise.texi: Likewise.
23885         * doc/posix-functions/posix_fallocate.texi: Likewise.
23886         * doc/posix-functions/posix_madvise.texi: Likewise.
23887         * doc/posix-functions/posix_memalign.texi: Likewise.
23888         * doc/posix-functions/posix_openpt.texi: Likewise.
23889         * doc/posix-functions/readlinkat.texi: Likewise.
23890         * doc/posix-functions/remque.texi: Likewise.
23891         * doc/posix-functions/renameat.texi: Likewise.
23892         * doc/posix-functions/rintl.texi: Likewise.
23893         * doc/posix-functions/sem_unlink.texi: Likewise.
23894         * doc/posix-functions/shm_open.texi: Likewise.
23895         * doc/posix-functions/shm_unlink.texi: Likewise.
23896         * doc/posix-functions/signgam.texi: Likewise.
23897         * doc/posix-functions/sigset.texi: Likewise.
23898         * doc/posix-functions/stpcpy.texi: Likewise.
23899         * doc/posix-functions/stpncpy.texi: Likewise.
23900         * doc/posix-functions/strerror.texi: Likewise.
23901         * doc/posix-functions/strtod.texi: Likewise.
23902         * doc/posix-functions/symlinkat.texi: Likewise.
23903         * doc/posix-functions/unlinkat.texi: Likewise.
23904         * doc/posix-functions/utimensat.texi: Likewise.
23905         * doc/glibc-functions/bindresvport.texi: Likewise.
23906         * doc/glibc-functions/dn_expand.texi: Likewise.
23907         * doc/glibc-functions/exp10.texi: Likewise.
23908         * doc/glibc-functions/exp10f.texi: Likewise.
23909         * doc/glibc-functions/fgetxattr.texi: Likewise.
23910         * doc/glibc-functions/flistxattr.texi: Likewise.
23911         * doc/glibc-functions/fopencookie.texi: Likewise.
23912         * doc/glibc-functions/freeifaddrs.texi: Likewise.
23913         * doc/glibc-functions/fremovexattr.texi: Likewise.
23914         * doc/glibc-functions/fsetxattr.texi: Likewise.
23915         * doc/glibc-functions/getifaddrs.texi: Likewise.
23916         * doc/glibc-functions/getxattr.texi: Likewise.
23917         * doc/glibc-functions/lgetxattr.texi: Likewise.
23918         * doc/glibc-functions/listxattr.texi: Likewise.
23919         * doc/glibc-functions/llistxattr.texi: Likewise.
23920         * doc/glibc-functions/lremovexattr.texi: Likewise.
23921         * doc/glibc-functions/lsetxattr.texi: Likewise.
23922         * doc/glibc-functions/pow10.texi: Likewise.
23923         * doc/glibc-functions/pow10f.texi: Likewise.
23924         * doc/glibc-functions/rcmd_af.texi: Likewise.
23925         * doc/glibc-functions/removexattr.texi: Likewise.
23926         * doc/glibc-functions/res_init.texi: Likewise.
23927         * doc/glibc-functions/res_mkquery.texi: Likewise.
23928         * doc/glibc-functions/res_query.texi: Likewise.
23929         * doc/glibc-functions/res_querydomain.texi: Likewise.
23930         * doc/glibc-functions/res_send.texi: Likewise.
23931         * doc/glibc-functions/rresvport_af.texi: Likewise.
23932         * doc/glibc-functions/setxattr.texi: Likewise.
23933         * doc/glibc-functions/strcasestr.texi: Likewise.
23934
23935 2008-12-15  Bruno Haible  <bruno@clisp.org>
23936
23937         Fix compilation error on OSF/1 4.0.
23938         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
23939         <sys/time.h>, simply delegate to the system header.
23940         Reported by Daniel Richard G. <oss@teragram.com>.
23941
23942 2008-12-15  Bruno Haible  <bruno@clisp.org>
23943
23944         * doc/posix-functions/openat.texi: Mention the 'openat' module.
23945         * doc/posix-functions/fchmodat.texi: Likewise.
23946         * doc/posix-functions/fchownat.texi: Likewise.
23947         * doc/posix-functions/fdopendir.texi: Likewise.
23948         * doc/posix-functions/fstatat.texi: Likewise.
23949         * doc/posix-functions/mkdirat.texi: Likewise.
23950         * doc/posix-functions/unlinkat.texi: Likewise.
23951
23952 2008-12-14  Bruno Haible  <bruno@clisp.org>
23953
23954         Update doc for POSIX:2008.
23955         * doc/posix-functions/faccessat.texi: New file.
23956         * doc/posix-functions/fchmodat.texi: New file.
23957         * doc/posix-functions/fchownat.texi: New file.
23958         * doc/posix-functions/fdopendir.texi: New file.
23959         * doc/posix-functions/fstatat.texi: New file.
23960         * doc/posix-functions/futimens.texi: New file.
23961         * doc/posix-functions/linkat.texi: New file.
23962         * doc/posix-functions/mkdirat.texi: New file.
23963         * doc/posix-functions/mkfifoat.texi: New file.
23964         * doc/posix-functions/mknodat.texi: New file.
23965         * doc/posix-functions/open_wmemstream.texi: New file.
23966         * doc/posix-functions/openat.texi: New file.
23967         * doc/posix-functions/psiginfo.texi: New file.
23968         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
23969         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
23970         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
23971         * doc/posix-functions/readlinkat.texi: New file.
23972         * doc/posix-functions/renameat.texi: New file.
23973         * doc/posix-functions/strerror_l.texi: New file.
23974         * doc/posix-functions/symlinkat.texi: New file.
23975         * doc/posix-functions/unlinkat.texi: New file.
23976         * doc/posix-functions/utimensat.texi: New file.
23977         * doc/gnulib.texi (Function Substitutes): Add these subsections.
23978
23979 2008-12-14  Bruno Haible  <bruno@clisp.org>
23980
23981         Update doc for POSIX:2008.
23982         * doc/posix-functions/alphasort.texi: Renamed from
23983         doc/glibc-functions/alphasort.texi.
23984         * doc/posix-functions/dirfd.texi: Renamed from
23985         doc/glibc-functions/dirfd.texi.
23986         * doc/posix-functions/dprintf.texi: Renamed from
23987         doc/glibc-functions/dprintf.texi.
23988         * doc/posix-functions/duplocale.texi: Renamed from
23989         doc/glibc-functions/duplocale.texi.
23990         * doc/posix-functions/fexecve.texi: Renamed from
23991         doc/glibc-functions/fexecve.texi.
23992         * doc/posix-functions/fmemopen.texi: Renamed from
23993         doc/glibc-functions/fmemopen.texi.
23994         * doc/posix-functions/freelocale.texi: Renamed from
23995         doc/glibc-functions/freelocale.texi.
23996         * doc/posix-functions/getdate_err.texi: Renamed from
23997         doc/glibc-functions/getdate_err.texi.
23998         * doc/posix-functions/isalnum_l.texi: Renamed from
23999         doc/glibc-functions/isalnum_l.texi.
24000         * doc/posix-functions/isalpha_l.texi: Renamed from
24001         doc/glibc-functions/isalpha_l.texi.
24002         * doc/posix-functions/isblank_l.texi: Renamed from
24003         doc/glibc-functions/isblank_l.texi.
24004         * doc/posix-functions/iscntrl_l.texi: Renamed from
24005         doc/glibc-functions/iscntrl_l.texi.
24006         * doc/posix-functions/isdigit_l.texi: Renamed from
24007         doc/glibc-functions/isdigit_l.texi.
24008         * doc/posix-functions/isgraph_l.texi: Renamed from
24009         doc/glibc-functions/isgraph_l.texi.
24010         * doc/posix-functions/islower_l.texi: Renamed from
24011         doc/glibc-functions/islower_l.texi.
24012         * doc/posix-functions/isprint_l.texi: Renamed from
24013         doc/glibc-functions/isprint_l.texi.
24014         * doc/posix-functions/ispunct_l.texi: Renamed from
24015         doc/glibc-functions/ispunct_l.texi.
24016         * doc/posix-functions/isspace_l.texi: Renamed from
24017         doc/glibc-functions/isspace_l.texi.
24018         * doc/posix-functions/isupper_l.texi: Renamed from
24019         doc/glibc-functions/isupper_l.texi.
24020         * doc/posix-functions/iswalnum_l.texi: Renamed from
24021         doc/glibc-functions/iswalnum_l.texi.
24022         * doc/posix-functions/iswalpha_l.texi: Renamed from
24023         doc/glibc-functions/iswalpha_l.texi.
24024         * doc/posix-functions/iswblank_l.texi: Renamed from
24025         doc/glibc-functions/iswblank_l.texi.
24026         * doc/posix-functions/iswcntrl_l.texi: Renamed from
24027         doc/glibc-functions/iswcntrl_l.texi.
24028         * doc/posix-functions/iswctype_l.texi: Renamed from
24029         doc/glibc-functions/iswctype_l.texi.
24030         * doc/posix-functions/iswdigit_l.texi: Renamed from
24031         doc/glibc-functions/iswdigit_l.texi.
24032         * doc/posix-functions/iswgraph_l.texi: Renamed from
24033         doc/glibc-functions/iswgraph_l.texi.
24034         * doc/posix-functions/iswlower_l.texi: Renamed from
24035         doc/glibc-functions/iswlower_l.texi.
24036         * doc/posix-functions/iswprint_l.texi: Renamed from
24037         doc/glibc-functions/iswprint_l.texi.
24038         * doc/posix-functions/iswpunct_l.texi: Renamed from
24039         doc/glibc-functions/iswpunct_l.texi.
24040         * doc/posix-functions/iswspace_l.texi: Renamed from
24041         doc/glibc-functions/iswspace_l.texi.
24042         * doc/posix-functions/iswupper_l.texi: Renamed from
24043         doc/glibc-functions/iswupper_l.texi.
24044         * doc/posix-functions/iswxdigit_l.texi: Renamed from
24045         doc/glibc-functions/iswxdigit_l.texi.
24046         * doc/posix-functions/isxdigit_l.texi: Renamed from
24047         doc/glibc-functions/isxdigit_l.texi.
24048         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
24049         doc/glibc-functions/mbsnrtowcs.texi.
24050         * doc/posix-functions/mkdtemp.texi: Renamed from
24051         doc/glibc-functions/mkdtemp.texi.
24052         * doc/posix-functions/newlocale.texi: Renamed from
24053         doc/glibc-functions/newlocale.texi.
24054         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
24055         doc/glibc-functions/nl_langinfo_l.texi.
24056         * doc/posix-functions/open_memstream.texi: Renamed from
24057         doc/glibc-functions/open_memstream.texi.
24058         * doc/posix-functions/opterr.texi: Renamed from
24059         doc/glibc-functions/opterr.texi.
24060         * doc/posix-functions/optind.texi: Renamed from
24061         doc/glibc-functions/optind.texi.
24062         * doc/posix-functions/optopt.texi: Renamed from
24063         doc/glibc-functions/optopt.texi.
24064         * doc/posix-functions/psignal.texi: Renamed from
24065         doc/glibc-functions/psignal.texi.
24066         * doc/posix-functions/scandir.texi: Renamed from
24067         doc/glibc-functions/scandir.texi.
24068         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
24069         doc/glibc-functions/sched_get_priority_min.texi.
24070         * doc/posix-functions/signgam.texi: Renamed from
24071         doc/glibc-functions/signgam.texi.
24072         * doc/posix-functions/stpcpy.texi: Renamed from
24073         doc/glibc-functions/stpcpy.texi.
24074         * doc/posix-functions/stpncpy.texi: Renamed from
24075         doc/glibc-functions/stpncpy.texi.
24076         * doc/posix-functions/strcasecmp_l.texi: Renamed from
24077         doc/glibc-functions/strcasecmp_l.texi.
24078         * doc/posix-functions/strcoll_l.texi: Renamed from
24079         doc/glibc-functions/strcoll_l.texi.
24080         * doc/posix-functions/strfmon_l.texi: Renamed from
24081         doc/glibc-functions/strfmon_l.texi.
24082         * doc/posix-functions/strftime_l.texi: Renamed from
24083         doc/glibc-functions/strftime_l.texi.
24084         * doc/posix-functions/strncasecmp_l.texi: Renamed from
24085         doc/glibc-functions/strncasecmp_l.texi.
24086         * doc/posix-functions/strndup.texi: Renamed from
24087         doc/glibc-functions/strndup.texi.
24088         * doc/posix-functions/strnlen.texi: Renamed from
24089         doc/glibc-functions/strnlen.texi.
24090         * doc/posix-functions/strsignal.texi: Renamed from
24091         doc/glibc-functions/strsignal.texi.
24092         * doc/posix-functions/strxfrm_l.texi: Renamed from
24093         doc/glibc-functions/strxfrm_l.texi.
24094         * doc/posix-functions/timer_gettime.texi: Renamed from
24095         doc/glibc-functions/timer_gettime.texi.
24096         * doc/posix-functions/tolower_l.texi: Renamed from
24097         doc/glibc-functions/tolower_l.texi.
24098         * doc/posix-functions/toupper_l.texi: Renamed from
24099         doc/glibc-functions/toupper_l.texi.
24100         * doc/posix-functions/towctrans_l.texi: Renamed from
24101         doc/glibc-functions/towctrans_l.texi.
24102         * doc/posix-functions/towlower_l.texi: Renamed from
24103         doc/glibc-functions/towlower_l.texi.
24104         * doc/posix-functions/towupper_l.texi: Renamed from
24105         doc/glibc-functions/towupper_l.texi.
24106         * doc/posix-functions/uselocale.texi: Renamed from
24107         doc/glibc-functions/uselocale.texi.
24108         * doc/posix-functions/vdprintf.texi: Renamed from
24109         doc/glibc-functions/vdprintf.texi.
24110         * doc/posix-functions/wcpcpy.texi:
24111         Renamed from doc/glibc-functions/wcpcpy.texi.
24112         * doc/posix-functions/wcpncpy.texi: Renamed from
24113         doc/glibc-functions/wcpncpy.texi.
24114         * doc/posix-functions/wcscasecmp.texi: Renamed from
24115         doc/glibc-functions/wcscasecmp.texi.
24116         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
24117         doc/glibc-functions/wcscasecmp_l.texi.
24118         * doc/posix-functions/wcscoll_l.texi: Renamed from
24119         doc/glibc-functions/wcscoll_l.texi.
24120         * doc/posix-functions/wcsdup.texi: Renamed from
24121         doc/glibc-functions/wcsdup.texi.
24122         * doc/posix-functions/wcsncasecmp.texi: Renamed from
24123         doc/glibc-functions/wcsncasecmp.texi.
24124         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
24125         doc/glibc-functions/wcsncasecmp_l.texi.
24126         * doc/posix-functions/wcsnlen.texi: Renamed from
24127         doc/glibc-functions/wcsnlen.texi.
24128         * doc/posix-functions/wcsnrtombs.texi: Renamed from
24129         doc/glibc-functions/wcsnrtombs.texi.
24130         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
24131         doc/glibc-functions/wcsxfrm_l.texi.
24132         * doc/posix-functions/wctrans_l.texi: Renamed from
24133         doc/glibc-functions/wctrans_l.texi.
24134         * doc/posix-functions/wctype_l.texi: Renamed from
24135         doc/glibc-functions/wctype_l.texi.
24136         * doc/gnulib.texi (Function Substitutes): Add these subsections.
24137         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
24138         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
24139         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
24140         these subsections.
24141         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
24142         Remove sections.
24143
24144 2008-12-14  Bruno Haible  <bruno@clisp.org>
24145
24146         Update doc for POSIX:2008.
24147         * doc/posix-functions/*.texi: Update URL of POSIX specification.
24148
24149 2008-12-14  Bruno Haible  <bruno@clisp.org>
24150
24151         Update doc for POSIX:2008.
24152         * doc/pastposix-functions/bcmp.texi: Renamed from
24153         doc/posix-functions/bcmp.texi.
24154         * doc/pastposix-functions/bcopy.texi: Renamed from
24155         doc/posix-functions/bcopy.texi.
24156         * doc/pastposix-functions/bsd_signal.texi: Renamed from
24157         doc/posix-functions/bsd_signal.texi.
24158         * doc/pastposix-functions/bzero.texi: Renamed from
24159         doc/posix-functions/bzero.texi.
24160         * doc/pastposix-functions/ecvt.texi: Renamed from
24161         doc/posix-functions/ecvt.texi.
24162         * doc/pastposix-functions/fcvt.texi: Renamed from
24163         doc/posix-functions/fcvt.texi.
24164         * doc/pastposix-functions/ftime.texi: Renamed from
24165         doc/posix-functions/ftime.texi.
24166         * doc/pastposix-functions/gcvt.texi: Renamed from
24167         doc/posix-functions/gcvt.texi.
24168         * doc/pastposix-functions/getcontext.texi: Renamed from
24169         doc/posix-functions/getcontext.texi.
24170         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
24171         doc/posix-functions/gethostbyaddr.texi.
24172         * doc/pastposix-functions/gethostbyname.texi: Renamed from
24173         doc/posix-functions/gethostbyname.texi.
24174         * doc/pastposix-functions/getwd.texi: Renamed from
24175         doc/posix-functions/getwd.texi.
24176         * doc/pastposix-functions/h_errno.texi: Renamed from
24177         doc/posix-functions/h_errno.texi.
24178         * doc/pastposix-functions/index.texi: Renamed from
24179         doc/posix-functions/index.texi.
24180         * doc/pastposix-functions/makecontext.texi: Renamed from
24181         doc/posix-functions/makecontext.texi.
24182         * doc/pastposix-functions/mktemp.texi: Renamed from
24183         doc/posix-functions/mktemp.texi.
24184         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
24185         doc/posix-functions/pthread_attr_getstackaddr.texi.
24186         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
24187         doc/posix-functions/pthread_attr_setstackaddr.texi.
24188         * doc/pastposix-functions/rindex.texi: Renamed from
24189         doc/posix-functions/rindex.texi.
24190         * doc/pastposix-functions/scalb.texi: Renamed from
24191         doc/posix-functions/scalb.texi.
24192         * doc/pastposix-functions/setcontext.texi: Renamed from
24193         doc/posix-functions/setcontext.texi.
24194         * doc/pastposix-functions/swapcontext.texi: Renamed from
24195         doc/posix-functions/swapcontext.texi.
24196         * doc/pastposix-functions/ualarm.texi: Renamed from
24197         doc/posix-functions/ualarm.texi.
24198         * doc/pastposix-functions/usleep.texi: Renamed from
24199         doc/posix-functions/usleep.texi.
24200         * doc/pastposix-functions/vfork.texi: Renamed from
24201         doc/posix-functions/vfork.texi.
24202         * doc/pastposix-functions/wcswcs.texi: Renamed from
24203         doc/posix-functions/wcswcs.texi.
24204         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
24205         (Function Substitutes): Update.
24206
24207 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24208
24209         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
24210         m4/strerror.m4.
24211
24212 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24213             Bruno Haible  <bruno@clisp.org>
24214
24215         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
24216
24217 2008-12-13  Bruno Haible  <bruno@clisp.org>
24218
24219         * modules/strtoull (Depends-on): Remove unistd.
24220
24221 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24222
24223         * modules/strtoull (Depends-on): Add stdlib.
24224
24225 2008-12-11  Simon Josefsson  <simon@josefsson.org>
24226
24227         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
24228
24229 2008-12-10  Jim Meyering  <meyering@redhat.com>
24230
24231         gl_ASSERT: don't say assertions are disabled when they're not
24232         * m4/assert.m4 (gl_ASSERT): Do not make configure report
24233         "checking whether to enable assertions... no", when they are in
24234         fact enabled.  This is solely a bug in the output of configure.
24235         In spite of saying "no", NDEBUG was not defined in that case.
24236         Also, as noted by Eric Blake, leave assertions enabled upon
24237         --enable-assert=INVALID.
24238
24239 2008-12-10  Bruno Haible  <bruno@clisp.org>
24240
24241         Change MODULES.html to refer to POSIX:2008 where possible.
24242         * MODULES.html.sh (POSIX2008_URL): New variable.
24243         (posix_headers): Remove sys/timeb, ucontext.
24244         (posix2001_headers): New variable.
24245         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
24246         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
24247         index, makecontext, mktemp, pthread_attr_getstackaddr,
24248         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
24249         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
24250         (posix2001_functions): New variable.
24251         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
24252         otherwise.
24253
24254 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24255
24256         add missing include to parse-duration.c
24257         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
24258         * modules/parse-duration (Depends-on): Add xalloc.
24259
24260         fix sed script reading maint.mk
24261         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
24262         (syntax-check-rules): Use it.
24263
24264 2008-12-09  Bruno Haible  <bruno@clisp.org>
24265
24266         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
24267         MacOS X 10.4/PowerPC.
24268         Reported by Simon Josefsson.
24269
24270 2008-12-08  Jim Meyering  <meyering@redhat.com>
24271
24272         work around mingw's lack of some S_IF definitions
24273         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
24274         Reported by Simon Josefsson.
24275
24276 2008-12-08  Bruno Haible  <bruno@clisp.org>
24277
24278         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
24279         applied to variables. Needed on MacOS X 10.4/PowerPC.
24280         Reported by Simon Josefsson.
24281
24282 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
24283         and Eric Blake  <ebb9@byu.net>
24284
24285         assert: honor --enable-assert
24286         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
24287         order to honor --enable-assert, rather than treating it as a
24288         synonym for --disable-assert.
24289
24290 2008-12-08  Jim Meyering  <meyering@redhat.com>
24291
24292         * lib/posixtm.c: Remove now-useless declaration of mktime.
24293
24294         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
24295
24296 2008-12-07  Bruno Haible  <bruno@clisp.org>
24297
24298         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
24299         test_once): Mark functions as static.
24300         * tests/test-tls.c (test_tls): Likewise.
24301
24302 2008-12-07  Bruno Haible  <bruno@clisp.org>
24303
24304         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
24305         iconv_register_autodetect.
24306
24307 2008-12-07  Jim Meyering  <meyering@redhat.com>
24308
24309         posixtm.c: avoid a warning
24310         * lib/posixtm.c (posixtime): Don't initialize tm0.
24311         It's no longer needed to placate gcc4's -Wuninitialized,
24312         and the attempt to placate would elicit a new warning.
24313
24314         unicodeio.c: mark unused parameters
24315         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
24316         (fallback_failure_callback): Likewise.
24317
24318 2008-12-07  Bruno Haible  <bruno@clisp.org>
24319
24320         * gnulib-tool (func_create_testdir): When building the tests
24321         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
24322         Reported by Simon Josefsson.
24323
24324 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24325
24326         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
24327
24328 2008-12-06  Bruno Haible  <bruno@clisp.org>
24329
24330         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
24331         Suggested by Eric Blake.
24332
24333 2008-12-06  Bruno Haible  <bruno@clisp.org>
24334
24335         Fix a c-stack test failure on MacOS X.
24336         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
24337         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
24338         handler for SIGBUS as well.
24339         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
24340         install a signal handler for SIGBUS as well.
24341         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
24342
24343 2008-12-06  Bruno Haible  <bruno@clisp.org>
24344
24345         Advocacy documentation.
24346         * doc/gnulib-intro.texi (Benefits): New section.
24347         * doc/gnulib.texi: Update.
24348
24349 2008-12-06  Bruno Haible  <bruno@clisp.org>
24350
24351         Document the 'manywarnings' module.
24352         * doc/manywarnings.texi: New file.
24353         * doc/gnulib.texi: Include it.
24354
24355 2008-12-05  Eric Blake  <ebb9@byu.net>
24356
24357         tests: silence some gcc warnings
24358         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
24359         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
24360         type mismatches.
24361
24362 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24363             Bruno Haible  <bruno@clisp.org>
24364
24365         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
24366
24367 2008-11-29  Jim Meyering  <meyering@redhat.com>
24368
24369         unicodeio.c: mark unused parameters
24370         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
24371         (fallback_failure_callback): Likewise.
24372
24373         fts: fix a thinko
24374         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
24375         (set_stat_type): Return S_IF*-valued "type" directly.
24376         Prompted by James Youngman's spotting a related bug.
24377         Confirmed by further testing through find.
24378
24379         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
24380         * lib/fts.c (D_TYPE): Define.
24381         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
24382         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
24383         (s_ifmt_shift_bits): New function.
24384         (set_stat_type): New function.
24385         (fts_build): When not calling fts_stat, call set_stat_type
24386         to propagate dirent.d_type info to fts_read caller.
24387         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
24388         fts_statp->st_mode type information may be valid.
24389
24390 2008-11-28  Simon Josefsson  <simon@josefsson.org>
24391
24392         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
24393         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
24394         <sds@gnu.org>.
24395
24396 2008-11-20  Bruno Haible  <bruno@clisp.org>
24397
24398         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
24399         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
24400         INCLUDE_NEXT.
24401         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
24402         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
24403         * modules/math (Makefile.am): Substitute
24404         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
24405         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24406
24407 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
24408             Bruno Haible  <bruno@clisp.org>
24409
24410         * lib/stdint.in.h: Define all type macros so that their expansion is
24411         a single typedef'ed token. Fixes a compilation failure in Boost which
24412         does "using ::int8_t;".
24413
24414 2008-11-18  Simon Josefsson  <simon@josefsson.org>
24415
24416         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
24417         gl_MANYWARN_ALL_GCC.
24418         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
24419         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
24420         * modules/manywarnings: New file.
24421         * MODULES.html.sh: Mention manywarnings module.
24422
24423 2008-11-18  Bruno Haible  <bruno@clisp.org>
24424
24425         * doc/gnulib-tool.texi (Unit tests): New section.
24426
24427 2008-11-18  Simon Josefsson  <simon@josefsson.org>
24428
24429         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
24430         paths like 'lib/po/foo.po'.
24431
24432 2008-11-17  Simon Josefsson  <simon@josefsson.org>
24433
24434         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
24435         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
24436
24437 2008-11-17  Simon Josefsson  <simon@josefsson.org>
24438
24439         * m4/warnings.m4: Use CPPFLAGS to really check whether the
24440         parameter works.
24441
24442 2008-11-17  Simon Josefsson  <simon@josefsson.org>
24443
24444         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
24445
24446 2008-11-17  Bruce Korb  <bkorb@gnu.org>
24447
24448         * modules/parse-duration-tests: New file.
24449         * tests/test-parse-duration.sh: New file.
24450         * tests/test-parse-duration.c: New file.
24451
24452         New module 'parse-duration'.
24453         * lib/parse-duration.h: New file.
24454         * lib/parse-duration.c: New file.
24455         * modules/parse-duration: New file.
24456
24457 2008-11-17  Bruno Haible  <bruno@clisp.org>
24458
24459         * tests/test-select-out.sh: Comment out the first pipe test.
24460         Reported by Simon Josefsson.
24461
24462 2008-11-17  Bruno Haible  <bruno@clisp.org>
24463
24464         * modules/getaddrinfo (Depends-on): Add servent, hostent.
24465         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
24466         gl_HOSTENT.
24467
24468 2008-11-17  Bruno Haible  <bruno@clisp.org>
24469
24470         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
24471         -lnetwork and -lnet. Needed for Haiku and BeOS.
24472
24473 2008-11-16  Bruno Haible  <bruno@clisp.org>
24474
24475         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
24476
24477 2008-11-16  Bruno Haible  <bruno@clisp.org>
24478
24479         Avoid test failure on Haiku.
24480         * tests/test-fsync.c: Include <errno.h>.
24481         (main): Don't require that fsync (0) fails.
24482
24483 2008-11-15  Bruno Haible  <bruno@clisp.org>
24484
24485         New module 'hostent'.
24486         * modules/hostent: New file.
24487         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
24488
24489 2008-11-15  Bruno Haible  <bruno@clisp.org>
24490
24491         New module 'servent'.
24492         * modules/servent: New file.
24493         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
24494
24495 2008-11-15  Bruno Haible  <bruno@clisp.org>
24496
24497         Avoid generating same test program with two different rules.
24498         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
24499         test-frexp to test-frexp-nolibm.
24500         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
24501         test-frexpl to test-frexpl-nolibm.
24502
24503 2008-11-15  Bruno Haible  <bruno@clisp.org>
24504
24505         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
24506         $(FREXPL_LIBM).
24507
24508 2008-11-15  Bruno Haible  <bruno@clisp.org>
24509
24510         * lib/netdb.in.h: Activate the definitions also when the system's
24511         <netdb.h> has 'struct addrinfo'.
24512         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
24513         EAI_OVERFLOW or AI_NUMERICSERV.
24514         * doc/posix-headers/netdb.texi: Document the problem.
24515
24516 2008-11-15  Bruno Haible  <bruno@clisp.org>
24517
24518         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
24519
24520         Make the 'sched' module work on platforms where <sched.h> exists but
24521         is incomplete (such as Haiku).
24522         * lib/sched.in.h; Include the system's <sched.h> if it exists.
24523         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
24524         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
24525         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
24526         HAVE_STRUCT_SCHED_PARAM.
24527         * modules/sched (Depends-on): Add include_next.
24528         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
24529         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
24530         * doc/posix-headers/sched.texi: Document the issue.
24531
24532 2008-11-13  Jim Meyering  <meyering@redhat.com>
24533
24534         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
24535         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
24536         test would fail due to the difference in the Report bugs to ...
24537         line.  The expected address is empty, "<>", while the actual
24538         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
24539
24540 2008-11-12  Bruno Haible  <bruno@clisp.org>
24541
24542         lstat: don't compile lstat.c on systems lacking lstat
24543         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
24544         which don't have lstat; this is handled by lib/sys_stat.in.h already.
24545         Reported by Daniel P. Berrange via Jim Meyering.
24546
24547 2008-11-12  Jim Meyering  <meyering@redhat.com>
24548
24549         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
24550
24551 2008-11-12  Simon Josefsson  <simon@josefsson.org>
24552
24553         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
24554         instead.
24555
24556 2008-11-12  Bruno Haible  <bruno@clisp.org>
24557
24558         * lib/unicodeio.c: Include unistr.h.
24559         (utf8_wctomb): Remove function.
24560         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
24561
24562 2008-11-12  Simon Josefsson  <simon@josefsson.org>
24563
24564         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
24565         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
24566         <bruno@clisp.org>.
24567         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
24568
24569 2008-11-12  Simon Josefsson  <simon@josefsson.org>
24570
24571         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
24572         * doc/gnulib.texi: Add section for warnings.
24573
24574 2008-11-11  Bruno Haible  <bruno@clisp.org>
24575
24576         * lib/sockets.h: Add a comment.
24577
24578 2008-11-11  Karl Berry  <karl@gnu.org>
24579
24580         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
24581
24582 2008-11-11  Eric Blake  <ebb9@byu.net>
24583
24584         fdl.texi: avoid git symlinks
24585         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
24586
24587 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24588
24589         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
24590
24591 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24592
24593         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
24594         (gl_WARN_ADD): Substitute $2 if literal.
24595
24596 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24597
24598         * m4/warning.m4: Remove.
24599
24600 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24601
24602         * m4/warnings.m4: Almost complete rewrite. :-)
24603
24604 2008-11-10  Simon Josefsson  <simon@josefsson.org>
24605
24606         * modules/warnings: New module.
24607         * m4/warnings.m4: New file.
24608         * MODULES.html.sh: Mention warnings module.
24609         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
24610         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24611
24612 2008-11-10  Eric Blake  <ebb9@byu.net>
24613
24614         fdl.texi: make a symlink to the latest version
24615         * doc/standards.texi: Revert today's earlier change.
24616         * doc/fdl-1.2.texi: Rename from old fdl.texi...
24617         * doc/fdl.texi: ...and replace this with a symlink to the newer
24618         fdl-1.3.texi.
24619
24620 2008-11-10  Bruno Haible  <bruno@clisp.org>
24621
24622         * tests/test-select-fd.c (main): Accept the result file name as fourth
24623         argument.
24624         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
24625         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
24626
24627 2008-11-10  Bruno Haible  <bruno@clisp.org>
24628
24629         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
24630         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
24631         as autoconf-substituted macros.
24632         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
24633         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
24634         gl_NETDB_H_DEFAULTS. Set these variables.
24635         * modules/netdb (Makefile.am): Substitute these variables.
24636
24637 2008-11-10  Eric Blake  <ebb9@byu.net>
24638
24639         standards.texi: include correct file for FDL 1.3
24640         * doc/standards.texi (GNU Free Documentation License): Change
24641         include file to pull in FDL 1.3, not 1.2.
24642
24643         fdl.texi: revert accidental change to license
24644         * doc/fdl.texi: This is FDL 1.2, not 1.3.
24645
24646 2008-11-10  Bruno Haible  <bruno@clisp.org>
24647
24648         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
24649         cross-compiling guesses also when the native compile gives no result.
24650
24651 2008-11-10  Bruno Haible  <bruno@clisp.org>
24652
24653         * lib/spawni.c (__spawni): Force variable into the stack.
24654
24655 2008-11-10  Bruno Haible  <bruno@clisp.org>
24656
24657         Add support for Haiku.
24658         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
24659         glibc and BeOS, but also on Haiku.
24660         * lib/fpurge.c (fpurge): Likewise.
24661         * lib/freadable.c (freadable): Likewise.
24662         * lib/freadahead.c (freadahead): Likewise.
24663         * lib/freading.c (freading): Likewise.
24664         * lib/freadptr.c (freadptr): Likewise.
24665         * lib/freadseek.c (freadptrinc): Likewise.
24666         * lib/fseeko.c (rpl_fseeko): Likewise.
24667         * lib/fseterr.c (fseterr): Likewise.
24668         * lib/fwritable.c (fwritable): Likewise.
24669         * lib/fwriting.c (fwriting): Likewise.
24670         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
24671
24672 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
24673
24674         * lib/config.charset: Treat Haiku like BeOS.
24675
24676 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
24677
24678         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
24679         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
24680
24681 2008-11-08  Bruno Haible  <bruno@clisp.org>
24682
24683         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
24684         AC_CACHE_CHECK.
24685
24686 2008-11-08  Bruno Haible  <bruno@clisp.org>
24687
24688         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
24689
24690 2008-11-08  Bruno Haible  <bruno@clisp.org>
24691
24692         * tests/test-select-fd.c: New file.
24693         * tests/test-select-in.sh: New file.
24694         * tests/test-select-out.sh: New file.
24695         * tests/test-select-stdin.c: New file.
24696         * modules/select-tests (Files): Add the new files.
24697         (Depends-on): Add gettimeofday.
24698         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
24699         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
24700         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
24701
24702 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
24703             Bruno Haible  <bruno@clisp.org>
24704
24705         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
24706
24707 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
24708
24709         * build-aux/pmccabe2html: Added support for C++ source files.
24710
24711 2008-11-05  Ben Pfaff  <blp@gnu.org>
24712
24713         Fix lib/close.c build on Windows.
24714         * modules/close (Files): Add lib/w32sock.h.
24715
24716 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
24717
24718         Accept Bison's NEWS format.
24719         * build-aux/announce-gen (print_news_deltas): Tweak
24720         $re_prefix.
24721
24722 2008-11-04  Bruno Haible  <bruno@clisp.org>
24723
24724         * modules/random_r (Maintainer): Add glibc.
24725
24726 2008-11-04  Simon Josefsson  <simon@josefsson.org>
24727
24728         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
24729         by karl@freefriends.org (Karl Berry).
24730         * doc/alloca.texi: Likewise.
24731         * doc/c-ctype.texi: Likewise.
24732         * doc/c-strcase.texi: Likewise.
24733         * doc/c-strcaseeq.texi: Likewise.
24734         * doc/c-strcasestr.texi: Likewise.
24735         * doc/c-strstr.texi: Likewise.
24736         * doc/c-strtod.texi: Likewise.
24737         * doc/c-strtold.texi: Likewise.
24738         * doc/ctime.texi: Likewise.
24739         * doc/error.texi: Likewise.
24740         * doc/fdl.texi: Likewise.
24741         * doc/gcd.texi: Likewise.
24742         * doc/getdate.texi: Likewise.
24743         * doc/gnulib-intro.texi: Likewise.
24744         * doc/gnulib-tool.texi: Likewise.
24745         * doc/gnulib.texi: Likewise.
24746         * doc/inet_ntoa.texi: Likewise.
24747         * doc/maintain.texi: Likewise.
24748         * doc/make-stds.texi: Likewise.
24749         * doc/quote.texi: Likewise.
24750         * doc/regexprops-generic.texi: Likewise.
24751         * doc/standards.texi: Likewise.
24752         * doc/verify.texi: Likewise.
24753         * doc/visibility.texi: Likewise.
24754         * doc/gnulib.texi (GNU Free Documentation License): Include
24755         fdl-1.3.texi instead of fdl.texi.
24756
24757 2008-11-04  Simon Josefsson  <simon@josefsson.org>
24758
24759         * doc/fdl-1.3.texi: New file, from
24760         <http://www.gnu.org/licenses/fdl-1.3.texi>.
24761         * modules/fdl-1.3: Add.
24762         * MODULES.html.sh: Add fdl-1.3.
24763
24764 2008-11-03  Bruno Haible  <bruno@clisp.org>
24765
24766         Make determination of absolute name of header file work with AIX xlc.
24767         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
24768         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
24769         preprocessing.
24770         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
24771         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
24772
24773 2008-11-03  Simon Josefsson  <simon@josefsson.org>
24774
24775         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
24776         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
24777         <ludo@gnu.org>.
24778
24779 2008-11-02  Bruno Haible  <bruno@clisp.org>
24780
24781         Mark 'strpbrk' obsolete.
24782         * modules/strpbrk (Status, Notice): New sections.
24783         * modules/strtok_r (Depends-on): Add strpbrk.
24784
24785 2008-11-02  Bruno Haible  <bruno@clisp.org>
24786
24787         Mark 'strdup' obsolete.
24788         * modules/strdup (Status, Notice): New sections.
24789         * modules/findprog (Depends-on): Add strdup.
24790         * modules/getaddrinfo (Depends-on): Likewise.
24791         * modules/localename (Depends-on): Likewise.
24792         * modules/relocatable-lib (Depends-on): Likewise.
24793         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
24794         * modules/relocatable-prog (Depends-on): Likewise.
24795         * modules/trim (Depends-on): Likewise.
24796         * modules/unictype/gen-ctype (Depends-on): Likewise.
24797         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
24798
24799 2008-11-02  Bruno Haible  <bruno@clisp.org>
24800
24801         Mark 'strcspn' obsolete.
24802         * modules/strcspn (Status, Notice): New sections.
24803
24804 2008-11-02  Bruno Haible  <bruno@clisp.org>
24805
24806         Mark 'rmdir' obsolete.
24807         * modules/rmdir (Status, Notice): New sections.
24808         * modules/clean-temp (Depends-on): Add rmdir.
24809         * modules/openat (Depends-on): Likewise.
24810
24811 2008-11-02  Bruno Haible  <bruno@clisp.org>
24812
24813         Mark 'raise' obsolete.
24814         * modules/raise (Status, Notice): New sections.
24815         (Include): Specify <signal.h>.
24816         * modules/stdio (Depends-on): Add raise.
24817         * modules/write (Depends-on): Likewise.
24818
24819 2008-11-02  Bruno Haible  <bruno@clisp.org>
24820
24821         Mark 'memset' obsolete.
24822         * modules/memset (Status, Notice): New sections.
24823
24824 2008-11-02  Bruno Haible  <bruno@clisp.org>
24825
24826         Mark 'memmove' obsolete.
24827         * modules/memmove (Status, Notice): New sections.
24828         * modules/argp (Depends-on): Add memmove.
24829         * modules/argz (Depends-on): Likewise.
24830         * modules/canonicalize (Depends-on): Likewise.
24831         * modules/canonicalize-lgpl (Depends-on): Likewise.
24832         * modules/fts (Depends-on): Likewise.
24833         * modules/getcwd (Depends-on): Likewise.
24834         * modules/human (Depends-on): Likewise.
24835         * modules/regex (Depends-on): Likewise.
24836         * modules/striconveh (Depends-on): Likewise.
24837         * modules/trim (Depends-on): Likewise.
24838         * modules/unistr/u8-move (Depends-on): Likewise.
24839         * modules/unistr/u16-move (Depends-on): Likewise.
24840         * modules/unistr/u32-move (Depends-on): Likewise.
24841
24842 2008-11-02  Bruno Haible  <bruno@clisp.org>
24843
24844         Mark 'memcpy' obsolete.
24845         * modules/memcpy (Status, Notice): New sections.
24846
24847 2008-11-02  Bruno Haible  <bruno@clisp.org>
24848
24849         Mark 'memcmp' obsolete.
24850         * modules/memcmp (Status, Notice): New sections.
24851         * modules/argmatch (Depends-on): Add memchr.
24852         * modules/backupfile (Depends-on): Likewise.
24853         * modules/c-strcasestr (Depends-on): Likewise.
24854         * modules/crypto/des (Depends-on): Likewise.
24855         * modules/csharpcomp (Depends-on): Likewise.
24856         * modules/fnmatch (Depends-on): Likewise.
24857         * modules/git-merge-changelog (Depends-on): Likewise.
24858         * modules/isnand (Depends-on): Likewise.
24859         * modules/isnand-nolibm (Depends-on): Likewise.
24860         * modules/isnanf (Depends-on): Likewise.
24861         * modules/isnanf-nolibm (Depends-on): Likewise.
24862         * modules/isnanl (Depends-on): Likewise.
24863         * modules/isnanl-nolibm (Depends-on): Likewise.
24864         * modules/mbchar (Depends-on): Likewise.
24865         * modules/memcoll (Depends-on): Likewise.
24866         * modules/quotearg (Depends-on): Likewise.
24867         * modules/regex (Depends-on): Likewise.
24868         * modules/relocatable-prog (Depends-on): Likewise.
24869         * modules/same (Depends-on): Likewise.
24870         * modules/signbit (Depends-on): Likewise.
24871         * modules/strcasestr-simple (Depends-on): Likewise.
24872         * modules/unictype/gen-ctype (Depends-on): Likewise.
24873         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
24874         * modules/uniname/uniname (Depends-on): Likewise.
24875         * modules/unistr/u8-cmp (Depends-on): Likewise.
24876
24877 2008-11-02  Bruno Haible  <bruno@clisp.org>
24878
24879         Mark 'memchr' obsolete.
24880         * modules/memchr (Status, Notice): New sections.
24881         * modules/argp (Depends-on): Add memchr.
24882         * modules/base64 (Depends-on): Likewise.
24883         * modules/c-strcasestr (Depends-on): Likewise.
24884         * modules/chdir-long (Depends-on): Likewise.
24885         * modules/fnmatch (Depends-on): Likewise.
24886         * modules/getsubopt (Depends-on): Likewise.
24887         * modules/git-merge-changelog (Depends-on): Likewise.
24888         * modules/glob (Depends-on): Likewise.
24889         * modules/strcasestr-simple (Depends-on): Likewise.
24890         * modules/strnlen (Depends-on): Likewise.
24891
24892 2008-11-02  Bruno Haible  <bruno@clisp.org>
24893
24894         Mark 'atexit' obsolete.
24895         * modules/atexit (Status, Notice): New sections.
24896         * modules/chdir-long (Depends-on): Add atexit.
24897         * modules/wait-process (Depends-on): Likewise.
24898
24899 2008-11-02  Bruno Haible  <bruno@clisp.org>
24900
24901         * gnulib-tool: New option --with-obsolete.
24902         (func_usage): Document it.
24903         (func_modules_transitive_closure): Drop obsolete dependencies if
24904         incobsolete is not true.
24905         (func_import): Read and save the incobsolete variable to the cache.
24906
24907 2008-11-02  Bruno Haible  <bruno@clisp.org>
24908
24909         * modules/TEMPLATE-EXTENDED: New field 'Status'.
24910         * gnulib-tool: New option --extract-status.
24911         (func_usage): Document it.
24912         (sed_extract_prog): Recognize it.
24913         (func_get_status): New function.
24914
24915 2008-10-30  Simon Josefsson  <simon@josefsson.org>
24916
24917         * modules/sockets (License): Change from LGPL to LGPLv2+.
24918
24919 2008-10-28  Simon Josefsson  <simon@josefsson.org>
24920
24921         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
24922
24923 2008-10-28  Simon Josefsson  <simon@josefsson.org>
24924
24925         * MODULES.html.sh (Support for systems lacking POSIX:2001):
24926         Mention times and sys_times.
24927         * modules/sys_times, modules/sys_times-tests: New modules.
24928         * modules/times, modules/times-tests: Likewise
24929         * m4/sys_times_h.m4: New file.
24930         * lib/sys_times.in.h: Likewise
24931         * lib/times.c: Likewise.
24932         * tests/test-sys_times.c: Likewise.
24933         * tests/test-times.c: Likewise.
24934         * doc/posix-headers/sys_times.texi: Update.
24935         * doc/posix-functions/times.texi: Update.
24936
24937 2008-10-28  Jim Meyering  <meyering@redhat.com>
24938
24939         * modules/tempname (Depends-on): Add lstat.
24940
24941         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
24942
24943 2008-10-28  Simon Josefsson  <simon@josefsson.org>
24944
24945         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
24946         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
24947         using idiom used elsewhere in gnulib.
24948
24949 2008-10-27  Jim Meyering  <meyering@redhat.com>
24950
24951         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
24952
24953 2008-10-27  Simon Josefsson  <simon@josefsson.org>
24954
24955         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
24956         TESTS_ENVIRONMENT, for shell scripts that needs to call built
24957         programs.
24958         * tests/test-argp-2.sh: Use $EXEEXT when needed.
24959
24960 2008-10-27  Simon Josefsson  <simon@josefsson.org>
24961
24962         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
24963
24964 2008-10-27  Bruno Haible  <bruno@clisp.org>
24965
24966         * tests/test-lstat.c: Include <stdio.h>.
24967
24968 2008-10-27  Simon Josefsson  <simon@josefsson.org>
24969
24970         * modules/lstat-tests: New module.
24971         * tests/test-lstat.c: New file.
24972
24973 2008-10-26  Jim Meyering  <meyering@redhat.com>
24974
24975         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
24976
24977 2008-10-26  Simon Josefsson  <simon@josefsson.org>
24978             Bruno Haible  <bruno@clisp.org>
24979
24980         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
24981         * modules/configmake (Include): Add a note that the include must come
24982         after all system headers.
24983         * lib/javaversion.c: Include configmake.h after all other includes.
24984
24985 2008-10-26  Bruno Haible  <bruno@clisp.org>
24986
24987         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
24988         HAVE_STRUCT_RANDOM_DATA to 1.
24989         (gl_STDLIB_H): Simplify.
24990
24991 2008-10-26  Simon Josefsson  <simon@josefsson.org>
24992
24993         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
24994         substitute HAVE_STRUCT_RANDOM_DATA.
24995         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
24996         random_data.
24997         * modules/stdlib (Makefile.am): Substitute
24998         HAVE_STRUCT_RANDOM_DATA.
24999
25000 2008-10-26  Simon Josefsson  <simon@josefsson.org>
25001
25002         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
25003         * doc/gnulib-intro.texi (Copyright): Likewise.
25004
25005 2008-10-26  Simon Josefsson  <simon@josefsson.org>
25006
25007         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
25008         findings.
25009
25010 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
25011             Bruno Haible  <bruno@clisp.org>
25012
25013         * lib/unistd.in.h: Include <winsock2.h>.
25014         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
25015         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
25016         Provide dummy declarations.
25017         (gethostname): Override.
25018         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
25019         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
25020         gl_PREREQ_SYS_H_WINSOCK2.
25021         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
25022         * doc/posix-functions/gethostname.texi: More details.
25023
25024 2008-10-25  Bruno Haible  <bruno@clisp.org>
25025
25026         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
25027         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
25028         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
25029
25030         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
25031         here ...
25032         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
25033         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
25034         gl_UNISTD_H_DEFAULTS.
25035
25036 2008-10-25  Eric Blake  <ebb9@byu.net>
25037
25038         signbit: avoid spurious compiler failure
25039         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
25040         declarations inside function.
25041
25042 2008-10-24  Simon Josefsson  <simon@josefsson.org>
25043             Bruno Haible  <bruno@clisp.org>
25044
25045         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
25046         * modules/random_r (Depends-on): Add stdint.
25047
25048 2008-10-24  Bruno Haible  <bruno@clisp.org>
25049
25050         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
25051         Eggert.
25052         * modules/strerror (License): Likewise.
25053
25054 2008-10-24  Jim Meyering  <meyering@redhat.com>
25055
25056         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
25057         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
25058
25059 2008-10-24  Eric Blake  <ebb9@byu.net>
25060
25061         getgroups: fix compilation when getgroups is available
25062         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
25063         but with <config.h> override of getgroups disabled.
25064
25065 2008-10-24  Simon Josefsson  <simon@josefsson.org>
25066
25067         * doc/gnulib.texi (Header files): Add note about C++ problems.
25068         Explained by Bruno Haible <bruno@clisp.org>.
25069
25070 2008-10-23  Bruno Haible  <bruno@clisp.org>
25071
25072         Define a dummy SA_NODEFER macro on Interix.
25073         * lib/signal.in.h (SA_NODEFER): Define fallback.
25074         Reported by Aleksey Cheusov <cheusov@tut.by> via
25075         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
25076
25077 2008-10-23  Bruno Haible  <bruno@clisp.org>
25078
25079         * modules/freadahead (License): Change to LGPLv2+.
25080         Suggested by Simon Josefsson.
25081
25082 2008-10-23  Jim Meyering  <meyering@redhat.com>
25083
25084         random_r: new module
25085         * modules/random_r: New file.
25086         * m4/random_r.m4: New file.
25087         * lib/random_r.c: New file, from glibc.
25088         * modules/random_r-tests: New file.
25089         * tests/test-random_r.c: New file.
25090         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
25091          Declare.
25092         (RAND_MAX): Define.
25093         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
25094         * modules/stdlib: Substitute them, too.
25095         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
25096         * doc/glibc-functions/initstate_r.texi: Mention the new module.
25097         * doc/glibc-functions/random_r.texi: Likewise.
25098         * doc/glibc-functions/setstate_r.texi: Likewise.
25099         * doc/glibc-functions/srandom_r.texi: Likewise.
25100         * config/srclist.txt: Mention it.
25101
25102 2008-10-23  David Lutterkort  <lutter@redhat.com>
25103
25104         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
25105         link requirement
25106
25107 2008-10-23  Jim Meyering  <meyering@redhat.com>
25108
25109         selinux-h: mark parameters of stub functions as intentionally unused
25110         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
25111         * lib/se-context.in.h: Likewise.
25112
25113 2008-10-22  Simon Josefsson  <simon@josefsson.org>
25114
25115         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
25116
25117 2008-10-22  Simon Josefsson  <simon@josefsson.org>
25118
25119         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
25120
25121 2008-10-22  Eric Blake  <ebb9@byu.net>
25122
25123         glthread/thread: avoid compiler warning
25124         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
25125         Add unreachable abort to silence compiler.
25126
25127 2008-10-22  Eric Blake  <ebb9@byu.net>
25128
25129         netdb: also supply struct addrinfo for cygwin 1.5.x
25130         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
25131         older cygwin.
25132         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
25133         cygwin.
25134         * doc/posix-headers/netdb.texi (netdb.h): Document this.
25135
25136 2008-10-22  Bruno Haible  <bruno@clisp.org>
25137
25138         * users.txt: Update entry about pspp.
25139
25140 2008-10-21  Bruno Haible  <bruno@clisp.org>
25141
25142         Simplification.
25143         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
25144         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
25145
25146         Simplification.
25147         * lib/ioctl.c (ioctl): Don't undefine.
25148         * lib/socket.c (socket): Don't undefine.
25149
25150         Remove unused module indicator macros.
25151         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
25152         GNULIB_$1 as a C macro.
25153
25154         * doc/posix-functions/close.texi: Undo last change.
25155         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
25156         Windows platforms.
25157
25158 2008-10-21  Bruno Haible  <bruno@clisp.org>
25159
25160         Add gethostname() declaration to <unistd.h>.
25161         * lib/unistd.in.h (gethostname): New declaration.
25162         * lib/gethostname.c: Include <unistd.h>.
25163         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
25164         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
25165         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
25166         and HAVE_GETHOSTNAME.
25167         * modules/gethostname (Depends-on): Add unistd.
25168         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25169         (Include): Specify <unistd.h>.
25170         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
25171         HAVE_GETHOSTNAME.
25172         * tests/test-gethostname.c: Include <unistd.h> first.
25173
25174 2008-10-21  Bruno Haible  <bruno@clisp.org>
25175
25176         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
25177         * modules/select-tests (Depends-on): Likewise.
25178         Reported by Simon Josefsson.
25179
25180 2008-10-21  Simon Josefsson  <simon@josefsson.org>
25181
25182         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
25183         * lib/accept.c: New file, based on winsock.c.
25184         * lib/bind.c: New file, based on winsock.c.
25185         * lib/connect.c: New file, based on winsock.c.
25186         * lib/getpeername.c: New file, based on winsock.c.
25187         * lib/getsockname.c: New file, based on winsock.c.
25188         * lib/getsockopt.c: New file, based on winsock.c.
25189         * lib/ioctl.c: New file, based on winsock.c.
25190         * lib/listen.c: New file, based on winsock.c.
25191         * lib/recv.c: New file, based on winsock.c.
25192         * lib/recvfrom.c: New file, based on winsock.c.
25193         * lib/send.c: New file, based on winsock.c.
25194         * lib/sendto.c: New file, based on winsock.c.
25195         * lib/setsockopt.c: New file, based on winsock.c.
25196         * lib/shutdown.c: New file, based on winsock.c.
25197         * lib/socket.c: New file, based on winsock.c.
25198         * lib/w32sock.h: New file, based on winsock.c.
25199         * lib/winsock.c: Remove file.
25200         * modules/accept: Likewise.
25201         * modules/bind: Likewise.
25202         * modules/connect: Likewise.
25203         * modules/getpeername: Likewise.
25204         * modules/getsockname: Likewise.
25205         * modules/getsockopt: Likewise.
25206         * modules/ioctl: Likewise.
25207         * modules/listen: Likewise.
25208         * modules/recv: Likewise.
25209         * modules/recvfrom: Likewise.
25210         * modules/send: Likewise.
25211         * modules/sendto: Likewise.
25212         * modules/setsockopt: Likewise.
25213         * modules/shutdown: Likewise.
25214         * modules/socket: Use socket.c instead of winsock.c.
25215         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
25216         * doc/posix-functions/accept.texi: Doc fix.
25217         * doc/posix-functions/bind.texi: Doc fix.
25218         * doc/posix-functions/close.texi: Doc fix.
25219         * doc/posix-functions/connect.texi: Doc fix.
25220         * doc/posix-functions/getpeername.texi: Doc fix.
25221         * doc/posix-functions/getsockname.texi: Doc fix.
25222         * doc/posix-functions/getsockopt.texi: Doc fix.
25223         * doc/posix-functions/ioctl.texi: Doc fix.
25224         * doc/posix-functions/listen.texi: Doc fix.
25225         * doc/posix-functions/recv.texi: Doc fix.
25226         * doc/posix-functions/recvfrom.texi: Doc fix.
25227         * doc/posix-functions/send.texi: Doc fix.
25228         * doc/posix-functions/sendto.texi: Doc fix.
25229         * doc/posix-functions/setsockopt.texi: Doc fix.
25230         * doc/posix-functions/shutdown.texi: Doc fix.
25231         * doc/posix-functions/socket.texi: Doc fix.
25232
25233 2008-10-20  Bruno Haible  <bruno@clisp.org>
25234
25235         Take into account the role of SIGABRT_COMPAT on Windows 2008.
25236         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
25237         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
25238         as an alias for SIGABRT.
25239         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
25240         (sigaction): Map it to SIGABRT.
25241         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
25242
25243 2008-10-20  Bruno Haible  <bruno@clisp.org>
25244
25245         * lib/fts.c: Don't include lstat.h.
25246         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
25247
25248         Move the lstat() declaration to <sys/stat.h>.
25249         * lib/lstat.h: Remove file.
25250         * lib/sys_stat.in.h: Add special invocation convention.
25251         (lstat): New declaration.
25252         * lib/lstat.c (orig_lstat): New function.
25253         (rpl_lstat): Use orig_lstat instead of lstat.
25254         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
25255         AC_C_INLINE. Set REPLACE_LSTAT.
25256         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
25257         and REPLACE_LSTAT.
25258         * modules/lstat (Files): Remove lib/lstat.h.
25259         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
25260         (Include): Specify <sys/stat.h> instead of lstat.h.
25261         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
25262         REPLACE_LSTAT.
25263         * NEWS: Mention the change.
25264
25265 2008-10-20  Bruno Haible  <bruno@clisp.org>
25266
25267         * modules/posix_spawn-tests: New file.
25268         * tests/test-posix_spawn3.c: New file.
25269
25270 2008-10-20  Bruno Haible  <bruno@clisp.org>
25271
25272         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
25273         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
25274         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
25275         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
25276         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
25277
25278 2008-10-20  Bruno Haible  <bruno@clisp.org>
25279
25280         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
25281         of posix_spawn on AIX 5.3.
25282
25283 2008-10-20  Bruno Haible  <bruno@clisp.org>
25284
25285         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
25286
25287 2008-10-20  Bruno Haible  <bruno@clisp.org>
25288
25289         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
25290         of AC_LANG_PROGRAM.
25291
25292 2008-10-20  Simon Josefsson  <simon@josefsson.org>
25293
25294         * lib/netdb.in.h: Don't define GNU specific constants until they
25295         are supported or needed.  Reported by Bruno Haible
25296         <bruno@clisp.org>.
25297
25298 2008-10-20  Simon Josefsson  <simon@josefsson.org>
25299
25300         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
25301
25302 2008-10-20  Simon Josefsson  <simon@josefsson.org>
25303
25304         * lib/getaddrinfo.h: Remove file.
25305         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
25306         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
25307         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
25308         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
25309         * modules/netdb: Substitute GNULIB_GETADDRINFO.
25310         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
25311         * tests/test-getaddrinfo.c: Likewise.
25312         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
25313         * NEWS: Mention change.
25314
25315 2008-10-19  Bruno Haible  <bruno@clisp.org>
25316
25317         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
25318
25319 2008-10-19  Bruno Haible  <bruno@clisp.org>
25320
25321         * lib/wait-process.c: Include simply <sys/wait.h>.
25322         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
25323         WIFSTOPPED): Remove fallback definitions.
25324         * modules/wait-process (Depends-on): Add sys_wait.
25325
25326         New module 'sys_wait'.
25327         * modules/sys_wait: New file.
25328         * lib/sys_wait.in.h: New file, partially copied from
25329         lib/wait-process.c.
25330         * m4/sys_wait_h.m4: New file.
25331         * doc/posix-headers/sys_wait.texi: Mention the new module.
25332
25333 2008-10-19  Bruno Haible  <bruno@clisp.org>
25334
25335         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
25336
25337 2008-10-19  Bruno Haible  <bruno@clisp.org>
25338
25339         Assume that waitpid() fills an 'int' status, not a 'union wait'.
25340         * lib/wait-process.c (WAIT_T): Remove type.
25341         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
25342         (wait_subprocess): Update.
25343
25344 2008-10-19  Bruno Haible  <bruno@clisp.org>
25345
25346         New module 'atoll'.
25347         * modules/atoll: New file.
25348         * lib/stdlib.in.h (atoll): New declaration.
25349         * lib/atoll.c: New file, from glibc with modifications.
25350         * m4/atoll.m4: New file.
25351         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
25352         HAVE_ATOLL.
25353         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
25354         * doc/posix-functions/atoll.texi: Mention the new module.
25355
25356 2008-10-19  Bruno Haible  <bruno@clisp.org>
25357
25358         Add strtoull() declaration to <stdlib.h>.
25359         * lib/stdlib.in.h (strtoull): New declaration.
25360         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
25361         Set HAVE_STRTOULL.
25362         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
25363         HAVE_STRTOULL.
25364         * modules/strtoull (Depends-on): Add stdlib.
25365         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25366         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
25367         HAVE_STRTOULL.
25368
25369 2008-10-19  Bruno Haible  <bruno@clisp.org>
25370
25371         Add strtoll() declaration to <stdlib.h>.
25372         * lib/stdlib.in.h (strtoll): New declaration.
25373         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
25374         Set HAVE_STRTOLL.
25375         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
25376         HAVE_STRTOLL.
25377         * modules/strtoll (Depends-on): Add stdlib.
25378         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25379         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
25380
25381 2008-10-19  Bruno Haible  <bruno@clisp.org>
25382
25383         * modules/bcopy (Depends-on): Add strings.
25384         (Include): Specify <strings.h>.
25385
25386 2008-10-19  Bruno Haible  <bruno@clisp.org>
25387
25388         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
25389
25390 2008-10-19  Bruno Haible  <bruno@clisp.org>
25391
25392         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
25393         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
25394         mingw.
25395
25396 2008-10-19  Bruno Haible  <bruno@clisp.org>
25397
25398         * lib/atanl.c: Don't include isnanl.h.
25399         * lib/cosl.c: Likewise.
25400         * lib/ldexpl.c: Likewise.
25401         * lib/logl.c: Likewise.
25402         * lib/sinl.c: Likewise.
25403         * lib/sqrtl.c: Likewise.
25404         * lib/tanl.c: Likewise.
25405
25406         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
25407         * lib/isnanf.h: Remove file.
25408         * lib/isnand.h: Remove file.
25409         * lib/isnanl.h: Remove file.
25410         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
25411         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
25412         macros.
25413         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
25414         HAVE_ISNANF, don't define it as a C macro.
25415         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
25416         HAVE_ISNAND, don't define it as a C macro.
25417         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
25418         HAVE_ISNANL, don't define it as a C macro.
25419         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
25420         HAVE_ISNAN[FDL].
25421         * modules/isnanf (Files): Remove lib/isnanf.h.
25422         (Depends-on): Add math.
25423         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25424         (Include): Specify <math.h> instead of isnanf.h.
25425         * modules/isnand (Files): Remove lib/isnand.h.
25426         (Depends-on): Add math.
25427         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25428         (Include): Specify <math.h> instead of isnand.h.
25429         * modules/isnanl (Files): Remove lib/isnanl.h.
25430         (Depends-on): Add math.
25431         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25432         (Include): Specify <math.h> instead of isnanl.h.
25433         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
25434         HAVE_ISNAN[FDL].
25435         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
25436         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
25437         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
25438         * NEWS: Mention the change.
25439
25440 2008-10-18  Bruno Haible  <bruno@clisp.org>
25441
25442         Add getusershell(), setusershell(), endusershell() declarations to
25443         <unistd.h>.
25444         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
25445         declarations.
25446         * lib/getusershell.c: Include unistd.h.
25447         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
25448         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
25449         HAVE_GETUSERSHELL.
25450         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
25451         and HAVE_GETUSERSHELL.
25452         * modules/getusershell (Depends-on): Add unistd, extensions.
25453         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25454         (Include): Specify <unistd.h>.
25455         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
25456         HAVE_GETUSERSHELL.
25457
25458 2008-10-18  Bruno Haible  <bruno@clisp.org>
25459
25460         Add a getloadavg() declaration to <stdlib.h>.
25461         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
25462         getloadavg declaration.
25463         (getloadavg): New declaration.
25464         * lib/getloadavg.c: Include <stdlib.h> first.
25465         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
25466         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
25467         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
25468         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
25469         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
25470         * modules/getloadavg (Depends-on): Add stdlib, extensions.
25471         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25472         (Include): Specify <stdlib.h>.
25473         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
25474         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
25475
25476 2008-10-18  Bruno Haible  <bruno@clisp.org>
25477
25478         * lib/dirchownmod.c: Don't include lchmod.h.
25479
25480         Move the lchmod() declaration to <sys/stat.h>.
25481         * lib/lchmod.h: Remove file.
25482         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
25483         (lchmod): New declaration, moved here from lib/lchown.h.
25484         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
25485         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
25486         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
25487         and HAVE_LCHMOD.
25488         * modules/lchmod (Files): Remove lib/lchmod.h.
25489         (Depends-on): Add sys_stat, extensions.
25490         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
25491         (Include): Specify <sys/stat.h> instead of lchmod.h.
25492         * modules/sys_stat (Depends-on): Add link-warning.
25493         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
25494         definition of GL_LINK_WARNING.
25495         * NEWS: Mention the change.
25496
25497 2008-10-18  Bruno Haible  <bruno@clisp.org>
25498
25499         * lib/fchdir.c: Don't include dirfd.h.
25500         * lib/fts.c: Likewise.
25501         * lib/getcwd.c: Likewise.
25502         * lib/glob.c: Likewise.
25503
25504         Move the dirfd() declaration to <dirent.h>.
25505         * lib/dirfd.h: Remove file.
25506         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
25507         (dirfd): New declaration.
25508         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
25509         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
25510         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
25511         HAVE_DECL_DIRFD.
25512         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
25513         HAVE_DECL_DIRFD.
25514         * modules/dirfd (Files): Remove lib/dirfd.h.
25515         (Depends-on): Add dirent, extensions.
25516         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
25517         (Include): Specify <dirent.h> instead of dirfd.h.
25518         * modules/dirent (Depends-on): Add link-warning.
25519         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
25520         definition of GL_LINK_WARNING.
25521         * NEWS: Mention the change.
25522
25523 2008-10-18  Bruno Haible  <bruno@clisp.org>
25524
25525         Move the euidaccess() declaration to <unistd.h>.
25526         * lib/euidaccess.h: Remove file.
25527         * lib/unistd.in.h (euidaccess): New declaration.
25528         * lib/euidaccess.c: Don't include euidaccess.h.
25529         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
25530         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
25531         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
25532         and HAVE_EUIDACCESS.
25533         * modules/euidaccess (Files): Remove lib/euidaccess.h.
25534         (Depends-on): Add unistd.
25535         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25536         (Include): Specify <unistd.h> instead of euidaccess.h.
25537         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
25538         HAVE_EUIDACCESS.
25539         * NEWS: Mention the change.
25540
25541 2008-10-18  Bruno Haible  <bruno@clisp.org>
25542
25543         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
25544
25545         Move the getdomainname() declaration to <unistd.h>.
25546         * lib/getdomainname.h: Remove file.
25547         * lib/unistd.in.h (getdomainname): New declaration.
25548         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
25549         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
25550         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
25551         HAVE_GETDOMAINNAME.
25552         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25553         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
25554         * modules/getdomainname (Files): Remove lib/getdomainname.h.
25555         (Depends-on): Add unistd, extensions.
25556         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25557         (Includes): Specify <unistd.h> instead of getdomainname.h.
25558         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
25559         HAVE_GETDOMAINNAME.
25560         * NEWS: Mention the change.
25561
25562 2008-10-18  Bruno Haible  <bruno@clisp.org>
25563
25564         * modules/dirent: New file.
25565         * m4/dirent_h.m4: New file.
25566         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
25567         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
25568         * modules/fchdir (Files): Remove lib/dirent.in.h.
25569         (Depends-on): Add dirent.
25570         (Makefile.am): Move rules to modules/dirent.
25571         * doc/posix-headers/dirent.texi: Mention the new module.
25572
25573 2008-10-18  Bruno Haible  <bruno@clisp.org>
25574
25575         Avoid -Wunused-parameter warnings in public gnulib header files.
25576         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
25577         macro.
25578         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
25579
25580 2008-10-18  Bruno Haible  <bruno@clisp.org>
25581
25582         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
25583         * doc/glibc-functions/error.texi: Mention the module 'error'.
25584         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
25585         * doc/glibc-functions/getdomainname.texi: Mention the module
25586         'getdomainname'.
25587         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
25588         * doc/glibc-functions/getpagesize.texi: Mention the module
25589         'getpagesize'.
25590         * doc/glibc-functions/getusershell.texi: Mention the module
25591         'getusershell'.
25592         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
25593         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
25594         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
25595         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
25596         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
25597         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
25598         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
25599         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
25600         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
25601         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
25602         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
25603         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
25604         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
25605         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
25606
25607 2008-10-17  Bruno Haible  <bruno@clisp.org>
25608
25609         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
25610         HP-UX and IRIX, use -0.0L.
25611         * tests/test-ceill.c (minus_zero): Likewise.
25612         * tests/test-floorl.c (minus_zero): Likewise.
25613         * tests/test-frexpl.c (minus_zero): Likewise.
25614         * tests/test-isnan.c (minus_zerol): Likewise.
25615         * tests/test-isnanl.h (minus_zero): Likewise.
25616         * tests/test-ldexpl.c (minus_zero): Likewise.
25617         * tests/test-roundl.c (minus_zero): Likewise.
25618         * tests/test-signbit.c (minus_zerol): Likewise.
25619         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
25620         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
25621         * tests/test-truncl.c (minus_zero): Likewise.
25622         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
25623         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
25624         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
25625         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
25626
25627 2008-10-17  Bruno Haible  <bruno@clisp.org>
25628
25629         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
25630         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
25631         that it gets activated only for gcc >= 3.0.
25632         * lib/dirent.in.h: Likewise.
25633         * lib/errno.in.h: Likewise.
25634         * lib/fcntl.in.h: Likewise.
25635         * lib/float.in.h: Likewise.
25636         * lib/iconv.in.h: Likewise.
25637         * lib/inttypes.in.h: Likewise.
25638         * lib/locale.in.h: Likewise.
25639         * lib/math.in.h: Likewise.
25640         * lib/netdb.in.h: Likewise.
25641         * lib/netinet_in.in.h: Likewise.
25642         * lib/search.in.h: Likewise.
25643         * lib/signal.in.h: Likewise.
25644         * lib/spawn.in.h: Likewise.
25645         * lib/stdarg.in.h: Likewise.
25646         * lib/stdint.in.h: Likewise.
25647         * lib/stdio.in.h: Likewise.
25648         * lib/stdlib.in.h: Likewise.
25649         * lib/string.in.h: Likewise.
25650         * lib/strings.in.h: Likewise.
25651         * lib/sys_file.in.h: Likewise.
25652         * lib/sys_ioctl.in.h: Likewise.
25653         * lib/sys_select.in.h: Likewise.
25654         * lib/sys_socket.in.h: Likewise.
25655         * lib/sys_stat.in.h: Likewise.
25656         * lib/sys_time.in.h: Likewise.
25657         * lib/sysexits.in.h: Likewise.
25658         * lib/time.in.h: Likewise.
25659         * lib/unistd.in.h: Likewise.
25660         * lib/wchar.in.h: Likewise.
25661         * lib/wctype.in.h: Likewise.
25662         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
25663
25664 2008-10-17  Jim Meyering  <meyering@redhat.com>
25665
25666         ignore-value: don't depend on inline module
25667         * modules/ignore-value (Depends-on): Remove 'inline'.
25668         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
25669         Suggestion from Bruno Haible.
25670
25671 2008-10-17  Bruno Haible  <bruno@clisp.org>
25672
25673         New implementation of condition variables for Win32.
25674         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
25675         (gl_linked_waitqueue_t): New type.
25676         (gl_cond_t): Use it.
25677         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
25678         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
25679         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
25680         (glthread_cond_init_func, glthread_cond_wait_func,
25681         glthread_cond_timedwait_func, glthread_cond_signal_func,
25682         glthread_cond_broadcast_func, glthread_cond_destroy_func):
25683         Reimplemented on the basis of gl_linked_waitqueue_t.
25684         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
25685         gl_waitqueue_t.
25686         (gl_rwlock_t): Update.
25687         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
25688
25689 2008-10-17  Simon Josefsson  <simon@josefsson.org>
25690
25691         * modules/recvfrom (Depends-on): Add dependency on getpeername.
25692         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
25693
25694 2008-10-17  Jim Meyering  <meyering@redhat.com>
25695
25696         ignore-value: new module
25697         * modules/ignore-value: New file.
25698         * lib/ignore-value.h: New file.
25699         * MODULES.html.sh (Compiler warning management): New section,
25700         just for this module.  More to come.
25701
25702 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
25703
25704         open-safer.c: avoid 'signed and unsigned in conditional...' warning
25705         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
25706         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
25707
25708 2008-10-16  Jim Meyering  <meyering@redhat.com>
25709
25710         openat-die.c: avoid 'no previous prototype' warning
25711         * lib/openat-die.c: Include "openat.h".
25712         Reported by Reuben Thomas <rrt@sc3d.org>.
25713
25714 2008-10-16  Simon Josefsson  <simon@josefsson.org>
25715
25716         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
25717         * lib/netdb.in.h: Fix typo.
25718         Reported by Bruno Haible  <bruno@clisp.org>
25719
25720         * lib/netdb.in.h: Include sys/socket.h for platforms without
25721         netdb.h, to get structures like hostent on MinGW.
25722         * modules/netdb (Depends-on): Add sys_socket.
25723
25724 2008-10-15  Simon Josefsson  <simon@josefsson.org>
25725
25726         * modules/netdb, modules/netdb-tests: New file.
25727         * m4/netdb_h.m4: New file.
25728         * lib/netdb.in.h: Add, currently just an empty file pending
25729         definitions.
25730         * tests/test-netdb.c: New file.
25731         * doc/posix-headers/netdb.texi: Mention that we replace it if
25732         needed.
25733         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
25734         netdb.
25735
25736 2008-10-15  Simon Josefsson  <simon@josefsson.org>
25737
25738         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
25739         with code.
25740
25741 2008-10-13  Bruno Haible  <bruno@clisp.org>
25742
25743         * lib/glthread/cond.c (glthread_cond_wait_func,
25744         glthread_cond_timedwait_func): Add a comment.
25745
25746 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
25747
25748         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
25749         * tests/test-select.c: Likewise,
25750
25751 2008-10-13  Bruno Haible  <bruno@clisp.org>
25752
25753         * lib/glthread/cond.c (glthread_cond_wait_func,
25754         glthread_cond_timedwait_func): Fix variable name.
25755         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
25756
25757 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
25758
25759         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
25760         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
25761         struct sockaddr.sa_len.
25762         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
25763
25764 2008-10-13  Simon Josefsson  <simon@josefsson.org>
25765
25766         * build-aux/pmccabe2html: Add css and css_url parameters.
25767
25768 2008-10-12  Bruno Haible  <bruno@clisp.org>
25769
25770         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
25771         calling aclx_get.
25772         Reported by Rainer Tammer <tammer@tammer.net>.
25773
25774 2008-10-12  Bruno Haible  <bruno@clisp.org>
25775
25776         Use msvcrt aware primitives for creation/termination of Win32 threads.
25777         * lib/glthread/thread.c: Include <process.h>.
25778         (glthread_create_func): Use _beginthreadex instead of CreateThread.
25779         (wrapper_func): Update signature.
25780         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
25781
25782 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
25783             Bruno Haible  <bruno@clisp.org>
25784
25785         Provide a Win32 implementation of the 'cond' module.
25786         * lib/glthread/cond.h [USE_WIN32]: New implementation.
25787         * lib/glthread/cond.c (glthread_cond_init_func,
25788         glthread_cond_wait_func, glthread_cond_timedwait_func,
25789         glthread_cond_signal_func, glthread_cond_broadcast_func,
25790         glthread_cond_destroy_func) [USE_WIN32]: New functions.
25791         * modules/cond (Dependencies): Add gettimeofday.
25792
25793 2008-10-11  Bruno Haible  <bruno@clisp.org>
25794
25795         Make sleep work on older versions of mingw.
25796         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
25797         only whether it exists.
25798         * doc/posix-functions/sleep.texi: Mention the problem with older
25799         versions of mingw.
25800
25801 2008-10-11  Bruno Haible  <bruno@clisp.org>
25802
25803         New module 'shutdown'.
25804         * modules/shutdown: New file.
25805         * lib/sys_socket.in.h (shutdown): New declaration.
25806         * lib/winsock.c (shutdown): New function.
25807         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
25808         GNULIB_SHUTDOWN.
25809         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
25810         * doc/posix-functions/shutdown.texi: Document the new module.
25811
25812 2008-10-11  Jim Meyering  <meyering@redhat.com>
25813
25814         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
25815
25816 2008-10-11  Bruno Haible  <bruno@clisp.org>
25817
25818         New module 'fclose'.
25819         * modules/fclose: New file.
25820         * lib/stdio.in.h (fclose): New declaration.
25821         * lib/fclose.c: New file.
25822         * m4/fclose.m4: New file.
25823         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
25824         REPLACE_FCLOSE.
25825         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
25826         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
25827         REPLACE_FCLOSE.
25828         * modules/close (Depends-on): fclose.
25829         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
25830
25831 2008-10-11  Bruno Haible  <bruno@clisp.org>
25832
25833         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
25834         set errno and don't call _close.
25835
25836 2008-10-10  Bruno Haible  <bruno@clisp.org>
25837
25838         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
25839         ACL, not afterwards. Fixes test failure on Cygwin.
25840
25841 2008-10-09  Ben Pfaff  <blp@gnu.org>
25842
25843         * build-aux/announce-gen: Fix gnulib version related part of usage
25844         message.  Die with a useful error message if no tarballs are
25845         found.
25846
25847 2008-10-10  Jim Meyering  <meyering@redhat.com>
25848
25849         bootstrap: use git's --depth=N option only if it's supported
25850         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
25851         recognize the --depth option.  Reported by Pádraig Brady.
25852
25853 2008-10-09  Bruno Haible  <bruno@clisp.org>
25854
25855         New module 'ioctl'.
25856         * modules/ioctl: New file.
25857         * lib/sys_socket.in.h (ioctl): Remove declaration.
25858         * lib/winsock.c: Include <sys/ioctl.h>.
25859         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
25860         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
25861         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
25862         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
25863         * doc/posix-functions/ioctl.texi: Mention the new module.
25864
25865 2008-10-09  Bruno Haible  <bruno@clisp.org>
25866
25867         New module 'sys_ioctl'.
25868         * lib/sys_ioctl.in.h: New file.
25869         * m4/sys_ioctl_h.m4: New file.
25870         * modules/sys_ioctl: New file.
25871         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
25872
25873 2008-10-09  Bruno Haible  <bruno@clisp.org>
25874
25875         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
25876         * lib/winsock.c: Include <stdarg.h>.
25877         (rpl_ioctl): Change to second argument 'int' and then varargs.
25878
25879 2008-10-09  Bruno Haible  <bruno@clisp.org>
25880
25881         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
25882         when the sys_socket module is present and the system has <winsock2.h>.
25883
25884 2008-10-09  Bruno Haible  <bruno@clisp.org>
25885
25886         * doc/posix-functions/close.texi: Mention module 'close' instead of
25887         module 'sys_socket'.
25888
25889 2008-10-09  Bruno Haible  <bruno@clisp.org>
25890
25891         * doc/glibc-headers/sys_ioctl.texi: New file.
25892         * doc/gnulib.texi: Include it.
25893
25894 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25895             Bruno Haible  <bruno@clisp.org>
25896
25897         Combine the two replacements of 'close'.
25898         * lib/sys_socket.in.h (close): Define to a reminder to include
25899         <unistd.h>.
25900         (_gl_close_fd_maybe_socket): New declaration.
25901         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
25902         * lib/winsock.c (close): Remove undefinition.
25903         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
25904         needed for the gnulib module 'close'.
25905         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
25906         define to an error symbol or to a warning, if suitable.
25907         * lib/close.c: Include <sys/socket.h>.
25908         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
25909         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
25910         UNISTD_H_HAVE_WINSOCK2_H.
25911         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
25912         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25913         UNISTD_H_HAVE_WINSOCK2_H.
25914         * modules/sys_socket (Files): Add m4/unistd_h.m4.
25915         (configure.ac): Set a module indicator.
25916         (Makefile.am): Substitute GNULIB_CLOSE.
25917         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
25918         * modules/poll-tests (Depends-on): Add close.
25919         * modules/select-tests (Depends-on): Likewise.
25920
25921 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25922             Bruno Haible  <bruno@clisp.org>
25923
25924         New module 'close'.
25925         * modules/close: New file.
25926         * lib/unistd.in.h (close): Move declaration out of the
25927         FCHDIR_REPLACEMENT scope.
25928         (_gl_unregister_fd): New declaration.
25929         * lib/close.c: New file.
25930         * lib/fchdir.c (rpl_close): Remove function.
25931         * m4/close.m4: New file.
25932         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
25933         close.
25934         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
25935         REPLACE_CLOSE.
25936         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
25937         REPLACE_CLOSE.
25938         * modules/fchdir (Depends-on): Add close.
25939
25940 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25941             Bruno Haible  <bruno@clisp.org>
25942
25943         * lib/fcntl.in.h (open): Simplify conditionals.
25944         (_gl_register_fd): New declaration.
25945         * lib/fchdir.c (rpl_open): Remove function.
25946         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
25947         also.
25948         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
25949         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
25950         open.
25951
25952 2008-10-09  Jim Meyering  <meyering@redhat.com>
25953
25954         GNUmakefile: use the more name-space-friendly "_version"
25955         * top/GNUmakefile (_dummy): Update.
25956         (_version): Rename from "version".
25957
25958 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25959             Bruno Haible  <bruno@clisp.org>
25960
25961         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
25962         rpl_close.
25963         (_gl_register_fd): New function, extracted from rpl_open.
25964         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
25965         (rpl_open, rpl_opendir): Use _gl_register_fd.
25966
25967 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25968
25969         Fix organization of 'open' replacement.
25970         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
25971         (gl_FUNC_OPEN): Use it.
25972         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
25973
25974 2008-10-08  Bruno Haible  <bruno@clisp.org>
25975
25976         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
25977
25978 2008-10-08  Simon Josefsson  <simon@josefsson.org>
25979
25980         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
25981         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
25982         listen).
25983
25984 2008-10-08  Eric Blake  <ebb9@byu.net>
25985
25986         GNUmakefile: add 'make version' target
25987         * top/GNUmakefile (_curr-ver): Split version update rules...
25988         (version): ...into a target.
25989
25990 2008-10-07  Bruno Haible  <bruno@clisp.org>
25991
25992         Use a more portable replacement expression for -0.0L.
25993         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
25994         instead of -0.0L. Fix m4 quotation.
25995
25996         * tests/test-signbit.c: Include <float.h>.
25997         (minus_zero): New variable.
25998         (test_signbitl): Use minus_zero instead of -zero.
25999         * modules/signbit-tests (Depends-on): Add float.
26000
26001         * tests/test-ceill.c: Include <float.h>.
26002         (zero): Remove variable.
26003         (minus_zero): New variable.
26004         (main): Use minus_zero instead of -zero.
26005         * modules/ceill-tests (Depends-on): Add float.
26006
26007         * tests/test-floorl.c: Include <float.h>.
26008         (zero): Remove variable.
26009         (minus_zero): New variable.
26010         (main): Use minus_zero instead of -zero.
26011         * modules/floorl-tests (Depends-on): Add float.
26012
26013         * tests/test-roundl.c: Include <float.h>.
26014         (zero): Remove variable.
26015         (minus_zero): New variable.
26016         (main): Use minus_zero instead of -zero.
26017         * modules/roundl-tests (Depends-on): Add float.
26018
26019         * tests/test-truncl.c: Include <float.h>.
26020         (zero): Remove variable.
26021         (minus_zero): New variable.
26022         (main): Use minus_zero instead of -zero.
26023         * modules/truncl-tests (Depends-on): Add float.
26024
26025         * tests/test-frexpl.c (zero): Remove variable.
26026         (minus_zero): New variable.
26027         (main): Use minus_zero instead of -zero.
26028         * modules/frexpl-tests (Depends-on): Add float.
26029
26030         * tests/test-isnan.c (zerol): Remove variable.
26031         (minus_zerol): New variable.
26032         (test_long_double): Use minus_zerol instead of -zerol.
26033         * modules/isnan-tests (Depends-on): Add float.
26034
26035         * tests/test-isnanl.h (zero): Remove variable.
26036         (minus_zero): New variable.
26037         (main): Use minus_zero instead of -zero.
26038         * modules/isnanl-nolibm-tests (Depends-on): Add float.
26039         * modules/isnanl-tests (Depends-on): Add float.
26040
26041         * tests/test-ldexpl.c (zero): Remove variable.
26042         (minus_zero): New variable.
26043         (main): Use minus_zero instead of -zero.
26044         * modules/ldexpl-tests (Depends-on): Add float.
26045
26046         * tests/test-snprintf-posix.h (zerol): Remove variable.
26047         (minus_zerol): New variable.
26048         (test_function): Use minus_zerol instead of -zerol.
26049         * modules/snprintf-posix-tests (Depends-on): Add float.
26050         * modules/vsnprintf-posix-tests (Depends-on): Add float.
26051
26052         * tests/test-sprintf-posix.h (zerol): Remove variable.
26053         (minus_zerol): New variable.
26054         (test_function): Use minus_zerol instead of -zerol.
26055         * modules/sprintf-posix-tests (Depends-on): Add float.
26056         * modules/vsprintf-posix-tests (Depends-on): Add float.
26057
26058         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
26059         (minus_zerol): New variable.
26060         (test_function): Use minus_zerol instead of -zerol.
26061         * modules/vasnprintf-posix-tests (Depends-on): Add float.
26062
26063         * tests/test-vasprintf-posix.c (zerol): Remove variable.
26064         (minus_zerol): New variable.
26065         (test_function): Use minus_zerol instead of -zerol.
26066         * modules/vasprintf-posix-tests (Depends-on): Add float.
26067
26068 2008-10-07  Simon Josefsson  <simon@josefsson.org>
26069
26070         * MODULES.html.sh (Support for building documentation): Mention
26071         pmccabe2html.  Sort entries.
26072
26073         Add pmccabe2html module, from gnupdf.
26074         * build-aux/pmccabe.css: New file.
26075         * build-aux/pmccabe2html: New file.
26076         * m4/pmccabe2html.m4: New file.
26077         * modules/pmccabe2html: New file.
26078
26079 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
26080
26081         flock: new module
26082         * MODULES.html.sh: Add to list of modules.
26083         * lib/flock.c: flock implementation for Windows and Unix systems
26084         which have fcntl.
26085         * doc/glibc-functions/flock.texi: Update documentation.
26086         * lib/sys_file.in.h: <sys/file.h> header file.
26087         * m4/flock.m4: M4 macros.
26088         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
26089         * modules/flock: flock module.
26090         * modules/flock-tests: flock tests module.
26091         * modules/sys_file: sys/file.h module.
26092         * tests/test-flock.c: test suite for flock.
26093
26094 2008-10-06  Jim Meyering  <meyering@redhat.com>
26095
26096         bootstrap: check for LT_INIT more portably still ;-)
26097         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
26098         Spotted by Bruno Haible.
26099
26100 2008-10-06  Eric Blake  <ebb9@byu.net>
26101
26102         test-signbit: avoid tripping Irix cc bug on -0.0L
26103         * tests/test-signbit.c (minus_zerol): Delete, and replace with
26104         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
26105         entire testsuite consistent and avoids an Irix 6.2 bug.
26106
26107 2008-10-05  Bruno Haible  <bruno@clisp.org>
26108             Jim Meyering  <jim@meyering.net>
26109
26110         Add an option for ignoring EPIPE during close_stdout.
26111         * lib/closeout.h: Include <stdbool.h>.
26112         (close_stdout_set_ignore_EPIPE): New declaration.
26113         * lib/closeout.c: Include <stdbool.h>.
26114         (ignore_EPIPE): New variable.
26115         (close_stdout_set_ignore_EPIPE): New function.
26116         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
26117         * lib/close-stream.c (close_stream): Mention the possible EPIPE
26118         failure.
26119         * modules/closeout (Depends-on): Add stdbool.
26120
26121 2008-10-05  Bruno Haible  <bruno@clisp.org>
26122
26123         * modules/accept: New file.
26124         * modules/bind: New file.
26125         * modules/connect: New file.
26126         * modules/getpeername: New file.
26127         * modules/getsockname: New file.
26128         * modules/getsockopt: New file.
26129         * modules/listen: New file.
26130         * modules/recv: New file.
26131         * modules/recvfrom: New file.
26132         * modules/send: New file.
26133         * modules/sendto: New file.
26134         * modules/setsockopt: New file.
26135         * modules/socket: New file.
26136         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
26137         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
26138         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
26139         the particular module is requested. Add a link warning when the
26140         particular module is not requested.
26141         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
26142         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
26143         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
26144         the particular module is requested.
26145         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
26146         gl_SYS_SOCKET_H_DEFAULTS): New macros.
26147         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
26148         * modules/sys_socket (Depends-on): Add link-warning.
26149         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
26150         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
26151         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
26152         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
26153         GL_LINK_WARNING.
26154         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
26155         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
26156         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
26157         * doc/posix-functions/getpeername.texi: Mention the new module
26158         'getpeername'.
26159         * doc/posix-functions/getsockname.texi: Mention the new module
26160         'getsockname'.
26161         * doc/posix-functions/getsockopt.texi: Mention the new module
26162         'getsockopt'.
26163         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
26164         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
26165         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
26166         * doc/posix-functions/send.texi: Mention the new module 'send'.
26167         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
26168         * doc/posix-functions/setsockopt.texi: Mention the new module
26169         'setsockopt'.
26170         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
26171         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
26172         listen, connect, accept.
26173         * modules/select-tests (Depends-on): Likewise.
26174
26175 2008-10-05  Bruno Haible  <bruno@clisp.org>
26176
26177         * lib/winsock.c (strerror): Remove unused #undef.
26178         (rpl_close): Remove unused local variable.
26179
26180         * modules/sys_socket (Depends-on); Add errno.
26181
26182 2008-10-05  Bruno Haible  <bruno@clisp.org>
26183
26184         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
26185         (select): Add a link warning when the 'select' module is not used.
26186         * modules/sys_select (Depends-on): Add link-warning.
26187         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
26188         Suggested by Paolo Bonzini.
26189
26190 2008-10-05  Jim Meyering  <meyering@redhat.com>
26191
26192         bootstrap: check for LT_INIT more portably
26193         * build-aux/bootstrap: Avoid using grep -E, since it's not
26194         portable enough.  Suggestion from Bruno Haible.
26195
26196 2008-10-05  Bruno Haible  <bruno@clisp.org>
26197
26198         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
26199         as being fixed by gnulib.
26200
26201 2008-10-05  Bruno Haible  <bruno@clisp.org>
26202
26203         * modules/select-tests: New file, mostly copied from
26204         modules/sys_select-tests.
26205         * tests/test-select.c: New file, mostly copied from
26206         tests/test-sys_select.c.
26207         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
26208         * modules/sys_select-tests (Depends-on): Remove all dependencies.
26209         (Makefile.am): Remove test_sys_select_LDADD.
26210
26211         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
26212         to an undefined symbol, for an error message.
26213         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
26214         (gl_SYS_SELECT_H_DEFAULTS): New macro.
26215         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
26216         winsock-select.c here.
26217         * modules/sys_select (Files): Remove lib/winsock-select.c.
26218         (Depends-on): Remove alloca.
26219         (Makefile.am): Substitute GNULIB_SELECT.
26220         * modules/select: New file.
26221         * doc/posix-functions/select.texi: Update.
26222
26223 2008-10-05  Bruno Haible  <bruno@clisp.org>
26224
26225         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
26226         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
26227         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
26228         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
26229         getdtablesize.
26230         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
26231         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
26232
26233 2008-10-05  Bruno Haible  <bruno@clisp.org>
26234
26235         * modules/getdtablesize-tests: New file.
26236         * tests/test-getdtablesize.c: New file.
26237
26238         New module 'getdtablesize'.
26239         * lib/unistd.in.h (getdtablesize): New declaration.
26240         * lib/getdtablesize.c: New file.
26241         * m4/getdtablesize.m4: New file.
26242         * modules/getdtablesize: New file.
26243         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26244         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
26245         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
26246         HAVE_GETDTABLESIZE.
26247         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
26248
26249 2008-10-05  Bruno Haible  <bruno@clisp.org>
26250
26251         * modules/sched (Makefile.am): Fix typo.
26252         Reported by Simon Josefsson.
26253
26254 2008-10-05  Jim Meyering  <meyering@redhat.com>
26255
26256         bootstrap: check for LT_INIT, too
26257         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
26258         are deprecated.  Suggestion from Ralf Wildenhues.
26259
26260 2008-10-05  Bruno Haible  <bruno@clisp.org>
26261
26262         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
26263         overriding them by ours.
26264         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
26265
26266 2008-10-05  Jim Meyering  <meyering@redhat.com>
26267
26268         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
26269         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
26270         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
26271
26272 2008-10-04  Bruno Haible  <bruno@clisp.org>
26273
26274         * modules/dup2 (License): Change to LGPLv2+.
26275         * modules/sleep (License): Likewise.
26276         * modules/perror (License): Likewise.
26277         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
26278         Blake.
26279         * modules/signal (License): Likewise.
26280         * modules/sigprocmask (License): Likewise.
26281         * modules/raise (License): Change to LGPLv2+, with approval by Jim
26282         Meyering.
26283
26284 2008-10-04  Bruno Haible  <bruno@clisp.org>
26285
26286         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
26287         Reported by Rainer Tammer <tammer@tammer.net>.
26288
26289 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
26290             Bruno Haible  <bruno@clisp.org>
26291
26292         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
26293         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
26294         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
26295
26296 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
26297
26298         filevercmp: new module
26299         * lib/filevercmp.h: New function filevercmp comparing version strings.
26300         * lib/filevercmp.c: Implementation of filevercmp function.
26301         * modules/filevercmp: Module metadata.
26302         * tests/test-filevercmp.c: Unit test for new module.
26303         * modules/filevercmp-tests: Unit test metadata.
26304         * MODULES.html.sh: Add filevercmp module.
26305
26306 2008-10-03  Bruno Haible  <bruno@clisp.org>
26307
26308         * lib/c-ctype.h: Add comment.
26309         Reported by Jim Meyering.
26310
26311 2008-10-02  Bruno Haible  <bruno@clisp.org>
26312
26313         * modules/posix_spawn-internal (Depends-on): Add 'open'.
26314
26315 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
26316
26317         * build-aux/bootstrap: Allow renaming bootstrap, and change the
26318         name of bootstrap.conf accordingly.
26319
26320 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
26321
26322         * build-aux/bootstrap: Install git-merge-changelog configuration
26323         items into .gitconfig if needed.
26324
26325 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
26326
26327         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
26328         git repository, and initialize/update it accordingly.
26329
26330 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
26331
26332         * modules/fsync-tests: New file.
26333         * tests/test-fsync.c: New file.
26334
26335         New module 'fsync'.
26336         * lib/fsync.c: New file.
26337         * m4/fsync.m4: New file.
26338         * modules/fsync: New file.
26339         * lib/unistd.in.h (fsync): New declaration.
26340         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
26341         GNULIB_FSYNC and HAVE_FSYNC.
26342         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
26343         * MODULES.html.sh (posix_functions): Add fsync.
26344         * doc/posix-functions/fsync.texi: Mention the new module.
26345
26346 2008-10-02  Jim Meyering  <meyering@redhat.com>
26347
26348         fts.c: sync with similar code from coreutils' remove.c
26349         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
26350         Guard also with "#if defined __linux__", since for now at least,
26351         this code is Linux-kernel-specific.
26352
26353 2008-10-02  Jim Meyering  <meyering@redhat.com>
26354
26355         fts: bug fixes
26356         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
26357         Include <sys/vfs.h>, not <sys/statfs.h>.
26358
26359         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
26360         Include <sys/vfs.h>, not <sys/statfs.h>.
26361
26362 2008-10-01  Bruno Haible  <bruno@clisp.org>
26363
26364         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
26365         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
26366         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
26367         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
26368         * doc/posix-functions/posix_spawnp.texi: Likewise.
26369         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
26370         whether posix_spawn actually works.
26371         * m4/pipe.m4 (gl_PIPE): Likewise.
26372         * modules/execute (Files): Add m4/posix_spawn.m4.
26373         * modules/pipe (Files): Add m4/posix_spawn.m4.
26374         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
26375
26376 2008-10-01  Jim Meyering  <meyering@redhat.com>
26377
26378         remove trailing spaces
26379         * NEWS: Likewise.
26380         * lib/poll.c (poll): Likewise.
26381         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
26382         * lib/winsock.c (rpl_close): Likewise.
26383         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
26384         * modules/yield: Likewise.
26385         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
26386         * tests/test-sys_select.c (connect_to_socket): Likewise.
26387
26388         fts.c: adjust a new interface to be more generally useful
26389         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
26390         (fts_build): Adjust caller.
26391
26392 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26393
26394         * modules/cond-tests: New file.
26395         * tests/test-cond.c: New file.
26396
26397 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26398             Bruno Haible  <bruno@clisp.org>
26399
26400         * modules/cond (Dependencies): Add errno, time.
26401         * lib/glthread/cond.h: Include <time.h>.
26402         (gl_cond_define, gl_cond_define_initialized): Use the same definition
26403         across platforms.
26404
26405 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26406             Bruno Haible  <bruno@clisp.org>
26407
26408         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
26409
26410 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26411             Bruno Haible  <bruno@clisp.org>
26412
26413         * modules/tls-tests (Depends-on): Add thread, yield.
26414         (configure.ac): Remove all checks.
26415         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
26416         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
26417         gl_thread_self): Remove definitions. Include glthread/thread.h and
26418         glthread/yield.h instead.
26419         (test_tls): Pass an additional NULL argument to gl_thread_join.
26420
26421 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26422             Bruno Haible  <bruno@clisp.org>
26423
26424         * modules/lock-tests (Depends-on): Add thread, yield.
26425         (configure.ac): Remove all checks.
26426         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
26427         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
26428         gl_thread_self): Remove definitions. Include glthread/thread.h and
26429         glthread/yield.h instead.
26430         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
26431         additional NULL argument to gl_thread_join.
26432
26433 2008-09-30  Bruno Haible  <bruno@clisp.org>
26434
26435         Fix the Win32 implementation of the 'thread' module.
26436         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
26437         pointer type.
26438         (gl_thread_self): Invoke gl_thread_self_func.
26439         (gl_thread_self_func): New declaration.
26440         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
26441         (do_init_self_key, init_self_key): New functions.
26442         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
26443         Remove some fields.
26444         (running_threads, running_lock): Remove variables.
26445         (get_current_thread_handle): New function.
26446         (gl_thread_self_func, wrapper_func, glthread_create_func,
26447         glthread_join_func, gl_thread_exit_func): Largely rewritten and
26448         simplified.
26449
26450 2008-09-30  Bruno Haible  <bruno@clisp.org>
26451
26452         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
26453         files.
26454
26455 2008-09-30  Jim Meyering  <meyering@redhat.com>
26456
26457         fts.m4: correct the test for statfs.f_type
26458         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
26459         when checking for statfs.f_type.
26460
26461 2008-09-15  Simon Josefsson  <simon@josefsson.org>
26462
26463         tests: avoid some compiler warnings
26464         * tests/test-memchr.c (main): Pass NULL indirectly.
26465         * tests/test-getdate.c (main): Remove unused variable 'ret'.
26466
26467 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
26468
26469         getdate.y: disallow countable dayshifts like "4 yesterday ago"
26470         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
26471         exactly specified dayshifts.
26472         (dayshift): New rule.
26473         (rel): Add dayshift.
26474         (relative_time_table) [tomorrow, yesterday, today, now]:
26475         Use tDAY_SHIFT in place of tDAY_UNIT.
26476         * tests/test-getdate.c: Add tests for now-disallowed countable
26477         dayshifts, e.g., "4 yesterday ago".
26478
26479 2008-09-29  Bruno Haible  <bruno@clisp.org>
26480
26481         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
26482         * tests/test-posix_spawn1.in.sh: Renamed from
26483         tests/test-posix_spawn.in.sh.
26484         * tests/test-posix_spawn2.c: New file.
26485         * tests/test-posix_spawn2.in.sh: New file.
26486         * modules/posix_spawnp-tests (Files): Update.
26487         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
26488
26489 2008-09-29  Bruno Haible  <bruno@clisp.org>
26490
26491         Propagate effects of putenv/setenv/unsetenv to child processes.
26492         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
26493         * lib/pipe.c (create_pipe): Likewise.
26494
26495 2008-09-29  Bruno Haible  <bruno@clisp.org>
26496
26497         Enable use of shell scripts as executables in mingw.
26498         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
26499         run the program as a shell script.
26500         * lib/pipe.c (create_pipe): Likewise.
26501         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
26502         resulting array.
26503
26504 2008-09-29  Eric Blake  <ebb9@byu.net>
26505
26506         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
26507
26508 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
26509
26510         * doc/posix-functions/accept.texi: Update mingw problems.
26511         * doc/posix-functions/bind.texi: Update mingw problems.
26512         * doc/posix-functions/close.texi: Update mingw problems.
26513         * doc/posix-functions/connect.texi: Update mingw problems.
26514         * doc/posix-functions/getpeername.texi: Update mingw problems.
26515         * doc/posix-functions/getsockname.texi: Update mingw problems.
26516         * doc/posix-functions/getsockopt.texi: Update mingw problems.
26517         * doc/posix-functions/ioctl.texi: Update mingw problems.
26518         * doc/posix-functions/listen.texi: Update mingw problems.
26519         * doc/posix-functions/recv.texi: Update mingw problems.
26520         * doc/posix-functions/recvfrom.texi: Update mingw problems.
26521         * doc/posix-functions/select.texi: Update mingw problems.
26522         * doc/posix-functions/send.texi: Update mingw problems.
26523         * doc/posix-functions/sendto.texi: Update mingw problems.
26524         * doc/posix-functions/setsockopt.texi: Update mingw problems.
26525         * doc/posix-functions/socket.texi: Update mingw problems.
26526
26527 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
26528             Bruno Haible  <bruno@clisp.org>
26529
26530         * lib/sys_select.in.h: Include sys/time.h.
26531         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
26532         * modules/sys_select: Depend on sys_time.
26533         * tests/test-sys_select.c: Test that sys/select.h defines struct
26534         timeval fully.
26535
26536 2008-09-29  Bruno Haible  <bruno@clisp.org>
26537
26538         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
26539         * lib/sys_select.in.h: Likewise.
26540
26541 2008-09-29  Bruno Haible  <bruno@clisp.org>
26542
26543         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
26544
26545 2008-09-29  Bruno Haible  <bruno@clisp.org>
26546
26547         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
26548         Set LIBSOCKET instead of augmenting LIBS.
26549         * modules/sockets (Link): New section.
26550         * modules/sockets-tests (test_sockets_LDADD): New variable.
26551         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
26552         * modules/poll-tests (test_poll_LDADD): New variable.
26553         * NEWS: Document the change.
26554
26555 2008-09-29  Bruno Haible  <bruno@clisp.org>
26556
26557         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
26558         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
26559         ARPA_INET_H directly.
26560         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
26561
26562 2008-09-28  Bruno Haible  <bruno@clisp.org>
26563
26564         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
26565         from gl_HEADER_SYS_SOCKET.
26566         (gl_HEADER_SYS_SOCKET): Invoke it.
26567         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26568
26569 2008-09-28  Bruno Haible  <bruno@clisp.org>
26570
26571         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
26572         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
26573         Needed on OSF/1 4.0.
26574
26575 2008-09-28  Bruno Haible  <bruno@clisp.org>
26576
26577         Override open more carefully.
26578         * lib/open.c (orig_open): New function.
26579         (rpl_open): Use orig_open instead of open.
26580         * lib/fcntl.in.h: Add special invocation convention.
26581         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
26582         (gl_FUNC_OPEN): Invoke it.
26583
26584         Override freopen more carefully.
26585         * lib/freopen.c (orig_freopen): New function.
26586         (rpl_freopen): Use orig_freopen instead of freopen.
26587         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
26588         (gl_FUNC_FREOPEN): Invoke it.
26589
26590         Override fopen more carefully.
26591         * lib/fopen.c (orig_fopen): New function.
26592         (rpl_fopen): Use orig_fopen instead of fopen.
26593         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
26594         (gl_FUNC_FOPEN): Invoke it.
26595         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
26596
26597 2008-09-28  Bruno Haible  <bruno@clisp.org>
26598
26599         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
26600         SIGPIPE.
26601
26602 2008-09-28  Bruno Haible  <bruno@clisp.org>
26603
26604         * tests/test-sigaction.c (handler, main): Disable the check whether
26605         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
26606         glibc systems with LinuxThreads.
26607
26608 2008-09-28  Bruno Haible  <bruno@clisp.org>
26609
26610         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
26611
26612         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
26613         with AIX xlc.
26614         * lib/fcntl.in.h (open): Likewise.
26615         Reported by Rainer Tammer <tammer@tammer.net>.
26616
26617 2008-09-28  Bruno Haible  <bruno@clisp.org>
26618
26619         * modules/posix_spawnp-tests: New file.
26620         * tests/test-posix_spawn.c: New file.
26621         * tests/test-posix_spawn.in.sh: New file.
26622
26623         New module 'posix_spawnp'.
26624         * modules/posix_spawnp: New file.
26625         * lib/spawnp.c: New file, from GNU libc with modifications.
26626         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
26627
26628         New module 'posix_spawn'.
26629         * modules/posix_spawn: New file.
26630         * lib/spawn.c: New file, from GNU libc with modifications.
26631         * doc/posix-functions/posix_spawn.texi: Mention the new module.
26632
26633         New module 'posix_spawnattr_destroy'.
26634         * modules/posix_spawnattr_destroy: New file.
26635         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
26636         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
26637         module.
26638
26639         New module 'posix_spawnattr_setsigmask'.
26640         * modules/posix_spawnattr_setsigmask: New file.
26641         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
26642         modifications.
26643         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
26644         new module.
26645
26646         New module 'posix_spawnattr_getsigmask'.
26647         * modules/posix_spawnattr_getsigmask: New file.
26648         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
26649         modifications.
26650         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
26651         new module.
26652
26653         New module 'posix_spawnattr_setsigdefault'.
26654         * modules/posix_spawnattr_setsigdefault: New file.
26655         * lib/spawnattr_setdefault.c: New file, from GNU libc with
26656         modifications.
26657         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
26658         new module.
26659
26660         New module 'posix_spawnattr_getsigdefault'.
26661         * modules/posix_spawnattr_getsigdefault: New file.
26662         * lib/spawnattr_getdefault.c: New file, from GNU libc with
26663         modifications.
26664         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
26665         new module.
26666
26667         New module 'posix_spawnattr_setschedpolicy'.
26668         * modules/posix_spawnattr_setschedpolicy: New file.
26669         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
26670         modifications.
26671         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
26672         new module.
26673
26674         New module 'posix_spawnattr_getschedpolicy'.
26675         * modules/posix_spawnattr_getschedpolicy: New file.
26676         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
26677         modifications.
26678         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
26679         new module.
26680
26681         New module 'posix_spawnattr_setschedparam'.
26682         * modules/posix_spawnattr_setschedparam: New file.
26683         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
26684         modifications.
26685         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
26686         new module.
26687
26688         New module 'posix_spawnattr_getschedparam'.
26689         * modules/posix_spawnattr_getschedparam: New file.
26690         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
26691         modifications.
26692         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
26693         new module.
26694
26695         New module 'posix_spawnattr_setpgroup'.
26696         * modules/posix_spawnattr_setpgroup: New file.
26697         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
26698         modifications.
26699         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
26700         module.
26701
26702         New module 'posix_spawnattr_getpgroup'.
26703         * modules/posix_spawnattr_getpgroup: New file.
26704         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
26705         modifications.
26706         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
26707         module.
26708
26709         New module 'posix_spawnattr_setflags'.
26710         * modules/posix_spawnattr_setflags: New file.
26711         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
26712         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
26713         module.
26714
26715         New module 'posix_spawnattr_getflags'.
26716         * modules/posix_spawnattr_getflags: New file.
26717         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
26718         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
26719         module.
26720
26721         New module 'posix_spawnattr_init'.
26722         * modules/posix_spawnattr_init: New file.
26723         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
26724         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
26725         module.
26726
26727         New module 'posix_spawn_file_actions_destroy'.
26728         * modules/posix_spawn_file_actions_destroy: New file.
26729         * lib/spawn_faction_destroy.c: New file, from GNU libc with
26730         modifications.
26731         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
26732         the new module.
26733
26734         New module 'posix_spawn_file_actions_addopen'.
26735         * modules/posix_spawn_file_actions_addopen: New file.
26736         * lib/spawn_faction_addopen.c: New file, from GNU libc with
26737         modifications.
26738         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
26739         the new module.
26740
26741         New module 'posix_spawn_file_actions_adddup2'.
26742         * modules/posix_spawn_file_actions_adddup2: New file.
26743         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
26744         modifications.
26745         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
26746         the new module.
26747
26748         New module 'posix_spawn_file_actions_addclose'.
26749         * modules/posix_spawn_file_actions_addclose: New file.
26750         * lib/spawn_faction_addclose.c: New file, from GNU libc with
26751         modifications.
26752         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
26753         the new module.
26754
26755         New module 'posix_spawn_file_actions_init'.
26756         * modules/posix_spawn_file_actions_init: New file.
26757         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
26758         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
26759         new module.
26760
26761         New module 'posix_spawn-internal'.
26762         * modules/posix_spawn-internal: New file.
26763         * lib/spawn_int.h: New file, from GNU libc with modifications.
26764         * lib/spawni.c: New file, from GNU libc with modifications.
26765         * m4/posix_spawn.m4: New file.
26766
26767         New module 'spawn'.
26768         * modules/spawn: New file.
26769         * lib/spawn.in.h: New file, from GNU libc with modifications.
26770         * m4/spawn_h.m4: New file.
26771         * doc/posix-headers/spawn.texi: Mention the new module.
26772
26773 2008-09-28  Bruno Haible  <bruno@clisp.org>
26774
26775         * modules/sched-tests: New file.
26776         * tests/test-sched.c: New file.
26777
26778         New module 'sched'.
26779         * modules/sched: New file.
26780         * lib/sched.in.h: New file.
26781         * m4/sched_h.m4: New file.
26782         * doc/posix-headers/sched.texi: Mention the new module.
26783
26784 2008-09-27  Eric Blake  <ebb9@byu.net>
26785
26786         Fix previous patch, and tweak references to $0.
26787         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
26788         (func_version, func_gnulib_dir): Don't call this program
26789         gnulib-tool.
26790         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
26791         with using $0 in function.
26792         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
26793         (func_fatal_error): Reuse the name the user invoked us with.
26794
26795 2008-09-27  Bruno Haible  <bruno@clisp.org>
26796
26797         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
26798         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
26799         (gl_ICONV_H): Not here.
26800         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
26801         instead of assigning ICONV_H directly.
26802
26803         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
26804         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
26805         WCHAR_H directly.
26806
26807 2008-09-27  Bruno Haible  <bruno@clisp.org>
26808
26809         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
26810         * modules/arpa_inet (Depends-on): Add link-warning.
26811         (Makefile.am): Insert the definition of GL_LINK-WARNING.
26812         * modules/unistd (Makefile.am): Likewise.
26813
26814 2008-09-26  Bruno Haible  <bruno@clisp.org>
26815
26816         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
26817         variables.
26818         (func_version): Essentially copied from gnulib-tool.
26819         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
26820         func_readlink): Copied from gnulib-tool.
26821
26822 2008-09-26  Bruno Haible  <bruno@clisp.org>
26823
26824         * gnulib-tool (func_version): Change directory to $gnulib_dir before
26825         invoking git-version-gen.
26826
26827 2008-09-26  Bruno Haible  <bruno@clisp.org>
26828
26829         * posix-modules: Update to directory names changed on 2008-01-19.
26830         Remove commas in output before splitting into words. No more need to
26831         avoid 'ftruncate' since 2007-02-19.
26832
26833 2008-09-26  Bruno Haible  <bruno@clisp.org>
26834
26835         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
26836
26837 2008-09-26  Bruno Haible  <bruno@clisp.org>
26838
26839         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
26840         * modules/fwriteerror (Depends-on): Add errno.
26841
26842 2008-09-26  Bruno Haible  <bruno@clisp.org>
26843
26844         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
26845         * tests/test-vc-list-files-cvs.sh: Likewise.
26846
26847 2008-09-26  Bruno Haible  <bruno@clisp.org>
26848
26849         * doc/posix-headers/sys_resource.texi: Reorder items.
26850
26851 2008-09-26  Jim Meyering  <meyering@redhat.com>
26852
26853         fts: tweak inode comparison function
26854         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
26855         inode numbers, as documented.
26856
26857         fts: sort dirent entries on inode number before traversing
26858         This avoids a quadratic, seek-related performance penalty when
26859         operating on a directory containing many entries (measurable at 10k;
26860         3.5 hours at 2 million entries with a cold cache) on certain types
26861         of file systems, including ext3 and ext4, but not tmpfs.
26862         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
26863         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
26864         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
26865         (fs_handles_readdir_ordered_dirents_efficiently): New function.
26866         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
26867         (fts_build): Set the stat.st_ino member from D_INO.
26868         If it is likely to be useful, sort dirent entries on inode number.
26869
26870         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
26871         and the struct statfs.f_type member.
26872         * modules/fts (Depends-on): Add d-ino.
26873
26874 2008-09-26  Bruno Haible  <bruno@clisp.org>
26875
26876         * modules/sigpipe-die (Depends-on): Add sigpipe.
26877
26878         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
26879         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
26880         and GNULIB_STDIO_H_SIGPIPE are set.
26881         * lib/stdio-write.c: New file.
26882         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
26883         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
26884         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
26885         REPLACE_STDIO_WRITE_FUNCS.
26886         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
26887         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
26888         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
26889         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
26890         * modules/stdio (Files): Add lib/stdio-write.c.
26891         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
26892         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
26893         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
26894         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
26895         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
26896         REPLACE_FPRINTF_POSIX.
26897         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
26898         REPLACE_PRINTF_POSIX.
26899         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
26900         REPLACE_VFPRINTF_POSIX.
26901         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
26902         REPLACE_VPRINTF_POSIX.
26903         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
26904         SIGPIPE issue.
26905         * doc/posix-functions/fputc.texi: Likewise.
26906         * doc/posix-functions/fputs.texi: Likewise.
26907         * doc/posix-functions/fwrite.texi: Likewise.
26908         * doc/posix-functions/printf.texi: Likewise.
26909         * doc/posix-functions/putc.texi: Likewise.
26910         * doc/posix-functions/putchar.texi: Likewise.
26911         * doc/posix-functions/puts.texi: Likewise.
26912         * doc/posix-functions/vfprintf.texi: Likewise.
26913         * doc/posix-functions/vprintf.texi: Likewise.
26914
26915         * modules/safe-write (Depends-on): Add write.
26916
26917         * modules/sigpipe-tests: New file.
26918         * tests/test-sigpipe.c: New file.
26919         * tests/test-sigpipe.sh: New file.
26920
26921         * modules/write: New file.
26922         * lib/unistd.in.h: Include <sys/types.h>.
26923         (write): New declaration.
26924         * lib/write.c: New file.
26925         * m4/write.m4: New file.
26926         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26927         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
26928         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
26929         GNULIB_WRITE, REPLACE_WRITE.
26930         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
26931         and the SIGPIPE issue.
26932
26933         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
26934         (raise): New declaration.
26935         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
26936         (ext_signal): New function.
26937         (rpl_raise): New function.
26938         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
26939         GNULIB_SIGNAL_H_SIGPIPE.
26940         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
26941         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
26942
26943         * modules/sigpipe: New file.
26944         * m4/sigpipe.m4: New file.
26945
26946 2008-09-25  Derek Price  <derek@ximbiot.com>
26947             Bruno Haible  <bruno@clisp.org>
26948
26949         * gnulib-tool (func_import): Report all license incompatibilities, not
26950         just the first one.
26951
26952 2008-09-25  Bruno Haible  <bruno@clisp.org>
26953
26954         * gnulib-tool (func_import): When computing the edits, consider not
26955         only the Makefile.ams that exist but also those that will be generated.
26956
26957 2008-09-25  Simon Josefsson  <simon@josefsson.org>
26958
26959         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
26960         fixes gnulib-tool --test warning about duplicate dependency.
26961
26962 2008-09-25  Bruno Haible  <bruno@clisp.org>
26963
26964         * gnulib-tool: Don't ask the user to perform edits in the generated
26965         Makefile.ams.
26966         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
26967         apply to the Makefile.am being generated.
26968         (func_emit_tests_Makefile_am): Execute edits that apply to the
26969         Makefile.am being generated.
26970         (func_import): Setup list of Makefile.am edits before emitting the
26971         Makefile.ams, not at the end.
26972         (func_create_testdir): Update.
26973         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
26974
26975 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26976
26977         * gnulib-tool (func_import): Store the --tests-base option in the
26978         comment in gnulib-cache.m4.
26979
26980 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
26981
26982         * NEWS: Document increased portability that sys_select now provides.
26983
26984         * lib/sys_select.in.h: Install select wrapper.
26985         * lib/sys_socket.in.h: Use more descriptive name when there is no
26986         select wrapper.
26987         * lib/winsock-select.c: New.
26988         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
26989         Require gl_HEADER_SYS_SOCKET.
26990         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
26991         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
26992         * tests/test-sys_select.c: Add functional tests.
26993
26994 2008-09-24  Eric Blake  <ebb9@byu.net>
26995
26996         open, fopen: close fd leak in last patch
26997         * lib/open.c (rpl_open): Close fd before returning error.
26998         * lib/fopen.c (rpl_fopen): Close fd before returning error.
26999         * doc/posix-functions/open.texi (open): Document that Irix also
27000         has the bug.
27001         * doc/posix-functions/fopen.texi (fopen): Likewise.
27002         Reported by Paolo Bonzini.
27003
27004 2008-09-24  Bruno Haible  <bruno@clisp.org>
27005
27006         Ensure that a filename ending in a slash cannot be used to access a
27007         non-directory.
27008         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
27009         to check whether it's really a directory.
27010         * lib/fopen.c: Include fcntl.h, unistd.h.
27011         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
27012         and fdopen().
27013         * modules/fopen (Depends-on): Add unistd.
27014         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
27015         * tests/test-fopen.c (main): Likewise.
27016         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
27017         * doc/posix-functions/fopen.texi: Likewise.
27018         Reported by Eric Blake.
27019
27020 2008-09-23  Eric Blake  <ebb9@byu.net>
27021
27022         c-stack: avoid compiler optimizations when provoking overflow
27023         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
27024         recursion harder to optimize, to ensure a stack overflow occurs.
27025         * tests/test-c-stack.c (recurse): Likewise.
27026         Borrowed from libsigsegv.
27027
27028         c-stack: work around Irix sigaltstack bug
27029         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
27030         whether sigaltstack uses wrong end of stack_t (copied in part from
27031         libsigsegv).
27032         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
27033         Irix bug, without requiring an over-allocation.
27034         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
27035         bug.
27036
27037         fopen: document mingw bug on directories
27038         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
27039         not allowing a stream visiting a directory, even though reading
27040         from such a stream is not portable.
27041
27042 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
27043
27044         * lib/poll.c: Rewrite.
27045         * modules/poll: Depend on alloca.
27046
27047 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
27048
27049         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
27050         instead define prototypes for a full set of wrappers.  Ensure
27051         that Cygwin does not use the compatibility code, which is only
27052         for MinGW.
27053         * lib/winsock.c: New.
27054         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
27055         * modules/sys_socket: Add lib/winsock.c.
27056
27057         * modules/poll-tests: Add errno and perror.
27058         * tests/test-poll.c: Use ioctl, not ioctlsocket.
27059
27060 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
27061
27062         * tests/test-poll.c: Downgrade minimum needed Winsock version.
27063
27064 2008-09-23  Bruno Haible  <bruno@clisp.org>
27065
27066         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
27067         * doc/glibc-functions/*: Likewise.
27068
27069 2008-09-23  Simon Josefsson  <simon@josefsson.org>
27070
27071         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
27072         success.
27073
27074 2008-09-22  Eric Blake  <ebb9@byu.net>
27075             Bruno Haible  <bruno@clisp.org>
27076
27077         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
27078         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
27079         supply %A but mishandle pseudo-NaN.
27080         Reported by Simon Josefsson.
27081
27082 2008-09-21  Bruno Haible  <bruno@clisp.org>
27083
27084         * tests/test-lock.c (main): Tweak skip message.
27085         * tests/test-tls.c (main): Likewise.
27086
27087 2008-09-21  Bruno Haible  <bruno@clisp.org>
27088
27089         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
27090         whether 'struct sigaction' has sa_sigaction here...
27091         (gl_PREREQ_SIG_HANDLER_H): ... not here.
27092         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
27093
27094 2008-09-21  Bruno Haible  <bruno@clisp.org>
27095
27096         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
27097         section.
27098         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
27099         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
27100         the new section.
27101         (Support for obsolete systems lacking POSIX:2001): New section.
27102         (String handling <string.h>): Move strdup to the new section.
27103         Suggested by Simon Josefsson and Paolo Bonzini.
27104
27105 2008-09-21  Bruno Haible  <bruno@clisp.org>
27106
27107         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
27108         exponents in %e and %g results on 'long double'. Needed for mingw's
27109         improved *printf functions.
27110         * tests/test-vasprintf-posix.c (test_function): Likewise.
27111         * tests/test-snprintf-posix.h (test_function): Likewise.
27112         * tests/test-sprintf-posix.h (test_function): Likewise.
27113         Reported by Eric Blake.
27114
27115 2008-09-21  Bruno Haible  <bruno@clisp.org>
27116
27117         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
27118         * tests/test-sprintf-posix.h (test_function): Likewise.
27119
27120 2008-09-21  Bruno Haible  <bruno@clisp.org>
27121
27122         * modules/getpass (Depends-on): Add strdup-posix.
27123
27124         New module 'strdup-posix'.
27125         * modules/strdup-posix: New file.
27126         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
27127         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
27128         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27129         REPLACE_STRDUP.
27130         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
27131         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
27132         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27133         strdup-posix.
27134
27135         * modules/strdup (Depends-on): Remove malloc-posix.
27136
27137 2008-09-20  Bruno Haible  <bruno@clisp.org>
27138
27139         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
27140         Wildenhues.
27141
27142 2008-09-20  Bruno Haible  <bruno@clisp.org>
27143
27144         Ensure that wint_t gets defined on IRIX 5.3.
27145         * lib/wchar.in.h (wint_t): Define if not defined by the system.
27146         * lib/wctype.in.h (wint_t): Likewise.
27147         (__wctype_wint_t): Remove type.
27148         (isw*): Use wint_t instead of __wctype_wint_t.
27149         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
27150         * modules/wchar (Files): Add m4/wint_t.m4.
27151         (Makefile.am): Substitute HAVE_WINT_T.
27152         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
27153         * tests/test-wctype.c: Check that wint_t is defined.
27154         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
27155         * doc/posix-headers/wctype.texi: Likewise.
27156         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27157
27158 2008-09-18  Bruno Haible  <bruno@clisp.org>
27159
27160         * gnulib-tool (func_exit): Update comment.
27161
27162 2008-09-18  Simon Josefsson  <simon@josefsson.org>
27163
27164         * modules/getaddrinfo (Depends-on): Remove strdup, this module
27165         assumes strdup exists and does not depend on strdup to return
27166         ENOMEM on out of memory conditions.
27167
27168 2008-09-18  Bruno Haible  <bruno@clisp.org>
27169
27170         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
27171         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
27172         digits for the exponent.
27173
27174 2008-09-18  Jim Meyering  <meyering@redhat.com>
27175             Bruno Haible  <bruno@clisp.org>
27176
27177         * lib/vasnprintf.c (decimal_point_char): Define also if
27178         NEED_PRINTF_INFINITE_LONG_DOUBLE.
27179
27180 2008-09-16  Bruno Haible  <bruno@clisp.org>
27181         and Eric Blake  <ebb9@byu.net>
27182
27183         vasnprintf: support Irix 5.3
27184         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
27185         that mishandle long double infinity.
27186         Reported by Tom G. Christensen.
27187
27188 2008-09-16  Bruno Haible  <bruno@clisp.org>
27189
27190         * doc/glibc-functions/scandir.texi: Mention the function is missing on
27191         Solaris 9.
27192         * doc/glibc-functions/alphasort.texi: Likewise.
27193         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
27194
27195 2008-09-16  Jim Meyering  <meyering@redhat.com>
27196
27197         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
27198         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
27199         a umask modification leak out of a subshell.  Otherwise, the
27200         opensolaris /bin/sh would be accepted and thus cause unwarranted
27201         failures in the coreutils test suite.
27202
27203 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
27204
27205         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
27206         to succeed.
27207
27208 2008-09-16  Jim Meyering  <meyering@redhat.com>
27209
27210         avoid spurious test failure when library is built without ACL support
27211         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
27212         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
27213         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
27214         * tests/test-copy-acl.sh: Likewise.
27215
27216 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27217
27218         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
27219         based on character occurrence counts.
27220
27221 2008-09-15  Eric Blake  <ebb9@byu.net>
27222
27223         tests: avoid some compiler warnings
27224         * tests/test-memchr.c (main): Pass NULL indirectly.
27225         * tests/test-closein.c (main): Avoid unused variable.
27226
27227 2008-09-15  Bruno Haible  <bruno@clisp.org>
27228
27229         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
27230         are missing on OpenBSD 4.0 individually.
27231         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27232
27233 2008-09-15  Bruno Haible  <bruno@clisp.org>
27234
27235         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
27236         * doc/posix-functions/strerror.texi: Mention also Cygwin.
27237         * doc/posix-functions/perror.texi: Likewise.
27238         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
27239         is missing.
27240         Reported by Eric Blake.
27241
27242         * lib/errno.in.h: Use replacement values >= 2000.
27243         Reported by Eric Blake.
27244
27245 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27246
27247         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
27248         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
27249         limit.
27250         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
27251         compareseq was aborted.
27252
27253 2008-09-14  Bruno Haible  <bruno@clisp.org>
27254
27255         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
27256         yvec_edit_count.
27257         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
27258         (fstrcmp_bounded): Simplify result computation accordingly.
27259
27260 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27261
27262         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
27263         (fstrcmp): Define in terms of fstrcmp_bounded.
27264         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
27265         lower_bound argument.
27266         Return quickly if the result is certainly < lower_bound.
27267         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
27268
27269 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27270
27271         * lib/diffseq.h (EARLY_ABORT): New macro.
27272         (compareseq): Change return type to bool. Return true when EARLY_ABORT
27273         evaluates to true.
27274
27275 2008-09-14  Bruno Haible  <bruno@clisp.org>
27276
27277         * modules/perror-tests: New file.
27278         * tests/test-perror.sh: New file.
27279         * tests/test-perror.c: New file.
27280
27281         New module 'perror'.
27282         * lib/stdio.in.h (perror): New declaration.
27283         * lib/perror.c: New file.
27284         * m4/perror.m4: New file.
27285         * modules/perror: New file.
27286         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
27287         * doc/posix-functions/perror.texi: Mention the perror module.
27288         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
27289         REPLACE_PERROR.
27290         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
27291         REPLACE_PERROR.
27292
27293 2008-09-14  Bruno Haible  <bruno@clisp.org>
27294
27295         * modules/stdio (Makefile.am): Reorder to match the order in
27296         lib/stdio.in.h.
27297         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
27298
27299 2008-09-13  Bruno Haible  <bruno@clisp.org>
27300
27301         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
27302
27303 2008-09-13  Bruno Haible  <bruno@clisp.org>
27304
27305         Extend strerror to cover the added errno values.
27306         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
27307         (rpl_strerror): Provide error messages for the added errno values and
27308         for the WSA* values.
27309         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
27310         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
27311         strerror.
27312         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
27313         * modules/strerror (Depends-on): Add errno.
27314         * doc/posix-functions/strerror.texi: Document the change.
27315         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
27316         and EOVERFLOW.
27317
27318 2008-09-13  Bruno Haible  <bruno@clisp.org>
27319
27320         * modules/EOVERFLOW: Remove file.
27321         * m4/eoverflow.m4: Remove file.
27322         * modules/EOVERFLOW-tests: Remove file.
27323         * tests/test-EOVERFLOW.c: Remove file.
27324         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
27325         * modules/ftell (Depends-on): Likewise.
27326         * modules/getdelim (Depends-on): Likewise.
27327         * modules/getugroups (Depends-on): Likewise.
27328         * modules/poll (Depends-on): Likewise.
27329         * modules/snprintf (Depends-on): Likewise.
27330         * modules/sprintf-posix (Depends-on): Likewise.
27331         * modules/vasnprintf (Depends-on): Likewise.
27332         * modules/vasprintf (Depends-on): Likewise.
27333         * modules/vfprintf-posix (Depends-on): Likewise.
27334         * modules/vsnprintf (Depends-on): Likewise.
27335         * modules/vsprintf-posix (Depends-on): Likewise.
27336         * modules/xvasprintf (Depends-on): Likewise.
27337         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27338         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
27339         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
27340         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
27341         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27342         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
27343         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
27344         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
27345         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27346         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
27347         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
27348         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
27349         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27350         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
27351         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
27352         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
27353         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27354         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
27355         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
27356         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
27357         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27358         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
27359         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
27360         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
27361         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
27362         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27363         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
27364         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
27365         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
27366         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
27367         * MODULES.html.sh: Remove EOVERFLOW.
27368         * NEWS: Mention the change.
27369
27370 2008-09-13  Bruno Haible  <bruno@clisp.org>
27371
27372         * modules/errno-tests: New file.
27373         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
27374
27375         * lib/errno.in.h: New file.
27376         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
27377         * modules/errno: New file.
27378         * doc/posix-headers/errno.texi: Update documentation.
27379         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
27380
27381 2008-09-13  Bruno Haible  <bruno@clisp.org>
27382
27383         * tests/test-poll.c: Use #if for native Windows, rather than testing
27384         __MSVCRT__.
27385
27386 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27387             Bruno Haible  <bruno@clisp.org>
27388
27389         * lib/glob.c: Don't include <pwd.h> on native Windows.
27390         (WINDOWS32): New macro.
27391         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
27392
27393 2008-09-13  Bruno Haible  <bruno@clisp.org>
27394
27395         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
27396         (ETIMEDOUT): Remove macro.
27397         (glthread_cond_timedwait_multithreaded): New declaration.
27398         (glthread_cond_timedwait): Use it.
27399         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
27400         (glthread_cond_timedwait_multithreaded): New function.
27401
27402 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
27403
27404         * modules/poll-tests: Do not check for io.h.
27405         * tests/test-poll.c: Check for __MSVCRT__ instead.
27406
27407 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
27408
27409         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
27410         * modules/poll-tests: Add inet_pton, stdbool, sockets.
27411         * tests/test-poll.c: Use them.  Use _pipe on Windows.
27412
27413 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
27414
27415         * modules/poll-tests: New.
27416         * tests/test-poll.c: New.
27417
27418 2008-09-12  Eric Blake  <ebb9@byu.net>
27419
27420         frexp: test for NetBSD failure on -0.0
27421         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
27422         not all, bugs from NetBSD 3.0 have been fixed.
27423         * doc/posix-functions/frexp.texi (frexp): Document bug.
27424         Reported by Thomas Klausner.
27425
27426         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
27427         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
27428         literal -0.0.
27429         Reported by Jonathan C. Patschke <jp@centtech.com>.
27430
27431 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27432
27433         * lib/glthread/cond.h: Use dummy implementation also if
27434         USE_WIN32_THREADS.
27435
27436 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27437
27438         * modules/fnmatch-posix (License): Change to LGPLv2+.
27439         * modules/fnmatch-gnu (License): Likewise.
27440
27441 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27442
27443         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
27444
27445 2008-09-11  Jim Meyering  <meyering@redhat.com>
27446
27447         * users.txt: Add gtk-vnc.
27448
27449 2008-09-08  Simon Josefsson  <simon@josefsson.org>
27450
27451         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
27452         rotate amounts.
27453
27454         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
27455         required for 16-bit and 8-bit rotates.
27456         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
27457         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
27458         UINT8_MAX instead of hard-coded constants.
27459         Suggested by Paul Eggert.
27460
27461 2008-09-07  Bruno Haible  <bruno@clisp.org>
27462
27463         * tests/test-striconveh.c (main): Check behaviour when converting from
27464         UTF-7.
27465
27466         Make striconveh work better with stateful encodings.
27467         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
27468         that iconv does not increment the inptr when returning -1/EINVAL.
27469
27470 2008-09-07  Bruno Haible  <bruno@clisp.org>
27471
27472         * build-aux/config.rpath: Update according to libtool-2.2.6.
27473         * build-aux/config.libpath: Likewise.
27474
27475 2008-09-06  Bruno Haible  <bruno@clisp.org>
27476
27477         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
27478         * lib/freadptr.c (freadptr): Likewise.
27479         * lib/freadseek.c (freadptrinc): Likewise.
27480         Reported by Simon Josefsson.
27481
27482 2008-09-06  Bruno Haible  <bruno@clisp.org>
27483
27484         * modules/freadptr (License): Change to LGPLv2+.
27485         * modules/freadseek (License): Likewise.
27486         Suggested by Eric Blake.
27487
27488         * modules/memchr2 (License): Change to LGPLv2+.
27489         Approved by Eric Blake.
27490
27491 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27492             Bruno Haible  <bruno@clisp.org>
27493
27494         Make gnulib-tool work with native 'sed' on AIX.
27495         * gnulib-tool (sed_noop): New variable.
27496         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
27497         func_add_or_update, func_create_testdir): Use it to initialize sed
27498         script variables.
27499         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27500
27501 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
27502             Bruno Haible  <bruno@clisp.org>
27503
27504         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
27505         also works after #include directives.
27506
27507 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
27508
27509         getdate.y: reject an out-of-range timezone value
27510         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
27511         the range [-24...+24].  When specified with only one or two digits,
27512         * tests/test-getdate.c: Tests for the fix.
27513         * doc/getdate.texi: Document this change.
27514
27515 2008-09-03  Bruno Haible  <bruno@clisp.org>
27516
27517         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
27518
27519 2008-09-02  Simon Josefsson  <simon@josefsson.org>
27520
27521         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
27522         <bruce.korb@gmail.com> with ideas from Ben Pfaff
27523         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
27524         Blake <ebb9@byu.net>.
27525
27526         * tests/test-bitrotate.c: Add more test vectors.
27527
27528 2008-09-02  Eric Blake  <ebb9@byu.net>
27529
27530         vasnprintf-posix: handle large precision via %.*d
27531         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
27532         when handling it ourselves.
27533         * tests/test-vasnprintf-posix.c (test_function): Add test.
27534         * tests/test-snprintf-posix.h (test_function): Likewise.
27535         * tests/test-sprintf-posix.h (test_function): Likewise.
27536         * tests/test-vasprintf-posix.c (test_function): Likewise.
27537         Reported by Alain Guibert.
27538
27539 2008-09-01  Eric Blake  <ebb9@byu.net>
27540
27541         c-stack: make configure-time check more robust
27542         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
27543         successful sigaction call.
27544         Reported by Tom G. Christensen.
27545
27546 2008-09-01  Bruno Haible  <bruno@clisp.org>
27547
27548         New module 'findprog-lgpl'.
27549         * modules/findprog-lgpl: New file.
27550         * lib/findprog-lgpl.c: New file.
27551         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
27552         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
27553         to decide whether to use strdup or xstrdup, concatenated_filename or
27554         xconcatenated_filename.
27555
27556 2008-09-01  Bruno Haible  <bruno@clisp.org>
27557
27558         Split module 'concat-filename' into 'concat-filename' (LGPL) and
27559         'xconcat-filename' (GPL).
27560         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
27561         (License): Change to LGPLv2+.
27562         * modules/xconcat-filename: New file.
27563         * lib/concat-filename.h (concatenated_filename): Change specification.
27564         (xconcatenated_filename): New declaration.
27565         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
27566         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
27567         memory situations.
27568         * lib/xconcat-filename.c: New file.
27569         * NEWS: Mention the change.
27570         * lib/findprog.c: Include concat-filename.h, not filename.h.
27571         (find_in_path): Use xconcatenated_filename instead of
27572         concatenated_filename.
27573         * lib/javacomp.c: Include concat-filename.h, not filename.h.
27574         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
27575         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
27576         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
27577         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
27578         instead of concatenated_filename.
27579         * lib/javaexec.c: Include concat-filename.h, not filename.h.
27580         (execute_java_class): Use xconcatenated_filename instead of
27581         concatenated_filename.
27582         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
27583         * modules/javacomp (Depends-on): Likewise.
27584         * modules/javaexec (Depends-on): Likewise.
27585
27586 2008-09-01  Bruno Haible  <bruno@clisp.org>
27587
27588         Split module 'filename' into 'filename' and 'concat-filename'.
27589         * modules/filename: Keep only lib/filename.h.
27590         (License): Change to LGPLv2+.
27591         * modules/concat-filename: New file, extracted from modules/filename.
27592         * lib/filename.h (concatenated_filename): Remove declaration.
27593         * lib/concat-filename.h: New file, extracted from lib/filename.h.
27594         * lib/concat-filename.c: Include concat-filename.h.
27595         * NEWS: Mention the change.
27596
27597 2008-09-01  Simon Josefsson  <simon@josefsson.org>
27598
27599         * lib/bitrotate.h (rotl8, rotr8): Add.
27600
27601         * modules/bitrotate (configure.ac): Need
27602         AC_REQUIRE([AC_C_INLINE]).
27603         (Description): Mention stdint.h.  Reported by Bruno Haible
27604         <bruno@clisp.org>.
27605
27606         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
27607         Paolo Bonzini <bonzini@gnu.org>.
27608
27609 2008-08-31  Bruno Haible  <bruno@clisp.org>
27610
27611         Assume Solaris specific bi-arch conventions on Solaris systems.
27612         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
27613         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
27614         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
27615         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
27616         like acl_libdirstem.
27617         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
27618         acl_libdirstem.
27619         * NEWS: Mention the change.
27620         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
27621
27622 2008-08-31  Jim Meyering  <meyering@redhat.com>
27623
27624         * lib/strftime.h: Add comments describing the two added arguments.
27625
27626         remove duplicate #include directives
27627         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
27628         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
27629
27630 2008-08-31  Bruno Haible  <bruno@clisp.org>
27631
27632         New module 'sigpipe-die'.
27633         * modules/sigpipe-die: New file.
27634         * lib/sigpipe-die.h: New file.
27635         * lib/sigpipe-die.c: New file.
27636         * MODULES.html.sh (Signal handling): Add sigpipe-die.
27637
27638 2008-08-31  Bruno Haible  <bruno@clisp.org>
27639
27640         Don't override previously installed signal handlers.
27641         * lib/fatal-signal.c (saved_sigactions): New variable.
27642         (uninstall_handlers): Reset the signal to the saved handler, not
27643         to SIG_DFL (except when ignored).
27644         (install_handlers): Save the previous handlers.
27645
27646 2008-08-30  Bruno Haible  <bruno@clisp.org>
27647
27648         * gnulib-tool (func_reset_sigpipe): New function.
27649         (func_get_automake_snippet, func_modules_transitive_closure,
27650         func_import): Invoke it before a join command that reads from stdin,
27651         to avoid "echo: write error: Broken pipe" error messages on stderr.
27652         Reported by Sam Steingold <sds@gnu.org>.
27653
27654 2008-08-30  Bruno Haible  <bruno@clisp.org>
27655
27656         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
27657         Code copied from m4/open.m4.
27658         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
27659         access and the filename ends in a slash. Code copied from lib/open.c.
27660         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
27661         * tests/test-fopen.c (main): Check against bug with trailing slash.
27662
27663 2008-08-29  Bruno Haible  <bruno@clisp.org>
27664
27665         Avoid some "gcc -pedantic" warnings.
27666         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
27667         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
27668         * lib/dirent.in.h: Likewise.
27669         * lib/fcntl.in.h: Likewise.
27670         * lib/float.in.h: Likewise.
27671         * lib/iconv.in.h: Likewise.
27672         * lib/inttypes.in.h: Likewise.
27673         * lib/locale.in.h: Likewise.
27674         * lib/math.in.h: Likewise.
27675         * lib/netinet_in.in.h: Likewise.
27676         * lib/search.in.h: Likewise.
27677         * lib/signal.in.h: Likewise.
27678         * lib/stdarg.in.h: Likewise.
27679         * lib/stdint.in.h: Likewise.
27680         * lib/stdio.in.h: Likewise.
27681         * lib/stdlib.in.h: Likewise.
27682         * lib/string.in.h: Likewise.
27683         * lib/strings.in.h: Likewise.
27684         * lib/sys_select.in.h: Likewise.
27685         * lib/sys_socket.in.h: Likewise.
27686         * lib/sys_stat.in.h: Likewise.
27687         * lib/sys_time.in.h: Likewise.
27688         * lib/sysexits.in.h: Likewise.
27689         * lib/time.in.h: Likewise.
27690         * lib/unistd.in.h: Likewise.
27691         * lib/wchar.in.h: Likewise.
27692         * lib/wctype.in.h: Likewise.
27693         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
27694         * modules/fchdir (Makefile.am): Likewise.
27695         * modules/fcntl (Makefile.am): Likewise.
27696         * modules/float (Makefile.am): Likewise.
27697         * modules/iconv_open (Makefile.am): Likewise.
27698         * modules/inttypes (Makefile.am): Likewise.
27699         * modules/locale (Makefile.am): Likewise.
27700         * modules/math (Makefile.am): Likewise.
27701         * modules/netinet_in (Makefile.am): Likewise.
27702         * modules/search (Makefile.am): Likewise.
27703         * modules/signal (Makefile.am): Likewise.
27704         * modules/stdarg (Makefile.am): Likewise.
27705         * modules/stdint (Makefile.am): Likewise.
27706         * modules/stdio (Makefile.am): Likewise.
27707         * modules/stdlib (Makefile.am): Likewise.
27708         * modules/string (Makefile.am): Likewise.
27709         * modules/strings (Makefile.am): Likewise.
27710         * modules/sys_select (Makefile.am): Likewise.
27711         * modules/sys_socket (Makefile.am): Likewise.
27712         * modules/sys_stat (Makefile.am): Likewise.
27713         * modules/sys_time (Makefile.am): Likewise.
27714         * modules/sysexits (Makefile.am): Likewise.
27715         * modules/time (Makefile.am): Likewise.
27716         * modules/unistd (Makefile.am): Likewise.
27717         * modules/wchar (Makefile.am): Likewise.
27718         * modules/wctype (Makefile.am): Likewise.
27719         Reported by Reuben Thomas <rrt@sc3d.org>.
27720
27721 2008-08-29  Bruno Haible  <bruno@clisp.org>
27722
27723         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
27724         any more.
27725
27726 2008-08-29  Simon Josefsson  <simon@josefsson.org>
27727
27728         * MODULES.html.sh (Misc): Add bitrotate.
27729
27730         * modules/bitrotate: New file.
27731
27732         * lib/bitrotate.h: New file.
27733
27734         * modules/bitrotate-tests: New file.
27735
27736         * tests/test-bitrotate.c: New file.
27737
27738         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
27739         on the bitrotate module.
27740
27741         * lib/arctwo.c: Use new bitrotate module.
27742
27743 2008-08-29  Jim Meyering  <meyering@redhat.com>
27744
27745         bootstrap: merge changes from coreutils
27746         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
27747         of copied files.  Remove a kludge, now that this is fixed.
27748         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
27749         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
27750         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
27751
27752 2008-08-29  Bruno Haible  <bruno@clisp.org>
27753
27754         * MODULES.html.sh: Remove --cvs-urls option.
27755
27756 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
27757
27758         maint.mk: adjust to file name change
27759         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
27760
27761 2008-08-28  Jim Meyering  <meyering@redhat.com>
27762
27763         * modules/getndelim2 (License): Relicense to LGPLv2+.
27764         Approved by Richard Stallman for the version of 1995, and by
27765         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
27766
27767 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
27768
27769         * lib/getdelim.c (flockfile, funlockfile): Make all of them
27770         dummy if one is not available.  Do not touch them if
27771         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
27772         (getc_maybe_unlocked): New.
27773         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
27774
27775 2008-08-26  Eric Blake  <ebb9@byu.net>
27776
27777         doc/INSTALL: resync from autoconf
27778         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
27779         (INSTALL_PRELUDE): Delete; this is done more efficiently by
27780         moving...
27781         * install.texi [!autoconf]: ...here.  Resync from autoconf.
27782         * INSTALL: Regenerate.
27783         * INSTALL.ISO: New file.
27784         * INSTALL.UTF-8: Likewise.
27785
27786 2008-08-26  Jim Meyering  <meyering@redhat.com>
27787
27788         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
27789         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
27790         these definitions conditional, so that they may be overridden, too.
27791
27792 2008-08-26  Bruno Haible  <bruno@clisp.org>
27793
27794         Generate INSTALL file variants with prettier quotes.
27795         * doc/Makefile (INSTALL_PRELUDE): New macro.
27796         (INSTALL): Use it.
27797         (INSTALL.ISO, INSTALL.UTF-8): New rules.
27798
27799 2008-08-26  Bruno Haible  <bruno@clisp.org>
27800
27801         Run makeinfo in an English locale.
27802         * doc/Makefile (MAKEINFO): New variable.
27803
27804 2008-08-26  Bruno Haible  <bruno@clisp.org>
27805
27806         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
27807         Suggested by Eric Blake.
27808
27809 2008-08-25  Bruno Haible  <bruno@clisp.org>
27810
27811         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
27812
27813 2008-08-25  Eric Blake  <ebb9@byu.net>
27814
27815         c-stack: test that stack overflow can be caught
27816         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
27817         that platform allows handling stack overflow; at least OS/2 EMX
27818         has sigaltstack, but crashes before transferring control to
27819         handler on stack overflow.
27820         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
27821         check for HAVE_STACK_OVERFLOW_HANDLING.
27822         Reported by Elbert Pol.
27823
27824 2008-08-25  Bruno Haible  <bruno@clisp.org>
27825
27826         * doc/posix-functions/strftime.texi: Fix description of strftime
27827         module.
27828
27829 2008-08-24  Bruno Haible  <bruno@clisp.org>
27830
27831         * tests/uniwidth/test-uc_width2.c: New file.
27832         * tests/uniwidth/test-uc_width2.sh: New file.
27833         * modules/uniwidth/width-tests (Files): Add the new files.
27834         (TESTS): Add uniwidth/test-uc_width2.sh.
27835         (TESTS_ENVIRONMENT): New variable.
27836         (check_PROGRAMS): Add test-uc_width2.
27837         (test_uc_width2_SOURCES): New variable.
27838
27839         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
27840         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
27841         not 0x00AB.
27842         Reported by Alexander V. Lukyanov <lav@netis.ru>.
27843
27844 2008-08-22  Eric Blake  <ebb9@byu.net>
27845
27846         test-lock, test-tls: mention why a test is skipped
27847         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
27848         skipped.
27849         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
27850
27851         count-one-bits: relax license
27852         * modules/count-one-bits (License): Relicense to LGPLv2+.
27853         Suggested by Ludovic Courtès, approved by Ben Pfaff.
27854
27855 2008-08-22  Andreas Schwab  <schwab@suse.de>
27856
27857         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
27858         Remove spurious space in assignment.
27859
27860 2008-08-21  Simon Josefsson  <simon@josefsson.org>
27861
27862         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
27863         Paul Eggert <eggert@CS.UCLA.EDU>.
27864
27865 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
27866
27867         * modules/gettext: Add m4/threadlib.m4.
27868
27869 2008-08-19  Eric Blake  <ebb9@byu.net>
27870
27871         test-c-stack: fix compilation failure on FreeBSD 5.0
27872         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
27873         headers before <sys/resource.h>.
27874         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
27875         the bug.
27876         Reported by Nelson H. F. Beebe.
27877
27878         strverscmp: migrate from "strverscmp.h" to <string.h>
27879         * modules/string (Makefile.am): Add new hooks.
27880         * modules/strverscmp (Files): Remove strverscmp.h.
27881         (Depends-on): Add string.
27882         (configure.ac): Add indicator.
27883         (Include): Mention new header.
27884         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
27885         defaults.
27886         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
27887         results.
27888         * lib/strverscmp.h: Delete.
27889         * lib/string.in.h (strverscmp): Provide declaration, when needed.
27890         * tests/test-strverscmp.c (includes): Adjust client.
27891         * lib/check-version.c (includes): Likewise.
27892         * NEWS: Document the change.
27893
27894         strverscmp: add unit test
27895         * modules/strverscmp-tests: New file.
27896         * tests/test-strverscmp.c: Likewise.
27897
27898 2008-08-19  Simon Josefsson  <simon@josefsson.org>
27899
27900         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
27901         regarding Windows crypto stuff, from Mono.
27902
27903 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
27904
27905         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
27906         if present, for intel RND.  Return error on failures.
27907
27908 2008-08-18  Ben Pfaff  <blp@gnu.org>
27909
27910         gitlog-to-changelog: give better diagnostic for failed pipe-open
27911         * build-aux/gitlog-to-changelog: Improve error message: suggest
27912         that the version of Git may be too old.
27913
27914 2008-08-18  Simon Josefsson  <simon@josefsson.org>
27915
27916         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
27917         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
27918
27919 2008-08-18  Bruno Haible  <bruno@clisp.org>
27920
27921         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
27922         pthread_in_use().
27923
27924 2008-08-18  Bruno Haible  <bruno@clisp.org>
27925
27926         * lib/glthread/threadlib.c: Include <pthread.h>.
27927
27928 2008-08-18  Bruno Haible  <bruno@clisp.org>
27929
27930         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
27931         glthread_recursive_lock_* macros.
27932         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
27933         Fix syntax error.
27934
27935 2008-08-18  Bruno Haible  <bruno@clisp.org>
27936
27937         * lib/glthread/thread.c: Avoid forcing a context switch right after
27938         thread creation.
27939
27940 2008-08-17  Bruno Haible  <bruno@clisp.org>
27941
27942         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
27943         * lib/glthread/thread.h: Provide Win32 specific implementation.
27944         * modules/thread (Files): Add lib/glthread/thread.c.
27945         (Depends-on): Add lock.
27946         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
27947
27948 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27949
27950         New module 'yield'.
27951         * modules/yield: New file.
27952         * lib/glthread/yield.h: New file.
27953         * m4/yield.m4: New file.
27954         * MODULES.html.sh (Multithreading): Add yield.
27955
27956 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27957
27958         New module 'thread'.
27959         * modules/thread: New file.
27960         * lib/glthread/thread.h: New file.
27961         * m4/thread.m4: New file.
27962         * MODULES.html.sh (Multithreading): Add thread.
27963
27964 2008-08-17  Bruno Haible  <bruno@clisp.org>
27965
27966         * lib/glthread/lock.h: Include <stdlib.h> always.
27967         * lib/glthread/tls.h: Likewise.
27968         * lib/glthread/cond.h: Likewise.
27969
27970 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27971
27972         New module 'cond'.
27973         * modules/cond: New file.
27974         * lib/glthread/cond.h: New file.
27975         * lib/glthread/cond.c: New file.
27976         * m4/cond.m4: New file.
27977         * MODULES.html.sh (Multithreading): Add cond.
27978
27979 2008-08-16  Eric Blake  <ebb9@byu.net>
27980
27981         c-stack: fix regression on Irix 5.3 from 2008-06-21
27982         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
27983         sa_sigaction...
27984         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
27985         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
27986         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
27987         * modules/signal (Makefile.am): Use the value.
27988         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
27989         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
27990         * doc/posix-headers/signal.texi (signal.h): Document this
27991         portability issue.
27992         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
27993         Reported by Tom G. Christensen.
27994
27995 2008-08-17  Bruno Haible  <bruno@clisp.org>
27996
27997         New module 'threadlib'.
27998         * modules/threadlib: New file.
27999         * lib/glthread/threadlib.c: New file, extracted from
28000         lib/glthread/lock.c.
28001         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
28002         functions.
28003         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
28004         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
28005         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
28006         macros.
28007         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
28008         (gl_DISABLE_THREADS): Remove macro.
28009         * modules/lock (Files): Remove build-aux/config.rpath.
28010         (Depends-on): Remove havelib. Add threadlib.
28011         (configure.ac-early): Remove section.
28012         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
28013         * modules/tls (Depends-on): Remove lock. Add threadlib.
28014         (Link): New section, copied from threadlib.
28015         * MODULES.html.sh (Multithreading): Add threadlib.
28016
28017 2008-08-14  Bruno Haible  <bruno@clisp.org>
28018
28019         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
28020         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
28021         glthread_rwlock_unlock, glthread_rwlock_destroy,
28022         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
28023         glthread_recursive_lock_destroy): Define as macros always.
28024         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
28025         glthread_lock_lock.
28026         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
28027         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
28028         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
28029         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
28030         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
28031         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
28032         (glthread_recursive_lock_lock_func): Renamed from
28033         glthread_recursive_lock_lock.
28034         (glthread_recursive_lock_unlock_func): Renamed from
28035         glthread_recursive_lock_unlock.
28036         (glthread_recursive_lock_destroy_func): Renamed from
28037         glthread_recursive_lock_destroy.
28038
28039 2008-08-14  Bruno Haible  <bruno@clisp.org>
28040
28041         * lib/glthread/lock.h: Renamed from lib/lock.h.
28042         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
28043         * lib/glthread/tls.h: Renamed from lib/tls.h.
28044         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
28045         * lib/fstrcmp.c: Update includes.
28046         * lib/strsignal.c: Update includes.
28047         * modules/lock (Files, Makefile.am): Update.
28048         (Include): Change to "glthread/lock.h".
28049         * modules/tls (Files, Makefile.am): Update.
28050         (Include): Change to "glthread/tls.h".
28051         * tests/test-lock.c: Update includes.
28052         * tests/test-tls.c: Update includes.
28053         * NEWS: Mention the renamed header files.
28054
28055 2008-08-11  Jim Meyering  <meyering@redhat.com>
28056
28057         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
28058
28059 2008-08-11  Eric Blake  <ebb9@byu.net>
28060
28061         test-c-stack: avoid C99-ism
28062         * tests/test-c-stack.c (main): Fix whitespace, move declaration
28063         before statement.
28064         Reported by Alain Guibert.
28065
28066 2008-08-10  Jim Meyering  <meyering@redhat.com>
28067
28068         ensure that return value of uinttostr et al are not ignored
28069         * lib/inttostr.h (__GNUC_PREREQ): Define.
28070         (__attribute_warn_unused_result__): Define.
28071         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
28072
28073 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
28074
28075         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
28076         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
28077
28078 2008-08-07  Jim Meyering  <meyering@redhat.com>
28079
28080         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
28081
28082         * modules/mkstemp (License): Relicense under LGPLv2+.
28083         * modules/tempname (License): Likewise.
28084
28085 2008-08-06  Bruno Haible  <bruno@clisp.org>
28086
28087         * lib/poll.c (poll): Further micro-optimization.
28088
28089 2008-08-06  Jim Meyering  <meyering@redhat.com>
28090
28091         inet_pton.c: use locale-independent tolower
28092         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
28093         (inet_pton6): Use c_tolower rather than tolower.
28094         * modules/inet_pton (Depends-on): Add c-ctype.
28095
28096 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
28097
28098         * lib/poll.c (poll): Avoid division when timeout is 0, cache
28099         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
28100
28101 2008-08-06  Jim Meyering  <meyering@redhat.com>
28102
28103         * modules/inet_pton (License): Relicense under LGPLv2+.
28104
28105 2008-08-03  Bruno Haible  <bruno@clisp.org>
28106
28107         Additional non-aborting API for lock and tls.
28108         * lib/lock.h: Include <errno.h>.
28109         (glthread_lock_init): New macro/function.
28110         (gl_lock_init): Define as wrapper around glthread_lock_init.
28111         (glthread_lock_lock): New macro/function.
28112         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
28113         (glthread_lock_unlock): New macro/function.
28114         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
28115         (glthread_lock_destroy): New macro/function.
28116         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
28117         (glthread_rwlock_init): New macro/function.
28118         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
28119         (glthread_rwlock_rdlock): New macro/function.
28120         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
28121         (glthread_rwlock_wrlock): New macro/function.
28122         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
28123         (glthread_rwlock_unlock): New macro/function.
28124         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
28125         (glthread_rwlock_destroy): New macro/function.
28126         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
28127         (glthread_recursive_lock_init): New macro/function.
28128         (gl_recursive_lock_init): Define as wrapper around
28129         glthread_recursive_lock_init.
28130         (glthread_recursive_lock_lock): New macro/function.
28131         (gl_recursive_lock_lock): Define as wrapper around
28132         glthread_recursive_lock_lock.
28133         (glthread_recursive_lock_unlock): New macro/function.
28134         (gl_recursive_lock_unlock): Define as wrapper around
28135         glthread_recursive_lock_unlock.
28136         (glthread_recursive_lock_destroy): New macro/function.
28137         (gl_recursive_lock_destroy): Define as wrapper around
28138         glthread_recursive_lock_destroy.
28139         (glthread_once): New macro/function.
28140         (gl_once): Define as wrapper around glthread_once.
28141         Update function declarations.
28142         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
28143         glthread_rwlock_init. Return error code.
28144         (glthread_rwlock_rdlock_multithreaded): Renamed from
28145         glthread_rwlock_rdlock. Return error code.
28146         (glthread_rwlock_wrlock_multithreaded): Renamed from
28147         glthread_rwlock_wrlock. Return error code.
28148         (glthread_rwlock_unlock_multithreaded): Renamed from
28149         glthread_rwlock_unlock. Return error code.
28150         (glthread_rwlock_destroy_multithreaded): Renamed from
28151         glthread_rwlock_destroy. Return error code.
28152         (glthread_recursive_lock_init_multithreaded): Renamed from
28153         glthread_recursive_lock_init. Return error code.
28154         (glthread_recursive_lock_lock_multithreaded): Renamed from
28155         glthread_recursive_lock_lock. Return error code.
28156         (glthread_recursive_lock_unlock_multithreaded): Renamed from
28157         glthread_recursive_lock_unlock. Return error code.
28158         (glthread_recursive_lock_destroy_multithreaded): Renamed from
28159         glthread_recursive_lock_destroy. Return error code.
28160         (glthread_once_call): Make static.
28161         (glthread_once_multithreaded): Renamed from glthread_once.
28162         * lib/tls.h: Include <errno.h>.
28163         (glthread_tls_key_init): New macro/function.
28164         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
28165         (glthread_tls_set): New macro/function.
28166         (gl_tls_set): Define as wrapper around glthread_tls_set.
28167         (glthread_tls_key_destroy): New macro/function.
28168         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
28169         Update function declarations.
28170         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
28171         glthread_tls_get.
28172         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
28173
28174 2008-08-04  Eric Blake  <ebb9@byu.net>
28175
28176         gnumakefile: use space, not TAB, outside of targets
28177         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
28178
28179 2008-08-02  Jim Meyering  <meyering@redhat.com>
28180
28181         getdate.y: avoid locale-dependent date parsing failure
28182         In Turkish locales, getdate would fail to recognize keywords
28183         containing a lowercase "i".  The solution is not to rely on
28184         locale-sensitive case-conversion.
28185         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
28186         (lookup_word): Use c_toupper in place of toupper.
28187         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
28188         Reported by Vefa Bicakci <bicave@superonline.com> in
28189         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
28190         * modules/getdate (Depends-on): Add c-ctype.
28191
28192 2008-08-02  Bruno Haible  <bruno@clisp.org>
28193
28194         * gnulib-tool (func_import): When updating or creating a .gitignore
28195         file, prepend each added line with a slash, and ignore leading slashes
28196         from the existing lines.
28197         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
28198
28199 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28200
28201         Portability fix for GNU make 3.79.1.
28202         * top/GNUmakefile: Avoid 'else COND', which older GNU make
28203         versions do not understand.
28204
28205 2008-08-01  Bruno Haible  <bruno@clisp.org>
28206
28207         Work around bug of HP-UX 10.20 cc with -0.0 literal.
28208         * tests/test-isnanf.h (zero): New variable.
28209         (main): Avoid literal -0.0f.
28210         * tests/test-isnand.h (zero): New variable.
28211         (main): Avoid literal -0.0.
28212         * tests/test-isnanl.h (zero): New variable.
28213         (main): Avoid literal -0.0L.
28214         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
28215         (test_float, test_double, test_long_double): Avoid literals -0.0f,
28216         -0.0, -0.0L.
28217         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
28218         (test_signbitd): Avoid literal -0.0.
28219         (test_signbitl): Avoid literal -0.0L.
28220         * tests/test-ceilf1.c (zero): New variable.
28221         (main): Avoid literal -0.0f.
28222         * tests/test-ceill.c (zero): New variable.
28223         (main): Avoid literal -0.0L.
28224         * tests/test-floorf1.c (zero): New variable.
28225         (main): Avoid literal -0.0f.
28226         * tests/test-floorl.c (zero): New variable.
28227         (main): Avoid literal -0.0L.
28228         * tests/test-roundf1.c (zero): New variable.
28229         (main): Avoid literal -0.0f.
28230         * tests/test-round1.c (zero): New variable.
28231         (main): Avoid literal -0.0.
28232         * tests/test-roundl.c (zero): New variable.
28233         (main): Avoid literal -0.0L.
28234         * tests/test-truncf1.c (zero): New variable.
28235         (main): Avoid literal -0.0f.
28236         * tests/test-trunc1.c (zero): New variable.
28237         (main): Avoid literal -0.0.
28238         * tests/test-truncl.c (zero): New variable.
28239         (main): Avoid literal -0.0L.
28240         * tests/test-frexp.c (zero): New variable.
28241         (main): Avoid literal -0.0.
28242         * tests/test-frexpl.c (zero): New variable.
28243         (main): Avoid literal -0.0L.
28244         * tests/test-ldexpl.c (zero): New variable.
28245         (main): Avoid literal -0.0L.
28246         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
28247         (zerod, zerol): New variables.
28248         (test_function): Avoid literals -0.0, -0.0L.
28249         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
28250         (zerod, zerol): New variables.
28251         (test_function): Avoid literals -0.0, -0.0L.
28252         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
28253         (zerod, zerol): New variables.
28254         (test_function): Avoid literals -0.0, -0.0L.
28255         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
28256         (zerod, zerol): New variables.
28257         (test_function): Avoid literals -0.0, -0.0L.
28258         * tests/test-strtod.c (zero): New variable.
28259         (main): Avoid literal -0.0.
28260         Reported by Jonathan C. Patschke <jp@centtech.com>.
28261
28262 2008-07-31  Jim Meyering  <meyering@redhat.com>
28263
28264         sha256.h: correct definition of SHA224_DIGEST_SIZE
28265         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
28266         Reported by Paulie Pena IV <paulie4@gmail.com>.
28267         Define as 224 / 8, rather than as a literal.
28268         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
28269         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
28270         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
28271
28272 2008-07-31  Bruno Haible  <bruno@clisp.org>
28273
28274         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
28275         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
28276         Reported by Jonathan Patschke <jp@centtech.com>.
28277
28278 2008-07-31  Bruno Haible  <bruno@clisp.org>
28279
28280         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
28281         Reported by Paolo Bonzini <bonzini@gnu.org>.
28282
28283 2008-07-30  Eric Blake  <ebb9@byu.net>
28284
28285         test-strtod: allow compilation without -lm
28286         * tests/test-strtod.c (main): Avoid link dependence on fabs.
28287         Reported by Dennis Clarke <blastwave@gmail.com>.
28288
28289 2008-07-28  Jim Meyering  <meyering@redhat.com>
28290
28291         bootstrap: work also when there are no .po files in po/
28292         * build-aux/bootstrap (update_po_files): Complete the change
28293         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
28294
28295 2008-07-27  Jim Meyering  <meyering@redhat.com>
28296
28297         * users.txt: Add zile.
28298
28299 2008-07-26  Ben Pfaff  <blp@gnu.org>
28300
28301         Add missing dependencies on new m4/exponent[fdl].m4 files.
28302         * modules/isnanf-nolibm: Add m4/exponentf.m4.
28303         * modules/isnand-nolibm: Add m4/exponentd.m4.
28304         * modules/isnanl-nolibm: Add m4/exponentl.m4.
28305         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
28306         m4/isnan[fdl].m4, because the macros actually used moved.
28307         Reported by Jim Meyering.
28308
28309 2008-07-14  Ben Pfaff  <blp@gnu.org>
28310
28311         Add isinf module.
28312         * lib/isinf.c: New file.
28313         * lib/math.in.h: Define isinf macro if we have decided to replace
28314         it.
28315         * m4/isinf.m4: New file.
28316         * m4/math_h.m4: Initialize and substitute variables for isinf
28317         module.
28318         * modules/isinf: New file.
28319         * modules/isinf-tests: New file.
28320         * modules/math: Add substitutions for new module.
28321         * tests/test-isinf.c: New file.
28322         * doc/posix-functions/isinf.texi: Mention new module.
28323         * MODULES.html.sh: Mention new module.
28324
28325 2008-07-14  Ben Pfaff  <blp@gnu.org>
28326
28327         Factor out some macros for use by additional modules.
28328         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
28329         exponentf.m4.
28330         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
28331         exponentd.m4.
28332         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
28333         file exponentl.m4.
28334         * m4/exponentf.m4: New file.
28335         * m4/exponentd.m4: New file.
28336         * m4/exponentl.m4: New file.
28337         * modules/isnanf: Use new file m4/exponentf.m4.
28338         * modules/isnand: Use new file m4/exponentd.m4.
28339         * modules/isnanl: Use new file m4/exponentl.m4.
28340
28341 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
28342
28343         mktime.c: normalize tp->tm_isdst value to -1/0/1.
28344         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
28345         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
28346         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
28347
28348         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
28349         readlink on platforms without PATH_MAX.
28350
28351 2008-07-21  Eric Blake  <ebb9@byu.net>
28352
28353         Warn, not fail, on stale version.
28354         * top/GNUmakefile (_curr-ver): Tone down previous patch.
28355
28356         Don't allow installation with stale devel version number.
28357         * top/GNUmakefile (_is-install-target): New macro.
28358         (_curr-ver): Forbid installation with stale version number.
28359
28360 2008-07-20  Bruno Haible  <bruno@clisp.org>
28361
28362         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
28363         TESTS_ENVIRONMENT.
28364         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
28365
28366 2008-07-20  Bruno Haible  <bruno@clisp.org>
28367
28368         * lib/c-stack.h (c_stack_action): Add documentation.
28369         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
28370
28371 2008-07-20  Bruno Haible  <bruno@clisp.org>
28372
28373         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
28374         * modules/readlink (License): Likewise.
28375
28376 2008-07-17  Eric Blake  <ebb9@byu.net>
28377
28378         * modules/c-stack (Link): Fix typo.
28379
28380         Make c-stack use libsigsegv, when available.
28381         * modules/c-stack (Depends-on): Add libsigsegv.
28382         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
28383         needed.
28384         * lib/c-stack.c (SIGSTKSZ): Define fallback.
28385         (segv_handler, overflow_handler, c_stack_action)
28386         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
28387         implementation when libsigsegv is available, but only when using
28388         the library is necessary.
28389         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
28390         comment, explaining why XSI check fails on Linux.
28391         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
28392         * tests/test-c-stack2.sh: Tweak skip message.
28393         * NEWS: Document new link-time requirements.
28394
28395 2008-07-16  Eric Blake  <ebb9@byu.net>
28396
28397         c-stack: Expose false positives when not using libsigsegv.
28398         * modules/c-stack-tests (Files): Expand test.
28399         * tests/test-c-stack.c (main): Add means to conditionally trigger
28400         non-overflow SIGSEGV.
28401         * tests/test-c-stack2.sh: New file.
28402
28403 2008-07-14  Bruno Haible  <bruno@clisp.org>
28404
28405         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
28406         Reported by Eric Blake.
28407
28408 2008-07-14  Sam Steingold  <sds@gnu.org>
28409             Bruno Haible  <bruno@clisp.org>
28410
28411         New module libsigsegv.
28412         * modules/libsigsegv: New file.
28413         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
28414         modifications.
28415         * MODULES.html.sh (Signal handling): New section.
28416
28417 2008-07-14  Bruno Haible  <bruno@clisp.org>
28418
28419         * modules/unictype/ctype-* (Description): Add the word "function".
28420         Improves the resulting doc in MODULES.html.
28421
28422 2008-07-12  Ben Pfaff  <blp@gnu.org>
28423
28424         Add longlong module.
28425         * modules/longlong: New file.
28426
28427 2008-07-12  Bruno Haible  <bruno@clisp.org>
28428
28429         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
28430         to empty.
28431
28432 2008-07-10  Ben Pfaff  <blp@gnu.org>
28433
28434         Add isnan module.
28435         * doc/posix-functions/isnan.texi: Mention new module.
28436         * lib/math.in.h: Define isnan macro if we have decided to replace
28437         it.
28438         * m4/isnan.m4: New file.
28439         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
28440         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
28441         also.
28442         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
28443         redundancy.
28444         * m4/math_h.m4: Initialize and substitute variables for isnan
28445         module.
28446         * modules/isnan: New file.
28447         * modules/isnan-tests: New file.
28448         * modules/math: Add substitutions for new module.
28449         * tests/test-isnan.c: New file.
28450         * MODULES.html.sh: Mention new module.
28451
28452 2008-07-10  Ben Pfaff  <blp@gnu.org>
28453
28454         Add isnanf module.
28455         * lib/isnanf.m4: New file.
28456         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
28457         (gl_HAVE_ISNANF_IN_LIBM): New macro.
28458         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
28459         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
28460         * modules/isnanf: New file.
28461         * modules/isnanf-tests: New file.
28462         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
28463         files.
28464         * tests/test-isnanf-nolibm.c: factored most of its contents into
28465         new file tests/test-isnanf.h.
28466         * tests/test-isnanf.h: New file.
28467         * tests/test-isnanf.c: New file.
28468         * MODULES.html.sh: Mention new module.
28469         * doc/glibc-functions/isnanf.texi: Mention new module.
28470
28471 2008-07-10  Ben Pfaff  <blp@gnu.org>
28472
28473         Add isnand module.
28474         * lib/isnand.h: New file.
28475         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
28476         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
28477         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
28478         functionality also.
28479         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
28480         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
28481         (gl_HAVE_ISNAND_IN_LIBM): New macro.
28482         * modules/isnand: New file.
28483         * modules/isnand-tests: New file.
28484         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
28485         files.
28486         * tests/test-isnand-nolibm.c: factored most of its contents into
28487         new file tests/test-isnand.h.
28488         * tests/test-isnand.h: New file.
28489         * tests/test-isnand.c: New file.
28490         * MODULES.html.sh: Mention new module.
28491
28492 2008-07-10  Ben Pfaff  <blp@gnu.org>
28493
28494         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
28495         * lib/isnand.h: Rename lib/isnand-nolibm.h.
28496         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
28497         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
28498         * modules/isnanf-nolibm: Update references to renamed files.
28499         * modules/isnand-nolibm: Likewise.
28500         * modules/isnanf-nolibm-tests: Likewise.
28501         * modules/isnand-nolibm-tests: Likewise.
28502         * lib/frexp.c: Likewise.
28503         * lib/isfinite.c: Likewise.
28504         * lib/signbitd.c: Likewise.
28505         * lib/signbitf.c: Likewise.
28506         * lib/vasnprintf.c: Likewise.
28507         * tests/test-ceilf1.c: Likewise.
28508         * tests/test-ceilf2.c: Likewise.
28509         * tests/test-floorf1.c: Likewise.
28510         * tests/test-floorf2.c: Likewise.
28511         * tests/test-frexp.c: Likewise.
28512         * tests/test-round1.c: Likewise.
28513         * tests/test-round2.c: Likewise.
28514         * tests/test-roundf1.c: Likewise.
28515         * tests/test-strtod.c: Likewise.
28516         * tests/test-trunc1.c: Likewise.
28517         * tests/test-trunc2.c: Likewise.
28518         * tests/test-truncf1.c: Likewise.
28519         * tests/test-truncf2.c: Likewise.
28520         * NEWS: Mention the renamed header files.
28521
28522 2008-07-11  Jim Meyering  <meyering@redhat.com>
28523
28524         vc-list-files: make the last-resort awk code more portable
28525         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
28526         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
28527         does not support it.
28528
28529 2008-07-10  Eric Blake  <ebb9@byu.net>
28530
28531         Work with tar's bootstrap.
28532         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
28533         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
28534         an m4 comment.
28535
28536 2008-07-09  Jim Meyering  <meyering@redhat.com>
28537
28538         posix-shell.m4: fix typo that made this test malfunction
28539         * m4/posix-shell.m4: Remove capitalization in variable name.
28540
28541 2008-07-08  Bruno Haible  <bruno@clisp.org>
28542
28543         * m4/onceonly.m4: Update comments.
28544         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28545
28546 2008-07-04  Jim Meyering  <meyering@redhat.com>
28547
28548         * users.txt: Add vc-dwim.
28549         (bison, coreutils): Use the gitweb URL.
28550
28551 2008-07-03  Jim Meyering  <meyering@redhat.com>
28552
28553         * users.txt: Add libffcall.  From Sam Steingold.
28554
28555 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
28556
28557         getdate.y: do not ignore TZ with relative day, month or year offset
28558         * lib/getdate.y (get_date): Move the tz-handling block to follow the
28559         relative-date-handling, since otherwise, the latter would clobber the
28560         sole output (an updated Start value) of the tz-handling block.
28561         * tests/test-getdate.c: Tests for the fix
28562
28563 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28564
28565         Recognize 'foo_LIBRARIES += libgnu.a'.
28566         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
28567         makefile snippet has already specified an installation location,
28568         also using '+='.
28569
28570 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
28571
28572         getdate.y: factor out common actions
28573         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
28574         Use them in place of open-coded actions.
28575
28576 2008-07-01  Simon Josefsson  <simon@josefsson.org>
28577
28578         Add self-test for getdate module.
28579         * modules/getdate-tests: New file.
28580         * tests/test-getdate.c: New file.
28581
28582 2008-06-29  Bruno Haible  <bruno@clisp.org>
28583
28584         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
28585         .gitignore.
28586         Reported by Sylvain Beucler <beuc@beuc.net>.
28587
28588 2008-06-29  Bruno Haible  <bruno@clisp.org>
28589
28590         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
28591         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
28592
28593 2008-06-29  Bruno Haible  <bruno@clisp.org>
28594
28595         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
28596         EXTRA_DIST.
28597         Reported by Sylvain Beucler <beuc@beuc.net>.
28598
28599 2008-06-26  Jim Meyering  <meyering@redhat.com>
28600
28601         make several modules depend on the "open" module
28602         This provides slightly increased consistency when opening-for-write
28603         the name of a non-directory spelled with a trailing slash.
28604         * modules/chdir-safer: Likewise.
28605         * modules/chown: Likewise.
28606         * modules/clean-temp: Likewise.
28607         * modules/copy-file: Likewise.
28608         * modules/fchdir: Likewise.
28609         * modules/fcntl-safer: Likewise.
28610         * modules/pipe: Likewise.
28611         * modules/utime: Likewise.
28612         Prompted by Eric Blake and Bruno Haible.
28613
28614 2008-06-24  Andreas Schwab  <schwab@suse.de>
28615
28616         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
28617         literals can be used as initializers for global variables.
28618
28619 2008-06-23  Eric Blake  <ebb9@byu.net>
28620
28621         Make gnulib-cache.m4 easier to diff.
28622         * gnulib-tool (func_import): Allow newlines when reading cached
28623         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
28624
28625 2008-06-23  Bruno Haible  <bruno@clisp.org>
28626
28627         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
28628         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
28629         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
28630         m4/signalblocking.m4.
28631         (gl_PREREQ_SIGACTION): Don't invoke it.
28632         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
28633         gl_PREREQ_SIG_HANDLER_H.
28634         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
28635         Don't check for sigaction here.
28636
28637 2008-06-23  Bruno Haible  <bruno@clisp.org>
28638
28639         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
28640         (install_handlers): Don't set the SA_RESETHAND flag.
28641
28642 2008-06-23  Bruno Haible  <bruno@clisp.org>
28643
28644         * m4/sigaction.m4: Comment fixes.
28645         * lib/signal.in.h: Likewise.
28646
28647 2008-06-23  Eric Blake  <ebb9@byu.net>
28648
28649         Fix typo.
28650         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
28651
28652         Avoid SA_ namespace.
28653         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
28654         Reported by Ralf Wildenhues.
28655
28656         Avoid test failure due to SA_RESTORER.
28657         * tests/test-sigaction.c (SA_MASK): New macro.
28658         (main): Avoid failing due to extension flags being set.
28659         Reported by Jim Meyering.
28660
28661         Revert use of sig-handler.h in sigprocmask.c.
28662         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
28663         it requires the existence of struct sigaction.
28664         * lib/sigprocmask.c (handler_t): Restore typedef.
28665         (rpl_signal, old_handlers): Use local type.
28666
28667 2008-06-22  Bruno Haible  <bruno@clisp.org>
28668
28669         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
28670         conditionally.
28671         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28672
28673 2008-06-22  Bruno Haible  <bruno@clisp.org>
28674
28675         * doc/posix-functions/siginterrupt.texi: Move note.
28676
28677         * lib/signal.in.h (SA_RESTART): New macro.
28678         * lib/sigaction.c: Update comment.
28679
28680         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
28681
28682         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
28683         (gl_PREREQ_SIGPROCMASK): Invoke it.
28684         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
28685
28686         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
28687
28688         * lib/sigprocmask.c: Update a comment.
28689
28690 2008-06-21  Eric Blake  <ebb9@byu.net>
28691
28692         Use sigaction module rather than signal().
28693         * modules/c-stack (Depends-on): Add sigaction.
28694         * modules/fatal-signal (Depends-on): Likewise.
28695         * modules/nanosleep (Depends-on): Likewise.
28696         * modules/sigprocmask (Files): Add sig-handler.h.
28697         * modules/sigaction (Files): Likewise.
28698         * lib/sig-handler.h (get_handler): New file, suggested by Paul
28699         Eggert.
28700         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
28701         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
28702         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
28703         (init_fatal_signals): Likewise.
28704         * lib/nanosleep.c (rpl_nanosleep): Likewise.
28705         (siginterrupt): Delete fallback.
28706         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
28707         instead.
28708         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
28709         siginterrupt.
28710
28711         New module sigaction, for mingw.
28712         * modules/sigaction: New module...
28713         * modules/sigaction-tests: ...and its test.
28714         * m4/sigaction.m4: New file.
28715         * lib/sigaction.c: Likewise.
28716         * tests/test-sigaction.c: Likewise.
28717         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
28718         * modules/signal (Makefile.am): Likewise.
28719         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
28720         needed.
28721         * doc/posix-headers/signal.texi (signal.h): Mention provided
28722         types.
28723         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
28724         that sigaction is preferable.
28725         * doc/posix-functions/sigaction.texi (sigaction): Mention new
28726         module.
28727         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28728         sigaction.
28729
28730         Improve robustness of sigprocmask by overriding signal.
28731         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
28732         is in use.
28733         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
28734         (SIGKILL, SIGSTOP): Provide fallbacks.
28735         (rpl_signal): Implement.
28736         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
28737         signal can be called inside handlers.
28738
28739         Fix nanosleep module on mingw.
28740         * modules/nanosleep (Depends-on): Add sys_select.
28741         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
28742
28743         Fix licensing of sigprocmask.
28744         * modules/raise (License): Relicense as LGPL.
28745
28746 2008-06-21  Bruno Haible  <bruno@clisp.org>
28747
28748         * lib/propername.c (proper_name_utf8): Don't use the transliterated
28749         result if it contains question marks.
28750         Reported by Michael Geng <linux@michaelgeng.de>.
28751
28752 2008-06-19  Bruno Haible  <bruno@clisp.org>
28753
28754         Fix CVS-ism.
28755         * doc/gnulib.texi: Include updated-stamp.texi.
28756         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
28757         (updated-stamp.texi): New rule.
28758         (gnulib.info): Depend on it.
28759         * doc/.gitignore: Add updated-stamp.texi.
28760         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
28761
28762 2008-06-19  Bruno Haible  <bruno@clisp.org>
28763
28764         * doc/Makefile (gnulib.info): Update and simplify dependencies.
28765         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
28766
28767 2008-06-19  Eric Blake  <ebb9@byu.net>
28768
28769         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
28770         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
28771         Reported by Stepan Kasal.
28772
28773 2008-06-18  Bruno Haible  <bruno@clisp.org>
28774
28775         * lib/fatal-signal.c (init_fatal_signals): Add comment.
28776         Reported by Eric Blake.
28777
28778 2008-06-18  Eric Blake  <ebb9@byu.net>
28779
28780         Work around cygwin 1.5.25 strsignal bug.
28781         * tests/test-strsignal.c: Allow for const char *.
28782         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
28783
28784 2008-06-18  Simon Josefsson  <simon@josefsson.org>
28785
28786         * users.txt: Update URL to article and add author/date
28787         information.
28788
28789 2008-06-17  Bruno Haible  <bruno@clisp.org>
28790
28791         New macro gl_DISABLE_THREADS.
28792         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
28793         if the user did not pass --enable-threads or --disable-threads option.
28794         (gl_DISABLE_THREADS): New macro.
28795         Reported by Eric Blake <ebb9@byu.net>.
28796
28797 2008-06-17  Bruno Haible  <bruno@clisp.org>
28798
28799         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
28800         when the macro ignores it.
28801         Based on a patch by Eric Blake <ebb9@byu.net>.
28802
28803 2008-06-17  Bruno Haible  <bruno@clisp.org>
28804
28805         * modules/tls (License): Change to LGPLv2+.
28806         Reported by Eric Blake.
28807
28808 2008-06-17  Eric Blake  <ebb9@byu.net>
28809
28810         Simplify c-stack prerequisites.
28811         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
28812         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
28813         no longer requires <ucontext.h> to exist.  Optimize setrlimit
28814         check.
28815         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
28816         <sys/resource.h>.
28817
28818         Move c-stack test into testsuite.
28819         * modules/c-stack-tests: New file.
28820         * lib/c-stack.c [DEBUG]: Move test program...
28821         * tests/test-c-stack.c: ...into this new file.  Skip rather than
28822         fail test if sigaltstack is lacking.
28823         * tests/test-c-stack.sh: New driver file.
28824
28825 2008-06-16  Eric Blake  <ebb9@byu.net>
28826
28827         Use raise module consistently.
28828         * modules/fatal-signal (Depends-on): Add raise.
28829         * modules/sigprocmask (Depends-on): Likewise.
28830         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
28831         * lib/sigprocmask.c (sigprocmask): Likewise.
28832         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
28833         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
28834
28835         Fix compliance bug in sigpending.
28836         * lib/sigprocmask.c (sigpending): Return pending array via
28837         parameter, not return value.
28838
28839 2008-06-14  Eric Blake  <ebb9@byu.net>
28840
28841         Improve obstack-printf test code.
28842         * tests/test-obstack-printf.c (test_function): Fix comment, and
28843         simplify usage of obstack_* in macros.  Add a test for coverage.
28844         Reported by Bruno Haible.
28845
28846 2008-06-14  Bruno Haible  <bruno@clisp.org>
28847
28848         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
28849         array size as a constant, not as a const variable.
28850         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
28851         AC_USE_SYSTEM_EXTENSIONS.
28852         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
28853         Test whether the obstack_printf function actually exists.
28854         * modules/obstack-printf (Depends-on): Add extensions.
28855         (Include): Remove obstack.h.
28856         * modules/obstack-printf-posix (Depends-on): Add extensions.
28857         (Include): Remove obstack.h.
28858
28859 2008-06-13  Eric Blake  <ebb9@byu.net>
28860
28861         Add obstack-printf and obstack-printf-posix modules.
28862         * modules/obstack-printf: New file.
28863         * modules/obstack-printf-posix: Likewise.
28864         * MODULES.html.sh (Misc): Mention them.
28865         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
28866         Likewise.
28867         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
28868         Likewise.
28869         * modules/stdio (Makefile.am): Accomodate new modules.
28870         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28871         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
28872         Declare.
28873         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
28874         functions.
28875         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
28876         (gl_REPLACE_OBSTACK_PRINTF): New macros
28877         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
28878         * tests/test-obstack-printf.c: New file.
28879         * modules/obstack-printf-tests: Likewise.
28880         * modules/obstack-printf-posix-tests: Likewise.
28881
28882 2008-06-11  Bruno Haible  <bruno@clisp.org>
28883
28884         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
28885         * lib/open.c: Include errno.h.
28886         (open): Fail when attempting to write to a file that has a trailing
28887         slash.
28888         * tests/test-open.c (main): Test against trailing slash bug.
28889         * doc/posix-functions/open.texi: Mention the trailing slash bug.
28890
28891 2008-06-10  Bruno Haible  <bruno@clisp.org>
28892
28893         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
28894         for $? to work inside the trap command, with various /bin/sh-s.
28895         * tests/test-vc-list-files-cvs.sh: Likewise.
28896
28897 2008-06-10  Bruno Haible  <bruno@clisp.org>
28898
28899         * lib/acl-internal.h: Don't include gettext.h here.
28900         * lib/set-mode-acl.c: Include gettext.h here.
28901         * lib/copy-acl.c: Likewise.
28902
28903 2008-06-10  Bruno Haible  <bruno@clisp.org>
28904
28905         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
28906         * lib/wait-process.c (wait_subprocess): Likewise.
28907         * lib/execute.h (execute): Add termsigp argument.
28908         * lib/execute.c (execute): Likewise.
28909         * lib/csharpcomp.c (compile_csharp_using_pnet,
28910         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
28911         * lib/csharpexec.c (execute_csharp_using_pnet,
28912         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
28913         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
28914         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
28915         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
28916         is_jikes_present): Update.
28917         * lib/javaexec.c (execute_java_class): Update.
28918         * lib/javaversion.c (execute_and_read_line): Update.
28919         * NEWS: Document the changes.
28920         Reported by Eric Blake.
28921
28922 2008-06-10  Eric Blake  <ebb9@byu.net>
28923
28924         Add missing include.
28925         * tests/test-strstr.c (includes): Add <signal.h>.
28926         * tests/test-strcasestr.c (includes): Likewise.
28927         * tests/test-memmem.c (includes): Likewise.
28928
28929 2008-06-10  Bruno Haible  <bruno@clisp.org>
28930
28931         * lib/wait-process.c (wait_subprocess): Add an assertion.
28932
28933 2008-06-10  Bruno Haible  <bruno@clisp.org>
28934
28935         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
28936
28937 2008-06-10  Bruno Haible  <bruno@clisp.org>
28938
28939         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
28940         using alarm().
28941         * tests/test-strcasestr.c (main): Likewise.
28942         * tests/test-strstr.c (main): Likewise.
28943
28944 2008-06-09  Bruno Haible  <bruno@clisp.org>
28945
28946         Work around the Solaris 10 ACE ACLs ABI change.
28947         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
28948         declare if ACL_NO_TRIVIAL is present.
28949         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
28950         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
28951         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
28952         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
28953         define if ACL_NO_TRIVIAL is present.
28954         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
28955         and use the current ABI.
28956         (file_has_acl): Use same #if condition as elsewhere.
28957         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
28958         in use, and use the current ABI.
28959         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
28960         Reported by Jim Meyering.
28961
28962 2008-06-09  Eric Blake  <ebb9@byu.net>
28963
28964         Work around environments that (stupidly) ignore SIGALRM.
28965         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
28966         before using alarm().
28967         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28968         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
28969         Reported by Ian Beckwith <ianb@erislabs.net>.
28970
28971         Produce autobuild blurb earlier in log.
28972         * modules/autobuild (configure.ac-early): Move AB_INIT here.
28973
28974 2008-06-09  Jim Meyering  <meyering@redhat.com>
28975         and Ondřej Vašík  <ovasik@redhat.com>
28976
28977         utimens.c: correct kernel bug work-around
28978         Ondřej Vašík found that the invalid return value of 280 indicates
28979         failure, not success, and the kernel bug we're trying to work
28980         around affects not just the utimensat call, but also the fallback
28981         futimens call.
28982         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
28983         not success.
28984         [HAVE_FUTIMENS]: Use the same work-around, here.
28985
28986 2008-06-09  Jim Meyering  <meyering@redhat.com>
28987
28988         add more guards around definition of ACE_-related code
28989         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
28990         ALLOW and ACE_OWNER are also defined.
28991
28992 2008-06-08  Bruno Haible  <bruno@clisp.org>
28993
28994         * lib/acl-internal.h: Add me as co-author.
28995         * lib/file-has-acl.c: Likewise.
28996         * lib/set-mode-acl.c: Likewise.
28997         * lib/copy-acl.c: Likewise.
28998
28999 2008-06-08  Bruno Haible  <bruno@clisp.org>
29000
29001         Add support for AIX ACLs.
29002         * lib/acl-internal.h (acl_nontrivial): New declaration.
29003         * lib/file-has-acl.c (acl_nontrivial): New function.
29004         (file_has_acl): Add implementation using AIX 4 ACL API.
29005         * lib/set-mode-acl.c (qset_acl): Likewise.
29006         * lib/copy-acl.c (qcopy_acl): Likewise.
29007
29008 2008-06-08  Bruno Haible  <bruno@clisp.org>
29009
29010         Add support for HP-UX ACLs.
29011         * lib/acl-internal.h (acl_nontrivial): New declaration.
29012         * lib/file-has-acl.c (acl_nontrivial): New function.
29013         (file_has_acl): Add implementation using HP-UX 11 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         Add support for Cygwin ACLs.
29020         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
29021         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
29022         the chmod_or_fchmod call.
29023         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
29024
29025 2008-06-08  Bruno Haible  <bruno@clisp.org>
29026
29027         Fix bug with setuid modes in Solaris 10+ code.
29028         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
29029         succeeded, when the mode contains some special bits.
29030
29031 2008-06-08  Bruno Haible  <bruno@clisp.org>
29032
29033         Add support for Solaris 7..10 ACLs.
29034         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
29035         declarations.
29036         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
29037         functions.
29038         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
29039         * lib/set-mode-acl.c (qset_acl): Likewise.
29040         * lib/copy-acl.c (qcopy_acl): Likewise.
29041
29042 2008-06-08  Bruno Haible  <bruno@clisp.org>
29043
29044         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
29045         declaration.
29046         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
29047         (acl_access_nontrivial): Remove MacOS X case.
29048         (file_has_acl): Use acl_extended_nontrivial.
29049         * lib/copy-acl.c (qcopy_acl): Likewise.
29050
29051 2008-06-08  Bruno Haible  <bruno@clisp.org>
29052
29053         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
29054
29055 2008-06-08  Jim Meyering  <meyering@redhat.com>
29056
29057         * modules/acl (Maintainer): Add Bruno Haible.
29058
29059 2008-06-07  Bruno Haible  <bruno@clisp.org>
29060
29061         Improve support for Tru64 ACLs.
29062         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
29063         ACL on OSF/1.
29064
29065 2008-06-07  Bruno Haible  <bruno@clisp.org>
29066
29067         Add support for MacOS X ACLs.
29068         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
29069         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
29070         * lib/set-mode-acl.c (qset_acl): Likewise.
29071         * lib/copy-acl.c (qcopy_acl): Likewise.
29072
29073 2008-06-07  Bruno Haible  <bruno@clisp.org>
29074
29075         Fix memory leak introduced on 2008-05-22.
29076         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
29077         use.
29078
29079 2008-06-07  Bruno Haible  <bruno@clisp.org>
29080
29081         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
29082         to construct an empty ACL.
29083
29084 2008-06-07  Bruno Haible  <bruno@clisp.org>
29085
29086         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
29087         precisely.
29088         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
29089
29090 2008-06-07  Bruno Haible  <bruno@clisp.org>
29091
29092         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
29093         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
29094
29095 2008-06-07  Bruno Haible  <bruno@clisp.org>
29096
29097         * doc/posix-functions/_setjmp.texi: Explain the use of this function
29098         regardless of POSIX.
29099         * doc/posix-functions/_longjmp.texi: Likewise.
29100         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
29101         SystemV platform in this case.
29102
29103 2008-06-06  Eric Blake  <ebb9@byu.net>
29104
29105         Document abort() bugs.
29106         * doc/posix-functions/abort.texi (abort): Mention anomalies.
29107
29108         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
29109         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
29110         sigsetjmp.
29111         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
29112         siglongjmp, but only as a macro.
29113         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
29114         is obsolete.
29115         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
29116
29117         Tweak documentation to cover cygwin argz bugs.
29118         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
29119         argz bug fix; no code change needed since no cygwin releases
29120         occurred between the last fix and the bug being tested.
29121         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
29122         module and recently fixed cygwin bugs.
29123         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
29124         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
29125         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
29126         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
29127         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
29128         Likewise.
29129         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
29130         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
29131         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
29132         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
29133         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
29134         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
29135         Likewise.
29136
29137         Avoid gcc warning on cygwin.
29138         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
29139         !ACL_NO_TRIVIAL]: Avoid unused variable.
29140
29141 2008-06-05  Eric Blake  <ebb9@byu.net>
29142
29143         Be tolerant of UNKNOWN version in gnulib-tool test dir.
29144         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
29145         git-version-gen fails to come up with a version.
29146         Reported by Simon Josefsson.
29147
29148 2008-06-05  Jim Meyering  <meyering@redhat.com>
29149             Paul Eggert  <eggert@cs.ucla.edu>
29150
29151         utimens.c: work around a probable Linux kernel bug
29152         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
29153         appears to be a kernel bug that causes utimensat to return 280
29154         instead of 0, indicating success.
29155
29156 2008-06-04  Bruno Haible  <bruno@clisp.org>
29157
29158         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
29159         2008-06-01 commit.
29160
29161 2008-06-04  Bruno Haible  <bruno@clisp.org>
29162
29163         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
29164         * lib/file-has-acl.c (acl_access_nontrivial): New function.
29165         (file_has_acl): Use it. Save errno afterwards.
29166         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
29167
29168 2008-06-03  Bruno Haible  <bruno@clisp.org>
29169
29170         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
29171         draft code. Simplify #ifs.
29172         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
29173         Put Solaris code after POSIX-draft code. Fix comments regarding
29174         Solaris 10, HP-UX. Mention Cygwin.
29175         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
29176
29177 2008-06-03  Eric Blake  <ebb9@byu.net>
29178
29179         Provide fallback for older kernels.
29180         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
29181         Provide runtime fallback if kernel lacks support.
29182         Reported by Mike Frysinger.
29183
29184 2008-06-02  Bruno Haible  <bruno@clisp.org>
29185
29186         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
29187         it exists.
29188
29189 2008-06-02  Bruno Haible  <bruno@clisp.org>
29190
29191         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
29192         * lib/copy-acl.c (qcopy_acl): Update comment.
29193
29194 2008-06-02  Bruno Haible  <bruno@clisp.org>
29195
29196         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
29197         like ACL APIs.
29198
29199 2008-06-02  Bruno Haible  <bruno@clisp.org>
29200
29201         * tests/test-file-has-acl.sh: Use different code for Cygwin.
29202         * tests/test-set-mode-acl.sh: Likewise.
29203         * tests/test-copy-acl.sh: Likewise.
29204         * tests/test-copy-file.sh: Likewise.
29205
29206 2008-06-02  Bruno Haible  <bruno@clisp.org>
29207
29208         * tests/test-file-has-acl.sh: Remove unused code.
29209
29210 2008-06-01  Bruno Haible  <bruno@clisp.org>
29211
29212         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
29213         (copy_acl): Just a wrapper around qcopy_acl that emits the error
29214         messages.
29215         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
29216
29217 2008-06-01  Bruno Haible  <bruno@clisp.org>
29218
29219         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
29220         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
29221         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
29222         APIs.
29223         * modules/acl-tests (configure.ac): Remove tests now contained in
29224         m4/acl.m4.
29225
29226 2008-06-02  Jim Meyering  <meyering@redhat.com>
29227
29228         announce-gen: use a better key-server host name
29229         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
29230         it may be more consistently reliable.  Suggested by Werner Koch
29231         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
29232
29233 2008-06-01  Bruno Haible  <bruno@clisp.org>
29234
29235         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
29236         Reported by Voroskoi Andras <voroskoi@gmail.com>.
29237
29238 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
29239
29240         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
29241
29242 2008-06-01  Bruno Haible  <bruno@clisp.org>
29243
29244         New ACL tests.
29245         * tests/test-file-has-acl.sh: New file.
29246         * tests/test-file-has-acl.c: New file.
29247         * tests/test-set-mode-acl.sh: New file.
29248         * tests/test-set-mode-acl.c: New file.
29249         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
29250         * tests/test-copy-acl.c: New file.
29251         * modules/acl-tests: New file, based on modules/copy-file-tests.
29252         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
29253         (Depends-on): Add acl-tests.
29254         (configure.ac): Remove checks.
29255         (Makefile.am): Don't create test-sameacls program here any more.
29256
29257 2008-06-01  Bruno Haible  <bruno@clisp.org>
29258
29259         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
29260         * tests/test-sameacls.c: Include progname.h.
29261         (main): Invoke set_program_name. Portability fixes for MacOS X,
29262         Solaris, HP-UX.
29263
29264 2008-06-01  Bruno Haible  <bruno@clisp.org>
29265
29266         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
29267         function.
29268         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
29269
29270 2008-06-01  Bruno Haible  <bruno@clisp.org>
29271
29272         * modules/rpmatch (Depends-on): Add strdup.
29273
29274 2008-06-01  Bruno Haible  <bruno@clisp.org>
29275
29276         * lib/pipe.c: Include unistd-safer.h.
29277         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
29278         * modules/pipe (Depends-on): Add unistd-safer.
29279
29280 2008-05-30  Simon Josefsson  <simon@josefsson.org>
29281
29282         * modules/autobuild (configure.ac): Call AB_INIT.
29283
29284 2008-05-30  Simon Josefsson  <simon@josefsson.org>
29285
29286         * tests/test-getaddrinfo.c: Don't print debug messages by default.
29287         Suggested by Bruno Haible <bruno@clisp.org>.
29288
29289 2008-05-30  Simon Josefsson  <simon@josefsson.org>
29290
29291         * tests/test-base64.c: Cast size_t to unsigned long when invoking
29292         printf.  Use %lu instead of %d.  Reported by Bruno Haible
29293         <bruno@clisp.org>.
29294
29295 2008-05-29  Eric Blake  <ebb9@byu.net>
29296
29297         Prefer new POSIX 200x interfaces over futimesat.
29298         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
29299         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
29300         when available.
29301         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
29302
29303 2008-05-28  Bruno Haible  <bruno@clisp.org>
29304
29305         * modules/stpcpy (License): Change to LGPLv2+.
29306         Requested by David Lutterkort <dlutter@redhat.com>.
29307
29308 2008-05-27  Bruno Haible  <bruno@clisp.org>
29309
29310         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
29311         current mingw.
29312         Reported by Jose E. Marchesi <jemarch@gnu.org>.
29313
29314 2008-05-27  Bruno Haible  <bruno@clisp.org>
29315
29316         * modules/iconv_open (Link): New section, from module 'iconv'.
29317         * modules/striconv (Link): Likewise.
29318         * modules/striconveh (Link): Likewise.
29319         * modules/xstriconv (Link): Likewise.
29320         * modules/unicodeio (Link): Likewise.
29321         * modules/propername (Link): Likewise.
29322         Reported by Jim Meyering.
29323
29324 2008-05-26  Jim Meyering  <meyering@redhat.com>
29325
29326         sha256: do not artificially restrict buffer length to be < 2^32
29327         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
29328         uint32_t to size_t.
29329         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
29330         to match.
29331
29332         avoid unaligned access errors, e.g., on sparc
29333         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
29334         direct access through a possibly-unaligned uint64* pointer.
29335         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
29336         direct access through a possibly-unaligned uint32* pointer.
29337         Prompted by this patch from Tom "spot" Callaway:
29338         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
29339
29340         sha512.c: fix typo in comment
29341         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
29342
29343 2008-05-25  Bruno Haible  <bruno@clisp.org>
29344
29345         * lib/set-mode-acl.c: Renamed from lib/acl.c.
29346         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
29347         (Makefile.am): Update lib_SOURCES.
29348
29349 2008-05-25  Bruno Haible  <bruno@clisp.org>
29350
29351         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
29352
29353 2008-05-25  Jim Meyering  <meyering@redhat.com>
29354
29355         useless-if-before-free: freed expr may have white-space differences
29356         * build-aux/useless-if-before-free: Recognize cases in which the
29357         freed expression differs from the tested one in embedded white
29358         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
29359         $1 was used, so we can't make any regexp shy.  Improved tests now
29360         detect this.
29361
29362         useless-if-before-free: accept white space in the expression.
29363         * build-aux/useless-if-before-free: For now, any white space
29364         in the expression must be identical in the free argument.
29365
29366         useless-if-before-free: efficiency tweak
29367         * build-aux/useless-if-before-free: Make the expression-matching
29368         regexp "shy".
29369         Make the *outer* regexp shy, not the expr-matching one.
29370
29371         update code-in-comment to accept cast of free arg
29372         * build-aux/useless-if-before-free: Update regexp.
29373
29374 2008-05-25  Bruno Haible  <bruno@clisp.org>
29375
29376         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
29377         * modules/copy-file-tests (Files, Makefile.am): Update.
29378         * tests/test-copy-file.c (func_test_copy): Update.
29379
29380 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
29381
29382         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
29383
29384 2008-05-23  Bruno Haible  <bruno@clisp.org>
29385
29386         Improve support for ACLs on OSF/1.
29387         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
29388         Remove fallback for unknown flavors of ACLs.
29389
29390 2008-05-22  Bruno Haible  <bruno@clisp.org>
29391
29392         Add support for ACLs on OSF/1.
29393         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
29394         replacements.
29395         (acl_free_text): New macro fallback.
29396         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
29397         acl_free.
29398         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
29399         acl_free_text function. Require AC_C_INLINE.
29400
29401 2008-05-22  Bruno Haible  <bruno@clisp.org>
29402
29403         Make copy_acl work on MacOS X 10.5.
29404         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
29405         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
29406         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
29407         If MODE_INSIDE_ACL, don't assume that every system has the same text
29408         representation for ACLs as FreeBSD.
29409         * lib/copy-acl.c (copy_acl): Add support for platforms with
29410         !MODE_INSIDE_ACL.
29411         * lib/file-has-acl.c (file_has_acl): Likewise.
29412         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
29413         FreeBSD, MacOS X, or IRIX, respectively.
29414
29415 2008-05-22  Bruno Haible  <bruno@clisp.org>
29416
29417         * lib/acl.h: Don't include <sys/acl.h>.
29418         (GETACLCNT): Move fallback to lib/acl-internal.h.
29419         * lib/acl-internal.h: Include <sys/acl.h> here.
29420         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
29421
29422 2008-05-22  Bruno Haible  <bruno@clisp.org>
29423
29424         Split off copy_acl function to separate file.
29425         * lib/copy-acl.c: New file, extracted from lib/acl.c.
29426         * lib/acl.c (copy_acl): Moved function to separate file.
29427         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
29428         * modules/acl (Files): Add lib/copy-acl.c.
29429         (Makefiles.am): Augment lib_SOURCES.
29430
29431 2008-05-22  Bruno Haible  <bruno@clisp.org>
29432
29433         * modules/copy-file-tests: New file.
29434         * tests/test-copy-file.sh: New file.
29435         * tests/test-copy-file.c: New file.
29436         * tests/test-copy-file-sameacls.c: New file.
29437
29438 2008-05-22  Eric Blake  <ebb9@byu.net>
29439
29440         Avoid gcc warning.
29441         * tests/test-memcmp.c (main): Pass NULL indirectly.
29442
29443 2008-05-21  Bruno Haible  <bruno@clisp.org>
29444
29445         Add reference doc about ACLs.
29446         * doc/acl-resources.txt: New file.
29447         * doc/acl-cygwin.txt: New file.
29448
29449 2008-05-21  Bruno Haible  <bruno@clisp.org>
29450
29451         Avoid one more warning from gcc.
29452         * lib/vasnprintf.c (IF_LINT): Update comments.
29453         (VASNPRINTF): Use it also for the 'prefix' array initializer.
29454
29455 2008-05-21  Jim Meyering  <meyering@redhat.com>
29456
29457         avoid a warning from gcc
29458         * lib/vasnprintf.c (IF_LINT): Define.
29459         (scale10_round_decimal_long_double):
29460         Use it to avoid a "may be used uninitialized" warning.
29461         (scale10_round_decimal_double): Likewise.
29462
29463 2008-05-21  Simon Josefsson  <simon@josefsson.org>
29464
29465         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
29466         declared.
29467
29468 2008-05-20  Bruno Haible  <bruno@clisp.org>
29469
29470         * tests/test-memcmp.c (main): Test also the sign of the result. Test
29471         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
29472
29473 2008-05-20  Simon Josefsson  <simon@josefsson.org>
29474
29475         * modules/memcmp-tests: New file.
29476         * tests/test-memcmp.c: New file.
29477
29478 2008-05-19  Bruno Haible  <bruno@clisp.org>
29479
29480         * modules/propername (Notice, configure.ac): Put quoted "..." into
29481         --keyword option.
29482         * lib/propername.h: Update comments accordingly.
29483         Reported by Eric Blake.
29484
29485 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
29486
29487         * modules/getpass-gnu (Depends-on): Add fseeko.
29488
29489 2008-05-19  Simon Josefsson  <simon@josefsson.org>
29490
29491         * modules/base64-tests: New file.
29492
29493 2008-05-19  Bo Borgerson <gigabo@gmail.com>
29494
29495         * lib/base64.c (base64_decode_ctx): If a decode context structure
29496         was passed in use it to ignore newlines.  If a context structure
29497         was _not_ passed in, continue to treat newlines as garbage (this
29498         is the historical behavior).  Formerly base64_decode.
29499         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
29500         takes a decode context structure.
29501         * lib/base64.h (base64_decode): Macro for four-argument calls.
29502         (base64_decode_alloc): Likewise.
29503         * lib/base64.c (base64_decode_ctx): If a decode context structure
29504         was passed in use it to ignore newlines.  If a context structure
29505         was _not_ passed in, continue to treat newlines as garbage (this
29506         is the historical behavior).  Formerly base64_decode.
29507         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
29508         takes a decode context structure.
29509         * lib/base64.h (base64_decode): Macro for four-argument calls.
29510         (base64_decode_alloc): Likewise.
29511
29512 2008-05-19  Jim Meyering  <meyering@redhat.com>
29513
29514         avoid a warning from gcc
29515         * lib/trim.c (IF_LINT): Define.
29516         (trim2): Use it to avoid a "may be used uninitialized" warning.
29517
29518         Fix doc typo.
29519         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
29520
29521 2008-05-19  Bruno Haible  <bruno@clisp.org>
29522
29523         * doc/glibc-functions/getpass.texi: Document limits of other
29524         implementations.
29525
29526 2008-05-19  Simon Josefsson  <simon@josefsson.org>
29527             Bruno Haible <bruno@clisp.org>
29528
29529         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
29530
29531 2008-05-18  Bruno Haible  <bruno@clisp.org>
29532
29533         * modules/propername: New file, from GNU gettext.
29534         * lib/propername.h: New file, from GNU gettext.
29535         * lib/propername.c: New file, from GNU gettext.
29536         * MODULES.html.sh (Internationalization functions): Add propername.
29537
29538 2008-05-16  Jim Meyering  <meyering@redhat.com>
29539             Bruno Haible  <bruno@clisp.org>
29540
29541         Avoid some warnings from "gcc -Wshadow".
29542         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
29543
29544 2008-05-15  Eric Blake  <ebb9@byu.net>
29545
29546         Extend previous patch to cygwin 1.7.0.
29547         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
29548         fast implementation in cygwin >= 1.7.0.
29549         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
29550         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29551
29552 2008-05-15  Bruno Haible  <bruno@clisp.org>
29553
29554         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
29555         implementation in glibc >= 2.9.
29556         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
29557         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29558
29559 2008-05-15  Bruno Haible  <bruno@clisp.org>
29560
29561         * MODULES.html.sh (Internationalization functions): Remove linebreak.
29562         (Unicode string functions): Add unilbrk/*.
29563         Reported by Karl Berry.
29564
29565 2008-05-15  Eric Blake  <ebb9@byu.net>
29566
29567         Fix violation of <stdbool.h> replacement in regex.
29568         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
29569         * lib/regexec.c (re_search_internal): Likewise.
29570         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
29571
29572 2008-05-15  Jim Meyering  <meyering@redhat.com>
29573
29574         avoid distracting test output when git or cvs is not found
29575         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
29576         * tests/test-vc-list-files-git.sh: Likewise.
29577
29578 2008-05-15  Eric Blake  <ebb9@byu.net>
29579
29580         Glibc finally accepted the memmem speedup code, bugzilla #5514.
29581         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
29582         glibc version.
29583         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
29584         * doc/posix-functions/strstr.texi (strstr): Likewise.
29585         * lib/str-two-way.h (MAX): Sychronize with glibc.
29586
29587 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
29588
29589         * lib/regcomp.c (optimize_utf8): Add a note on why we test
29590         opr.ctx_type.
29591         (calc_first): Initialize constraint field.
29592         (duplicate_node_closure): Use it instead of special casing ANCHORS.
29593         Fix grammar.
29594         (duplicate_node): Merge constraint field for all node types.
29595         (calc_eclosure_iter): Look at constraint field for all node types.
29596         * lib/regex_internal.c (create_cd_newstate): Don't look at
29597         opr.ctx_type.
29598
29599 2008-05-14  Bruno Haible  <bruno@clisp.org>
29600
29601         Help GCC to do better code generation.
29602         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
29603         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
29604         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
29605         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
29606         Declare with attribute 'malloc' if supported.
29607
29608 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
29609
29610         use "echo STR|wc -c" rather than unportable "expr length STR"
29611         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
29612         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
29613
29614 2008-05-14  Jim Meyering  <meyering@redhat.com>
29615
29616         use dd ibs=$n count=1 ... rather than less-portable head -c$n
29617         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
29618         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
29619         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
29620         via Collin Lasse.
29621
29622 2008-05-14  Eric Blake  <ebb9@byu.net>
29623
29624         Avoid quadratic growth in gl_LIBSOURCES.
29625         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
29626         Suggested by Bruno Haible.
29627
29628         Test xmemdup0.
29629         * modules/xmemdup0-tests: New file.
29630         * tests/test-xmemdup0.c: Likewise.
29631
29632 2008-05-13  Eric Blake  <ebb9@byu.net>
29633
29634         Split xmemdup0 into its own module.
29635         * modules/xmemdup0: New file.
29636         * lib/xmemdup0.h: Likewise.
29637         * lib/xmemdup0.c: Likewise.
29638         * MODULES.html.sh (Memory management functions): Add xmemdup0.
29639         * lib/xalloc.h (xmemdup0): Remove.
29640         * lib/xmalloc.c (xmemdup0): Likewise.
29641
29642 2008-05-13  Eric Blake  <ebb9@byu.net>
29643             Bruno Haible  <bruno@clisp.org>
29644
29645         Reduce number of forks required during autoconf.
29646         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
29647         and gl_LIBSOURCES_DIR.
29648         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
29649         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
29650         m4_syscmd per file.
29651         <m4_foreach_w>: Move...
29652         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
29653
29654 2008-05-13  Eric Blake  <ebb9@byu.net>
29655
29656         * gnulib-tool: Fix various comment typos.
29657
29658 2008-05-12  Bruno Haible  <bruno@clisp.org>
29659
29660         Tailor the linebreaking algorithm.
29661         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
29662
29663 2008-05-12  Bruno Haible  <bruno@clisp.org>
29664
29665         Update to Unicode 5.0.0.
29666         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
29667         LBP_JV, LBP_JT. Redistribute values.
29668         (unilbrk_table): Change size.
29669         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
29670         Unicode TR#14 rev. 22.
29671         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
29672         LBP_JV, LBP_JT. Redistribute values.
29673         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
29674         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
29675         Update.
29676         * lib/unilbrk/lbrkprop1.h: Regenerated.
29677         * lib/unilbrk/lbrkprop2.h: Regenerated.
29678         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
29679         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
29680         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
29681         Likewise.
29682         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
29683         Likewise.
29684         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
29685         result.
29686         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
29687         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
29688         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
29689         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
29690         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
29691         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
29692
29693 2008-05-11  Bruno Haible  <bruno@clisp.org>
29694
29695         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
29696
29697 2008-05-11  Bruno Haible  <bruno@clisp.org>
29698
29699         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
29700         * modules/unilbrk/gen-lbrk: New file.
29701
29702 2008-05-11  Bruno Haible  <bruno@clisp.org>
29703
29704         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
29705         * m4/sha512.m4 (gl_SHA512): Likewise.
29706
29707 2008-05-11  Jim Meyering  <meyering@redhat.com>
29708
29709         New modules: crypto/sha256, crypto/sha512 (from coreutils)
29710         * modules/crypto/sha256: New file.
29711         * modules/crypto/sha512: Likewise.
29712         * lib/sha256.c: Likewise.
29713         * lib/sha256.h: Likewise.
29714         * lib/sha512.c: Likewise.
29715         * lib/sha512.h: Likewise.
29716         * lib/u64.h: Likewise.
29717         * m4/sha256.m4: Likewise.
29718         * m4/sha512.m4: Likewise.
29719         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
29720
29721 2008-05-10  Bruno Haible  <bruno@clisp.org>
29722
29723         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
29724         (Input/Output <stdio.h>): Add xprintf.
29725         (Signal handling <signal.h>): Add strsignal.
29726         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
29727         (Core language properties): Add func.
29728         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
29729         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
29730         strings.
29731         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
29732         (Input/output): New section.
29733         (File system functions): Add openat-die, stat-macros.
29734         (Networking functions): Add sockets.
29735         (Unicode string functions): Add unictype/*.
29736         (Support for building libraries and executables): Add gperf.
29737         (Support for building documentation): Add agpl-3.0.
29738         (Misc): Add nocrash.
29739
29740 2008-05-10  Bruno Haible  <bruno@clisp.org>
29741
29742         * modules/unictype/gen-ctype: New file.
29743
29744 2008-05-10  Jim Meyering  <meyering@redhat.com>
29745
29746         Make chdir-safer.c more efficient on a system with no symlinks.
29747         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
29748         also if ELOOP is zero.  Suggested by Bruno Haible.
29749
29750         Make chdir-safer.c slightly safer.
29751         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
29752         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
29753
29754         Avoid compile failure on systems without ELOOP (like mingw).
29755         * lib/chdir-safer.c (ELOOP): Define if not already defined.
29756         Reported by Bruno Haible.
29757
29758 2008-05-10  Bruno Haible  <bruno@clisp.org>
29759
29760         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
29761         (is_utf8_encoding): Use a case-insensitive comparison.
29762         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
29763         streq.
29764
29765 2008-05-10  Bruno Haible  <bruno@clisp.org>
29766
29767         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
29768         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
29769         * lib/unilbrk/ulc-common.h (iconv_string_length,
29770         iconv_string_keeping_offsets): Remove declarations.
29771         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
29772         Don't include <iconv.h>, streq.h, xsize.h.
29773         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
29774         conversion.
29775         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
29776         <iconv.h>, streq.h, xsize.h.
29777         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
29778         conversion.
29779         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
29780         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
29781         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
29782         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
29783
29784 2008-05-10  Bruno Haible  <bruno@clisp.org>
29785
29786         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
29787         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
29788
29789         * modules/unilbrk/u32-width-linebreaks-tests: New file.
29790         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
29791
29792         * modules/unilbrk/u16-width-linebreaks-tests: New file.
29793         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
29794
29795         * modules/unilbrk/u8-width-linebreaks-tests: New file.
29796         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
29797
29798         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
29799         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
29800
29801         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
29802         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
29803
29804         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
29805         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
29806
29807         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
29808         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
29809
29810 2008-05-10  Bruno Haible  <bruno@clisp.org>
29811
29812         Split up 'linebreak' module.
29813         * lib/unilbrk.h: New file, based on lib/linebreak.h.
29814         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
29815         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
29816         modifications.
29817         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
29818         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
29819         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
29820         lib/linebreak.c.
29821         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
29822         lib/linebreak.c.
29823         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
29824         lib/linebreak.c.
29825         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
29826         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
29827         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
29828         lib/linebreak.c.
29829         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
29830         lib/linebreak.c.
29831         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
29832         lib/linebreak.c.
29833         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
29834         lib/linebreak.c.
29835         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
29836         lib/linebreak.c.
29837         * modules/unilbrk/base: New file.
29838         * modules/unilbrk/tables: New file.
29839         * modules/unilbrk/u8-possible-linebreaks: New file.
29840         * modules/unilbrk/u16-possible-linebreaks: New file.
29841         * modules/unilbrk/u32-possible-linebreaks: New file.
29842         * modules/unilbrk/ulc-common: New file.
29843         * modules/unilbrk/ulc-possible-linebreaks: New file.
29844         * modules/unilbrk/u8-width-linebreaks: New file.
29845         * modules/unilbrk/u16-width-linebreaks: New file.
29846         * modules/unilbrk/u32-width-linebreaks: New file.
29847         * modules/unilbrk/ulc-width-linebreaks: New file.
29848         * lib/linebreak.h: Remove file.
29849         * lib/linebreak.c: Remove file.
29850         * m4/linebreak.m4: Remove file.
29851         * modules/linebreak: Remove file.
29852         * NEWS: Mention the changes.
29853
29854 2008-05-09  Eric Blake  <ebb9@byu.net>
29855
29856         Add xmemdup0.
29857         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
29858         implementation.
29859         * lib/xmalloc.c (xmemdup0): New C implementation.
29860
29861 2008-05-08  Bruno Haible  <bruno@clisp.org>
29862
29863         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
29864
29865 2008-05-07  Eric Blake  <ebb9@byu.net>
29866
29867         Support cross-compilation of <wctype.h>.
29868         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
29869         AC_CACHE_CHECK.
29870
29871 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
29872
29873         * build-aux/vc-list-files: Add support for bzr.
29874
29875 2008-05-03  Jim Meyering  <meyering@redhat.com>
29876
29877         avoid failed assertion with tight malloc
29878         * tests/test-getndelim2.c: Correct an off-by-one assertion.
29879
29880 2008-05-03  Simon Josefsson  <simon@josefsson.org>
29881
29882         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
29883         are needed from arpa/inet.h.
29884         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
29885         Reported by Bruno Haible.
29886
29887 2008-05-02  Jim Meyering  <meyering@redhat.com>
29888
29889         avoid compilation error on FreeBSD 6
29890         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
29891
29892 2008-05-01  Jim Meyering  <meyering@redhat.com>
29893
29894         useless-if-before-free: correct --help's exit status description
29895         * build-aux/useless-if-before-free (usage): Like grep, exit 0
29896         for one or more matches, etc.  Reported by Bruno Haible.
29897
29898         vc-list-files: make the stand-alone gnulib test work
29899         * modules/vc-list-files-tests (configure.ac):
29900         Define and AC_SUBST abs_aux_dir.
29901         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
29902         $(abs_top_srcdir) to each script and having each of them
29903         duplicate the work of setting PATH, set PATH here, using
29904         the new variable, abs_aux_dir instead.
29905         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
29906         * tests/test-vc-list-files-git.sh: Likewise.
29907         Reported by Bruno Haible.
29908
29909 2008-05-01  Bruno Haible  <bruno@clisp.org>
29910
29911         * lib/getndelim2.c (getndelim2): Fix newsize computation during
29912         reallocation. Rename 'done' to 'found_delimiter'.
29913
29914 2008-05-01  Jim Meyering  <meyering@redhat.com>
29915
29916         vc-list-files: accommodate /bin/sh like the one from Solaris 10
29917         * build-aux/vc-list-files: Use `...`, not $(...).
29918
29919 2008-04-30  Jim Meyering  <meyering@redhat.com>
29920
29921         add tests for vc-list-files
29922         * modules/vc-list-files-tests: New module.
29923         * tests/test-vc-list-files-cvs.sh: New file.
29924         * tests/test-vc-list-files-git.sh: New file.
29925
29926         avoid a warning from gcc
29927         * lib/getndelim2.c (IF_LINT): Define.
29928         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
29929
29930         vc-list-files: work properly with build-aux/cvsu, too
29931         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
29932         to all cvs-based clauses.
29933
29934         vc-list-files: work properly in the CVS+awk case, too
29935         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
29936
29937         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
29938         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
29939         take more than one file argument, so .  Add quotes, just in case $dir
29940         ever contains a shell meta-character.  Prompted by Soren Hansen in
29941         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
29942
29943 2008-04-29  Eric Blake  <ebb9@byu.net>
29944
29945         Optimize getndelim2 to use block operations when possible.
29946         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
29947         freadseek, and memchr2.
29948         * lib/getndelim2.c (getndelim2): Use them for block reads.
29949
29950 2008-04-29  Bruno Haible  <bruno@clisp.org>
29951
29952         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
29953         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29954         * modules/inet_ntop (Depends-on): Add extensions.
29955         * modules/inet_pton (Depends-on): Likewise.
29956         Reported by Simon Josefsson.
29957
29958 2008-04-29  Jim Meyering  <meyering@redhat.com>
29959
29960         When the is more than one match in a block, match all of them.
29961         * build-aux/useless-if-before-free: Iterate through each block
29962         until there are no more matches.
29963
29964         Fix broken useless-if-before-free script.
29965         * build-aux/useless-if-before-free: Fix typo: missing "?" after
29966         the expression to match cast of argument to free-like function.
29967
29968 2008-04-29  Eric Blake  <ebb9@byu.net>
29969
29970         Use new header.
29971         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
29972
29973 2008-04-29  Jim Meyering  <meyering@redhat.com>
29974
29975         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
29976         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
29977         by gnulib to exist and to declare e.g., inet_ntop.
29978         Don't include "inet_ntop.h", now removed.
29979
29980         * m4/arpa_inet_h.m4: Remove trailing blanks.
29981
29982 2008-04-29  Eric Blake  <ebb9@byu.net>
29983
29984         Silence valgrind on safe reads beyond potential array bounds.
29985         * lib/rawmemchr.valgrind: New file.
29986         * lib/strchrnul.valgrind: Likewise.
29987         * modules/rawmemchr (Files): Distribute new file.
29988         * modules/strchrnul (Files): Likewise.
29989         Suggested by Bruno Haible.
29990
29991 2008-04-29  Bruno Haible  <bruno@clisp.org>
29992
29993         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
29994         (inet_ntop, inet_pton): Change portability warning's wording.
29995         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
29996         Invoke gl_CHECK_NEXT_HEADERS.
29997         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
29998         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
29999         set ARPA_INET_H.
30000         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
30001         * modules/arpa_inet (Description): No longer only for systems that
30002         lack it.
30003         (Depends-on): Add include_next.
30004         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
30005         HAVE_ARPA_INET_H.
30006
30007 2008-04-29  Jim Meyering  <meyering@redhat.com>
30008
30009         * modules/mkdir (License): Re-license as LGPLv2+.
30010
30011 2008-04-29  Bruno Haible  <bruno@clisp.org>
30012
30013         * modules/rawmemchr (Maintainer): Set to Eric.
30014         * modules/strchrnul (Maintainer): Likewise.
30015
30016 2008-04-29  Simon Josefsson  <simon@josefsson.org>
30017
30018         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
30019         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
30020
30021         * modules/arpa_inet (arpa/inet.h): Use them.
30022
30023 2008-04-28  Eric Blake  <ebb9@byu.net>
30024
30025         Test getndelim2.
30026         * modules/getndelim2-tests: New file.
30027         * tests/test-getndelim2.c: Likewise.
30028         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
30029         stream.
30030         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
30031
30032         * MODULES.html.sh: Document new module.
30033
30034 2008-04-20  Bruno Haible  <bruno@clisp.org>
30035
30036         * lib/c-stack.c (die): Use raise.
30037         * modules/c-stack (Depends-on): Add raise.
30038
30039 2008-04-28  Bruno Haible  <bruno@clisp.org>
30040
30041         Expect rpmatch to be declared.
30042         * lib/yesno.c (rpmatch): Remove declaration.
30043
30044         Declare rpmatch.
30045         * lib/stdlib.in.h (rpmatch): New declaration.
30046         * lib/rpmatch.c: Include <stdlib.h> first.
30047         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
30048         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
30049         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
30050         HAVE_RPMATCH.
30051         * modules/rpmatch (Depends-on): Add stdlib, extensions.
30052         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
30053         (Include): Set to <stdlib.h>.
30054         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
30055         HAVE_RPMATCH.
30056         * NEWS: Document the change.
30057
30058 2008-04-28  Bruno Haible  <bruno@clisp.org>
30059
30060         Change rpmatch to use nl_langinfo when appropriate.
30061         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
30062         (N_): New macro.
30063         (localized_pattern): New function/macro.
30064         (try): Remove match, nomatch arguments. Copy the pattern into safe
30065         memory before caching it.
30066         (rpmatch): Use localized_pattern. Add translator comments.
30067         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
30068         Suggested by Eric Blake.
30069         * modules/rpmatch (Depends-on): Add stdbool.
30070
30071 2008-04-28  Eric Blake  <ebb9@byu.net>
30072
30073         Add rawmemchr module, matching glibc.
30074         * modules/string (Makefile.am): New indicator.
30075         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
30076         * lib/string.in.h (rawmemchr): Declare when appropriate.
30077         * modules/rawmemchr: New file.
30078         * m4/rawmemchr.m4: Likewise.
30079         * lib/rawmemchr.c: Likewise.
30080         * modules/rawmemchr-tests: Likewise.
30081         * tests/test-rawmemchr.c: Likewise.
30082         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
30083         module.
30084         * modules/strchrnul (Depends-on): Add rawmemchr.
30085         * lib/strchrnul.c (strchrnul): Optimize a corner case.
30086
30087         Whitespace cleanup.
30088         * tests/test-strchrnul.c: Reindent.
30089         * lib/strchrnul.c: Likewise.
30090
30091         Optimize and test strchrnul.
30092         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
30093         * modules/strchrnul-tests: New file.
30094         * tests/test-strchrnul.c: Likewise.
30095
30096         Remove intprops dependency.
30097         * modules/memchr (Depends-on): Remove intprops.
30098         * modules/memrchr (Depends-on): Likewise.
30099         * modules/memchr2 (Depends-on): Likewise.
30100         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
30101         * lib/memrchr.c (__memrchr): Likewise.
30102         * lib/memrchr2.c (memchr2): Likewise.
30103         Reported by Simon Josefsson.
30104
30105 2008-04-28  Simon Josefsson  <simon@josefsson.org>
30106
30107         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
30108         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30109
30110 2008-04-28  Simon Josefsson  <simon@josefsson.org>
30111
30112         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
30113
30114         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
30115
30116         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
30117
30118         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
30119         declarations.
30120         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
30121
30122         * m4/inet_pton.m4: Don't check for header files.
30123
30124         * m4/inet_ntop.m4: Don't check for header files.
30125
30126 2008-04-28  Simon Josefsson  <simon@josefsson.org>
30127
30128         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
30129         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
30130         trigger for cygwin).
30131         Reported by Bruno Haible  <bruno@clisp.org>.
30132
30133 2008-04-28  Bruno Haible  <bruno@clisp.org>
30134
30135         * doc/posix-functions/strdup.texi: Mention mingw problem.
30136
30137 2008-04-27  Bruno Haible  <bruno@clisp.org>
30138
30139         * modules/stat-time-tests (Depends-on): Add sleep.
30140         * tests/test-stat-time.c (force_unlink): New function.
30141         (cleanup): Use it.
30142         (test_mtime): Remove the ctime related tests.
30143         (test_ctime): New function, containing the ctime related tests.
30144         (main): Call test_ctime, except on native Windows platforms.
30145
30146 2008-04-27  Bruno Haible  <bruno@clisp.org>
30147
30148         * lib/rpmatch.c (rpmatch): Add some comments.
30149         Reported by James Youngman <jay@gnu.org>.
30150
30151 2008-04-27  Bruno Haible  <bruno@clisp.org>
30152
30153         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
30154         quiet NaNs.
30155
30156 2008-04-27  Bruno Haible  <bruno@clisp.org>
30157
30158         Make test-yesno.sh work on mingw.
30159         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
30160         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
30161         (main): Set stdin to binary mode.
30162         * modules/yesno-tests (Depends-on): Add binary-io.
30163
30164 2008-04-27  Bruno Haible  <bruno@clisp.org>
30165
30166         Fix 'isfinite' on x86, x86_64, ia64 platforms.
30167         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
30168         argument that lie outside the IEEE 854 domain.
30169         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
30170         (gl_ISFINITE): Use it.
30171         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
30172
30173 2008-04-27  Bruno Haible  <bruno@clisp.org>
30174
30175         Allow local renaming in config.h.
30176         * lib/memrchr.c (memrchr): Don't undefine outside libc.
30177
30178 2008-04-27  Bruno Haible  <bruno@clisp.org>
30179
30180         * lib/memchr.c (__memchr): Change type of 'i'.
30181         * lib/memchr2.c (memchr2): Likewise.
30182
30183 2008-04-26  Eric Blake  <ebb9@byu.net>
30184         and Bruno Haible  <bruno@clisp.org>
30185
30186         Optimize and test memrchr.
30187         * modules/memrchr (Depends-on): Add intprops.
30188         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
30189         * modules/memrchr-tests: New file.
30190         * tests/test-memrchr.c: New file.
30191
30192 2008-04-26  Bruno Haible  <bruno@clisp.org>
30193
30194         Add tentative support for DragonFly BSD.
30195         * lib/stdio-impl.h: Add macros for DragonFly BSD.
30196         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
30197         fp.
30198         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
30199         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
30200         * lib/fpurge.c (fpurge): Likewise.
30201         * lib/freadable.c (freaadable): Likewise.
30202         * lib/freadahead.c (freadahead): Likewise.
30203         * lib/freading.c (freading): Likewise.
30204         * lib/freadptr.c (freadptr): Likewise.
30205         * lib/freadseek.c (freadptrinc): Likewise.
30206         * lib/fseeko.c (fseeko): Likewise.
30207         * lib/fseterr.c (fseterr): Likewise.
30208         * lib/fwritable.c (fwritable): Likewise.
30209         * lib/fwriting.c (fwriting): Likewise.
30210
30211 2008-04-26  Bruno Haible  <bruno@clisp.org>
30212
30213         * lib/stdio-impl.h: New file.
30214         * lib/fbufmode.c: Include stdio-impl.h.
30215         (fbufmode): Use fp_, remove redundant #defines.
30216         * lib/fflush.c: Include stdio-impl.h.
30217         (clear_ungetc_buffer): Remove redundant #defines.
30218         * lib/fpurge.c: Include stdio-impl.h.
30219         (fpurge): Remove redundant #defines.
30220         * lib/freadable.c: Include stdio-impl.h.
30221         (freadable): Remove redundant #defines.
30222         * lib/freadahead.c: Include stdio-impl.h.
30223         (freadahead): Remove redundant #defines.
30224         * lib/freading.c: Include stdio-impl.h.
30225         (freading): Remove redundant #defines.
30226         * lib/freadptr.c: Include stdio-impl.h.
30227         (freadptr): Remove redundant #defines.
30228         * lib/freadseek.c: Include stdio-impl.h.
30229         (freadptrinc): Remove redundant #defines.
30230         * lib/fseeko.c: Include stdio-impl.h.
30231         (rpl_fseeko): Remove redundant #defines.
30232         * lib/fseterr.c: Include stdio-impl.h.
30233         (fseterr): Remove redundant #defines.
30234         * lib/fwritable.c: Include stdio-impl.h.
30235         (fwritable: Remove redundant #defines.
30236         * lib/fwriting.c: Include stdio-impl.h.
30237         (fwriting): Remove redundant #defines.
30238         * modules/fbufmode (Files): Add lib/stdio-impl.h.
30239         * modules/fflush (Files): Likewise.
30240         * modules/fpurge (Files): Likewise.
30241         * modules/freadable (Files): Likewise.
30242         * modules/freadahead (Files): Likewise.
30243         * modules/freading (Files): Likewise.
30244         * modules/freadptr (Files): Likewise.
30245         * modules/freadseek (Files): Likewise.
30246         * modules/fseeko (Files): Likewise.
30247         * modules/fseterr (Files): Likewise.
30248         * modules/fwritable (Files): Likewise.
30249         * modules/fwriting (Files): Likewise.
30250
30251 2008-04-26  Bruno Haible  <bruno@clisp.org>
30252
30253         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
30254         restore_seek_optimization, update_fpos_cache): New functions, extracted
30255         from rpl_fflush.
30256         (rpl_fflush): Use them.
30257         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
30258         (gl_REPLACE_FFLUSH): Use it.
30259
30260 2008-04-26  Bruno Haible  <bruno@clisp.org>
30261
30262         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
30263         on Solaris.
30264         * tests/test-xstrtoimax.sh: Likewise.
30265         * tests/test-xstrtoumax.sh: Likewise.
30266         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30267
30268 2008-04-26  Bruno Haible  <bruno@clisp.org>
30269
30270         * modules/memchr-tests: New file.
30271         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
30272
30273 2008-04-26  Eric Blake  <ebb9@byu.net>
30274             Bruno Haible  <bruno@clisp.org>
30275
30276         * lib/memchr.c: Include intprops.h.
30277         (__memchr): Optimize parallel detection of matching bytes. Rename local
30278         variables. Add explanatory comments.
30279
30280 2008-04-26  Bruno Haible  <bruno@clisp.org>
30281
30282         Fix module 'memchr', broken since 2000-10-28.
30283         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
30284
30285 2008-04-26  Bruno Haible  <bruno@clisp.org>
30286
30287         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
30288         comments.
30289
30290 2008-04-25  Eric Blake  <ebb9@byu.net>
30291
30292         Use native fstatat on cygwin 1.7.0.
30293         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
30294         first.
30295
30296 2008-04-23  Eric Blake  <ebb9@byu.net>
30297
30298         Improve memchr2 performance.
30299         * lib/memchr2.c (memchr2): Further optimize parallel detection of
30300         NUL bytes.
30301         * modules/memchr2 (Depends-on): Use intprops.h.
30302
30303 2008-04-23  Simon Josefsson  <simon@josefsson.org>
30304
30305         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
30306         an inline function instead of a CPP macro.  Patch by Ben Pfaff
30307         <blp@cs.stanford.edu>.
30308
30309 2008-04-23  Simon Josefsson  <simon@josefsson.org>
30310
30311         * lib/arpa_inet.in.h: New file.
30312
30313         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
30314         (Makefile.am): Sed in substitute header file.
30315
30316         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
30317         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
30318
30319         * modules/inet_ntop (configure.ac): Use
30320         gl_ARPA_INET_MODULE_INDICATOR.
30321
30322         * modules/inet_pton (configure.ac): Use
30323         gl_ARPA_INET_MODULE_INDICATOR.
30324
30325 2008-04-22  Jim Meyering  <meyering@redhat.com>
30326
30327         * modules/verify (License): Re-license as LGPLv2+.
30328
30329 2008-04-22  Simon Josefsson  <simon@josefsson.org>
30330
30331         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
30332         parameter to void* as per POSIX standard (MinGW uses char*).
30333
30334 2008-04-21  Bruno Haible  <bruno@clisp.org>
30335
30336         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
30337         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
30338         Define to replacements if REPLACE_ISWCNTRL is 1.
30339         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
30340         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
30341         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
30342         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
30343         what it fixes.
30344         * doc/posix-functions/iswalpha.texi: Likewise.
30345         * doc/posix-functions/iswblank.texi: Likewise.
30346         * doc/posix-functions/iswcntrl.texi: Likewise.
30347         * doc/posix-functions/iswdigit.texi: Likewise.
30348         * doc/posix-functions/iswgraph.texi: Likewise.
30349         * doc/posix-functions/iswlower.texi: Likewise.
30350         * doc/posix-functions/iswprint.texi: Likewise.
30351         * doc/posix-functions/iswpunct.texi: Likewise.
30352         * doc/posix-functions/iswspace.texi: Likewise.
30353         * doc/posix-functions/iswupper.texi: Likewise.
30354         * doc/posix-functions/iswxdigit.texi: Likewise.
30355         Reported by Alain Guibert.
30356
30357 2008-04-21  Bruno Haible  <bruno@clisp.org>
30358
30359         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
30360         Patch by Alain Guibert.
30361
30362 2008-04-21  Bruno Haible  <bruno@clisp.org>
30363
30364         Fix test failures on mingw.
30365         * tests/test-xstrtol.c (print_no_progname): New function.
30366         (main): Install it in error_print_progname hook.
30367         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
30368         * tests/test-xstrtoimax.sh: Likewise.
30369         * tests/test-xstrtoumax.sh: Likewise.
30370
30371 2008-04-21  Bruno Haible  <bruno@clisp.org>
30372
30373         Fix test failure on mingw.
30374         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
30375
30376 2008-04-21  Bruno Haible  <bruno@clisp.org>
30377
30378         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
30379         Actually assign a value.
30380
30381 2008-04-20  Bruno Haible  <bruno@clisp.org>
30382
30383         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
30384         take 2.
30385         * lib/canonicalize.c (canonicalize_file_name): Elide if the
30386         'canonicalize-lgpl' module is also used.
30387         * lib/canonicalize-lgpl.c: Undo last change.
30388         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
30389
30390 2008-04-20  Bruno Haible  <bruno@clisp.org>
30391
30392         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
30393         config.h. Provide _mkdir based fallback for mingw.
30394         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
30395         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
30396         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
30397         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
30398         rather than defining mkdir in config.h.
30399         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
30400         (gl_SYS_STAT_H_DEFAULTS): New macro.
30401         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
30402         HAVE_IO_H any more.
30403         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
30404         HAVE_DECL_MKDIR and HAVE_IO_H.
30405
30406 2008-04-20  Bruno Haible  <bruno@clisp.org>
30407
30408         * lib/isapipe.c: Port to native Windows platforms.
30409
30410 2008-04-20  Bruno Haible  <bruno@clisp.org>
30411
30412         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
30413
30414 2008-04-21  Eric Blake  <ebb9@byu.net>
30415
30416         Work around preprocessors that don't handle UINTMAX_MAX.
30417         * lib/memchr2.c (memchr2): Avoid embedded #if.
30418         Reported by Alain Guibert, fix suggested by Bruno Haible.
30419
30420 2008-04-21  Simon Josefsson  <simon@josefsson.org>
30421
30422         * doc/posix-functions/strftime.texi (strftime): Explain better
30423         Windows incompatibility.  Suggested by Micah Cowan
30424         <micah@cowan.name>.
30425
30426 2008-04-20  Bruno Haible  <bruno@clisp.org>
30427
30428         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
30429         unistr/u8-mblen.
30430
30431 2008-04-20  Bruno Haible  <bruno@clisp.org>
30432
30433         Fix test failure on platforms with non-GNU iconv.
30434         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
30435         (U_TO_U8): Use it, rather than u16_to_u8.
30436         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
30437         units at the end of the input string.
30438         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
30439
30440 2008-04-20  Bruno Haible  <bruno@clisp.org>
30441
30442         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
30443         when the resulting length is 0.
30444         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
30445
30446 2008-04-20  Bruno Haible  <bruno@clisp.org>
30447
30448         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
30449         works.
30450         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
30451
30452 2008-04-20  Bruno Haible  <bruno@clisp.org>
30453
30454         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
30455         * modules/tsearch-tests (configure.ac): Test for initstate function.
30456
30457 2008-04-20  Bruno Haible  <bruno@clisp.org>
30458
30459         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
30460         for nlink_t if missing.
30461         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
30462
30463 2008-04-19  Bruno Haible  <bruno@clisp.org>
30464
30465         Work around snprintf bug on Linux libc5.
30466         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
30467         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
30468         gl_SNPRINTF_SIZE1.
30469         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30470         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
30471         that test failed.
30472         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
30473         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
30474         * modules/snprintf (Files): Add m4/printf.m4.
30475         * modules/vsnprintf (Files): Likewise.
30476         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
30477         * doc/posix-functions/vsnprintf.texi: Likewise.
30478
30479 2008-04-19  Bruno Haible  <bruno@clisp.org>
30480
30481         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
30482         from 0.0058 to less than 10^-7.
30483
30484 2008-04-19  Bruno Haible  <bruno@clisp.org>
30485
30486         Fix rounding when a precision is given.
30487         * lib/vasnprintf.c (is_borderline): New function.
30488         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
30489         9...9x.
30490         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
30491         %e, %g.
30492         * tests/test-vasprintf-posix.c (test_function): Likewise.
30493         * tests/test-snprintf-posix.h (test_function): Likewise.
30494         * tests/test-sprintf-posix.h (test_function): Likewise.
30495         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
30496         * tests/test-printf-posix.h (test_function): Likewise.
30497         * tests/test-printf-posix.output: Update.
30498         Reported by John Darrington <john@darrington.wattle.id.au> via
30499         Ben Pfaff <blp@cs.stanford.edu>.
30500
30501 2008-04-18  Simon Josefsson  <simon@josefsson.org>
30502
30503         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
30504         Suggested by Bruno Haible <bruno@clisp.org>.
30505
30506 2008-04-17  Bruno Haible  <bruno@clisp.org>
30507
30508         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
30509         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
30510         implementation.
30511         Patch by Bruce Merry <bmerry@gmail.com>.
30512
30513 2008-04-17  Simon Josefsson  <simon@josefsson.org>
30514
30515         * doc/posix-functions/strftime.texi (strftime): Mention that %e
30516         doesn't work under Windows.
30517
30518 2008-04-16  Bruno Haible  <bruno@clisp.org>
30519
30520         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
30521         New macros.
30522         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
30523         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
30524         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
30525         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
30526         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
30527         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
30528         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
30529         macros.
30530         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
30531         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
30532         Northern Sotho, Uighur.
30533
30534 2008-04-16  Bruno Haible  <bruno@clisp.org>
30535
30536         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
30537         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
30538         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
30539         Reported by Daniel Bergström <daniel@octocode.com>.
30540
30541 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
30542             Bruno Haible  <bruno@clisp.org>
30543
30544         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
30545         function.
30546         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
30547         New functions, mostly extracted from gl_locale_name_default.
30548         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
30549
30550 2008-04-16  Eric Blake  <ebb9@byu.net>
30551
30552         Adjust strtod detection to catch glibc 2.7 bug.
30553         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
30554         Reported by John Gatewood Ham.
30555
30556 2008-04-16  Bruno Haible  <bruno@clisp.org>
30557
30558         Add tentative support for Linux libc5.
30559         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
30560         * lib/fpurge.c (fpurge): Likewise.
30561         * lib/freadable.c (freadable): Likewise.
30562         * lib/freadahead.c (freadahead): Likewise.
30563         * lib/freading.c (freading): Likewise.
30564         * lib/freadptr.c (freadptr): Likewise.
30565         * lib/freadseek.c (freadptrinc): Likewise.
30566         * lib/fseeko.c (rpl_fseeko): Likewise.
30567         * lib/fseterr.c (fseterr): Likewise.
30568         * lib/fwritable.c (fwritable): Likewise.
30569         * lib/fwriting.c (fwriting): Likewise.
30570         Reported by Alain Guibert <alguibert+bts@free.fr>.
30571
30572 2008-04-15  Bruno Haible  <bruno@clisp.org>
30573
30574         * modules/mathl (configure.ac): Define module indicator.
30575
30576 2008-04-15  Bruno Haible  <bruno@clisp.org>
30577
30578         * lib/logl.c (logl): Remove unused variables.
30579
30580 2008-04-15  Bruno Haible  <bruno@clisp.org>
30581
30582         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
30583         fails.
30584
30585 2008-04-15  Bruno Haible  <bruno@clisp.org>
30586
30587         * lib/trim.c (trim2): Fix argument of isspace() macro.
30588
30589 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
30590
30591         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
30592         to 0.
30593         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
30594
30595 2008-04-14  Bruno Haible  <bruno@clisp.org>
30596
30597         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
30598         AC_LANG_PROGRAM argument.
30599         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
30600         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
30601         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
30602         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
30603         * m4/math_h.m4 (gl_MATH_H): Likewise.
30604         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
30605         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30606         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
30607         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
30608         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
30609         * m4/regex.m4 (gl_REGEX): Likewise.
30610         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
30611         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
30612         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30613         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
30614         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
30615         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
30616         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30617         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
30618
30619 2008-04-14  Jim Meyering  <meyering@redhat.com>
30620
30621         test-strtod: fix typos: s/abs/fabs/
30622         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
30623
30624 2008-04-13  Bruno Haible  <bruno@clisp.org>
30625
30626         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
30627         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
30628         module is also used and while not building the reloc-wrapper.
30629
30630 2008-04-13  Bruno Haible  <bruno@clisp.org>
30631
30632         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
30633
30634 2008-04-13  Bruno Haible  <bruno@clisp.org>
30635
30636         Fix AIX compilation failure introduced on 2008-04-02.
30637         * tests/test-frexp.c (exp): Undefine before redefining.
30638         * tests/test-frexpl.c (exp): Likewise.
30639
30640 2008-04-13  Bruno Haible  <bruno@clisp.org>
30641
30642         Work around a HP-UX stdio bug.
30643         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
30644         * tests/test-ftello.c (main): Likewise.
30645         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
30646         * doc/posix-functions/ftello.texi: Likewise.
30647
30648 2008-04-13  Bruno Haible  <bruno@clisp.org>
30649
30650         Make test-signbit pass on HP-UX/hppa.
30651         * tests/test-signbit.c (minus_zerol): New variable.
30652         (test_signbitl): Use it.
30653
30654 2008-04-13  Bruno Haible  <bruno@clisp.org>
30655
30656         Make truncl work on OSF/1 4.0.
30657         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
30658         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
30659         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
30660         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
30661         HAVE_DECL_TRUNCL.
30662         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
30663         HAVE_DECL_TRUNCL.
30664         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
30665
30666 2008-04-13  Bruno Haible  <bruno@clisp.org>
30667
30668         * lib/unictype.h: Remove trailing comma from enumeration definitions.
30669
30670 2008-04-13  Bruno Haible  <bruno@clisp.org>
30671
30672         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
30673         expression, so as to avoid HP-UX 11 cc compiler bug.
30674
30675 2008-04-13  Bruno Haible  <bruno@clisp.org>
30676
30677         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
30678
30679 2008-04-13  Bruno Haible  <bruno@clisp.org>
30680
30681         * lib/git-merge-changelog.c: Remove empty declaration outside of
30682         functions.
30683
30684 2008-04-13  Bruno Haible  <bruno@clisp.org>
30685
30686         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
30687
30688 2008-04-13  Bruno Haible  <bruno@clisp.org>
30689
30690         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
30691         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
30692         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
30693         also if it exists but lacks definitions of the SHUT_* macros.
30694         * modules/sys_socket (Description): Update.
30695         Reported by Elbert Pol <e.pol@chello.nl>.
30696
30697 2008-04-13  Bruno Haible  <bruno@clisp.org>
30698
30699         * lib/localcharset.c (OS2): Don't redefine if already defined.
30700         Reported by Elbert Pol <e.pol@chello.nl>.
30701
30702 2008-04-13  Bruno Haible  <bruno@clisp.org>
30703
30704         * lib/binary-io.h [__EMX__]: Include <io.h>.
30705         Reported by Elbert Pol <e.pol@chello.nl>.
30706
30707 2008-04-12  Bruno Haible  <bruno@clisp.org>
30708
30709         * lib/fpucw.h: Enable the definitions also for x86_64.
30710         Needed for NetBSD/x86_64.
30711         Reported by Thomas Klausner <tk@giga.or.at>.
30712
30713 2008-04-12  Bruno Haible  <bruno@clisp.org>
30714
30715         * tests/test-strtod.c: Include isnand.h.
30716         (main): Use isnand instead of isnan.
30717         Reported by Jim Meyering.
30718
30719 2008-04-12  Bruno Haible  <bruno@clisp.org>
30720
30721         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
30722         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
30723
30724 2008-04-12  Jim Meyering  <meyering@redhat.com>
30725
30726         * m4/math_h.m4 (gl_MATH_H): Fix typos.
30727
30728 2008-04-12  Bruno Haible  <bruno@clisp.org>
30729
30730         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
30731         Reported by Elbert Pol <e.pol@chello.nl>.
30732
30733 2008-04-12  Eric Blake  <ebb9@byu.net>
30734
30735         Work around Solaris 10 math.h bug.
30736         * m4/math_h.m4 (gl_MATH_H): Check for bug.
30737         (gl_MATH_H_DEFAULTS): Set up default.
30738         * modules/math (Makefile.am): Replace new indicators.
30739         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
30740         * tests/test-math.c (main): Test this.
30741         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
30742         * doc/posix-headers/math.texi (math.h): Mention bug.
30743         Reported by Nelson H. F. Beebe and Jim Meyering.
30744
30745 2008-04-11  Bruno Haible  <bruno@clisp.org>
30746
30747         Adapt to future versions of Apple GCC.
30748         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
30749         Reported by Peter O'Gorman <peter@pogma.com>.
30750
30751 2008-04-11  Bruno Haible  <bruno@clisp.org>
30752
30753         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
30754
30755 2008-04-11  Bruno Haible  <bruno@clisp.org>
30756
30757         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
30758
30759         * modules/getaddrinfo-tests (Makefile.am): Define
30760         test_getaddrinfo_LDADD.
30761
30762 2008-04-11  Bruno Haible  <bruno@clisp.org>
30763
30764         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
30765         (init): Fix syntax error.
30766         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
30767         is declared.
30768
30769 2008-04-11  Bruno Haible  <bruno@clisp.org>
30770
30771         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
30772         * modules/glob (Depends-on): Add stdbool.
30773
30774 2008-04-11  Bruno Haible  <bruno@clisp.org>
30775
30776         * lib/trim.c: Include <string.h>.
30777
30778 2008-04-11  Eric Blake  <ebb9@byu.net>
30779
30780         Avoid compile failure on OS/2.
30781         * lib/regex_internal.h (internal_function): Disable optimization
30782         on OS/2 (__EMX__), where it caused compiler error.
30783         Reported by Elbert Pol.
30784
30785 2008-04-11  Bruno Haible  <bruno@clisp.org>
30786
30787         Flush the standard error stream before aborting. Needed on mingw.
30788         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
30789         * tests/test-array_list.c (ASSERT): Likewise.
30790         * tests/test-array_oset.c (ASSERT): Likewise.
30791         * tests/test-avltree_list.c (ASSERT): Likewise.
30792         * tests/test-avltree_oset.c (ASSERT): Likewise.
30793         * tests/test-avltreehash_list.c (ASSERT): Likewise.
30794         * tests/test-binary-io.c (ASSERT): Likewise.
30795         * tests/test-byteswap.c (ASSERT): Likewise.
30796         * tests/test-c-ctype.c (ASSERT): Likewise.
30797         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
30798         * tests/test-c-strcasestr.c (ASSERT): Likewise.
30799         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
30800         * tests/test-c-strstr.c (ASSERT): Likewise.
30801         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
30802         * tests/test-canonicalize.c (ASSERT): Likewise.
30803         * tests/test-carray_list.c (ASSERT): Likewise.
30804         * tests/test-ceilf1.c (ASSERT): Likewise.
30805         * tests/test-ceilf2.c (ASSERT): Likewise.
30806         * tests/test-ceill.c (ASSERT): Likewise.
30807         * tests/test-count-one-bits.c (ASSERT): Likewise.
30808         * tests/test-fbufmode.c (ASSERT): Likewise.
30809         * tests/test-fflush2.c (ASSERT): Likewise.
30810         * tests/test-floorf1.c (ASSERT): Likewise.
30811         * tests/test-floorf2.c (ASSERT): Likewise.
30812         * tests/test-floorl.c (ASSERT): Likewise.
30813         * tests/test-fopen.c (ASSERT): Likewise.
30814         * tests/test-fpending.c (ASSERT): Likewise.
30815         * tests/test-fprintf-posix.c (ASSERT): Likewise.
30816         * tests/test-fpurge.c (ASSERT): Likewise.
30817         * tests/test-freadable.c (ASSERT): Likewise.
30818         * tests/test-freadahead.c (ASSERT): Likewise.
30819         * tests/test-freading.c (ASSERT): Likewise.
30820         * tests/test-freadptr.c (ASSERT): Likewise.
30821         * tests/test-freadptr2.c (ASSERT): Likewise.
30822         * tests/test-freadseek.c (ASSERT): Likewise.
30823         * tests/test-freopen.c (ASSERT): Likewise.
30824         * tests/test-frexp.c (ASSERT): Likewise.
30825         * tests/test-frexpl.c (ASSERT): Likewise.
30826         * tests/test-fseek.c (ASSERT): Likewise.
30827         * tests/test-fseeko.c (ASSERT): Likewise.
30828         * tests/test-fstrcmp.c (ASSERT): Likewise.
30829         * tests/test-ftell.c (ASSERT): Likewise.
30830         * tests/test-ftello.c (ASSERT): Likewise.
30831         * tests/test-func.c (ASSERT): Likewise.
30832         * tests/test-fwritable.c (ASSERT): Likewise.
30833         * tests/test-fwriting.c (ASSERT): Likewise.
30834         * tests/test-getdelim.c (ASSERT): Likewise.
30835         * tests/test-getline.c (ASSERT): Likewise.
30836         * tests/test-i-ring.c (ASSERT): Likewise.
30837         * tests/test-iconv-utf.c (ASSERT): Likewise.
30838         * tests/test-iconv.c (ASSERT): Likewise.
30839         * tests/test-isfinite.c (ASSERT): Likewise.
30840         * tests/test-isnand.c (ASSERT): Likewise.
30841         * tests/test-isnanf.c (ASSERT): Likewise.
30842         * tests/test-isnanl.h (ASSERT): Likewise.
30843         * tests/test-ldexpl.c (ASSERT): Likewise.
30844         * tests/test-linked_list.c (ASSERT): Likewise.
30845         * tests/test-linkedhash_list.c (ASSERT): Likewise.
30846         * tests/test-localename.c (ASSERT): Likewise.
30847         * tests/test-lseek.c (ASSERT): Likewise.
30848         * tests/test-mbscasecmp.c (ASSERT): Likewise.
30849         * tests/test-mbscasestr1.c (ASSERT): Likewise.
30850         * tests/test-mbscasestr2.c (ASSERT): Likewise.
30851         * tests/test-mbscasestr3.c (ASSERT): Likewise.
30852         * tests/test-mbscasestr4.c (ASSERT): Likewise.
30853         * tests/test-mbschr.c (ASSERT): Likewise.
30854         * tests/test-mbscspn.c (ASSERT): Likewise.
30855         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
30856         * tests/test-mbspbrk.c (ASSERT): Likewise.
30857         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
30858         * tests/test-mbsrchr.c (ASSERT): Likewise.
30859         * tests/test-mbsspn.c (ASSERT): Likewise.
30860         * tests/test-mbsstr1.c (ASSERT): Likewise.
30861         * tests/test-mbsstr2.c (ASSERT): Likewise.
30862         * tests/test-mbsstr3.c (ASSERT): Likewise.
30863         * tests/test-memchr2.c (ASSERT): Likewise.
30864         * tests/test-memmem.c (ASSERT): Likewise.
30865         * tests/test-open.c (ASSERT): Likewise.
30866         * tests/test-printf-frexp.c (ASSERT): Likewise.
30867         * tests/test-printf-frexpl.c (ASSERT): Likewise.
30868         * tests/test-printf-posix.c (ASSERT): Likewise.
30869         * tests/test-quotearg.c (ASSERT): Likewise.
30870         * tests/test-rbtree_list.c (ASSERT): Likewise.
30871         * tests/test-rbtree_oset.c (ASSERT): Likewise.
30872         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
30873         * tests/test-round1.c (ASSERT): Likewise.
30874         * tests/test-roundf1.c (ASSERT): Likewise.
30875         * tests/test-roundl.c (ASSERT): Likewise.
30876         * tests/test-signbit.c (ASSERT): Likewise.
30877         * tests/test-sleep.c (ASSERT): Likewise.
30878         * tests/test-snprintf-posix.c (ASSERT): Likewise.
30879         * tests/test-snprintf.c (ASSERT): Likewise.
30880         * tests/test-sprintf-posix.c (ASSERT): Likewise.
30881         * tests/test-stat-time.c (ASSERT): Likewise.
30882         * tests/test-strcasestr.c (ASSERT): Likewise.
30883         * tests/test-strerror.c (ASSERT): Likewise.
30884         * tests/test-striconv.c (ASSERT): Likewise.
30885         * tests/test-striconveh.c (ASSERT): Likewise.
30886         * tests/test-striconveha.c (ASSERT): Likewise.
30887         * tests/test-strsignal.c (ASSERT): Likewise.
30888         * tests/test-strstr.c (ASSERT): Likewise.
30889         * tests/test-strtod.c (ASSERT): Likewise.
30890         * tests/test-trunc1.c (ASSERT): Likewise.
30891         * tests/test-trunc2.c (ASSERT): Likewise.
30892         * tests/test-truncf1.c (ASSERT): Likewise.
30893         * tests/test-truncf2.c (ASSERT): Likewise.
30894         * tests/test-truncl.c (ASSERT): Likewise.
30895         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
30896         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
30897         * tests/test-vasnprintf.c (ASSERT): Likewise.
30898         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
30899         * tests/test-vasprintf.c (ASSERT): Likewise.
30900         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
30901         * tests/test-vprintf-posix.c (ASSERT): Likewise.
30902         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
30903         * tests/test-vsnprintf.c (ASSERT): Likewise.
30904         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
30905         * tests/test-wcwidth.c (ASSERT): Likewise.
30906         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
30907         * tests/test-xprintf-posix.c (ASSERT): Likewise.
30908         * tests/test-xvasprintf.c (ASSERT): Likewise.
30909         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
30910         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
30911         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
30912         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
30913         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
30914         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
30915         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
30916         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
30917         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
30918         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
30919         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
30920         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
30921         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
30922         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
30923         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
30924         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
30925         * tests/unictype/test-block_list.c (ASSERT): Likewise.
30926         * tests/unictype/test-block_of.c (ASSERT): Likewise.
30927         * tests/unictype/test-block_test.c (ASSERT): Likewise.
30928         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
30929         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
30930         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
30931         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
30932         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
30933         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
30934         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
30935         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
30936         * tests/unictype/test-combining.c (ASSERT): Likewise.
30937         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
30938         * tests/unictype/test-digit.c (ASSERT): Likewise.
30939         * tests/unictype/test-mirror.c (ASSERT): Likewise.
30940         * tests/unictype/test-numeric.c (ASSERT): Likewise.
30941         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
30942         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
30943         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
30944         * tests/unictype/test-scripts.c (ASSERT): Likewise.
30945         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
30946         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
30947         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
30948         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
30949         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
30950         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
30951         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
30952         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
30953         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
30954         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
30955         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
30956         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
30957         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
30958         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
30959         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
30960         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
30961         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
30962         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
30963         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
30964         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
30965         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
30966         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
30967         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
30968         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
30969         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
30970         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
30971         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
30972         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
30973         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
30974         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
30975         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
30976         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
30977         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
30978         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
30979         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
30980         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
30981         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
30982         Reported by Eric Blake.
30983
30984 2008-04-11  Bruno Haible  <bruno@clisp.org>
30985
30986         * lib/wchar.in.h: Tweak comment.
30987
30988 2008-04-11  Bruno Haible  <bruno@clisp.org>
30989
30990         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
30991         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
30992         gl_COMMON.
30993         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
30994
30995 2008-04-11  Bruno Haible  <bruno@clisp.org>
30996
30997         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
30998
30999 2008-04-11  Simon Josefsson  <simon@josefsson.org>
31000
31001         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
31002         of attempting to use non-existing /dev/*random.  Based on patch
31003         from Adam Strzelecki <ono@java.pl> in
31004         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
31005
31006 2008-04-08  Bruno Haible  <bruno@clisp.org>
31007
31008         Add tentative support for emx+gcc.
31009         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
31010         * lib/fpurge.c (fpurge): Likewise.
31011         * lib/freadable.c (freadable): Likewise.
31012         * lib/freadahead.c (freadahead): Likewise.
31013         * lib/freading.c (freading): Likewise.
31014         * lib/freadptr.c (freadptr): Likewise.
31015         * lib/freadseek.c (freadptrinc): Likewise.
31016         * lib/fseeko.c (rpl_fseeko): Likewise.
31017         * lib/fseterr.c (fseterr): Likewise.
31018         * lib/fwritable.c (fwritable): Likewise.
31019         * lib/fwriting.c (fwriting): Likewise.
31020         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
31021
31022 2008-04-09  Eric Blake  <ebb9@byu.net>
31023
31024         Avoid some autoconf warnings.
31025         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
31026         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
31027         * m4/afs.m4 (gl_AFS): Likewise.
31028         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
31029         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
31030         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
31031         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
31032         (gl_INTEGER_TYPE_SUFFIX): Likewise.
31033         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
31034         (AC_CHECK_DECLS_ONCE): Likewise.
31035         Rename file...
31036         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
31037         gnulib-tool requires autoconf 2.59 or better.
31038         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
31039
31040 2008-04-08  Eric Blake  <ebb9@byu.net>
31041
31042         Use 'git describe --match' if present (added in git 1.5.5).
31043         * build-aux/git-version-gen: Limit result to tags that match 'v*'
31044         if possible.
31045
31046 2008-04-08  Bruno Haible  <bruno@clisp.org>
31047
31048         Add tentative support for OpenServer.
31049         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
31050         _ptr, _cnt.
31051         * lib/fpurge.c (fpurge): Likewise.
31052         * lib/freadable.c (freadable): Likewise.
31053         * lib/freadahead.c (freadahead): Likewise.
31054         * lib/freading.c (freading): Likewise.
31055         * lib/freadptr.c (freadptr): Likewise.
31056         * lib/freadseek.c (freadptrinc): Likewise.
31057         * lib/fseeko.c (rpl_fseeko): Likewise.
31058         * lib/fseterr.c (fseterr): Likewise.
31059         * lib/fwritable.c (fwritable): Likewise.
31060         * lib/fwriting.c (fwriting): Likewise.
31061         Reported by Roger Cornelius <rac@tenzing.org> and
31062         Brian K. White <brian@aljex.com>.
31063
31064 2008-04-06  Jim Meyering  <meyering@redhat.com>
31065
31066         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
31067
31068 2008-04-06  Bruno Haible  <bruno@clisp.org>
31069
31070         Avoid possible error with non-ASCII bytes in UTF-8 locales.
31071         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
31072         * tests/test-printf-posix.sh: Likewise.
31073         * tests/test-vfprintf-posix.sh: Likewise.
31074         * tests/test-vprintf-posix.sh: Likewise.
31075         * tests/test-xprintf-posix.sh: Likewise.
31076
31077 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31078
31079         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
31080         hide error from 'ls', needed on OS/2.
31081         Report by Elbert Pol <elbert.pol@gmail.com>.
31082
31083 2008-04-04  Eric Blake  <ebb9@byu.net>
31084
31085         Make test-fseeko.c failures meaningful.
31086         * tests/test-fseeko.c: Print line number on failure.
31087         * tests/test-fseek.c: Likewise.
31088         Reported by Nelson H. F. Beebe.
31089
31090         Improve strtod bug detection check.
31091         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
31092         required for Solaris 10.
31093         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
31094
31095 2008-04-04  Bruno Haible  <bruno@clisp.org>
31096
31097         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
31098         by m4/setenv.m4.
31099
31100 2008-04-03  Eric Blake  <ebb9@byu.net>
31101
31102         Ensure sane .version contents.
31103         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
31104         version string.
31105         * build-aux/git-version-gen: Improve documentation.
31106
31107         Make GNU make output nicer.
31108         * top/GNUmakefile [!_have-Makefile]: Add dependency on
31109         MAKECMDGOALS to enforce message for all command line targets.  Set
31110         srcdir for use in maint.mk.
31111
31112         Another maintainer tweak.
31113         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
31114         a target that regenerates version.
31115
31116 2008-04-03  Jim Meyering  <meyering@redhat.com>
31117
31118         vc-list-files: don't cause coreutils "make po-check" failure
31119         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
31120
31121 2008-04-03  Eric Blake  <ebb9@byu.net>
31122
31123         Allow VPATH usage of vc-list-files.
31124         * build-aux/vc-list-files (scriptversion): Add timestamp.
31125         (options): Add --help, --version, -C.
31126         (CVS): Support installed cvsu.
31127
31128 2008-04-02  Bruno Haible  <bruno@clisp.org>
31129
31130         Avoid some "statement with no effect" warnings from gcc.
31131         * tests/test-wctype.c (main): Explicitly ignore unused values.
31132         Reported by Jim Meyering.
31133
31134 2008-04-02  Jim Meyering  <meyering@redhat.com>
31135
31136         Avoid some warnings from "gcc -Wshadow".
31137         * tests/test-frexp.c (exp): Define to a different identifier.
31138         * tests/test-frexpl.c (exp): Likewise.
31139
31140 2008-04-03  Jim Meyering  <meyering@redhat.com>
31141
31142         bootstrap: remove dangling *.[ch] symlinks from lib
31143         * build-aux/bootstrap [dangling symlink removal]: Move find's
31144         -depth option to precede all others, to avoid a warning.
31145         Remove *.[ch] files too, and from "$source_base" (usually lib/).
31146
31147 2008-04-02  Bruno Haible  <bruno@clisp.org>
31148
31149         Avoid some warnings from "gcc -Wshadow".
31150         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
31151         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
31152         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
31153         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
31154         Reported by Jim Meyering.
31155
31156 2008-04-01  Bruno Haible  <bruno@clisp.org>
31157
31158         Fix test to work on IRIX 6.5 with cc.
31159         * tests/test-math.c (numeric_equal): New function.
31160         (main): Use it.
31161
31162 2008-04-01  Bruno Haible  <bruno@clisp.org>
31163
31164         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
31165
31166 2008-04-01  Bruno Haible  <bruno@clisp.org>
31167
31168         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
31169         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
31170         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
31171         (Depends-on): Remove math.
31172
31173         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
31174         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
31175         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
31176         (Depends-on): Remove math.
31177
31178         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
31179         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
31180         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
31181         (Depends-on): Remove math.
31182         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
31183         (Depends-on): Remove math.
31184
31185         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
31186         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
31187         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
31188         (Depends-on): Remove math.
31189         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
31190         (Depends-on): Remove math.
31191
31192         * tests/test-round1.c: Include nan.h.
31193         (main): Use NaNd instead of NAN.
31194         * modules/round-tests (Files): Add tests/nan.h.
31195
31196         * tests/test-trunc1.c: Include nan.h.
31197         (main): Use NaNd instead of NAN.
31198         * modules/trunc-tests (Files): Add tests/nan.h.
31199
31200         * tests/test-roundf1.c: Include nan.h.
31201         (main): Use NaNf instead of NAN.
31202         * modules/roundf-tests (Files): Add tests/nan.h.
31203
31204         * tests/test-truncf1.c: Include nan.h.
31205         (main): Use NaNf instead of NAN.
31206         * modules/truncf-tests (Files): Add tests/nan.h.
31207
31208         * tests/test-ceilf1.c: Include nan.h.
31209         (main): Use NaNf instead of NAN.
31210         * modules/ceilf-tests (Files): Add tests/nan.h.
31211
31212         * tests/test-floorf1.c: Include nan.h.
31213         (main): Use NaNf instead of NAN.
31214         * modules/floorf-tests (Files): Add tests/nan.h.
31215
31216         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
31217         (main): Use NaNf instead of NAN.
31218         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
31219
31220         * tests/test-isnand.c: Include nan.h instead of <math.h>.
31221         (main): Use NaNd instead of NAN.
31222         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
31223
31224         * tests/test-frexp.c: Include nan.h.
31225         (main): Use NaNd instead of NAN.
31226         * modules/frexp-tests (Files): Add tests/nan.h.
31227
31228         * lib/isnan.c: Don't include <math.h>.
31229         (FUNC): Don't use NAN macro.
31230         * modules/isnand-nolibm (Depends-on): Remove math.
31231         * modules/isnanf-nolibm (Depends-on): Remove math.
31232         * modules/isnanl (Depends-on): Remove math.
31233         * modules/isnanl-nolibm (Depends-on): Remove math.
31234
31235         * tests/nan.h: New file.
31236
31237 2008-04-01  Eric Blake  <ebb9@byu.net>
31238
31239         Fix typos.
31240         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
31241         values to be the right type.
31242
31243         For now, cater to gnulib strtod inaccuracies.
31244         * tests/test-strtod.c (main): Allow 1-ulp error on expected
31245         fractional results.  While not as nice from a QoI perspective, it
31246         is a quicker patch than correctly implementing decimal to binary
31247         rounding.
31248
31249 2008-03-31  Eric Blake  <ebb9@byu.net>
31250
31251         Guarantee a definition of NAN.
31252         * lib/math.in.h (NAN): Define if missing.
31253         * tests/test-math.c (main): Test it.
31254         * doc/posix-headers/math.texi (math.h): Document this.
31255         * lib/isnan.c (rpl_isnand): Use it.
31256         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
31257         * tests/test-floorf1.c (NaN): Likewise.
31258         * tests/test-frexp.c (NaN): Likewise.
31259         * tests/test-isnand.c (NaN): Likewise.
31260         * tests/test-isnanf.c (NaN): Likewise.
31261         * tests/test-round1.c (NaN): Likewise.
31262         * tests/test-roundf1.c (NaN): Likewise.
31263         * tests/test-snprintf-posix.h (NaN): Likewise.
31264         * tests/test-sprintf-posix.h (NaN): Likewise.
31265         * tests/test-trunc1.c (NaN): Likewise.
31266         * tests/test-truncf1.c (NaN): Likewise.
31267         * tests/test-vasnprintf-posix.c (NaN): Likewise.
31268         * tests/test-vasprintf-posix.c (NaN): Likewise.
31269         * modules/isnand-nolibm (Depends-on): Add math.
31270         * modules/isnanf-nolibm (Depends-on): Likewise.
31271         * modules/isnanl (Depends-on): Likewise.
31272         * modules/isnanl-nolibm (Depends-on): Likewise.
31273         * modules/snprintf-posix-tests (Depends-on): Likewise.
31274         * modules/sprintf-posix-tests (Depends-on): Likewise.
31275         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
31276         * modules/vsprintf-posix-tests (Depends-on): Likewise.
31277         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
31278         * modules/vasprintf-posix-tests (Depends-on): Likewise.
31279
31280 2008-03-31  Bruno Haible  <bruno@clisp.org>
31281
31282         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
31283         * doc/posix-functions/strtod.texi: Likewise.
31284
31285 2008-03-31  Bruno Haible  <bruno@clisp.org>
31286
31287         * tests/test-strtod.c (main): Don't use C99 syntax.
31288
31289 2008-03-31  Bruno Haible  <bruno@clisp.org>
31290
31291         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
31292         Reported by Eric Blake.
31293
31294 2008-03-31  Jim Meyering  <meyering@redhat.com>
31295
31296         Don't compare actual signbit return values.
31297         * tests/test-strtod.c (main): Rather, compare only their
31298         zero/non-zero nature.
31299
31300 2008-03-31  Eric Blake  <ebb9@byu.net>
31301
31302         More strtod documentation.
31303         * doc/posix-functions/strtod.texi (strtod): Interpret more test
31304         failures as distinct bugs.
31305
31306 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
31307
31308         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
31309         Problem reported by Erik Benada in
31310         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
31311
31312 2008-03-30  Bruno Haible  <bruno@clisp.org>
31313
31314         * tests/test-strtod.c: Add comments about which assertion fails on which
31315         platform.
31316         * doc/posix-functions/strtod.texi: Add info about many more platforms.
31317
31318 2008-03-30  Eric Blake  <ebb9@byu.net>
31319
31320         Test signbit behavior on zeros.
31321         * tests/test-signbit.c (test_signbitf): Add tests for zero.
31322         (test_signbitd, test_signbitl): Likewise.
31323
31324         More strtod touchups.
31325         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
31326         sign of negative underflow, for now.  Use .5, not .1.
31327         * doc/posix-functions/strtod.texi (strtod): Mention these
31328         limitations.
31329         Reported by Jim Meyering.
31330
31331 2008-03-30  Bruno Haible  <bruno@clisp.org>
31332
31333         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
31334         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
31335
31336 2008-03-30  Bruno Haible  <bruno@clisp.org>
31337
31338         Avoid failure when attempting to return empty iconv results on some
31339         platforms.
31340         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
31341         allocation, don't report ENOMEM when the resulting string is empty.
31342
31343 2008-03-30  Bruno Haible  <bruno@clisp.org>
31344
31345         Fix buffer overrun.
31346         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
31347         Don't consider the width for tmp_length. Check count against tmp_length
31348         before doing the padding. Ensure enough allocation during padding.
31349
31350 2008-03-30  Eric Blake  <ebb9@byu.net>
31351
31352         strtod touchups.
31353         * lib/strtod.c (strtod): Avoid compiler warnings.
31354         Reported by Jim Meyering.
31355
31356 2008-03-30  Bruno Haible  <bruno@clisp.org>
31357
31358         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
31359         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
31360         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
31361         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
31362         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
31363         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
31364         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
31365         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
31366
31367         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
31368         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
31369         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
31370         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
31371         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
31372         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
31373         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
31374         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
31375
31376         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
31377         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
31378         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
31379         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
31380         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
31381         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
31382         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
31383         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
31384
31385         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
31386         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
31387
31388         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
31389         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
31390
31391         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
31392         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
31393
31394         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
31395         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
31396         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
31397
31398         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
31399         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
31400         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
31401
31402         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
31403         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
31404         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
31405
31406         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
31407         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
31408         * modules/vasprintf (Depends-on): Add EOVERFLOW.
31409
31410         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
31411         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
31412         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
31413         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
31414         (Depends-on): Add EOVERFLOW.
31415         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
31416         (Depends-on): Add EOVERFLOW.
31417         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
31418         (Depends-on): Add EOVERFLOW.
31419         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
31420         (Depends-on): Add EOVERFLOW.
31421         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
31422         (Depends-on): Add EOVERFLOW.
31423         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
31424         (Depends-on): Add EOVERFLOW.
31425         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
31426         (Depends-on): Add EOVERFLOW.
31427         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
31428         (Depends-on): Add EOVERFLOW.
31429
31430         * lib/sprintf.c (EOVERFLOW): Remove fallback.
31431         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
31432         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
31433
31434         * lib/snprintf.c (EOVERFLOW): Remove fallback.
31435         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
31436         * modules/snprintf (Depends-on): Add EOVERFLOW.
31437
31438         * lib/poll.c (EOVERFLOW): Remove fallback.
31439         * modules/poll (Depends-on): Add EOVERFLOW.
31440
31441         * lib/getugroups.c (EOVERFLOW): Remove fallback.
31442         * modules/getugroups (Depends-on): Add EOVERFLOW.
31443
31444         * lib/getdelim.c (EOVERFLOW): Remove fallback.
31445         * modules/getdelim (Depends-on): Add EOVERFLOW.
31446
31447         * lib/ftell.c (EOVERFLOW): Remove fallback.
31448         * modules/ftell (Depends-on): Add EOVERFLOW.
31449
31450         * lib/fprintf.c (EOVERFLOW): Remove fallback.
31451         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
31452         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
31453
31454         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
31455
31456         * modules/EOVERFLOW-tests: New file.
31457         * tests/test-EOVERFLOW.c: New file.
31458
31459         * modules/EOVERFLOW: New file.
31460         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
31461
31462 2008-03-30  Bruno Haible  <bruno@clisp.org>
31463
31464         Fix bug introduced on 2007-06-10.
31465         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
31466         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
31467
31468 2008-03-30  Bruno Haible  <bruno@clisp.org>
31469
31470         Improve freadseek's efficiency after ungetc.
31471         * lib/freadseek.c: Include freadahead.h.
31472         (freadptrinc): New function, extracted from freadseek.
31473         (freadseek): Use it in a loop. Use freadahead to determine the number
31474         of loop iterations.
31475         * modules/freadseek (Depends-on): Add freadahead.
31476         (configure.ac): Require AC_C_INLINE.
31477
31478 2008-03-30  Bruno Haible  <bruno@clisp.org>
31479
31480         * lib/freadseek.c (freadseek): Don't ignore the return value of
31481         freadptr.
31482
31483 2008-03-29  Eric Blake  <ebb9@byu.net>
31484
31485         Add hex float support.
31486         * modules/strtod (Depends-on): Add c-ctype.
31487         (Link): Mention POW_LIB.
31488         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
31489         whitespace between 'e' and exponent.
31490         * tests/test-strtod.c (main): Enable hex float tests.
31491         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
31492         now provides.
31493
31494         Document various strtod bugs, with some fixes.
31495         * doc/posix-functions/strtod.texi (strtod): Document bugs with
31496         "-0x", "inf", "nan", and hex constants.
31497         * doc/posix-functions/atof.texi (atof): Likewise.
31498         * modules/stdlib (Makefile.am): Support strtod.
31499         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
31500         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
31501         detect additional strtod bugs.
31502         * lib/stdlib.in.h (rpl_strtod): Add declarations.
31503         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
31504         bool where appropriate.  Parse 'inf' and 'nan'.
31505         * tests/test-strtod.c: New file.
31506         * modules/strtod (Depends-on): Add stdbool, stdlib.
31507         (configure.ac): Turn on module indicator.
31508         * modules/strtod-tests: New module.
31509
31510 2008-03-29  Eric Blake  <ebb9@byu.net>
31511
31512         Fix ftell on mingw.
31513         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
31514         * modules/ftell-tests (Depends-on): Add binary-io.
31515         * modules/ftello-tests (Depends-on): Likewise.
31516         * tests/test-ftell.c (main): Enhance test to cover behavior after
31517         ungetc.  Enforce binary mode.
31518         * tests/test-ftello.c (main): Likewise.
31519
31520         Pass test-freadseek on cygwin.
31521         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
31522         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
31523         ungetc buffer.
31524
31525         * tests/test-fflush2.c (main): Fix typo.
31526
31527 2008-03-29  Bruno Haible  <bruno@clisp.org>
31528
31529         * tests/test-fflush2.c (main): Temporarily disable the contents of
31530         this test.
31531         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
31532         Reported by Eric Blake.
31533
31534 2008-03-28  Simon Josefsson  <simon@josefsson.org>
31535
31536         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
31537         (GC_SHA224_DIGEST_SIZE): Add.
31538
31539         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
31540         (gc_hash_digest_length): Likewise.
31541         (gc_hash_buffer): Likewise.
31542
31543 2008-03-25  Bruno Haible  <bruno@clisp.org>
31544
31545         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
31546         detail which gettext release to use.
31547         Reported by Simon Josefsson.
31548
31549 2008-03-26  Jim Meyering  <meyering@redhat.com>
31550
31551         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
31552         * modules/gnumakefile (clean-GNUmakefile): Also, use
31553         test ... && ... || : syntax rather than if-then ... fi.
31554
31555         gnumakefile: Don't double-quote-expand $(VPATH) value.
31556         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
31557
31558 2008-03-24  Eric Blake  <ebb9@byu.net>
31559
31560         Alter GNUmakefile to install into top directory.
31561         * modules/maintainer-makefile: Split, and add dependency...
31562         * modules/gnumakefile: to this new module.
31563         * build-aux/GNUmakefile: Move...
31564         * top/GNUmakefile: ...here.
31565         * build-aux/maint.mk: Move...
31566         * top/maint.mk: ...here.
31567         * MODULES.html.sh (Support for maintaining...): Document new
31568         module.
31569
31570 2008-03-23  Bruno Haible  <bruno@clisp.org>
31571
31572         * gnulib-tool: New options --vc-files, --no-vc-files.
31573         (func_usage): Document them.
31574         (vc_files): New variable.
31575         (func_import): Consider vc_files.
31576         (func_create_testdir): Set vc_files to empty.
31577         Suggested by Jim Meyering and Karl Berry.
31578
31579 2008-03-23  Bruno Haible  <bruno@clisp.org>
31580
31581         Fix regex compilation error on HP-UX 11.
31582         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
31583         * modules/regex (Files): Add m4/mbstate_t.m4.
31584         Reported by Ton Voon <ton.voon@altinity.com>.
31585
31586 2008-03-23  Bruno Haible  <bruno@clisp.org>
31587
31588         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
31589
31590 2008-03-23  Eric Blake  <ebb9@byu.net>
31591             Bruno Haible  <bruno@clisp.org>
31592
31593         Install files from top/ in the destination directory.
31594         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
31595         augmentation also for the files from top/.
31596         (func_import, func_create_testdir): Rewrite file names:
31597         top/filename -> filename.
31598
31599 2008-03-23  Bruno Haible  <bruno@clisp.org>
31600
31601         Tweak "gnulib --version" output.
31602         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
31603
31604 2008-03-23  Bruno Haible  <bruno@clisp.org>
31605
31606         Tweak "gnulib --version" output.
31607         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
31608         rather than contents of ChangeLog, when possible.
31609
31610 2008-03-21  Eric Blake  <ebb9@byu.net>
31611
31612         More --version tweaks.
31613         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
31614         date of last ChangeLog entry.
31615
31616 2008-03-21  Jim Meyering  <meyering@redhat.com>
31617
31618         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
31619
31620 2008-03-20  Eric Blake  <ebb9@byu.net>
31621
31622         VPATH fix.
31623         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
31624
31625 2008-03-20  Simon Josefsson  <simon@josefsson.org>
31626
31627         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
31628         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
31629
31630 2008-03-20  Eric Blake  <ebb9@byu.net>
31631
31632         Sync GNUmakefile with coreutils.
31633         * build-aux/GNUmakefile (have-Makefile): Rename...
31634         (_have-Makefile): ...to this, for namespace consideration.
31635         (GNUmakefile.cfg): Include, if present.
31636         (_autoreconf): Define a default.
31637         (_is-dist-target): New rule for rebuilds to pick up intra-release
31638         version.
31639         (maint-cfg.mk): Rename...
31640         (cfg.mk): ...to this.
31641
31642 2008-03-18  Jim Meyering  <meyering@redhat.com>
31643
31644         New script and module: mktempd
31645         * MODULES.html.sh (maint+release support): Add mktempd.
31646         * build-aux/mktempd: New file.
31647         * modules/mktempd: New file.
31648
31649 2008-03-15  Jim Meyering  <meyering@redhat.com>
31650
31651         Undo last change.
31652         * lib/sha1.c, lib/md5.c: 63 != ~63.
31653         Reported by Andreas Schwab.
31654
31655         sha1.c, md5.c: Hoist a redundant expression.
31656         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
31657         "ctx->buflen" only once, before calling *_process_block.
31658         * lib/md5.c (md5_process_bytes): Likewise.
31659
31660 2008-03-14  Eric Blake  <ebb9@byu.net>
31661
31662         Bump copyright year in files generated by gnulib-tool.
31663         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
31664         gnulib-tool, rather than hard-coding it.
31665
31666         Fix 'gnulib-tool --version' output to work with git.
31667         * gnulib-tool (func_gnulib_dir): New function, extracted from...
31668         (startup): ...here.
31669         (func_version): Use it to invoke git-version-gen, rather than
31670         relying on CVS keyword expansion.  Modernize wording.
31671         (cvsdatestamp, last_checkin_date, version): Kill unused
31672         variables.
31673
31674 2008-03-12  Jim Meyering  <meyering@redhat.com>
31675
31676         Recognize optional cast of the argument to free.
31677         * build-aux/useless-if-before-free: Update regexps.
31678
31679         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
31680
31681 2008-03-11  Bruno Haible  <bruno@clisp.org>
31682
31683         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
31684         by a single package.
31685         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
31686         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
31687         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
31688         Reported by Sam Steingold <sds@gnu.org>.
31689
31690 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31691
31692         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
31693         repositories.
31694
31695 2008-03-11  Bruno Haible  <bruno@clisp.org>
31696
31697         Avoid conflicts between local macro definitions.
31698         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
31699         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
31700
31701 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
31702             Bruno Haible  <bruno@clisp.org>
31703
31704         Make va_copy work with some version of xlc on AIX 5.1.
31705         * lib/stdarg.in.h: New file.
31706         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
31707         On AIX, use a <stdarg.h> file substitute.
31708         * modules/stdarg (Files): Add lib/stdarg.in.h.
31709         (Depends-on): Add include_next.
31710         (Makefile.am): Build a stdarg.h substitute if requested.
31711         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
31712
31713 2008-03-10  Bruno Haible  <bruno@clisp.org>
31714
31715         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
31716         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
31717         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
31718
31719 2008-03-10  Bruno Haible  <bruno@clisp.org>
31720
31721         * modules/stdlib (Depends-on): Add include_next, remove
31722         absolute-header.
31723
31724 2008-03-09  Bruno Haible  <bruno@clisp.org>
31725
31726         * lib/freadahead.h (freadahead): Document more precisely.
31727         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
31728         the sum of both buffer sizes.
31729         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
31730         * NEWS: Document the change.
31731
31732 2008-03-09  Bruno Haible  <bruno@clisp.org>
31733
31734         Extend freadptr to return also the buffer size.
31735         * lib/freadptr.h (freadptr): Add sizep argument.
31736         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
31737         (freadptr): Add sizep argument. Determine buffer size like freadahead
31738         does.
31739         * tests/test-freadptr.c: Don't include freadahead.h.
31740         (main): Adapt for new calling convention of freadptr.
31741         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
31742         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
31743         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
31744         tests/test-freadptr2.sh.
31745         (Depends): Remove freadahead.
31746         (TESTS): Add test-freadptr2.sh.
31747         (check_PROGRAMS): Add test-freadptr2.
31748
31749 2008-03-09  Bruno Haible  <bruno@clisp.org>
31750
31751         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
31752         Report and solution by Simon Josefsson.
31753
31754 2008-03-06  Bruno Haible  <bruno@clisp.org>
31755
31756         Make fflush after ungetc work on BSD platforms.
31757         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
31758         * tests/test-fflush2.c: New file.
31759         * tests/test-fflush2.sh: New file.
31760         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
31761         tests/test-fflush2.c.
31762         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
31763         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
31764
31765 2008-03-06  Eric Blake  <ebb9@byu.net>
31766
31767         Likewise for ftello.
31768         * modules/ftello (Dependencies): Add extensions.
31769         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
31770
31771 2008-03-06  Bruno Haible  <bruno@clisp.org>
31772
31773         * modules/fseeko (Dependencies): Add extensions.
31774         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
31775         Needed on glibc systems.
31776
31777 2008-03-06  Bruno Haible  <bruno@clisp.org>
31778
31779         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
31780         email address.
31781         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31782
31783 2008-03-06  Bruno Haible  <bruno@clisp.org>
31784
31785         * users.txt: Add libgnupdf.
31786
31787 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
31788
31789         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
31790         (Header File Substitutes, Function Substitutes,
31791         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
31792         (Build robot for gnulib): Fix typo.
31793
31794 2008-03-06  Bruno Haible  <bruno@clisp.org>
31795
31796         * doc/gnulib-tool.texi (VCS Issues): Small updates.
31797         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31798
31799 2008-03-06  Bruno Haible  <bruno@clisp.org>
31800
31801         * doc/func.texi: New file, extracted from doc/gnulib.texi.
31802         * doc/gnulib.texi: Include it.
31803
31804 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31805
31806         * modules/func (License): Change license to unlimited; there was
31807         no LGPL parts in the module anyway.
31808
31809 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31810
31811         * modules/__func__: Renamed to modules/func.
31812         * modules/__func__-tests: Renamed to modules/func-tests.
31813         * tests/test-__func__.c: Renamed to tests/test-func.c.
31814         * m4/__func__.m4: Renamed to m4/func.m4.
31815         * doc/gnulib.texi (__func__): Section renamed to func.
31816         Suggested by Eric Blake <ebb9@byu.net>.
31817
31818 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31819
31820         * doc/gnulib.texi (__func__): Use C99 terminology when talking
31821         about __func__.  Make example self-contained.  Suggested by Eric
31822         Blake <ebb9@byu.net>.
31823
31824         * tests/test-__func__.c (main): Avoid extraneous () around __func.
31825         Suggested by Eric Blake <ebb9@byu.net>.
31826
31827 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31828
31829         * modules/__func__: New file.
31830         * modules/__func__-tests: New file.
31831         * tests/test-__func__.c: New file.
31832         * m4/__func__.m4: New file.
31833         * doc/gnulib.texi (__func__): Document __func__ module.
31834
31835 2008-03-05  Simon Josefsson  <simon@josefsson.org>
31836
31837         * modules/byteswap (License): Re-license as LGPLv2+.
31838
31839 2008-03-05  Simon Josefsson  <simon@josefsson.org>
31840
31841         * doc/Makefile: Add pdf target.
31842
31843 2008-03-05  Simon Josefsson  <simon@josefsson.org>
31844
31845         * modules/inline (License): Use 'unlimited', since there are only
31846         *.m4 files in this module.
31847
31848 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
31849             Bruno Haible  <bruno@clisp.org>
31850
31851         Add support for HP C 7.1 on OpenVMS 8.3.
31852         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
31853
31854 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
31855
31856         Update VMS specifics.
31857         * lib/getopt.c [VMS]: Remove include of unixlib.h.
31858
31859 2008-03-02  Jim Meyering  <meyering@redhat.com>
31860
31861         Remove the last dependency on the "free" module.
31862         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
31863         Reported by Bob Proulx.
31864
31865         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
31866
31867         Remove useless "if" tests before free.  Deprecate "free" module.
31868         * doc/posix-functions/free.texi: Mention that this
31869         module is no longer useful.
31870         * modules/free (Notice): Say this module is obsolete.
31871         * modules/readutmp (Depends-on): Remove free.
31872         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
31873         * lib/putenv.c (putenv): Likewise.
31874         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
31875         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
31876         * tests/test-c-strcasestr.c (main): Likewise.
31877         * tests/test-c-strstr.c (main): Likewise.
31878         * tests/test-mbscasestr1.c (main): Likewise.
31879         * tests/test-mbscasestr2.c (main): Likewise.
31880         * tests/test-mbsstr1.c (main): Likewise.
31881         * tests/test-mbsstr2.c (main): Likewise.
31882         * tests/test-memmem.c (main): Likewise.
31883         * tests/test-strcasestr.c (main): Likewise.
31884         * tests/test-striconv.c (main): Likewise.
31885         * tests/test-striconveh.c (main): Likewise.
31886         * tests/test-striconveha.c (main): Likewise.
31887         * tests/test-strstr.c (main): Likewise.
31888
31889         * build-aux/git-version-gen: Adjust a comment and the Usage string.
31890
31891         bootstrap: sync from coreutils again
31892         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
31893
31894 2008-03-01  Jim Meyering  <meyering@redhat.com>
31895
31896         bootstrap: sync from coreutils
31897         * build-aux/bootstrap (update_po_files): Copy a .po file into place
31898         also when the target doesn't exist.
31899
31900 2008-03-01  Eric Blake  <ebb9@byu.net>
31901
31902         Fix bugs in last patch.
31903         * lib/memchr2.c (memchr2): Fix typo.
31904         * tests/test-memchr2.c: Test previous bug, and don't use GNU
31905         extension.
31906         Reported by Bruce Korb.
31907
31908         New module 'memchr2'.
31909         * modules/memchr2: New file.
31910         * modules/memchr2-tests: Likewise.
31911         * lib/memchr2.h: Likewise.
31912         * lib/memchr2.c: Likewise, based on memchr.c.
31913         * tests/test-memchr2.c: New test.
31914         * MODULES.html.sh (String handling): Add memchr2.
31915
31916 2008-02-29  Bruno Haible  <bruno@clisp.org>
31917
31918         * modules/freadseek-tests: New file.
31919         * tests/test-freadseek.sh: New file.
31920         * tests/test-freadseek.c: New file.
31921
31922         New module 'freadseek'.
31923         * modules/freadseek: New file.
31924         * lib/freadseek.h: New file.
31925         * lib/freadseek.c: New file.
31926         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
31927
31928 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
31929
31930         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
31931         wydawca.
31932
31933         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
31934         program_invocation_name and program_invocation_short_name are
31935         present.
31936
31937 2008-02-28  Bruno Haible  <bruno@clisp.org>
31938
31939         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
31940         * tests/test-freadptr.sh: Also test non-seekable stdin.
31941
31942 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
31943
31944         * build-aux/bootstrap (source_base, m4_base)
31945         (doc_base, tests_base): New variables.
31946         (gnulib_tool_options): Do not hardcode base directories, use
31947         the above variables instead.
31948
31949 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
31950
31951         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
31952
31953 2008-02-28  Bruno Haible  <bruno@clisp.org>
31954
31955         * modules/freadptr-tests: New file.
31956         * tests/test-freadptr.sh: New file.
31957         * tests/test-freadptr.c: New file.
31958
31959         New module 'freadptr'.
31960         * modules/freadptr: New file.
31961         * lib/freadptr.h: New file.
31962         * lib/freadptr.c: New file.
31963         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
31964
31965 2008-02-26  Karl Berry  <karl@freefriends.org>
31966
31967         Sync from Libtool:
31968         * libltdl/argz.c (argz_add, argz_count): New functions.
31969         * libltdl/argz.in.h: Declare them.
31970         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
31971
31972 2008-02-22  Bruno Haible  <bruno@clisp.org>
31973
31974         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
31975         is a pointer type.  Needed for HP-UX 10.
31976         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
31977         * doc/posix-functions/gmtime_r.texi: Likewise.
31978         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
31979
31980 2008-02-24  Bruno Haible  <bruno@clisp.org>
31981
31982         * modules/environ-tests: New file.
31983         * tests/test-environ.c: New file.
31984
31985         New module 'environ'.
31986         * modules/environ: New file.
31987         * lib/unistd.in.h (environ): New declaration.
31988         * m4/environ.m4: New file.
31989         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
31990         after use.
31991         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
31992         HAVE_DECL_ENVIRON.
31993         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
31994         HAVE_DECL_ENVIRON.
31995         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
31996         wrong claim that 'environ' is missing on some systems.
31997         * modules/execute (Depends-on): Add environ.
31998         * lib/execute.c (environ): Remove fallback declaration.
31999         * modules/pipe (Depends-on): Add environ.
32000         * lib/pipe.c (environ): Remove fallback declaration.
32001         * modules/setenv (Depends-on): Add environ.
32002         * lib/setenv.c (environ): Remove fallback declaration.
32003         * modules/unsetenv (Depends-on): Add environ.
32004         * lib/unsetenv.c (environ): Remove fallback declaration.
32005         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
32006         m4/environ.m4.
32007         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
32008         (gl_PREREQ_UNSETENV): Likewise.
32009
32010 2008-02-24  Bruno Haible  <bruno@clisp.org>
32011
32012         * doc/posix-functions/environ.texi: Document the MacOS X problem.
32013
32014 2008-02-20  Bob Proulx  <bob@proulx.com>
32015
32016         Enable use of older two part flavor 'git describe'.
32017         * build-aux/git-version-gen: If using the older two part flavor of
32018         git version then recreate the third part now present in the
32019         newer three part flavor of git describe.
32020
32021 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
32022
32023         * lib/fts.c (fts_build): Typo correction to comment.
32024
32025 2008-02-17  Bruno Haible  <bruno@clisp.org>
32026
32027         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
32028         generating no-op conflicts.
32029
32030 2008-02-17  Bruno Haible  <bruno@clisp.org>
32031
32032         Speed up by 10%.
32033         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
32034         result_entries, rather than an index-based loop.
32035
32036 2008-02-17  Bruno Haible  <bruno@clisp.org>
32037
32038         Speed up by 25%.
32039         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
32040         'hashcode_cached'.
32041         (entry_create): New function.
32042         (entry_hashcode): Use the cached hashcode if possible.
32043         (read_changelog_file, try_split_merged_entry): Use entry_create.
32044
32045 2008-02-17  Bruno Haible  <bruno@clisp.org>
32046
32047         Speed up from O(n^2) to O(n) for long ChangeLog files.
32048         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
32049         (read_changelog_file): Change implementation of entries_reversed list
32050         to rbtreehash.
32051         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
32052
32053 2008-02-17  Bruno Haible  <bruno@clisp.org>
32054
32055         New option --split-merged-entry.
32056         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
32057         (find_paragraph_end, try_split_merged_entry): New functions.
32058         (long_options): Add option --split-merged-entry.
32059         (usage): Document option --split-merged-entry.
32060         (main): Implement option --split-merged-entry.
32061         Reported by Eric Blake.
32062
32063 2008-02-17  Bruno Haible  <bruno@clisp.org>
32064
32065         * lib/git-merge-changelog.c: Include c-strstr.h.
32066         (main): Support the "git pull --rebase" situation.
32067         * modules/git-merge-changelog (Depends-on): Add c-strstr.
32068         Reported by Eric Blake.
32069
32070 2008-02-16  Eric Blake  <ebb9@byu.net>
32071
32072         Avoid doubling \ in common case of "c-maybe" quoting style.
32073         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
32074         eliding outer quotes.
32075         * lib/quotearg.h: Document this.
32076         * tests/test-quotearg.c (result_strings, inputs, results_g)
32077         (flag_results, locale_results): Test it by adding a new string to
32078         each test group.
32079         (compare_strings): Test new string.
32080
32081 2008-02-13  Eric Blake  <ebb9@byu.net>
32082
32083         Avoid trigraph quoting in default output.
32084         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
32085         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
32086         unless explicitly requested.
32087         * tests/test-quotearg.c (flag_results, main): Add additional tests.
32088
32089 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
32090
32091         Don't rely on signed integer overflowing to negative value.
32092         * lib/getugroups.c (getugroups): Include <limits.h>.
32093         Instead, compare against INT_MAX, and increment only if the test passes.
32094
32095 2008-02-13  Jim Meyering  <meyering@redhat.com>
32096         and Eric Blake  <ebb9@byu.net>
32097
32098         Avoid shadowing warning and compile errors on Linux.
32099         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
32100         forwarding macros on Linux.
32101         (dcgettext): Define a stub, for Linux.
32102         (results_g, main): Avoid warnings.
32103
32104 2008-02-12  Eric Blake  <ebb9@byu.net>
32105
32106         Silence warning in last patch.
32107         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
32108
32109         Quotearg part 4: add tests, fix c-maybe colon quoting.
32110         * lib/quotearg.h: Improve documentation.
32111         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
32112         escapes when adding outer quotes.  When quoting trigraphs, use
32113         valid C notation.  When quoting NUL, omit extra characters if next
32114         character is not digit.  Alter prototype.
32115         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
32116         callers.
32117         * modules/quotearg-tests: New module.
32118         * tests/test-quotearg.c: New test.
32119
32120 2008-02-07  Eric Blake  <ebb9@byu.net>
32121
32122         Quotearg part 3: add flag to control outer quote elision.
32123         * lib/quotearg.h (c_maybe_quoting_style): New style.
32124         (enum quoting_flags): Better documentation of flags.
32125         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
32126         c-maybe style.
32127         (quotearg_buffer_restyled): Handle new flag to elide outer
32128         quotes.
32129
32130         Quotearg part 2: add flag that can control NUL elision.
32131         * lib/quotearg.h (set_quoting_flags): New prototype.
32132         * lib/quotearg.c (struct quoting_options): Add flag field.
32133         (set_quoting_flags): New function.
32134         (quotearg_buffer_restyled): Add flags parameter.
32135         (quotearg_alloc_mem): Set the flag if length cannot be returned.
32136         (quotearg_n_options): Set the flag, since length cannot be
32137         returned.
32138         (quoting_options_from_style): Default flags correctly.
32139
32140         Quotearg part 1: more wrappers, restore quotearg_char state.
32141         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
32142         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
32143         (quotearg_colon_mem): New wrappers.
32144         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
32145         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
32146         functions.
32147         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
32148         (quotearg_colon_mem): New functions.
32149
32150 2008-02-11  Bruno Haible  <bruno@clisp.org>
32151
32152         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
32153         library in the current directory: it does not work with parallel make.
32154         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32155
32156 2008-02-11  Bruno Haible  <bruno@clisp.org>
32157
32158         * .gitattributes: New file.
32159
32160 2008-02-11  Jim Meyering  <meyering@redhat.com>
32161
32162         useless-if-before-free: Fix reversed exit values.
32163         * build-aux/useless-if-before-free: Use correct values
32164         for EXIT_MATCH and EXIT_NO_MATCH.
32165
32166         * build-aux/useless-if-before-free: Close stdout carefully.
32167
32168 2008-02-10  Bruno Haible  <bruno@clisp.org>
32169
32170         New module 'git-merge-changelog'.
32171         * modules/git-merge-changelog: New file.
32172         * lib/git-merge-changelog.c: New file.
32173
32174 2008-02-10  Jim Meyering  <meyering@redhat.com>
32175
32176         useless-if-before-free: New option: --list (-l).
32177
32178         useless-if-before-free: Don't exit immediately upon open failure.
32179         * build-aux/useless-if-before-free: Exit 2 for errors.
32180         Upon failure to open a file, don't exit immediately.
32181         Rather, just warn and continue with any remaining files.
32182
32183 2008-02-10  Bruno Haible  <bruno@clisp.org>
32184
32185         New abstract list operation 'node_set_value'.
32186         * lib/gl_list.h (gl_list_node_set_value): New function.
32187         (struct gl_list_implementation): New field node_set_value.
32188         * lib/gl_list.c (gl_list_node_set_value): New function.
32189         * lib/gl_array_list.c (gl_array_node_set_value): New function.
32190         (gl_array_list_implementation): Update.
32191         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
32192         (gl_carray_list_implementation): Update.
32193         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
32194         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
32195         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
32196         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
32197         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
32198         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
32199         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
32200         Update.
32201         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
32202         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
32203         (gl_sublist_list_implementation): Update.
32204
32205 2008-02-10  Bruno Haible  <bruno@clisp.org>
32206
32207         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
32208         Needed when ELEMENT is #defined to 'some_type *'.
32209
32210 2008-02-10  Jim Meyering  <meyering@redhat.com>
32211
32212         New script and module: useless-if-before-free
32213         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
32214         * build-aux/useless-if-before-free: New file.
32215         * modules/useless-if-before-free: New file.
32216
32217         * build-aux/gitlog-to-changelog: Use committer date, not author date.
32218
32219         xstrtol_error: Fix typo.
32220         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
32221         s/exit_failure/exit_status/.
32222
32223 2008-02-09  Jim Meyering  <meyering@redhat.com>
32224
32225         New script and module: gitlog-to-changelog
32226         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
32227         * modules/gitlog-to-changelog: New file.
32228         * build-aux/gitlog-to-changelog: New file.
32229
32230 2008-02-08  Jim Meyering  <meyering@redhat.com>
32231
32232         Avoid two "parameter unused" warnings.
32233         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
32234         Mark "st" as used.
32235
32236         Use "git COMMAND", not "git-COMMAND".
32237         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
32238         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
32239         * build-aux/git-version-gen: Use "git status", not "git-status".
32240
32241 2008-02-07  Bruno Haible  <bruno@clisp.org>
32242
32243         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
32244         Avoids a crash on Windows Vista.
32245         Reported by Adam Strzelecki <ono@java.pl> via
32246         Simon Josefsson <simon@josefsson.org>.
32247
32248 2008-02-06  Bruno Haible  <bruno@clisp.org>
32249
32250         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
32251         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
32252         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
32253         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
32254         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
32255         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32256         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
32257         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
32258         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32259         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32260         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32261         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32262         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32263         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32264         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32265         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
32266         left-adjust flag.
32267         * tests/test-snprintf-posix.h (test_function): Likewise.
32268         * tests/test-sprintf-posix.h (test_function): Likewise.
32269         * tests/test-vasprintf-posix.c (test_function): Likewise.
32270         * doc/posix-functions/fprintf.texi: Update.
32271         * doc/posix-functions/printf.texi: Update.
32272         * doc/posix-functions/snprintf.texi: Update.
32273         * doc/posix-functions/sprintf.texi: Update.
32274         * doc/posix-functions/vfprintf.texi: Update.
32275         * doc/posix-functions/vprintf.texi: Update.
32276         * doc/posix-functions/vsnprintf.texi: Update.
32277         * doc/posix-functions/vsprintf.texi: Update.
32278         Reported by Peter Fales <psfales@alcatel-lucent.com>.
32279
32280 2008-02-06  Bruno Haible  <bruno@clisp.org>
32281
32282         Fix bug introduced on 2008-01-26.
32283         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
32284
32285 2008-02-06  Bruno Haible  <bruno@clisp.org>
32286
32287         Fix bug introduced on 2007-06-10.
32288         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
32289         !NEED_PRINTF_FLAG_ZERO.
32290
32291 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
32292
32293         getloadavg: use libperfstat on AIX5
32294         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
32295
32296 2008-02-03  Bruno Haible  <bruno@clisp.org>
32297
32298         * lib/diffseq.h: Add comments about required #includes.
32299         Reported by Michael Biggs <gnulib@doubleplum.net>.
32300
32301 2008-02-01  Bruno Haible  <bruno@clisp.org>
32302
32303         * users.txt: Add gnuit.
32304
32305 2008-01-31  Bruno Haible  <bruno@clisp.org>
32306
32307         * lib/md4.c (set_uint32): Mark as inline.
32308         * lib/md5.c (set_uint32): Likewise.
32309         * lib/sha1.c (set_uint32): Likewise.
32310         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
32311         * m4/md5.m4 (gl_MD5): Likewise.
32312         * m4/sha1.m4 (gl_SHA1): Likewise.
32313
32314 2008-01-31  Jim Meyering  <meyering@redhat.com>
32315
32316         Use "sizeof VAR", rather than a literal "4".
32317         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
32318         * lib/md4.c (md4_read_ctx): Likewise.
32319         * lib/sha1.c (sha1_read_ctx): Likewise.
32320
32321 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32322
32323         * tests/test-sha1.c: New file, based on test-md5.c.
32324
32325         * modules/crypto/sha1-tests: New file.
32326
32327 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32328
32329         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
32330
32331 2008-01-31  Jim Meyering  <meyering@redhat.com>
32332
32333         Prefer "sizeof v" over the equivalent "4".
32334         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
32335         * lib/md5.c (set_uint32): Likewise.
32336         * lib/sha1.c (set_uint32): Likewise.
32337
32338 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32339
32340         * lib/sha1.c (set_uint32): Mark function as static.
32341
32342 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32343
32344         md2: clarify comments to say that alignment is not required.
32345         * lib/md2.h: Remove warning about alignment in comment.
32346         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
32347         never been required.
32348
32349 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32350
32351         md4: adapt alignment constraint fix from sha1.
32352         * lib/md4.c (set_uint32): New function, from sha1.c
32353         (md4_read_ctx): Use it.
32354         (md4_finish_ctx): Doc fix.
32355         * lib/md4.h: Doc fix.
32356
32357 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32358
32359         md5: adapt alignment constraint fix from sha1.
32360         * lib/md5.c (set_uint32): New function, from sha1.c
32361         (md5_read_ctx): Use it.
32362         (md5_finish_ctx): Doc fix.
32363         * lib/md5.h: Doc fix.
32364
32365 2008-01-30  Peter Palfrader  <weasel@debian.org>
32366
32367         sha1: remove the result buffer alignment constraint
32368         * lib/sha1.c (set_uint32): New function.
32369         (sha1_read_ctx): Rewrite to remove the result buffer alignment
32370         constraint.
32371         (sha1_finish_ctx): Remove comment warning about alignment constraint.
32372         * lib/sha1.h: Likewise.
32373
32374 2008-01-30  Andreas Schwab  <schwab@suse.de>
32375             Bruno Haible  <bruno@clisp.org>
32376
32377         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
32378         correct definition of LDBL_MIN_EXP.
32379
32380 2008-01-30  Karl Berry  <karl@gnu.org>
32381
32382         * config/srclist-update: try to preserve x bit on updates.
32383         * config/srclistvars.sh: update for karl.
32384
32385 2008-01-29  Jim Meyering  <meyering@redhat.com>
32386
32387         vasnprintf.c: Avoid warning about unused label
32388         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
32389         "overflow" label definition and associated code with the
32390         same cpp condition that guards the sole use of that label.
32391
32392 2008-01-26  Bruno Haible  <bruno@clisp.org>
32393
32394         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
32395         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
32396         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
32397         * lib/isnanl-nolibm.h (isnanl): Likewise.
32398         Reported by Paul Eggert <eggert@cs.ucla.edu>.
32399
32400 2008-01-26  Bruno Haible  <bruno@clisp.org>
32401
32402         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
32403         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
32404
32405 2008-01-26  Bruno Haible  <bruno@clisp.org>
32406
32407         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
32408         GCC >= 4.0 built-in.
32409         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
32410
32411 2008-01-26  Bruno Haible  <bruno@clisp.org>
32412
32413         Rename isnan, applicable to 'double' only, to isnand.
32414         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
32415         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
32416         (configure.ac): Update.
32417         (Include): Replace "isnan.h" with "isnand.h".
32418         * m4/isnand.m4: Renamed from m4/isnan.m4.
32419         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
32420         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
32421         instead of isnan.c.
32422         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
32423         instead of HAVE_ISNAN_IN_LIBC.
32424         (isnand): Renamed from isnan.
32425         * lib/isnand.c: New file.
32426         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
32427         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
32428         (Makefile.am): Update.
32429         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
32430         Include isnand.h instead of isnan.h.
32431         (main): Test isnand instead of isnan.
32432         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
32433         isnan-nolibm.
32434         * modules/frexp (Depends-on): Likewise.
32435         * modules/frexp-tests (Depends-on): Likewise.
32436         * modules/frexp-nolibm (Depends-on): Likewise.
32437         * modules/frexp-nolibm-tests (Depends-on): Likewise.
32438         * modules/isfinite (Depends-on): Likewise.
32439         * modules/round-tests (Depends-on): Likewise.
32440         * modules/signbit (Depends-on): Likewise.
32441         * modules/signbit-tests (Depends-on): Likewise.
32442         * modules/snprintf-posix (Depends-on): Likewise.
32443         * modules/sprintf-posix (Depends-on): Likewise.
32444         * modules/trunc-tests (Depends-on): Likewise.
32445         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
32446         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32447         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32448         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32449         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32450         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32451         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32452         * modules/vasnprintf-posix (Depends-on): Likewise.
32453         * modules/vasprintf-posix (Depends-on): Likewise.
32454         * modules/vfprintf-posix (Depends-on): Likewise.
32455         * modules/vsnprintf-posix (Depends-on): Likewise.
32456         * modules/vsprintf-posix (Depends-on): Likewise.
32457         * lib/frexp.c: Include isnand.h instead of isnan.h.
32458         (ISNAN): Set to isnand instead of isnan.
32459         * lib/isfinite.c: Include isnand.h instead of isnan.h.
32460         (gl_isfinited): Use isnand instead of isnan.
32461         * lib/signbitd.c: Include isnand.h instead of isnan.h.
32462         (gl_signbitd): Use isnand instead of isnan.
32463         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
32464         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
32465         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
32466         (main): Use isnand instead of isnan.
32467         * tests/test-round1.c: Include isnand.h.
32468         (main): Use isnand instead of isnan.
32469         * tests/test-round2.c: Include isnand.h instead of isnan.h.
32470         (ISNAN): Set to isnand instead of isnan.
32471         * tests/test-trunc1.c: Include isnand.h.
32472         (main): Use isnand instead of isnan.
32473         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
32474         (equal): Use isnand instead of isnan.
32475         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
32476         isnand-nolibm.
32477         * NEWS: Mention the change.
32478
32479 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
32480             Bruno Haible  <bruno@clisp.org>
32481
32482         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
32483         the GCC builtins for signbits are present and set
32484         REPLACE_SIGNBIT_USING_GCC if so.
32485         * lib/math.in.h (signbit): Define using GCC builtins if
32486         REPLACE_SIGNBIT_USING_GCC is set.
32487         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
32488         REPLACE_SIGNBIT_USING_GCC.
32489         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
32490
32491 2008-01-25  Jim Meyering  <meyering@redhat.com>
32492
32493         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
32494         * lib/poll.c: Include <config.h>, not "config.h".
32495         * tests/test-getaddrinfo.c: Likewise.
32496
32497 2008-01-25  Simon Josefsson  <simon@josefsson.org>
32498
32499         * modules/sockets-tests: New file.
32500
32501 2008-01-24  Simon Josefsson  <simon@josefsson.org>
32502
32503         * modules/sockets: New module, can be used to call WSA_Startup and
32504         WSA_Cleanup when needed.
32505
32506         * lib/sockets.h, lib/sockets.c: New files.
32507
32508         * m4/sockets.m4: New file.
32509
32510         * tests/test-sockets.c: New file.
32511
32512 2008-01-19  Bruno Haible  <bruno@clisp.org>
32513
32514         * doc/posix-headers: Renamed from doc/headers.
32515         * doc/posix-functions: Renamed from doc/functions.
32516         * doc/gnulib.texi: Update.
32517
32518 2008-01-19  Bruno Haible  <bruno@clisp.org>
32519
32520         * doc/glibc-functions/strcasestr.texi: Include contents of
32521         doc/functions/strcasestr.texi, fixing the list of platforms.
32522         * doc/functions/strcasestr.texi: Remove file.
32523
32524 2008-01-19  Bruno Haible  <bruno@clisp.org>
32525
32526         * doc/glibc-functions/memmem.texi: Include contents of
32527         doc/functions/memmem.texi.
32528         * doc/functions/memmem.texi: Remove file.
32529
32530 2008-01-18  Bruno Haible  <bruno@clisp.org>
32531
32532         * doc/glibc-functions/*.texi: New files.
32533         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
32534         to use the new files.
32535
32536 2008-01-17  Bruno Haible  <bruno@clisp.org>
32537
32538         * tests/test-gethostname.c (main): Fix printf statement.
32539
32540 2008-01-17  Simon Josefsson  <simon@josefsson.org>
32541
32542         * modules/gethostname-tests: New file.
32543
32544         * tests/test-gethostname.c: New file.
32545
32546 2008-01-17  Simon Josefsson  <simon@josefsson.org>
32547
32548         * lib/gethostname.c: Include string.h unconditionally, strncpy is
32549         used by the UNAME case.  Reported by Bruno Haible
32550         <bruno@clisp.org>.
32551
32552 2008-01-17  Eric Blake  <ebb9@byu.net>
32553
32554         Convert c-strcasestr to be more efficient.
32555         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
32556         (Depends-on): Add c-strcase, remove malloca, strnlen.
32557         * tests/test-c-strcasestr.c (main): Enhance test.
32558         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
32559
32560 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
32561
32562         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
32563         Use it in creating po/Makevars.
32564
32565 2008-01-15  Simon Josefsson  <simon@josefsson.org>
32566
32567         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
32568         Applications that requires it should initialize libgcrypt
32569         manually.
32570
32571 2008-01-16  Simon Josefsson  <simon@josefsson.org>
32572
32573         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
32574
32575 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
32576
32577         Fix problem with getdate on mingw32 reported by Simon Josefsson
32578         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
32579         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
32580         tzname", when deciding whether to declare tzname.
32581         * lib/strftime.c (tzname): Likewise.
32582
32583 2008-01-15  Bruno Haible  <bruno@clisp.org>
32584
32585         Work around a MacOS X 10.5 bug in frexpl().
32586         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
32587         * doc/functions/frexpl.texi: Document the bug.
32588         Reported by Elias Pipping <pipping@gentoo.org>.
32589
32590 2008-01-14  Eric Blake  <ebb9@byu.net>
32591
32592         Touch up previous patch.
32593         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
32594         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
32595
32596         Convert strcasestr module to use Two-Way algorithm.
32597         * modules/strcasestr-simple: New module, based on the old
32598         strcasestr, but with Two-Way rather than KMP.
32599         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
32600         * lib/string.in.h (rpl_strcasestr): Declare.
32601         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
32602         performance.
32603         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
32604         * modules/string (Makefile.am): Support strcasestr.
32605         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
32606         * modules/strcasestr-tests (Depends-on): Check for alarm.
32607         * tests/test-strcasestr.c: Augment test.
32608         * lib/str-two-way.h: Clean up stray macro.
32609         * NEWS: Document new module.
32610         * MODULES.html.sh (string handling): Likewise.
32611         * doc/functions/strcasestr.texi: New file.
32612         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
32613         here, since it is not a POSIX function.
32614
32615 2008-01-14  Colin Watson  <cjwatson@debian.org>
32616             Bruno Haible  <bruno@clisp.org>
32617
32618         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
32619         works fine; if not, set REPLACE_STRSIGNAL.
32620         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
32621         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32622         REPLACE_STRSIGNAL.
32623         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
32624         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
32625         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
32626
32627 2008-01-14  Bruno Haible  <bruno@clisp.org>
32628
32629         * modules/strsignal (Include): Change to <string.h>.
32630
32631 2008-01-14  Colin Watson  <cjwatson@debian.org>
32632
32633         * modules/argp (Notice): Add a notice recommending to change
32634         XGETTEXT_OPTIONS.
32635         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
32636
32637 2008-01-13  Colin Watson  <cjwatson@debian.org>
32638
32639         * modules/strsignal-tests: New file.
32640         * tests/test-strsignal.c: New file.
32641
32642         * lib/strsignal.c: New file, from glibc with modifications.
32643         * lib/siglist.h: New file, from glibc with modifications.
32644         * lib/string.in.h (strsignal): New declaration.
32645         * m4/strsignal.m4: New file.
32646         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32647         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
32648         * modules/strsignal: New file.
32649         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
32650         HAVE_DECL_STRSIGNAL.
32651
32652 2008-01-13  Bruno Haible  <bruno@clisp.org>
32653
32654         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
32655         locale encoding is not ASCII. Needed for OpenBSD 4.0.
32656         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
32657         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
32658
32659 2008-01-13  Bruno Haible  <bruno@clisp.org>
32660
32661         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
32662         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
32663         * lib/argp.h (__attribute__): Likewise.
32664         * lib/c-stack.c (__attribute__): Likewise.
32665         * lib/error.h (__attribute__): Likewise.
32666         * lib/fts.c (__attribute__): Likewise.
32667         * lib/openat.h (__attribute__): Likewise.
32668         * lib/stdio.in.h (__attribute__): Likewise.
32669         * lib/string.in.h (__attribute__): Likewise.
32670         * lib/utimens.c (__attribute__): Likewise.
32671         * lib/vasnprintf.h (__attribute__): Likewise.
32672         * lib/xalloc.h (__attribute__): Likewise.
32673         * lib/xprintf.h (__attribute__): Likewise.
32674         * lib/xstrtol.h (__attribute__): Likewise.
32675         * lib/xvasprintf.h (__attribute__): Likewise.
32676
32677 2008-01-12  Bruno Haible  <bruno@clisp.org>
32678
32679         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
32680         * doc/glibc-headers/a.out.texi: New file.
32681         * doc/glibc-headers/aliases.texi: New file.
32682         * doc/glibc-headers/alloca.texi: New file.
32683         * doc/glibc-headers/ar.texi: New file.
32684         * doc/glibc-headers/argp.texi: New file.
32685         * doc/glibc-headers/argz.texi: New file.
32686         * doc/glibc-headers/byteswap.texi: New file.
32687         * doc/glibc-headers/crypt.texi: New file.
32688         * doc/glibc-headers/endian.texi: New file.
32689         * doc/glibc-headers/envz.texi: New file.
32690         * doc/glibc-headers/err.texi: New file.
32691         * doc/glibc-headers/error.texi: New file.
32692         * doc/glibc-headers/execinfo.texi: New file.
32693         * doc/glibc-headers/fpu_control.texi: New file.
32694         * doc/glibc-headers/fstab.texi: New file.
32695         * doc/glibc-headers/fts.texi: New file.
32696         * doc/glibc-headers/getopt.texi: New file.
32697         * doc/glibc-headers/ieee754.texi: New file.
32698         * doc/glibc-headers/ifaddrs.texi: New file.
32699         * doc/glibc-headers/libintl.texi: New file.
32700         * doc/glibc-headers/mcheck.texi: New file.
32701         * doc/glibc-headers/mntent.texi: New file.
32702         * doc/glibc-headers/obstack.texi: New file.
32703         * doc/glibc-headers/paths.texi: New file.
32704         * doc/glibc-headers/printf.texi: New file.
32705         * doc/glibc-headers/pty.texi: New file.
32706         * doc/glibc-headers/resolv.texi: New file.
32707         * doc/glibc-headers/shadow.texi: New file.
32708         * doc/glibc-headers/sysexits.texi: New file.
32709         * doc/glibc-headers/ttyent.texi: New file.
32710
32711 2008-01-12  Jim Meyering  <meyering@redhat.com>
32712
32713         announce-gen: emit Gnulib's git-based version string.
32714         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
32715         New option --gnulib-version=V, where V is expected to be
32716         the output of running git describe in the gnulib directory.
32717         (get_tool_versions): Request feedback on xdelta.  I suspect it's
32718         not useful, and plan to stop publishing an xdelta file with each
32719         coreutils release.
32720
32721         * build-aux/announce-gen: Also check for lzma-compressed files.
32722
32723 2008-01-11  Bruno Haible  <bruno@clisp.org>
32724
32725         * tests/test-memmem.c (main): Increase maximum allowed time.
32726         * tests/test-strstr.c (main): Likewise.
32727
32728 2008-01-11  Bruno Haible  <bruno@clisp.org>
32729
32730         * doc/functions/memmem.texi: Add more precisions about platforms.
32731         * doc/functions/strstr.texi: Likewise.
32732
32733 2008-01-10  Eric Blake  <ebb9@byu.net>
32734
32735         * m4/strstr.m4: Delete cruft from copy-n-paste.
32736         Reported by Bruno Haible.
32737
32738 2008-01-10  Bruno Haible  <bruno@clisp.org>
32739
32740         Make c-strstr rely on strstr.
32741         * lib/c-strstr.c: Don't include str-kmp.h.
32742         (c_strstr): Define in terms of strstr.
32743         * modules/c-strstr (Files): Remove lib/str-kmp.h.
32744         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
32745
32746 2008-01-10  Bruno Haible  <bruno@clisp.org>
32747
32748         * doc/gnulib.texi (String Functions in C Locale): New section.
32749         * doc/c-ctype.texi: New file.
32750         * doc/c-strcase.texi: New file.
32751         * doc/c-strcaseeq.texi: New file.
32752         * doc/c-strcasestr.texi: New file.
32753         * doc/c-strstr.texi: New file.
32754         * doc/c-strtod.texi: New file.
32755         * doc/c-strtold.texi: New file.
32756
32757 2008-01-10  Eric Blake  <ebb9@byu.net>
32758
32759         * lib/relocatable.h: Fix a comment.
32760
32761 2008-01-10  Eric Blake  <ebb9@byu.net>
32762
32763         Share two-way algorithm.
32764         * lib/str-two-way.h: New file, merged from...
32765         * lib/memmem.c: ...here...
32766         * lib/strstr.c: ...and here.
32767         * modules/memmem (Files): Use it.
32768         * modules/strstr (Files): Likewise.
32769
32770         Avoid quadratic strstr implementations.
32771         * lib/strstr.c: New file.
32772         * m4/strstr.m4: Likewise.
32773         * modules/strstr: Likewise.
32774         * modules/strstr-tests: Likewise.
32775         * tests/test-strstr.c: Likewise.
32776         * lib/string.in.h (rpl_strstr): Declare.
32777         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
32778         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
32779         * modules/string (Makefile.am): Likewise.
32780         * MODULES.html.sh (string handling): Mention new module.
32781         * doc/functions/strstr.texi (strstr): Document the bug.
32782
32783 2008-01-10  Bruno Haible  <bruno@clisp.org>
32784
32785         * lib/relocatable.h (relocate): State whether result is freshly
32786         allocated or not.
32787         * lib/relocatable.c (relocate): Return a freshly allocated string
32788         instead of a pointer to a privately held string.
32789         Reported by Sylvain Beucler <beuc@gnu.org>.
32790
32791 2008-01-10  Colin Watson  <cjwatson@debian.org>
32792
32793         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
32794         s/S_ISNLK/S_ISLNK/.
32795
32796 2008-01-09  Bruno Haible  <bruno@clisp.org>
32797
32798         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
32799         and other files.
32800         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
32801         if it's only a guess.
32802         * modules/memmem: Simplify by depending on memmem-simple.
32803
32804 2008-01-09  Bruno Haible  <bruno@clisp.org>
32805
32806         Work around OpenBSD 4.0 tdelete() bug.
32807         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
32808         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
32809         macros and don't redefine the enum values.
32810         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
32811         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
32812         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
32813
32814 2008-01-09  Bruno Haible  <bruno@clisp.org>
32815
32816         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
32817         (main): Don't perform the tests if setlocale did not install a UTF-8
32818         locale. Needed on OpenBSD 4.0.
32819         * modules/wcwidth-tests (Depends-on): Add localcharset.
32820
32821 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
32822
32823         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
32824         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
32825         * NEWS: announce this.
32826         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
32827
32828 2008-01-09  Simon Josefsson  <simon@josefsson.org>
32829         and Eric Blake  <ebb9@byu.net>
32830
32831         Add memmem-simple module.
32832         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
32833         (gl_FUNC_MEMMEM): Separate performance from presence checks.
32834         * modules/memmem-simple: New file.
32835         * modules/memmem (Description): Tweak.
32836         * MODULES.html.sh (string handling): Mention new module.
32837         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
32838         addressed by memmem-simple.
32839         * NEWS: Document the difference.
32840
32841 2008-01-09  Eric Blake  <ebb9@byu.net>
32842
32843         Give gcc some memmem optimization hints.
32844         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
32845         (strcasestr): Declare as pure.
32846         * modules/memmem (Maintainer): Claim my implementation.
32847
32848 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32849
32850         Support AIX 6.1 and higher.
32851         * build-aux/config.libpath: Likewise.
32852         * build-aux/config.rpath: Likewise.
32853
32854 2008-01-08  Jim Meyering  <meyering@redhat.com>
32855             Bruno Haible  <bruno@clisp.org>
32856
32857         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
32858         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
32859         Reported by Peter Fales in
32860         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
32861
32862 2008-01-08  Bruno Haible  <bruno@clisp.org>
32863
32864         * modules/unictype/category-of (Depends-on): Add
32865         unictype/category-none.
32866         * modules/unictype/category-and-tests (Depends-on): Add
32867         unictype/category-{L,N,Lu,Nd}.
32868         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
32869         * modules/unictype/category-or-tests (Depends-on): Add
32870         unictype/category-{L,N}.
32871         * modules/unictype/category-name-tests (Depends-on): Add
32872         unictype/category-{Z,Nl}.
32873         Reported by Simon Josefsson.
32874
32875 2008-01-08  Bruno Haible  <bruno@clisp.org>
32876
32877         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
32878         convention better.
32879         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
32880         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
32881         Reported by Peter Miller <millerp@canb.auug.org.au>.
32882
32883 2008-01-08  Eric Blake  <ebb9@byu.net>
32884
32885         Rewrite memmem to guarantee linear complexity without malloc.
32886         * lib/memmem.c (memmem): Use Two-Way rather than
32887         Knuth-Morris-Pratt, to allow O(1) space usage.
32888         (critical_factorization, two_way_short_needle)
32889         (two_way_long_needle): New functions.
32890         (knuth_morris_pratt): Delete.
32891         * modules/memmem (Depends-on): No longer need malloca or stdbool.
32892         Add stdint.
32893         * tests/test-memmem.c (main): Add tests for periodic needle and
32894         sublinear performance.
32895         * doc/functions/memmem.texi (memmem): Document other deficiencies
32896         in cygwin and older glibc.
32897
32898 2008-01-08  Bruno Haible  <bruno@clisp.org>
32899
32900         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
32901         augmentation.
32902
32903 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
32904
32905         Add a configure time option: --disable-acl.
32906         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
32907         AC_ARG_ENABLE(acl).
32908
32909 2008-01-06  Simon Josefsson  <simon@josefsson.org>
32910
32911         * tests/test-localename.c: Don't include obsolete "setenv.h".
32912
32913         * modules/localename-tests (Depends-on): Need unsetenv.
32914
32915 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32916
32917         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
32918
32919 2008-01-06  Colin Watson  <cjwatson@debian.org>
32920
32921         * users.txt: Add man-db.
32922
32923 2008-01-07  Bruno Haible  <bruno@clisp.org>
32924
32925         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
32926         previous section name.
32927
32928 2008-01-07  Bruno Haible  <bruno@clisp.org>
32929
32930         * lib/progname.c (set_program_name): Don't strip off a leading
32931         "lt-" prefix outside a .libs directory.
32932         Suggested by Paul Eggert.
32933
32934 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
32935             Bruno Haible  <bruno@clisp.org>
32936
32937         Improve memory cleanup in 'relocatable' module.
32938         * lib/relocatable.h (compute_curr_prefix): Change return type to
32939         'char *'.
32940         * lib/relocatable.c (compute_curr_prefix): Change return type to
32941         'char *'. Free curr_installdir after use.
32942         (relocate): Free curr_prefix_better after use.
32943         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
32944
32945 2008-01-01  Bruno Haible  <bruno@clisp.org>
32946
32947         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
32948         failure on older glibc systems.
32949         Reported by Peter Fales <psfales@alcatel-lucent.com>.
32950
32951 2008-01-05  Eric Blake  <ebb9@byu.net>
32952
32953         Avoid quadratic system memmem.
32954         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
32955         Reported by Ralf Wildenhues.
32956
32957         Fix memmem test for mingw.
32958         * modules/memmem-tests (configure.ac): Check for alarm.
32959         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
32960         it.
32961         * doc/functions/memmem.texi: New file.
32962         * doc/gnulib.texi (Function Substitutes): Add memmem.
32963         Reported by Bruno Haible.
32964
32965 2008-01-04  Bruno Haible  <bruno@clisp.org>
32966
32967         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
32968         Require gl_HEADER_STRINGS_H_DEFAULTS, not
32969         gl_HEADER_STRING_H_DEFAULTS.
32970
32971 2008-01-04  Eric Blake  <ebb9@byu.net>
32972
32973         Shorten duration of memmem test.
32974         * tests/test-memmem.c (main): Use alarm to declare failure if test
32975         is taking too long.
32976         Reported by Ralf Wildenhues.
32977
32978 2007-12-21  Simon Josefsson  <simon@josefsson.org>
32979
32980         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
32981         string, needed by strerror.
32982
32983 2008-01-03  Colin Watson  <cjwatson@debian.org>
32984             Bruno Haible  <bruno@clisp.org>
32985
32986         * doc/gnulib-tool.texi (Localization): New section.
32987
32988 2008-01-02  Bruno Haible  <bruno@clisp.org>
32989
32990         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
32991         variables to 'unsigned char *' type.
32992         Reported by Paul Eggert.
32993
32994 2008-01-02  Jim Meyering  <jim@meyering.net>
32995
32996         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
32997
32998 2007-12-31  Jim Meyering  <jim@meyering.net>
32999
33000         Avoid use of private FTS type name.
33001         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
33002
33003 2007-12-30  Karl Berry  <karl@gnu.org>
33004
33005         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
33006         work around defect in Texinfo and/or the standalone Info browser.
33007
33008 2007-12-30  Bruno Haible  <bruno@clisp.org>
33009
33010         Unify 5 copies of the KMP code.
33011         * lib/str-kmp.h: New file.
33012         * lib/c-strcasestr.c: Include str-kmp.h.
33013         (knuth_morris_pratt): Remove function.
33014         (c_strcasestr): Update.
33015         * lib/c-strstr.c: Include str-kmp.h.
33016         (knuth_morris_pratt): Remove function.
33017         (c_strcasestr): Update.
33018         * lib/mbscasestr.c: Include str-kmp.h.
33019         (knuth_morris_pratt_unibyte): Remove function.
33020         * lib/mbsstr.c: Include str-kmp.h.
33021         (knuth_morris_pratt_unibyte): Remove function.
33022         * lib/strcasestr.c: Include str-kmp.h.
33023         (knuth_morris_pratt): Remove function.
33024         (strcasestr): Update.
33025         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
33026         * modules/c-strstr (Files): Likewise.
33027         * modules/mbscasestr (Files): Likewise.
33028         * modules/mbsstr (Files): Likewise.
33029         * modules/strcasestr (Files): Likewise.
33030         Suggested by Paul Eggert.
33031
33032 2007-12-30  Bruno Haible  <bruno@clisp.org>
33033
33034         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
33035         defined.
33036
33037 2007-12-30  Bruno Haible  <bruno@clisp.org>
33038
33039         * lib/xmalloca.h: Include xalloc.h.
33040         (xnmalloca): New macro.
33041
33042 2007-12-30  Bruno Haible  <bruno@clisp.org>
33043
33044         * lib/malloca.h (nmalloca): New macro.
33045         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
33046         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
33047         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
33048         knuth_morris_pratt_multibyte): Likewise.
33049         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
33050         knuth_morris_pratt_multibyte): Likewise.
33051         * lib/memmem.c (knuth_morris_pratt): Likewise.
33052         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
33053
33054 2007-12-25  Bruno Haible  <bruno@clisp.org>
33055
33056         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
33057         * lib/glob.c: Don't include openat.h.
33058         (link_exists2_p): Add back the code that deals with the
33059         !GLOB_ALTDIRFUNC case.
33060         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
33061         let it do the filename concatenation.
33062         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
33063         * modules/glob (Depends-on): Remove openat.
33064
33065 2007-12-31  Bruno Haible  <bruno@clisp.org>
33066
33067         * modules/dirfd (License): Change to LGPLv2+.
33068         Approved by Jim Meyering.
33069
33070 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
33071
33072         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
33073         when multiplying M by sizeof (size_t).
33074
33075 2007-12-10  Martin Lambers  <marlam@marlam.de>
33076
33077         Override getpagesize on mingw.
33078         * lib/getpagesize.c: New file.
33079         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
33080         * modules/getpagesize (Files): Add lib/getpagesize.c.
33081         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
33082         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33083         REPLACE_GETPAGESIZE.
33084         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
33085
33086 2007-12-25  Bruno Haible  <bruno@clisp.org>
33087
33088         * modules/localcharset (Notice): New field.
33089         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
33090         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
33091
33092 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
33093             Bruno Haible  <bruno@clisp.org>
33094
33095         Avoid using the syntax symbol() in formatted documentation.
33096         * MODULES.html.sh (func_module): When replacing symbol() with a
33097         hyperlink, remove the parentheses. Show an error if some remain.
33098         Recognize and render the '...' syntax.
33099         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
33100         Rework. Add paragraph about GCC's inlining.
33101         * doc/alloca.texi: Likewise.
33102         * doc/error.texi: Remove parentheses from symbol reference.
33103         * doc/gnulib-intro.texi: Likewise.
33104         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
33105         * modules/fnmatch (Description): Reword to say "the ... function".
33106         * modules/full-read (Description): Likewise.
33107         * modules/full-write (Description): Likewise.
33108         * modules/safe-read (Description): Likewise.
33109         * modules/safe-write (Description): Likewise.
33110         * modules/strchrnul (Description): Likewise.
33111         * modules/trim (Description): Likewise.
33112         * modules/error (Description): Remove parentheses from symbol
33113         references.
33114         * modules/verror (Description): Likewise.
33115         Reported by Karl Berry.
33116
33117 2007-12-25  Bruno Haible  <bruno@clisp.org>
33118
33119         Fixup after 2007-10-16 commit.
33120         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
33121
33122 2007-12-24  Bruno Haible  <bruno@clisp.org>
33123
33124         Make --enable-relocatable work with DESTDIR.
33125         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
33126         to compute installdir from destprog.
33127         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
33128         also set the RELOC_DESTDIR variable.
33129         Reported by Левашев Иван <octagram@bluebottle.com>.
33130
33131 2007-12-24  Bruno Haible  <bruno@clisp.org>
33132
33133         Fix link error due to xalloc_die().
33134         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
33135         of xreadlink.
33136         * lib/relocwrapper.c: Update comments.
33137         * build-aux/install-reloc: Remove xreadlink.c from file list.
33138         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
33139         xreadlink.c.
33140         Reported by Левашев Иван <octagram@bluebottle.com>.
33141
33142 2007-12-24  Bruno Haible  <bruno@clisp.org>
33143
33144         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
33145         * lib/setenv.h: Remove file.
33146         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
33147         lib/setenv.h.
33148         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
33149         (Depends-on): Add stdlib.
33150         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
33151         gl_FUNC_UNSETENV.
33152         (Include): Replace setenv.h with <stdlib.h>.
33153         * modules/unsetenv: New file.
33154         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
33155         * lib/unsetenv.c: Include <stdlib.h> first.
33156         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
33157         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
33158         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
33159         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
33160         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
33161         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
33162         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
33163         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
33164         * doc/functions/unsetenv.texi: Update.
33165         * modules/xsetenv (Depends-on): Add unsetenv.
33166         * modules/getdate (Depends-on): Likewise.
33167         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
33168         * lib/xsetenv.c: Don't include setenv.h.
33169         * lib/getdate.y: Likewise.
33170         * lib/relocwrapper.c: Likewise.
33171         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
33172         (Depends-on): Add stdlib.
33173         * NEWS: Mention the changes.
33174         Reported by Левашев Иван <octagram@bluebottle.com>.
33175
33176 2007-12-23  Bruno Haible  <bruno@clisp.org>
33177
33178         * lib/memmem.c (memmem): Use lowercase variable names. Tab
33179         indentation.
33180
33181 2007-12-23  Bruno Haible  <bruno@clisp.org>
33182
33183         * lib/c-strcasestr.c: Add more comments.
33184         * lib/c-strstr.c: Likewise.
33185         * lib/mbscasestr.c: Likewise.
33186         * lib/mbsstr.c: Likewise.
33187         * lib/strcasestr.c: Likewise.
33188         * lib/memmem.c: Likewise.
33189
33190 2007-12-23  Bruno Haible  <bruno@clisp.org>
33191
33192         * tests/test-memmem.c: Include <string.h> first.
33193
33194 2007-12-22  Bruno Haible  <bruno@clisp.org>
33195
33196         * gnulib-tool (func_create_testdir): Change $auxdir while generating
33197         the contents of $testsbase.
33198         Reported by Ralf Wildenhues.
33199
33200 2007-12-22  Bruno Haible  <bruno@clisp.org>
33201
33202         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
33203         two variables local_ldadd_before, local_ldadd_last.
33204
33205 2007-12-20  Eric Blake  <ebb9@byu.net>
33206
33207         Work around circular library issue when cross-compiling.
33208         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
33209         that progname.o does not need to pull in rpl_memcmp.
33210
33211 2007-12-19  Eric Blake  <ebb9@byu.net>
33212
33213         Fix memmem to avoid O(n^2) worst-case complexity.
33214         * lib/memmem.c (knuth_morris_pratt): New function.
33215         (memmem): Use it if first few naive iterations fail.
33216         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
33217         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
33218         * modules/memchr (License): Likewise.
33219         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
33220         malloca.
33221         * tests/test-memmem.c: Rewrite, borrowing ideas from
33222         test-mbsstr1.c; the old version wouldn't even compile!
33223         * modules/memmem-tests: New file.
33224         * lib/string.in.h (rpl_memmem): Add declaration.
33225         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
33226         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
33227         REPLACE_MEMMEM.
33228
33229 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
33230
33231         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
33232         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
33233         before any system include files, and undef after them all.  This
33234         should fix a problem on VMS reported by John E. Malmberg in
33235         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
33236
33237 2007-12-17  Eric Blake  <ebb9@byu.net>
33238
33239         Revert addition of verify, for BSD/OS.
33240         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
33241         can't handle large files, for the sake of obsolete platforms.
33242         * modules/fseeko (Depends-on): Remove verify.
33243         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
33244         * doc/functions/ftello.texi (ftello): Likewise.
33245         * doc/functions/fgetpos.texi (fgetpos): Likewise.
33246         Reported by Larry Jones.
33247
33248 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
33249
33250         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
33251         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
33252
33253 2007-12-17  Jim Meyering  <meyering@redhat.com>
33254
33255         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
33256         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
33257         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
33258         * modules/getcwd (Depends-on): Add openat.
33259         Reported by Petr Salinger.
33260
33261 2007-12-17  Bruno Haible  <bruno@clisp.org>
33262
33263         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
33264         avoid a segmentation fault of the configure test on x86_64 systems.
33265
33266 2007-12-15  Jim Meyering  <meyering@redhat.com>
33267
33268         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
33269
33270 2007-12-13  Eric Blake  <ebb9@byu.net>
33271
33272         Another fseek test.
33273         * tests/test-fseek.c (main): Also test ungetc handling.
33274         * tests/test-fseeko.c (main): Likewise.
33275         * modules/fseeko (Depends-on): Add verify.
33276         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
33277         large.
33278         Reported by Larry Jones.
33279
33280         Fix fseeko on mingw.
33281         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
33282         seek.
33283
33284         Beef up fseek tests.
33285         * tests/test-fseek.c (main): Also test eof handling.
33286         * tests/test-fseeko.c (main): Likewise.
33287         Reported by Larry Jones.
33288
33289 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
33290
33291         Fix fseeko on BSD-based platforms.
33292         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
33293         successful seek.
33294
33295 2007-12-12  Eric Blake  <ebb9@byu.net>
33296
33297         Allow circular dependency of separate libtests.a
33298         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
33299         when use_libtests.
33300
33301 2007-12-11  Eric Blake  <ebb9@byu.net>
33302
33303         Fix bug with -0.0L in previous patch.
33304         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
33305         * tests/test-isnan.c (main): Also test on zeroes.
33306         * tests/test-isnanf.c (main): Likewise.
33307         * tests/test-isnanl.h (main): Likewise.
33308
33309         Detect pseudo-denormals on x86 even when cross-compiling.
33310         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
33311         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
33312         invalid bit patterns that happen to satisfy ==.
33313
33314         Avoid link failures with separate libtests.a.
33315         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
33316         last, to satisfy circular dependencies.
33317
33318 2007-12-11  Eric Blake  <ebb9@byu.net>
33319         and Bruno Haible  <bruno@clisp.org>
33320
33321         Fix OpenBSD 4.0 <float.h> handling of long double.
33322         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
33323         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
33324         * doc/headers/float.texi (float.h): Document OpenBSD bug.
33325
33326 2007-12-11  Jim Meyering  <meyering@redhat.com>
33327
33328         * users.txt: Add libvirt.
33329
33330         Support versions of autoconf prior to 2.59c.
33331         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
33332         if it is not already defined.
33333
33334 2007-12-09  Bruno Haible  <bruno@clisp.org>
33335
33336         Let 'gnulib-tool --import' collect sources needed for the tests in
33337         tests/ rather than in lib/.
33338         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
33339         argument. If true, add rules to generate libtests.a, and put libtests.a
33340         into $(LDADD). Consider source files in subdirectories and set
33341         uses_subdirs.
33342         (func_emit_initmacro_start, func_emit_initmacro_end,
33343         func_emit_initmacro_done): Pass all arguments explicitly.
33344         (func_import): Determine two module lists main_modules,
33345         testsrelated_modules. Determine use_libtests. Determine two variables
33346         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
33347         instead of just sed_transform_lib_file. Determine two variables
33348         main_files and testsrelated_files. Compute 'files' as the union of
33349         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
33350         func_add_or_update. In the generated gnulib-comp.m4, collect the
33351         object files for tests/ in different variables than those for lib/.
33352         Substitute LIBTESTS_LIBDEPS.
33353         (func_create_testdir): Combine the uses_subdirs results from
33354         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
33355
33356 2007-12-09  Bruno Haible  <bruno@clisp.org>
33357
33358         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
33359         the build-aux directory.
33360
33361 2007-12-09  Bruno Haible  <bruno@clisp.org>
33362
33363         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
33364         introduced on 2006-09-09.
33365
33366 2007-12-07  Jim Meyering  <meyering@redhat.com>
33367
33368         Let these macros work also with autoconf-2.59.
33369         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
33370         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
33371         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
33372
33373 2007-12-06  Jim Meyering  <meyering@redhat.com>
33374
33375         Avoid a configure-time syntax error in gl_FUNC_ACL.
33376         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
33377         function in each branch, before testing the cache variable.
33378
33379 2007-12-04  Eric Blake  <ebb9@byu.net>
33380
33381         Make scripts executable.
33382         * build-aux/config.guess: Add execute permissions.
33383         * build-aux/config.sub: Likewise.
33384         * build-aux/gendocs.sh: Likewise.
33385
33386         Fix frexp on mingw.
33387         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
33388         cross-compiling.
33389         * doc/functions/frexp.texi (frexp): Document the bug.
33390
33391         Make cygwin fseeko check more reliable.
33392         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
33393         version numbers, rather than unrelated feature check.
33394         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
33395         * doc/functions/ftello.texi (ftello): Likewise.
33396         Reported by Bruno Haible.
33397
33398         * m4/strerror.m4: Bump version number.
33399
33400 2007-12-03  Bruno Haible  <bruno@clisp.org>
33401
33402         * doc/functions/mprotect.texi: Mention the mingw problem.
33403
33404 2007-12-03  Eric Blake  <ebb9@byu.net>
33405
33406         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
33407         REPLACE_STRERROR is initialized before this macro.
33408
33409 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
33410
33411         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
33412         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
33413         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
33414         put -lsec in even for programs other than 'ls'.  This fixes a problem
33415         for gettext reported by Bruno Haible in
33416         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
33417         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
33418         Add support for Solaris 10.  This isn't efficient, but should get the
33419         job done for now.
33420
33421 2007-12-03  James Youngman  <jay@gnu.org>
33422
33423         * doc/regexprops-generic.texi: change "an close-group" to "a
33424         close-group" and "illegal" to "not allowed".
33425
33426 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33427
33428         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
33429         pr_byname.h. Needed for the rare case when the maintainer has done
33430         "make maintainer-clean" in the source directory and then attempts a
33431         build outside the source directory.
33432         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
33433         scripts_byname.h.
33434
33435 2007-12-02  Martin Lambers <marlam@marlam.de>
33436             Bruno Haible  <bruno@clisp.org>
33437
33438         * lib/getpagesize.h: Remove file.
33439         * lib/unistd.in.h: Include declaration of getpagesize here.
33440         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
33441         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
33442         HAVE_SYS_PARAM_H.
33443         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
33444         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
33445         * modules/getpagesize (Files): Remove lib/getpagesize.h.
33446         (Depends-on): Add unistd.
33447         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33448         (Include): Use <unistd.h> instead of getpagesize.h.
33449         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
33450         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
33451         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
33452         gl_GETPAGESIZE invocation, already handled by module dependency.
33453         * lib/pagealign_alloc.c: Don't include getpagesize.h.
33454
33455 2007-12-02  Bruno Haible  <bruno@clisp.org>
33456
33457         * modules/strings-tests: New file.
33458         * tests/test-strings.c: New file.
33459
33460         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
33461         * lib/strings.in.h: New file.
33462         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
33463         * m4/strings_h.m4: New file.
33464         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
33465         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
33466         * modules/strings: New file.
33467         * modules/string (Makefile.am): Update.
33468         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
33469         Reported by Karl Berry.
33470
33471 2007-12-01  Eric Blake  <ebb9@byu.net>
33472
33473         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
33474         accomodate fix in cygwin 1.5.25.
33475
33476 2007-12-01  Jim Meyering  <meyering@redhat.com>
33477
33478         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
33479         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
33480         that would inhibit utf8-optimization of a regexp containing line-
33481         or buffer-anchors, e.g., `^', `$'.
33482
33483 2007-11-30  Bruno Haible  <bruno@clisp.org>
33484
33485         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
33486         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
33487         glthread_recursive_lock_init.
33488         * lib/lock.c (glthread_recursive_lock_init)
33489         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
33490         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
33491
33492 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
33493
33494         New function qset_acl, like set_acl but with syscall semantics.
33495         * lib/acl.h (qset_acl): New decl.
33496         * lib/acl.c (qset_acl): New function.
33497         (set_acl): Use new function.  Use more-consistent diagnostics.
33498
33499 2007-11-28  Jim Meyering  <meyering@redhat.com>
33500
33501         * modules/physmem (License): Change from GPL to LGPLv2+.
33502
33503 2007-11-26  Bruno Haible  <bruno@clisp.org>
33504
33505         * lib/vasnprintf.c (decode_long_double): Don't abort if the
33506         'long double' type has excess precision.
33507         Reported by Jim Meyering in
33508         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
33509
33510 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33511
33512         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
33513         Sync from <http://gnu.org/licenses>.
33514         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
33515         with license text from same location.
33516         * doc/maintain.texi, doc/standards.texi:  Sync from
33517         <http://savannah.gnu.org/projects/gnustandards>.
33518
33519 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
33520         and Jim Meyering  <meyering@redhat.com>
33521
33522         Adjust getdate' grammar to accept a slightly more regular language.
33523         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
33524         Before, the former was rejected.
33525         * lib/getdate.y (digits_to_date_time): New function, factored
33526         out of ...
33527         (number): ...here.  Just call digits_to_date_time.
33528         (hybrid): New non-terminal to handle an <unsigned number,
33529         signed relative offset> sequence consistently.
33530
33531 2007-11-18  Jim Meyering  <meyering@redhat.com>
33532
33533         Pull my changes from coreutils:
33534         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
33535         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
33536         use of $gnulib_tool_option_extras, so that it's separated from the
33537         preceding argument.
33538
33539         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
33540         * build-aux/bootstrap (cp_mark_as_generated): Create any required
33541         parent destination directories before copying a file into place.
33542
33543 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
33544
33545         bootstrap: work also with 4-argument variant of AC_INIT
33546         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
33547
33548 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
33549
33550         Port test-getaddrinfo to Solaris.
33551         Problem reported by Bruno Haible in
33552         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
33553         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
33554         explanation of setting 'hints'.
33555         Don't reject an implementation merely because it returns EAI_SERVICE.
33556         (EAI_SERVICE): Define to 0 if not defined.
33557
33558 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
33559
33560         The license of gnu-make and posix-shell is now "GPLed build tool".
33561         * modules/gnu-make (License): Likewise.
33562         * modules/posix-shell (License): Likewise.
33563
33564         New module posix-shell, for determining a POSIX shell
33565         or perhaps something that is close enough to a POSIX shell.
33566         * m4/posix-shell.m4: New file.
33567         * modules/posix-shell: New file.
33568
33569         * MODULES.html.sh: Mention new module.
33570
33571         New module gnu-make, for determining whether we're using GNU Make.
33572         * m4/gnu-make.m4: New file.
33573         * modules/gnu-make: New file.
33574         * MODULES.html.sh: Mention new module.
33575
33576 2007-11-14  Jim Meyering  <meyering@redhat.com>
33577
33578         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
33579         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
33580         use this macro to create a function _definition_.
33581         Remove useless "#undef ARGMATCH_DIE".
33582
33583 2007-11-14  Bruno Haible  <bruno@clisp.org>
33584
33585         * lib/config.charset: Update for OpenBSD 4.1.
33586         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
33587
33588 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
33589
33590         Document 64-bit #if problems in stdint.texi.
33591         * doc/headers/stdint.texi (stdint.h): Mention problems with
33592         64-bit-#if, and how to work around them.
33593
33594         Don't insist on 'long long int' support in the preprocessor.  It
33595         breaks too many things.  For example, PRIdMAX still uses a 'long
33596         long int' format with the latest Sun compiler, even though
33597         HAVE_LONG_LONG_INT isn't defined due to that compiler's
33598         preprocessor problem.  This causes the latest coreutils to dump
33599         core on Solaris 10 sparc with the Sun C compiler.
33600         Instead, fix the 2007-10-16 problem in a different way, by evaluating
33601         the troublesome expressions at configure-time, not at #if-time.
33602         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
33603         preprocessor.
33604         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
33605         compile-time C checks, done at 'configure'-time.
33606         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
33607         * modules/inttypes (Makefile): Substitute the new symbols that
33608         gl_INTTYPES_H now generates.
33609         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
33610
33611 2007-11-12  Bruno Haible  <bruno@clisp.org>
33612
33613         Tests for Unicode character classification functions.
33614
33615         * modules/unictype/bidicategory-byname-tests: New file.
33616         * modules/unictype/bidicategory-name-tests: New file.
33617         * modules/unictype/bidicategory-of-tests: New file.
33618         * modules/unictype/bidicategory-test-tests: New file.
33619         * modules/unictype/block-list-tests: New file.
33620         * modules/unictype/block-of-tests: New file.
33621         * modules/unictype/block-test-tests: New file.
33622         * modules/unictype/category-C-tests: New file.
33623         * modules/unictype/category-Cc-tests: New file.
33624         * modules/unictype/category-Cf-tests: New file.
33625         * modules/unictype/category-Cn-tests: New file.
33626         * modules/unictype/category-Co-tests: New file.
33627         * modules/unictype/category-Cs-tests: New file.
33628         * modules/unictype/category-L-tests: New file.
33629         * modules/unictype/category-Ll-tests: New file.
33630         * modules/unictype/category-Lm-tests: New file.
33631         * modules/unictype/category-Lo-tests: New file.
33632         * modules/unictype/category-Lt-tests: New file.
33633         * modules/unictype/category-Lu-tests: New file.
33634         * modules/unictype/category-M-tests: New file.
33635         * modules/unictype/category-Mc-tests: New file.
33636         * modules/unictype/category-Me-tests: New file.
33637         * modules/unictype/category-Mn-tests: New file.
33638         * modules/unictype/category-N-tests: New file.
33639         * modules/unictype/category-Nd-tests: New file.
33640         * modules/unictype/category-Nl-tests: New file.
33641         * modules/unictype/category-No-tests: New file.
33642         * modules/unictype/category-P-tests: New file.
33643         * modules/unictype/category-Pc-tests: New file.
33644         * modules/unictype/category-Pd-tests: New file.
33645         * modules/unictype/category-Pe-tests: New file.
33646         * modules/unictype/category-Pf-tests: New file.
33647         * modules/unictype/category-Pi-tests: New file.
33648         * modules/unictype/category-Po-tests: New file.
33649         * modules/unictype/category-Ps-tests: New file.
33650         * modules/unictype/category-S-tests: New file.
33651         * modules/unictype/category-Sc-tests: New file.
33652         * modules/unictype/category-Sk-tests: New file.
33653         * modules/unictype/category-Sm-tests: New file.
33654         * modules/unictype/category-So-tests: New file.
33655         * modules/unictype/category-Z-tests: New file.
33656         * modules/unictype/category-Zl-tests: New file.
33657         * modules/unictype/category-Zp-tests: New file.
33658         * modules/unictype/category-Zs-tests: New file.
33659         * modules/unictype/category-and-not-tests: New file.
33660         * modules/unictype/category-and-tests: New file.
33661         * modules/unictype/category-byname-tests: New file.
33662         * modules/unictype/category-name-tests: New file.
33663         * modules/unictype/category-none-tests: New file.
33664         * modules/unictype/category-of-tests: New file.
33665         * modules/unictype/category-or-tests: New file.
33666         * modules/unictype/category-test-withtable-tests: New file.
33667         * modules/unictype/combining-class-tests: New file.
33668         * modules/unictype/ctype-alnum-tests: New file.
33669         * modules/unictype/ctype-alpha-tests: New file.
33670         * modules/unictype/ctype-blank-tests: New file.
33671         * modules/unictype/ctype-cntrl-tests: New file.
33672         * modules/unictype/ctype-digit-tests: New file.
33673         * modules/unictype/ctype-graph-tests: New file.
33674         * modules/unictype/ctype-lower-tests: New file.
33675         * modules/unictype/ctype-print-tests: New file.
33676         * modules/unictype/ctype-punct-tests: New file.
33677         * modules/unictype/ctype-space-tests: New file.
33678         * modules/unictype/ctype-upper-tests: New file.
33679         * modules/unictype/ctype-xdigit-tests: New file.
33680         * modules/unictype/decimal-digit-tests: New file.
33681         * modules/unictype/digit-tests: New file.
33682         * modules/unictype/mirror-tests: New file.
33683         * modules/unictype/numeric-tests: New file.
33684         * modules/unictype/property-alphabetic-tests: New file.
33685         * modules/unictype/property-ascii-hex-digit-tests: New file.
33686         * modules/unictype/property-bidi-arabic-digit-tests: New file.
33687         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
33688         * modules/unictype/property-bidi-block-separator-tests: New file.
33689         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
33690         * modules/unictype/property-bidi-common-separator-tests: New file.
33691         * modules/unictype/property-bidi-control-tests: New file.
33692         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
33693         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
33694         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
33695         * modules/unictype/property-bidi-european-digit-tests: New file.
33696         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
33697         * modules/unictype/property-bidi-left-to-right-tests: New file.
33698         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
33699         * modules/unictype/property-bidi-other-neutral-tests: New file.
33700         * modules/unictype/property-bidi-pdf-tests: New file.
33701         * modules/unictype/property-bidi-segment-separator-tests: New file.
33702         * modules/unictype/property-bidi-whitespace-tests: New file.
33703         * modules/unictype/property-byname-tests: New file.
33704         * modules/unictype/property-combining-tests: New file.
33705         * modules/unictype/property-composite-tests: New file.
33706         * modules/unictype/property-currency-symbol-tests: New file.
33707         * modules/unictype/property-dash-tests: New file.
33708         * modules/unictype/property-decimal-digit-tests: New file.
33709         * modules/unictype/property-default-ignorable-code-point-tests: New file.
33710         * modules/unictype/property-deprecated-tests: New file.
33711         * modules/unictype/property-diacritic-tests: New file.
33712         * modules/unictype/property-extender-tests: New file.
33713         * modules/unictype/property-format-control-tests: New file.
33714         * modules/unictype/property-grapheme-base-tests: New file.
33715         * modules/unictype/property-grapheme-extend-tests: New file.
33716         * modules/unictype/property-grapheme-link-tests: New file.
33717         * modules/unictype/property-hex-digit-tests: New file.
33718         * modules/unictype/property-hyphen-tests: New file.
33719         * modules/unictype/property-id-continue-tests: New file.
33720         * modules/unictype/property-id-start-tests: New file.
33721         * modules/unictype/property-ideographic-tests: New file.
33722         * modules/unictype/property-ids-binary-operator-tests: New file.
33723         * modules/unictype/property-ids-trinary-operator-tests: New file.
33724         * modules/unictype/property-ignorable-control-tests: New file.
33725         * modules/unictype/property-iso-control-tests: New file.
33726         * modules/unictype/property-join-control-tests: New file.
33727         * modules/unictype/property-left-of-pair-tests: New file.
33728         * modules/unictype/property-line-separator-tests: New file.
33729         * modules/unictype/property-logical-order-exception-tests: New file.
33730         * modules/unictype/property-lowercase-tests: New file.
33731         * modules/unictype/property-math-tests: New file.
33732         * modules/unictype/property-non-break-tests: New file.
33733         * modules/unictype/property-not-a-character-tests: New file.
33734         * modules/unictype/property-numeric-tests: New file.
33735         * modules/unictype/property-other-alphabetic-tests: New file.
33736         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
33737         * modules/unictype/property-other-grapheme-extend-tests: New file.
33738         * modules/unictype/property-other-id-continue-tests: New file.
33739         * modules/unictype/property-other-id-start-tests: New file.
33740         * modules/unictype/property-other-lowercase-tests: New file.
33741         * modules/unictype/property-other-math-tests: New file.
33742         * modules/unictype/property-other-uppercase-tests: New file.
33743         * modules/unictype/property-paired-punctuation-tests: New file.
33744         * modules/unictype/property-paragraph-separator-tests: New file.
33745         * modules/unictype/property-pattern-syntax-tests: New file.
33746         * modules/unictype/property-pattern-white-space-tests: New file.
33747         * modules/unictype/property-private-use-tests: New file.
33748         * modules/unictype/property-punctuation-tests: New file.
33749         * modules/unictype/property-quotation-mark-tests: New file.
33750         * modules/unictype/property-radical-tests: New file.
33751         * modules/unictype/property-sentence-terminal-tests: New file.
33752         * modules/unictype/property-soft-dotted-tests: New file.
33753         * modules/unictype/property-space-tests: New file.
33754         * modules/unictype/property-terminal-punctuation-tests: New file.
33755         * modules/unictype/property-test-tests: New file.
33756         * modules/unictype/property-titlecase-tests: New file.
33757         * modules/unictype/property-unassigned-code-value-tests: New file.
33758         * modules/unictype/property-unified-ideograph-tests: New file.
33759         * modules/unictype/property-uppercase-tests: New file.
33760         * modules/unictype/property-variation-selector-tests: New file.
33761         * modules/unictype/property-white-space-tests: New file.
33762         * modules/unictype/property-xid-continue-tests: New file.
33763         * modules/unictype/property-xid-start-tests: New file.
33764         * modules/unictype/property-zero-width-tests: New file.
33765         * modules/unictype/scripts-tests: New file.
33766         * modules/unictype/syntax-c-ident-tests: New file.
33767         * modules/unictype/syntax-c-whitespace-tests: New file.
33768         * modules/unictype/syntax-java-ident-tests: New file.
33769         * modules/unictype/syntax-java-whitespace-tests: New file.
33770         * tests/unictype/test-bidi_byname.c: New file.
33771         * tests/unictype/test-bidi_name.c: New file.
33772         * tests/unictype/test-bidi_of.c: New file.
33773         * tests/unictype/test-bidi_test.c: New file.
33774         * tests/unictype/test-block_list.c: New file.
33775         * tests/unictype/test-block_of.c: New file.
33776         * tests/unictype/test-block_test.c: New file.
33777         * tests/unictype/test-categ_and.c: New file.
33778         * tests/unictype/test-categ_and_not.c: New file.
33779         * tests/unictype/test-categ_byname.c: New file.
33780         * tests/unictype/test-categ_name.c: New file.
33781         * tests/unictype/test-categ_none.c: New file.
33782         * tests/unictype/test-categ_of.c: New file.
33783         * tests/unictype/test-categ_or.c: New file.
33784         * tests/unictype/test-categ_test_withtable.c: New file.
33785         * tests/unictype/test-combining.c: New file.
33786         * tests/unictype/test-decdigit.c: New file.
33787         * tests/unictype/test-digit.c: New file.
33788         * tests/unictype/test-mirror.c: New file.
33789         * tests/unictype/test-numeric.c: New file.
33790         * tests/unictype/test-pr_byname.c: New file.
33791         * tests/unictype/test-pr_test.c: New file.
33792         * tests/unictype/test-predicate-part1.h: New file.
33793         * tests/unictype/test-predicate-part2.h: New file.
33794         * tests/unictype/test-scripts.c: New file.
33795         * tests/unictype/test-sy_c_ident.c: New file.
33796         * tests/unictype/test-sy_java_ident.c: New file.
33797
33798         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
33799         for Unicode 5.0.0.
33800         * tests/unictype/test-categ_Cc.c: Likewise.
33801         * tests/unictype/test-categ_Cf.c: Likewise.
33802         * tests/unictype/test-categ_Cn.c: Likewise.
33803         * tests/unictype/test-categ_Co.c: Likewise.
33804         * tests/unictype/test-categ_Cs.c: Likewise.
33805         * tests/unictype/test-categ_L.c: Likewise.
33806         * tests/unictype/test-categ_Ll.c: Likewise.
33807         * tests/unictype/test-categ_Lm.c: Likewise.
33808         * tests/unictype/test-categ_Lo.c: Likewise.
33809         * tests/unictype/test-categ_Lt.c: Likewise.
33810         * tests/unictype/test-categ_Lu.c: Likewise.
33811         * tests/unictype/test-categ_M.c: Likewise.
33812         * tests/unictype/test-categ_Mc.c: Likewise.
33813         * tests/unictype/test-categ_Me.c: Likewise.
33814         * tests/unictype/test-categ_Mn.c: Likewise.
33815         * tests/unictype/test-categ_N.c: Likewise.
33816         * tests/unictype/test-categ_Nd.c: Likewise.
33817         * tests/unictype/test-categ_Nl.c: Likewise.
33818         * tests/unictype/test-categ_No.c: Likewise.
33819         * tests/unictype/test-categ_P.c: Likewise.
33820         * tests/unictype/test-categ_Pc.c: Likewise.
33821         * tests/unictype/test-categ_Pd.c: Likewise.
33822         * tests/unictype/test-categ_Pe.c: Likewise.
33823         * tests/unictype/test-categ_Pf.c: Likewise.
33824         * tests/unictype/test-categ_Pi.c: Likewise.
33825         * tests/unictype/test-categ_Po.c: Likewise.
33826         * tests/unictype/test-categ_Ps.c: Likewise.
33827         * tests/unictype/test-categ_S.c: Likewise.
33828         * tests/unictype/test-categ_Sc.c: Likewise.
33829         * tests/unictype/test-categ_Sk.c: Likewise.
33830         * tests/unictype/test-categ_Sm.c: Likewise.
33831         * tests/unictype/test-categ_So.c: Likewise.
33832         * tests/unictype/test-categ_Z.c: Likewise.
33833         * tests/unictype/test-categ_Zl.c: Likewise.
33834         * tests/unictype/test-categ_Zp.c: Likewise.
33835         * tests/unictype/test-categ_Zs.c: Likewise.
33836         * tests/unictype/test-ctype_alnum.c: Likewise.
33837         * tests/unictype/test-ctype_alpha.c: Likewise.
33838         * tests/unictype/test-ctype_blank.c: Likewise.
33839         * tests/unictype/test-ctype_cntrl.c: Likewise.
33840         * tests/unictype/test-ctype_digit.c: Likewise.
33841         * tests/unictype/test-ctype_graph.c: Likewise.
33842         * tests/unictype/test-ctype_lower.c: Likewise.
33843         * tests/unictype/test-ctype_print.c: Likewise.
33844         * tests/unictype/test-ctype_punct.c: Likewise.
33845         * tests/unictype/test-ctype_space.c: Likewise.
33846         * tests/unictype/test-ctype_upper.c: Likewise.
33847         * tests/unictype/test-ctype_xdigit.c: Likewise.
33848         * tests/unictype/test-decdigit.h: Likewise.
33849         * tests/unictype/test-digit.h: Likewise.
33850         * tests/unictype/test-numeric.h: Likewise.
33851         * tests/unictype/test-pr_alphabetic.c: Likewise.
33852         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
33853         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
33854         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
33855         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
33856         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
33857         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
33858         * tests/unictype/test-pr_bidi_control.c: Likewise.
33859         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
33860         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
33861         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
33862         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
33863         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
33864         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
33865         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
33866         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
33867         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
33868         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
33869         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
33870         * tests/unictype/test-pr_combining.c: Likewise.
33871         * tests/unictype/test-pr_composite.c: Likewise.
33872         * tests/unictype/test-pr_currency_symbol.c: Likewise.
33873         * tests/unictype/test-pr_dash.c: Likewise.
33874         * tests/unictype/test-pr_decimal_digit.c: Likewise.
33875         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
33876         * tests/unictype/test-pr_deprecated.c: Likewise.
33877         * tests/unictype/test-pr_diacritic.c: Likewise.
33878         * tests/unictype/test-pr_extender.c: Likewise.
33879         * tests/unictype/test-pr_format_control.c: Likewise.
33880         * tests/unictype/test-pr_grapheme_base.c: Likewise.
33881         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
33882         * tests/unictype/test-pr_grapheme_link.c: Likewise.
33883         * tests/unictype/test-pr_hex_digit.c: Likewise.
33884         * tests/unictype/test-pr_hyphen.c: Likewise.
33885         * tests/unictype/test-pr_id_continue.c: Likewise.
33886         * tests/unictype/test-pr_id_start.c: Likewise.
33887         * tests/unictype/test-pr_ideographic.c: Likewise.
33888         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
33889         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
33890         * tests/unictype/test-pr_ignorable_control.c: Likewise.
33891         * tests/unictype/test-pr_iso_control.c: Likewise.
33892         * tests/unictype/test-pr_join_control.c: Likewise.
33893         * tests/unictype/test-pr_left_of_pair.c: Likewise.
33894         * tests/unictype/test-pr_line_separator.c: Likewise.
33895         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
33896         * tests/unictype/test-pr_lowercase.c: Likewise.
33897         * tests/unictype/test-pr_math.c: Likewise.
33898         * tests/unictype/test-pr_non_break.c: Likewise.
33899         * tests/unictype/test-pr_not_a_character.c: Likewise.
33900         * tests/unictype/test-pr_numeric.c: Likewise.
33901         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
33902         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
33903         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
33904         * tests/unictype/test-pr_other_id_continue.c: Likewise.
33905         * tests/unictype/test-pr_other_id_start.c: Likewise.
33906         * tests/unictype/test-pr_other_lowercase.c: Likewise.
33907         * tests/unictype/test-pr_other_math.c: Likewise.
33908         * tests/unictype/test-pr_other_uppercase.c: Likewise.
33909         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
33910         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
33911         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
33912         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
33913         * tests/unictype/test-pr_private_use.c: Likewise.
33914         * tests/unictype/test-pr_punctuation.c: Likewise.
33915         * tests/unictype/test-pr_quotation_mark.c: Likewise.
33916         * tests/unictype/test-pr_radical.c: Likewise.
33917         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
33918         * tests/unictype/test-pr_soft_dotted.c: Likewise.
33919         * tests/unictype/test-pr_space.c: Likewise.
33920         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
33921         * tests/unictype/test-pr_titlecase.c: Likewise.
33922         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
33923         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
33924         * tests/unictype/test-pr_uppercase.c: Likewise.
33925         * tests/unictype/test-pr_variation_selector.c: Likewise.
33926         * tests/unictype/test-pr_white_space.c: Likewise.
33927         * tests/unictype/test-pr_xid_continue.c: Likewise.
33928         * tests/unictype/test-pr_xid_start.c: Likewise.
33929         * tests/unictype/test-pr_zero_width.c: Likewise.
33930         * tests/unictype/test-sy_c_whitespace.c: Likewise.
33931         * tests/unictype/test-sy_java_whitespace.c: Likewise.
33932
33933 2007-11-12  Bruno Haible  <bruno@clisp.org>
33934
33935         Unicode character classification functions.
33936         * lib/unictype.h: New file.
33937         * modules/unictype/base: New file.
33938         * modules/unictype/category-L: New file.
33939         * modules/unictype/category-Lu: New file.
33940         * modules/unictype/category-Ll: New file.
33941         * modules/unictype/category-Lt: New file.
33942         * modules/unictype/category-Lm: New file.
33943         * modules/unictype/category-Lo: New file.
33944         * modules/unictype/category-M: New file.
33945         * modules/unictype/category-Mn: New file.
33946         * modules/unictype/category-Mc: New file.
33947         * modules/unictype/category-Me: New file.
33948         * modules/unictype/category-N: New file.
33949         * modules/unictype/category-Nd: New file.
33950         * modules/unictype/category-Nl: New file.
33951         * modules/unictype/category-No: New file.
33952         * modules/unictype/category-P: New file.
33953         * modules/unictype/category-Pc: New file.
33954         * modules/unictype/category-Pd: New file.
33955         * modules/unictype/category-Ps: New file.
33956         * modules/unictype/category-Pe: New file.
33957         * modules/unictype/category-Pi: New file.
33958         * modules/unictype/category-Pf: New file.
33959         * modules/unictype/category-Po: New file.
33960         * modules/unictype/category-S: New file.
33961         * modules/unictype/category-Sm: New file.
33962         * modules/unictype/category-Sc: New file.
33963         * modules/unictype/category-Sk: New file.
33964         * modules/unictype/category-So: New file.
33965         * modules/unictype/category-Z: New file.
33966         * modules/unictype/category-Zs: New file.
33967         * modules/unictype/category-Zl: New file.
33968         * modules/unictype/category-Zp: New file.
33969         * modules/unictype/category-C: New file.
33970         * modules/unictype/category-Cc: New file.
33971         * modules/unictype/category-Cf: New file.
33972         * modules/unictype/category-Cs: New file.
33973         * modules/unictype/category-Co: New file.
33974         * modules/unictype/category-Cn: New file.
33975         * modules/unictype/category-or: New file.
33976         * modules/unictype/category-of: New file.
33977         * modules/unictype/category-test: New file.
33978         * modules/unictype/category-test-withtable: New file.
33979         * modules/unictype/category-byname: New file.
33980         * modules/unictype/category-none: New file.
33981         * modules/unictype/category-and: New file.
33982         * modules/unictype/category-and-not: New file.
33983         * modules/unictype/category-name: New file.
33984         * modules/unictype/combining-class: New file.
33985         * modules/unictype/category-all: New file.
33986         * modules/unictype/bidicategory-all: New file.
33987         * modules/unictype/bidicategory-byname: New file.
33988         * modules/unictype/bidicategory-name: New file.
33989         * modules/unictype/bidicategory-of: New file.
33990         * modules/unictype/bidicategory-test: New file.
33991         * modules/unictype/decimal-digit: New file.
33992         * modules/unictype/digit: New file.
33993         * modules/unictype/numeric: New file.
33994         * modules/unictype/mirror: New file.
33995         * modules/unictype/property-white-space: New file.
33996         * modules/unictype/property-alphabetic: New file.
33997         * modules/unictype/property-other-alphabetic: New file.
33998         * modules/unictype/property-not-a-character: New file.
33999         * modules/unictype/property-default-ignorable-code-point: New file.
34000         * modules/unictype/property-other-default-ignorable-code-point: New
34001         file.
34002         * modules/unictype/property-deprecated: New file.
34003         * modules/unictype/property-logical-order-exception: New file.
34004         * modules/unictype/property-variation-selector: New file.
34005         * modules/unictype/property-private-use: New file.
34006         * modules/unictype/property-unassigned-code-value: New file.
34007         * modules/unictype/property-uppercase: New file.
34008         * modules/unictype/property-other-uppercase: New file.
34009         * modules/unictype/property-lowercase: New file.
34010         * modules/unictype/property-other-lowercase: New file.
34011         * modules/unictype/property-titlecase: New file.
34012         * modules/unictype/property-soft-dotted: New file.
34013         * modules/unictype/property-id-start: New file.
34014         * modules/unictype/property-other-id-start: New file.
34015         * modules/unictype/property-id-continue: New file.
34016         * modules/unictype/property-other-id-continue: New file.
34017         * modules/unictype/property-xid-start: New file.
34018         * modules/unictype/property-xid-continue: New file.
34019         * modules/unictype/property-pattern-white-space: New file.
34020         * modules/unictype/property-pattern-syntax: New file.
34021         * modules/unictype/property-join-control: New file.
34022         * modules/unictype/property-grapheme-base: New file.
34023         * modules/unictype/property-grapheme-extend: New file.
34024         * modules/unictype/property-other-grapheme-extend: New file.
34025         * modules/unictype/property-grapheme-link: New file.
34026         * modules/unictype/property-bidi-control: New file.
34027         * modules/unictype/property-bidi-left-to-right: New file.
34028         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
34029         * modules/unictype/property-bidi-arabic-right-to-left: New file.
34030         * modules/unictype/property-bidi-european-digit: New file.
34031         * modules/unictype/property-bidi-eur-num-separator: New file.
34032         * modules/unictype/property-bidi-eur-num-terminator: New file.
34033         * modules/unictype/property-bidi-arabic-digit: New file.
34034         * modules/unictype/property-bidi-common-separator: New file.
34035         * modules/unictype/property-bidi-block-separator: New file.
34036         * modules/unictype/property-bidi-segment-separator: New file.
34037         * modules/unictype/property-bidi-whitespace: New file.
34038         * modules/unictype/property-bidi-non-spacing-mark: New file.
34039         * modules/unictype/property-bidi-boundary-neutral: New file.
34040         * modules/unictype/property-bidi-pdf: New file.
34041         * modules/unictype/property-bidi-embedding-or-override: New file.
34042         * modules/unictype/property-bidi-other-neutral: New file.
34043         * modules/unictype/property-hex-digit: New file.
34044         * modules/unictype/property-ascii-hex-digit: New file.
34045         * modules/unictype/property-ideographic: New file.
34046         * modules/unictype/property-unified-ideograph: New file.
34047         * modules/unictype/property-radical: New file.
34048         * modules/unictype/property-ids-binary-operator: New file.
34049         * modules/unictype/property-ids-trinary-operator: New file.
34050         * modules/unictype/property-zero-width: New file.
34051         * modules/unictype/property-space: New file.
34052         * modules/unictype/property-non-break: New file.
34053         * modules/unictype/property-iso-control: New file.
34054         * modules/unictype/property-format-control: New file.
34055         * modules/unictype/property-dash: New file.
34056         * modules/unictype/property-hyphen: New file.
34057         * modules/unictype/property-punctuation: New file.
34058         * modules/unictype/property-line-separator: New file.
34059         * modules/unictype/property-paragraph-separator: New file.
34060         * modules/unictype/property-quotation-mark: New file.
34061         * modules/unictype/property-sentence-terminal: New file.
34062         * modules/unictype/property-terminal-punctuation: New file.
34063         * modules/unictype/property-currency-symbol: New file.
34064         * modules/unictype/property-math: New file.
34065         * modules/unictype/property-other-math: New file.
34066         * modules/unictype/property-paired-punctuation: New file.
34067         * modules/unictype/property-left-of-pair: New file.
34068         * modules/unictype/property-combining: New file.
34069         * modules/unictype/property-composite: New file.
34070         * modules/unictype/property-decimal-digit: New file.
34071         * modules/unictype/property-numeric: New file.
34072         * modules/unictype/property-diacritic: New file.
34073         * modules/unictype/property-extender: New file.
34074         * modules/unictype/property-ignorable-control: New file.
34075         * modules/unictype/property-test: New file.
34076         * modules/unictype/property-byname: New file.
34077         * modules/unictype/property-all: New file.
34078         * modules/unictype/scripts: New file.
34079         * modules/unictype/scripts-all: New file.
34080         * modules/unictype/block-of: New file.
34081         * modules/unictype/block-test: New file.
34082         * modules/unictype/block-list: New file.
34083         * modules/unictype/block-all: New file.
34084         * modules/unictype/syntax-c-whitespace: New file.
34085         * modules/unictype/syntax-java-whitespace: New file.
34086         * modules/unictype/syntax-c-ident: New file.
34087         * modules/unictype/syntax-java-ident: New file.
34088         * modules/unictype/ctype-alnum: New file.
34089         * modules/unictype/ctype-alpha: New file.
34090         * modules/unictype/ctype-cntrl: New file.
34091         * modules/unictype/ctype-digit: New file.
34092         * modules/unictype/ctype-graph: New file.
34093         * modules/unictype/ctype-lower: New file.
34094         * modules/unictype/ctype-print: New file.
34095         * modules/unictype/ctype-punct: New file.
34096         * modules/unictype/ctype-space: New file.
34097         * modules/unictype/ctype-upper: New file.
34098         * modules/unictype/ctype-xdigit: New file.
34099         * modules/unictype/ctype-blank: New file.
34100         * lib/unictype/bidi_byname.c: New file.
34101         * lib/unictype/bidi_name.c: New file.
34102         * lib/unictype/bidi_of.c: New file.
34103         * lib/unictype/bidi_test.c: New file.
34104         * lib/unictype/bitmap.h: New file.
34105         * lib/unictype/block_test.c: New file.
34106         * lib/unictype/blocks.c: New file.
34107         * lib/unictype/categ_C.c: New file.
34108         * lib/unictype/categ_Cc.c: New file.
34109         * lib/unictype/categ_Cf.c: New file.
34110         * lib/unictype/categ_Cn.c: New file.
34111         * lib/unictype/categ_Co.c: New file.
34112         * lib/unictype/categ_Cs.c: New file.
34113         * lib/unictype/categ_L.c: New file.
34114         * lib/unictype/categ_Ll.c: New file.
34115         * lib/unictype/categ_Lm.c: New file.
34116         * lib/unictype/categ_Lo.c: New file.
34117         * lib/unictype/categ_Lt.c: New file.
34118         * lib/unictype/categ_Lu.c: New file.
34119         * lib/unictype/categ_M.c: New file.
34120         * lib/unictype/categ_Mc.c: New file.
34121         * lib/unictype/categ_Me.c: New file.
34122         * lib/unictype/categ_Mn.c: New file.
34123         * lib/unictype/categ_N.c: New file.
34124         * lib/unictype/categ_Nd.c: New file.
34125         * lib/unictype/categ_Nl.c: New file.
34126         * lib/unictype/categ_No.c: New file.
34127         * lib/unictype/categ_P.c: New file.
34128         * lib/unictype/categ_Pc.c: New file.
34129         * lib/unictype/categ_Pd.c: New file.
34130         * lib/unictype/categ_Pe.c: New file.
34131         * lib/unictype/categ_Pf.c: New file.
34132         * lib/unictype/categ_Pi.c: New file.
34133         * lib/unictype/categ_Po.c: New file.
34134         * lib/unictype/categ_Ps.c: New file.
34135         * lib/unictype/categ_S.c: New file.
34136         * lib/unictype/categ_Sc.c: New file.
34137         * lib/unictype/categ_Sk.c: New file.
34138         * lib/unictype/categ_Sm.c: New file.
34139         * lib/unictype/categ_So.c: New file.
34140         * lib/unictype/categ_Z.c: New file.
34141         * lib/unictype/categ_Zl.c: New file.
34142         * lib/unictype/categ_Zp.c: New file.
34143         * lib/unictype/categ_Zs.c: New file.
34144         * lib/unictype/categ_and.c: New file.
34145         * lib/unictype/categ_and_not.c: New file.
34146         * lib/unictype/categ_byname.c: New file.
34147         * lib/unictype/categ_name.c: New file.
34148         * lib/unictype/categ_none.c: New file.
34149         * lib/unictype/categ_of.c: New file.
34150         * lib/unictype/categ_or.c: New file.
34151         * lib/unictype/categ_test.c: New file.
34152         * lib/unictype/combining.c: New file.
34153         * lib/unictype/ctype_alnum.c: New file.
34154         * lib/unictype/ctype_alpha.c: New file.
34155         * lib/unictype/ctype_blank.c: New file.
34156         * lib/unictype/ctype_cntrl.c: New file.
34157         * lib/unictype/ctype_digit.c: New file.
34158         * lib/unictype/ctype_graph.c: New file.
34159         * lib/unictype/ctype_lower.c: New file.
34160         * lib/unictype/ctype_print.c: New file.
34161         * lib/unictype/ctype_punct.c: New file.
34162         * lib/unictype/ctype_space.c: New file.
34163         * lib/unictype/ctype_upper.c: New file.
34164         * lib/unictype/ctype_xdigit.c: New file.
34165         * lib/unictype/decdigit.c: New file.
34166         * lib/unictype/digit.c: New file.
34167         * lib/unictype/identsyntaxmap.h: New file.
34168         * lib/unictype/mirror.c: New file.
34169         * lib/unictype/numeric.c: New file.
34170         * lib/unictype/pr_alphabetic.c: New file.
34171         * lib/unictype/pr_ascii_hex_digit.c: New file.
34172         * lib/unictype/pr_bidi_arabic_digit.c: New file.
34173         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
34174         * lib/unictype/pr_bidi_block_separator.c: New file.
34175         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
34176         * lib/unictype/pr_bidi_common_separator.c: New file.
34177         * lib/unictype/pr_bidi_control.c: New file.
34178         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
34179         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
34180         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
34181         * lib/unictype/pr_bidi_european_digit.c: New file.
34182         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
34183         * lib/unictype/pr_bidi_left_to_right.c: New file.
34184         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
34185         * lib/unictype/pr_bidi_other_neutral.c: New file.
34186         * lib/unictype/pr_bidi_pdf.c: New file.
34187         * lib/unictype/pr_bidi_segment_separator.c: New file.
34188         * lib/unictype/pr_bidi_whitespace.c: New file.
34189         * lib/unictype/pr_byname.c: New file.
34190         * lib/unictype/pr_byname.gperf: New file.
34191         * lib/unictype/pr_combining.c: New file.
34192         * lib/unictype/pr_composite.c: New file.
34193         * lib/unictype/pr_currency_symbol.c: New file.
34194         * lib/unictype/pr_dash.c: New file.
34195         * lib/unictype/pr_decimal_digit.c: New file.
34196         * lib/unictype/pr_default_ignorable_code_point.c: New file.
34197         * lib/unictype/pr_deprecated.c: New file.
34198         * lib/unictype/pr_diacritic.c: New file.
34199         * lib/unictype/pr_extender.c: New file.
34200         * lib/unictype/pr_format_control.c: New file.
34201         * lib/unictype/pr_grapheme_base.c: New file.
34202         * lib/unictype/pr_grapheme_extend.c: New file.
34203         * lib/unictype/pr_grapheme_link.c: New file.
34204         * lib/unictype/pr_hex_digit.c: New file.
34205         * lib/unictype/pr_hyphen.c: New file.
34206         * lib/unictype/pr_id_continue.c: New file.
34207         * lib/unictype/pr_id_start.c: New file.
34208         * lib/unictype/pr_ideographic.c: New file.
34209         * lib/unictype/pr_ids_binary_operator.c: New file.
34210         * lib/unictype/pr_ids_trinary_operator.c: New file.
34211         * lib/unictype/pr_ignorable_control.c: New file.
34212         * lib/unictype/pr_iso_control.c: New file.
34213         * lib/unictype/pr_join_control.c: New file.
34214         * lib/unictype/pr_left_of_pair.c: New file.
34215         * lib/unictype/pr_line_separator.c: New file.
34216         * lib/unictype/pr_logical_order_exception.c: New file.
34217         * lib/unictype/pr_lowercase.c: New file.
34218         * lib/unictype/pr_math.c: New file.
34219         * lib/unictype/pr_non_break.c: New file.
34220         * lib/unictype/pr_not_a_character.c: New file.
34221         * lib/unictype/pr_numeric.c: New file.
34222         * lib/unictype/pr_other_alphabetic.c: New file.
34223         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
34224         * lib/unictype/pr_other_grapheme_extend.c: New file.
34225         * lib/unictype/pr_other_id_continue.c: New file.
34226         * lib/unictype/pr_other_id_start.c: New file.
34227         * lib/unictype/pr_other_lowercase.c: New file.
34228         * lib/unictype/pr_other_math.c: New file.
34229         * lib/unictype/pr_other_uppercase.c: New file.
34230         * lib/unictype/pr_paired_punctuation.c: New file.
34231         * lib/unictype/pr_paragraph_separator.c: New file.
34232         * lib/unictype/pr_pattern_syntax.c: New file.
34233         * lib/unictype/pr_pattern_white_space.c: New file.
34234         * lib/unictype/pr_private_use.c: New file.
34235         * lib/unictype/pr_punctuation.c: New file.
34236         * lib/unictype/pr_quotation_mark.c: New file.
34237         * lib/unictype/pr_radical.c: New file.
34238         * lib/unictype/pr_sentence_terminal.c: New file.
34239         * lib/unictype/pr_soft_dotted.c: New file.
34240         * lib/unictype/pr_space.c: New file.
34241         * lib/unictype/pr_terminal_punctuation.c: New file.
34242         * lib/unictype/pr_test.c: New file.
34243         * lib/unictype/pr_titlecase.c: New file.
34244         * lib/unictype/pr_unassigned_code_value.c: New file.
34245         * lib/unictype/pr_unified_ideograph.c: New file.
34246         * lib/unictype/pr_uppercase.c: New file.
34247         * lib/unictype/pr_variation_selector.c: New file.
34248         * lib/unictype/pr_white_space.c: New file.
34249         * lib/unictype/pr_xid_continue.c: New file.
34250         * lib/unictype/pr_xid_start.c: New file.
34251         * lib/unictype/pr_zero_width.c: New file.
34252         * lib/unictype/scripts.c: New file.
34253         * lib/unictype/sy_c_ident.c: New file.
34254         * lib/unictype/sy_c_whitespace.c: New file.
34255         * lib/unictype/sy_java_ident.c: New file.
34256         * lib/unictype/sy_java_whitespace.c: New file.
34257
34258         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
34259         Unicode 5.0.0.
34260         * lib/unictype/blocks.h: Likewise.
34261         * lib/unictype/categ_C.h: Likewise.
34262         * lib/unictype/categ_Cc.h: Likewise.
34263         * lib/unictype/categ_Cf.h: Likewise.
34264         * lib/unictype/categ_Cn.h: Likewise.
34265         * lib/unictype/categ_Co.h: Likewise.
34266         * lib/unictype/categ_Cs.h: Likewise.
34267         * lib/unictype/categ_L.h: Likewise.
34268         * lib/unictype/categ_Ll.h: Likewise.
34269         * lib/unictype/categ_Lm.h: Likewise.
34270         * lib/unictype/categ_Lo.h: Likewise.
34271         * lib/unictype/categ_Lt.h: Likewise.
34272         * lib/unictype/categ_Lu.h: Likewise.
34273         * lib/unictype/categ_M.h: Likewise.
34274         * lib/unictype/categ_Mc.h: Likewise.
34275         * lib/unictype/categ_Me.h: Likewise.
34276         * lib/unictype/categ_Mn.h: Likewise.
34277         * lib/unictype/categ_N.h: Likewise.
34278         * lib/unictype/categ_Nd.h: Likewise.
34279         * lib/unictype/categ_Nl.h: Likewise.
34280         * lib/unictype/categ_No.h: Likewise.
34281         * lib/unictype/categ_P.h: Likewise.
34282         * lib/unictype/categ_Pc.h: Likewise.
34283         * lib/unictype/categ_Pd.h: Likewise.
34284         * lib/unictype/categ_Pe.h: Likewise.
34285         * lib/unictype/categ_Pf.h: Likewise.
34286         * lib/unictype/categ_Pi.h: Likewise.
34287         * lib/unictype/categ_Po.h: Likewise.
34288         * lib/unictype/categ_Ps.h: Likewise.
34289         * lib/unictype/categ_S.h: Likewise.
34290         * lib/unictype/categ_Sc.h: Likewise.
34291         * lib/unictype/categ_Sk.h: Likewise.
34292         * lib/unictype/categ_Sm.h: Likewise.
34293         * lib/unictype/categ_So.h: Likewise.
34294         * lib/unictype/categ_Z.h: Likewise.
34295         * lib/unictype/categ_Zl.h: Likewise.
34296         * lib/unictype/categ_Zp.h: Likewise.
34297         * lib/unictype/categ_Zs.h: Likewise.
34298         * lib/unictype/categ_of.h: Likewise.
34299         * lib/unictype/combining.h: Likewise.
34300         * lib/unictype/ctype_alnum.h: Likewise.
34301         * lib/unictype/ctype_alpha.h: Likewise.
34302         * lib/unictype/ctype_blank.h: Likewise.
34303         * lib/unictype/ctype_cntrl.h: Likewise.
34304         * lib/unictype/ctype_digit.h: Likewise.
34305         * lib/unictype/ctype_graph.h: Likewise.
34306         * lib/unictype/ctype_lower.h: Likewise.
34307         * lib/unictype/ctype_print.h: Likewise.
34308         * lib/unictype/ctype_punct.h: Likewise.
34309         * lib/unictype/ctype_space.h: Likewise.
34310         * lib/unictype/ctype_upper.h: Likewise.
34311         * lib/unictype/ctype_xdigit.h: Likewise.
34312         * lib/unictype/decdigit.h: Likewise.
34313         * lib/unictype/digit.h: Likewise.
34314         * lib/unictype/mirror.h: Likewise.
34315         * lib/unictype/numeric.h: Likewise.
34316         * lib/unictype/pr_alphabetic.h: Likewise.
34317         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
34318         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
34319         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
34320         * lib/unictype/pr_bidi_block_separator.h: Likewise.
34321         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
34322         * lib/unictype/pr_bidi_common_separator.h: Likewise.
34323         * lib/unictype/pr_bidi_control.h: Likewise.
34324         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
34325         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
34326         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
34327         * lib/unictype/pr_bidi_european_digit.h: Likewise.
34328         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
34329         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
34330         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
34331         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
34332         * lib/unictype/pr_bidi_pdf.h: Likewise.
34333         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
34334         * lib/unictype/pr_bidi_whitespace.h: Likewise.
34335         * lib/unictype/pr_combining.h: Likewise.
34336         * lib/unictype/pr_composite.h: Likewise.
34337         * lib/unictype/pr_currency_symbol.h: Likewise.
34338         * lib/unictype/pr_dash.h: Likewise.
34339         * lib/unictype/pr_decimal_digit.h: Likewise.
34340         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
34341         * lib/unictype/pr_deprecated.h: Likewise.
34342         * lib/unictype/pr_diacritic.h: Likewise.
34343         * lib/unictype/pr_extender.h: Likewise.
34344         * lib/unictype/pr_format_control.h: Likewise.
34345         * lib/unictype/pr_grapheme_base.h: Likewise.
34346         * lib/unictype/pr_grapheme_extend.h: Likewise.
34347         * lib/unictype/pr_grapheme_link.h: Likewise.
34348         * lib/unictype/pr_hex_digit.h: Likewise.
34349         * lib/unictype/pr_hyphen.h: Likewise.
34350         * lib/unictype/pr_id_continue.h: Likewise.
34351         * lib/unictype/pr_id_start.h: Likewise.
34352         * lib/unictype/pr_ideographic.h: Likewise.
34353         * lib/unictype/pr_ids_binary_operator.h: Likewise.
34354         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
34355         * lib/unictype/pr_ignorable_control.h: Likewise.
34356         * lib/unictype/pr_iso_control.h: Likewise.
34357         * lib/unictype/pr_join_control.h: Likewise.
34358         * lib/unictype/pr_left_of_pair.h: Likewise.
34359         * lib/unictype/pr_line_separator.h: Likewise.
34360         * lib/unictype/pr_logical_order_exception.h: Likewise.
34361         * lib/unictype/pr_lowercase.h: Likewise.
34362         * lib/unictype/pr_math.h: Likewise.
34363         * lib/unictype/pr_non_break.h: Likewise.
34364         * lib/unictype/pr_not_a_character.h: Likewise.
34365         * lib/unictype/pr_numeric.h: Likewise.
34366         * lib/unictype/pr_other_alphabetic.h: Likewise.
34367         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
34368         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
34369         * lib/unictype/pr_other_id_continue.h: Likewise.
34370         * lib/unictype/pr_other_id_start.h: Likewise.
34371         * lib/unictype/pr_other_lowercase.h: Likewise.
34372         * lib/unictype/pr_other_math.h: Likewise.
34373         * lib/unictype/pr_other_uppercase.h: Likewise.
34374         * lib/unictype/pr_paired_punctuation.h: Likewise.
34375         * lib/unictype/pr_paragraph_separator.h: Likewise.
34376         * lib/unictype/pr_pattern_syntax.h: Likewise.
34377         * lib/unictype/pr_pattern_white_space.h: Likewise.
34378         * lib/unictype/pr_private_use.h: Likewise.
34379         * lib/unictype/pr_punctuation.h: Likewise.
34380         * lib/unictype/pr_quotation_mark.h: Likewise.
34381         * lib/unictype/pr_radical.h: Likewise.
34382         * lib/unictype/pr_sentence_terminal.h: Likewise.
34383         * lib/unictype/pr_soft_dotted.h: Likewise.
34384         * lib/unictype/pr_space.h: Likewise.
34385         * lib/unictype/pr_terminal_punctuation.h: Likewise.
34386         * lib/unictype/pr_titlecase.h: Likewise.
34387         * lib/unictype/pr_unassigned_code_value.h: Likewise.
34388         * lib/unictype/pr_unified_ideograph.h: Likewise.
34389         * lib/unictype/pr_uppercase.h: Likewise.
34390         * lib/unictype/pr_variation_selector.h: Likewise.
34391         * lib/unictype/pr_white_space.h: Likewise.
34392         * lib/unictype/pr_xid_continue.h: Likewise.
34393         * lib/unictype/pr_xid_start.h: Likewise.
34394         * lib/unictype/pr_zero_width.h: Likewise.
34395         * lib/unictype/scripts.h: Likewise.
34396         * lib/unictype/scripts_byname.gperf: Likewise.
34397         * lib/unictype/sy_c_ident.h: Likewise.
34398         * lib/unictype/sy_c_whitespace.h: Likewise.
34399         * lib/unictype/sy_java_ident.h: Likewise.
34400         * lib/unictype/sy_java_whitespace.h: Likewise.
34401
34402         * lib/unictype/Makefile: New file.
34403         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
34404         glibc.
34405         * lib/unictype/3level.h: New file, copied from glibc.
34406         * lib/unictype/3levelbit.h: New file.
34407
34408 2007-11-11  Bruno Haible  <bruno@clisp.org>
34409
34410         * modules/gperf: New file.
34411         * modules/iconv_open (Depends-on): Add it.
34412         (Makefile.am): Remove the GPERF definition.
34413
34414 2007-11-11  Bruno Haible  <bruno@clisp.org>
34415
34416         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
34417         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
34418
34419 2007-11-11  Bruno Haible  <bruno@clisp.org>
34420
34421         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
34422         (usage): Remove function.
34423
34424 2007-11-11  Bruno Haible  <bruno@clisp.org>
34425
34426         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
34427         gl_FUNC_CEILF_LIBS.
34428         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
34429         gl_FUNC_CEIL_LIBS.
34430         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
34431         gl_FUNC_CEILL_LIBS.
34432         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
34433         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
34434         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
34435
34436 2007-11-11  Bruno Haible  <bruno@clisp.org>
34437
34438         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
34439         roundf were declared but do not exist on functions.
34440         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
34441         roundl were declared but do not exist on functions.
34442         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
34443         HAVE_FLOORL_AND_CEILL, respectively.
34444         Needed for Sun C on Solaris 10.
34445
34446 2007-11-11  Bruno Haible  <bruno@clisp.org>
34447
34448         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
34449         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
34450         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
34451         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
34452         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
34453         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
34454         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
34455         HAVE_DECL_ROUNDF.
34456         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
34457         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
34458         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
34459         of HAVE_DECL_ROUND*.
34460         * modules/math (Makefile.am): Update.
34461
34462 2007-11-10  Bruno Haible  <bruno@clisp.org>
34463
34464         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
34465         ptrdiff_t as m4/intl.m4.
34466
34467 2007-11-10  Jim Meyering  <meyering@redhat.com>
34468
34469         Avoid link failure for the argmatch test.
34470         * tests/test-argmatch.c (usage): Define function to avoid a link
34471         failure: argmatch_die requires a usage function.
34472
34473 2007-11-09  Bruno Haible  <bruno@clisp.org>
34474
34475         * doc/functions/snprintf.texi: Mention BeOS deficiency.
34476         * doc/functions/vsnprintf.texi: Likewise.
34477         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
34478         with a size argument < 2.
34479
34480 2007-11-09  Bruno Haible  <bruno@clisp.org>
34481
34482         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
34483         buffer. Fixes an inefficiency introduced on 2007-11-03.
34484
34485 2007-11-09  Bruno Haible  <bruno@clisp.org>
34486
34487         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
34488         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
34489
34490 2007-11-08  Jim Meyering  <meyering@redhat.com>
34491
34492         Change cache variable name prefix "jm_" to "gl_" everywhere.
34493         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
34494         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
34495         * m4/uptime.m4: s/gl_/jm_/
34496
34497 2007-11-07  Bruno Haible  <bruno@clisp.org>
34498
34499         Update to GNU gettext 0.17.
34500         * m4/intl.m4: Update to GNU gettext 0.17.
34501         * m4/po.m4: Likewise.
34502         * modules/gettext (Files): Remove m4/ulonglong.m4.
34503         (configure.ac): Require gettext infrastructure from version 0.17.
34504
34505 2007-11-06  Bruno Haible  <bruno@clisp.org>
34506
34507         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
34508         symbolic values are not defined in a public header.
34509         * lib/freadable.c (freadable) [QNX]: Likewise.
34510         * lib/freadahead.c (freadahead) [QNX]: Likewise.
34511         * lib/freading.c (freading) [QNX]: Likewise.
34512         * lib/fseterr.c (fseterr) [QNX]: Likewise.
34513         * lib/fwritable.c (fwritable) [QNX]: Likewise.
34514         * lib/fwriting.c (fwriting) [QNX]: Likewise.
34515         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
34516         Reported by Alain Magloire.
34517
34518         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
34519
34520 2007-11-05  Bruno Haible  <bruno@clisp.org>
34521
34522         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
34523         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
34524         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
34525         Reported by Eric Blake.
34526
34527 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34528             Bruno Haible  <bruno@clisp.org>
34529
34530         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
34531         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
34532         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
34533         (malloc): Undefine also before including <stdlib.h>.
34534         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
34535         Needed on OSF/1 4.0.
34536
34537 2007-11-05  Jim Meyering  <meyering@redhat.com>
34538
34539         git-version-gen: sync from coreutils.
34540         * build-aux/git-version-gen: Add comments.
34541         Change the first '-' to '.' in the snapshot version string,
34542         e.g., 6.9-377-08144 -> 6.9.377-08144
34543         Remove first parameter.
34544         Don't declare a version "-dirty" merely because a time
34545         stamp has changed.
34546
34547 2007-11-04  Bruno Haible  <bruno@clisp.org>
34548
34549         * lib/lock.h: Protect all macro definitions containing an 'if'
34550         statement through a "do { ... } while (0)".
34551         * lib/tls.h: Likewise.
34552
34553 2007-11-04  Bruno Haible  <bruno@clisp.org>
34554
34555         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
34556
34557 2007-11-04  Bruno Haible  <bruno@clisp.org>
34558
34559         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
34560         * modules/fprintf-posix (Depends-on): Add nocrash.
34561         * modules/snprintf-posix (Depends-on): Likewise.
34562         * modules/sprintf-posix (Depends-on): Likewise.
34563         * modules/vasnprintf-posix (Depends-on): Likewise.
34564         * modules/vasprintf-posix (Depends-on): Likewise.
34565         * modules/vfprintf-posix (Depends-on): Likewise.
34566         * modules/vsnprintf-posix (Depends-on): Likewise.
34567         * modules/vsprintf-posix (Depends-on): Likewise.
34568         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
34569         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34570         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34571         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34572         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34573         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34574         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34575
34576 2007-11-04  Bruno Haible  <bruno@clisp.org>
34577
34578         * modules/nocrash: New file.
34579         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
34580         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
34581
34582 2007-11-04  Bruno Haible  <bruno@clisp.org>
34583
34584         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
34585         precision handling.
34586         * tests/test-vasprintf-posix.c (test_function): Likewise.
34587         * tests/test-snprintf-posix.h (test_function): Likewise.
34588         * tests/test-sprintf-posix.h (test_function): Likewise.
34589
34590         Fix *printf behaviour for large precisions on mingw and BeOS.
34591         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
34592         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
34593         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
34594         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
34595         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34596         gl_PRINTF_PRECISION and test its result. Invoke
34597         gl_PREREQ_VASNPRINTF_PRECISION.
34598         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34599         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34600         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34601         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34602         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34603         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34604         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34605         * doc/functions/fprintf.texi: Update.
34606         * doc/functions/printf.texi: Update.
34607         * doc/functions/snprintf.texi: Update.
34608         * doc/functions/sprintf.texi: Update.
34609         * doc/functions/vfprintf.texi: Update.
34610         * doc/functions/vprintf.texi: Update.
34611         * doc/functions/vsnprintf.texi: Update.
34612         * doc/functions/vsprintf.texi: Update.
34613
34614 2007-11-04  Bruno Haible  <bruno@clisp.org>
34615
34616         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
34617
34618 2007-11-04  Bruno Haible  <bruno@clisp.org>
34619
34620         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
34621         Reported by Sylvain Beucler <beuc@gnu.org>.
34622
34623 2007-11-03  Bruno Haible  <bruno@clisp.org>
34624
34625         * tests/test-fprintf-posix2.sh: New file.
34626         * tests/test-fprintf-posix2.c: New file.
34627         * modules/fprintf-posix-tests (Files): Add them.
34628         (TESTS): Add test-fprintf-posix2.sh.
34629         (configure.ac): Check for getrlimit and setrlimit.
34630         (check_PROGRAMS): Add test-fprintf-posix2.
34631
34632         * tests/test-printf-posix2.sh: New file.
34633         * tests/test-printf-posix2.c: New file.
34634         * modules/printf-posix-tests (Files): Add them.
34635         (TESTS): Add test-printf-posix2.sh.
34636         (configure.ac): Check for getrlimit and setrlimit.
34637         (check_PROGRAMS): Add test-printf-posix2.
34638
34639         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
34640         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
34641         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
34642         (decode_double): New function, copied from decode_long_double.
34643         (scale10_round_decimal_decoded): New function, extracted from
34644         scale10_round_decimal_long_double.
34645         (scale10_round_decimal_long_double): Use it.
34646         (scale10_round_decimal_double): New function.
34647         (floorlog10): New function.
34648         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
34649         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
34650         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
34651         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34652         gl_PRINTF_ENOMEM and test its result. Invoke
34653         gl_PREREQ_VASNPRINTF_ENOMEM.
34654         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34655         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34656         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34657         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34658         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34659         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34660         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34661         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
34662         * modules/snprintf-posix (Depends-on): Likewise.
34663         * modules/sprintf-posix (Depends-on): Likewise.
34664         * modules/vasnprintf-posix (Depends-on): Likewise.
34665         * modules/vasprintf-posix (Depends-on): Likewise.
34666         * modules/vfprintf-posix (Depends-on): Likewise.
34667         * modules/vsnprintf-posix (Depends-on): Likewise.
34668         * modules/vsprintf-posix (Depends-on): Likewise.
34669         * doc/functions/fprintf.texi: Update.
34670         * doc/functions/printf.texi: Update.
34671         * doc/functions/snprintf.texi: Update.
34672         * doc/functions/sprintf.texi: Update.
34673         * doc/functions/vfprintf.texi: Update.
34674         * doc/functions/vprintf.texi: Update.
34675         * doc/functions/vsnprintf.texi: Update.
34676         * doc/functions/vsprintf.texi: Update.
34677
34678 2007-11-03  Bruno Haible  <bruno@clisp.org>
34679
34680         * modules/frexp-nolibm-tests: New file.
34681
34682         * modules/frexp-nolibm: New file.
34683         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
34684
34685 2007-11-03  Bruno Haible  <bruno@clisp.org>
34686
34687         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
34688         value is C99 compliant.
34689         Needed for OSF/1 5.1.
34690
34691 2007-11-03  Bruno Haible  <bruno@clisp.org>
34692
34693         Fix out-of-memory handling of vasnprintf.
34694         * lib/printf-parse.c: Include <errno.h>.
34695         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
34696         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
34697         is already set.
34698
34699 2007-11-02  Eric Blake  <ebb9@byu.net>
34700
34701         Fix tests on cygwin.
34702         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
34703
34704 2007-11-01  Bruno Haible  <bruno@clisp.org>
34705
34706         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
34707         warning.
34708         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
34709         needed for POSIX compatibility.
34710
34711 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
34712
34713         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
34714         for compatibility with GNU.
34715
34716 2007-11-01  Bruno Haible  <bruno@clisp.org>
34717
34718         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
34719         (putenv): Renamed from rpl_putenv. Change argument type from
34720         'const char *' to 'char *'.
34721         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
34722         of defining putenv in config.h, just set REPLACE_PUTENV.
34723         * modules/putenv (Depends-on): Add stdlib.
34724         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34725         (Include): Use <stdlib.h>.
34726         * lib/stdlib.in.h (putenv): New declaration.
34727         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
34728         REPLACE_PUTENV.
34729         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
34730         REPLACE_PUTENV.
34731         Needed for MacOS X 10.5.0.
34732         Reported by Peter O'Gorman <peter@pogma.com>.
34733
34734 2007-11-01  Jim Meyering  <meyering@redhat.com>
34735
34736         Treat an empty date string exactly like "0".
34737         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
34738         if the remaining date string (to be parsed) is empty, use "0".
34739         Reported by Mischa Molhoek and discussed in this thread:
34740         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
34741
34742 2007-10-31  Bruno Haible  <bruno@clisp.org>
34743
34744         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
34745         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
34746         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
34747         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
34748         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
34749         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
34750
34751 2007-10-31  Bruno Haible  <bruno@clisp.org>
34752
34753         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
34754         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
34755         (AC_TYPE_LONG_LONG_INT): Use it.
34756         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
34757         it as well.
34758         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
34759         to m4/longlong.m4.
34760         * modules/stdint (Files): Remove m4/ulonglong.m4.
34761         * modules/strtoull (Files): Use m4/longlong.m4 instead of
34762         m4/ulonglong.m4.
34763         * modules/strtoumax (Files): Likewise.
34764
34765 2007-10-30  Bruno Haible  <bruno@clisp.org>
34766
34767         * modules/xvasprintf-posix: New file.
34768         Suggested by Eric Blake.
34769
34770 2007-10-30  Bruno Haible  <bruno@clisp.org>
34771
34772         * modules/xprintf-posix-tests: New file.
34773         * tests/test-xprintf-posix.sh: New file.
34774         * tests/test-xprintf-posix.c: New file.
34775         * tests/test-xfprintf-posix.c: New file.
34776
34777         * modules/xprintf-posix: New file.
34778
34779 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34780
34781         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
34782         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
34783         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
34784
34785 2007-10-29  Bruno Haible  <bruno@clisp.org>
34786
34787         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
34788         contain the special marker '_cv_'.
34789         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
34790         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
34791         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
34792         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
34793         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
34794         Reported by Ralf Wildenhues.
34795
34796 2007-10-29  Bruno Haible  <bruno@clisp.org>
34797
34798         * gnulib-tool (func_import): When --lgpl is not specified, set
34799         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
34800         GPLv3.
34801         Reported by Simon Josefsson.
34802
34803 2007-10-28  Bruno Haible  <bruno@clisp.org>
34804
34805         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
34806         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
34807         HAVE_DECL_ISFINITE.
34808         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
34809         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
34810         HAVE_DECL_ISFINITE.
34811
34812 2007-10-28  Bruno Haible  <bruno@clisp.org>
34813
34814         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
34815         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
34816
34817 2007-10-28  Bruno Haible  <bruno@clisp.org>
34818
34819         Fix link errors with Sun C 5.0 on Solaris 10.
34820         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
34821         function is declared but not present in the compiler's libm.
34822         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
34823         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
34824         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
34825         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
34826         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
34827         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
34828         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
34829         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
34830         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
34831         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
34832         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
34833         HAVE_DECL_FLOORL.
34834
34835 2007-10-28  Bruno Haible  <bruno@clisp.org>
34836
34837         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
34838         gl_FUNC_FLOORL. Cache the result.
34839         (gl_FUNC_FLOORL): Use it.
34840         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
34841         gl_FUNC_CEILL. Cache the result.
34842         (gl_FUNC_CEILL): Use it.
34843
34844         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
34845         gl_FUNC_FLOOR. Cache the result.
34846         (gl_FUNC_FLOOR): Use it.
34847         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
34848         gl_FUNC_CEIL. Cache the result.
34849         (gl_FUNC_CEIL): Use it.
34850
34851         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
34852         gl_FUNC_FLOORF. Cache the result.
34853         (gl_FUNC_FLOORF): Use it.
34854         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
34855         gl_FUNC_CEILF. Cache the result.
34856         (gl_FUNC_CEILF): Use it.
34857
34858 2007-10-28  Bruno Haible  <bruno@clisp.org>
34859
34860         * gnulib-tool: Allow specifying the LGPL version number through
34861         --lgpl=2 or --lgpl=3.
34862         (func_usage): Document --lgpl with argument.
34863         Handle --lgpl=... arguments.
34864         (func_import): Recognize also gl_LGPL calls with an argument. When
34865         --lgpl=2 is used and the module's license is just LGPL, report an
34866         error. Set sed_transform_lib_file according to the lgpl variable. In
34867         the generated files, use --lgpl or gl_LGPL invocations with argument,
34868         if necessary.
34869         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
34870         an LGPv2+ license.
34871         * doc/gnulib-tool.texi (Modified imports): Update explanation of
34872         gl_LGPL macro.
34873
34874 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34875             Bruno Haible  <bruno@clisp.org>
34876
34877         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
34878         (u16_uctomb_aux): Likewise.
34879         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
34880         !HAVE_INLINE.
34881         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
34882
34883 2007-10-28  Bruno Haible  <bruno@clisp.org>
34884
34885         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
34886         Invoke AM_GETTEXT_OPTION if it exists.
34887         * modules/vasprintf: Likewise.
34888         * modules/verror: Likewise.
34889         * modules/xprintf: Likewise.
34890         * modules/xvasprintf: Likewise.
34891
34892 2007-10-27  Ben Pfaff  <blp@gnu.org>
34893
34894         * lib/math.in.h: Define isfinite macro and prototypes for
34895         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
34896         implementations.
34897         * m4/math_h.m4: New substitutions for isfinite module.
34898         * lib/isfinite.c: New file.
34899         * m4/isfinite.m4: New file.
34900         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
34901         * modules/isfinite: New file.
34902         * modules/isfinite-tests: New file.
34903         * tests/tests-isfinite.c: New file.
34904         * doc/functions/isfinite.texi: Mention isfinite module.
34905         * MODULES.html.sh: Mention new module.
34906
34907 2007-10-27  Ben Pfaff  <blp@gnu.org>
34908
34909         Ralf Wildenhues reported that Tru64 4.0D declares the round
34910         functions but does not have definitions.
34911         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
34912         cannot be found in any library, set the output variable to
34913         "missing" instead of "".
34914         * m4/round.m4: Also use our substitute if we cannot find round in
34915         any library, even if it is declared.
34916         * m4/roundf.m4: Likewise for roundf.
34917         * m4/roundl.m4: Likewise for roundl.
34918         * lib/math.in.h: Undefine roundf, round, roundl before defining
34919         their replacements, to allow for hypothetical systems where these
34920         may be defined as macros but not available in libraries.
34921
34922 2007-10-27  Bruno Haible  <bruno@clisp.org>
34923
34924         * doc/gnulib.texi: Invoke @firstparagraphindent.
34925         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
34926         changes in gnulib.
34927         (Source changes): New section.
34928
34929 2007-10-26  Bruno Haible  <bruno@clisp.org>
34930
34931         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
34932         borrowed from autoconf.
34933
34934 2007-10-26  Bruno Haible  <bruno@clisp.org>
34935
34936         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
34937         strerror returned the empty string. Needed on HP-UX 11.00.
34938
34939 2007-10-24  Micah Cowan  <micah@cowan.name>
34940
34941         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
34942         * build-aux/bootstrap: Remove support for now-unnecessary option,
34943         --cvs-user, and envvars CVS_USER, CVS_RSH.
34944
34945 2007-10-24  Jim Meyering  <meyering@redhat.com>
34946
34947         Avoid diagnostics from sha1sum when there is no cached checksum.
34948         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
34949         if the po.s1 file hasn't been created yet.
34950
34951         * build-aux/bootstrap: Sync from coreutils:
34952         2007-10-24  Jim Meyering  <meyering@redhat.com>
34953         Get gnulib from the git repository, not from an obsolete cvs one.
34954         * build-aux/bootstrap: Suggestion from Micah Cowan.
34955         2007-10-04  Jim Meyering  <jim@meyering.net>
34956         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
34957         (update_po_files): Work also when there are no .po files in po/.
34958
34959 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
34960
34961         * README: Append ".git" to git and cg examples.
34962         Problem reported by Benoit Sigoure.
34963
34964 2007-10-23  Micah Cowan  <micah@cowan.name>
34965
34966         * users.txt: Add wget.
34967
34968 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34969
34970         Fix linking of some unistdio tests on FreeBSD.
34971         * modules/unistdio/u16-vsnprintf-tests
34972         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
34973         * modules/unistdio/u16-vsprintf-tests
34974         (test_u16_vsnprintf1_LDADD): Likewise.
34975         * modules/unistdio/u32-vsnprintf-tests
34976         (test_u32_vsnprintf1_LDADD): Likewise.
34977         * modules/unistdio/u32-vsprintf-tests
34978         (test_u32_vsprintf1_LDADD): Likewise.
34979         * modules/unistdio/u8-vsnprintf-tests
34980         (test_u8_vsnprintf1_LDADD): Likewise.
34981         * modules/unistdio/u8-vsprintf-tests
34982         (test_u8_vsprintf1_LDADD): Likewise.
34983         * modules/unistdio/ulc-vsnprintf-tests
34984         (test_ulc_vsnprintf1_LDADD): Likewise.
34985         * modules/unistdio/ulc-vsprintf-tests
34986         (test_ulc_vsprintf1_LDADD): Likewise.
34987
34988         Fix linking of some uniconv tests on FreeBSD.
34989         * modules/uniconv/u16-conv-from-enc-tests
34990         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
34991         * modules/uniconv/u16-conv-to-enc-tests
34992         (test_u16_conv_to_enc_LDADD): Likewise.
34993         * modules/uniconv/u16-strconv-from-enc-tests
34994         (test_u16_strconv_from_enc_LDADD): Likewise.
34995         * modules/uniconv/u16-strconv-to-enc-tests
34996         (test_u16_strconv_to_enc_LDADD): Likewise.
34997         * modules/uniconv/u32-conv-from-enc-tests
34998         (test_u32_conv_from_enc_LDADD): Likewise.
34999         * modules/uniconv/u32-conv-to-enc-tests
35000         (test_u32_conv_to_enc_LDADD): Likewise.
35001         * modules/uniconv/u32-strconv-from-enc-tests
35002         (test_u32_strconv_from_enc_LDADD): Likewise.
35003         * modules/uniconv/u32-strconv-to-enc-tests
35004         (test_u32_strconv_to_enc_LDADD): Likewise.
35005         * modules/uniconv/u8-conv-from-enc-tests
35006         (test_u8_conv_from_enc_LDADD): Likewise.
35007         * modules/uniconv/u8-conv-to-enc-tests
35008         (test_u8_conv_to_enc_LDADD): Likewise.
35009         * modules/uniconv/u8-strconv-from-enc-tests
35010         (test_u8_strconv_from_enc_LDADD): Likewise.
35011         * modules/uniconv/u8-strconv-to-enc-tests
35012         (test_u8_strconv_to_enc_LDADD): Likewise.
35013
35014 2007-10-22  Bruno Haible  <bruno@clisp.org>
35015
35016         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
35017         size.
35018
35019 2007-10-22  Eric Blake  <ebb9@byu.net>
35020
35021         Tweak x*printf documentation.
35022         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
35023         variable name and comments.
35024         Suggested by Bruno Haible.
35025
35026 2007-10-22  Bruno Haible  <bruno@clisp.org>
35027
35028         * lib/acl.c (copy_acl): Fix file name in comment.
35029
35030 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
35031
35032         Fix Tru64 problem with stdbool.h.
35033         * lib/stdbool.in.h (false, true):
35034         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
35035         Don't declare as an enum in this situation; it runs afoul of Tru64.
35036         Problem reported by Steven M. Schweda in
35037         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
35038
35039 2007-10-22  Eric Blake  <ebb9@byu.net>
35040
35041         Also wrap vf?printf.
35042         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
35043         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
35044         (xvprintf, xvfprintf): New functions.
35045
35046 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35047
35048         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
35049         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
35050
35051         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
35052         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
35053
35054 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
35055
35056         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
35057         by Bruno Haible.
35058
35059 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35060
35061         * lib/getloadavg.c
35062         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
35063         Undef `sys' after including sys/table.h, for Tru64 4.0D.
35064
35065         * tests/test-i-ring.c: Work for C89.
35066
35067 2007-10-22  Bruno Haible  <bruno@clisp.org>
35068
35069         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
35070         -1u, in preprocessor expression, so that we don't test for the bug
35071         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
35072         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
35073
35074 2007-10-22  Eric Blake  <ebb9@byu.net>
35075
35076         * tests/test-yesno.sh: Silence stderr during test.
35077
35078 2007-10-22  Simon Josefsson  <simon@josefsson.org>
35079
35080         * modules/crypto/gc-camellia: New file.
35081
35082         * m4/gc-camellia.m4: New file.
35083
35084         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
35085
35086         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
35087
35088 2007-10-22  Simon Josefsson  <simon@josefsson.org>
35089
35090         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
35091         --help to stdout.  Reported by sms@antinode.org (Steven
35092         M. Schweda).
35093
35094 2007-10-22  Simon Josefsson  <simon@josefsson.org>
35095
35096         * users.txt: Fix link to libksba.
35097
35098 2007-10-21  Ben Pfaff  <blp@gnu.org>
35099
35100         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
35101         round.c roundf implementation that depends on floorf and ceilf to
35102         be tested unconditionally.
35103
35104 2007-10-21  Ben Pfaff  <blp@gnu.org>
35105
35106         * m4/check-libm-func.m4: Removed.
35107         * m4/check-math-lib.m4: New file.
35108         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
35109         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
35110         definition and lack of AC_LIBOBJ([roundf]).
35111         * m4/roundl.m4: Ditto, and similarly for roundl.
35112         * modules/round: Reference new m4 file.
35113         * modules/roundf: Ditto.
35114         * modules/roundl: Ditto.
35115         * tests/test-round2.c (main): Use ROUND instead of round.
35116         Bug report from Bruno Haible.
35117
35118 2007-10-21  Bruno Haible  <bruno@clisp.org>
35119
35120         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
35121         context.
35122
35123 2007-10-21  Bruno Haible  <bruno@clisp.org>
35124
35125         * tests/test-wcwidth.c (main): Allow negative result for some control
35126         characters.
35127
35128         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
35129         Needed on OSF/1 5.1.
35130
35131 2007-10-21  Bruno Haible  <bruno@clisp.org>
35132
35133         * tests/test-floorf1.c: Include isnanf.h.
35134         (main): Use isnanf() instead of isnan().
35135         * tests/test-ceilf1.c: Include isnanf.h.
35136         (main): Use isnanf() instead of isnan().
35137         * tests/test-truncf1.c: Include isnanf.h.
35138         (main): Use isnanf() instead of isnan().
35139         * tests/test-roundf1.c: Include isnanf.h.
35140         (main): Use isnanf() instead of isnan().
35141
35142 2007-10-21  Eric Blake  <ebb9@byu.net>
35143
35144         * users.txt: Update URL for m4.
35145
35146 2007-10-21  Bruno Haible  <bruno@clisp.org>
35147
35148         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
35149
35150 2007-10-21  Bruno Haible  <bruno@clisp.org>
35151
35152         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
35153         Git's management files if the CVS files are not present.
35154
35155 2007-10-20  Bruno Haible  <bruno@clisp.org>
35156
35157         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
35158         gcc-3.4.x.
35159
35160 2007-10-20  Ben Pfaff  <blp@gnu.org>
35161
35162         * lib/math.in.h: Declare round, roundf, roundl if we are providing
35163         implementations.
35164         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
35165         * lib/round.c: New file.
35166         * lib/roundf.c: New file.
35167         * lib/roundl.c: New file.
35168         * m4/round.m4: New file.
35169         * m4/roundf.m4: New file.
35170         * m4/roundl.m4: New file.
35171         * m4/check-libm-func-m4: New file.
35172         * modules/math: Replace round, roundf, roundl related @VARS@ in
35173         math.in.h.
35174         * modules/round: New file.
35175         * modules/round-tests: New file.
35176         * modules/roundf: New file.
35177         * modules/roundf-tests: New file.
35178         * modules/roundl: New file.
35179         * modules/roundl-tests: New file.
35180         * tests/test-round1.c: New file.
35181         * tests/test-round2.c: New file.
35182         * tests/test-roundf1.c: New file.
35183         * tests/test-roundf2.c: New file.
35184         * tests/test-roundl.c: New file.
35185         * doc/functions/round.texi: Mention round module.
35186         * doc/functions/roundf.texi: Mention roundf module.
35187         * doc/functions/roundl.texi: Mention roundl module.
35188         * MODULES.html.sh: Mention new modules.
35189         Thanks to Bruno Haible for suggestions.
35190
35191 2007-10-20  Jim Meyering  <meyering@redhat.com>
35192
35193         * lib/xprintf.c: Include <config.h> unconditionally.
35194
35195         Change xprintf's license to GPL.
35196         * modules/xprintf (License): s/LGPL/GPL/, since this module
35197         depends on modules (exit and exitfail) which are GPL.
35198         Suggestion from Bruno Haible.
35199
35200         xprintf fixes.
35201         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
35202         Use a clearer diagnostic.
35203         Patch from Bruno Haible.
35204
35205 2007-10-20  Bruno Haible  <bruno@clisp.org>
35206
35207         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
35208         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
35209         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35210
35211 2007-10-20  Bruno Haible  <bruno@clisp.org>
35212
35213         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
35214         precision in the comparison result > x - 1 or similar.
35215         * tests/test-ceilf2.c (correct_result_p): Likewise.
35216         * tests/test-truncf2.c (correct_result_p): Likewise.
35217         * tests/test-trunc2.c (correct_result_p): Likewise.
35218         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35219
35220 2007-10-20  Bruno Haible  <bruno@clisp.org>
35221
35222         * modules/ceil: New file.
35223         * m4/ceil.m4: New file.
35224         * doc/functions/ceil.texi: Mention the 'ceil' module.
35225
35226 2007-10-20  Bruno Haible  <bruno@clisp.org>
35227
35228         * modules/floor: New file.
35229         * m4/floor.m4: New file.
35230         * doc/functions/floor.texi: Mention the 'floor' module.
35231
35232 2007-10-20  Bruno Haible  <bruno@clisp.org>
35233
35234         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
35235         of %a.
35236         * modules/floorf-tests (Depends-on): Likewise.
35237         * modules/truncf-tests (Depends-on): Likewise.
35238         * modules/trunc-tests (Depends-on): Likewise.
35239         Reported by Ben Pfaff.
35240
35241 2007-10-19  Jim Meyering  <meyering@redhat.com>
35242
35243         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
35244         Don't bother testing specific errno values.  Just test ferror.
35245
35246         New module: xprintf
35247         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
35248
35249 2007-10-19  Bruno Haible  <bruno@clisp.org>
35250
35251         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
35252         syntax.
35253         * modules/javaexec (Makefile.am): Likewise.
35254         * modules/relocatable-prog (Makefile.am): Likewise.
35255         Suggested by Jim Meyering.
35256
35257 2007-10-18  Bruno Haible  <bruno@clisp.org>
35258
35259         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
35260         Reported by Jim Meyering.
35261
35262 2007-10-18  Eric Blake  <ebb9@byu.net>
35263
35264         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
35265
35266 2007-10-18  Bruno Haible  <bruno@clisp.org>
35267
35268         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
35269         the format string into writable memory. Needed in Fortify conditions.
35270
35271 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
35272             Bruno Haible  <bruno@clisp.org>
35273
35274         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
35275         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
35276         * modules/trim (Depends-on): Add mbchar.
35277         (configure.ac): Add gl_FUNC_MBRTOWC.
35278         (Makefile.am): Augment lib_SOURCES.
35279
35280 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
35281
35282         Modify glob.c to use fstatat and dirfd, to simplify it.
35283         Suggested by Eric Blake.
35284         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
35285         Don't include <stdbool.h>; not used.
35286         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
35287         (link_exists_p): Simplify implementation, since we can now assume
35288         dirfd and fstatat.
35289         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
35290
35291 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35292
35293         * gnulib-tool (func_get_dependencies): Fix sed script to
35294         match only tests.
35295
35296 2007-10-17  Bruno Haible  <bruno@clisp.org>
35297
35298         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
35299         allow locale names without encoding suffix.
35300         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
35301         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
35302
35303 2007-10-16  Bruno Haible  <bruno@clisp.org>
35304
35305         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
35306         * lib/getgroups.c (getgroups): Likewise.
35307         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
35308
35309 2007-10-16  Bruno Haible  <bruno@clisp.org>
35310
35311         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
35312         * modules/malloc-posix (License): Likewise.
35313         * modules/realloc-posix (License): Likewise.
35314         * modules/calloc-posix (License): Likewise.
35315         * modules/intprops (License): Change from GPL to LGPL, with
35316         Paul Eggert's approval.
35317
35318 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
35319
35320         Merge glibc changes into lib/glob.c.
35321
35322         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
35323         2007-10-15 04:59:03 UTC.  Here are the changes:
35324
35325         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
35326
35327         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
35328
35329         * lib/glob.c: Add some branch prediction throughout.
35330
35331         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
35332
35333         [BZ #5103]
35334         * lib/glob.c (glob): Recognize patterns starting \/.
35335
35336         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
35337
35338         [BZ #3996]
35339         * lib/glob.c (attribute_hidden): Define if not defined.
35340         (glob): Unescape dirname, filename or username when needed and not
35341         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
35342         is NULL.  Handle unescaped [ in pattern without closing ].
35343         Don't pass GLOB_CHECK down to recursive glob for directories.
35344         (__glob_pattern_type): New function.
35345         (__glob_pattern_p): Implement using __glob_pattern_type.
35346         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
35347         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
35348         Remove unreachable code.
35349
35350         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
35351
35352         * lib/glob.c (glob_in_dir): Add some comments and asserts to
35353         explain why there are no leaks.
35354
35355         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
35356
35357         [BZ #3253]
35358         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
35359         time, rather allocate increasingly bigger arrays of pointers, if
35360         possible with alloca, if too large with malloc.
35361
35362 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
35363
35364         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
35365         Problem reported by H.Merijn Brand in
35366         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
35367         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
35368         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
35369
35370 2007-10-15  Bruno Haible  <bruno@clisp.org>
35371
35372         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
35373         with explicit rpl_ prefix.
35374         * lib/fopen.c (fopen): Likewise.
35375         * lib/freopen.c (freopen): Likewise.
35376         * lib/iconv.c (iconv): Likewise.
35377         * lib/iconv_close.c (iconv_close): Likewise.
35378
35379 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35380
35381         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
35382
35383 2007-10-15  Bruno Haible  <bruno@clisp.org>
35384
35385         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
35386         <stddef.h> instead of <stdlib.h> since we only need NULL.
35387         Reported by Ben Pfaff <blp@cs.stanford.edu>.
35388
35389 2007-10-15  Bruno Haible  <bruno@clisp.org>
35390
35391         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
35392         Replace paragraph talking about LIBOBJS.
35393         Reported by Colin Watson <cjwatson@debian.org>.
35394
35395 2007-10-15  Bruno Haible  <bruno@clisp.org>
35396
35397         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
35398         <stdlib.h> before using NULL.
35399
35400 2007-10-15  Simon Josefsson  <simon@josefsson.org>
35401
35402         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
35403         Reported by Albert Chin <china@thewrittenword.com>.
35404
35405 2007-10-14  Bruno Haible  <bruno@clisp.org>
35406
35407         * modules/iconv_open-utf-tests: New file.
35408         * tests/test-iconv-utf.c: New file.
35409
35410         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
35411         * modules/iconv_open-utf: New file.
35412         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
35413         (iconv, iconv_close): New declarations.
35414         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
35415         be defined.
35416         (iconv_open): Add special handling of conversion between UTF-8 and
35417         UTF-{16,32}{BE,LE}.
35418         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
35419         * lib/iconv_close.c: New file.
35420         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
35421         gl_FUNC_ICONV_OPEN.
35422         (gl_FUNC_ICONV_OPEN): Use it.
35423         (gl_FUNC_ICONV_OPEN_UTF): New macro.
35424         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
35425         and REPLACE_ICONV_UTF.
35426         * modules/iconv_open (Depends-on): Add c-strcase.
35427         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
35428         ICONV_CONST.
35429         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
35430
35431 2007-10-13  Albert Chin  <china@thewrittenword.com>
35432             Bruno Haible  <bruno@clisp.org>
35433
35434         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
35435         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
35436
35437 2007-10-13  Bruno Haible  <bruno@clisp.org>
35438
35439         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
35440         defined, use the ISO C99 inline semantics.
35441         * lib/argp.h (ARGP_EI): Likewise.
35442
35443 2007-10-13  Bruno Haible  <bruno@clisp.org>
35444
35445         Handle 'inline' change in gcc 4.3.0.
35446         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
35447         argp_fmtstream_write, argp_fmtstream_set_lmargin,
35448         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
35449         argp_fmtstream_point): Disable 'extern' declaration if the function
35450         definition is going to be provided inline.
35451         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
35452         semantics, not the ISO C99 inline semantics.
35453         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
35454         'extern' declaration if the function definition is going to be provided
35455         inline.
35456         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
35457         the GNU C inline semantics, not the ISO C99 inline semantics. With
35458         GCC 4.2, avoid a warning.
35459
35460 2007-10-13  Bruno Haible  <bruno@clisp.org>
35461
35462         * lib/freading.h (freading): Enable the use of __freading for
35463         glibc >= 2.7.
35464         * lib/freading.c (freading): Likewise.
35465
35466 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
35467
35468         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
35469         "warning: C99 inline functions are not supported; using GNU89".
35470
35471 2007-10-12  Bruno Haible  <bruno@clisp.org>
35472
35473         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
35474         of 2.
35475         * tests/test-ceilf2.c: New file.
35476         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
35477
35478         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
35479         * modules/ceilf-tests: Update.
35480
35481 2007-10-12  Bruno Haible  <bruno@clisp.org>
35482
35483         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
35484         of 2.
35485         * tests/test-floorf2.c: New file.
35486         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
35487
35488         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
35489         * modules/floorf-tests: Update.
35490
35491 2007-10-12  Bruno Haible  <bruno@clisp.org>
35492
35493         * tests/test-trunc2.c: New file.
35494         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
35495
35496         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
35497         * modules/trunc-tests: Update.
35498
35499 2007-10-12  Bruno Haible  <bruno@clisp.org>
35500
35501         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
35502         of 2.
35503         * tests/test-truncf2.c: New file.
35504         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
35505
35506         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
35507         * modules/truncf-tests: Update.
35508
35509 2007-10-11  Eric Blake  <ebb9@byu.net>
35510
35511         Don't claim strerror is broken on Interix.
35512         * doc/functions/strerror.texi (strerror): Known broken systems are
35513         now Solaris 8, and not Interix.
35514         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
35515         Interix on cross-compile.
35516         Reported by Martin Koeppe in
35517         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
35518
35519 2007-10-11  Bruno Haible  <bruno@clisp.org>
35520
35521         * modules/i-ring-tests: New file.
35522         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
35523         instead of assert.
35524
35525 2007-10-11  Bruno Haible  <bruno@clisp.org>
35526
35527         * modules/filenamecat-tests: New file.
35528         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
35529         * lib/filenamecat.c: Remove test code.
35530
35531 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
35532
35533         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
35534
35535         * lib/strerror.c: Include <string.h> always, to test interface,
35536         and to remove the need for the dummy.
35537         Include intprops.h to compute width instead of doing it ourselves
35538         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
35539         (strerror): Define it to return NULL if there's no system strerror.
35540         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
35541         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
35542         ancient pre-strerror Unix systems well any more.  Saying "unknown
35543         system error" is enough.
35544         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
35545         simpler strerror.c implementation.
35546         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
35547         Simplify the tests to reflect the simpler strerror implementation.
35548         * modules/strerror (Depends-on): Add intprops.
35549
35550 2007-10-09  Eric Blake  <ebb9@byu.net>
35551
35552         Silence test-fpending.
35553         * modules/fpending-tests (Files): Add wrapper script.
35554         * tests/test-fpending.sh: New file.
35555
35556 2007-10-09  Bruno Haible  <bruno@clisp.org>
35557
35558         * MODULES.html.sh (func_module): Don't create a hyperlink for
35559         function names like 'printf_frexp'.
35560         (Misc): Add crc, memxor.
35561         (Characteristics of floating types): New section.
35562         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
35563         isnanf-nolibm, signbit, trunc, truncf, truncl.
35564         (Enhancements for ISO C 99 functions): New subsection Input/output.
35565         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
35566         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
35567         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
35568         (Compatibility checks for POSIX:2001 functions): Add clock-time.
35569         (Enhancements for POSIX:2001 functions): Add chdir-long.
35570         (File system functions): Add areadlink, chdir-safer, read-file.
35571         Remove cycle-check.
35572         (File system as inode set): New section.
35573         (Date and time): Add gethrxtime.
35574         (Multithreading): Add openmp.
35575         (Internationalization functions): Add localename.
35576         (Unicode string functions): Add unistr/u*-mbsnlen.
35577         (Support for maintaining and releasing projects): Add git-version-gen.
35578         (Lone files): Remove directories.
35579
35580 2007-10-08  Ben Pfaff  <blp@gnu.org>
35581
35582         * lib/xmalloca.h: Fix typo in comment.
35583
35584 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
35585
35586         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
35587         when avoiding problems with integer overflow.  Use a portable test
35588         instead.
35589
35590 2007-10-08  Simon Josefsson  <simon@josefsson.org>
35591
35592         * modules/dummy (License): Change to LGPLv2+.
35593         * modules/float (License): Likewise
35594         * modules/realloc (License): Likewise
35595         * modules/stdlib (License): Likewise
35596
35597 2007-10-07  Bruno Haible  <bruno@clisp.org>
35598
35599         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
35600         * floor.c (TWO_MANT_DIG): Likewise.
35601         * ceil.c (TWO_MANT_DIG): Likewise.
35602         Reported by Ben Pfaff.
35603
35604 2007-10-07  Bruno Haible  <bruno@clisp.org>
35605
35606         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
35607         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
35608         * lib/frexp.c (FUNC): Likewise.
35609         * lib/printf-frexp.h (printf_frexp): Likewise.
35610         * lib/printf-frexpl.h (printf_frexpl): Likewise.
35611         * lib/printf-frexp.c (FUNC): Likewise.
35612         Suggested by Jim Meyering.
35613
35614 2007-10-07  Jim Meyering  <meyering@redhat.com>
35615
35616         Make xnanosleep's integer overflow test more robust.
35617         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
35618         so that gcc-4.3.0 doesn't optimize away this test for overflow.
35619
35620 2007-10-07  Bruno Haible  <bruno@clisp.org>
35621
35622         * NEWS: Mention the license change.
35623
35624         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
35625         abbreviations in the modules files.
35626
35627         Change copyright notice from GPLv2+ to GPLv3+.
35628         * README: Change copyright notice.
35629         * MODULES.html.sh: Likewise.
35630         * build-aux/bootstrap.conf: Likewise.
35631         * build-aux/config.libpath: Likewise.
35632         * build-aux/csharpcomp.sh.in: Likewise.
35633         * build-aux/csharpexec.sh.in: Likewise.
35634         * build-aux/install-reloc: Likewise.
35635         * build-aux/javacomp.sh.in: Likewise.
35636         * build-aux/javaexec.sh.in: Likewise.
35637         * build-aux/ldd.sh.in: Likewise.
35638         * build-aux/reloc-ldflags: Likewise.
35639         * build-aux/relocatable.sh.in: Likewise.
35640         * build-aux/x-to-1.in: Likewise.
35641         * check-module: Likewise.
35642         * config/srclistvars.sh: Likewise.
35643         * gnulib-tool: Likewise.
35644         * lib/acl-internal.h: Likewise.
35645         * lib/acl.c: Likewise.
35646         * lib/acl.h: Likewise.
35647         * lib/acl_entries.c: Likewise.
35648         * lib/areadlink-with-size.c: Likewise.
35649         * lib/areadlink.c: Likewise.
35650         * lib/areadlink.h: Likewise.
35651         * lib/argmatch.c: Likewise.
35652         * lib/argmatch.h: Likewise.
35653         * lib/argp-ba.c: Likewise.
35654         * lib/argp-eexst.c: Likewise.
35655         * lib/argp-fmtstream.c: Likewise.
35656         * lib/argp-fmtstream.h: Likewise.
35657         * lib/argp-fs-xinl.c: Likewise.
35658         * lib/argp-help.c: Likewise.
35659         * lib/argp-namefrob.h: Likewise.
35660         * lib/argp-parse.c: Likewise.
35661         * lib/argp-pin.c: Likewise.
35662         * lib/argp-pv.c: Likewise.
35663         * lib/argp-pvh.c: Likewise.
35664         * lib/argp-xinl.c: Likewise.
35665         * lib/argp.h: Likewise.
35666         * lib/at-func.c: Likewise.
35667         * lib/atanl.c: Likewise.
35668         * lib/backupfile.c: Likewise.
35669         * lib/backupfile.h: Likewise.
35670         * lib/basename.c: Likewise.
35671         * lib/binary-io.h: Likewise.
35672         * lib/byteswap.in.h: Likewise.
35673         * lib/c-stack.c: Likewise.
35674         * lib/c-stack.h: Likewise.
35675         * lib/c-strcasestr.c: Likewise.
35676         * lib/c-strcasestr.h: Likewise.
35677         * lib/c-strstr.c: Likewise.
35678         * lib/c-strstr.h: Likewise.
35679         * lib/c-strtod.c: Likewise.
35680         * lib/calloc.c: Likewise.
35681         * lib/canon-host.c: Likewise.
35682         * lib/canon-host.h: Likewise.
35683         * lib/canonicalize-lgpl.c: Likewise.
35684         * lib/canonicalize.c: Likewise.
35685         * lib/canonicalize.h: Likewise.
35686         * lib/ceil.c: Likewise.
35687         * lib/ceilf.c: Likewise.
35688         * lib/ceill.c: Likewise.
35689         * lib/chdir-long.c: Likewise.
35690         * lib/chdir-long.h: Likewise.
35691         * lib/chdir-safer.c: Likewise.
35692         * lib/chdir-safer.h: Likewise.
35693         * lib/chown.c: Likewise.
35694         * lib/classpath.c: Likewise.
35695         * lib/classpath.h: Likewise.
35696         * lib/clean-temp.c: Likewise.
35697         * lib/clean-temp.h: Likewise.
35698         * lib/cloexec.c: Likewise.
35699         * lib/close-stream.c: Likewise.
35700         * lib/closein.c: Likewise.
35701         * lib/closein.h: Likewise.
35702         * lib/closeout.c: Likewise.
35703         * lib/closeout.h: Likewise.
35704         * lib/concat-filename.c: Likewise.
35705         * lib/copy-file.c: Likewise.
35706         * lib/copy-file.h: Likewise.
35707         * lib/count-one-bits.h: Likewise.
35708         * lib/crc.c: Likewise.
35709         * lib/crc.h: Likewise.
35710         * lib/creat-safer.c: Likewise.
35711         * lib/csharpcomp.c: Likewise.
35712         * lib/csharpcomp.h: Likewise.
35713         * lib/csharpexec.c: Likewise.
35714         * lib/csharpexec.h: Likewise.
35715         * lib/cycle-check.c: Likewise.
35716         * lib/cycle-check.h: Likewise.
35717         * lib/diacrit.c: Likewise.
35718         * lib/diacrit.h: Likewise.
35719         * lib/diffseq.h: Likewise.
35720         * lib/dirchownmod.c: Likewise.
35721         * lib/dirent.in.h: Likewise.
35722         * lib/dirfd.c: Likewise.
35723         * lib/dirfd.h: Likewise.
35724         * lib/dirname.c: Likewise.
35725         * lib/dirname.h: Likewise.
35726         * lib/dummy.c: Likewise.
35727         * lib/dup-safer.c: Likewise.
35728         * lib/dup2.c: Likewise.
35729         * lib/eealloc.h: Likewise.
35730         * lib/error.c: Likewise.
35731         * lib/error.h: Likewise.
35732         * lib/euidaccess.c: Likewise.
35733         * lib/exclude.c: Likewise.
35734         * lib/exclude.h: Likewise.
35735         * lib/execute.c: Likewise.
35736         * lib/execute.h: Likewise.
35737         * lib/exitfail.c: Likewise.
35738         * lib/exitfail.h: Likewise.
35739         * lib/expl.c: Likewise.
35740         * lib/fatal-signal.c: Likewise.
35741         * lib/fatal-signal.h: Likewise.
35742         * lib/fbufmode.c: Likewise.
35743         * lib/fbufmode.h: Likewise.
35744         * lib/fchdir.c: Likewise.
35745         * lib/fchmodat.c: Likewise.
35746         * lib/fchownat.c: Likewise.
35747         * lib/fcntl--.h: Likewise.
35748         * lib/fcntl-safer.h: Likewise.
35749         * lib/fcntl.in.h: Likewise.
35750         * lib/fd-safer.c: Likewise.
35751         * lib/fflush.c: Likewise.
35752         * lib/file-has-acl.c: Likewise.
35753         * lib/file-set.c: Likewise.
35754         * lib/file-type.c: Likewise.
35755         * lib/file-type.h: Likewise.
35756         * lib/fileblocks.c: Likewise.
35757         * lib/filemode.c: Likewise.
35758         * lib/filemode.h: Likewise.
35759         * lib/filename.h: Likewise.
35760         * lib/filenamecat.c: Likewise.
35761         * lib/filenamecat.h: Likewise.
35762         * lib/findprog.c: Likewise.
35763         * lib/findprog.h: Likewise.
35764         * lib/float.in.h: Likewise.
35765         * lib/floor.c: Likewise.
35766         * lib/floorf.c: Likewise.
35767         * lib/floorl.c: Likewise.
35768         * lib/fopen-safer.c: Likewise.
35769         * lib/fopen.c: Likewise.
35770         * lib/fpending.c: Likewise.
35771         * lib/fpending.h: Likewise.
35772         * lib/fprintf.c: Likewise.
35773         * lib/fprintftime.h: Likewise.
35774         * lib/fpucw.h: Likewise.
35775         * lib/fpurge.c: Likewise.
35776         * lib/fpurge.h: Likewise.
35777         * lib/freadable.c: Likewise.
35778         * lib/freadable.h: Likewise.
35779         * lib/freadahead.c: Likewise.
35780         * lib/freadahead.h: Likewise.
35781         * lib/freading.c: Likewise.
35782         * lib/freading.h: Likewise.
35783         * lib/free.c: Likewise.
35784         * lib/freopen.c: Likewise.
35785         * lib/frexp.c: Likewise.
35786         * lib/frexpl.c: Likewise.
35787         * lib/fseek.c: Likewise.
35788         * lib/fseterr.c: Likewise.
35789         * lib/fseterr.h: Likewise.
35790         * lib/fstatat.c: Likewise.
35791         * lib/fstrcmp.c: Likewise.
35792         * lib/fstrcmp.h: Likewise.
35793         * lib/fsusage.c: Likewise.
35794         * lib/fsusage.h: Likewise.
35795         * lib/ftell.c: Likewise.
35796         * lib/ftello.c: Likewise.
35797         * lib/fts-cycle.c: Likewise.
35798         * lib/fts.c: Likewise.
35799         * lib/fts_.h: Likewise.
35800         * lib/full-read.c: Likewise.
35801         * lib/full-read.h: Likewise.
35802         * lib/full-write.c: Likewise.
35803         * lib/full-write.h: Likewise.
35804         * lib/fwritable.c: Likewise.
35805         * lib/fwritable.h: Likewise.
35806         * lib/fwriteerror.c: Likewise.
35807         * lib/fwriteerror.h: Likewise.
35808         * lib/fwriting.c: Likewise.
35809         * lib/fwriting.h: Likewise.
35810         * lib/gcd.c: Likewise.
35811         * lib/gcd.h: Likewise.
35812         * lib/getcwd.c: Likewise.
35813         * lib/getdate.h: Likewise.
35814         * lib/getdate.y: Likewise.
35815         * lib/getdomainname.c: Likewise.
35816         * lib/getdomainname.h: Likewise.
35817         * lib/getgroups.c: Likewise.
35818         * lib/gethostname.c: Likewise.
35819         * lib/gethrxtime.c: Likewise.
35820         * lib/gethrxtime.h: Likewise.
35821         * lib/getloadavg.c: Likewise.
35822         * lib/getndelim2.c: Likewise.
35823         * lib/getndelim2.h: Likewise.
35824         * lib/getnline.c: Likewise.
35825         * lib/getnline.h: Likewise.
35826         * lib/getopt.c: Likewise.
35827         * lib/getopt.in.h: Likewise.
35828         * lib/getopt1.c: Likewise.
35829         * lib/getopt_int.h: Likewise.
35830         * lib/getpagesize.h: Likewise.
35831         * lib/getsubopt.c: Likewise.
35832         * lib/gettime.c: Likewise.
35833         * lib/getugroups.c: Likewise.
35834         * lib/getugroups.h: Likewise.
35835         * lib/getusershell.c: Likewise.
35836         * lib/gl_anyavltree_list1.h: Likewise.
35837         * lib/gl_anyavltree_list2.h: Likewise.
35838         * lib/gl_anyhash_list1.h: Likewise.
35839         * lib/gl_anyhash_list2.h: Likewise.
35840         * lib/gl_anylinked_list1.h: Likewise.
35841         * lib/gl_anylinked_list2.h: Likewise.
35842         * lib/gl_anyrbtree_list1.h: Likewise.
35843         * lib/gl_anyrbtree_list2.h: Likewise.
35844         * lib/gl_anytree_list1.h: Likewise.
35845         * lib/gl_anytree_list2.h: Likewise.
35846         * lib/gl_anytree_oset.h: Likewise.
35847         * lib/gl_anytreehash_list1.h: Likewise.
35848         * lib/gl_anytreehash_list2.h: Likewise.
35849         * lib/gl_array_list.c: Likewise.
35850         * lib/gl_array_list.h: Likewise.
35851         * lib/gl_array_oset.c: Likewise.
35852         * lib/gl_array_oset.h: Likewise.
35853         * lib/gl_avltree_list.c: Likewise.
35854         * lib/gl_avltree_list.h: Likewise.
35855         * lib/gl_avltree_oset.c: Likewise.
35856         * lib/gl_avltree_oset.h: Likewise.
35857         * lib/gl_avltreehash_list.c: Likewise.
35858         * lib/gl_avltreehash_list.h: Likewise.
35859         * lib/gl_carray_list.c: Likewise.
35860         * lib/gl_carray_list.h: Likewise.
35861         * lib/gl_linked_list.c: Likewise.
35862         * lib/gl_linked_list.h: Likewise.
35863         * lib/gl_linkedhash_list.c: Likewise.
35864         * lib/gl_linkedhash_list.h: Likewise.
35865         * lib/gl_list.c: Likewise.
35866         * lib/gl_list.h: Likewise.
35867         * lib/gl_oset.c: Likewise.
35868         * lib/gl_oset.h: Likewise.
35869         * lib/gl_rbtree_list.c: Likewise.
35870         * lib/gl_rbtree_list.h: Likewise.
35871         * lib/gl_rbtree_oset.c: Likewise.
35872         * lib/gl_rbtree_oset.h: Likewise.
35873         * lib/gl_rbtreehash_list.c: Likewise.
35874         * lib/gl_rbtreehash_list.h: Likewise.
35875         * lib/gl_sublist.c: Likewise.
35876         * lib/gl_sublist.h: Likewise.
35877         * lib/group-member.c: Likewise.
35878         * lib/group-member.h: Likewise.
35879         * lib/hard-locale.c: Likewise.
35880         * lib/hard-locale.h: Likewise.
35881         * lib/hash-pjw.c: Likewise.
35882         * lib/hash-pjw.h: Likewise.
35883         * lib/hash-triple.c: Likewise.
35884         * lib/hash.c: Likewise.
35885         * lib/hash.h: Likewise.
35886         * lib/human.c: Likewise.
35887         * lib/human.h: Likewise.
35888         * lib/i-ring.c: Likewise.
35889         * lib/i-ring.h: Likewise.
35890         * lib/idcache.c: Likewise.
35891         * lib/imaxabs.c: Likewise.
35892         * lib/imaxdiv.c: Likewise.
35893         * lib/inet_pton.c: Likewise.
35894         * lib/inet_pton.h: Likewise.
35895         * lib/intprops.h: Likewise.
35896         * lib/inttostr.c: Likewise.
35897         * lib/inttostr.h: Likewise.
35898         * lib/inttypes.in.h: Likewise.
35899         * lib/isapipe.c: Likewise.
35900         * lib/isdir.c: Likewise.
35901         * lib/isnan.c: Likewise.
35902         * lib/isnan.h: Likewise.
35903         * lib/isnanf.c: Likewise.
35904         * lib/isnanf.h: Likewise.
35905         * lib/isnanl-nolibm.h: Likewise.
35906         * lib/isnanl.c: Likewise.
35907         * lib/isnanl.h: Likewise.
35908         * lib/javacomp.c: Likewise.
35909         * lib/javacomp.h: Likewise.
35910         * lib/javaexec.c: Likewise.
35911         * lib/javaexec.h: Likewise.
35912         * lib/javaversion.c: Likewise.
35913         * lib/javaversion.h: Likewise.
35914         * lib/javaversion.java: Likewise.
35915         * lib/lbrkprop.h: Likewise.
35916         * lib/lchmod.h: Likewise.
35917         * lib/lchown.c: Likewise.
35918         * lib/ldexpl.c: Likewise.
35919         * lib/linebreak.c: Likewise.
35920         * lib/linebreak.h: Likewise.
35921         * lib/linebuffer.c: Likewise.
35922         * lib/linebuffer.h: Likewise.
35923         * lib/locale.in.h: Likewise.
35924         * lib/logl.c: Likewise.
35925         * lib/long-options.c: Likewise.
35926         * lib/long-options.h: Likewise.
35927         * lib/lstat.c: Likewise.
35928         * lib/lstat.h: Likewise.
35929         * lib/math.in.h: Likewise.
35930         * lib/mbchar.c: Likewise.
35931         * lib/mbchar.h: Likewise.
35932         * lib/mbfile.h: Likewise.
35933         * lib/mbiter.h: Likewise.
35934         * lib/mbscasecmp.c: Likewise.
35935         * lib/mbscasestr.c: Likewise.
35936         * lib/mbschr.c: Likewise.
35937         * lib/mbscspn.c: Likewise.
35938         * lib/mbslen.c: Likewise.
35939         * lib/mbsncasecmp.c: Likewise.
35940         * lib/mbsnlen.c: Likewise.
35941         * lib/mbspbrk.c: Likewise.
35942         * lib/mbspcasecmp.c: Likewise.
35943         * lib/mbsrchr.c: Likewise.
35944         * lib/mbssep.c: Likewise.
35945         * lib/mbsspn.c: Likewise.
35946         * lib/mbsstr.c: Likewise.
35947         * lib/mbstok_r.c: Likewise.
35948         * lib/mbswidth.c: Likewise.
35949         * lib/mbswidth.h: Likewise.
35950         * lib/mbuiter.h: Likewise.
35951         * lib/memcasecmp.c: Likewise.
35952         * lib/memcasecmp.h: Likewise.
35953         * lib/memchr.c: Likewise.
35954         * lib/memcmp.c: Likewise.
35955         * lib/memcoll.c: Likewise.
35956         * lib/memcoll.h: Likewise.
35957         * lib/memcpy.c: Likewise.
35958         * lib/memrchr.c: Likewise.
35959         * lib/mkancesdirs.c: Likewise.
35960         * lib/mkdir-p.c: Likewise.
35961         * lib/mkdir-p.h: Likewise.
35962         * lib/mkdir.c: Likewise.
35963         * lib/mkdirat.c: Likewise.
35964         * lib/mkdtemp.c: Likewise.
35965         * lib/mkstemp-safer.c: Likewise.
35966         * lib/mkstemp.c: Likewise.
35967         * lib/modechange.c: Likewise.
35968         * lib/modechange.h: Likewise.
35969         * lib/mountlist.c: Likewise.
35970         * lib/mountlist.h: Likewise.
35971         * lib/mpsort.c: Likewise.
35972         * lib/nanosleep.c: Likewise.
35973         * lib/obstack.c: Likewise.
35974         * lib/obstack.h: Likewise.
35975         * lib/open-safer.c: Likewise.
35976         * lib/open.c: Likewise.
35977         * lib/openat-die.c: Likewise.
35978         * lib/openat-priv.h: Likewise.
35979         * lib/openat-proc.c: Likewise.
35980         * lib/openat.c: Likewise.
35981         * lib/openat.h: Likewise.
35982         * lib/pagealign_alloc.c: Likewise.
35983         * lib/pagealign_alloc.h: Likewise.
35984         * lib/physmem.c: Likewise.
35985         * lib/physmem.h: Likewise.
35986         * lib/pipe-safer.c: Likewise.
35987         * lib/pipe.c: Likewise.
35988         * lib/pipe.h: Likewise.
35989         * lib/posixtm.c: Likewise.
35990         * lib/posixtm.h: Likewise.
35991         * lib/posixver.c: Likewise.
35992         * lib/printf-frexp.c: Likewise.
35993         * lib/printf-frexp.h: Likewise.
35994         * lib/printf-frexpl.c: Likewise.
35995         * lib/printf-frexpl.h: Likewise.
35996         * lib/printf.c: Likewise.
35997         * lib/progname.c: Likewise.
35998         * lib/progname.h: Likewise.
35999         * lib/progreloc.c: Likewise.
36000         * lib/putenv.c: Likewise.
36001         * lib/quote.c: Likewise.
36002         * lib/quote.h: Likewise.
36003         * lib/quotearg.c: Likewise.
36004         * lib/quotearg.h: Likewise.
36005         * lib/raise.c: Likewise.
36006         * lib/readline.c: Likewise.
36007         * lib/readline.h: Likewise.
36008         * lib/readlink.c: Likewise.
36009         * lib/readtokens.c: Likewise.
36010         * lib/readtokens.h: Likewise.
36011         * lib/readtokens0.c: Likewise.
36012         * lib/readtokens0.h: Likewise.
36013         * lib/readutmp.c: Likewise.
36014         * lib/readutmp.h: Likewise.
36015         * lib/realloc.c: Likewise.
36016         * lib/relocwrapper.c: Likewise.
36017         * lib/rename-dest-slash.c: Likewise.
36018         * lib/rename.c: Likewise.
36019         * lib/rmdir.c: Likewise.
36020         * lib/rpmatch.c: Likewise.
36021         * lib/safe-read.c: Likewise.
36022         * lib/safe-read.h: Likewise.
36023         * lib/safe-write.c: Likewise.
36024         * lib/safe-write.h: Likewise.
36025         * lib/same-inode.h: Likewise.
36026         * lib/same.c: Likewise.
36027         * lib/same.h: Likewise.
36028         * lib/save-cwd.c: Likewise.
36029         * lib/save-cwd.h: Likewise.
36030         * lib/savedir.c: Likewise.
36031         * lib/savedir.h: Likewise.
36032         * lib/savewd.c: Likewise.
36033         * lib/savewd.h: Likewise.
36034         * lib/search.in.h: Likewise.
36035         * lib/setenv.c: Likewise.
36036         * lib/setenv.h: Likewise.
36037         * lib/settime.c: Likewise.
36038         * lib/sh-quote.c: Likewise.
36039         * lib/sh-quote.h: Likewise.
36040         * lib/sig2str.c: Likewise.
36041         * lib/sig2str.h: Likewise.
36042         * lib/signal.in.h: Likewise.
36043         * lib/signbitd.c: Likewise.
36044         * lib/signbitf.c: Likewise.
36045         * lib/signbitl.c: Likewise.
36046         * lib/sigprocmask.c: Likewise.
36047         * lib/sincosl.c: Likewise.
36048         * lib/sleep.c: Likewise.
36049         * lib/sprintf.c: Likewise.
36050         * lib/sqrtl.c: Likewise.
36051         * lib/stat-time.h: Likewise.
36052         * lib/stdio--.h: Likewise.
36053         * lib/stdio-safer.h: Likewise.
36054         * lib/stdlib--.h: Likewise.
36055         * lib/stdlib-safer.h: Likewise.
36056         * lib/stdlib.in.h: Likewise.
36057         * lib/stpcpy.c: Likewise.
36058         * lib/stpncpy.c: Likewise.
36059         * lib/strchrnul.c: Likewise.
36060         * lib/strcspn.c: Likewise.
36061         * lib/strerror.c: Likewise.
36062         * lib/strftime.c: Likewise.
36063         * lib/strftime.h: Likewise.
36064         * lib/striconveh.c: Likewise.
36065         * lib/striconveh.h: Likewise.
36066         * lib/striconveha.c: Likewise.
36067         * lib/striconveha.h: Likewise.
36068         * lib/stripslash.c: Likewise.
36069         * lib/strnlen1.c: Likewise.
36070         * lib/strnlen1.h: Likewise.
36071         * lib/strtod.c: Likewise.
36072         * lib/strtoimax.c: Likewise.
36073         * lib/strtok_r.c: Likewise.
36074         * lib/strtol.c: Likewise.
36075         * lib/strtoll.c: Likewise.
36076         * lib/strtoul.c: Likewise.
36077         * lib/strtoull.c: Likewise.
36078         * lib/sysexits.in.h: Likewise.
36079         * lib/tempname.c: Likewise.
36080         * lib/tempname.h: Likewise.
36081         * lib/timespec.h: Likewise.
36082         * lib/tls.c: Likewise.
36083         * lib/tls.h: Likewise.
36084         * lib/tmpdir.c: Likewise.
36085         * lib/tmpdir.h: Likewise.
36086         * lib/tmpfile-safer.c: Likewise.
36087         * lib/tmpfile.c: Likewise.
36088         * lib/trigl.c: Likewise.
36089         * lib/trigl.h: Likewise.
36090         * lib/trim.c: Likewise.
36091         * lib/trim.h: Likewise.
36092         * lib/trunc.c: Likewise.
36093         * lib/truncf.c: Likewise.
36094         * lib/truncl.c: Likewise.
36095         * lib/tsearch.c: Likewise.
36096         * lib/unicodeio.c: Likewise.
36097         * lib/unicodeio.h: Likewise.
36098         * lib/unistd--.h: Likewise.
36099         * lib/unistd-safer.h: Likewise.
36100         * lib/unistdio/ulc-fprintf.c: Likewise.
36101         * lib/unistdio/ulc-vfprintf.c: Likewise.
36102         * lib/unlinkdir.c: Likewise.
36103         * lib/unlinkdir.h: Likewise.
36104         * lib/unlocked-io.h: Likewise.
36105         * lib/unsetenv.c: Likewise.
36106         * lib/userspec.c: Likewise.
36107         * lib/utime.c: Likewise.
36108         * lib/utimecmp.c: Likewise.
36109         * lib/utimecmp.h: Likewise.
36110         * lib/utimens.c: Likewise.
36111         * lib/verify.h: Likewise.
36112         * lib/verror.c: Likewise.
36113         * lib/verror.h: Likewise.
36114         * lib/version-etc-fsf.c: Likewise.
36115         * lib/version-etc.c: Likewise.
36116         * lib/version-etc.h: Likewise.
36117         * lib/vfprintf.c: Likewise.
36118         * lib/vprintf.c: Likewise.
36119         * lib/vsprintf.c: Likewise.
36120         * lib/w32spawn.h: Likewise.
36121         * lib/wait-process.c: Likewise.
36122         * lib/wait-process.h: Likewise.
36123         * lib/wcwidth.c: Likewise.
36124         * lib/write-any-file.c: Likewise.
36125         * lib/xalloc-die.c: Likewise.
36126         * lib/xalloc.h: Likewise.
36127         * lib/xasprintf.c: Likewise.
36128         * lib/xgetcwd.c: Likewise.
36129         * lib/xgetcwd.h: Likewise.
36130         * lib/xgetdomainname.c: Likewise.
36131         * lib/xgetdomainname.h: Likewise.
36132         * lib/xgethostname.c: Likewise.
36133         * lib/xmalloc.c: Likewise.
36134         * lib/xmalloca.c: Likewise.
36135         * lib/xmalloca.h: Likewise.
36136         * lib/xmemcoll.c: Likewise.
36137         * lib/xnanosleep.c: Likewise.
36138         * lib/xreadlink.c: Likewise.
36139         * lib/xreadlink.h: Likewise.
36140         * lib/xsetenv.c: Likewise.
36141         * lib/xsetenv.h: Likewise.
36142         * lib/xstriconv.c: Likewise.
36143         * lib/xstriconv.h: Likewise.
36144         * lib/xstrndup.c: Likewise.
36145         * lib/xstrndup.h: Likewise.
36146         * lib/xstrtod.c: Likewise.
36147         * lib/xstrtod.h: Likewise.
36148         * lib/xstrtol-error.c: Likewise.
36149         * lib/xstrtol.c: Likewise.
36150         * lib/xstrtol.h: Likewise.
36151         * lib/xtime.h: Likewise.
36152         * lib/xvasprintf.c: Likewise.
36153         * lib/xvasprintf.h: Likewise.
36154         * lib/yesno.c: Likewise.
36155         * lib/yesno.h: Likewise.
36156         * posix-modules: Likewise.
36157         * tests/test-alloca-opt.c: Likewise.
36158         * tests/test-arcfour.c: Likewise.
36159         * tests/test-arctwo.c: Likewise.
36160         * tests/test-argmatch.c: Likewise.
36161         * tests/test-argp-2.sh: Likewise.
36162         * tests/test-argp.c: Likewise.
36163         * tests/test-arpa_inet.c: Likewise.
36164         * tests/test-array_list.c: Likewise.
36165         * tests/test-array_oset.c: Likewise.
36166         * tests/test-atexit.c: Likewise.
36167         * tests/test-avltree_list.c: Likewise.
36168         * tests/test-avltree_oset.c: Likewise.
36169         * tests/test-avltreehash_list.c: Likewise.
36170         * tests/test-base64.c: Likewise.
36171         * tests/test-binary-io.c: Likewise.
36172         * tests/test-byteswap.c: Likewise.
36173         * tests/test-c-ctype.c: Likewise.
36174         * tests/test-c-strcasecmp.c: Likewise.
36175         * tests/test-c-strcasestr.c: Likewise.
36176         * tests/test-c-strncasecmp.c: Likewise.
36177         * tests/test-c-strstr.c: Likewise.
36178         * tests/test-canonicalize-lgpl.c: Likewise.
36179         * tests/test-canonicalize.c: Likewise.
36180         * tests/test-carray_list.c: Likewise.
36181         * tests/test-ceilf.c: Likewise.
36182         * tests/test-ceill.c: Likewise.
36183         * tests/test-count-one-bits.c: Likewise.
36184         * tests/test-crc.c: Likewise.
36185         * tests/test-dirname.c: Likewise.
36186         * tests/test-fbufmode.c: Likewise.
36187         * tests/test-fcntl.c: Likewise.
36188         * tests/test-fflush.c: Likewise.
36189         * tests/test-floorf.c: Likewise.
36190         * tests/test-floorl.c: Likewise.
36191         * tests/test-fopen.c: Likewise.
36192         * tests/test-fprintf-posix.c: Likewise.
36193         * tests/test-fprintf-posix.h: Likewise.
36194         * tests/test-fpurge.c: Likewise.
36195         * tests/test-freadable.c: Likewise.
36196         * tests/test-freadahead.c: Likewise.
36197         * tests/test-freading.c: Likewise.
36198         * tests/test-freopen.c: Likewise.
36199         * tests/test-frexp.c: Likewise.
36200         * tests/test-frexpl.c: Likewise.
36201         * tests/test-fseek.c: Likewise.
36202         * tests/test-fseeko.c: Likewise.
36203         * tests/test-fseterr.c: Likewise.
36204         * tests/test-fstrcmp.c: Likewise.
36205         * tests/test-ftell.c: Likewise.
36206         * tests/test-ftello.c: Likewise.
36207         * tests/test-fwritable.c: Likewise.
36208         * tests/test-fwriting.c: Likewise.
36209         * tests/test-getaddrinfo.c: Likewise.
36210         * tests/test-getpass.c: Likewise.
36211         * tests/test-gettimeofday.c: Likewise.
36212         * tests/test-hmac-md5.c: Likewise.
36213         * tests/test-hmac-sha1.c: Likewise.
36214         * tests/test-iconv.c: Likewise.
36215         * tests/test-iconvme.c: Likewise.
36216         * tests/test-inttypes.c: Likewise.
36217         * tests/test-isnan.c: Likewise.
36218         * tests/test-isnanf.c: Likewise.
36219         * tests/test-isnanl-nolibm.c: Likewise.
36220         * tests/test-isnanl.c: Likewise.
36221         * tests/test-isnanl.h: Likewise.
36222         * tests/test-ldexpl.c: Likewise.
36223         * tests/test-linked_list.c: Likewise.
36224         * tests/test-linkedhash_list.c: Likewise.
36225         * tests/test-locale.c: Likewise.
36226         * tests/test-localename.c: Likewise.
36227         * tests/test-lock.c: Likewise.
36228         * tests/test-lseek.c: Likewise.
36229         * tests/test-malloca.c: Likewise.
36230         * tests/test-math.c: Likewise.
36231         * tests/test-mbscasecmp.c: Likewise.
36232         * tests/test-mbscasestr1.c: Likewise.
36233         * tests/test-mbscasestr2.c: Likewise.
36234         * tests/test-mbscasestr3.c: Likewise.
36235         * tests/test-mbscasestr4.c: Likewise.
36236         * tests/test-mbschr.c: Likewise.
36237         * tests/test-mbscspn.c: Likewise.
36238         * tests/test-mbsncasecmp.c: Likewise.
36239         * tests/test-mbspbrk.c: Likewise.
36240         * tests/test-mbspcasecmp.c: Likewise.
36241         * tests/test-mbsrchr.c: Likewise.
36242         * tests/test-mbsspn.c: Likewise.
36243         * tests/test-mbsstr1.c: Likewise.
36244         * tests/test-mbsstr2.c: Likewise.
36245         * tests/test-mbsstr3.c: Likewise.
36246         * tests/test-md5.c: Likewise.
36247         * tests/test-memmem.c: Likewise.
36248         * tests/test-netinet_in.c: Likewise.
36249         * tests/test-open.c: Likewise.
36250         * tests/test-printf-frexp.c: Likewise.
36251         * tests/test-printf-frexpl.c: Likewise.
36252         * tests/test-printf-posix.c: Likewise.
36253         * tests/test-printf-posix.h: Likewise.
36254         * tests/test-rbtree_list.c: Likewise.
36255         * tests/test-rbtree_oset.c: Likewise.
36256         * tests/test-rbtreehash_list.c: Likewise.
36257         * tests/test-read-file.c: Likewise.
36258         * tests/test-rijndael.c: Likewise.
36259         * tests/test-search.c: Likewise.
36260         * tests/test-signbit.c: Likewise.
36261         * tests/test-sleep.c: Likewise.
36262         * tests/test-snprintf-posix.c: Likewise.
36263         * tests/test-snprintf-posix.h: Likewise.
36264         * tests/test-snprintf.c: Likewise.
36265         * tests/test-sprintf-posix.c: Likewise.
36266         * tests/test-sprintf-posix.h: Likewise.
36267         * tests/test-stat-time.c: Likewise.
36268         * tests/test-stdbool.c: Likewise.
36269         * tests/test-stdint.c: Likewise.
36270         * tests/test-stdio.c: Likewise.
36271         * tests/test-stdlib.c: Likewise.
36272         * tests/test-stpncpy.c: Likewise.
36273         * tests/test-strcasestr.c: Likewise.
36274         * tests/test-striconv.c: Likewise.
36275         * tests/test-striconveh.c: Likewise.
36276         * tests/test-striconveha.c: Likewise.
36277         * tests/test-string.c: Likewise.
36278         * tests/test-sys_select.c: Likewise.
36279         * tests/test-sys_socket.c: Likewise.
36280         * tests/test-sys_stat.c: Likewise.
36281         * tests/test-sys_time.c: Likewise.
36282         * tests/test-sysexits.c: Likewise.
36283         * tests/test-time.c: Likewise.
36284         * tests/test-tls.c: Likewise.
36285         * tests/test-trunc.c: Likewise.
36286         * tests/test-truncf.c: Likewise.
36287         * tests/test-truncl.c: Likewise.
36288         * tests/test-unistd.c: Likewise.
36289         * tests/test-vasnprintf-posix.c: Likewise.
36290         * tests/test-vasnprintf-posix2.c: Likewise.
36291         * tests/test-vasnprintf.c: Likewise.
36292         * tests/test-vasprintf-posix.c: Likewise.
36293         * tests/test-vasprintf.c: Likewise.
36294         * tests/test-verify.c: Likewise.
36295         * tests/test-vfprintf-posix.c: Likewise.
36296         * tests/test-vprintf-posix.c: Likewise.
36297         * tests/test-vsnprintf-posix.c: Likewise.
36298         * tests/test-vsnprintf.c: Likewise.
36299         * tests/test-vsprintf-posix.c: Likewise.
36300         * tests/test-wchar.c: Likewise.
36301         * tests/test-wctype.c: Likewise.
36302         * tests/test-wcwidth.c: Likewise.
36303         * tests/test-xstrtol.c: Likewise.
36304         * tests/test-xvasprintf.c: Likewise.
36305         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
36306         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
36307         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
36308         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
36309         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
36310         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
36311         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
36312         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
36313         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
36314         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
36315         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
36316         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
36317         * tests/uniname/test-uninames.c: Likewise.
36318         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
36319         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
36320         * tests/unistdio/test-u16-printf1.h: Likewise.
36321         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
36322         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
36323         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
36324         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
36325         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
36326         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
36327         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
36328         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
36329         * tests/unistdio/test-u32-printf1.h: Likewise.
36330         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
36331         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
36332         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
36333         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
36334         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
36335         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
36336         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
36337         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
36338         * tests/unistdio/test-u8-printf1.h: Likewise.
36339         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
36340         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
36341         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
36342         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
36343         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
36344         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
36345         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
36346         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
36347         * tests/unistdio/test-ulc-printf1.h: Likewise.
36348         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
36349         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
36350         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
36351         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
36352         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
36353         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
36354         * tests/uniwidth/test-u16-strwidth.c: Likewise.
36355         * tests/uniwidth/test-u16-width.c: Likewise.
36356         * tests/uniwidth/test-u32-strwidth.c: Likewise.
36357         * tests/uniwidth/test-u32-width.c: Likewise.
36358         * tests/uniwidth/test-u8-strwidth.c: Likewise.
36359         * tests/uniwidth/test-u8-width.c: Likewise.
36360         * tests/uniwidth/test-uc_width.c: Likewise.
36361         * config/srclist-update: Likewise.
36362         (fixlicense): Update to GPLv3+.
36363
36364         Change copyright notice from LGPLv2.1+ to LGPLv3+.
36365         * tests/test-tsearch.c: Change copyright notice.
36366
36367         Change copyright notice from LGPLv2.0+ to LGPLv3+.
36368         * lib/c-strcaseeq.h: Change copyright notice.
36369         * lib/streq.h: Likewise.
36370         * lib/uniconv.h: Likewise.
36371         * lib/uniconv/u-conv-from-enc.h: Likewise.
36372         * lib/uniconv/u-conv-to-enc.h: Likewise.
36373         * lib/uniconv/u-strconv-from-enc.h: Likewise.
36374         * lib/uniconv/u-strconv-to-enc.h: Likewise.
36375         * lib/uniconv/u16-conv-from-enc.c: Likewise.
36376         * lib/uniconv/u16-conv-to-enc.c: Likewise.
36377         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
36378         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
36379         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
36380         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
36381         * lib/uniconv/u32-conv-from-enc.c: Likewise.
36382         * lib/uniconv/u32-conv-to-enc.c: Likewise.
36383         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
36384         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
36385         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
36386         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
36387         * lib/uniconv/u8-conv-from-enc.c: Likewise.
36388         * lib/uniconv/u8-conv-to-enc.c: Likewise.
36389         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
36390         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
36391         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
36392         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
36393         * lib/uniname.h: Likewise.
36394         * lib/uniname/uniname.c: Likewise.
36395         * lib/unistdio.h: Likewise.
36396         * lib/unistdio/u-asnprintf.h: Likewise.
36397         * lib/unistdio/u-asprintf.h: Likewise.
36398         * lib/unistdio/u-printf-args.c: Likewise.
36399         * lib/unistdio/u-printf-args.h: Likewise.
36400         * lib/unistdio/u-printf-parse.h: Likewise.
36401         * lib/unistdio/u-snprintf.h: Likewise.
36402         * lib/unistdio/u-sprintf.h: Likewise.
36403         * lib/unistdio/u-vasprintf.h: Likewise.
36404         * lib/unistdio/u-vsnprintf.h: Likewise.
36405         * lib/unistdio/u-vsprintf.h: Likewise.
36406         * lib/unistdio/u16-asnprintf.c: Likewise.
36407         * lib/unistdio/u16-asprintf.c: Likewise.
36408         * lib/unistdio/u16-printf-parse.c: Likewise.
36409         * lib/unistdio/u16-snprintf.c: Likewise.
36410         * lib/unistdio/u16-sprintf.c: Likewise.
36411         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
36412         * lib/unistdio/u16-u16-asprintf.c: Likewise.
36413         * lib/unistdio/u16-u16-snprintf.c: Likewise.
36414         * lib/unistdio/u16-u16-sprintf.c: Likewise.
36415         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
36416         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
36417         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
36418         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
36419         * lib/unistdio/u16-vasnprintf.c: Likewise.
36420         * lib/unistdio/u16-vasprintf.c: Likewise.
36421         * lib/unistdio/u16-vsnprintf.c: Likewise.
36422         * lib/unistdio/u16-vsprintf.c: Likewise.
36423         * lib/unistdio/u32-asnprintf.c: Likewise.
36424         * lib/unistdio/u32-asprintf.c: Likewise.
36425         * lib/unistdio/u32-printf-parse.c: Likewise.
36426         * lib/unistdio/u32-snprintf.c: Likewise.
36427         * lib/unistdio/u32-sprintf.c: Likewise.
36428         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
36429         * lib/unistdio/u32-u32-asprintf.c: Likewise.
36430         * lib/unistdio/u32-u32-snprintf.c: Likewise.
36431         * lib/unistdio/u32-u32-sprintf.c: Likewise.
36432         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
36433         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
36434         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
36435         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
36436         * lib/unistdio/u32-vasnprintf.c: Likewise.
36437         * lib/unistdio/u32-vasprintf.c: Likewise.
36438         * lib/unistdio/u32-vsnprintf.c: Likewise.
36439         * lib/unistdio/u32-vsprintf.c: Likewise.
36440         * lib/unistdio/u8-asnprintf.c: Likewise.
36441         * lib/unistdio/u8-asprintf.c: Likewise.
36442         * lib/unistdio/u8-printf-parse.c: Likewise.
36443         * lib/unistdio/u8-snprintf.c: Likewise.
36444         * lib/unistdio/u8-sprintf.c: Likewise.
36445         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
36446         * lib/unistdio/u8-u8-asprintf.c: Likewise.
36447         * lib/unistdio/u8-u8-snprintf.c: Likewise.
36448         * lib/unistdio/u8-u8-sprintf.c: Likewise.
36449         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
36450         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
36451         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
36452         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
36453         * lib/unistdio/u8-vasnprintf.c: Likewise.
36454         * lib/unistdio/u8-vasprintf.c: Likewise.
36455         * lib/unistdio/u8-vsnprintf.c: Likewise.
36456         * lib/unistdio/u8-vsprintf.c: Likewise.
36457         * lib/unistdio/ulc-asnprintf.c: Likewise.
36458         * lib/unistdio/ulc-asprintf.c: Likewise.
36459         * lib/unistdio/ulc-printf-parse.c: Likewise.
36460         * lib/unistdio/ulc-snprintf.c: Likewise.
36461         * lib/unistdio/ulc-sprintf.c: Likewise.
36462         * lib/unistdio/ulc-vasnprintf.c: Likewise.
36463         * lib/unistdio/ulc-vasprintf.c: Likewise.
36464         * lib/unistdio/ulc-vsnprintf.c: Likewise.
36465         * lib/unistdio/ulc-vsprintf.c: Likewise.
36466         * lib/unistr.h: Likewise.
36467         * lib/unistr/u-cpy-alloc.h: Likewise.
36468         * lib/unistr/u-cpy.h: Likewise.
36469         * lib/unistr/u-endswith.h: Likewise.
36470         * lib/unistr/u-move.h: Likewise.
36471         * lib/unistr/u-set.h: Likewise.
36472         * lib/unistr/u-startswith.h: Likewise.
36473         * lib/unistr/u-stpcpy.h: Likewise.
36474         * lib/unistr/u-stpncpy.h: Likewise.
36475         * lib/unistr/u-strcat.h: Likewise.
36476         * lib/unistr/u-strcpy.h: Likewise.
36477         * lib/unistr/u-strcspn.h: Likewise.
36478         * lib/unistr/u-strdup.h: Likewise.
36479         * lib/unistr/u-strlen.h: Likewise.
36480         * lib/unistr/u-strncat.h: Likewise.
36481         * lib/unistr/u-strncpy.h: Likewise.
36482         * lib/unistr/u-strnlen.h: Likewise.
36483         * lib/unistr/u-strpbrk.h: Likewise.
36484         * lib/unistr/u-strspn.h: Likewise.
36485         * lib/unistr/u-strstr.h: Likewise.
36486         * lib/unistr/u-strtok.h: Likewise.
36487         * lib/unistr/u16-check.c: Likewise.
36488         * lib/unistr/u16-chr.c: Likewise.
36489         * lib/unistr/u16-cmp.c: Likewise.
36490         * lib/unistr/u16-cpy-alloc.c: Likewise.
36491         * lib/unistr/u16-cpy.c: Likewise.
36492         * lib/unistr/u16-endswith.c: Likewise.
36493         * lib/unistr/u16-mblen.c: Likewise.
36494         * lib/unistr/u16-mbsnlen.c: Likewise.
36495         * lib/unistr/u16-mbtouc-aux.c: Likewise.
36496         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
36497         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
36498         * lib/unistr/u16-mbtouc.c: Likewise.
36499         * lib/unistr/u16-mbtoucr.c: Likewise.
36500         * lib/unistr/u16-move.c: Likewise.
36501         * lib/unistr/u16-next.c: Likewise.
36502         * lib/unistr/u16-prev.c: Likewise.
36503         * lib/unistr/u16-set.c: Likewise.
36504         * lib/unistr/u16-startswith.c: Likewise.
36505         * lib/unistr/u16-stpcpy.c: Likewise.
36506         * lib/unistr/u16-stpncpy.c: Likewise.
36507         * lib/unistr/u16-strcat.c: Likewise.
36508         * lib/unistr/u16-strchr.c: Likewise.
36509         * lib/unistr/u16-strcmp.c: Likewise.
36510         * lib/unistr/u16-strcpy.c: Likewise.
36511         * lib/unistr/u16-strcspn.c: Likewise.
36512         * lib/unistr/u16-strdup.c: Likewise.
36513         * lib/unistr/u16-strlen.c: Likewise.
36514         * lib/unistr/u16-strmblen.c: Likewise.
36515         * lib/unistr/u16-strmbtouc.c: Likewise.
36516         * lib/unistr/u16-strncat.c: Likewise.
36517         * lib/unistr/u16-strncmp.c: Likewise.
36518         * lib/unistr/u16-strncpy.c: Likewise.
36519         * lib/unistr/u16-strnlen.c: Likewise.
36520         * lib/unistr/u16-strpbrk.c: Likewise.
36521         * lib/unistr/u16-strrchr.c: Likewise.
36522         * lib/unistr/u16-strspn.c: Likewise.
36523         * lib/unistr/u16-strstr.c: Likewise.
36524         * lib/unistr/u16-strtok.c: Likewise.
36525         * lib/unistr/u16-to-u32.c: Likewise.
36526         * lib/unistr/u16-to-u8.c: Likewise.
36527         * lib/unistr/u16-uctomb-aux.c: Likewise.
36528         * lib/unistr/u16-uctomb.c: Likewise.
36529         * lib/unistr/u32-check.c: Likewise.
36530         * lib/unistr/u32-chr.c: Likewise.
36531         * lib/unistr/u32-cmp.c: Likewise.
36532         * lib/unistr/u32-cpy-alloc.c: Likewise.
36533         * lib/unistr/u32-cpy.c: Likewise.
36534         * lib/unistr/u32-endswith.c: Likewise.
36535         * lib/unistr/u32-mblen.c: Likewise.
36536         * lib/unistr/u32-mbsnlen.c: Likewise.
36537         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
36538         * lib/unistr/u32-mbtouc.c: Likewise.
36539         * lib/unistr/u32-mbtoucr.c: Likewise.
36540         * lib/unistr/u32-move.c: Likewise.
36541         * lib/unistr/u32-next.c: Likewise.
36542         * lib/unistr/u32-prev.c: Likewise.
36543         * lib/unistr/u32-set.c: Likewise.
36544         * lib/unistr/u32-startswith.c: Likewise.
36545         * lib/unistr/u32-stpcpy.c: Likewise.
36546         * lib/unistr/u32-stpncpy.c: Likewise.
36547         * lib/unistr/u32-strcat.c: Likewise.
36548         * lib/unistr/u32-strchr.c: Likewise.
36549         * lib/unistr/u32-strcmp.c: Likewise.
36550         * lib/unistr/u32-strcpy.c: Likewise.
36551         * lib/unistr/u32-strcspn.c: Likewise.
36552         * lib/unistr/u32-strdup.c: Likewise.
36553         * lib/unistr/u32-strlen.c: Likewise.
36554         * lib/unistr/u32-strmblen.c: Likewise.
36555         * lib/unistr/u32-strmbtouc.c: Likewise.
36556         * lib/unistr/u32-strncat.c: Likewise.
36557         * lib/unistr/u32-strncmp.c: Likewise.
36558         * lib/unistr/u32-strncpy.c: Likewise.
36559         * lib/unistr/u32-strnlen.c: Likewise.
36560         * lib/unistr/u32-strpbrk.c: Likewise.
36561         * lib/unistr/u32-strrchr.c: Likewise.
36562         * lib/unistr/u32-strspn.c: Likewise.
36563         * lib/unistr/u32-strstr.c: Likewise.
36564         * lib/unistr/u32-strtok.c: Likewise.
36565         * lib/unistr/u32-to-u16.c: Likewise.
36566         * lib/unistr/u32-to-u8.c: Likewise.
36567         * lib/unistr/u32-uctomb.c: Likewise.
36568         * lib/unistr/u8-check.c: Likewise.
36569         * lib/unistr/u8-chr.c: Likewise.
36570         * lib/unistr/u8-cmp.c: Likewise.
36571         * lib/unistr/u8-cpy-alloc.c: Likewise.
36572         * lib/unistr/u8-cpy.c: Likewise.
36573         * lib/unistr/u8-endswith.c: Likewise.
36574         * lib/unistr/u8-mblen.c: Likewise.
36575         * lib/unistr/u8-mbsnlen.c: Likewise.
36576         * lib/unistr/u8-mbtouc-aux.c: Likewise.
36577         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
36578         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
36579         * lib/unistr/u8-mbtouc.c: Likewise.
36580         * lib/unistr/u8-mbtoucr.c: Likewise.
36581         * lib/unistr/u8-move.c: Likewise.
36582         * lib/unistr/u8-next.c: Likewise.
36583         * lib/unistr/u8-prev.c: Likewise.
36584         * lib/unistr/u8-set.c: Likewise.
36585         * lib/unistr/u8-startswith.c: Likewise.
36586         * lib/unistr/u8-stpcpy.c: Likewise.
36587         * lib/unistr/u8-stpncpy.c: Likewise.
36588         * lib/unistr/u8-strcat.c: Likewise.
36589         * lib/unistr/u8-strchr.c: Likewise.
36590         * lib/unistr/u8-strcmp.c: Likewise.
36591         * lib/unistr/u8-strcpy.c: Likewise.
36592         * lib/unistr/u8-strcspn.c: Likewise.
36593         * lib/unistr/u8-strdup.c: Likewise.
36594         * lib/unistr/u8-strlen.c: Likewise.
36595         * lib/unistr/u8-strmblen.c: Likewise.
36596         * lib/unistr/u8-strmbtouc.c: Likewise.
36597         * lib/unistr/u8-strncat.c: Likewise.
36598         * lib/unistr/u8-strncmp.c: Likewise.
36599         * lib/unistr/u8-strncpy.c: Likewise.
36600         * lib/unistr/u8-strnlen.c: Likewise.
36601         * lib/unistr/u8-strpbrk.c: Likewise.
36602         * lib/unistr/u8-strrchr.c: Likewise.
36603         * lib/unistr/u8-strspn.c: Likewise.
36604         * lib/unistr/u8-strstr.c: Likewise.
36605         * lib/unistr/u8-strtok.c: Likewise.
36606         * lib/unistr/u8-to-u16.c: Likewise.
36607         * lib/unistr/u8-to-u32.c: Likewise.
36608         * lib/unistr/u8-uctomb-aux.c: Likewise.
36609         * lib/unistr/u8-uctomb.c: Likewise.
36610         * lib/unitypes.h: Likewise.
36611         * lib/uniwidth.h: Likewise.
36612         * lib/uniwidth/cjk.h: Likewise.
36613         * lib/uniwidth/u16-strwidth.c: Likewise.
36614         * lib/uniwidth/u16-width.c: Likewise.
36615         * lib/uniwidth/u32-strwidth.c: Likewise.
36616         * lib/uniwidth/u32-width.c: Likewise.
36617         * lib/uniwidth/u8-strwidth.c: Likewise.
36618         * lib/uniwidth/u8-width.c: Likewise.
36619         * lib/uniwidth/width.c: Likewise.
36620
36621 2007-10-07  Bruno Haible  <bruno@clisp.org>
36622
36623         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
36624         The file is still under LGPL (see modules/inttypes).
36625
36626 2007-10-06  Bruno Haible  <bruno@clisp.org>
36627
36628         * modules/trunc (Dependencies): Add 'extensions'.
36629         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
36630         Reported by Ben Pfaff <blp@gnu.org>.
36631
36632 2007-10-06  Bruno Haible  <bruno@clisp.org>
36633
36634         * modules/freopen-tests: New file.
36635         * tests/test-freopen.c: New file.
36636
36637         * modules/fopen-tests: New file.
36638         * tests/test-fopen.c: New file.
36639
36640         * modules/fopen: New file.
36641         * lib/fopen.c: New file.
36642         * m4/fopen.m4: New file.
36643         * modules/freopen: New file.
36644         * lib/freopen.c: New file.
36645         * m4/freopen.m4: New file.
36646         * lib/stdio.in.h (fopen, freopen): New declarations.
36647         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
36648         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
36649         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
36650         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
36651         * doc/functions/fopen.texi: Mention the 'fopen' module.
36652         * doc/functions/freopen.texi: Mention the 'freopen' module.
36653
36654 2007-10-06  Bruno Haible  <bruno@clisp.org>
36655
36656         * modules/open-tests: New file.
36657         * tests/test-open.c: New file.
36658
36659         * modules/open: New file.
36660         * lib/open.c: New file.
36661         * m4/open.m4: New file.
36662         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
36663         lib/open.c does.
36664         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
36665         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
36666         macros.
36667         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
36668         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
36669         REPLACE_OPEN.
36670         * doc/functions/open.texi: Mention the 'open' module.
36671
36672 2007-10-04  Bruno Haible  <bruno@clisp.org>
36673
36674         * modules/ceill-tests: New file.
36675         * tests/test-ceill.c: New file.
36676
36677         * modules/ceill: New file.
36678         * lib/ceill.c: Replace entire file.
36679         * m4/ceill.m4: New file.
36680         * lib/math.in.h (ceill): Replace declaration.
36681         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
36682         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
36683         * doc/functions/ceill.texi: Mention the 'ceill' module.
36684         * modules/mathl (Files): Remove lib/ceill.c.
36685         (Depends-on): Add ceill.
36686
36687 2007-10-04  Bruno Haible  <bruno@clisp.org>
36688
36689         * modules/ceilf-tests: New file.
36690         * tests/test-ceilf.c: New file.
36691
36692         * modules/ceilf: New file.
36693         * lib/ceil.c: New file.
36694         * lib/ceilf.c: New file.
36695         * m4/ceilf.m4: New file.
36696         * lib/math.in.h (ceilf): New declaration.
36697         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
36698         HAVE_DECL_CEILF.
36699         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
36700         HAVE_DECL_CEILF.
36701         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
36702
36703 2007-10-04  Bruno Haible  <bruno@clisp.org>
36704
36705         * modules/floorl-tests: New file.
36706         * tests/test-floorl.c: New file.
36707
36708         * modules/floorl: New file.
36709         * lib/floorl.c: Replace entire file.
36710         * m4/floorl.m4: New file.
36711         * lib/math.in.h (floorl): Replace declaration.
36712         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
36713         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
36714         * doc/functions/floorl.texi: Mention the 'floorl' module.
36715         * modules/mathl (Files): Remove lib/floorl.c.
36716         (Depends-on): Add floorl.
36717
36718 2007-10-04  Bruno Haible  <bruno@clisp.org>
36719
36720         * modules/floorf-tests: New file.
36721         * tests/test-floorf.c: New file.
36722
36723         * modules/floorf: New file.
36724         * lib/floor.c: New file.
36725         * lib/floorf.c: New file.
36726         * m4/floorf.m4: New file.
36727         * lib/math.in.h (floorf): New declaration.
36728         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
36729         HAVE_DECL_FLOORF.
36730         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
36731         HAVE_DECL_FLOORF.
36732         * doc/functions/floorf.texi: Mention the 'floorf' module.
36733
36734 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
36735             Bruno Haible  <bruno@clisp.org>
36736
36737         Advertise for the Git server instead of the CVS server.
36738         * doc/gnulib-intro.texi (Steady Development): Mention the Git
36739         repository instead of the CVS one.
36740         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
36741         about all VCS systems generically.
36742         * doc/gnulib.texi (Introduction): Capitalize `Git'.
36743
36744 2007-10-04  Bruno Haible  <bruno@clisp.org>
36745
36746         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
36747         means.
36748         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
36749
36750 2007-10-04  Bruno Haible  <bruno@clisp.org>
36751
36752         * modules/truncl-tests: New file.
36753         * tests/test-truncl.c: New file.
36754
36755         * modules/truncl: New file.
36756         * lib/truncl.c: New file.
36757         * m4/truncl.m4: New file.
36758         * lib/math.in.h (truncl): New declaration.
36759         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
36760         HAVE_DECL_TRUNCL.
36761         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
36762         HAVE_DECL_TRUNCL.
36763         * doc/functions/truncl.texi: Mention the 'truncl' module.
36764
36765 2007-10-04  Bruno Haible  <bruno@clisp.org>
36766
36767         * modules/truncf-tests: New file.
36768         * tests/test-truncf.c: New file.
36769
36770         * modules/truncf: New file.
36771         * lib/trunc.c: Make paramerizable through USE_* macros.
36772         * lib/truncf.c: New file.
36773         * m4/truncf.m4: New file.
36774         * lib/math.in.h (truncf): New declaration.
36775         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
36776         HAVE_DECL_TRUNCF.
36777         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
36778         HAVE_DECL_TRUNCF.
36779         * doc/functions/truncf.texi: Mention the 'truncf' module.
36780
36781 2007-10-03  Bruno Haible  <bruno@clisp.org>
36782
36783         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
36784         augmentation also for tests modules.
36785         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
36786         * modules/atexit-tests (Makefile.am): Likewise.
36787         * modules/binary-io-tests (Makefile.am): Likewise.
36788         * modules/c-strcase-tests (Makefile.am): Likewise.
36789         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
36790         * modules/canonicalize-tests (Makefile.am): Likewise.
36791         * modules/closein-tests (Makefile.am): Likewise.
36792         * modules/fprintf-posix-tests (Makefile.am): Likewise.
36793         * modules/freadahead-tests (Makefile.am): Likewise.
36794         * modules/fseek-tests (Makefile.am): Likewise.
36795         * modules/fseeko-tests (Makefile.am): Likewise.
36796         * modules/ftell-tests (Makefile.am): Likewise.
36797         * modules/ftello-tests (Makefile.am): Likewise.
36798         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
36799         * modules/isnanl-tests (Makefile.am): Likewise.
36800         * modules/lseek-tests (Makefile.am): Likewise.
36801         * modules/mbscasecmp-tests (Makefile.am): Likewise.
36802         * modules/mbscasestr-tests (Makefile.am): Likewise.
36803         * modules/mbschr-tests (Makefile.am): Likewise.
36804         * modules/mbscspn-tests (Makefile.am): Likewise.
36805         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
36806         * modules/mbspbrk-tests (Makefile.am): Likewise.
36807         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
36808         * modules/mbsrchr-tests (Makefile.am): Likewise.
36809         * modules/mbsspn-tests (Makefile.am): Likewise.
36810         * modules/mbsstr-tests (Makefile.am): Likewise.
36811         * modules/printf-posix-tests (Makefile.am): Likewise.
36812         * modules/snprintf-posix-tests (Makefile.am): Likewise.
36813         * modules/sprintf-posix-tests (Makefile.am): Likewise.
36814         * modules/tsearch-tests (Makefile.am): Likewise.
36815         * modules/uniname/uniname-tests (Makefile.am): Likewise.
36816         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
36817         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
36818         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
36819         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
36820         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
36821         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
36822         * modules/vprintf-posix-tests (Makefile.am): Likewise.
36823         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
36824         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
36825         * modules/xstrtoimax-tests (Makefile.am): Likewise.
36826         * modules/xstrtol-tests (Makefile.am): Likewise.
36827         * modules/xstrtoumax-tests (Makefile.am): Likewise.
36828         * modules/yesno-tests (Makefile.am): Likewise.
36829
36830 2007-10-03  Bruno Haible  <bruno@clisp.org>
36831
36832         * modules/trunc-tests: New file.
36833         * tests/test-trunc.c: New file.
36834
36835         * modules/trunc: New file.
36836         * lib/trunc.c: New file.
36837         * m4/trunc.m4: New file.
36838         * lib/math.in.h (trunc): New declaration.
36839         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
36840         HAVE_DECL_TRUNC.
36841         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
36842         HAVE_DECL_TRUNC.
36843         * doc/functions/trunc.texi: Mention the 'trunc' module.
36844
36845 2007-10-03  Bruno Haible  <bruno@clisp.org>
36846
36847         * tests/test-fpending.c: New file, mostly copied
36848         from coreutils/lib/t-fpending.c.
36849         * modules/fpending-tests: New file.
36850
36851 2007-10-03  Bruno Haible  <bruno@clisp.org>
36852
36853         Port the stdio extensions to QNX (untested).
36854         * lib/fseterr.c (fseterr): Add support for QNX.
36855         * lib/fbufmode.c (fbufmode): Likewise.
36856         * lib/freadable.c (freadable): Likewise.
36857         * lib/fwritable.c (fwritable): Likewise.
36858         * lib/freading.c (freading): Likewise.
36859         * lib/fwriting.c (fwriting): Likewise.
36860         * lib/freadahead.c (freadahed): Likewise.
36861         * lib/fpurge.c (fpurge): Likewise.
36862         * lib/fseeko.c (rpl_fseeko): Likewise.
36863
36864 2007-10-03  Bruno Haible  <bruno@clisp.org>
36865             Jim Meyering  <jim@meyering.net>
36866             Eric Blake  <ebb9@byu.net>
36867
36868         * doc/relocatable.texi: Use @command instead of @program.
36869
36870 2007-10-02  Jim Meyering  <jim@meyering.net>
36871
36872         Perform one more "_.h" -> ".in.h" substitution.
36873         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
36874         instead of unistd_.h here, too.
36875
36876 2007-10-01  Bruno Haible  <bruno@clisp.org>
36877
36878         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
36879         Needed for the alloca-opt module.
36880
36881 2007-09-30  Bruno Haible  <bruno@clisp.org>
36882
36883         * lib/alloca.in.h: Renamed from lib/alloca_.h.
36884         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
36885         alloca_.h.
36886         * lib/argz.in.h: Renamed from lib/argz_.h.
36887         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
36888         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
36889         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
36890         byteswap_.h.
36891         * lib/dirent.in.h: Renamed from lib/dirent_.h.
36892         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
36893         dirent_.h.
36894         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
36895         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
36896         fcntl_.h.
36897         * lib/float.in.h: Renamed from lib/float_.h.
36898         * modules/float (Files, Makefile.am): Use float.in.h instead of
36899         float_.h.
36900         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
36901         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
36902         fnmatch_.h.
36903         * lib/getopt.in.h: Renamed from lib/getopt_.h.
36904         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
36905         getopt_.h.
36906         * lib/glob.in.h: Renamed from lib/glob_.h.
36907         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
36908         * lib/iconv.in.h: Renamed from lib/iconv_.h.
36909         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
36910         iconv_.h.
36911         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
36912         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
36913         inttypes_.h.
36914         * lib/locale.in.h: Renamed from lib/locale_.h.
36915         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
36916         locale_.h.
36917         * lib/math.in.h: Renamed from lib/math_.h.
36918         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
36919         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
36920         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
36921         of netinet_in_.h. Add dependency.
36922         * lib/poll.in.h: Renamed from lib/poll_.h.
36923         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
36924         * lib/search.in.h: Renamed from lib/search_.h.
36925         * modules/search (Files, Makefile.am): Use search.in.h instead of
36926         search_.h.
36927         * lib/signal.in.h: Renamed from lib/signal_.h.
36928         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
36929         _signal.h.
36930         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
36931         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
36932         stdbool_.h.
36933         * lib/stdint.in.h: Renamed from lib/stdint_.h.
36934         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
36935         stdint_.h.
36936         * lib/stdio.in.h: Renamed from lib/stdio_.h.
36937         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
36938         stdio_.h.
36939         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
36940         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
36941         stdlib_.h.
36942         * lib/string.in.h: Renamed from lib/string_.h.
36943         * modules/string (Files, Makefile.am): Use string.in.h instead of
36944         string_.h.
36945         * doc/gnulib-tool.texi (Initial import): Update.
36946         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
36947         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
36948         of sys_select_.h. Add dependency.
36949         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
36950         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
36951         of sys_socket_.h.
36952         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
36953         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
36954         sys_stat_.h.
36955         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
36956         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
36957         sys_time_.h.
36958         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
36959         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
36960         sysexits_.h.
36961         * lib/time.in.h: Renamed from lib/time_.h.
36962         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
36963         * lib/unistd.in.h: Renamed from lib/unistd_.h.
36964         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
36965         unistd_.h.
36966         * lib/wchar.in.h: Renamed from lib/wchar_.h.
36967         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
36968         wchar_.h.
36969         * lib/wctype.in.h: Renamed from lib/wctype_.h.
36970         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
36971         wctype_.h.
36972         * build-aux/bootstrap (slurp): Update.
36973         * lib/.cppi-disable: Update.
36974
36975 2007-09-30  Bruno Haible  <bruno@clisp.org>
36976
36977         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
36978         Needed on BeOS.
36979
36980 2007-09-30  Bruno Haible  <bruno@clisp.org>
36981
36982         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
36983
36984 2007-09-29  Bruno Haible  <bruno@clisp.org>
36985
36986         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
36987
36988 2007-09-29  Bruno Haible  <bruno@clisp.org>
36989
36990         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
36991         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
36992         * build-aux/install-reloc: Compile also areadlink.c.
36993         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
36994
36995 2007-09-29  Bruno Haible  <bruno@clisp.org>
36996
36997         * gnulib-tool (func_emit_initmacro_done): Indentation.
36998
36999 2007-09-29  Bruno Haible  <bruno@clisp.org>
37000
37001         * README: Add CVS checkout update instructions.
37002         Info from Bob Proulx <bob@proulx.com>.
37003
37004 2007-09-28  Eric Blake  <ebb9@byu.net>
37005
37006         Provide move-if-change.
37007         * build-aux/move-if-change: New file, based on best practice
37008         rather than any canonical upstream location.
37009
37010 2007-09-28  Jim Meyering  <jim@meyering.net>
37011
37012         Fix canonicalize loop-detection corner case.
37013         Do not attempt to stat the symlink values stored via seen_triple.
37014         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
37015         on linux-2.6.18, (but not 2.6.22).
37016         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
37017         triple_compare.  The former compares dev,ino,filename, while the latter
37018         would actually stat dirname(filename) when dev and ino were equal.
37019         * lib/hash-triple.c: Install <string.h>.
37020         (STREQ): Define.
37021         (triple_compare_ino_str): New function.
37022         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
37023
37024 2007-09-28  Eric Blake  <ebb9@byu.net>
37025
37026         Enforce that AC_REPLACE_FUNCS files exist.
37027         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
37028         override check for typos.
37029
37030         Fix test-closein on Solaris 10.
37031         * tests/test-closein.c (main): Don't assume stdin can be inherited
37032         closed on all systems.
37033         * tests/test-closein.sh: Likewise.
37034         Reported by Piotr Tarnowski.
37035
37036 2007-09-28  Jim Meyering  <jim@meyering.net>
37037
37038         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
37039
37040 2007-09-27  Jim Meyering  <jim@meyering.net>
37041
37042         canonicalize: Avoid a false-positive cycle failure.
37043         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
37044         Sort.  Remove cycle-check.
37045         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
37046         not cycle-check.h.
37047         (seen_triple): New function.
37048         (canonicalize_filename_mode): Use it instead of cycle-check.
37049         * tests/test-canonicalize.c: Add a test for this bug.
37050         * tests/test-canonicalize.sh: Set up and run the test.
37051
37052         New module, file-set, from coreutils.
37053         * modules/file-set: Define it.
37054         * lib/file-set.c, lib/file-set.h: Implement.
37055
37056         New module, hash-triple, from coreutils.
37057         * modules/hash-triple: Define it.
37058         * lib/hash-triple.c, lib/hash-triple.h: Implement.
37059
37060 2007-09-25  Eric Blake  <ebb9@byu.net>
37061
37062         Fix strerror on Interix.
37063         * lib/string_.h (strerror): Declare replacement.
37064         * doc/functions/strerror.texi (strerror): Document the Interix
37065         shortcoming.
37066         * modules/string (Makefile.am): Support new hooks.
37067         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
37068         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
37069         gl_FUNC_STRERROR_SEPARATE.
37070         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
37071         * lib/strerror.c (rpl_strerror): Provide replacement.
37072         * modules/strerror (Depends-on): Add string.
37073         (configure.ac): Detect use of module.
37074         * tests/test-strerror.c: New file.
37075         * modules/strerror-tests: New test module.
37076         * modules/argp (Depends-on): Add strerror.
37077         * modules/error (Depends-on): Likewise.
37078         Reported by Martin Koeppe.
37079
37080 2007-09-24  Bruno Haible  <bruno@clisp.org>
37081
37082         * README: Update git instructions.
37083
37084 2007-09-24  Eric Blake  <ebb9@byu.net>
37085
37086         Revert fpending breakage from 2007-09-08.
37087         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
37088         __fpending.c.
37089
37090 2007-09-24  Jim Meyering  <jim@meyering.net>
37091
37092         filenamecat.c: Add a test.
37093         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
37094         showing how the function works when DIR is the empty string.
37095
37096 2007-09-21  Simon Josefsson  <simon@josefsson.org>
37097
37098         * tests/test-canonicalize.sh: Turn on executable bit.
37099
37100 2007-09-19  Eric Blake  <ebb9@byu.net>
37101
37102         * README: Update CVS instructions.
37103
37104 2007-09-18  Bruno Haible  <bruno@clisp.org>
37105
37106         * modules/areadlink: New file.
37107         * lib/areadlink.h (areadlink): New declaration.
37108         * lib/areadlink.c: New file, based on lib/xreadlink.c.
37109
37110 2007-09-17  Jim Meyering  <jim@meyering.net>
37111
37112         * lib/savewd.c (ESTALE) [!defined]: Define.
37113         Reported to be required on Interix by Martin Koeppe.
37114
37115 2007-09-17  Bruno Haible  <bruno@clisp.org>
37116
37117         * gnulib-tool (func_version): Use $version.
37118
37119 2007-09-16  Bruno Haible  <bruno@clisp.org>
37120
37121         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
37122         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
37123         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
37124         Reported by Greg Schafer <gschafer@zip.com.au>.
37125
37126 2007-09-15  Bruno Haible  <bruno@clisp.org>
37127
37128         * gnulib-tool (sed): Try a little harder to make bash understand the
37129         alias.
37130         Reported by Bruce Korb <bruce.korb@gmail.com>.
37131
37132 2007-09-13  Eric Blake  <ebb9@byu.net>
37133
37134         * ChangeLog: Remove conflict markers.
37135
37136 2007-09-13  Simon Josefsson  <simon@josefsson.org>
37137
37138         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
37139         Reported by Bruno Haible <bruno@clisp.org>.
37140
37141 2007-09-12  Bruno Haible  <bruno@clisp.org>
37142
37143         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
37144         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
37145         is not defined.
37146
37147 2007-09-12  Eric Blake  <ebb9@byu.net>
37148
37149         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
37150         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
37151         Autoconf definition.
37152         * modules/euidaccess (Depends-on): Add extensions, for
37153         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
37154         * modules/fnmatch (Depends-on): Likewise.
37155         * modules/getaddrinfo (Depends-on): Likewise.
37156         * modules/getdelim (Depends-on): Likewise.
37157         * modules/getline (Depends-on): Likewise.
37158         * modules/getsubopt (Depends-on): Likewise.
37159         * modules/gettext (Depends-on): Likewise.
37160         * modules/group-member (Depends-on): Likewise.
37161         * modules/mbchar (Depends-on): Likewise.
37162         * modules/memmem (Depends-on): Likewise.
37163         * modules/mempcpy (Depends-on): Likewise.
37164         * modules/memrchr (Depends-on): Likewise.
37165         * modules/pagealign_alloc (Depends-on): Likewise.
37166         * modules/readutmp (Depends-on): Likewise.
37167         * modules/stpcpy (Depends-on): Likewise.
37168         * modules/stpncpy (Depends-on): Likewise.
37169         * modules/strchrnul (Depends-on): Likewise.
37170         * modules/strndup (Depends-on): Likewise.
37171         * modules/strsep (Depends-on): Likewise.
37172         * modules/strverscmp (Depends-on): Likewise.
37173         * modules/vasprintf (Depends-on): Likewise.
37174         * modules/wcwidth (Depends-on): Likewise.
37175         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
37176         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
37177         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
37178         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
37179         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
37180         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
37181         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
37182         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
37183         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
37184         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
37185         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
37186         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
37187         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
37188         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
37189         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
37190         * m4/readutmp.m4 (gl_READUTMP): Likewise.
37191         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
37192         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
37193         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
37194         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
37195         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
37196         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
37197         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
37198         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
37199         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
37200         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
37201         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
37202         so that lock.m4 can be used in gettext without extensions module.
37203
37204 2007-09-11  Bruno Haible  <bruno@clisp.org>
37205
37206         * m4/isc-posix.m4: Remove file.
37207         Suggested by Eric Blake.
37208
37209 2007-09-11  Eric Blake  <ebb9@byu.net>
37210
37211         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
37212
37213 2007-09-10  Bruno Haible  <bruno@clisp.org>
37214
37215         * posix-modules: Fix typo in error message.
37216         Reported by Matt <mkraai@beckman.com>.
37217
37218 2007-09-09  Bruno Haible  <bruno@clisp.org>
37219
37220         * doc/functions/getdelim.texi: Update list of platforms lacking the
37221         function.
37222         * doc/functions/getline.texi: Likewise.
37223
37224 2007-09-09  Jim Meyering  <jim@meyering.net>
37225
37226         * lib/hash.c (hash_initialize): Detect calloc failure.
37227         Reported by Bruno Haible.
37228
37229 2007-09-09  Bruno Haible  <bruno@clisp.org>
37230
37231         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
37232         malloc or realloc fails.
37233
37234 2007-09-09  Bruno Haible  <bruno@clisp.org>
37235
37236         * modules/getcwd (Depends-on): Add malloc-posix.
37237         * modules/glob (Depends-on): Likewise.
37238         * modules/putenv (Depends-on): Likewise.
37239         * modules/strdup (Depends-on): Likewise.
37240         * modules/getdelim (Depends-on): Add realloc-posix.
37241         * modules/read-file (Depends-on): Likewise.
37242
37243 2007-09-09  Bruno Haible  <bruno@clisp.org>
37244
37245         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
37246         (gl_FUNC_MALLOC_POSIX): Require it.
37247         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
37248         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
37249         * modules/realloc (Files): Add m4/malloc.m4.
37250         * modules/calloc (Files): Likewise.
37251
37252 2007-09-09  Bruno Haible  <bruno@clisp.org>
37253
37254         * modules/malloc-posix: New file.
37255         * modules/malloc (Depends-on): Add malloc-posix.
37256         * lib/malloc.c: Include errno.h.
37257         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
37258         and a POSIX-compatible malloc into a single function. Set ENOMEM
37259         when returning NULL.
37260         * m4/malloc.m4: New file.
37261         * doc/functions/malloc.texi: Mention the malloc-posix module.
37262         * lib/stdlib_.h (malloc): New declaration.
37263         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
37264         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
37265         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
37266         and HAVE_MALLOC_POSIX.
37267
37268 2007-09-09  Bruno Haible  <bruno@clisp.org>
37269
37270         * modules/realloc-posix: New file.
37271         * modules/realloc (Depends-on): Add realloc-posix.
37272         * lib/realloc.c: Include errno.h.
37273         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
37274         and a POSIX-compatible realloc into a single function. Set ENOMEM
37275         when returning NULL.
37276         * m4/realloc.m4: New file.
37277         * doc/functions/realloc.texi: Mention the realloc-posix module.
37278         * lib/stdlib_.h (realloc): New declaration.
37279         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
37280         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
37281         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
37282         and HAVE_REALLOC_POSIX.
37283
37284 2007-09-09  Bruno Haible  <bruno@clisp.org>
37285
37286         * modules/calloc-posix: New file.
37287         * modules/calloc (Depends-on): Add calloc-posix.
37288         * lib/calloc.c: Include errno.h.
37289         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
37290         and a POSIX-compatible calloc into a single function. Set ENOMEM
37291         when returning NULL.
37292         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
37293         * doc/functions/calloc.texi: Mention the calloc-posix module.
37294         * lib/stdlib_.h (calloc): New declaration.
37295         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
37296         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
37297         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
37298         and HAVE_CALLOC_POSIX.
37299
37300 2007-09-09  Bruno Haible  <bruno@clisp.org>
37301
37302         Allow for modules to show an arbitrary notice.
37303         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
37304         * gnulib-tool: New option --extract-notice.
37305         (func_usage): Document it.
37306         (sed_extract_prog): Update.
37307         (func_get_notice): New function.
37308         (func_modules_notice): New function.
37309         (func_import, func_create_testdir): Invoke it.
37310         Suggested by Jim Meyering.
37311
37312 2007-09-09  Bruno Haible  <bruno@clisp.org>
37313
37314         * gnulib-tool: New options --verbose, --quiet.
37315         (func_usage): Document them.
37316         (verbose): New variable.
37317         (func_execute_command): New function.
37318         (func_import): Don't show the module list and the file list if
37319         $verbose < 0.
37320         (func_create_testdir): Likewise. Use func_execute_command.
37321         (func_create_megatestdir): Use func_execute_command.
37322
37323 2007-09-08  Bruno Haible  <bruno@clisp.org>
37324
37325         * gnulib-tool (func_import): Prefer rsync over wget when available,
37326         for fetching the PO files.
37327
37328 2007-09-08  Bruno Haible  <bruno@clisp.org>
37329
37330         * posix-modules: New file. Portions copied from gnulib-tool.
37331         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
37332
37333 2007-09-08  Jim Meyering  <jim@meyering.net>
37334
37335         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
37336         * lib/fpending.h: Rename from __fpending.h.
37337         * lib/fpending.c: Rename from __fpending.c.
37338         Include "fpending.h", not "__fpending.h".
37339         * lib/__fpending.h, lib/__fpending.c: Remove files.
37340         * modules/fpending (Files): Reflect new file names.
37341         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
37342
37343 2007-09-08  Bruno Haible  <bruno@clisp.org>
37344
37345         * m4/inttypes-h.m4: Remove stub file.
37346
37347 2007-09-07  Simon Josefsson  <simon@josefsson.org>
37348
37349         * doc/headers/stdint.texi: Discuss #include_next issue.
37350
37351 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
37352
37353         * build-aux/bootstrap: Remove obsolete comment about wget --help.
37354
37355 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37356
37357         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
37358         in variable name.
37359
37360 2007-09-03  Jim Meyering  <jim@meyering.net>
37361
37362         New module: git-version-gen.
37363         * modules/git-version-gen: New file.
37364
37365         Import changes from coreutils for bootstrap script.
37366
37367         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
37368
37369         bootstrap: uses rsync to download the .po files
37370         * build-aux/bootstrap (po_download_command_format): New global.
37371         (download_po_files): Use rsync.
37372         (update_po_files): Don't remove .po files after download,
37373         so future rsync runs can take advantage of the copies.
37374
37375         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
37376
37377         Solve the unnecessary-.po-file-regeneration problem once and for all.
37378         * build-aux/bootstrap (download_po_files): New function, renamed from
37379         get_translations.  Now, downloads, but doesn't update LINGUAS.
37380         (update_po_files): New function.
37381
37382         bootstrap: Ignore more.
37383         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
37384         uniwidth to e.g., lib/.gitignore.
37385         (slurp): Handle the sys_stat_.h -> sys mapping, too.
37386
37387         * build-aux/bootstrap: New setting: vc_ignore.
37388         (insert_sorted_if_absent): Create $file if absent.
37389         Adapt to new, possibly empty, list: $vc_ignore.
37390
37391         bootstrap: generate more ignorable names
37392         * build-aux/bootstrap (slurp): When generating ignorable names,
37393         also map .sin to .sed, .gperf to .c, and .y to .c.
37394
37395 2007-09-03  Jim Meyering  <jim@meyering.net>
37396
37397         * build-aux/git-version-gen: New file, from coreutils.  For details, see
37398         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
37399
37400 2007-09-02  Bruno Haible  <bruno@clisp.org>
37401
37402         Fix mis-recognition of 'mcs' on QNX 6.
37403         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
37404         output contains the string "Mono".
37405         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
37406         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
37407
37408 2007-09-01  Bruno Haible  <bruno@clisp.org>
37409
37410         Fix collision between uniwidth/* and linebreak modules.
37411         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
37412         u32_width): Remove declarations.
37413         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
37414         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
37415         streq3, streq2, streq1, streq0): Remove functions.
37416         (STREQ): Remove macro.
37417         (is_cjk_encoding): Remove function.
37418         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
37419         (uc_width, u8_width, u16_width, u32_width): Remove functions.
37420         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
37421         * NEWS: Document the change.
37422
37423 2007-09-01  Bruno Haible  <bruno@clisp.org>
37424
37425         * lib/streq.h: Add double-inclusion guard.
37426
37427 2007-09-01  Karl Berry  <karl@gnu.org>
37428
37429         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
37430
37431 2007-08-28  Jim Meyering  <jim@meyering.net>
37432
37433         Rename mreadlink_with_size to areadlink_with_size.
37434         * NEWS: Document the change.
37435         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
37436         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
37437         * lib/mreadlink.h: Rename this to...
37438         * lib/areadlink.h: ...this.
37439         * modules/mreadlink-with-size: Rename this to...
37440         * modules/areadlink-with-size: ...this.
37441         * lib/canonicalize.c: Reflect the renaming.
37442         * modules/canonicalize: Likewise.
37443
37444 2007-08-26  Bruno Haible  <bruno@clisp.org>
37445
37446         * gnulib-tool (func_import): When deciding which files to remove,
37447         consider also dangling symbolic links.
37448         Reported by Eric Blake.
37449
37450 2007-08-26  Bruno Haible  <bruno@clisp.org>
37451
37452         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
37453
37454 2007-08-23  Simon Josefsson  <simon@josefsson.org>
37455
37456         * lib/readline.c: Don't include getline.h, the prototype is now
37457         found in stdio.h.
37458
37459 2007-08-23  Jim Meyering  <jim@meyering.net>
37460
37461         Getdelim touchup.
37462         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
37463         around the funlockfile call, since funlockfile never sets errno.
37464         Don't set errno upon failed realloc.
37465
37466 2007-08-22  Eric Blake  <ebb9@byu.net>
37467
37468         Getline touchups.
37469         * lib/getdelim.c (getdelim): Revert regression that required *n to
37470         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
37471         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
37472         getdelim, rather than whether implementation is missing.
37473         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
37474         * lib/stdio_.h (getline): Also declare if replacement is
37475         required.
37476         * doc/functions/getdelim.texi: New file.
37477         * doc/functions/getline.texi: Likewise.
37478         * doc/gnulib.texi (Function Substitutes): Add new files.
37479         Reported by Bruno Haible.
37480
37481 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
37482
37483         * users.txt: Add Guile.
37484
37485 2007-08-22  Eric Blake  <ebb9@byu.net>
37486
37487         * tests/test-getdelim.c (main): Use remove, not unlink.
37488         * tests/test-getline.c (main): Likewise.
37489
37490         Move getline and getdelim into stdio.h, per POSIX 200x.
37491         * modules/getline (Files): Remove getline.h.
37492         (Depends-on): Add stdio.
37493         (configure.ac): Add module indicator.
37494         * modules/getdelim (Files): Remove getdelim.h.
37495         (Depends-on): Add stdio.
37496         (configure.ac): Add module indicator.
37497         * modules/stdio (Makefile.am): Work with new indicators.
37498         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
37499         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
37500         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
37501         * lib/getdelim.h: Delete.
37502         * lib/getline.h: Delete.
37503         * lib/stdio_.h (getdelim, getline): Declare.
37504         * modules/getdelim-tests: New module.
37505         * modules/getline-tests: Likewise.
37506         * tests/test-getdelim.c: New file.
37507         * tests/test-getline.c: Likewise.
37508         * NEWS: Document the change.
37509         * lib/getline.c: Update choice of header.
37510         * lib/csharpcomp.c: Likewise.
37511         * lib/getpass.c: Likewise.
37512         * lib/javacomp.c: Likewise.
37513         * lib/javaversion.c: Likewise.
37514         * lib/yesno.c: Likewise.
37515         * lib/getdelim.c: Likewise.
37516         (getdelim): Set errno on failure, and avoid memory leak.
37517
37518 2007-08-19  Bruno Haible  <bruno@clisp.org>
37519
37520         * modules/closein (Depends-on): Add freadahead.
37521         * lib/closein.c: Include freadahead.h.
37522         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
37523         is zero.
37524
37525 2007-08-19  Bruno Haible  <bruno@clisp.org>
37526
37527         * modules/freadahead-tests: New file.
37528         * tests/test-freadahead.sh: New file.
37529         * tests/test-freadahead.c: New file.
37530
37531         * modules/freadahead: New file.
37532         * lib/freadahead.h: New file.
37533         * lib/freadahead.c: New file.
37534         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
37535         fbufmode, fpurge, freadable, fwritable.
37536
37537 2007-08-19  Eric Blake  <ebb9@byu.net>
37538
37539         Test yesno in combination with closein.
37540         * lib/yesno.c (yesno): Document use of stdin.
37541         * modules/yesno-tests (Files): New module.
37542         * tests/test-yesno.c (main): New file.
37543         * tests/test-yesno.sh: Likewise.
37544
37545 2007-08-19  Bruno Haible  <bruno@clisp.org>
37546
37547         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
37548         * lib/fseeko.c (rpl_fseeko): Likewise.
37549         * lib/fseterr.c (fseterr): Likewise.
37550
37551 2007-08-19  Bruno Haible  <bruno@clisp.org>
37552
37553         * tests/test-lseek.c (main): Disable a test for BeOS.
37554         * doc/functions/lseek.texi: Document the BeOS bug.
37555
37556 2007-08-19  Bruno Haible  <bruno@clisp.org>
37557             Eric Blake  <ebb9@byu.net>
37558
37559         * lib/lseek.c: Include <sys/stat.h>.
37560         (rpl_lseek): Add workaround code also for Unix platforms.
37561         Needed for BeOS.
37562         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
37563         * doc/functions/lseek.texi: Document BeOS definiency.
37564
37565 2007-08-18  Bruno Haible  <bruno@clisp.org>
37566
37567         * modules/fstrcmp-tests: New file.
37568         * tests/test-fstrcmp.c: New file.
37569
37570 2007-08-18  Bruno Haible  <bruno@clisp.org>
37571
37572         * modules/fstrcmp: New file, from GNU gettext with modifications.
37573         * lib/fstrcmp.h: New file, from GNU gettext.
37574         * lib/fstrcmp.c: New file, from GNU gettext.
37575         * MODULES.html.sh (String handling): Add fstrcmp.
37576
37577 2007-08-18  Bruno Haible  <bruno@clisp.org>
37578
37579         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
37580         'bool'.
37581         (diag, compareseq): Remove const from the ctxt argument.
37582         (USE_HEURISTIC): Undefine at the end.
37583
37584 2007-08-18  Jim Meyering  <jim@meyering.net>
37585
37586         New file: lib/idcache.h
37587         * NEWS: Mention the addition.
37588         * modules/idcache (Files): Add lib/idcache.h
37589         * lib/idcache.c: Include "idcache.h".
37590         Don't include <sys/types.h>.
37591         Add a FIXME comment.
37592         Move file-scoped "static" declarations to the top.
37593         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
37594
37595 2007-08-17  Bruno Haible  <bruno@clisp.org>
37596         and Paul Eggert  <eggert@cs.ucla.edu>
37597
37598         * MODULES.html.sh: Add diffseq.
37599         * modules/diffseq: New file.
37600         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
37601         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
37602
37603 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
37604
37605         Import changes from coreutils for bootstrap script.
37606
37607         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
37608
37609         * build-aux/bootstrap (slurp): Work even in environments where
37610         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
37611         current code does not slurp files whose names start with ".", and
37612         this looks like it might be a troublesome area.
37613
37614         2007-07-11  Jim Meyering  <jim@meyering.net>
37615
37616         If there's a GPL vN copyright comment, require that N == 3.
37617
37618         2007-07-08  Jim Meyering  <jim@meyering.net>
37619
37620         Run the coreutils-specific code only if tests/Makefile.am.in exists.
37621         * build-aux/bootstrap (mam_template): Move definition out of loop.
37622
37623         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
37624
37625         * build-aux/bootstrap (symlink_to_dir): Rename function from
37626         symlink_to_gnulib.  Add a directory parameter.  Update all
37627         callers.
37628         (cp_mark_as_generated): Also check for -- and link to -- files in
37629         gl/.
37630
37631         2007-07-08  Jim Meyering  <jim@meyering.net>
37632
37633         Adapt to deeper hierarchy in gnulib.
37634         * build-aux/bootstrap (symlink_to_dir): If the destination
37635         directory doesn't exist, create it. This is required at least for
37636         "lib/uniwidth/cjk.h".
37637
37638         2007-05-15  Jim Meyering  <jim@meyering.net>
37639
37640         * build-aux/bootstrap: Now that generated Makefile.am files
37641         are no longer under version control, they must be created at
37642         bootstrap time.
37643
37644 2007-08-14  Ben Pfaff  <blp@gnu.org>
37645
37646         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
37647
37648 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
37649
37650         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
37651         given the changes below.
37652         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
37653         even on hosts that have padding bits beyond the supported 64.
37654
37655 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
37656
37657         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
37658         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
37659         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
37660         depends on it.
37661         (xstrtol_error): Remove.
37662         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
37663         but with a different signature.
37664         (ATTRIBUTE_NORETURN, __attribute__): New macros.
37665         * lib/xstrtol-error.c: Include exitfail.h.
37666         (xstrtol_fatal): New function, with a different signature from the
37667         old xstrtol_error, so that the caller need not worry about passing
37668         in an exit status, or about storage management of the option argument.
37669         (xstrtol_error): Now a static function.  Redo signature to
37670         implement xstrtol_fatal.  Output the correct number of hyphens in
37671         front of the option so that the caller need not worry about
37672         storage management.
37673         (N_): New macro.
37674         (_): Remove; not used now.
37675         * modules/xstrtol: Depend on getopt.
37676         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
37677         of old STRTOL_FATAL_ERROR macro.
37678         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
37679         of test program.
37680         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
37681         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
37682
37683 2007-08-08  Eric Blake  <ebb9@byu.net>
37684
37685         * lib/xstrtol-error.c: Add missing include.
37686
37687         Move xstrtol messages into gnulib domain, when --pobase is used.
37688         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
37689         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
37690         * modules/xstrtol (Files): Distribute new file.
37691         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
37692         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
37693         * tests/test-xstrtol.c: ...into new file.
37694         * tests/test-xstrtoul.c: Also test xstrtoul.
37695         * tests/test-xstrtoimax.c: Also test xstrtoimax.
37696         * tests/test-xstrtoumax.c: Also test xstrtoumax.
37697         * tests/test-xstrtol.sh: Drive the tests.
37698         * tests/test-xstrtoimax.sh: Likewise.
37699         * tests/test-xstrtoumax.sh: Likewise.
37700         * modules/xstrtol-tests: New module.
37701         * modules/xstrtoimax-tests: Likewise.
37702         * modules/xstrtoumax-tests: Likewise.
37703
37704 2007-08-08  Jim Meyering  <jim@meyering.net>
37705
37706         New function: mfile_name_concat.
37707         * lib/filenamecat.c (mfile_name_concat): New function, just like
37708         file_name_concat, but return NULL upon failure rather than exiting
37709         with a diagnostic.
37710         * lib/filenamecat.h: Declare it.
37711
37712 2007-08-07  Bruno Haible  <bruno@clisp.org>
37713
37714         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
37715         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
37716         warning from gcc.
37717         Reported by Eric Blake.
37718
37719 2007-08-07  Simon Josefsson  <simon@josefsson.org>
37720
37721         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
37722         * modules/crypto/arcfour (License): Likewise.
37723         * modules/crypto/des-tests (License): Likewise.
37724         * modules/crypto/gc-arctwo-tests (License): Likewise.
37725         * modules/crypto/gc-des-tests (License): Likewise.
37726         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
37727         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
37728         * modules/crypto/gc-md2-tests (License): Likewise.
37729         * modules/crypto/gc-md4-tests (License): Likewise.
37730         * modules/crypto/gc-md5-tests (License): Likewise.
37731         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
37732         * modules/crypto/gc-rijndael-tests (License): Likewise.
37733         * modules/crypto/gc-sha1-tests (License): Likewise.
37734         * modules/crypto/gc-tests (License): Likewise.
37735         * modules/crypto/hmac-md5 (License): Likewise.
37736         * modules/crypto/hmac-sha1 (License): Likewise.
37737         * modules/crypto/md2-tests (License): Likewise.
37738         * modules/crypto/md4-tests (License): Likewise.
37739         * modules/crypto/md5 (License): Likewise.
37740         * modules/crypto/rijndael (License): Likewise.
37741         * modules/crypto/sha1 (License): Likewise.
37742         * modules/memxor (License): Likewise.
37743
37744 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
37745         and Bruno Haible  <bruno@clisp.org>
37746
37747         * NEWS: Describe interface changes to human, xstrtol.
37748         * lib/human.h: Include <xstrtol.h>.
37749         (human_options): Return enum strtol_error, not int.  Remove
37750         bool arg; take int * instead.
37751         * lib/human.c: Don't include "gettext.h".
37752         (_): Remove; no longer used.
37753         Don't include <xstrtol.h>, since human.h does it.
37754         (human_options): Adjust to abovementioned interface changes.
37755         Do not report error to stderr; that's now the caller's
37756         responsibility.
37757         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
37758         interface change.
37759         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
37760         Str, Argument_type_string.  All uses changed.  Put " argument"
37761         in diagnostics to make them clearer.  Change wording of suffix
37762         message for clarity.
37763         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
37764         Argument_type_string.
37765         (STRTOL_FATAL_WARN): Remove; no longer used.
37766         * modules/human (Depends-on): Remove gettext-h.
37767
37768 2007-08-06  Simon Josefsson  <simon@josefsson.org>
37769
37770         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
37771
37772 2007-07-31  Bruno Haible  <bruno@clisp.org>
37773
37774         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
37775         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
37776         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
37777
37778 2007-07-31  Bruno Haible  <bruno@clisp.org>
37779
37780         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
37781         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
37782
37783 2007-07-30  Bruno Haible  <bruno@clisp.org>
37784
37785         * modules/base64 (License): Use the synonymous term "LGPLv2+".
37786         * modules/c-ctype (License): Likewise.
37787         * modules/c-strcase (License): Likewise.
37788         * modules/check-version (License): Likewise.
37789         * modules/iconv (License): Likewise.
37790         * modules/iconv_open (License): Likewise.
37791         * modules/read-file (License): Likewise.
37792         * modules/striconv (License): Likewise.
37793         * modules/strverscmp (License): Likewise.
37794         * modules/vasprintf (License): Likewise.
37795         * modules/crypto/des (License): Likewise.
37796         * modules/crypto/gc (License): Likewise.
37797         * modules/crypto/gc-arcfour (License): Likewise.
37798         * modules/crypto/gc-arctwo (License): Likewise.
37799         * modules/crypto/gc-des (License): Likewise.
37800         * modules/crypto/gc-hmac-md5 (License): Likewise.
37801         * modules/crypto/gc-hmac-sha1 (License): Likewise.
37802         * modules/crypto/gc-md2 (License): Likewise.
37803         * modules/crypto/gc-md4 (License): Likewise.
37804         * modules/crypto/gc-md5 (License): Likewise.
37805         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
37806         * modules/crypto/gc-random (License): Likewise.
37807         * modules/crypto/gc-rijndael (License): Likewise.
37808         * modules/crypto/gc-sha1 (License): Likewise.
37809         * modules/crypto/md2 (License): Likewise.
37810         * modules/crypto/md4 (License): Likewise.
37811
37812 2007-07-30  Jim Meyering  <jim@meyering.net>
37813
37814         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
37815         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
37816         it has valid stat data.  This bug would cause du not to count the
37817         sizes of inaccessible directories.
37818         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
37819         in <http://bugzilla.redhat.com/250077>.
37820
37821 2007-07-25  Peter O'Gorman  <peter@pogma.com>
37822             Bruno Haible  <bruno@clisp.org>
37823
37824         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
37825         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
37826         #include_next, gives a diagnostic about it, but reports no error in
37827         the exit code.
37828         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
37829
37830 2007-07-24  Ben Pfaff  <blp@gnu.org>
37831
37832         Improve name: "count-one-bits" is better than "popcount".
37833         * MODULES.html.sh: Update name.
37834         * lib/popcount.h: Renamed lib/count-one-bits.h.
37835         (popcount): Renamed count_one_bits.
37836         (popcountl): Renamed count_one_bits_l.
37837         (popcountll): Renamed count_one_bits_ll.
37838         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
37839         * modules/popcount: Renamed module/count-one-bits.
37840         * modules/popcount-tests: Renamed module/count-one-bits-tests.
37841         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
37842
37843 2007-07-23  Ben Pfaff  <blp@gnu.org>
37844
37845         * lib/popcount.h (popcount32): Reduce size of constants, to allow
37846         better code generation, and add U to large constants to avoid
37847         warnings, in non-GCC case.
37848         Suggested by Bruno Haible.
37849
37850 2007-07-23  Ben Pfaff  <blp@gnu.org>
37851
37852         * lib/popcount.h: Use verify_true instead of if...abort.
37853         * modules/popcount: Depend on verify module.
37854         Suggested by Jim Meyering.
37855
37856 2007-07-23  Bruno Haible  <bruno@clisp.org>
37857
37858         * gnulib-tool (func_import): Create a .cvsignore file also when the
37859         directory is not yet in CVS but the toplevel directory is. When
37860         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
37861         Reported by Karl Berry.
37862
37863 2007-07-22  Ben Pfaff  <blp@gnu.org>
37864
37865         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
37866         case.
37867         Suggested by Eric Blake.
37868
37869 2007-07-22  Ben Pfaff  <blp@gnu.org>
37870
37871         New module: popcount.
37872         * MODULES.html.sh: Add popcount.
37873         * modules/popcount: New file.
37874         * modules/popcount-tests: New file.
37875         * tests/test-popcount.c: New file.
37876         * lib/popcount.h: New file.
37877         * m4/popcount.m4: New file.
37878
37879 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
37880
37881         * build-aux/announce-gen: Update to GPLv3.
37882
37883         * build-aux/config.guess: Update from config.
37884
37885 2007-07-21  Bruno Haible  <bruno@clisp.org>
37886
37887         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
37888         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
37889
37890 2007-07-20  Jim Meyering  <jim@meyering.net>
37891
37892         * check-module: Diagnose a self-dependency.
37893
37894 2007-07-19  Bruno Haible  <bruno@clisp.org>
37895
37896         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
37897         empty.
37898         Reported by Eric Blake.
37899
37900 2007-07-18  Bruno Haible  <bruno@clisp.org>
37901
37902         * gnulib-tool: New options --po-base, --po-domain.
37903         (func_usage): Document them.
37904         (pobase, po_domain): New variables.
37905         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
37906         DEFAULT_TEXT_DOMAIN.
37907         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
37908         (func_import): Consider pobase and po_domain. Create a po/ directory.
37909         (func_create_testdir): Set pobase and po_domain to empty.
37910         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
37911         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
37912
37913 2007-07-18  Bruno Haible  <bruno@clisp.org>
37914
37915         * gnulib-tool (func_get_automake_snippet): Synthesize also an
37916         EXTRA_DIST augmentation for files in build-aux/.
37917
37918 2007-07-16  Bruno Haible  <bruno@clisp.org>
37919
37920         * modules/lseek (License): Use the synonymous term "LGPLv2+".
37921         * modules/getdelim (License): Likewise.
37922
37923 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37924
37925         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
37926         * modules/d-type (License): Likewise.
37927         * modules/extensions (License): Likewise.
37928         * modules/fnmatch (License): Likewise.
37929         * modules/fseeko (License): Likewise.
37930         * modules/getaddrinfo (License): Likewise.
37931         * modules/getline (License): Likewise.
37932         * modules/getlogin_r (License): Likewise.
37933         * modules/getpass (License): Likewise.
37934         * modules/gettimeofday (License): Likewise.
37935         * modules/glob (License): Likewise.
37936         * modules/inet_ntop (License): Likewise.
37937         * modules/malloc (License): Likewise.
37938         * modules/malloca (License): Likewise.
37939         * modules/memmem (License): Likewise.
37940         * modules/mempcpy (License): Likewise.
37941         * modules/memset (License): Likewise.
37942         * modules/minmax (License): Likewise.
37943         * modules/mktime (License): Likewise.
37944         * modules/netinet_in (License): Likewise.
37945         * modules/pathmax (License): Likewise.
37946         * modules/poll (License): Likewise.
37947         * modules/regex (License): Likewise.
37948         * modules/snprintf (License): Likewise.
37949         * modules/stdbool (License): Likewise.
37950         * modules/stdint (License): Likewise.
37951         * modules/stdio (License): Likewise.
37952         * modules/strcase (License): Likewise.
37953         * modules/strcasestr (License): Likewise.
37954         * modules/strdup (License): Likewise.
37955         * modules/string (License): Likewise.
37956         * modules/strndup (License): Likewise.
37957         * modules/strnlen (License): Likewise.
37958         * modules/strpbrk (License): Likewise.
37959         * modules/strptime (License): Likewise.
37960         * modules/strsep (License): Likewise.
37961         * modules/sys_select (License): Likewise.
37962         * modules/sys_socket (License): Likewise.
37963         * modules/sys_stat (License): Likewise.
37964         * modules/sys_time (License): Likewise.
37965         * modules/time (License): Likewise.
37966         * modules/time_r (License): Likewise.
37967         * modules/timegm (License): Likewise.
37968         * modules/unistd (License): Likewise.
37969         * modules/vsnprintf (License): Likewise.
37970         * modules/wctype (License): Likewise.
37971
37972 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37973
37974         * modules/argz (License): LGPLv2+.
37975
37976 2007-07-15  Karl Berry  <karl@gnu.org>
37977
37978         * doc/gnulib.texi: revise node structure per new fdl.texi.
37979
37980 2007-07-14  Bruno Haible  <bruno@clisp.org>
37981
37982         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
37983         the output file.
37984         * lib/uniname/uninames.h: Regenerated.
37985
37986 2007-07-14  Karl Berry  <karl@gnu.org>
37987
37988         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
37989         omitting sectioning and index commands.
37990
37991 2007-07-13  Bruno Haible  <bruno@clisp.org>
37992
37993         New gnulib-tool option --more-symlinks.
37994         * gnulib-tool (func_usage): Document --more-symlinks.
37995         (do_copyrights): New variable.
37996         Recognize option --more-symlinks.
37997         (func_import): Don't add a copyright notice transform to
37998         sed_transform_lib_file if do_copyrights is empty.
37999
38000 2007-07-13  Bruno Haible  <bruno@clisp.org>
38001
38002         * lib/vasnprintf.c (decimal_point_char): Define also if
38003         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
38004         && !NEED_PRINTF_DIRECTIVE_A.
38005         Reported by Clemens Koller <clemens.koller@anagramm.de> via
38006         Gary V. Vaughan <gary@gnu.org>.
38007
38008 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
38009
38010         * lib/inttypes_.h: Undo previous change, since it was fixed
38011         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
38012
38013 2007-07-13  Bruno Haible  <bruno@clisp.org>
38014
38015         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
38016         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
38017
38018 2007-07-13  Jim Meyering  <jim@meyering.net>
38019
38020         df: Don't fail for Tru64's "file-on-file mount".
38021         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
38022         so we fall through and use statfs instead.  Details here:
38023         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
38024         Reported by Albert Chin.
38025
38026 2007-07-13  Bruno Haible  <bruno@clisp.org>
38027
38028         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
38029         * modules/configmake (License): Likewise.
38030         * modules/gettext (License): Likewise.
38031         * modules/gettext-h (License): Likewise.
38032         * modules/include_next (License): Likewise.
38033         * modules/link-warning (License): Likewise.
38034         * modules/localcharset (License): Likewise.
38035         * modules/localename (License): Likewise.
38036         * modules/lock (License): Likewise.
38037         * modules/relocatable-lib-lgpl (License): Likewise.
38038         * modules/size_max (License): Likewise.
38039         * modules/vasnprintf (License): Likewise.
38040         * modules/wchar (License): Likewise.
38041         * modules/xsize (License): Likewise.
38042
38043 2007-07-13  Bruno Haible  <bruno@clisp.org>
38044
38045         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
38046         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
38047
38048 2007-07-12  Bruno Haible  <bruno@clisp.org>
38049
38050         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
38051         in the modules files.
38052
38053 2007-07-11  Karl Berry  <karl@gnu.org>
38054
38055         * MODULES.html.sh (func_module): use
38056          sed -e '\|^'"${includefile}"'$|d'
38057          instead of /.../d, to avoid errors on $includefile's containing /.
38058
38059 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
38060
38061         * gnulib-tool (func_import): Avoid duplication of --avoid
38062         statements
38063         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
38064         names to `_' in variable names.
38065
38066 2007-07-10  Eric Blake  <ebb9@byu.net>
38067
38068         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
38069         * NEWS: Document this change.
38070
38071 2007-07-08  Bruno Haible  <bruno@clisp.org>
38072
38073         Update to Unicode 5.0.
38074         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
38075         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
38076         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
38077         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
38078         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
38079         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
38080         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
38081         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
38082         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
38083         U+10A3F, U+1D242..U+1D244.
38084         (nonspacing_table_ind): Update.
38085         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
38086         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
38087
38088 2007-07-08  Bruno Haible  <bruno@clisp.org>
38089
38090         Update to Unicode 5.0.
38091         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
38092         code transform. Extend the name index field of unicode_name_to_code and
38093         unicode_code_to_name from 16 to 24 bits.
38094         * lib/uniname/uniname.c (unicode_character_name,
38095         unicode_name_character): Add the range 0x12xxx to the code transform.
38096         * lib/uniname/uninames.h: Regenerated.
38097         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
38098
38099 2007-07-07  Bruno Haible  <bruno@clisp.org>
38100
38101         * modules/wcwidth-tests: New file.
38102         * tests/test-wcwidth.c: New file.
38103
38104         Work around MacOS X wcwidth() bug.
38105         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
38106         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
38107         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
38108         original wcwidth in non-UTF-8 locales.
38109         * modules/wcwidth (Depends-on): Add localcharset, streq,
38110         uniwidth/width.
38111         * doc/functions/wcwidth.texi: Update.
38112
38113 2007-07-07  Bruno Haible  <bruno@clisp.org>
38114
38115         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
38116         (wcwidth): New declaration.
38117         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
38118         macros.
38119         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
38120         here. Prepare for creating <wchar.h> unconditionally.
38121         * modules/wchar (Depends-on): Add link-warning.
38122         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
38123         REPLACE_WCWIDTH, and GL_LINK_WARNING.
38124         * lib/wcwidth.h: Remove file.
38125         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
38126         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
38127         * modules/wcwidth (Files): Remove lib/wcwidth.h.
38128         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
38129         (Include): Replace wcwidth.h with <wchar.h>.
38130         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
38131         * lib/mbchar.h: Don't include wcwidth.h.
38132         * lib/mbswidth.c: Likewise.
38133         * NEWS: Mention the change.
38134
38135 2007-07-07  Bruno Haible  <bruno@clisp.org>
38136
38137         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
38138         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
38139         definition with an external declaration.
38140         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
38141         defined as a function. Remove AC_C_INLINE requirement.
38142         * modules/wcwidth (Files): Add lib/wcwidth.c.
38143         (Makefile.am): Remove redundant statement.
38144
38145 2007-07-07  Bruno Haible  <bruno@clisp.org>
38146
38147         * MODULES.html.sh (Unicode string functions): Add the new modules.
38148
38149         * tests/uniwidth/test-u32-strwidth.c: New file.
38150         * modules/uniwidth/u32-strwidth-tests: New file.
38151
38152         * lib/uniwidth/u32-strwidth.c: New file.
38153         * modules/uniwidth/u32-strwidth: New file.
38154
38155         * tests/uniwidth/test-u16-strwidth.c: New file.
38156         * modules/uniwidth/u16-strwidth-tests: New file.
38157
38158         * lib/uniwidth/u16-strwidth.c: New file.
38159         * modules/uniwidth/u16-strwidth: New file.
38160
38161         * tests/uniwidth/test-u8-strwidth.c: New file.
38162         * modules/uniwidth/u8-strwidth-tests: New file.
38163
38164         * lib/uniwidth/u8-strwidth.c: New file.
38165         * modules/uniwidth/u8-strwidth: New file.
38166
38167         * tests/uniwidth/test-u32-width.c: New file.
38168         * modules/uniwidth/u32-width-tests: New file.
38169
38170         * lib/uniwidth/u32-width.c: New file.
38171         * modules/uniwidth/u32-width: New file.
38172
38173         * tests/uniwidth/test-u16-width.c: New file.
38174         * modules/uniwidth/u16-width-tests: New file.
38175
38176         * lib/uniwidth/u16-width.c: New file.
38177         * modules/uniwidth/u16-width: New file.
38178
38179         * tests/uniwidth/test-u8-width.c: New file.
38180         * modules/uniwidth/u8-width-tests: New file.
38181
38182         * lib/uniwidth/u8-width.c: New file.
38183         * modules/uniwidth/u8-width: New file.
38184
38185         * tests/uniwidth/test-uc_width.c: New file.
38186         * modules/uniwidth/width-tests: New file.
38187
38188         * lib/uniwidth/width.c: New file, from GNU libiconv.
38189         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
38190         * modules/uniwidth/width: New file.
38191
38192         * lib/uniwidth.h: New file, from GNU libiconv.
38193         * modules/uniwidth/base: New file.
38194
38195 2007-07-07  Bruno Haible  <bruno@clisp.org>
38196
38197         * lib/uniname.h: New file, from GNU gettext.
38198         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
38199         * lib/uniname/uninames.h: New file, from GNU gettext.
38200         * lib/uniname/uniname.c: New file, from GNU gettext.
38201         * tests/uniname/test-uninames.sh: New file.
38202         * tests/uniname/test-uninames.c: New file, from GNU gettext.
38203         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
38204         * modules/uniname/base: New file.
38205         * modules/uniname/uniname: New file.
38206         * modules/uniname/uniname-tests: New file.
38207         * MODULES.html.sh (Unicode string functions): Add the new modules.
38208
38209 2007-07-06  Bruno Haible  <bruno@clisp.org>
38210
38211         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
38212
38213 2007-07-06  Bruno Haible  <bruno@clisp.org>
38214
38215         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
38216         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
38217         includes <cygwin/sys_time.h> which includes <sys/select.h> which
38218         include <sys/time.h>.
38219         Reported by Eric Blake.
38220
38221 2007-07-06  Eric Blake  <ebb9@byu.net>
38222
38223         Fix testing canonicalize on cygwin.
38224         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
38225         Revert patch from 2007-06-19.
38226         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
38227         canonicalize module is also in use.
38228         * tests/test-canonicalize.c: New file.
38229         * tests/test-canonicalize.sh: Likewise.
38230         * modules/canonicalize-tests: Likewise.
38231
38232 2007-07-06  Jim Meyering  <jim@meyering.net>
38233
38234         * lib/getugroups.c (getugroups): Detect getgrent failure.
38235         Adjust comment to reflect reality: this function may return -1.
38236
38237 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
38238
38239         * build-aux/bootstrap (TP_URL,get_translations): Update to use
38240         the new TP address.
38241         (usage): Fix typo
38242         (gnulib_mk): New variable.
38243
38244 2007-07-05  Jim Meyering  <jim@meyering.net>
38245
38246         Don't let endgrent clobber errno, no matter how improbable.
38247         * lib/getugroups.c (getugroups): Save and restore errno around
38248         endgrent call.
38249
38250         Close the group DB even when failing with 2^31 or more members.
38251         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
38252
38253 2007-07-04  Jim Meyering  <jim@meyering.net>
38254
38255         * lib/getugroups.h: New file.
38256         * lib/getugroups.c: Include "getugroups.h".
38257         Remove uses of "register" keyword.
38258         Move local variable, "cp", down into scope where used.
38259         Give "username" parameter the "const" attribute.
38260         * modules/getugroups (Files): Add lib/getugroups.h
38261
38262 2007-07-04  Karl Berry  <karl@gnu.org>
38263
38264         * MODULES.html.sh (func_all_modules): Complete rename of
38265         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
38266
38267 2007-07-02  Bruno Haible  <bruno@clisp.org>
38268
38269         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
38270         mode, when inttypes.h comes from gnulib.
38271         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
38272
38273 2007-07-02  Simon Josefsson  <simon@josefsson.org>
38274
38275         * NEWS: Mention lgpl module name change.
38276
38277         * modules/lgpl-2.1: Renamed from lgpl.
38278
38279         * NEWS: Mention gpl module name change.
38280
38281         * modules/gpl-3.0: New file, based on gpl-2.0.
38282
38283         * modules/gpl-2.0: Renamed from gpl.
38284
38285         * modules/gpl: Fix filename, doc/gpl.texi is now found at
38286         doc/gpl-2.0.texi.
38287
38288 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
38289
38290         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
38291         #define __STDC_LIMIT_MACROS temporarily while including
38292         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
38293         Problem reported by Joel E. Denny in
38294         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
38295
38296 2007-07-01  Bruno Haible  <bruno@clisp.org>
38297
38298         * lib/unistdio.h: New file.
38299         * lib/unistdio/u-asnprintf.h: New file.
38300         * lib/unistdio/u-asprintf.h: New file.
38301         * lib/unistdio/u-printf-args.c: New file.
38302         * lib/unistdio/u-printf-args.h: New file.
38303         * lib/unistdio/u-printf-parse.h: New file.
38304         * lib/unistdio/u-snprintf.h: New file.
38305         * lib/unistdio/u-sprintf.h: New file.
38306         * lib/unistdio/u-vasprintf.h: New file.
38307         * lib/unistdio/u-vsnprintf.h: New file.
38308         * lib/unistdio/u-vsprintf.h: New file.
38309         * lib/unistdio/ulc-asnprintf.c: New file.
38310         * lib/unistdio/ulc-asprintf.c: New file.
38311         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
38312         * lib/unistdio/ulc-printf-parse.c: New file.
38313         * lib/unistdio/ulc-snprintf.c: New file.
38314         * lib/unistdio/ulc-sprintf.c: New file.
38315         * lib/unistdio/ulc-vasnprintf.c: New file.
38316         * lib/unistdio/ulc-vasprintf.c: New file.
38317         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
38318         * lib/unistdio/ulc-vsnprintf.c: New file.
38319         * lib/unistdio/ulc-vsprintf.c: New file.
38320         * lib/unistdio/u8-asnprintf.c: New file.
38321         * lib/unistdio/u8-asprintf.c: New file.
38322         * lib/unistdio/u8-printf-parse.c: New file.
38323         * lib/unistdio/u8-snprintf.c: New file.
38324         * lib/unistdio/u8-sprintf.c: New file.
38325         * lib/unistdio/u8-vasnprintf.c: New file.
38326         * lib/unistdio/u8-vasprintf.c: New file.
38327         * lib/unistdio/u8-vsnprintf.c: New file.
38328         * lib/unistdio/u8-vsprintf.c: New file.
38329         * lib/unistdio/u8-u8-asnprintf.c: New file.
38330         * lib/unistdio/u8-u8-asprintf.c: New file.
38331         * lib/unistdio/u8-u8-snprintf.c: New file.
38332         * lib/unistdio/u8-u8-sprintf.c: New file.
38333         * lib/unistdio/u8-u8-vasnprintf.c: New file.
38334         * lib/unistdio/u8-u8-vasprintf.c: New file.
38335         * lib/unistdio/u8-u8-vsnprintf.c: New file.
38336         * lib/unistdio/u8-u8-vsprintf.c: New file.
38337         * lib/unistdio/u16-asnprintf.c: New file.
38338         * lib/unistdio/u16-asprintf.c: New file.
38339         * lib/unistdio/u16-printf-parse.c: New file.
38340         * lib/unistdio/u16-snprintf.c: New file.
38341         * lib/unistdio/u16-sprintf.c: New file.
38342         * lib/unistdio/u16-vasnprintf.c: New file.
38343         * lib/unistdio/u16-vasprintf.c: New file.
38344         * lib/unistdio/u16-vsnprintf.c: New file.
38345         * lib/unistdio/u16-vsprintf.c: New file.
38346         * lib/unistdio/u16-u16-asnprintf.c: New file.
38347         * lib/unistdio/u16-u16-asprintf.c: New file.
38348         * lib/unistdio/u16-u16-snprintf.c: New file.
38349         * lib/unistdio/u16-u16-sprintf.c: New file.
38350         * lib/unistdio/u16-u16-vasnprintf.c: New file.
38351         * lib/unistdio/u16-u16-vasprintf.c: New file.
38352         * lib/unistdio/u16-u16-vsnprintf.c: New file.
38353         * lib/unistdio/u16-u16-vsprintf.c: New file.
38354         * lib/unistdio/u32-asnprintf.c: New file.
38355         * lib/unistdio/u32-asprintf.c: New file.
38356         * lib/unistdio/u32-printf-parse.c: New file.
38357         * lib/unistdio/u32-snprintf.c: New file.
38358         * lib/unistdio/u32-sprintf.c: New file.
38359         * lib/unistdio/u32-vasnprintf.c: New file.
38360         * lib/unistdio/u32-vasprintf.c: New file.
38361         * lib/unistdio/u32-vsnprintf.c: New file.
38362         * lib/unistdio/u32-vsprintf.c: New file.
38363         * lib/unistdio/u32-u32-asnprintf.c: New file.
38364         * lib/unistdio/u32-u32-asprintf.c: New file.
38365         * lib/unistdio/u32-u32-snprintf.c: New file.
38366         * lib/unistdio/u32-u32-sprintf.c: New file.
38367         * lib/unistdio/u32-u32-vasnprintf.c: New file.
38368         * lib/unistdio/u32-u32-vasprintf.c: New file.
38369         * lib/unistdio/u32-u32-vsnprintf.c: New file.
38370         * lib/unistdio/u32-u32-vsprintf.c: New file.
38371         * tests/unistdio/test-ulc-asnprintf1.c: New file.
38372         * tests/unistdio/test-ulc-asnprintf1.h: New file.
38373         * tests/unistdio/test-ulc-printf1.h: New file.
38374         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
38375         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
38376         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
38377         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
38378         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
38379         * tests/unistdio/test-ulc-vasprintf1.c: New file.
38380         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
38381         * tests/unistdio/test-ulc-vsprintf1.c: New file.
38382         * tests/unistdio/test-u8-asnprintf1.c: New file.
38383         * tests/unistdio/test-u8-asnprintf1.h: New file.
38384         * tests/unistdio/test-u8-printf1.h: New file.
38385         * tests/unistdio/test-u8-vasnprintf1.c: New file.
38386         * tests/unistdio/test-u8-vasnprintf2.c: New file.
38387         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
38388         * tests/unistdio/test-u8-vasnprintf3.c: New file.
38389         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
38390         * tests/unistdio/test-u8-vasprintf1.c: New file.
38391         * tests/unistdio/test-u8-vsnprintf1.c: New file.
38392         * tests/unistdio/test-u8-vsprintf1.c: New file.
38393         * tests/unistdio/test-u16-asnprintf1.c: New file.
38394         * tests/unistdio/test-u16-asnprintf1.h: New file.
38395         * tests/unistdio/test-u16-printf1.h: New file.
38396         * tests/unistdio/test-u16-vasnprintf1.c: New file.
38397         * tests/unistdio/test-u16-vasnprintf2.c: New file.
38398         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
38399         * tests/unistdio/test-u16-vasnprintf3.c: New file.
38400         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
38401         * tests/unistdio/test-u16-vasprintf1.c: New file.
38402         * tests/unistdio/test-u16-vsnprintf1.c: New file.
38403         * tests/unistdio/test-u16-vsprintf1.c: New file.
38404         * tests/unistdio/test-u32-asnprintf1.c: New file.
38405         * tests/unistdio/test-u32-asnprintf1.h: New file.
38406         * tests/unistdio/test-u32-printf1.h: New file.
38407         * tests/unistdio/test-u32-vasnprintf1.c: New file.
38408         * tests/unistdio/test-u32-vasnprintf2.c: New file.
38409         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
38410         * tests/unistdio/test-u32-vasnprintf3.c: New file.
38411         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
38412         * tests/unistdio/test-u32-vasprintf1.c: New file.
38413         * tests/unistdio/test-u32-vsnprintf1.c: New file.
38414         * tests/unistdio/test-u32-vsprintf1.c: New file.
38415         * modules/unistdio/base: New file.
38416         * modules/unistdio/u-printf-args: New file.
38417         * modules/unistdio/ulc-asnprintf: New file.
38418         * modules/unistdio/ulc-asprintf: New file.
38419         * modules/unistdio/ulc-fprintf: New file.
38420         * modules/unistdio/ulc-printf-parse: New file.
38421         * modules/unistdio/ulc-snprintf: New file.
38422         * modules/unistdio/ulc-sprintf: New file.
38423         * modules/unistdio/ulc-vasnprintf: New file.
38424         * modules/unistdio/ulc-vasprintf: New file.
38425         * modules/unistdio/ulc-vfprintf: New file.
38426         * modules/unistdio/ulc-vsnprintf: New file.
38427         * modules/unistdio/ulc-vsprintf: New file.
38428         * modules/unistdio/u8-asnprintf: New file.
38429         * modules/unistdio/u8-asprintf: New file.
38430         * modules/unistdio/u8-printf-parse: New file.
38431         * modules/unistdio/u8-snprintf: New file.
38432         * modules/unistdio/u8-sprintf: New file.
38433         * modules/unistdio/u8-vasnprintf: New file.
38434         * modules/unistdio/u8-vasprintf: New file.
38435         * modules/unistdio/u8-vsnprintf: New file.
38436         * modules/unistdio/u8-vsprintf: New file.
38437         * modules/unistdio/u8-u8-asnprintf: New file.
38438         * modules/unistdio/u8-u8-asprintf: New file.
38439         * modules/unistdio/u8-u8-snprintf: New file.
38440         * modules/unistdio/u8-u8-sprintf: New file.
38441         * modules/unistdio/u8-u8-vasnprintf: New file.
38442         * modules/unistdio/u8-u8-vasprintf: New file.
38443         * modules/unistdio/u8-u8-vsnprintf: New file.
38444         * modules/unistdio/u8-u8-vsprintf: New file.
38445         * modules/unistdio/u16-asnprintf: New file.
38446         * modules/unistdio/u16-asprintf: New file.
38447         * modules/unistdio/u16-printf-parse: New file.
38448         * modules/unistdio/u16-snprintf: New file.
38449         * modules/unistdio/u16-sprintf: New file.
38450         * modules/unistdio/u16-vasnprintf: New file.
38451         * modules/unistdio/u16-vasprintf: New file.
38452         * modules/unistdio/u16-vsnprintf: New file.
38453         * modules/unistdio/u16-vsprintf: New file.
38454         * modules/unistdio/u16-u16-asnprintf: New file.
38455         * modules/unistdio/u16-u16-asprintf: New file.
38456         * modules/unistdio/u16-u16-snprintf: New file.
38457         * modules/unistdio/u16-u16-sprintf: New file.
38458         * modules/unistdio/u16-u16-vasnprintf: New file.
38459         * modules/unistdio/u16-u16-vasprintf: New file.
38460         * modules/unistdio/u16-u16-vsnprintf: New file.
38461         * modules/unistdio/u16-u16-vsprintf: New file.
38462         * modules/unistdio/u32-asnprintf: New file.
38463         * modules/unistdio/u32-asprintf: New file.
38464         * modules/unistdio/u32-printf-parse: New file.
38465         * modules/unistdio/u32-snprintf: New file.
38466         * modules/unistdio/u32-sprintf: New file.
38467         * modules/unistdio/u32-vasnprintf: New file.
38468         * modules/unistdio/u32-vasprintf: New file.
38469         * modules/unistdio/u32-vsnprintf: New file.
38470         * modules/unistdio/u32-vsprintf: New file.
38471         * modules/unistdio/u32-u32-asnprintf: New file.
38472         * modules/unistdio/u32-u32-asprintf: New file.
38473         * modules/unistdio/u32-u32-snprintf: New file.
38474         * modules/unistdio/u32-u32-sprintf: New file.
38475         * modules/unistdio/u32-u32-vasnprintf: New file.
38476         * modules/unistdio/u32-u32-vasprintf: New file.
38477         * modules/unistdio/u32-u32-vsnprintf: New file.
38478         * modules/unistdio/u32-u32-vsprintf: New file.
38479         * modules/unistdio/ulc-asnprintf-tests: New file.
38480         * modules/unistdio/ulc-vasnprintf-tests: New file.
38481         * modules/unistdio/ulc-vasprintf-tests: New file.
38482         * modules/unistdio/ulc-vsnprintf-tests: New file.
38483         * modules/unistdio/ulc-vsprintf-tests: New file.
38484         * modules/unistdio/u8-asnprintf-tests: New file.
38485         * modules/unistdio/u8-vasnprintf-tests: New file.
38486         * modules/unistdio/u8-vasprintf-tests: New file.
38487         * modules/unistdio/u8-vsnprintf-tests: New file.
38488         * modules/unistdio/u8-vsprintf-tests: New file.
38489         * modules/unistdio/u16-asnprintf-tests: New file.
38490         * modules/unistdio/u16-vasnprintf-tests: New file.
38491         * modules/unistdio/u16-vasprintf-tests: New file.
38492         * modules/unistdio/u16-vsnprintf-tests: New file.
38493         * modules/unistdio/u16-vsprintf-tests: New file.
38494         * modules/unistdio/u32-asnprintf-tests: New file.
38495         * modules/unistdio/u32-vasnprintf-tests: New file.
38496         * modules/unistdio/u32-vasprintf-tests: New file.
38497         * modules/unistdio/u32-vsnprintf-tests: New file.
38498         * modules/unistdio/u32-vsprintf-tests: New file.
38499         * MODULES.html.sh (Unicode string functions): Add the new modules.
38500
38501 2007-07-01  Bruno Haible  <bruno@clisp.org>
38502
38503         * lib/sprintf.c (sprintf): Limit the available length estimation,
38504         to avoid address wraparound.
38505         * lib/vsprintf.c (vsprintf): Likewise.
38506         * modules/sprintf-posix (Dependencies): Add stdint.
38507         * modules/vsprintf-posix (Dependencies): Likewise.
38508
38509 2007-07-01  Bruno Haible  <bruno@clisp.org>
38510
38511         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
38512         Windows PATH as well. Conservative double-quoting. Comments.
38513
38514 2007-07-01  Bruno Haible  <bruno@clisp.org>
38515             Eric Blake  <ebb9@byu.net>
38516             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38517
38518         * gnulib-tool (self_abspathname): Fix algorithm to cope with
38519         empty components in $PATH, denoting '.'.
38520
38521 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38522
38523         * gnulib-tool: Fix indentation.
38524         (func_create_megatestdir): Likewise.
38525         Report by Bruno Haible.
38526
38527 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38528
38529         Sync from Automake.
38530         * build-aux/gnupload: Fix shell portability issues with for loops.
38531         Report by Karl Berry.
38532
38533 2007-06-29  Simon Josefsson  <simon@josefsson.org>
38534
38535         * build-aux/maint.mk (POURL): Use translationproject.org.
38536
38537 2007-06-27  Simon Josefsson  <simon@josefsson.org>
38538             Bruno Haible  <bruno@clisp.org>
38539
38540         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
38541         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
38542         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
38543         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
38544         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
38545
38546 2007-06-27  Bruno Haible  <bruno@clisp.org>
38547
38548         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
38549         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
38550
38551 2007-06-26  Karl Berry  <karl@gnu.org>
38552
38553         * MODULES.html.sh: remove xreadlink-with-size.
38554
38555 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
38556
38557         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
38558         method that I hope also handles the double-include problem noted
38559         by Bruno Haible in
38560         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
38561
38562 2007-06-23  Bruno Haible  <bruno@clisp.org>
38563
38564         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
38565         Don't let the 'mostlyclean' target fail if the last subdirectory could
38566         not be removed.
38567         Reported by Karl Berry.
38568
38569 2007-06-23  Bruno Haible  <bruno@clisp.org>
38570
38571         * gnulib-tool (echo): Add a speedier workaround for ksh.
38572         * tests/test-echo.sh: Likewise.
38573
38574 2007-06-23  Bruno Haible  <bruno@clisp.org>
38575
38576         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
38577         * tests/test-echo.sh: Likewise.
38578
38579 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38580
38581         * gnulib-tool (IFS): Initialize early, so we don't set it to
38582         empty later.
38583         (self_abspathname): Rewrite algorithm to set it, reindent.
38584         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
38585         (func_create_megatestdir): Merge some sed scripts.
38586
38587 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
38588
38589         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
38590         exposed by Sun Studio 11 cc on Solaris 8.
38591
38592 2007-06-22  Bruno Haible  <bruno@clisp.org>
38593
38594         * gnulib-tool (echo): Ensure the echo primitive does not interpret
38595         backslashes.
38596         * tests/test-echo.sh: New file.
38597
38598 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38599
38600         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
38601         simplify `sed_replace_build_aux' scripts, they are portable but
38602         echoing them with `echo' is not.
38603         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
38604
38605 2007-06-21  Karl Berry  <karl@gnu.org>
38606
38607         * config/srclist.txt: guess we can't handle the licenses via
38608         srclist at the moment.
38609
38610 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
38611
38612         * MODULES.html.sh: Add include_next.
38613         * modules/include_next: New file.
38614
38615 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
38616
38617         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
38618         INCLUDE_NEXT.
38619         (gl_CHECK_NEXT_HEADERS): New macro.
38620         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
38621         the obsolescent gl_ABSOLUTE_HEADER.
38622         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
38623         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
38624         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
38625         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38626         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
38627         * m4/math_h.m4 (gl_MATH_H): Likewise.
38628         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
38629         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
38630         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
38631         * m4/stdint.m4 (gl_STDINT_H): Likewise.
38632         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
38633         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
38634         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
38635         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38636         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
38637         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
38638         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
38639         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
38640         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
38641         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
38642         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38643         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
38644         * m4/inttypes.m4 (gl_INTTYPES_H): Define
38645         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
38646         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
38647         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
38648         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
38649         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
38650         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
38651         * lib/float_.h: Likewise.
38652         * lib/inttypes_.h: Likewise.
38653         * lib/math_.h: Likewise.
38654         * lib/search_.h: Likewise.
38655         * lib/signal_.h: Likewise.
38656         * lib/stdint_.h: Likewise.
38657         * lib/stdio_.h: Likewise.
38658         * lib/stdlib_.h: Likewise.
38659         * lib/string_.h: Likewise.
38660         * lib/sys_stat_.h: Likewise.
38661         * lib/sys_time_.h: Likewise.
38662         * lib/time_.h: Likewise.
38663         * lib/unistd_.h: Likewise.
38664         * lib/wchar_.h: Likewise.
38665         * lib/wctype_.h: Likewise.
38666         * lib/dirent_.h: Likewise.
38667         * lib/iconv_.h: Likewise.
38668         * lib/locale_.h: Likewise.
38669         * lib/netinet_in_.h: Likewise.
38670         * lib/sys_select_.h: Likewise.
38671         * lib/sys_socket_.h: Likewise.
38672         * lib/sysexits_.h: Likewise.
38673         * modules/fcntl (Depends-on): Depend on include_next, not
38674         absolute_header.
38675         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
38676         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
38677         * modules/fchdir: Likewise.
38678         * modules/float: Likewise.
38679         * modules/iconv_open: Likewise.
38680         * modules/inttypes: Likewise.
38681         * modules/locale: Likewise.
38682         * modules/math: Likewise.
38683         * modules/netinet_in: Likewise.
38684         * modules/search: Likewise.
38685         * modules/signal: Likewise.
38686         * modules/stdint: Likewise.
38687         * modules/stdio: Likewise.
38688         * modules/stdlib: Likewise.
38689         * modules/string: Likewise.
38690         * modules/sys_select: Likewise.
38691         * modules/sys_socket: Likewise.
38692         * modules/sys_stat: Likewise.
38693         * modules/sys_time: Likewise.
38694         * modules/sysexits: Likewise.
38695         * modules/time: Likewise.
38696         * modules/unistd: Likewise.
38697         * modules/wchar: Likewise.
38698         * modules/wctype: Likewise.
38699         * modules/sys_stat: Change maintainer to "all".
38700         * modules/unistd: Likewise.
38701
38702 2007-06-20  Karl Berry  <karl@gnu.org>
38703
38704         * config/srclist.txt: track www changes in license files.
38705
38706 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
38707
38708         * build-aux/bootstrap: Remove stray dot.
38709         Make sure build_aux settings are honored when linking
38710         gnulib_extra_files.
38711
38712 2007-06-19  Eric Blake  <ebb9@byu.net>
38713
38714         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
38715         Allow compilation on cygwin.
38716
38717 2007-06-19  Jim Meyering  <jim@meyering.net>
38718
38719         xreadlink-with-size: Remove module.  No longer used.
38720         Ex-callers now use xreadlink or mreadlink-with-size.
38721         * modules/xreadlink-with-size: Remove module.
38722         * lib/xreadlink-with-size.c: Remove file.
38723         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
38724         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
38725         just before the function definition *is* accurate.
38726
38727         Eliminate one way canonicalize_filename_mode could exit.
38728         * lib/canonicalize.c (canonicalize_filename_mode):
38729         Use mreadlink_with_size, not xreadlink_with_size.
38730
38731 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
38732
38733         Detect porting problems to FreeBSD/arm, which has time_t wider than
38734         long int.  Original problem reported for GNU diff by Xin Li in
38735         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
38736         * modules/getdate (Depends-on): Add intprops, verify.
38737         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
38738         is an integer type no wider than long int.
38739
38740 2007-06-18  Jim Meyering  <jim@meyering.net>
38741
38742         New module: mreadlink-with-size.
38743         * MODULES.html.sh: Add mreadlink-with-size.
38744         * modules/mreadlink-with-size: New module
38745         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
38746         not xreadlink-with-size.
38747         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
38748
38749 2007-06-16  Bruno Haible  <bruno@clisp.org>
38750
38751         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
38752         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
38753         Reported by Gary V. Vaughan <gary@gnu.org>.
38754
38755 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
38756
38757         Revamp lchown so that it lives in unistd.h where it belongs.
38758         * lib/lchown.h: Remove.
38759         * lib/dirchownmod.c: Don't include lib/lchown.h.
38760         * lib/fchownat.c: Likewise.
38761         * lib/openat.c: Likewise.
38762         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
38763         does not follow symlinks.
38764         (EOPNOTSUPP): Define if not defined.
38765         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
38766         is defined to 0.
38767         (lchown): New decl.
38768         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
38769         Do not check for lchown decl.
38770         Set REPLACE_LCHOWN.
38771         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
38772         REPLACE_LCHOWN.
38773         * modules/chown: Make it clear it follows symlinks.
38774         * modules/lchown: Make it clear it doesn't follow symlinks.
38775         (Files): Remove lib/lchown.h
38776         (Depends-on): Add unistd.
38777         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
38778         (Include): Include <unistd.h>, not "lchown.h".
38779         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
38780         REPLACE_LCHOWN.
38781
38782 2007-06-15  Jim Meyering  <jim@meyering.net>
38783
38784         Change license (GPL to LGPL) of fsusage and dependents.
38785         * modules/fsusage (License): Change to LGPL.
38786         * modules/full-read (License): Likewise.
38787         * modules/full-write (License): Likewise.
38788         * modules/safe-read (License): Likewise.
38789         * modules/safe-write (License): Likewise.
38790
38791 2007-06-14  Ben Pfaff  <blp@gnu.org>
38792
38793         Missing part of allocsa -> malloca transition.
38794         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
38795         gl_MALLOCA.
38796
38797 2007-06-12  Bruno Haible  <bruno@clisp.org>
38798
38799         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
38800         to ia64, x86_64, i386.
38801         Reported by Eric Blake.
38802
38803 2007-06-12  Bruno Haible  <bruno@clisp.org>
38804
38805         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
38806         cross-compiling to x86_64.
38807
38808 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
38809
38810         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
38811         glitch reported by Ralf Wildenhues in
38812         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
38813
38814         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
38815         Vin Shelton.
38816
38817 2007-06-11  Bruno Haible  <bruno@clisp.org>
38818
38819         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
38820         replacement string.
38821         Reported by Eric Blake.
38822
38823 2007-06-10  Bruno Haible  <bruno@clisp.org>
38824
38825         Prepare vasnprintf code for use with Unicode strings.
38826         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
38827         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
38828         TYPE_U32_STRING.
38829         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
38830         a_u32_string variants.
38831         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
38832         * lib/printf-args.c: Don't include config.h and the specification
38833         header if PRINTF_FETCHARGS is already defined.
38834         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
38835         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
38836         TYPE_U16_STRING, TYPE_U32_STRING.
38837         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
38838         u16_directive, u16_directives, u32_directive, u32_directives): New
38839         types.
38840         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
38841         New declarations.
38842         * lib/printf-parse.c: Don't include config.h and the specification
38843         header if PRINTF_PARSE is already defined. Eliminate the set of
38844         parameters for WIDE_CHAR_VERSION; the user of this file must provide
38845         them now. Include c-ctype.h.
38846         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
38847         directive and CHAR_T_ONLY_ASCII.
38848         * lib/vasnprintf.c: Don't include config.h and the specification header
38849         if VASNPRINTF is already defined.
38850         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
38851         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
38852         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
38853         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
38854         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
38855         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
38856         code accordingly.
38857         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
38858         pad_ourselves also in this case, with the 'c' and 's' directives, and
38859         with a different notion of "width".
38860         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
38861
38862 2007-06-10  Bruno Haible  <bruno@clisp.org>
38863
38864         * modules/unistr/u32-mbsnlen: New file.
38865         * lib/unistr/u32-mbsnlen.c: New file.
38866
38867         * modules/unistr/u16-mbsnlen: New file.
38868         * lib/unistr/u16-mbsnlen.c: New file.
38869
38870         * modules/unistr/u8-mbsnlen: New file.
38871         * lib/unistr/u8-mbsnlen.c: New file.
38872
38873         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
38874         declarations.
38875
38876 2007-06-10  Bruno Haible  <bruno@clisp.org>
38877
38878         * lib/string_.h (mbsnlen): New declaration.
38879         * lib/mbsnlen.c: New file.
38880         * m4/mbsnlen.m4: New file.
38881         * modules/mbsnlen: New file.
38882         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
38883         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
38884         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
38885
38886 2007-06-10  Bruno Haible  <bruno@clisp.org>
38887
38888         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
38889
38890 2007-06-10  Bruno Haible  <bruno@clisp.org>
38891
38892         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
38893         * lib/mbuiter.h: Likewise.
38894
38895 2007-06-10  Bruno Haible  <bruno@clisp.org>
38896
38897         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
38898         declaration.
38899
38900 2007-06-10  Karl Berry  <karl@gnu.org>
38901
38902         * config/srclist.txt: remove gettext entries, Bruno prefers
38903         to update individually.
38904
38905 2007-06-10  Bruno Haible  <bruno@clisp.org>
38906
38907         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
38908         'maxlen'. Ensure only length + width bytes are allocated, not
38909         length + 1 + width.
38910
38911 2007-06-09  Bruno Haible  <bruno@clisp.org>
38912
38913         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
38914         (CHAR_T): Remove macro.
38915         (VASNPRINTF): Update.
38916
38917 2007-06-09  Bruno Haible  <bruno@clisp.org>
38918
38919         * MODULES.html.sh (Unicode string functions): Add the new modules.
38920
38921         * modules/uniconv/u32-conv-to-enc: New file.
38922         * lib/uniconv/u32-conv-to-enc.c: New file.
38923         * modules/uniconv/u32-conv-to-enc-tests: New file.
38924         * tests/uniconv/test-u32-conv-to-enc.c: New file.
38925
38926         * modules/uniconv/u16-conv-to-enc: New file.
38927         * lib/uniconv/u16-conv-to-enc.c: New file.
38928         * lib/uniconv/u-conv-to-enc.h: New file.
38929         * modules/uniconv/u16-conv-to-enc-tests: New file.
38930         * tests/uniconv/test-u16-conv-to-enc.c: New file.
38931
38932         * modules/uniconv/u8-conv-to-enc: New file.
38933         * lib/uniconv/u8-conv-to-enc.c: New file.
38934         * modules/uniconv/u8-conv-to-enc-tests: New file.
38935         * tests/uniconv/test-u8-conv-to-enc.c: New file.
38936
38937         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
38938         u32_conv_to_encoding): New declarations.
38939
38940 2007-06-09  Bruno Haible  <bruno@clisp.org>
38941
38942         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
38943
38944 2007-06-09  Bruno Haible  <bruno@clisp.org>
38945
38946         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
38947         * modules/malloca: Renamed from modules/allocsa, updated.
38948         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
38949         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
38950         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
38951         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
38952         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
38953         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
38954         * modules/xmalloca: Renamed from modules/xallocsa, updated.
38955         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
38956         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
38957         * modules/c-strcasestr (Depends-on): Update.
38958         * lib/c-strcasestr.c: Update.
38959         * modules/c-strstr (Depends-on): Update.
38960         * lib/c-strstr.c: Update.
38961         * modules/canonicalize-lgpl (Depends-on): Update.
38962         * lib/canonicalize-lgpl.c: Update.
38963         * modules/clean-temp (Depends-on): Update.
38964         * lib/clean-temp.c: Update.
38965         * modules/csharpcomp (Depends-on): Update.
38966         * lib/csharpcomp.c: Update.
38967         * modules/csharpexec (Depends-on): Update.
38968         * lib/csharpexec.c: Update.
38969         * modules/javacomp (Depends-on): Update.
38970         * lib/javacomp.c: Update.
38971         * modules/javaexec (Depends-on): Update.
38972         * lib/javaexec.c: Update.
38973         * modules/mbscasestr (Depends-on): Update.
38974         * lib/mbscasestr.c: Update.
38975         * modules/mbsstr (Depends-on): Update.
38976         * lib/mbsstr.c: Update.
38977         * modules/setenv (Depends-on): Update.
38978         * lib/setenv.c: Update.
38979         * modules/strcasestr (Depends-on): Update.
38980         * lib/strcasestr.c: Update.
38981         * modules/striconveha (Depends-on): Update.
38982         * lib/striconveha.c: Update.
38983         * modules/relocatable-prog-wrapper (Files): Update.
38984         * lib/relocwrapper.c: Update.
38985         * build-aux/install-reloc: Update.
38986         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
38987
38988 2007-06-08  Bruno Haible  <bruno@clisp.org>
38989
38990         Port to uClibc.
38991         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
38992         * lib/fpurge.c (fpurge): Likewise.
38993         * lib/freading.c (freading): Likewise.
38994         * lib/fseeko.c (rpl_fseeko): Likewise.
38995         * lib/fseterr.c (fseterr): Likewise.
38996         * lib/fwriting.c (fwriting): Likewise.
38997         * tests/test-fflush.c (main): Avoid a failure on uClibc.
38998
38999 2007-06-08  Bruno Haible  <bruno@clisp.org>
39000
39001         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
39002         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
39003         * modules/gettext (Files): Add m4/intlmacosx.m4.
39004
39005 2007-06-07  Bruno Haible  <bruno@clisp.org>
39006
39007         * modules/localename-tests: New file.
39008         * tests/test-localename.c: New file.
39009
39010         New module 'localename'.
39011         * lib/localename.h: New file.
39012         * lib/localename.c: New file, from GNU gettext.
39013         * m4/localename.m4: New file.
39014         * modules/localename: New file.
39015
39016 2007-06-07  Bruno Haible  <bruno@clisp.org>
39017
39018         Work around the lack of <wchar.h> on some builds of uClibc.
39019         * doc/headers/wchar.texi: Update.
39020         * lib/wchar_.h: Include <wchar.h> only if it exists.
39021         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
39022         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
39023         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
39024         doesn't exist.
39025         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
39026         * modules/mbfile (Depends-on): Add wchar.
39027         * modules/mbiter (Depends-on): Likewise.
39028         * modules/mbuiter (Depends-on): Likewise.
39029         Reported by Simon Josefsson.
39030
39031 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
39032
39033         Work around problem reported by Steven M. Schweda in
39034         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
39035         Tru64 5.1B with the Compaq compiler environment installed declares
39036         an 'isblank' function but does not define it in the C library.
39037         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
39038         * lib/regex_internal.h (isblank): Likewise.
39039         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
39040         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
39041
39042 2007-06-05  Bruno Haible  <bruno@clisp.org>
39043
39044         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
39045         ia64.
39046         * modules/printf-safe: New file.
39047         * modules/fprintf-posix (Depends-on): Add printf-safe.
39048         * modules/printf-posix (Depends-on): Likewise.
39049         * modules/snprintf-posix (Depends-on): Likewise.
39050         * modules/sprintf-posix (Depends-on): Likewise.
39051         * modules/vasnprintf-posix (Depends-on): Likewise.
39052         * modules/vasprintf-posix (Depends-on): Likewise.
39053         * modules/vfprintf-posix (Depends-on): Likewise.
39054         * modules/vprintf-posix (Depends-on): Likewise.
39055         * modules/vsnprintf-posix (Depends-on): Likewise.
39056         * modules/vsprintf-posix (Depends-on): Likewise.
39057         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
39058         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
39059         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
39060         "no" on i386, x86_64, ia64.
39061         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
39062         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
39063         on i386, x86_64, ia64.
39064         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
39065         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
39066         on i386, x86_64, ia64.
39067         * tests/test-vasnprintf-posix.c: Include float.h.
39068         (LDBL80_WORDS): New macro.
39069         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
39070         on i386, x86_64, ia64.
39071         * tests/test-vasprintf-posix.c: Include float.h.
39072         (LDBL80_WORDS): New macro.
39073         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
39074         on i386, x86_64, ia64.
39075         * tests/test-snprintf-posix.c: Include float.h.
39076         * tests/test-sprintf-posix.c: Likewise.
39077         * tests/test-vsnprintf-posix.c: Likewise.
39078         * tests/test-vsprintf-posix.c: Likewise.
39079
39080 2007-06-05  Bruno Haible  <bruno@clisp.org>
39081
39082         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
39083         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
39084         non-IEEE numbers on i386, x86_64, ia64.
39085         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
39086         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
39087         * tests/test-isnanl.h: Include float.h.
39088         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
39089
39090 2007-06-05  Bruno Haible  <bruno@clisp.org>
39091
39092         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
39093         also the %a / %A. Handle the %a / %A code before this extra handling.
39094
39095 2007-06-05  Bruno Haible  <bruno@clisp.org>
39096
39097         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
39098         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
39099
39100 2007-06-05  Bruno Haible  <bruno@clisp.org>
39101
39102         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
39103         typo in variable name.
39104
39105 2007-06-05  Eric Blake  <ebb9@byu.net>
39106
39107         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
39108         Reported by Simon Josefsson.
39109
39110 2007-06-04  Bruno Haible  <bruno@clisp.org>
39111
39112         Avoid test failures on some PowerPC platforms.
39113         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
39114         Define differently for PowerPC.
39115         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
39116         Reported by Gary V. Vaughan <gary@gnu.org>.
39117
39118 2007-06-02  Bruno Haible  <bruno@clisp.org>
39119
39120         Fix test-stdint failure on FreeBSD/ia64.
39121         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
39122         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
39123         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
39124         * doc/headers/stdint.texi: Update.
39125
39126 2007-06-01  Bruno Haible  <bruno@clisp.org>
39127
39128         * tests/test-binary-io.c (main): Pass a third argument to open().
39129         Reported by Gary V. Vaughan <gary@gnu.org>.
39130
39131 2007-06-01  Bruno Haible  <bruno@clisp.org>
39132
39133         * doc/functions/frexpl.texi: Update for mingw.
39134
39135 2007-06-01  Bruno Haible  <bruno@clisp.org>
39136
39137         * tests/test-lseek.c (main): Disable test of errno for invalid third
39138         argument.
39139         * doc/functions/lseek.texi: Update.
39140         Reported by Gary V. Vaughan <gary@gnu.org>.
39141
39142 2007-05-28  Bruno Haible  <bruno@clisp.org>
39143
39144         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
39145
39146 2007-05-31  Eric Blake  <ebb9@byu.net>
39147
39148         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
39149         cross compiling.
39150
39151 2007-05-30  Eric Blake  <ebb9@byu.net>
39152         and Bruno Haible  <bruno@clisp.org>
39153
39154         Work around mingw test failures exposed by m4-1.4.9b.
39155         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
39156         * tests/test-unistd.c: Disable uid_t and git_t tests for the
39157         moment.
39158
39159 2007-05-30  Bruno Haible  <bruno@clisp.org>
39160
39161         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
39162         assuming that they are closed. Needed on HP-UX 11.
39163
39164 2007-05-29  Bruno Haible  <bruno@clisp.org>
39165
39166         Fix a problem with #include_next.
39167         * lib/dirent_.h: Split the double-inclusion guard.
39168         * lib/fcntl_.h: Likewise.
39169         * lib/float_.h: Likewise.
39170         * lib/iconv_.h: Likewise.
39171         * lib/inttypes_.h: Likewise.
39172         * lib/locale_.h: Likewise.
39173         * lib/math_.h: Likewise.
39174         * lib/netinet_in_.h: Likewise.
39175         * lib/search_.h: Likewise.
39176         * lib/signal_.h: Likewise.
39177         * lib/stdint_.h: Likewise.
39178         * lib/stdio_.h: Likewise.
39179         * lib/stdlib_.h: Likewise.
39180         * lib/string_.h: Likewise.
39181         * lib/sys_select_.h: Likewise.
39182         * lib/sys_socket_.h: Likewise.
39183         * lib/sys_stat_.h: Likewise.
39184         * lib/sys_time_.h: Likewise.
39185         * lib/sysexits_.h: Likewise.
39186         * lib/time_.h: Likewise.
39187         * lib/unistd_.h: Likewise.
39188         * lib/wchar_.h: Likewise.
39189         * lib/wctype_.h: Likewise.
39190
39191 2007-05-29  Bruno Haible  <bruno@clisp.org>
39192
39193         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
39194         for the moment.
39195
39196 2007-05-29  Bruno Haible  <bruno@clisp.org>
39197
39198         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
39199         invocation.
39200         Reported by Eric Blake.
39201
39202 2007-05-29  Bruno Haible  <bruno@clisp.org>
39203
39204         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
39205         compiling case.
39206
39207 2007-05-29  Eric Blake  <ebb9@byu.net>
39208             Bruno Haible  <bruno@clisp.org>
39209
39210         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
39211         cross compiles.
39212
39213 2007-05-28  Eric Blake  <ebb9@byu.net>
39214
39215         * modules/closein-tests (test_closein_LDADD): Support test on
39216         cygwin with libtool.
39217
39218 2007-05-28  Bruno Haible  <bruno@clisp.org>
39219
39220         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
39221         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
39222         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
39223         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
39224         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
39225         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
39226         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
39227         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
39228         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
39229
39230 2007-05-28  Eric Blake  <ebb9@byu.net>
39231
39232         Unconditionally include <config.h> in unit tests.
39233         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
39234         * tests/test-allocsa.c, tests/test-arcfour.c,
39235         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
39236         tests/test-array_list.c, tests/test-array_oset.c,
39237         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
39238         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
39239         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
39240         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
39241         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
39242         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
39243         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
39244         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
39245         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
39246         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
39247         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
39248         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
39249         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
39250         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
39251         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
39252         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
39253         test-md5.c, test-memmem.c, test-printf-posix.c,
39254         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
39255         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
39256         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
39257         test-strcasestr.c, test-striconv.c, test-striconveh.c,
39258         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
39259         test-vasnprintf-posix2.c, test-vasnprintf.c,
39260         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
39261         test-vfprintf-posix.c, test-vprintf-posix.c,
39262         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
39263         test-xvasprintf.c: Likewise.
39264
39265 2007-05-28  Bruno Haible  <bruno@clisp.org>
39266
39267         * gnulib-tool (func_import): Remember the --with-tests command-line
39268         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
39269         Reported by Eric Blake.
39270
39271 2007-05-28  Bruno Haible  <bruno@clisp.org>
39272
39273         * modules/ftell-tests: New file.
39274         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
39275         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
39276
39277         * lib/ftell.c: New file.
39278         * modules/ftell: New file.
39279         * m4/ftell.m4: New file.
39280         * doc/functions/ftell.texi: Update.
39281         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
39282         REPLACE_FTELL.
39283         * lib/stdio_.h (rpl_ftell): New declaration.
39284         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
39285         REPLACE_FTELL.
39286
39287 2007-05-28  Eric Blake  <ebb9@byu.net>
39288
39289         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
39290
39291 2007-05-28  Bruno Haible  <bruno@clisp.org>
39292
39293         * modules/fseek-tests: New file.
39294         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
39295         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
39296
39297         * lib/fseek.c: New file.
39298         * modules/fseek: New file.
39299         * m4/fseek.m4: New file.
39300         * doc/functions/fseek.texi: Update.
39301         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
39302         REPLACE_FSEEK.
39303         * lib/stdio_.h (rpl_fseek): New declaration.
39304         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
39305         REPLACE_FSEEK.
39306
39307 2007-05-28  Bruno Haible  <bruno@clisp.org>
39308
39309         * lib/stdio_.h (fflush): More comments.
39310
39311 2007-05-28  Bruno Haible  <bruno@clisp.org>
39312
39313         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
39314         runtime test.
39315
39316 2007-05-28  Eric Blake  <ebb9@byu.net>
39317
39318         Improve lseek module.
39319         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
39320         * lib/unistd_.h (lseek): Scale back link warning message.
39321         * tests/test-lseek.c: Beef up test.
39322         * tests/test-lseek.sh: Exercise more facets of lseek.
39323         Reported by Bruno Haible.
39324
39325 2007-05-28  Bruno Haible  <bruno@clisp.org>
39326
39327         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
39328         to define.
39329
39330 2007-05-27  Bruno Haible  <bruno@clisp.org>
39331
39332         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
39333
39334 2007-05-27  Bruno Haible  <bruno@clisp.org>
39335
39336         * modules/openmp: New file.
39337         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
39338         Noah Misch.
39339
39340 2007-05-26  Bruno Haible  <bruno@clisp.org>
39341
39342         * modules/chdir-long (Depends-on): Add fchdir.
39343         * modules/chdir-safer (Depends-on): Likewise.
39344         * modules/fts (Depends-on): Likewise.
39345         * modules/fts-lgpl (Depends-on): Likewise.
39346         * modules/openat (Depends-on): Likewise.
39347         * modules/savewd (Depends-on): Likewise.
39348
39349 2007-05-24  Eric Blake  <ebb9@byu.net>
39350
39351         Fix lseek on mingw.
39352         * modules/lseek: New module.
39353         * m4/lseek.m4: New file.
39354         * lib/lseek.c: New file.
39355         * modules/lseek-tests: New file.
39356         * tests/test-lseek.c: New file.
39357         * tests/test-lseek.sh: New file.
39358         * MODULES.html.sh: Document lseek module.
39359         * modules/fflush (Depends-on): Add lseek, fseeko.
39360         * modules/fseeko (Depends-on): Likewise.
39361         * modules/ftello (Depends-on): Likewise.
39362         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
39363         broken.
39364         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
39365         broken.
39366         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
39367         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
39368         * lib/ftello.c (rpl_ftello): Likewise.
39369         * tests/test-fseeko.c (main): Test this.
39370         * tests/test-fseeko.sh: Likewise.
39371         * tests/test-ftello.c (main): Likewise.
39372         * tests/test-ftello.sh: Likewise.
39373         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
39374         implies replacing fseek.
39375         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
39376         HAVE_FTELLO.
39377         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
39378         * modules/unistd (Makefile.am): Likewise.
39379         * lib/unistd_.h (lseek): Declare a replacement.
39380         * doc/functions/lseek.texi (lseek): Document this fix.
39381         * doc/functions/fseek.texi (fseek): Likewise.
39382         * doc/functions/ftell.texi (ftell): Likewise.
39383
39384 2007-05-24  Bruno Haible  <bruno@clisp.org>
39385
39386         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
39387         in the printed representation of a NaN.
39388         * tests/test-vasprintf-posix.c (test_function): Likewise.
39389         * tests/test-snprintf-posix.h (test_function): Likewise.
39390         * tests/test-sprintf-posix.h (test_function): Likewise.
39391         Reported by Eric Blake.
39392
39393 2007-05-23  Eric Blake  <ebb9@byu.net>
39394
39395         Fix fseeko/ftello on cygwin 1.5.24.
39396         * doc/functions/fseeko.texi (fseeko): Document the fix.
39397         * doc/functions/ftello.texi (ftello): Document the fix.
39398         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
39399         * doc/functions/stdout.text (stdout): New file.
39400         * doc/functions/stderr.text (stderr): New file.
39401         * doc/gnulib.texi (Function Substitutes): Use new files.
39402         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
39403         prior to 1.7.0.
39404         * tests/test-ftello.c (main): Likewise for ftello.
39405         * tests/test-fseeko.sh: New file.
39406         * tests/test-ftello.sh: New file.
39407         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
39408         with seekable stdin.
39409         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
39410         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
39411         (gl_REPLACE_FSEEKO): New macro.
39412         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
39413         * modules/fseeko (Files): Distribute fseeko.c.
39414         * modules/ftello (Files): Distribute ftello.c.
39415         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
39416         mode.
39417         * lib/ftello.c (rpl_ftello): New file.
39418         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
39419         fseeko, ftello.
39420         (gl_STDIN_LARGE_OFFSET): New macro.
39421         * modules/stdio (Makefile.am): Perform the replacement.
39422         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
39423
39424 2007-05-23  Bruno Haible  <bruno@clisp.org>
39425
39426         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
39427         GNULIB_POSIXCHECK is defined.
39428
39429 2007-05-21  Bruno Haible  <bruno@clisp.org>
39430
39431         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
39432         Check also the output for NaN arguments. When cross-compiling, guess
39433         no on IRIX.
39434         * lib/vasnprintf.c: Update comments.
39435         * tests/test-vasnprintf-posix.c (strisnan): New function.
39436         (test_function): Use it.
39437         * tests/test-vasprintf-posix.c (strisnan): New function.
39438         (test_function): Use it.
39439         * tests/test-snprintf-posix.h (strisnan): New function.
39440         (test_function): Use it.
39441         * tests/test-sprintf-posix.h (strisnan): New function.
39442         (test_function): Use it.
39443         Reported by Eric Blake.
39444
39445 2007-05-20  Bruno Haible  <bruno@clisp.org>
39446
39447         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
39448         numbers that fails on BeOS.
39449         * doc/functions/frexpl.texi: Update.
39450
39451 2007-05-20  Jim Meyering  <jim@meyering.net>
39452
39453         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
39454         forced upon us by glibc-2.6.
39455
39456 2007-05-20  Bruno Haible  <bruno@clisp.org>
39457
39458         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
39459         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
39460         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
39461         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
39462         NEED_PRINTF_INFINITE.
39463         (is_infinitel): New function.
39464         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
39465         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
39466         gl_PREREQ_VASNPRINTF_INFINITE.
39467         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
39468         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39469         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
39470         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
39471         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
39472         gl_PREREQ_VASNPRINTF_INFINITE.
39473         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39474         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39475         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39476         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39477         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39478         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39479         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39480         * doc/functions/fprintf.texi: Update.
39481         * doc/functions/printf.texi: Update.
39482         * doc/functions/snprintf.texi: Update.
39483         * doc/functions/sprintf.texi: Update.
39484         * doc/functions/vfprintf.texi: Update.
39485         * doc/functions/vprintf.texi: Update.
39486         * doc/functions/vsnprintf.texi: Update.
39487         * doc/functions/vsprintf.texi: Update.
39488
39489 2007-05-20  Bruno Haible  <bruno@clisp.org>
39490
39491         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
39492         was not found in libc.
39493         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
39494
39495 2007-05-20  Bruno Haible  <bruno@clisp.org>
39496
39497         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
39498         printed as "-nan" instead of "nan".
39499         * tests/test-vasprintf-posix.c (test_function): Likewise.
39500         * tests/test-snprintf-posix.h (test_function): Likewise.
39501         * tests/test-sprintf-posix.h (test_function): Likewise.
39502         Needed for HP-UX 11.
39503
39504 2007-05-20  Jim Meyering  <jim@meyering.net>
39505
39506         Fix buggy test for the fchownat-deref bug.
39507         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
39508         symlink required for the run-test.  Without it, this test would
39509         always declare that fchownat doesn't work, and client code would
39510         unnecessarily use the replacement function with fixed libc.
39511         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
39512         Reported by Greg Schafer.
39513
39514 2007-05-19  Bruno Haible  <bruno@clisp.org>
39515
39516         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
39517         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
39518         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
39519         Needed for IRIX 6.5 and Solaris 2.5.1.
39520
39521 2007-05-19  Bruno Haible  <bruno@clisp.org>
39522
39523         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
39524         (test_function): Skip tests involving -0.0 on platforms where
39525         -0.0 = 0.0.
39526         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
39527         (test_function): Skip tests involving -0.0 on platforms where
39528         -0.0 = 0.0.
39529         * tests/test-snprintf-posix.h (have_minus_zero): New function.
39530         (test_function): Skip tests involving -0.0 on platforms where
39531         -0.0 = 0.0.
39532         * tests/test-sprintf-posix.h (have_minus_zero): New function.
39533         (test_function): Skip tests involving -0.0 on platforms where
39534         -0.0 = 0.0.
39535         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
39536         tests.
39537         * tests/test-printf-posix.h (test_function): Likewise.
39538         * tests/test-printf-posix.output: Remove all -0.0 related results.
39539         Needed for IRIX 6.5.
39540
39541 2007-05-19  Bruno Haible  <bruno@clisp.org>
39542
39543         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
39544         printed as "nan0x7fffffff" instead of "nan".
39545         * tests/test-vasprintf-posix.c (test_function): Likewise.
39546         * tests/test-snprintf-posix.h (test_function): Likewise.
39547         * tests/test-sprintf-posix.h (test_function): Likewise.
39548         * tests/test-fprintf-posix.h (NaN): Remove macro.
39549         (test_function): Remove all NaN related tests.
39550         * tests/test-printf-posix.h (NaN): Remove macro.
39551         (test_function): Remove all NaN related tests.
39552         * tests/test-printf-posix.output: Remove all NaN related results.
39553         Needed for IRIX 6.5.
39554
39555 2007-05-19  Bruno Haible  <bruno@clisp.org>
39556
39557         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
39558         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
39559
39560 2007-05-19  Bruno Haible  <bruno@clisp.org>
39561
39562         * lib/float_.h: New file.
39563         * m4/float_h.m4: New file.
39564         * modules/float: New file.
39565         * modules/isnanl (Dependencies): Add float.
39566         * modules/isnanl-nolibm (Dependencies): Likewise.
39567         * modules/mathl (Dependencies): Likewise.
39568         * modules/printf-frexpl (Dependencies): Likewise.
39569         * modules/signbit (Dependencies): Likewise.
39570         * modules/vasnprintf (Dependencies): Likewise.
39571         * doc/headers/float.texi: Update.
39572
39573 2007-05-19  Jim Meyering  <jim@meyering.net>
39574
39575         * lib/utimens.c (gl_futimens): Rename from futimens,
39576         now that glibc-2.6 declares futimens.
39577         * lib/utimens.h: Likewise.
39578
39579 2007-05-19  Bruno Haible  <bruno@clisp.org>
39580
39581         Avoid test failures on mingw.
39582         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
39583         * tests/test-printf-posix.sh: Likewise.
39584         * tests/test-vfprintf-posix.sh: Likewise.
39585         * tests/test-vprintf-posix.sh: Likewise.
39586
39587 2007-05-19  Bruno Haible  <bruno@clisp.org>
39588
39589         Fix *printf result for NaN, Inf, -0.0 on mingw.
39590         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
39591         * lib/vasnprintf.c: Include math.h and isnan.h.
39592         (is_infinite_or_zero): New function.
39593         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
39594         values in the %f, %F, %e, %E, %g, %G directives.
39595         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
39596         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39597         gl_PRINTF_INFINITE and test its result. Invoke
39598         gl_PREREQ_VASNPRINTF_INFINITE.
39599         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39600         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39601         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39602         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39603         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39604         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39605         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39606         * doc/functions/fprintf.texi: Update.
39607         * doc/functions/printf.texi: Update.
39608         * doc/functions/snprintf.texi: Update.
39609         * doc/functions/sprintf.texi: Update.
39610         * doc/functions/vfprintf.texi: Update.
39611         * doc/functions/vprintf.texi: Update.
39612         * doc/functions/vsnprintf.texi: Update.
39613         * doc/functions/vsprintf.texi: Update.
39614
39615 2007-05-19  Bruno Haible  <bruno@clisp.org>
39616
39617         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
39618         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
39619         Instead of multiplying with 10^k, set extra_zeroes to k.
39620         (scale10_round_long_double): Remove function.
39621
39622 2007-05-18  Bruno Haible  <bruno@clisp.org>
39623
39624         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
39625         introduced on 2007-05-06.
39626
39627 2007-05-18  Bruno Haible  <bruno@clisp.org>
39628
39629         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
39630         %g directives.
39631         * tests/test-vasprintf-posix.c (test_function): Likewise.
39632         * tests/test-snprintf-posix.h (test_function): Likewise.
39633         * tests/test-sprintf-posix.h (test_function): Likewise.
39634
39635 2007-05-18  Bruno Haible  <bruno@clisp.org>
39636
39637         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
39638         (strmatch): New function.
39639         (test_function): Test the %f directive on numbers of various exponents.
39640         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
39641         (strmatch): New function.
39642         (test_function): Test the %f directive on numbers of various exponents.
39643         * tests/test-snprintf-posix.h (strmatch): New function.
39644         (test_function): Test the %f directive on numbers of various exponents.
39645         * tests/test-sprintf-posix.h (strmatch): New function.
39646         (test_function): Test the %f directive on numbers of various exponents.
39647         * tests/test-snprintf-posix.c (SIZEOF): New macro.
39648         * tests/test-sprintf-posix.c (SIZEOF): New macro.
39649         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
39650         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
39651
39652 2007-05-18  Bruno Haible  <bruno@clisp.org>
39653
39654         Add support for 'long double' number output.
39655         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
39656         * lib/vasnprintf.c: Include math.h and float+.h.
39657         (mp_limb_t): New type.
39658         (GMP_LIMB_BITS): New macro.
39659         (mp_twolimb_t): New type.
39660         (GMP_TWOLIMB_BITS): New macro.
39661         (mpn_t): New type.
39662         (multiply, divide, convert_to_decimal, decode_long_double,
39663         scale10_round_long_double, scale10_round_decimal_long_double,
39664         floorlog10l): New functions.
39665         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
39666         for the %f, %F, %e, %E, %g, %G directives.
39667         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
39668         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39669         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
39670         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
39671         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39672         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39673         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39674         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39675         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39676         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39677         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39678         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
39679         * modules/snprintf-posix (Depends-on): Likewise.
39680         * modules/sprintf-posix (Depends-on): Likewise.
39681         * modules/vasnprintf-posix (Depends-on): Likewise.
39682         * modules/vasprintf-posix (Depends-on): Likewise.
39683         * modules/vfprintf-posix (Depends-on): Likewise.
39684         * modules/vsnprintf-posix (Depends-on): Likewise.
39685         * modules/vsprintf-posix (Depends-on): Likewise.
39686         * modules/vasnprintf (Files): Add lib/float+.h.
39687         * doc/functions/fprintf.texi: Update.
39688         * doc/functions/printf.texi: Update.
39689         * doc/functions/snprintf.texi: Update.
39690         * doc/functions/sprintf.texi: Update.
39691         * doc/functions/vfprintf.texi: Update.
39692         * doc/functions/vprintf.texi: Update.
39693         * doc/functions/vsnprintf.texi: Update.
39694         * doc/functions/vsprintf.texi: Update.
39695
39696 2007-05-18  Bruno Haible  <bruno@clisp.org>
39697
39698         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
39699
39700 2007-05-18  Bruno Haible  <bruno@clisp.org>
39701
39702         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
39703         for printing 64-bit integers. Needed for mingw.
39704
39705 2007-05-18  Bruno Haible  <bruno@clisp.org>
39706
39707         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
39708         gl_FUNC_FREXPL_WORKS.
39709         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
39710
39711 2007-05-18  Bruno Haible  <bruno@clisp.org>
39712
39713         * modules/frexpl-nolibm-tests: New file.
39714
39715         * modules/frexpl-nolibm: New file.
39716         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
39717
39718 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
39719
39720         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
39721         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
39722         GCC 4.2, which otherwise issues a lot of warnings.
39723         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
39724         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
39725         Likewise.
39726         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
39727         * modules/iconv_open (iconv.h): Likewise.
39728         * modules/locale (locale.h): Likewise.
39729         * modules/netinet_in (netinet/in.h): Likewise.
39730         * modules/sys_select (sys_select.h): Likewise.
39731         * modules/sys_socket (sys/socket.h): Likewise.
39732         * modules/sys_stat (sys/stat.h): Likewise.
39733         * modules/sysexits (sysexits.h): Likewise.
39734         * modules/unistd (unistd.h): Likewise.
39735
39736 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39737
39738         * modules/closein-tests (Makefile.am): Distribute
39739         `test-closein.sh'.
39740
39741 2007-05-17  Bruno Haible  <bruno@clisp.org>
39742
39743         * tests/test-printf-posix.output: Renamed from
39744         tests/test-fprintf-posix.out.
39745         * modules/fprintf-posix-tests: Update.
39746         * modules/printf-posix-tests: Update.
39747         * modules/vfprintf-posix-tests: Update.
39748         * modules/vprintf-posix-tests: Update.
39749         * tests/test-fprintf-posix.sh: Update.
39750         * tests/test-printf-posix.sh: Update.
39751         * tests/test-vfprintf-posix.sh: Update.
39752         * tests/test-vprintf-posix.sh: Update.
39753         Reported by Ralf Wildenhues.
39754
39755 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
39756
39757         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
39758         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
39759         GCC 4.2, which otherwise issues a lot of warnings.
39760         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
39761         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
39762         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
39763         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
39764         it should no longer be needed.
39765         * lib/string_.h: Likewise.
39766         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
39767         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
39768         * modules/inttypes (inttypes.h): Likewise.
39769         * modules/math (math.h): Likewise.
39770         * modules/search (search.h): Likewise.
39771         * modules/signal (signal.h): Likewise.
39772         * modules/stdint (stdint.h): Likewise.
39773         * modules/stdio (stdio.h): Likewise.
39774         * modules/stdlib (stdlib.h): Likewise.
39775         * modules/string (string.h): Likewise.
39776         * modules/sys_time (sys/time.h): Likewise.
39777         * modules/time (time.h): Likewise.
39778         * modules/wchar (wchar.h): Likewise.
39779         * modules/wctype (wtype.h): Likewise.
39780
39781 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
39782
39783         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
39784
39785 2007-05-13  Bruno Haible  <bruno@clisp.org>
39786
39787         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
39788         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
39789         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
39790         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
39791         (gl_PREREQ_STRTOK_R): Don't require it here.
39792
39793 2007-05-13  Bruno Haible  <bruno@clisp.org>
39794
39795         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
39796         when used in C++ mode.
39797
39798 2007-05-12  Bruno Haible  <bruno@clisp.org>
39799
39800         * lib/linebuffer.h: Tweak doc.
39801         * lib/linebuffer.c: Likewise.
39802
39803 2007-05-12  James Youngman  <jay@gnu.org>
39804
39805         * lib/linebuffer.c (readlinebuffer_delim): New function,
39806         like readlinebuffer, but use a caller-specified delimiter.
39807         (readlinebuffer): Just call readlinebuffer_delim with '\n'
39808         as the delimiter.
39809         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
39810
39811 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
39812
39813         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
39814         * modules/openat (Files): Remove openat-die.c.
39815         (Depends-on): Add openat-die.
39816         * modules/openat-die: New module.
39817
39818 2007-05-06  Bruno Haible  <bruno@clisp.org>
39819
39820         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
39821         Update with info about Cygwin.
39822         * doc/functions/fprintf.texi: Update.
39823         * doc/functions/printf.texi: Update.
39824         * doc/functions/snprintf.texi: Update.
39825         * doc/functions/sprintf.texi: Update.
39826         * doc/functions/vfprintf.texi: Update.
39827         * doc/functions/vprintf.texi: Update.
39828         * doc/functions/vsnprintf.texi: Update.
39829         * doc/functions/vsprintf.texi: Update.
39830         Reported by Eric Blake.
39831
39832 2007-05-06  Bruno Haible  <bruno@clisp.org>
39833
39834         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
39835         padding ourselves for the floating-point directives.
39836         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
39837         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
39838         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39839         gl_PRINTF_FLAG_ZERO and test its result. Invoke
39840         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
39841         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39842         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
39843         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39844         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39845         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39846         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39847         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39848         * tests/test-snprintf-posix.h (test_function): Also check the width
39849         and some flags in the %f directive.
39850         * tests/test-sprintf-posix.h (test_function): Likewise.
39851         * tests/test-vasnprintf-posix.c (test_function): Likewise.
39852         * tests/test-vasprintf-posix.c (test_function): Likewise.
39853         * doc/functions/fprintf.texi: Update.
39854         * doc/functions/printf.texi: Update.
39855         * doc/functions/snprintf.texi: Update.
39856         * doc/functions/sprintf.texi: Update.
39857         * doc/functions/vfprintf.texi: Update.
39858         * doc/functions/vprintf.texi: Update.
39859         * doc/functions/vsnprintf.texi: Update.
39860         * doc/functions/vsprintf.texi: Update.
39861
39862 2007-05-06  Bruno Haible  <bruno@clisp.org>
39863
39864         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
39865         pass the ' flag character to sprintf or snprintf.
39866         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
39867         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
39868         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39869         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
39870         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
39871         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39872         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
39873         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39874         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39875         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39876         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39877         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39878         * tests/test-snprintf-posix.h (test_function): Also check the grouping
39879         flag.
39880         * tests/test-sprintf-posix.h (test_function): Likewise.
39881         * tests/test-vasnprintf-posix.c (test_function): Likewise.
39882         * tests/test-vasprintf-posix.c (test_function): Likewise.
39883         * doc/functions/fprintf.texi: Update.
39884         * doc/functions/printf.texi: Update.
39885         * doc/functions/snprintf.texi: Update.
39886         * doc/functions/sprintf.texi: Update.
39887         * doc/functions/vfprintf.texi: Update.
39888         * doc/functions/vprintf.texi: Update.
39889         * doc/functions/vsnprintf.texi: Update.
39890         * doc/functions/vsprintf.texi: Update.
39891
39892 2007-05-01  Bruno Haible  <bruno@clisp.org>
39893
39894         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
39895
39896 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
39897
39898         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
39899         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
39900
39901 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
39902
39903         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
39904         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
39905         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
39906
39907 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
39908
39909         * lib/argp-help.c (struct hol_entry): New member `ord'.
39910         (HOL_ENTRY_PTRCMP): Use ord for comparison
39911         (hol_sort): Initialize ord.
39912
39913 2007-05-01  Bruno Haible  <bruno@clisp.org>
39914
39915         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
39916         Reported by Eric Blake.
39917         * doc/gnulib.texi (Function Substitutes): Update.
39918
39919 2007-05-01  Bruno Haible  <bruno@clisp.org>
39920
39921         * doc/functions.texi: Remove file, now redundant through
39922         doc/functions/*.texi.
39923
39924 2007-05-01  Bruno Haible  <bruno@clisp.org>
39925
39926         * modules/argp (Depends-on): Add sleep.
39927
39928 2007-05-01  Bruno Haible  <bruno@clisp.org>
39929
39930         * modules/sleep-tests: New file.
39931         * tests/test-sleep.c: New file.
39932
39933         * modules/sleep: New file.
39934         * lib/sleep.c: New file.
39935         * m4/sleep.m4: New file.
39936         * lib/unistd_.h (sleep): New declaration.
39937         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
39938         HAVE_SLEEP.
39939         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
39940         * doc/functions/sleep.texi: Document the sleep module.
39941
39942 2007-05-01  Bruno Haible  <bruno@clisp.org>
39943
39944         * lib/sigprocmask.h: Remove file.
39945         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
39946         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
39947         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
39948         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
39949         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
39950         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
39951         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
39952         HAVE_SIGSET_T as a shell variable.
39953         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
39954         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
39955         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
39956         (Depends-on): Add signal. Remove verify.
39957         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
39958         (Include): Mention <signal.h> instead of sigprocmask.h.
39959         * NEWS: Mention the change.
39960         * lib/fatal-signal.c: Don't include sigprocmask.h.
39961
39962 2007-05-01  Bruno Haible  <bruno@clisp.org>
39963
39964         * modules/signal: New file.
39965         * lib/signal_.h: New file.
39966         * m4/signal_h.m4: New file.
39967
39968 2007-05-01  Bruno Haible  <bruno@clisp.org>
39969
39970         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
39971         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
39972         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
39973         HAVE_WCTYPE_CTMP_BUG into wctype.h.
39974
39975 2007-05-01  Bruno Haible  <bruno@clisp.org>
39976
39977         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
39978         configure time.
39979         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
39980         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
39981         * modules/sys_stat (Makefile.am): Substitute their values into
39982         sys/stat.h.
39983
39984 2007-05-01  Bruno Haible  <bruno@clisp.org>
39985
39986         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
39987         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
39988         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
39989
39990 2007-05-01  Bruno Haible  <bruno@clisp.org>
39991
39992         * doc/header/assert.texi: Undo last change: don't mention the gnulib
39993         'assert' module here.
39994
39995 2007-05-01  Bruno Haible  <bruno@clisp.org>
39996
39997         * doc/functions/*.texi: New files.
39998         * doc/functions/google-ranking.txt: New file.
39999         * doc/gnulib.texi (Function Substitutes): New chapter.
40000         (ctime, inet_ntoa): Remove sections.
40001         * doc/ctime.texi: Remove file.
40002         * doc/inet_ntoa.texi: Remove file.
40003         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
40004         dependencies.
40005         (%.info): New rule, specifying a --reference-limit.
40006
40007 2007-05-01  Bruno Haible  <bruno@clisp.org>
40008
40009         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
40010
40011 2007-05-01  Bruno Haible  <bruno@clisp.org>
40012
40013         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
40014         the portability of 'mkdir' to mingw systems.
40015
40016 2007-05-01  Bruno Haible  <bruno@clisp.org>
40017
40018         * doc/headers/google-ranking.txt: New file.
40019
40020 2007-04-30  Eric Blake  <ebb9@byu.net>
40021
40022         Prefer fseeko to fseek.
40023         * modules/getpass (Depends-on): Add fseeko.
40024         * lib/getpass.c (getpass): Use fseeko, not fseek.
40025
40026 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
40027
40028         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
40029         assumes the sorting is stable, while most qsort implementations
40030         are not.  Use argument addresses to ensure they never compare as
40031         equal.
40032
40033         * tests/test-argp-2.sh (usage-indent test): Fix output
40034         (func_compare): Restore diff options
40035         * tests/test-argp.c: Restore #include "progname.h"
40036
40037 2007-04-29  Bruno Haible  <bruno@clisp.org>
40038
40039         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
40040         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
40041         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
40042         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40043         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
40044         (configure.ac): Define CHECK_SNPRINTF_POSIX.
40045         (TESTS, check_PROGRAMS): Add test-snprintf.
40046         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
40047         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
40048         (TESTS, check_PROGRAMS): Add test-vsnprintf.
40049         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
40050         assertions that fail on HP-UX, OSF/1, or IRIX.
40051         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
40052
40053 2007-04-29  Bruno Haible  <bruno@clisp.org>
40054
40055         * MODULES.html.sh (posix_functions): Remove 'contents'.
40056
40057 2007-04-29  Karl Berry  <karl@gnu.org>
40058
40059         * config/srclist.txt (gendocs_template_min): new entry.
40060
40061 2007-04-29  Bruno Haible  <bruno@clisp.org>
40062
40063         Work around fpurge bug on BSD systems.
40064         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
40065         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
40066         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
40067         fpurge to rpl_fpurge if the system already has this function.
40068         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
40069         the case where the system already has this function. Correct invariants
40070         on BSD systems.
40071         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
40072         BSD systems.
40073
40074 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
40075
40076         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
40077         proposed by Sven Verdoolaege.
40078
40079         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
40080         options.
40081         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
40082         (usage and help tests): Update
40083
40084 2007-04-29  Bruno Haible  <bruno@clisp.org>
40085
40086         * tests/test-fflush.c (main): Use a file of size 17, not 10.
40087         Print more information in case of failure. Disable a test on BeOS.
40088
40089 2007-04-29  Bruno Haible  <bruno@clisp.org>
40090
40091         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
40092         This helps debugging on systems on which no gdb is available.
40093
40094 2007-04-29  Bruno Haible  <bruno@clisp.org>
40095
40096         * lib/freading.h: Improve comments.
40097         * lib/fwriting.h: Likewise.
40098         * tests/test-freading.c (main): Don't check freading immediately after
40099         repositioning. Needed for glibc.
40100
40101 2007-04-29  Bruno Haible  <bruno@clisp.org>
40102
40103         * lib/freading.c (freading): Trivial simplification.
40104
40105 2007-04-28  Bruno Haible  <bruno@clisp.org>
40106
40107         * tests/test-fwriting.c (main): Also test the interaction between
40108         fflush and fwriting.
40109         * modules/fwriting-tests (Depends-on): Add fflush.
40110
40111         * tests/test-freading.c (main): Also test the interaction between
40112         fflush and freading.
40113         * modules/freading-tests (Depends-on): Add fflush.
40114
40115 2007-04-28  Bruno Haible  <bruno@clisp.org>
40116
40117         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
40118         fseeko and ftello.
40119         Suggested by Eric Blake.
40120
40121 2007-04-28  Jim Meyering  <jim@meyering.net>
40122
40123         Avoid false-negative in gl_STDINT_H's C99 conformance test.
40124         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
40125         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
40126
40127 2007-04-27  Eric Blake  <ebb9@byu.net>
40128
40129         * doc/headers/assert.texi (assert.h): Document assert module use.
40130
40131 2007-04-27  Bruno Haible  <bruno@clisp.org>
40132
40133         * doc/headers/*.texi: New files.
40134         * doc/gnulib.texi (Header File Substitutes): New chapter.
40135         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
40136         dependencies.
40137         (standards.info ,standards.html, standards.dvi): Update dependencies.
40138         (mostlyclean, clean): New targets.
40139
40140 2007-04-27  Bruno Haible  <bruno@clisp.org>
40141
40142         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
40143         * modules/sysexits (Files, Makefile.am): Update.
40144
40145         * lib/sys_socket_.h: Renamed from lib/socket_.h.
40146         * modules/sys_socket (Files, Makefile.am): Update.
40147
40148         * lib/sys_stat_.h: Renamed from lib/stat_.h.
40149         * modules/sys_stat (Files, Makefile.am): Update.
40150
40151 2007-04-27  Eric Blake  <ebb9@byu.net>
40152
40153         * lib/freading.h: Improve comments.
40154         * lib/fwriting.h: Likewise.
40155         * lib/fflush.c: Likewise.
40156
40157         Fix closein for mingw.
40158         * modules/closein-tests: Add tests for closein.
40159         * tests/test-closein.c: New file.
40160         * tests/test-closein.sh: Likewise.
40161         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
40162         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
40163
40164 2007-04-27  Bruno Haible  <bruno@clisp.org>
40165
40166         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
40167         version is < 6.
40168         * lib/math_.h [__DECC]: Likewise.
40169         * lib/stdio_.h [__DECC]: Likewise.
40170         * lib/stdlib_.h [__DECC]: Likewise.
40171         * lib/string_.h [__DECC]: Likewise.
40172         * lib/time_.h [__DECC]: Likewise.
40173         * lib/wchar_.h [__DECC]: Likewise.
40174         * lib/wctype_.h [__DECC]: Likewise.
40175
40176 2007-04-27  Bruno Haible  <bruno@clisp.org>
40177
40178         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
40179
40180 2007-04-27  Bruno Haible  <bruno@clisp.org>
40181
40182         * lib/fflush.c: Add comments.
40183         * modules/fpurge-tests (Depends-on): Add fflush.
40184         * modules/freadable-tests (Depends-on): Likewise.
40185         * modules/fwritable-tests (Depends-on): Likewise.
40186
40187 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
40188
40189         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
40190         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
40191         Report by Bruno Haible <bruno@clisp.org>.
40192
40193 2007-04-26  Eric Blake  <ebb9@byu.net>
40194
40195         Fix fflush on mingw.
40196         * modules/fflush (Depends-on): Add freading.
40197         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
40198         but unread data.
40199
40200 2007-04-26  Eric Blake  <ebb9@byu.net>
40201         and Bruno Haible  <bruno@clisp.org>
40202
40203         Implement freading and fwriting.
40204         * lib/freading.c: New file.
40205         * lib/freading.h: Likewise.
40206         * m4/freading.m4: Likewise.
40207         * modules/freading: Likewise.
40208         * modules/freading-tests: Likewise.
40209         * tests/test-freading.c: Likewise.
40210         * lib/fwriting.c: New file.
40211         * lib/fwriting.h: Likewise.
40212         * m4/fwriting.m4: Likewise.
40213         * modules/fwriting: Likewise.
40214         * modules/fwriting-tests: Likewise.
40215         * tests/test-fwriting.c: Likewise.
40216         * MODULES.html.sh (File stream based Input/Output): Mention them.
40217
40218 2007-04-26  Bruno Haible  <bruno@clisp.org>
40219
40220         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
40221         'long' when we assume it.
40222         Suggested by Eric Blake.
40223
40224 2007-04-26  Bruno Haible  <bruno@clisp.org>
40225
40226         Ensure fseeko, ftello are declared on glibc systems.
40227         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
40228         * modules/fseeko (configure.ac-early): Likewise.
40229         * modules/ftello (configure.ac-early): Likewise.
40230         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
40231         AC_FUNC_FSEEKO for this.
40232         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
40233         (gl_CHECK_FSEEKO): Remove macro.
40234
40235 2007-04-26  Bruno Haible  <bruno@clisp.org>
40236
40237         * tests/test-fflush.c (main): Also check the ftell result after
40238         fflush and fseek/fseeko.
40239         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
40240         file descriptor position cache in the stream.
40241         * lib/fseeko.c (rpl_fseeko): Likewise.
40242
40243 2007-04-26  Bruno Haible  <bruno@clisp.org>
40244
40245         * modules/fflush-tests (Depends-on): Add fseeko.
40246
40247 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
40248             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40249
40250         * lib/argz_.h: ensure error_t definition is obtained in same
40251         mechanism system argz.h would have.
40252         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
40253         argz facilities are known bad.  Err on the side of caution if
40254         cross-compiling.
40255
40256 2007-04-25  Eric Blake  <ebb9@byu.net>
40257
40258         * lib/fpurge.c (includes): Use stdlib.h for free.
40259         * tests/test-fflush.c (main): Also test fflush-fseeko.
40260
40261 2007-04-25  Bruno Haible  <bruno@clisp.org>
40262
40263         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
40264         * lib/fseeko.c: New file.
40265         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
40266         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
40267         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
40268         gl_FUNC_FSEEKO.
40269         (gl_FUNC_FSEEKO): Invoke it.
40270         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
40271         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
40272         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
40273
40274 2007-04-25  Bruno Haible  <bruno@clisp.org>
40275
40276         * modules/fflush (Depends-on): Add ftello.
40277
40278 2007-04-25  Bruno Haible  <bruno@clisp.org>
40279
40280         * modules/ftello-tests: New file.
40281         * tests/test-ftello.c: New file.
40282
40283         * modules/ftello: New file.
40284         * m4/ftello.m4: New file.
40285         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
40286         HAVE_FTELLO.
40287         * lib/stdio_.h (ftello): New declaration.
40288         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
40289         HAVE_FTELLO.
40290
40291 2007-04-25  Bruno Haible  <bruno@clisp.org>
40292
40293         * modules/fseeko-tests: New file.
40294         * tests/test-fseeko.c: New file.
40295
40296         * modules/fseeko: New file.
40297         * m4/fseeko.m4: New file.
40298         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
40299         HAVE_FSEEKO.
40300         * lib/stdio_.h (fseeko): New declaration.
40301         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
40302         HAVE_FSEEKO.
40303
40304 2007-04-25  Bruno Haible  <bruno@clisp.org>
40305
40306         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
40307
40308 2007-04-25  Bruno Haible  <bruno@clisp.org>
40309
40310         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
40311         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
40312         * tests/test-unistd.c: Likewise.
40313         * tests/test-fcntl.c: Likewise.
40314
40315 2007-04-23  Eric Blake  <ebb9@byu.net>
40316
40317         * lib/fflush.c: Fix missing include.
40318         Reported by Bruno Haible.
40319
40320 2007-04-23  Bruno Haible  <bruno@clisp.org>
40321
40322         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
40323         Reported by Eric Blake.
40324
40325 2007-04-23  Bruno Haible  <bruno@clisp.org>
40326
40327         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
40328
40329 2007-04-23  Bruno Haible  <bruno@clisp.org>
40330
40331         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
40332
40333 2007-04-23  Bruno Haible  <bruno@clisp.org>
40334
40335         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
40336         Needed on HP-UX 11.
40337
40338 2007-04-16  Eric Blake  <ebb9@byu.net>
40339
40340         Make fflush rely on fpurge.
40341         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
40342         open coding all variants.
40343         * modules/fflush (Depends-on): Add fpurge and unistd.
40344         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
40345         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
40346
40347         Fix --with-tests compilation on cygwin.
40348         * modules/argmatch-tests (Makefile.am): List gnulib library first
40349         in LDADD.
40350         * modules/argp-tests (Makefile.am): Likewise.
40351         * modules/array-list-tests (Makefile.am): Likewise.
40352         * modules/array-oset-tests (Makefile.am): Likewise.
40353         * modules/avltree-list-tests (Makefile.am): Likewise.
40354         * modules/avltree-oset-tests (Makefile.am): Likewise.
40355         * modules/avltreehash-list-tests (Makefile.am): Likewise.
40356         * modules/carray-list-tests (Makefile.am): Likewise.
40357         * modules/dirname-tests (Makefile.am): Likewise.
40358         * modules/frexp-tests (Makefile.am): Likewise.
40359         * modules/isnanl-tests (Makefile.am): Likewise.
40360         * modules/linked-list-tests (Makefile.am): Likewise.
40361         * modules/linkedhash-list-tests (Makefile.am): Likewise.
40362         * modules/lock-tests (Makefile.am): Likewise.
40363         * modules/rbtree-list-tests (Makefile.am): Likewise.
40364         * modules/rbtree-oset-tests (Makefile.am): Likewise.
40365         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
40366         * modules/tls-tests (Makefile.am): Likewise.
40367         * modules/tsearch-tests (Makefile.am): Likewise.
40368         * modules/xvasprintf-tests (Makefile.am): Likewise.
40369
40370         Fix fpurge for cygwin.
40371         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
40372         value.
40373         * modules/fpurge-tests (Depends-on): Clean up trash.
40374
40375 2007-04-16  Simon Josefsson  <simon@josefsson.org>
40376
40377         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
40378
40379         * m4/autobuild.m4: Re-indent.
40380
40381 2007-04-13  Bruno Haible  <bruno@clisp.org>
40382
40383         * modules/fpurge-tests: New file.
40384         * tests/test-fpurge.c: New file.
40385
40386         * modules/fpurge: New file.
40387         * lib/fpurge.h: New file.
40388         * lib/fpurge.c: New file.
40389         * m4/fpurge.m4: New file.
40390
40391 2007-04-13  Bruno Haible  <bruno@clisp.org>
40392
40393         * modules/fbufmode-tests: New file.
40394         * tests/test-fbufmode.c: New file.
40395
40396         * modules/fbufmode: New file.
40397         * lib/fbufmode.h: New file.
40398         * lib/fbufmode.c: New file.
40399         * m4/fbufmode.m4: New file.
40400
40401 2007-04-13  Bruno Haible  <bruno@clisp.org>
40402
40403         * modules/fwritable-tests: New file.
40404         * tests/test-fwritable.c: New file.
40405
40406         * modules/fwritable: New file.
40407         * lib/fwritable.h: New file.
40408         * lib/fwritable.c: New file.
40409         * m4/fwritable.m4: New file.
40410
40411 2007-04-13  Bruno Haible  <bruno@clisp.org>
40412
40413         * modules/freadable-tests: New file.
40414         * tests/test-freadable.c: New file.
40415
40416         * modules/freadable: New file.
40417         * lib/freadable.h: New file.
40418         * lib/freadable.c: New file.
40419         * m4/freadable.m4: New file.
40420
40421 2007-04-13  Bruno Haible  <bruno@clisp.org>
40422
40423         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
40424         MOSTLYCLEANFILES.
40425
40426 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
40427
40428         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
40429         gzip bootstrap.conf to avoid dragging in i18n machinery.
40430         (gnulib_tool_option): Use it.
40431
40432 2007-04-13  Bruno Haible  <bruno@clisp.org>
40433
40434         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
40435         %F directives.
40436         * tests/test-vasprintf-posix.c (test_function): Likewise.
40437         * tests/test-snprintf-posix.h (test_function): Likewise.
40438         * tests/test-sprintf-posix.h (test_function): Likewise.
40439         * tests/test-fprintf-posix.h (test_function): Likewise.
40440         * tests/test-printf-posix.h (test_function): Likewise.
40441         * tests/test-fprintf-posix.out: Likewise.
40442
40443 2007-04-13  Bruno Haible  <bruno@clisp.org>
40444
40445         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
40446         * modules/tls-tests (configure.ac): Likewise.
40447         Reported by Arto C. Nirkko <anirkko@insel.ch>.
40448
40449 2007-04-13  Bruno Haible  <bruno@clisp.org>
40450
40451         * lib/tls.c (glthread_tls_get): Fix return type.
40452         Patch by Arto C. Nirkko <anirkko@insel.ch>.
40453
40454 2007-04-12  Eric Blake  <ebb9@byu.net>
40455
40456         * modules/gettime (Depends-on): Remove gettime.
40457         Reported by Dmitry V. Levin.
40458
40459 2007-04-12  Bruno Haible  <bruno@clisp.org>
40460
40461         * modules/fflush (Include): Mention <stdio.h>.
40462         * modules/strtoimax (Include): Mention <inttypes.h>.
40463         * modules/strtoumax (Include): Likewise.
40464
40465 2007-04-12  Eric Blake  <ebb9@byu.net>
40466
40467         * .cvsignore: New file.
40468         * .gitignore: Likewise.
40469
40470 2007-04-12  Bruno Haible  <bruno@clisp.org>
40471
40472         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
40473         not before, since $(LDADD) often contains libgnu.a.
40474         * modules/striconv-tests (test_striconv_LDADD): Likewise.
40475         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
40476         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
40477         Needed on Cygwin.
40478
40479 2007-04-12  Eric Blake  <ebb9@byu.net>
40480
40481         Work around glibc's failure to flush stdin on fclose.
40482         * lib/closein.c (close_stdin): Flush stdin before closing.
40483
40484         Work around glibc's failure to reset seekable stdin on exit.
40485         * modules/closein: New module.
40486         * lib/closein.c: New file.
40487         * lib/closein.h: Likewise.
40488         * m4/closein.m4: Likewise.
40489         * MODULES.html.sh (File stream based Input/Output): Document it.
40490
40491 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40492
40493         * gnulib-tool: Rename generated 'autobuild' script to
40494         'do-autobuild' in --create-megatestdir output.
40495
40496         * doc/gnulib.texi (Build robot for gnulib): Fix.
40497
40498 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40499
40500         * modules/sysexits (Depends-on): Add absolute-header.
40501
40502 2007-04-12  Eric Blake  <ebb9@byu.net>
40503
40504         No need to preserve errno on success.
40505         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
40506         Reported by Bruno Haible.
40507
40508 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40509
40510         * MODULES.html.sh (Support for maintaining and releasing
40511         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
40512
40513 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40514
40515         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
40516
40517 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40518
40519         * modules/autobuild: New module.
40520
40521         * m4/autobuild.m4: New file.
40522
40523 2007-04-11  Bruno Haible  <bruno@clisp.org>
40524
40525         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
40526         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
40527         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
40528         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
40529         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40530         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40531         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40532         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
40533         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40534         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40535         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
40536         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40537         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40538         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
40539         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40540         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40541         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
40542         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40543         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40544         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
40545         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40546         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40547         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
40548         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40549         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40550         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
40551         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40552         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40553         Reported by Eric Blake.
40554
40555 2007-04-11  Bruno Haible  <bruno@clisp.org>
40556
40557         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
40558
40559 2007-04-10  Bruno Haible  <bruno@clisp.org>
40560
40561         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
40562         for NaN and Infinity. Needed on FreeBSD 6.1.
40563         * tests/test-vasnprintf-posix.c (test_function): Undo last change
40564         regarding results for "%010a" of Infinity and NaN.
40565         * tests/test-vasprintf-posix.c (test_function): Likewise.
40566         * tests/test-snprintf-posix.h (test_function): Likewise.
40567         * tests/test-sprintf-posix.h (test_function): Likewise.
40568         * tests/test-fprintf-posix.h (test_function): Likewise.
40569         * tests/test-printf-posix.h (test_function): Likewise.
40570         * tests/test-fprintf-posix.out: Likewise.
40571
40572 2007-04-10  Bruno Haible  <bruno@clisp.org>
40573
40574         * modules/locale-tests: New file.
40575         * tests/test-locale.c: New file.
40576
40577         * modules/locale: New file.
40578         * lib/locale_.h: New file.
40579         * m4/locale_h.m4: New file.
40580
40581 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
40582             Bruno Haible  <bruno@clisp.org>
40583
40584         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
40585         be determined, test for availability of the copysignf, copysign,
40586         copysignl functions.
40587         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
40588         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
40589         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
40590
40591 2007-04-09  Eric Blake  <ebb9@byu.net>
40592
40593         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
40594         * modules/stdio (Makefile.am): Support fflush.
40595         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40596         * modules/fflush: New file.
40597         * lib/fflush.c: Likewise.
40598         * m4/fflush.m4: Likewise.
40599         * modules/fflush-tests: New test.
40600         * tests/test-fflush.c: Likewise.
40601         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
40602
40603 2007-04-06  Bruno Haible  <bruno@clisp.org>
40604
40605         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
40606         (VASNPRINTF): Use signbit for faster determination whether to print a
40607         minus sign.
40608         * modules/vasnprintf (Files): Remove lib/float+.h.
40609         * modules/fprintf-posix (Depends-on): Add signbit.
40610         * modules/snprintf-posix (Depends-on): Likewise.
40611         * modules/sprintf-posix (Depends-on): Likewise.
40612         * modules/vasnprintf-posix (Depends-on): Likewise.
40613         * modules/vasprintf-posix (Depends-on): Likewise.
40614         * modules/vfprintf-posix (Depends-on): Likewise.
40615         * modules/vsnprintf-posix (Depends-on): Likewise.
40616         * modules/vsprintf-posix (Depends-on): Likewise.
40617
40618 2007-04-06  Bruno Haible  <bruno@clisp.org>
40619
40620         * tests/test-frexp.c (main): Test also the sign bit of zero results.
40621         * tests/test-frexpl.c (main): Likewise.
40622         * tests/test-ldexpl.c (main): Likewise.
40623         * modules/frexp-tests (Depends-on): Add signbit.
40624         * modules/frexpl-tests (Depdends-on): Likewise.
40625         * modules/ldexpl-tests (Depdends-on): Likewise.
40626
40627 2007-04-06  Bruno Haible  <bruno@clisp.org>
40628
40629         * modules/signbit-tests: New file.
40630         * tests/test-signbit.c: New file.
40631
40632         * modules/signbit: New file.
40633         * lib/signbitf.c: New file.
40634         * lib/signbitd.c: New file.
40635         * lib/signbitl.c: New file.
40636         * m4/signbit.m4: New file.
40637         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
40638         (signbit): New macro.
40639         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
40640         REPLACE_SIGNBIT.
40641         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
40642         REPLACE_FREXPL into math.h.
40643
40644 2007-04-06  Bruno Haible  <bruno@clisp.org>
40645
40646         * modules/isnanf-nolibm-tests: New file.
40647         * tests/test-isnanf.c: New file.
40648
40649         * modules/isnanf-nolibm: New file.
40650         * lib/isnanf.h: New file.
40651         * lib/isnanf.c: New file.
40652         * lib/isnan.c: Consider the USE_FLOAT macro.
40653         * m4/isnanf.m4: New file.
40654
40655 2007-04-06  Bruno Haible  <bruno@clisp.org>
40656
40657         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
40658         (Link): New section.
40659
40660         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
40661
40662 2007-04-06  Bruno Haible  <bruno@clisp.org>
40663
40664         Assume the 'long double' type.
40665         * m4/longdouble.m4: Remove file.
40666         * config/srclist.txt: Don't mention longdouble.m4.
40667         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
40668         * lib/float+.h: Likewise.
40669         * lib/frexp.c: Likewise.
40670         * lib/printf-args.h: Likewise.
40671         * lib/printf-args.c: Likewise.
40672         * lib/printf-frexp.c: Likewise.
40673         * lib/printf-parse.c: Likewise.
40674         * lib/vasnprintf.c: Likewise.
40675         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
40676         * m4/intl.m4: Likewise.
40677         * m4/isnanl.m4: Likewise.
40678         * m4/printf.m4: Likewise.
40679         * m4/printf-frexpl.m4: Likewise.
40680         * m4/vasnprintf.m4: Likewise.
40681         * modules/allocsa (Files): Remove m4/longdouble.m4.
40682         * modules/gettext (Files): Likewise.
40683         * modules/relocatable-prog-wrapper (Files): Likewise.
40684         * modules/vasnprintf (Files): Likewise.
40685         * modules/isnanl (Files): Likewise.
40686         (Include): Simplify.
40687         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
40688         (Include): Simplify.
40689         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
40690         (Include): Simplify.
40691         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
40692         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40693         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
40694         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40695         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
40696         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40697         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
40698         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40699         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
40700         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40701         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
40702         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40703         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
40704         * tests/test-isnanl.c: Likewise.
40705         * tests/test-snprintf-posix.h: Likewise.
40706         * tests/test-sprintf-posix.h: Likewise.
40707         * tests/test-vasnprintf-posix.c: Likewise.
40708         * tests/test-vasnprintf-posix2.c: Likewise.
40709         * tests/test-vasprintf-posix.c: Likewise.
40710
40711 2007-04-06  Bruno Haible  <bruno@clisp.org>
40712
40713         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
40714         * lib/math_.h [__DECC]: Include the overridden include file through
40715         #include_next, outside the double-inclusion guard.
40716         * lib/stdio_.h [__DECC]: Likewise.
40717         * lib/stdlib_.h [__DECC]: Likewise.
40718         * lib/string_.h [__DECC]: Likewise.
40719         * lib/time_.h [__DECC]: Likewise.
40720         * lib/wchar_.h [__DECC]: Likewise.
40721         * lib/wctype_.h [__DECC]: Likewise.
40722         * lib/inttypes_.h [__DECC]: Likewise.
40723         Reported by Albert Chin <china@thewrittenword.com> in
40724         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
40725
40726 2007-04-04  Eric Blake  <ebb9@byu.net>
40727
40728         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
40729         1.5.x.
40730
40731 2007-04-04  Bruno Haible  <bruno@clisp.org>
40732
40733         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
40734         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
40735
40736 2007-04-04  Bruno Haible  <bruno@clisp.org>
40737
40738         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
40739         results for "%010a" of Infinity and NaN.
40740         * tests/test-vasprintf-posix.c (test_function): Likewise.
40741         * tests/test-snprintf-posix.h (test_function): Likewise.
40742         * tests/test-sprintf-posix.h (test_function): Likewise.
40743         * tests/test-fprintf-posix.h (test_function): Remove these tests.
40744         * tests/test-printf-posix.h (test_function): Likewise.
40745         * tests/test-fprintf-posix.out: Update.
40746         Needed for FreeBSD 6.1.
40747
40748 2007-04-04  Bruno Haible  <bruno@clisp.org>
40749
40750         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
40751         directly used by the gnulib modules nor by gnulib-tool.
40752
40753 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
40754
40755         * DEPENDENCIES: Give overall description of version dependency
40756         desirability.  Use more-typical names for apps.
40757         Add shell, coreutils, diffutils, grep, tar, gzip.
40758
40759 2007-04-04  Simon Josefsson  <simon@josefsson.org>
40760
40761         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
40762
40763 2007-04-04  Karl Berry  <karl@gnu.org>
40764
40765         * MODULES.html.sh (func_module): missing '.
40766
40767 2007-04-03  Bruno Haible  <bruno@clisp.org>
40768
40769         * modules/argmatch-tests (Makefile.am): New variable
40770         test_argmatch_LDADD.
40771         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
40772         * modules/array-list-tests (Makefile.am): New variable
40773         test_array_list_LDADD.
40774         * modules/array-oset-tests (Makefile.am): New variable
40775         test_array_oset_LDADD.
40776         * modules/avltree-list-tests (Makefile.am): New variable
40777         test_avltree_list_LDADD.
40778         * modules/avltree-oset-tests (Makefile.am): New variable
40779         test_avltree_oset_LDADD.
40780         * modules/avltreehash-list-tests (Makefile.am): New variable
40781         test_avltreehash_list_LDADD.
40782         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
40783         test_canonicalize_lgpl_LDADD.
40784         * modules/carray-list-tests (Makefile.am): New variable
40785         test_carray_list_LDADD.
40786         * modules/dirname-tests (Makefile.am): New variable
40787         test_dirname_LDADD.
40788         * modules/linked-list-tests (Makefile.am): New variable
40789         test_linked_list_LDADD.
40790         * modules/linkedhash-list-tests (Makefile.am): New variable
40791         test_linkedhash_list_LDADD.
40792         * modules/rbtree-list-tests (Makefile.am): New variable
40793         test_rbtree_list_LDADD.
40794         * modules/rbtree-oset-tests (Makefile.am): New variable
40795         test_rbtree_oset_LDADD.
40796         * modules/rbtreehash-list-tests (Makefile.am): New variable
40797         test_rbtreehash_list_LDADD.
40798         * modules/xvasprintf-tests (Makefile.am): New variable
40799         test_xvasprintf_LDADD.
40800         Reported by Eric Blake.
40801
40802 2007-04-03  Eric Blake  <ebb9@byu.net>
40803
40804         * DEPENDENCIES: Weaken m4 requirements.
40805
40806 2007-04-03  Bruno Haible  <bruno@clisp.org>
40807
40808         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
40809         * modules/isnanl-tests (configure.ac): Likewise.
40810
40811 2007-04-03  Ben Pfaff  <blp@gnu.org>
40812
40813         * modules/iconv_open: Add $(srcdir)/ to source directory
40814         references in Makefile fragments that call gperf, to fix VPATH
40815         builds.
40816
40817 2007-04-03  Bruno Haible  <bruno@clisp.org>
40818
40819         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
40820         * lib/ldexpl.c: Undo last change.
40821
40822 2007-04-03  Bruno Haible  <bruno@clisp.org>
40823
40824         * modules/printf-frexpl (Depends-on): Undo last change.
40825         (Files): Add m4/ldexpl.m4.
40826
40827 2007-04-03  Bruno Haible  <bruno@clisp.org>
40828
40829         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
40830         * modules/isnanl (Link): New section.
40831
40832         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
40833         * modules/frexp (Link): New section.
40834
40835         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
40836         * modules/frexpl (Link): New section.
40837
40838         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
40839         * modules/ldexpl (Link): New section.
40840
40841 2007-04-03  Bruno Haible  <bruno@clisp.org>
40842
40843         * modules/TEMPLATE-EXTENDED: New file.
40844         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
40845
40846 2007-04-03  Bruno Haible  <bruno@clisp.org>
40847
40848         * DEPENDENCIES: New file.
40849         Suggested by Simon Josefsson.
40850
40851 2007-04-03  Bruno Haible  <bruno@clisp.org>
40852
40853         * doc/gnulib.texi: Escape @.
40854
40855 2007-04-03  James Youngman  <jay@gnu.org>
40856         and Paul Eggert  <eggert@cs.ucla.edu>
40857
40858         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
40859         birthtime on all systems that have birthtime, not just those which
40860         use st_birthtimensec rather than st_birthtim.  Putting zero in
40861         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
40862         that the birth time is not available for files on an NFS mount.
40863
40864 2007-04-03  Simon Josefsson  <simon@josefsson.org>
40865
40866         * modules/memxor: Move back from crypto/, suggested by Bruno.
40867         * modules/crypto/hmac-sha1: Fix memxor dependency.
40868
40869         * modules/crypto/gc: Moved from ../.
40870
40871 2007-04-02  Eric Blake  <ebb9@byu.net>
40872
40873         * lib/ldexpl.c (includes): Avoid libm.
40874
40875         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
40876
40877 2007-04-02  Bruno Haible  <bruno@clisp.org>
40878
40879         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
40880         on IRIX.
40881
40882 2007-04-02  Bruno Haible  <bruno@clisp.org>
40883
40884         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
40885         x86 or x86_64 platforms running MacOS X.
40886         Reported by Ryan Schmidt <@ryandesign.com>.
40887
40888 2007-04-02  Bruno Haible  <bruno@clisp.org>
40889
40890         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
40891         i386.
40892
40893 2007-04-01  Simon Josefsson  <simon@josefsson.org>
40894
40895         * modules/crypto/arcfour: Moved from ../.
40896         * modules/crypto/arcfour-tests: Moved from ../.
40897         * modules/crypto/arctwo: Moved from ../.
40898         * modules/crypto/arctwo-tests: Moved from ../.
40899         * modules/crypto/des: Moved from ../.
40900         * modules/crypto/des-tests: Moved from ../.
40901         * modules/crypto/gc-arcfour: Moved from ../.
40902         * modules/crypto/gc-arcfour-tests: Moved from ../.
40903         * modules/crypto/gc-arctwo: Moved from ../.
40904         * modules/crypto/gc-arctwo-tests: Moved from ../.
40905         * modules/crypto/gc-des: Moved from ../.
40906         * modules/crypto/gc-des-tests: Moved from ../.
40907         * modules/crypto/gc-hmac-md5: Moved from ../.
40908         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
40909         * modules/crypto/gc-hmac-sha1: Moved from ../.
40910         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
40911         * modules/crypto/gc-md2: Moved from ../.
40912         * modules/crypto/gc-md2-tests: Moved from ../.
40913         * modules/crypto/gc-md4: Moved from ../.
40914         * modules/crypto/gc-md4-tests: Moved from ../.
40915         * modules/crypto/gc-md5: Moved from ../.
40916         * modules/crypto/gc-md5-tests: Moved from ../.
40917         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
40918         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
40919         * modules/crypto/gc-random: Moved from ../.
40920         * modules/crypto/gc-rijndael: Moved from ../.
40921         * modules/crypto/gc-rijndael-tests: Moved from ../.
40922         * modules/crypto/gc-sha1: Moved from ../.
40923         * modules/crypto/gc-sha1-tests: Moved from ../.
40924         * modules/crypto/gc-tests: Moved from ../.
40925         * modules/crypto/hmac-md5: Moved from ../.
40926         * modules/crypto/hmac-md5-tests: Moved from ../.
40927         * modules/crypto/hmac-sha1: Moved from ../.
40928         * modules/crypto/hmac-sha1-tests: Moved from ../.
40929         * modules/crypto/md2: Moved from ../.
40930         * modules/crypto/md2-tests: Moved from ../.
40931         * modules/crypto/md4: Moved from ../.
40932         * modules/crypto/md4-tests: Moved from ../.
40933         * modules/crypto/md5: Moved from ../.
40934         * modules/crypto/md5-tests: Moved from ../.
40935         * modules/crypto/memxor: Moved from ../.
40936         * modules/crypto/rijndael: Moved from ../.
40937         * modules/crypto/rijndael-tests: Moved from ../.
40938         * modules/crypto/sha1: Moved from ../.
40939
40940 2007-03-30  James Youngman  <jay@gnu.org>
40941
40942         * tests/test-stat-time.c (prepare_test): use chmod() rather than
40943         rename() to change the ctime of a file (because ctime is unaffected
40944         by rename on jfs2 on AIX 5.1).
40945         (main): Start by doing cleanup, in case a previous run failed leaving
40946         test files behind.
40947
40948 2007-03-31  Bruno Haible  <bruno@clisp.org>
40949
40950         Support old proprietary implementations of iconv.
40951         * modules/iconv_open: New file.
40952         * lib/iconv_.h: New file.
40953         * m4/iconv_h.m4: New file.
40954         * lib/iconv_open.c: New file.
40955         * lib/iconv_open-aix.gperf: New file.
40956         * lib/iconv_open-hpux.gperf: New file.
40957         * lib/iconv_open-irix.gperf: New file.
40958         * lib/iconv_open-osf.gperf: New file.
40959         * m4/iconv_open.m4: New file.
40960         * modules/linebreak (Depends-on): Add iconv_open.
40961         * modules/striconv (Depends-on): Likewise.
40962         * modules/striconveh (Depends-on): Likewise.
40963         * modules/unicodeio (Depends-on): Likewise.
40964         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
40965         (iconv_t)(-1).
40966         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
40967         conversion if cd is (iconv_t)(-1).
40968         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
40969         is not possible.
40970
40971 2007-03-31  Bruno Haible  <bruno@clisp.org>
40972
40973         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
40974         work on Solaris either. Protect also second use of "autodetect_jp".
40975
40976 2007-03-31  Bruno Haible  <bruno@clisp.org>
40977
40978         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
40979         the function is not present.
40980
40981 2007-03-31  Bruno Haible  <bruno@clisp.org>
40982
40983         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
40984         the function is not present.
40985
40986 2007-03-31  Bruno Haible  <bruno@clisp.org>
40987
40988         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
40989         a bug in HP-UX iconv_open().
40990
40991 2007-03-31  Bruno Haible  <bruno@clisp.org>
40992
40993         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
40994         (Mathematics <math.h>): New section, add fpieee.
40995         (Input/output <stdio.h>): Add fseterr.
40996         (Mathematics <math.h>): New section, add printf-frexp.
40997         (Container data structures): Add sublist.
40998         (Core language properties): Add fpucw, inline.
40999         (Functions for greatest-width integer types <inttypes.h>): Add
41000         imaxabs, imaxdiv, inttypes.
41001         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
41002         isnanl-nolibm, ldexp.
41003         (Mathematics <math.h>): New section, add printf-frexpl.
41004         (Support for systems lacking POSIX:2001): Add fprintf-posix,
41005         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
41006         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
41007         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
41008         (Unicode string functions): Add unistr/u*-mbtoucr.
41009         (Java): Add javacomp-script, javaexec-script.
41010         (C#): Add csharpcomp-script, csharpexec-script.
41011         (Support for building libraries and executables): Add havelib,
41012         relocatable-*.
41013         (Support for maintaining and releasing projects): Renamed from
41014         'Support for maintaining and release projects'. Add announce-gen.
41015
41016 2007-03-31  Bruno Haible  <bruno@clisp.org>
41017
41018         * README: Talk primarily about git.
41019         (git and CVS): Renamed from CVS.
41020         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
41021         gnulib is available through git.
41022         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
41023
41024 2007-03-30  Bruno Haible  <bruno@clisp.org>
41025
41026         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
41027         * lib/poll_.h: Likewise.
41028         * lib/stat_.h: Likewise.
41029         * lib/sys_time_.h: Likewise.
41030         * lib/sysexit_.h: Likewise.
41031         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
41032         * lib/stdbool_.h: Likewise.
41033         * lib/byteswap_.h: Add double-inclusion guard.
41034
41035 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
41036
41037         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
41038
41039 2007-03-30  Karl Berry  <karl@gnu.org>
41040
41041         * config/srclist-update: double space after USA in the license
41042         substitution, since that's how it's usually (?) written.
41043
41044 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
41045
41046         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
41047         reported by Bruno Haible.
41048
41049 2007-03-29  Bruno Haible  <bruno@clisp.org>
41050
41051         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
41052         a bug in AIX iconv().
41053
41054 2007-03-29  Bruno Haible  <bruno@clisp.org>
41055
41056         * modules/ldexpl-tests: New file.
41057         * tests/test-ldexpl.c: New file.
41058
41059 2007-03-29  Bruno Haible  <bruno@clisp.org>
41060
41061         * lib/ldexpl.c: Include fpucw.h.
41062         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
41063         multiplication.
41064         * modules/ldexpl (Depends-on): Add fpucw.
41065
41066 2007-03-29  Bruno Haible  <bruno@clisp.org>
41067
41068         * modules/ldexpl: New file.
41069         * m4/ldexpl.m4: New file.
41070         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
41071         set.
41072         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
41073         REPLACE_LDEXPL.
41074         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
41075         REPLACE_LDEXPL.
41076         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
41077         gl_FUNC_LDEXPL_WORKS.
41078         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
41079         * modules/mathl (Files): Remove lib/ldexpl.c.
41080         (Depends-on): Add ldexpl.
41081
41082 2007-03-29  Bruno Haible  <bruno@clisp.org>
41083
41084         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
41085
41086 2007-03-29  Bruno Haible  <bruno@clisp.org>
41087
41088         * tests/test-striconveh.c (main): Don't assume that a direct conversion
41089         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
41090         and possibly also HP-UX.
41091         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
41092         work on AIX, IRIX, HP-UX, OSF/1.
41093         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
41094         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
41095         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
41096         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
41097         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
41098         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
41099
41100 2007-03-29  Bruno Haible  <bruno@clisp.org>
41101
41102         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
41103
41104 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
41105
41106         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
41107         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
41108
41109 2007-03-29  Eric Blake  <ebb9@byu.net>
41110
41111         * lib/acl-internal.h: Remove redundant include.
41112         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
41113         Cygwin when a file is locked.
41114
41115 2007-03-29  Bruno Haible  <bruno@clisp.org>
41116
41117         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
41118         file.
41119         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
41120
41121 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
41122
41123         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
41124         try to remove a parent directory if the child couldn't be removed
41125         (except for the first rmdir, which could fail because the child
41126         doesn't exist).  Problem reported by Jeff Blaine in
41127         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
41128
41129 2007-03-28  Bruno Haible  <bruno@clisp.org>
41130
41131         * lib/striconveh.c (utf8conv_carefully): New function.
41132         (mem_cd_iconveh_internal): Invoke it.
41133
41134 2007-03-28  Bruno Haible  <bruno@clisp.org>
41135
41136         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
41137         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
41138         input.
41139         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
41140         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
41141         unistr/u8-uctomb.
41142
41143 2007-03-28  Bruno Haible  <bruno@clisp.org>
41144
41145         * modules/unistr/u8-mbtoucr: New file.
41146         * lib/unistr/u8-mbtoucr.c: New file.
41147         * modules/unistr/u16-mbtoucr: New file.
41148         * lib/unistr/u16-mbtoucr.c: New file.
41149         * modules/unistr/u16-mbtoucr: New file.
41150         * lib/unistr/u16-mbtoucr.c: New file.
41151         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
41152
41153 2007-03-27  Simon Josefsson  <simon@josefsson.org>
41154             Bruno Haible  <bruno@clisp.org>
41155
41156         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
41157         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
41158         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
41159
41160         * m4/stdio_h.m4: Add stubs for vasprintf too.
41161
41162         * modules/stdio: Support vasprintf in sed command.
41163
41164         * modules/vasprintf: Depend on stdio for prototypes.  Remove
41165         vasprintf.h.  Add stdio module indicator.
41166
41167         * lib/stdio_.h: Declare asprintf and vasprintf, based on
41168         vasprintf.h.
41169
41170         * lib/vasprintf.h: File removed.
41171
41172         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
41173         * lib/vasprintf.c: Ditto.
41174         * lib/xvasprintf.c: Ditto.
41175         * tests/test-vasprintf-posix.c: Ditto.
41176         * tests/test-vasprintf.c: Ditto.
41177
41178 2007-03-27  Bruno Haible  <bruno@clisp.org>
41179
41180         Make vasnprintf multithread-safe.
41181         * lib/vasnprintf.c (decimal_point_char): New function.
41182         (VASNPRINTF): Use it.
41183         Suggested by Simon Josefsson.
41184
41185 2007-03-27  Eric Blake  <ebb9@byu.net>
41186
41187         Support sub-second birthtime on cygwin.
41188         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
41189         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
41190         (get_stat_birthtime): Also work with st_birthtim.
41191
41192 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
41193
41194         * lib/stat-time.h (USE_BIRTHTIME): Remove.
41195         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
41196         (get_stat_birthtime_ns): Do not try to use "spare" fields.
41197         (get_stat_birthtime_ns): Simplify compile-time tests.
41198         (get_stat_birthtime): Change the API to look like
41199         get_stat_mtime etc., except return a negative tv_nsec on error.
41200         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
41201         Don't check for "spare" fields.
41202         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
41203         or for struct stat.st_birthtime, as these tests aren't used.
41204         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
41205
41206 2007-03-27  Bruno Haible  <bruno@clisp.org>
41207
41208         * lib/stat-time.h: Include <sys/stat.h>.
41209
41210 2007-03-27  James Youngman  <jay@gnu.org>
41211
41212         * lib/stat-time.h (get_stat_birthtime): New function for
41213           retrieving st_birthtime as provided by UFS2 (hence *BSD).
41214         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
41215           and its variants.
41216         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
41217         * modules/stat-time-test: New file.
41218         * tests/test-stat-time.c: New test, devised by Bruno Haible.
41219
41220 2007-03-26  Bruno Haible  <bruno@clisp.org>
41221
41222         Better support of signalling NaNs.
41223         * lib/atanl.c: Include isnanl.h.
41224         (atanl): Perform test for NaN at the beginning of the function and
41225         through a call to isnanl.
41226         * lib/cosl.c: Include isnanl.h.
41227         (cosl): Perform test for NaN at the beginning of the function and
41228         through a call to isnanl.
41229         * lib/ldexpl.c: Include isnanl.h.
41230         (ldexpl): Perform test for NaN through a call to isnanl.
41231         * lib/logl.c: Include isnanl.h.
41232         (logl): Perform test for NaN at the beginning of the function and
41233         through a call to isnanl.
41234         * lib/sinl.c: Include isnanl.h.
41235         (sinl): Perform test for NaN at the beginning of the function and
41236         through a call to isnanl.
41237         * lib/sqrtl.c: Include isnanl.h.
41238         (sqrtl): Perform test for NaN at the beginning of the function and
41239         through a call to isnanl.
41240         * lib/tanl.c: Include isnanl.h.
41241         (tanl): Perform test for NaN at the beginning of the function and
41242         through a call to isnanl.
41243         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
41244         * modules/mathl (Depends-on): Add isnanl.
41245
41246 2007-03-26  Eric Blake  <ebb9@byu.net>
41247
41248         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
41249         regression in logic sense of previous patch.
41250
41251 2007-03-26  Bruno Haible  <bruno@clisp.org>
41252
41253         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
41254         unportable shell command "if ! ...".
41255         Reported by Ralf Wildenhues.
41256
41257 2007-03-25  Bruno Haible  <bruno@clisp.org>
41258
41259         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
41260         <sysexits.h> file, and only add EX_CONFIG.
41261         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
41262         absolute file name and whether it is sufficient. Substitute also
41263         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
41264         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
41265         ABSOLUTE_SYSEXITS_H into sysexits.h.
41266
41267 2007-03-25  Bruno Haible  <bruno@clisp.org>
41268
41269         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
41270         hints is NULL.
41271
41272 2007-03-25  Bruno Haible  <bruno@clisp.org>
41273
41274         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
41275         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
41276
41277 2007-03-25  Bruno Haible  <bruno@clisp.org>
41278
41279         * lib/vasnprintf.c: Include langinfo.h.
41280         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
41281         multithread-safe.
41282         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
41283         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
41284         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41285         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41286         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41287         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41288         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41289         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
41290         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41291         Reported by Simon Josefsson.
41292
41293 2007-03-25  Bruno Haible  <bruno@clisp.org>
41294
41295         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
41296         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
41297         * modules/vasnprintf (Depends-on): Add stdint.
41298
41299 2007-03-25  Bruno Haible  <bruno@clisp.org>
41300
41301         * modules/fpieee: New file.
41302         * m4/fpieee.m4: New file.
41303         * modules/isnan-nolibm (Depends-on): Add fpieee.
41304         * modules/isnanl-nolibm (Depends-on): Add fpieee.
41305         * modules/isnanl (Depends-on): Add fpieee.
41306
41307 2007-03-25  Bruno Haible  <bruno@clisp.org>
41308
41309         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
41310
41311 2007-03-25  Bruno Haible  <bruno@clisp.org>
41312
41313         Avoid test failures on IRIX 6.5.
41314         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
41315         (main): Use it.
41316         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
41317         macros.
41318         (main): Use them.
41319
41320 2007-03-25  Bruno Haible  <bruno@clisp.org>
41321
41322         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
41323         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
41324         exists but doesn't work.
41325         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
41326         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
41327         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
41328         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
41329
41330 2007-03-25  Bruno Haible  <bruno@clisp.org>
41331
41332         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
41333         returns inf. Needed on IRIX 6.5.
41334
41335 2007-03-25  Bruno Haible  <bruno@clisp.org>
41336
41337         * tests/test-frexpl.c: Include isnanl-nolibm.h.
41338         (main): Use isnanl instead of x != x idiom.
41339         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
41340
41341         * tests/test-frexp.c: Include isnan.h.
41342         (main): Use isnan instead of x != x idiom.
41343         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
41344
41345 2007-03-25  Bruno Haible  <bruno@clisp.org>
41346
41347         * tests/test-frexp.c (NaN): New function/macro.
41348         (main): Use it instead of 0.0 / 0.0.
41349         * tests/test-isnan.c (NaN): New function/macro.
41350         (main): Use it instead of 0.0 / 0.0.
41351         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
41352         (test_function): Use it instead of 0.0 / 0.0.
41353         * tests/test-vasprintf-posix.c (NaN): New function/macro.
41354         (test_function): Use it instead of 0.0 / 0.0.
41355         * tests/test-snprintf-posix.h (NaN): New function/macro.
41356         (test_function): Use it instead of 0.0 / 0.0.
41357         * tests/test-sprintf-posix.h (NaN): New function/macro.
41358         (test_function): Use it instead of 0.0 / 0.0.
41359         * tests/test-fprintf-posix.h (NaN): New function/macro.
41360         (test_function): Use it instead of 0.0 / 0.0.
41361         * tests/test-printf-posix.h (NaN): New function/macro.
41362         (test_function): Use it instead of 0.0 / 0.0.
41363
41364         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
41365
41366 2007-03-25  Bruno Haible  <bruno@clisp.org>
41367
41368         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
41369
41370 2007-03-25  Bruno Haible  <bruno@clisp.org>
41371
41372         * lib/regexec.c (merge_state_with_log): Make static.
41373
41374 2007-03-25  Bruno Haible  <bruno@clisp.org>
41375
41376         * lib/trigl.c (kernel_rem_pio2): Make static.
41377
41378 2007-03-25  Bruno Haible  <bruno@clisp.org>
41379
41380         * lib/sincosl.c (sincosl_table): Make static.
41381
41382 2007-03-25  Bruno Haible  <bruno@clisp.org>
41383
41384         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
41385         if the compiler does not support C99.
41386
41387 2007-03-25  Bruno Haible  <bruno@clisp.org>
41388
41389         * modules/time (Makefile.am): Ensure all rule action lines start with a
41390         tab.
41391
41392 2007-03-24  Bruno Haible  <bruno@clisp.org>
41393
41394         * modules/tsearch-tests: New file.
41395         * tests/test-tsearch.sh: New file.
41396         * tests/test-tsearch.c: New file, mostly copied from glibc.
41397
41398         * modules/search-tests: New file.
41399         * tests/test-search.c: New file.
41400
41401         * modules/search: New file.
41402         * lib/search_.h: New file, incorporating lib/tsearch.h.
41403         * m4/search_h.m4: New file.
41404         * lib/tsearch.h: Remove file.
41405         * lib/tsearch.c: Include search.h instead of tsearch.h.
41406         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
41407         HAVE_TSEARCH.
41408         * modules/tsearch (Files): Remove lib/tsearch.h.
41409         (Depends-on): Add search.
41410         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
41411         (Include): Change tsearch.h into search.h.
41412
41413 2007-03-24  Bruno Haible  <bruno@clisp.org>
41414
41415         * modules/fpucw: New file.
41416         * lib/fpucw.h: New file.
41417         * lib/frexp.c: Include fpucw.h.
41418         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
41419         (FUNC): Use them.
41420         * lib/printf-frexp.c: Include fpucw.h.
41421         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
41422         (FUNC): Use them.
41423         * lib/vasnprintf.c: Include fpucw.h.
41424         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
41425         'long double' calculations.
41426         * tests/test-frexpl.c: Include fpucw.h.
41427         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
41428         * tests/test-printf-frexpl.c: Include fpucw.h.
41429         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
41430         * modules/frexpl (Depends-on): Add fpucw.
41431         * modules/printf-frexpl (Depends-on): Likewise.
41432         * modules/fprintf-posix (Depends-on): Likewise.
41433         * modules/snprintf-posix (Depends-on): Likewise.
41434         * modules/sprintf-posix (Depends-on): Likewise.
41435         * modules/vasnprintf-posix (Depends-on): Likewise.
41436         * modules/vasprintf-posix (Depends-on): Likewise.
41437         * modules/vfprintf-posix (Depends-on): Likewise.
41438         * modules/vsnprintf-posix (Depends-on): Likewise.
41439         * modules/vsprintf-posix (Depends-on): Likewise.
41440         * modules/frexpl-tests (Depends-on): Likewise.
41441         * modules/printf-frexpl-tests (Depends-on): Likewise.
41442
41443 2007-03-24  Bruno Haible  <bruno@clisp.org>
41444
41445         * lib/float+.h: New file.
41446         * lib/isnan.c: Include float+.h.
41447         (SIZE): New macro.
41448         (FUNC): Compare only SIZE bytes of the value.
41449         * lib/vasnprintf.c: Include float+.h.
41450         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
41451         SIZEOF_LDBL or SIZEOF_DBL bytes.
41452         * modules/isnan-nolibm (Files): Add lib/float+.h.
41453         * modules/isnanl-nolibm (Files): Add lib/float+.h.
41454         * modules/isnanl (Files): Add lib/float+.h.
41455         * modules/vasnprintf (Files): Add lib/float+.h.
41456
41457 2007-03-24  Bruno Haible  <bruno@clisp.org>
41458
41459         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
41460         include isnanl-nolibm.h.
41461
41462 2007-03-24  Bruno Haible  <bruno@clisp.org>
41463
41464         * tests/test-read-file.c (main): Don't produce spurious output for
41465         expected situations. Make the test fail if it encountered unexpected
41466         results.
41467
41468 2007-03-24  Bruno Haible  <bruno@clisp.org>
41469
41470         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
41471         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
41472
41473 2007-03-24  Bruno Haible  <bruno@clisp.org>
41474
41475         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
41476
41477 2007-03-24  Bruno Haible  <bruno@clisp.org>
41478
41479         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
41480         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
41481
41482         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
41483         * modules/utf8-ucs4: Turn into a symbolic link to module
41484         unistr/u8-mbtouc.
41485
41486         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
41487         utf8-ucs4-unsafe.
41488         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
41489         unistr/u8-mbtouc-unsafe.
41490
41491         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
41492         * modules/utf16-ucs4: Turn into a symbolic link to module
41493         unistr/u16-mbtouc.
41494
41495         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
41496         utf16-ucs4-unsafe.
41497         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
41498         unistr/u16-mbtouc-unsafe.
41499
41500         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
41501         * modules/ucs4-utf8: Turn into a symbolic link to module
41502         unistr/u8-ubtomb.
41503
41504         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
41505         * modules/ucs4-utf16: Turn into a symbolic link to module
41506         unistr/u16-ubtomb.
41507
41508 2007-03-24  Bruno Haible  <bruno@clisp.org>
41509
41510         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
41511         Enable the function only if HAVE_INLINE.
41512         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
41513         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
41514         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
41515         Enable the function only if HAVE_INLINE.
41516         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
41517         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
41518         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
41519         Enable the function only if HAVE_INLINE.
41520         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
41521         Enable the function only if HAVE_INLINE.
41522         * modules/utf8-ucs4: Update.
41523         * modules/utf8-ucs4-unsafe: Update.
41524         * modules/utf16-ucs4: Update.
41525         * modules/utf16-ucs4-unsafe: Update.
41526         * modules/ucs4-utf8: Update.
41527         * modules/ucs4-utf16: Update.
41528
41529 2007-03-24  Bruno Haible  <bruno@clisp.org>
41530
41531         * lib/utf8-ucs4.h: Remove file.
41532         * lib/utf8-ucs4-unsafe.h: Remove file.
41533         * lib/utf16-ucs4.h: Remove file.
41534         * lib/utf16-ucs4-unsafe.h: Remove file.
41535         * lib/ucs4-utf8.h: Remove file.
41536         * lib/ucs4-utf16.h: Remove file.
41537         * lib/unistr.h: Include their previous contents.
41538         * m4/utf-ucs4.m4: Remove file.
41539         * m4/ucs4-utf.m4: Remove file.
41540         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
41541         (Depends-on): Add unistr/base.
41542         (configure.ac): Remove gl_UTF_UCS4.
41543         (Makefile.am): Update.
41544         (Include): Change to unistr.h.
41545         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
41546         (Depends-on): Add unistr/base.
41547         (configure.ac): Remove gl_UTF_UCS4.
41548         (Makefile.am): Update.
41549         (Include): Change to unistr.h.
41550         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
41551         (Depends-on): Add unistr/base.
41552         (configure.ac): Remove gl_UTF_UCS4.
41553         (Makefile.am): Update.
41554         (Include): Change to unistr.h.
41555         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
41556         (Depends-on): Add unistr/base.
41557         (configure.ac): Remove gl_UTF_UCS4.
41558         (Makefile.am): Update.
41559         (Include): Change to unistr.h.
41560         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
41561         (Depends-on): Add unistr/base.
41562         (configure.ac): Remove gl_UCS4_UTF.
41563         (Makefile.am): Update.
41564         (Include): Change to unistr.h.
41565         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
41566         (Depends-on): Add unistr/base.
41567         (configure.ac): Remove gl_UCS4_UTF.
41568         (Makefile.am): Update.
41569         (Include): Change to unistr.h.
41570         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
41571         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
41572         utf8-ucs4-unsafe.h.
41573         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
41574         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
41575         utf16-ucs4-unsafe.h.
41576         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
41577         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
41578         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
41579         * lib/unistr/u8-strchr.c: Likewise.
41580         * lib/unistr/u8-strrchr.c: Likewise.
41581         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
41582         * lib/unistr/u16-strchr.c: Likewise.
41583         * lib/unistr/u16-strrchr.c: Likewise.
41584         * lib/striconveh.c: Update.
41585         * lib/linebreak.c: Update.
41586
41587 2007-03-24  Bruno Haible  <bruno@clisp.org>
41588
41589         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
41590         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
41591
41592 2007-03-22  Bruno Haible  <bruno@clisp.org>
41593
41594         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
41595
41596 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
41597
41598         * MODULES.html.sh (File system functions): New module write-any-file.
41599         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
41600         * m4/write-any-file.m4: New files.
41601
41602 2007-03-23  Eric Blake  <ebb9@byu.net>
41603
41604         * gnulib-tool: Rearrange space-tab sequences, since some editors
41605         like to eat them.
41606
41607 2007-03-23  Eric Blake  <ebb9@byu.net>
41608
41609         * lib/version-etc.c (version_etc_va): Update license wording to
41610         be more concise.  Recommended by Richard Stallman.
41611
41612 2007-03-22  Bruno Haible  <bruno@clisp.org>
41613
41614         * lib/poll.c (MSG_PEEK): New fallback definition.
41615
41616 2007-03-22  Bruno Haible  <bruno@clisp.org>
41617
41618         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
41619         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
41620         (main): Update.
41621         Fixes a compilation error on BeOS.
41622
41623 2007-03-22  Bruno Haible  <bruno@clisp.org>
41624
41625         * modules/frexpl-tests: New file.
41626         * tests/test-frexpl.c: New file.
41627
41628         * modules/frexpl: New file.
41629         * m4/frexpl.m4: New file.
41630         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
41631         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
41632         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
41633         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
41634         (Depends-on): Add frexpl. Remove isnanl-nolibm.
41635         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
41636
41637 2007-03-22  Bruno Haible  <bruno@clisp.org>
41638
41639         * lib/frexpl.c: Share code with lib/frexp.c.
41640         * modules/mathl (Files): Add lib/frexp.c.
41641         (Depends-on): Add isnanl-nolibm.
41642
41643 2007-03-22  Bruno Haible  <bruno@clisp.org>
41644
41645         * modules/printf-frexp (Files): Add m4/frexp.m4.
41646         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
41647         only if the found frexp function actually works.
41648
41649 2007-03-22  Bruno Haible  <bruno@clisp.org>
41650
41651         * lib/frexp.c: Remove older implementation that uses divisions.
41652
41653 2007-03-21  Bruno Haible  <bruno@clisp.org>
41654
41655         * modules/frexp-tests: New file.
41656         * tests/test-frexp.c: New file.
41657
41658         * modules/frexp: New file.
41659         * lib/frexp.c: New file.
41660         * m4/frexp.m4: New file.
41661         * lib/math_.h (frexp): New declaration.
41662         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
41663         REPLACE_FREXP.
41664         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
41665
41666 2007-03-21  Bruno Haible  <bruno@clisp.org>
41667
41668         * modules/isnanl-tests: New file.
41669         * tests/test-isnanl.c: New file.
41670
41671         * modules/isnanl: New file.
41672         * lib/isnanl.h: New file.
41673         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
41674         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
41675         gl_FUNC_ISNANL_WORKS.
41676         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
41677         New macros.
41678
41679 2007-03-21  Bruno Haible  <bruno@clisp.org>
41680
41681         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
41682         lib/isnanl.h.
41683         (Include): Update.
41684         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
41685         * lib/vasnprintf.c: Update.
41686         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
41687         tests/test-isnanl.h, remove tests/test-isnanl.c.
41688         (Makefile.am): Update.
41689         * tests/test-isnanl-nolibm.c: New file.
41690         * tests/test-isnanl.h: New file.
41691         * tests/test-isnanl.c: Remove file.
41692
41693 2007-03-21  Jim Meyering  <jim@meyering.net>
41694
41695         When trying to open ".", treat ESTALE like EACCES.
41696         * lib/savewd.c (savewd_save): Resort to forking not just upon
41697         failure with EACCES, but also when errno is ESTALE.
41698
41699 2007-03-20  Bruno Haible  <bruno@clisp.org>
41700
41701         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
41702         Needed on AIX 5.1. Reported by Matthew Woehlke.
41703
41704 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
41705
41706         Suggestions by Bruno Haible:
41707         * lib/acl-internal.h: Include "gettext.h" rather than rolling
41708         our own.
41709         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
41710         * modules/acl (Depends-on): Add gettext.
41711
41712 2007-03-19  Bruno Haible  <bruno@clisp.org>
41713
41714         * modules/iconvme: Remove file.
41715         * lib/iconvme.h: Remove file.
41716         * lib/iconvme.c: Remove file.
41717         * m4/iconvme.m4: Remove file.
41718
41719 2007-03-19  Bruno Haible  <bruno@clisp.org>
41720
41721         * doc/relocatable-maint.texi: Break long shell script line.
41722         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
41723
41724 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
41725
41726         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
41727         handle file_has_acl.
41728         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
41729         * lib/acl.c: Move header inclusions and related macro defns into
41730         lib/acl-internal.h.
41731         (S_ISLNK): Remove defn, since that's now done for us.
41732         (file_has_acl): Move to lib/file-has-acl.c.
41733         Call acl_trivial if available.  This is the crucial part of the fix.
41734         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
41735         shared within the library.  Rewrite a bit, partly to make it compatible
41736         with the GNU coding style.
41737         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
41738         Remove unnecessary double-quotes.
41739         Don't test for acl_to_text; the build will catch that.
41740         Replace acl_entries if it doesn't exist and it is needed.
41741         Check for -lsec and acl_trivial (as used on Solaris 10).
41742         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
41743         lib/file-has-acl.c.
41744         (Depends-on): Add sys_stat, for S_ISLNK.
41745
41746 2007-03-19  Ben Pfaff  <blp@gnu.org>
41747
41748         * doc/gnulib.texi: Fix typos.
41749         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
41750
41751 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
41752
41753         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
41754         If size is zero here, buf must be zero.
41755
41756 2007-03-19  Simon Josefsson  <simon@josefsson.org>
41757
41758         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
41759         <bruno@clisp.org>.
41760
41761 2007-03-18  Bruno Haible  <bruno@clisp.org>
41762
41763         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
41764         Suggested by Eric Blake.
41765
41766 2007-03-18  Ben Pfaff  <blp@gnu.org>
41767
41768         * doc/relocatable.texi: Recommend using as prefix a directory
41769         that does not exist and will never be created.  Based on
41770         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
41771         and others.
41772
41773 2007-03-17  Bruno Haible  <bruno@clisp.org>
41774
41775         * lib/fchownat.c: Include lchown.h.
41776
41777 2007-03-17  Bruno Haible  <bruno@clisp.org>
41778
41779         Fix endless loop when the given allocated size was > INT_MAX.
41780         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
41781         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
41782         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
41783         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
41784         * lib/sprintf.c (sprintf): Likewise.
41785
41786 2007-03-17  Bruno Haible  <bruno@clisp.org>
41787
41788         * tests/test-argp-2.sh (func_compare): Output a context diff.
41789
41790 2007-03-17  Bruno Haible  <bruno@clisp.org>
41791
41792         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
41793         locale's decimal-point character.
41794
41795 2007-03-17  Bruno Haible  <bruno@clisp.org>
41796
41797         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
41798         before comparing it. Needed because on some platforms (e.g. x86) a
41799         'long double' occupies less bytes than sizeof (long double).
41800
41801 2007-03-17  Bruno Haible  <bruno@clisp.org>
41802
41803         * tests/test-crc.c (main): Make printf statements 64-bit clean.
41804         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
41805         * tests/test-getaddrinfo.c (simple): Likewise.
41806         * tests/test-read-file.c (main): Likewise.
41807
41808 2007-03-17  Bruno Haible  <bruno@clisp.org>
41809
41810         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
41811
41812 2007-03-17  Bruno Haible  <bruno@clisp.org>
41813
41814         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
41815         unused variable.
41816
41817 2007-03-17  Bruno Haible  <bruno@clisp.org>
41818
41819         * tests/test-c-strcasecmp.c: Include c-strcase.h.
41820         * tests/test-c-strncasecmp.c: Likewise.
41821
41822 2007-03-17  Bruno Haible  <bruno@clisp.org>
41823
41824         * modules/stdlib (Depends-on): Add unistd.
41825         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
41826         Needed for MacOS X 10.3.
41827
41828 2007-03-17  Bruno Haible  <bruno@clisp.org>
41829
41830         * lib/unistr/u-strdup.h: Include <stdlib.h>.
41831
41832 2007-03-17  Bruno Haible  <bruno@clisp.org>
41833
41834         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
41835
41836 2007-03-17  Bruno Haible  <bruno@clisp.org>
41837
41838         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
41839         to reflect files copied from gnulib (with or without modifications).
41840         Suggested by Jim Meyering.
41841
41842 2007-03-17  Eric Blake  <ebb9@byu.net>
41843
41844         * NEWS: Document stdlib change from 2007-02-18.
41845
41846 2007-03-17  Jim Meyering  <jim@meyering.net>
41847
41848         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
41849         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
41850         someone uses a name containing shell meta-characters.
41851         Reported by Alfred M. Szmidt.
41852
41853         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
41854
41855 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
41856
41857         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
41858         and copy gettext configuration files only if configure.ac contains
41859         a use of AM_GNU_GETTEXT_VERSION.
41860
41861 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
41862
41863         * build-aux/bootstrap (gnulib_name): New variable.
41864         (gnulib_tool_options): Use it.
41865
41866 2007-03-13  Simon Josefsson  <simon@josefsson.org>
41867
41868         * tests/test-des.c: Use new namespace.
41869
41870 2007-03-15  Bruno Haible  <bruno@clisp.org>
41871
41872         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
41873         Reported by James Youngman <jay@gnu.org>.
41874
41875 2007-03-15  Bruno Haible  <bruno@clisp.org>
41876
41877         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
41878         declared prototype. Needed with cc on OSF/1 5.1.
41879
41880 2007-03-15  Bruno Haible  <bruno@clisp.org>
41881
41882         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
41883         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
41884         (struct gl_list_implementation): Add dispose_fn argument to the
41885         'create_empty', 'create' methods.
41886         (struct gl_list_impl_base): Add field 'dispose_fn'.
41887         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
41888         argument.
41889         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
41890         dispose_fn argument.
41891         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
41892         dispose_fn on the dropped values.
41893         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
41894         dispose_fn argument.
41895         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
41896         dropped values.
41897         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
41898         (gl_tree_remove_node): Call dispose_fn on the dropped value.
41899         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
41900         (gl_tree_remove_node): Call dispose_fn on the dropped value.
41901         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
41902         argument.
41903         (gl_tree_list_free): Call dispose_fn on the dropped values.
41904         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
41905         the dropped values.
41906         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
41907         Add dispose_fn argument.
41908         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
41909         Call dispose_fn on the dropped values.
41910         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
41911         Add dispose_fn argument.
41912         (gl_sublist_create): Initialize the 'dispose_fn' field.
41913         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
41914         * tests/test-array_list.c (main): Update.
41915         * tests/test-carray_list.c (main): Update.
41916         * tests/test-avltree_list.c (main): Update.
41917         * tests/test-rbtree_list.c (main): Update.
41918         * tests/test-avltreehash_list.c (main): Update.
41919         * tests/test-rbtreehash_list.c (main): Update.
41920         * tests/test-linked_list.c (main): Update.
41921         * tests/test-linkedhash_list.c (main): Update.
41922         * tests/test-array_oset.c (main): Update.
41923
41924 2007-03-15  Bruno Haible  <bruno@clisp.org>
41925
41926         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
41927         (gl_oset_create_empty): Add dispose_fn argument.
41928         (struct gl_oset_implementation): Add dispose_fn argument to
41929         'create_empty' method.
41930         (struct gl_oset_impl_base): Add dispose_fn field.
41931         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
41932         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
41933         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
41934         values.
41935         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
41936         (gl_tree_oset_free): Call dispose_fn on the dropped values.
41937         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
41938         dropped value.
41939         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
41940         dropped value.
41941         * tests/test-array_oset.c (main): Update.
41942         * tests/test-avltree_oset.c (main): Update.
41943         * tests/test-rbtree_oset.c (main): Update.
41944         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
41945
41946 2007-03-13  Bruno Haible  <bruno@clisp.org>
41947
41948         * tests/test-stdbool.c (i): Update after last patch.
41949
41950 2007-03-12  Bruno Haible  <bruno@clisp.org>
41951
41952         * lib/quotearg.c: Include <wctype.h> early, before the definition of
41953         the iswprint macro. Needed on Solaris 2.5.1.
41954
41955 2007-03-12  Bruno Haible  <bruno@clisp.org>
41956
41957         * tests/test-printf-frexp.c (main): Declare x as volatile.
41958
41959 2007-03-12  Simon Josefsson  <simon@josefsson.org>
41960
41961         * doc/gnulib.texi (Build robot for gnulib): New section.
41962
41963 2007-03-12  Jim Meyering  <jim@meyering.net>
41964
41965         * build-aux/bootstrap: New file.
41966         * build-aux/bootstrap.conf: New file, from coreutils.
41967
41968 2007-03-11  Bruno Haible  <bruno@clisp.org>
41969
41970         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
41971
41972 2007-03-12  Simon Josefsson  <simon@josefsson.org>
41973
41974         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
41975         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
41976         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
41977
41978 2007-03-11  Bruno Haible  <bruno@clisp.org>
41979
41980         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
41981         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
41982
41983 2007-03-11  Bruno Haible  <bruno@clisp.org>
41984
41985         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
41986         formula. Needed for SunPRO C 5.0.
41987
41988 2007-03-11  Bruno Haible  <bruno@clisp.org>
41989
41990         * modules/long-options (Depends-on): Add getopt.
41991
41992 2007-03-11  Bruno Haible  <bruno@clisp.org>
41993
41994         * modules/modechange (Depends-on): Add stdbool.
41995
41996 2007-03-11  Bruno Haible  <bruno@clisp.org>
41997
41998         * modules/i-ring (Depends-on): Add stdbool.
41999
42000 2007-03-11  Bruno Haible  <bruno@clisp.org>
42001
42002         * modules/gc-des (Depends-on): Add stdbool.
42003
42004 2007-03-11  Bruno Haible  <bruno@clisp.org>
42005
42006         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
42007
42008 2007-03-11  Bruno Haible  <bruno@clisp.org>
42009
42010         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
42011
42012 2007-03-11  Bruno Haible  <bruno@clisp.org>
42013
42014         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
42015
42016 2007-03-11  Bruno Haible  <bruno@clisp.org>
42017
42018         * lib/vasnprintf.c (sprintf): Undefine.
42019
42020 2007-03-11  Bruno Haible  <bruno@clisp.org>
42021
42022         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
42023         initializers in SunPRO C and Compaq C compilers.
42024
42025 2007-03-11  Bruno Haible  <bruno@clisp.org>
42026
42027         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
42028         decrementing code ANSI C compliant.
42029
42030 2007-03-11  Bruno Haible  <bruno@clisp.org>
42031
42032         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
42033         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
42034
42035 2007-03-11  Bruno Haible  <bruno@clisp.org>
42036
42037         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
42038         <stdbool.h> substitute doesn't pass.
42039
42040 2007-03-11  Bruno Haible  <bruno@clisp.org>
42041
42042         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
42043
42044 2007-03-11  Bruno Haible  <bruno@clisp.org>
42045
42046         * gnulib-tool (func_create_megatestdir): Create also an autobuild
42047         script, for submission to autobuild.josefsson.org.
42048
42049 2007-03-10  Bruno Haible  <bruno@clisp.org>
42050
42051         * modules/canonicalize-lgpl-tests: New file.
42052         * tests/test-canonicalize-lgpl.sh: New file.
42053         * tests/test-canonicalize-lgpl.c: New file.
42054
42055         * modules/c-strcase-tests: New file.
42056         * tests/test-c-strcase.sh: New file.
42057         * tests/test-c-strcasecmp.c: New file.
42058         * tests/test-c-strncasecmp.c: New file.
42059
42060         * modules/atexit-tests: New file.
42061         * tests/test-atexit.sh: New file.
42062         * tests/test-atexit.c: New file.
42063
42064 2007-03-10  Bruno Haible  <bruno@clisp.org>
42065
42066         * tests/test-binary-io.sh: Use temporary filenames that are not so
42067         likely to clash with those of other tests (in a parallel make).
42068         * tests/test-binary-io.c: Likewise.
42069
42070 2007-03-10  Bruno Haible  <bruno@clisp.org>
42071
42072         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
42073         fallback; use #error instead.
42074         Suggested by Simon Josefsson.
42075
42076 2007-03-10  Bruno Haible  <bruno@clisp.org>
42077
42078         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
42079         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
42080         first and the last.
42081
42082 2007-03-10  Bruno Haible  <bruno@clisp.org>
42083
42084         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
42085
42086 2007-03-10  Bruno Haible  <bruno@clisp.org>
42087
42088         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
42089         "make distcheck".
42090         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
42091         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
42092         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
42093
42094 2007-03-10  Bruno Haible  <bruno@clisp.org>
42095
42096         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
42097         variable.
42098         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
42099         variable.
42100
42101 2007-03-09  Eric Blake  <ebb9@byu.net>
42102         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
42103
42104         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
42105         types are not being provided by gnulib.
42106         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
42107         types are supported.
42108
42109 2007-03-10  Bruno Haible  <bruno@clisp.org>
42110
42111         * lib/stdio_.h (__attribute__): New macro.
42112         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
42113         vsprintf): Specify __attribute__ __format__ for GCC.
42114         Suggested by Eric Blake.
42115
42116 2007-03-09  Bruno Haible  <bruno@clisp.org>
42117
42118         * modules/printf-posix-tests: New file.
42119         * tests/test-printf-posix.sh: New file.
42120         * tests/test-printf-posix.c: New file.
42121
42122         * modules/printf-posix: New file.
42123         * lib/printf.c: New file.
42124         * m4/printf-posix-rpl.m4: New file.
42125         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
42126         REPLACE_PRINTF.
42127         * lib/stdio_.h (printf): New declaration.
42128         (format, __format__, ____printf____, ____scanf____, ____strftime____,
42129         ____strfmon____): New macros.
42130         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
42131         REPLACE_PRINTF.
42132
42133 2007-03-09  Bruno Haible  <bruno@clisp.org>
42134
42135         * tests/test-vasnprintf-posix2.sh: New file.
42136         * tests/test-vasnprintf-posix2.c: New file.
42137         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
42138         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
42139         (Makefile.am): Activate test-vasnprintf-posix2.sh.
42140
42141         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
42142         a locale dependent decimal point, rather than always '.'.
42143
42144 2007-03-09  Eric Blake  <ebb9@byu.net>
42145
42146         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
42147         spite of platforms like Tandem/NSK that define it to -1.
42148
42149 2007-03-08  Bruno Haible  <bruno@clisp.org>
42150
42151         * modules/vprintf-posix-tests: New file.
42152         * tests/test-vprintf-posix.sh: New file.
42153         * tests/test-vprintf-posix.c: New file.
42154         * tests/test-printf-posix.h: New file.
42155
42156         * modules/vprintf-posix: New file.
42157         * lib/vprintf.c: New file.
42158         * m4/vprintf-posix.m4: New file.
42159         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
42160         REPLACE_VPRINTF.
42161         * lib/stdio_.h (vprintf): New declaration.
42162         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
42163         REPLACE_VPRINTF.
42164
42165 2007-03-08  Bruno Haible  <bruno@clisp.org>
42166
42167         * modules/fprintf-posix-tests: New file.
42168         * tests/test-fprintf-posix.sh: New file.
42169         * tests/test-fprintf-posix.c: New file.
42170
42171         * modules/fprintf-posix: New file.
42172         * lib/fprintf.c: New file.
42173         * m4/fprintf-posix.m4: New file.
42174         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
42175         REPLACE_FPRINTF.
42176         * lib/stdio_.h (fprintf): New declaration.
42177         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
42178         REPLACE_FPRINTF.
42179
42180 2007-03-08  Bruno Haible  <bruno@clisp.org>
42181
42182         * modules/vfprintf-posix-tests: New file.
42183         * tests/test-vfprintf-posix.sh: New file.
42184         * tests/test-vfprintf-posix.c: New file.
42185         * tests/test-fprintf-posix.h: New file.
42186         * tests/test-fprintf-posix.out: New file.
42187
42188         * modules/vfprintf-posix: New file.
42189         * lib/vfprintf.c: New file.
42190         * m4/vfprintf-posix.m4: New file.
42191         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
42192         REPLACE_VFPRINTF.
42193         * lib/stdio_.h (vfprintf): New declaration.
42194         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
42195         REPLACE_VFPRINTF.
42196
42197 2007-03-08  Bruno Haible  <bruno@clisp.org>
42198
42199         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
42200
42201 2007-03-08  Bruno Haible  <bruno@clisp.org>
42202
42203         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
42204         instead of 'expr' invocations.
42205         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42206         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42207         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42208         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42209         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42210         Suggested by Paul Eggert.
42211
42212 2007-03-08  Bruno Haible  <bruno@clisp.org>
42213
42214         * modules/fseterr-tests: New file.
42215         * tests/test-fseterr.c: New file.
42216
42217         * modules/fseterr: New file.
42218         * lib/fseterr.h: New file.
42219         * lib/fseterr.c: New file.
42220
42221 2007-03-08  Bruno Haible  <bruno@clisp.org>
42222
42223         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
42224         * lib/getopt_.h: Likewise.
42225         * lib/mbswidth.h: Likewise.
42226         * lib/setenv.h: Likewise.
42227         * lib/vasnprintf.h: Likewise.
42228         * lib/vasprintf.h: Likewise.
42229         * lib/verror.h: Likewise.
42230         * lib/xsetenv.h: Likewise.
42231         * lib/xvasprintf.h: Likewise.
42232
42233 2007-03-08  Jim Meyering  <jim@meyering.net>
42234
42235         * users.txt: Add parted.
42236
42237         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
42238
42239 2007-03-07  Bruno Haible  <bruno@clisp.org>
42240
42241         * m4/printf.m4: Make the shell script snippets copy&pastable.
42242
42243 2007-03-02  Bruno Haible  <bruno@clisp.org>
42244
42245         * lib/netinet_in_.h: New file.
42246         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
42247         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
42248         * modules/netinet_in (Files): Add lib/netinet_in_.h.
42249         (Depends-on): Add absolute-header.
42250         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
42251         into netinet/in.h.
42252
42253 2007-03-03  Bruno Haible  <bruno@clisp.org>
42254
42255         * lib/sys_select_.h: New file.
42256         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
42257         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
42258         * modules/sys_select (Files): Add lib/sys_select_.h.
42259         (Depends-on): Add absolute-header.
42260         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
42261         into sys/select.h.
42262
42263 2007-03-02  Bruno Haible  <bruno@clisp.org>
42264
42265         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
42266         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
42267         values.
42268         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
42269         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
42270         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
42271         * modules/sys_socket (Depends-on): Add absolute-header.
42272         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
42273         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
42274         (Include): Remove requirement of inclusion of <sys/types.h>.
42275
42276 2007-03-02  Bruno Haible  <bruno@clisp.org>
42277
42278         * lib/byteswap_.h (bswap_32): Fix formula.
42279
42280 2007-03-06  Bruno Haible  <bruno@clisp.org>
42281
42282         * modules/sprintf-posix-tests: New file.
42283         * tests/test-sprintf-posix.c: New file.
42284
42285         * modules/sprintf-posix: New file.
42286         * lib/sprintf.c: New file.
42287         * m4/sprintf-posix.m4: New file.
42288         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
42289         REPLACE_SPRINTF.
42290         * lib/stdio_.h (sprintf): New declaration.
42291         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
42292         REPLACE_SPRINTF.
42293
42294 2007-03-06  Bruno Haible  <bruno@clisp.org>
42295
42296         * modules/vsprintf-posix-tests: New file.
42297         * tests/test-vsprintf-posix.c: New file.
42298         * tests/test-sprintf-posix.h: New file.
42299
42300         * modules/vsprintf-posix: New file.
42301         * lib/vsprintf.c: New file.
42302         * m4/vsprintf-posix.m4: New file.
42303         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
42304         REPLACE_VSPRINTF.
42305         * lib/stdio_.h (vsprintf): New declaration.
42306         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
42307         REPLACE_VSPRINTF.
42308
42309 2007-03-06  Bruno Haible  <bruno@clisp.org>
42310
42311         * modules/vsnprintf (Depend-on): Remove minmax.
42312
42313 2007-03-06  Bruno Haible  <bruno@clisp.org>
42314
42315         * modules/snprintf-posix-tests: New file.
42316         * tests/test-snprintf-posix.c: New file.
42317
42318         * modules/snprintf-posix: New file.
42319         * m4/snprintf-posix.m4: New file.
42320         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
42321         gl_FUNC_SNPRINTF.
42322         (gl_FUNC_SNPRINTF): Invoke it.
42323         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
42324         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
42325         is set.
42326         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
42327
42328 2007-03-06  Bruno Haible  <bruno@clisp.org>
42329
42330         * modules/vsnprintf-posix-tests: New file.
42331         * tests/test-vsnprintf-posix.c: New file.
42332         * tests/test-snprintf-posix.h: New file.
42333
42334         * modules/vsnprintf-posix: New file.
42335         * m4/vsnprintf-posix.m4: New file.
42336         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
42337         gl_FUNC_VSNPRINTF.
42338         (gl_FUNC_VSNPRINTF): Invoke it.
42339         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
42340         * lib/stdio_.h (vsnprintf): Define as a replacement if
42341         REPLACE_VSNPRINTF is set.
42342         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
42343
42344 2007-03-06  Bruno Haible  <bruno@clisp.org>
42345
42346         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
42347         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
42348
42349 2007-03-06  Bruno Haible  <bruno@clisp.org>
42350
42351         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
42352         (asinl): Declare also if HAVE_DECL_ASINL is set.
42353         (atanl): Declare also if HAVE_DECL_ATANL is set.
42354         (ceill): Declare also if HAVE_DECL_CEILL is set.
42355         (cosl): Declare also if HAVE_DECL_COSL is set.
42356         (expl): Declare also if HAVE_DECL_EXPL is set.
42357         (floorl): Declare also if HAVE_DECL_FLOORL is set.
42358         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
42359         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
42360         (logl): Declare also if HAVE_DECL_LOGL is set.
42361         (sinl): Declare also if HAVE_DECL_SINL is set.
42362         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
42363         (tanl): Declare also if HAVE_DECL_TANL is set.
42364         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
42365         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
42366         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
42367         declaration of frexpl, ldexpl.
42368         * modules/printf-frexpl (Depends-on): Add math.
42369         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
42370
42371 2007-03-05  Bruno Haible  <bruno@clisp.org>
42372
42373         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
42374         frexpl and ldexpl are declared.
42375         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
42376
42377 2007-03-05  Bruno Haible  <bruno@clisp.org>
42378
42379         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
42380         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
42381
42382 2007-03-05  Bruno Haible  <bruno@clisp.org>
42383
42384         * lib/stdio_.h: Include <stddef.h>.
42385
42386 2007-03-05  Bruno Haible  <bruno@clisp.org>
42387
42388         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
42389
42390 2007-03-05  Bruno Haible  <bruno@clisp.org>
42391
42392         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
42393         NetBSD 4, from Ralf Wildenhues.
42394
42395 2007-03-04  Bruno Haible  <bruno@clisp.org>
42396
42397         * lib/vasprintf.h: Update #if logic for the case when the functions
42398         exist but are overridden.
42399
42400 2007-03-04  Bruno Haible  <bruno@clisp.org>
42401
42402         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
42403         implementations: glibc-2.4 and MacOS X 10.3.
42404         * tests/test-vasnprintf-posix.c (test_function): Test also the case
42405         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
42406         * tests/test-vasprintf-posix.c (test_function): Likewise.
42407
42408 2007-03-04  Bruno Haible  <bruno@clisp.org>
42409
42410         * modules/vasprintf-posix-tests: New file.
42411         * tests/test-vasprintf-posix.c: New file.
42412
42413         * modules/vasprintf-posix: New file.
42414         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
42415         defined.
42416         * m4/vasprintf-posix.m4: New file.
42417         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
42418         gl_FUNC_VASPRINTF.
42419         (gl_FUNC_VASPRINTF): Invoke it.
42420         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
42421         here.
42422         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
42423
42424 2007-03-04  Bruno Haible  <bruno@clisp.org>
42425
42426         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
42427         REPLACE_GETTIMEOFDAY.
42428         * modules/sys_time (Makefile.am): Likewise.
42429         * m4/sys_time_h.m4: Likewise.
42430         * m4/gettimeofday.m4: Likewise.
42431
42432 2007-03-04  Bruno Haible  <bruno@clisp.org>
42433
42434         * modules/vasnprintf-posix-tests: New file.
42435         * tests/test-vasnprintf-posix.c: New file.
42436
42437         * modules/vasnprintf-posix: New file.
42438         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
42439         printf-frexpl.h.
42440         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
42441         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
42442         REPLACE_VASNPRINTF is defined.
42443         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
42444         gl_FUNC_VASNPRINTF.
42445         (gl_FUNC_VASNPRINTF): Invoke it.
42446         * m4/vasnprintf-posix.m4: New file.
42447         * m4/printf.m4: New file.
42448
42449 2007-03-04  Bruno Haible  <bruno@clisp.org>
42450
42451         Compile progreloc.c only if --enable-relocatable is specified.
42452         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
42453         if --enable-relocatable was specified.
42454         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
42455         lib_SOURCES.
42456
42457 2007-03-04  Jim Meyering  <jim@meyering.net>
42458
42459         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
42460         Use it consistently, rather than enumerating errno constants.
42461
42462 2007-03-04  Bruno Haible  <bruno@clisp.org>
42463
42464         * modules/xvasprintf-tests: New file.
42465         * tests/test-xvasprintf.c: New file.
42466
42467         * modules/vasprintf-tests: New file.
42468         * tests/test-vasprintf.c: New file.
42469
42470         * modules/vasnprintf-tests: New file.
42471         * tests/test-vasnprintf.c: New file.
42472
42473         * modules/vsnprintf-tests: New file.
42474         * tests/test-vsnprintf.c: New file.
42475
42476         * modules/snprintf-tests: New file.
42477         * tests/test-snprintf.c: New file.
42478
42479 2007-03-04  Bruno Haible  <bruno@clisp.org>
42480
42481         Compile relocatable.c only if --enable-relocatable is specified.
42482         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
42483         gl_RELOCATABLE_LIBRARY.
42484         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
42485         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
42486         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
42487         gl_RELOCATABLE_LIBRARY.
42488         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
42489         (Makefile.am): Remove lib_SOURCES.
42490         * modules/relocatable-lib-lgpl (configure.ac): Invoke
42491         gl_RELOCATABLE_LIBRARY.
42492         (Makefile.am): Remove lib_SOURCES.
42493         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
42494         always.
42495         * modules/relocatable-prog-wrapper (configure.ac): Invoke
42496         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
42497
42498 2007-03-04  Bruno Haible  <bruno@clisp.org>
42499
42500         * modules/argmatch-tests: New file.
42501         * tests/test-argmatch.c: New file.
42502
42503         * tests/test-allocsa.c (main): Halve the number of loop runs.
42504
42505         * modules/alloca-opt-tests: New file.
42506         * tests/test-alloca-opt.c: New file.
42507
42508 2007-03-04  Jim Meyering  <jim@meyering.net>
42509
42510         Work around difference between Linux ACLs and Solaris 10 ZFS.
42511         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
42512         for EINVAL.
42513
42514 2007-03-03  Bruno Haible  <bruno@clisp.org>
42515
42516         * modules/relocatable-prog (Depends-on): Add back progreloc's
42517         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
42518
42519 2007-03-03  Bruno Haible  <bruno@clisp.org>
42520
42521         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
42522         * modules/relocatable-lib: New file.
42523
42524 2007-03-03  Bruno Haible  <bruno@clisp.org>
42525
42526         * modules/relocatable-prog: Renamed from modules/relocatable.
42527         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
42528
42529 2007-03-03  Bruno Haible  <bruno@clisp.org>
42530
42531         * modules/relocatable-script (Files): Add doc/relocatable.texi,
42532         m4/relocatable-lib.m4.
42533         (Depends-on): Remove 'relocatable'.
42534         (configure.ac): Add gl_RELOCATABLE_NOP.
42535
42536 2007-03-03  Bruno Haible  <bruno@clisp.org>
42537
42538         * modules/relocatable-prog-wrapper: New file.
42539         * modules/relocatable (Depends-on): Add it. Remove all other
42540         dependencies except progname.
42541         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
42542
42543         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
42544         (gl_FUNC_STRERROR): Nop.
42545         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
42546
42547         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
42548         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
42549
42550         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
42551         (gl_FUNC_READLINK): Update.
42552
42553         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
42554
42555 2007-03-03  Bruno Haible  <bruno@clisp.org>
42556
42557         * lib/xreadlink.c: Include <unistd.h> unconditionally.
42558         * modules/xreadlink (Depends-on): Add unistd.
42559         * modules/xreadlink-with-size (Depends-on): Likewise.
42560
42561 2007-03-03  Bruno Haible  <bruno@clisp.org>
42562
42563         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
42564         extracted from gt_FUNC_SETENV.
42565         (gt_FUNC_SETENV): Remove macro.
42566         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
42567         remove gt_FUNC_SETENV.
42568
42569 2007-03-03  Bruno Haible  <bruno@clisp.org>
42570
42571         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
42572         ENABLE_RELOCATABLE here.
42573         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
42574
42575 2007-03-03  Bruno Haible  <bruno@clisp.org>
42576
42577         * modules/rbtreehash-list-tests (Depends-on): Add progname.
42578         * tests/test-rbtreehash_list.c: Include progname.h.
42579         (main): Call set_program_name.
42580
42581         * modules/rbtree-oset-tests (Depends-on): Add progname.
42582         * tests/test-rbtree_oset.c: Include progname.h.
42583         (main): Call set_program_name.
42584
42585         * modules/rbtree-list-tests (Depends-on): Add progname.
42586         * tests/test-rbtree_list.c: Include progname.h.
42587         (main): Call set_program_name.
42588
42589         * modules/linked-list-tests (Depends-on): Add progname.
42590         * tests/test-linked_list.c: Include progname.h.
42591         (main): Call set_program_name.
42592
42593 2007-03-03  Bruno Haible  <bruno@clisp.org>
42594
42595         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
42596         All uses of __restrict changed to _Restrict_.
42597         * lib/glob_.h (__restrict): Remove macro.
42598
42599 2007-03-02  Bruno Haible  <bruno@clisp.org>
42600
42601         * modules/gettext (configure.ac): Require gettext infrastructure
42602         from version 0.16.1.
42603
42604 2007-03-02  Bruno Haible  <bruno@clisp.org>
42605
42606         * modules/linkedhash-list-tests (Depends-on): Add progname.
42607         * tests/test-linkedhash_list.c: Include progname.h.
42608         (main): Call set_program_name.
42609
42610         * modules/carray-list-tests (Depends-on): Add progname.
42611         * tests/test-carray_list.c: Include progname.h.
42612         (main): Call set_program_name.
42613
42614         * modules/avltreehash-list-tests (Depends-on): Add progname.
42615         * tests/test-avltreehash_list.c: Include progname.h.
42616         (main): Call set_program_name.
42617
42618         * modules/avltree-oset-tests (Depends-on): Add progname.
42619         * tests/test-avltree_oset.c: Include progname.h.
42620         (main): Call set_program_name.
42621
42622         * modules/avltree-list-tests (Depends-on): Add progname.
42623         * tests/test-avltree_list.c: Include progname.h.
42624         (main): Call set_program_name.
42625
42626         * modules/array-oset-tests (Depends-on): Add progname.
42627         * tests/test-array_oset.c: Include progname.h.
42628         (main): Call set_program_name.
42629
42630         * modules/array-list-tests (Depends-on): Add progname.
42631         * tests/test-array_list.c: Include progname.h.
42632         (main): Call set_program_name.
42633
42634         * modules/argp-tests (Depends-on): Add progname.
42635         * tests/test-argp.c: Include argp.h first. Include progname.h.
42636         (main): Call set_program_name.
42637
42638 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
42639
42640         * doc/gnulib-tool.texi (Initial import): Reword description of
42641         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
42642         limited effect even if defined after the first system include.
42643
42644 2007-03-01  Bruno Haible  <bruno@clisp.org>
42645
42646         * build-aux/config.libpath: Update to libtool-1.5.22.
42647         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42648
42649 2007-03-01  Bruno Haible  <bruno@clisp.org>
42650
42651         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
42652         foo_CFLAGS.
42653         Reported by Ralf Wildenhues.
42654
42655 2007-03-01  Bruno Haible  <bruno@clisp.org>
42656
42657         * build-aux/install-reloc: Remove object files left over by some
42658         compilers.
42659         Reported by Ralf Wildenhues.
42660
42661 2007-03-01  Bruno Haible  <bruno@clisp.org>
42662
42663         * build-aux/install-reloc: Break long lines.
42664
42665 2007-03-01  Bruno Haible  <bruno@clisp.org>
42666
42667         * doc/relocatable.texi: Document that it may not work on OpenBSD.
42668         Reported by Ralf Wildenhues.
42669
42670 2007-03-01  Bruno Haible  <bruno@clisp.org>
42671
42672         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
42673         include ordering constraints.
42674
42675 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
42676
42677         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
42678         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
42679         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
42680         as another example.
42681         * lib/time_.h: Fix misspelling.
42682         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
42683         Require gl_HEADER_TIME_H_DEFAULTS.
42684         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
42685         * m4/time_r.m4 (gl_TIME_R): Likewise.
42686         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
42687
42688 2007-03-01  Bruno Haible  <bruno@clisp.org>
42689
42690         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
42691         * m4/utimens.m4 (gl_UTIMENS): Likewise.
42692
42693 2007-03-01  Jim Meyering  <jim@meyering.net>
42694
42695         * modules/xreadlink (Maintainer): Add my name.
42696         * modules/xreadlink-with-size (Depends-on): Alphabetize.
42697
42698 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
42699             Bruno Haible  <bruno@clisp.org>
42700
42701         * build-aux/install-reloc: Compile also c-ctype.c.
42702         * build-aux/relocatable.sh.in: New file.
42703         * doc/relocatable.texi: New file.
42704         * doc/relocatable-maint.texi: New file.
42705         * doc/gnulib.texi: Include relocatable-maint.texi.
42706         * lib/progreloc.c: Include unistd.h unconditionally.
42707         * lib/relocwrapper.c: Include unistd.h unconditionally.
42708         Include c-ctype.h.
42709         (add_dotbin): Use c_tolower.
42710         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
42711         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
42712         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
42713         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
42714         to m4/relocatable-lib.m4.
42715         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
42716         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
42717         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
42718         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
42719         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
42720         * modules/relocatable: New file.
42721         * modules/relocatable-lib: New file.
42722         * modules/relocatable-script: New file.
42723
42724 2007-02-28  Bruno Haible  <bruno@clisp.org>
42725
42726         Import --enable-relocatable infrastructure.
42727         * build-aux/config.libpath: New file, from GNU gettext.
42728         * build-aux/install-reloc: New file, from GNU gettext.
42729         * build-aux/reloc-ldflags: New file, from GNU gettext.
42730         * lib/relocatable.h: New file, from GNU gettext.
42731         * lib/relocatable.c: New file, from GNU gettext.
42732         * lib/relocwrapper.c: New file, from GNU gettext.
42733         * m4/relocatable.m4: New file, from GNU gettext.
42734
42735 2007-02-28  Bruno Haible  <bruno@clisp.org>
42736
42737         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
42738
42739         * modules/xreadlink: New file, from GNU gettext with modifications.
42740         * lib/xreadlink.c: New file, from GNU gettext.
42741         * lib/xreadlink.h: Add comments.
42742         (xreadlink): New declaration.
42743
42744         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
42745         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
42746         lib/xreadlink-with-size.c.
42747         (configure.ac): Remove gl_XREADLINK invocation.
42748         (Makefile.am): Augment lib_SOURCES.
42749         * m4/xreadlink.m4: Remove file.
42750         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
42751         (xreadlink_with_size): Renamed from xreadink.
42752         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
42753         * modules/canonicalize (Depends-on): Replace xreadlink with
42754         xreadlink-with-size.
42755         * lib/canonicalize.c (canonicalize_filename_mode): Update.
42756
42757 2007-02-25  Jim Meyering  <jim@meyering.net>
42758
42759         * build-aux/announce-gen: When complaining about excess arguments,
42760         list them.
42761
42762 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
42763
42764         * README: Document signed integer overflow situation more
42765         accurately.
42766
42767 2007-02-25  Bruno Haible  <bruno@clisp.org>
42768
42769         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
42770         'a' or 'A' conversion.
42771
42772 2007-02-25  Bruno Haible  <bruno@clisp.org>
42773
42774         * modules/filename: Renamed from modules/pathname.
42775         (Files): Replace lib/pathname.h with lib/filename.h. Replace
42776         lib/concatpath.c with lib/concat-filename.c.
42777         (Makefile.am): Update.
42778         (Include): Replace pathname.h with filename.h.
42779         * lib/filename.h: Renamed from lib/pathname.h.
42780         (concatenated_filename): Renamed from concatenated_pathname.
42781         * lib/concat-filename.c: Renamed from lib/concatpath.c.
42782         (concatenated_filename): Renamed from concatenated_pathname.
42783         * lib/findprog.c: Include filename.h instead of pathname.h.
42784         (find_in_path): Update.
42785         * lib/javacomp.c: Include filename.h instead of pathname.h.
42786         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
42787         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
42788         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
42789         is_oldgcj_14_13_usable, is_javac_usable): Update.
42790         * lib/javaexec.c: Include filename.h instead of pathname.h.
42791         (execute_java_class): Update.
42792         * modules/findprog: Update.
42793         * modules/javacomp: Update.
42794         * modules/javaexec: Update.
42795         * MODULES.html.sh (File system functions): Add 'filename', remove
42796         'pathname'.
42797
42798 2007-02-25  Bruno Haible  <bruno@clisp.org>
42799
42800         * modules/printf-frexpl-tests: New file.
42801         * tests/test-printf-frexpl.c: New file.
42802
42803         * modules/printf-frexpl: New file.
42804         * lib/printf-frexpl.h: New file.
42805         * lib/printf-frexpl.c: New file.
42806         * m4/printf-frexpl.m4: New file.
42807
42808 2007-02-25  Bruno Haible  <bruno@clisp.org>
42809
42810         * modules/printf-frexp-tests: New file.
42811         * tests/test-printf-frexp.c: New file.
42812
42813         * modules/printf-frexp: New file.
42814         * lib/printf-frexp.h: New file.
42815         * lib/printf-frexp.c: New file.
42816         * m4/printf-frexp.m4: New file.
42817
42818 2007-02-25  Bruno Haible  <bruno@clisp.org>
42819
42820         Assume automake >= 1.10 for the tests.
42821         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
42822         * modules/arctwo-tests: Likewise.
42823         * modules/argp-tests: Likewise.
42824         * modules/avltree-list-tests: Likewise.
42825         * modules/avltree-oset-tests: Likewise.
42826         * modules/avltreehash-list-tests: Likewise.
42827         * modules/carray-list-tests: Likewise.
42828         * modules/crc-tests: Likewise.
42829         * modules/des-tests: Likewise.
42830         * modules/gc-arcfour-tests: Likewise.
42831         * modules/gc-arctwo-tests: Likewise.
42832         * modules/gc-des-tests: Likewise.
42833         * modules/gc-hmac-md5-tests: Likewise.
42834         * modules/gc-hmac-sha1-tests: Likewise.
42835         * modules/gc-md2-tests: Likewise.
42836         * modules/gc-md4-tests: Likewise.
42837         * modules/gc-md5-tests: Likewise.
42838         * modules/gc-pbkdf2-sha1-tests: Likewise.
42839         * modules/gc-rijndael-tests: Likewise.
42840         * modules/gc-sha1-tests: Likewise.
42841         * modules/gc-tests: Likewise.
42842         * modules/getaddrinfo-tests: Likewise.
42843         * modules/hmac-md5-tests: Likewise.
42844         * modules/hmac-sha1-tests: Likewise.
42845         * modules/linked-list-tests: Likewise.
42846         * modules/linkedhash-list-tests: Likewise.
42847         * modules/lock-tests: Likewise.
42848         * modules/md2-tests: Likewise.
42849         * modules/md4-tests: Likewise.
42850         * modules/md5-tests: Likewise.
42851         * modules/rbtree-list-tests: Likewise.
42852         * modules/rbtree-oset-tests: Likewise.
42853         * modules/rbtreehash-list-tests: Likewise.
42854         * modules/read-file-tests: Likewise.
42855         * modules/rijndael-tests: Likewise.
42856         * modules/stdint-tests: Likewise.
42857         * modules/tls-tests: Likewise.
42858
42859 2007-02-24  Bruno Haible  <bruno@clisp.org>
42860
42861         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
42862         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
42863         function; instead check whether isnan with a double argument links.
42864         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
42865         function; instead check whether isnan with a 'long double' argument
42866         links.
42867         Reported by Eric Blake <ebb9@byu.net>.
42868
42869 2007-02-24  Bruno Haible  <bruno@clisp.org>
42870
42871         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
42872         defined.
42873         * lib/isnanl.c: Remove all code. Just include isnan.c.
42874         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
42875
42876 2007-02-25  Jim Meyering  <jim@meyering.net>
42877
42878         Avoid conflicting types for 'unsetenv' on FreeBSD.
42879         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
42880         conflicting with FreeBSD's (5.0 and 6.1) function declaration
42881         in stdlib.h.
42882
42883 2007-02-24  Bruno Haible  <bruno@clisp.org>
42884
42885         * modules/isnanl-nolibm-tests: New file.
42886         * tests/test-isnanl.c: New file.
42887
42888         * modules/isnanl-nolibm: New file.
42889         * lib/isnanl.h: New file.
42890         * lib/isnanl.c: New file.
42891         * m4/isnanl.m4: New file.
42892
42893 2007-02-24  Bruno Haible  <bruno@clisp.org>
42894
42895         * modules/isnan-nolibm-tests: New file.
42896         * tests/test-isnan.c: New file.
42897
42898         * modules/isnan-nolibm: New file.
42899         * lib/isnan.h: New file.
42900         * lib/isnan.c: New file.
42901         * m4/isnan.m4: New file.
42902
42903 2007-02-24  Bruno Haible  <bruno@clisp.org>
42904
42905         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
42906         assume that an exponent fits in 20 bits.
42907
42908 2007-02-24  Jim Meyering  <jim@meyering.net>
42909
42910         * m4/regex.m4: Update the description of the configure-time option,
42911         --without-included-regex, to state accurately what the defaults are,
42912         and perhaps to give people an idea why using this option is risky.
42913
42914 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
42915
42916         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
42917         loops on small arguments.  This attempts to avoid the problem
42918         Bruno Haible reported for AIX 4.3.2 in
42919         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
42920
42921 2007-02-23  Bruno Haible  <bruno@clisp.org>
42922
42923         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
42924         Needed for help2man.
42925
42926 2007-02-23  Karl Berry  <karl@gnu.org>
42927
42928         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
42929         exists, foo.h should be cvs-ignored, not committed.
42930
42931 2007-02-23  Eric Blake  <ebb9@byu.net>
42932
42933         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
42934         * lib/stat-time.h (includes): Likewise.
42935         * lib/utimecmp.c (includes): Likewise.
42936         * lib/utimens.h (includes): Likewise.
42937         * lib/getdate.y (includes): Also include "timespec.h" for use
42938         internal to the module.
42939         * modules/utimens (Depends-on): Revert yesterday's patch.
42940         * modules/nanosleep (Depends-on): Add missing dependency.
42941
42942 2007-02-22  Bruno Haible  <bruno@clisp.org>
42943
42944         * lib/glob.c: Don't include getlogin_r.h.
42945
42946 2007-02-22  Jim Meyering  <jim@meyering.net>
42947
42948         * modules/utimens (Depends-on): Add timespec, required for
42949         utimens.h's inclusion of timespec.h.
42950
42951 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
42952
42953         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
42954         long unreadable paths in GNU/Linux.  Problem reported by Andreas
42955         Schwab in
42956         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
42957         I'll try to think of a better way to fix the Solaris problem.
42958
42959         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
42960         like glibc; on Solaris 10, it fails with errno == EINVAL.
42961         POSIX says the behavior is unspecified if the first argument is NULL,
42962         so play it safe and never pass NULL to the system getcwd.
42963
42964 2007-02-21  Jim Meyering  <jim@meyering.net>
42965
42966         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
42967         of gettimeofday.  It would conflict with the one now always
42968         provided via sys_time_.h.  Reported by Matthew Woehlke, as
42969         an IRIX 6.5 build failure.
42970
42971 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
42972
42973         Minor fixups to port to Solaris 10 with Sun C 5.8.
42974         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
42975         * modules/getcwd (Depends-on): Add dirfd.
42976         * lib/putenv.c (putenv): #undef it.
42977         (rpl_putenv): New decl.
42978         (malloc, free): Include <stdlib.h> rather than prototyping separately.
42979
42980 2007-02-20  Bruno Haible  <bruno@clisp.org>
42981
42982         * modules/stdio-tests: New file.
42983         * tests/test-stdio.c: New file.
42984
42985         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
42986         (Depends-on): Add stdio.
42987         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
42988         (Include): Use <stdio.h> instead of vsnprintf.h.
42989         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
42990         HAVE_DECL_VSNPRINTF.
42991         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
42992
42993         * modules/snprintf (Files): Remove lib/snprintf.h.
42994         (Depends-on): Add stdio.
42995         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
42996         (Include): Use <stdio.h> instead of snprintf.h.
42997         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
42998         HAVE_DECL_SNPRINTF.
42999         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
43000         * lib/getaddrinfo.c: Likewise.
43001
43002         * modules/stdio: New file.
43003         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
43004         * lib/snprintf.h: Remove file.
43005         * lib/vsnprintf.h: Remove file.
43006         * lib/.cppi-disable: Remove snprintf.h.
43007         * m4/stdio_h.m4: New file.
43008         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
43009
43010 2007-02-20  Jim Meyering  <jim@meyering.net>
43011
43012         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
43013         used by e.g., mingw.  From Bruno Haible.
43014
43015 2007-02-19  Bruno Haible  <bruno@clisp.org>
43016
43017         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
43018         warnings.
43019         Reported by Ben Pfaff <blp@cs.stanford.edu>.
43020
43021 2007-02-19  Bruno Haible  <bruno@clisp.org>
43022
43023         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
43024         from mingw users.
43025
43026 2007-02-19  Bruno Haible  <bruno@clisp.org>
43027
43028         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
43029         warnings.
43030         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
43031
43032 2007-02-19  Jim Meyering  <jim@meyering.net>
43033
43034         Don't use FD after a successful "fdopendir (fd)".
43035         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
43036         Reset it by calling dirfd on the just-obtained DIR*.
43037
43038         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
43039         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
43040
43041 2007-02-18  Bruno Haible  <bruno@clisp.org>
43042
43043         * lib/readlink.c: Include <unistd.h>.
43044         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
43045         HAVE_READLINK.
43046         * modules/readlink (Depends-on): Add unistd.
43047         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43048         (Include): Add <unistd.h>.
43049
43050         * lib/getlogin_r.h: Remove file.
43051         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
43052         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
43053         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
43054         HAVE_DECL_GETLOGIN_R.
43055         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
43056         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43057         (Include): Use <unistd.h> instead of getlogin_r.h.
43058
43059         * lib/getcwd.h: Remove file.
43060         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
43061         * lib/xgetcwd.c: Likewise.
43062         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
43063         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
43064         * modules/getcwd (Files): Remove lib/getcwd.h.
43065         (Depends-on): Add unistd.
43066         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43067         (Include): Use <unistd.h> instad of getcwd.h.
43068
43069         * lib/ftruncate.c: Include <unistd.h> first.
43070         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
43071         Set HAVE_FTRUNCATE.
43072         * modules/ftruncate (Depends-on): Add unistd.
43073         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43074
43075         * lib/fchdir.c: Include <unistd.h> first.
43076         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
43077         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
43078         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
43079         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43080         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
43081
43082         * lib/dup2.c: Include <unistd.h> first.
43083         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
43084         HAVE_DUP2.
43085         * modules/dup2 (Depends-on): Add unistd.
43086         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43087
43088         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
43089         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
43090         REPLACE_CHOWN. Don't define chown as a macro here.
43091         * modules/chown (Depends-on): Add unistd.
43092         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43093
43094         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
43095         Add definition for GL_LINK_WARNING.
43096         (chown, dup2): New declarations.
43097         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
43098         link warning.
43099         (ftruncate): New declaration.
43100         (getcwd): New declaration, taken from old getcwd.h.
43101         (getlogin_r): New declaration, taken from old getlogin_r.h.
43102         (readlink): New declaration.
43103         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
43104         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
43105         (gl_PREREQ_UNISTD): Remove macro.
43106         (gl_UNISTD_MODULE_INDICATOR): New macro.
43107         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
43108         many new variables. Don't set UNISTD_H.
43109         * modules/unistd (Description): Change.
43110         (Depends-on): Add link-warning.
43111         (configure.ac): Update.
43112         (Makefile.am): Create unistd.h always. Substitute many new variables
43113         into it.
43114
43115 2007-02-18  Bruno Haible  <bruno@clisp.org>
43116
43117         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
43118         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
43119         HAVE_GETSUBOPT.
43120         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
43121         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
43122         * lib/getsubopt.h: Remove file.
43123         * modules/getsubopt (Files): Remove lib/getsubopt.h.
43124         (Depends-on): Add stdlib.
43125         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43126         (Includes): Use <stdlib.h> instead of getsubopt.h.
43127         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
43128         Set HAVE_GETSUBOPT.
43129         * lib/getsubopt.c: Don't include getsubopt.h.
43130
43131 2007-02-18  Bruno Haible  <bruno@clisp.org>
43132
43133         * modules/fchdir (Depends-on): Add dup2.
43134
43135 2007-02-18  Bruno Haible  <bruno@clisp.org>
43136
43137         * lib/stdlib_.h: Handle glibc's special invocation convention
43138         specially.
43139
43140 2007-02-18  Bruno Haible  <bruno@clisp.org>
43141
43142         * modules/stdlib-tests: New file.
43143         * tests/test-stdlib.c: New file.
43144
43145         * modules/mkstemp (Files): Remove lib/mkstemp.h.
43146         (Depends-on): Add stdlib.
43147         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43148         (Includes): Use <stdlib.h> instead of mkstemp.h.
43149         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
43150         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
43151         * lib/mkstemp.c: Don't include mkstemp.h.
43152         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
43153         * lib/stdlib--.h: Don't include mkstemp.h.
43154
43155         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
43156         (Depends-on): Add stdlib.
43157         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43158         (Includes): Use <stdlib.h> instead of mkdtemp.h.
43159         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
43160         HAVE_MKDTEMP.
43161         * lib/mkdtemp.c: Don't include mkdtemp.h.
43162         * lib/clean-temp.c: Don't include mkdtemp.h.
43163
43164         * modules/exit (Files): Remove lib/exit.h.
43165         (Depends-on): Add stdlib.
43166         (Makefile.am): Remove lib_SOURCES.
43167         (Include): Use <stdlib.h> instead of exit.h.
43168         * lib/argmatch.c: Don't include exit.h.
43169         * lib/execute.c: Likewise.
43170         * lib/pagealign_alloc.c: Likewise.
43171         * lib/pipe.c: Likewise.
43172         * lib/wait-process.c: Likewise.
43173         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
43174         * lib/exitfail.c: Likewise.
43175         * lib/savewd.c: Likewise.
43176         * lib/xsetenv.c: Likewise.
43177
43178         * modules/stdlib: New file.
43179         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
43180         and extra comments about mkstemp().
43181         * lib/exit.h: Remove file.
43182         * lib/mkdtemp.h: Remove file.
43183         * lib/mkstemp.h: Remove file.
43184         * m4/stdlib_h.m4: New file.
43185         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
43186
43187 2007-02-18  Bruno Haible  <bruno@clisp.org>
43188
43189         * modules/math-tests: New file.
43190         * tests/test-math.c: New file.
43191
43192         * modules/math: New file.
43193         * modules/mathl (Files): Remove lib/mathl.h.
43194         (Depends-on): Add math.
43195         (Makefile.am): Don't mention mathl.h.
43196         (Include): Use <math.h> instead of mathl.h.
43197         * lib/math_.h: New file.
43198         * lib/mathl.h: Remove file.
43199         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
43200         mathl.h.
43201         * lib/asinl.c: Likewise.
43202         * lib/atanl.c: Likewise.
43203         * lib/ceill.c: Likewise.
43204         * lib/cosl.c: Likewise.
43205         * lib/expl.c: Likewise.
43206         * lib/floorl.c: Likewise.
43207         * lib/frexpl.c: Likewise.
43208         * lib/ldexpl.c: Likewise.
43209         * lib/logl.c: Likewise.
43210         * lib/sincosl.c: Likewise.
43211         * lib/sinl.c: Likewise.
43212         * lib/sqrtl.c: Likewise.
43213         * lib/tanl.c: Likewise.
43214         * lib/trigl.c: Likewise.
43215         * m4/math_h.m4: New file.
43216         * MODULES.html.sh (Mathematics): Add math.
43217
43218 2007-02-17  Bruno Haible  <bruno@clisp.org>
43219
43220         * modules/wctype-tests: New file.
43221         * tests/test-wctype.c: New file.
43222
43223         * modules/wchar-tests: New file.
43224         * tests/test-wchar.c: New file.
43225
43226         * modules/unistd-tests: New file.
43227         * tests/test-unistd.c: New file.
43228
43229         * modules/time-tests: New file.
43230         * tests/test-time.c: New file.
43231
43232         * modules/sysexits-tests: New file.
43233         * tests/test-sysexits.c: New file.
43234
43235         * modules/sys_time-tests: New file.
43236         * tests/test-sys_time.c: New file.
43237
43238         * modules/sys_stat-tests: New file.
43239         * tests/test-sys_stat.c: New file.
43240
43241         * modules/sys_socket-tests: New file.
43242         * tests/test-sys_socket.c: New file.
43243
43244         * modules/sys_select-tests: New file.
43245         * tests/test-sys_select.c: New file.
43246
43247         * modules/string-tests: New file.
43248         * tests/test-string.c: New file.
43249
43250         * modules/stdbool-tests: New file.
43251         * tests/test-stdbool.c: New file.
43252
43253         * modules/netinet_in-tests: New file.
43254         * tests/test-netinet_in.c: New file.
43255
43256         * modules/inttypes-tests: New file.
43257         * tests/test-inttypes.c: New file.
43258
43259         * modules/fcntl-tests: New file.
43260         * tests/test-fcntl.c: New file.
43261
43262         * modules/byteswap-tests: New file.
43263         * tests/test-byteswap.c: New file.
43264
43265         * modules/arpa_inet-tests: New file.
43266         * tests/test-arpa_inet.c: New file.
43267
43268 2007-02-17  Bruno Haible  <bruno@clisp.org>
43269
43270         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
43271         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
43272         if the corresponding module is not enabled. Emit link warnings if
43273         the function is used nevertheless.
43274         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
43275         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
43276         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
43277         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
43278         * modules/inttypes (Depends-on): Add link-warning.
43279         (Makefile.am): Copy the contents of build-aux/link-warning.h into
43280         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
43281         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
43282         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
43283         * modules/imaxdiv (configure.ac): Likewise.
43284         * modules/strtoimax (configure.ac): Likewise.
43285         * modules/strtoumax (configure.ac): Likewise.
43286
43287 2007-02-17  Bruno Haible  <bruno@clisp.org>
43288
43289         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
43290         gl_STRING_MODULE_INDICATOR_DEFAULTS.
43291         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
43292         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
43293
43294 2007-02-17  Bruno Haible  <bruno@clisp.org>
43295
43296         * modules/link-warning: New file.
43297         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
43298         * lib/string_.h (GL_LINK_WARNING): Remove definition.
43299         * modules/string (Depends-on): Add link-warning.
43300         (Makefile.am): Copy the contents of build-aux/link-warning.h into
43301         string.h.
43302         * MODULES.html.sh (Support for building libraries and executables): Add
43303         link-warning.
43304
43305 2007-02-17  Bruno Haible  <bruno@clisp.org>
43306
43307         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
43308         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
43309         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
43310         long lines.
43311
43312 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
43313             Bruno Haible  <bruno@clisp.org>
43314
43315         * modules/tmpfile: New file.
43316         * lib/tmpfile.c: New file.
43317         * m4/tmpfile.m4: New file.
43318         * MODULES.html.sh (func_all_modules): New section "Input/output".
43319
43320 2007-02-15  Bruno Haible  <bruno@clisp.org>
43321
43322         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
43323         (supports_delete_on_close): New function.
43324         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
43325
43326 2007-02-14  Bruno Haible  <bruno@clisp.org>
43327
43328         * modules/mbspcasecmp-tests: New file.
43329         * tests/test-mbspcasecmp.sh: New file.
43330         * tests/test-mbspcasecmp.c: New file.
43331
43332         New module mbspcasecmp.
43333         * modules/mbspcasecmp: New file.
43334         * lib/mbspcasecmp.c: New file.
43335         * lib/string_.h (strncasecmp): Change warning message.
43336         (mbspcasecmp): New declaration.
43337         * m4/mbspcasecmp.m4: New file.
43338         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43339         GNULIB_MBSPCASECMP.
43340         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
43341         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
43342
43343 2007-02-14  Bruno Haible  <bruno@clisp.org>
43344
43345         * modules/mbsncasecmp-tests: New file.
43346         * tests/test-mbsncasecmp.sh: New file.
43347         * tests/test-mbsncasecmp.c: New file.
43348
43349         New module mbsncasecmp.
43350         * modules/mbsncasecmp: New file.
43351         * lib/mbsncasecmp.c: New file.
43352         * lib/string_.h (mbsncasecmp): New declaration.
43353         * m4/mbsncasecmp.m4: New file.
43354         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43355         GNULIB_MBSNCASECMP.
43356         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
43357         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
43358
43359 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
43360
43361         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
43362         Verify that it doesn't overlap with our flags.
43363         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
43364         do not have the desired effect in multibyte locales; instead, use
43365         mbscasecmp.
43366         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
43367         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
43368         we don't require GNU fnmatch ourselves (if our users require it, they
43369         should do so explicitly).
43370
43371         Fix regex code so it doesn't rely on strcasecmp.
43372         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
43373         Otherwise, include gnulib's langinfo.h.
43374         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
43375         undesirable behavior in non-C locales.  Instead, rely on localecharset.
43376         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
43377         * modules/regex (FILES): Remove m4/codeset.m4.
43378         (Depends-on): Add localcharset.  Remove strcase.
43379
43380 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43381
43382         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
43383         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
43384
43385 2007-02-13  Bruno Haible  <bruno@clisp.org>
43386
43387         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
43388         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43389
43390 2007-02-12  Bruno Haible  <bruno@clisp.org>
43391
43392         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
43393         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
43394         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
43395         time warning rather than a link error.
43396
43397 2007-02-12  Bruno Haible  <bruno@clisp.org>
43398
43399         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
43400         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
43401         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43402
43403 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
43404
43405         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
43406         args, not 2.
43407
43408 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
43409
43410         New module 'time', so that apps can include <time.h> as per
43411         POSIX and GNU instead of separate include files like time_r.h
43412         and timegm.h.  This implementation tries out a simpler approach
43413         for replacing decls in standard include files (as compared to
43414         the string module), somewhat as an experiment.
43415
43416         * config/srclist.txt: Comment out mktime.c for now.
43417         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
43418         since it doesn't apply any more.  Use generic wording instead.
43419         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
43420         'time'.
43421         * lib/time_.h, m4/time_h.m4, modules/time: New files.
43422         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
43423         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
43424         Don't include <sys/types.h>; no longer needed since we assume C89.
43425         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
43426         * lib/strftime.c: Likewise.
43427         * lib/time_r.c: Likewise.
43428         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
43429         * lib/nanosleep.c: Include <time.h> first, to check interface.
43430         * lib/strptime.c: Likewise.
43431         * lib/time_r.c: Likewise.
43432         * lib/timegm.c: Likewise.
43433         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
43434         needed.
43435         * lib/timegm.c: Don't include timegm.h; no longer needed.
43436         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
43437         time.h now handles any problems in that area.
43438         (struct timespec, nanosleep): Remove; time.h now arranges for these.
43439         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
43440         that time.h defines struct timespec.
43441         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
43442         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
43443         handles that.
43444         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
43445         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
43446         needed.  Set REPLACE_LOCALTIME.
43447         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
43448         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
43449         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
43450         nanosleep; time_h.m4 now does that.  Don't require
43451         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
43452         module handles this now.
43453         * modules/getdate (Depends-on): Remove timespec.  Add time.
43454         * modules/nanosleep (Depends-on): Likewise.
43455         * modules/stat-time (Depends-on): Likewise.
43456         * modules/nanosleep (Include): Include time.h, not timespec.h.
43457         * modules/strptime (Files): Remove lib/strptime.h.
43458         (Depends-on): Add extensions, time.
43459         (Include): Include time.h, not strptime.h.
43460         * modules/time_r (Files): Remove lib/time_r.h.
43461         (Depends-on): Add time.
43462         (Include): Include time.h, not time_r.h.
43463         * modules/timegm: Likewise.
43464         * modules/timespec (Description): Now does timespec-related decls
43465         of our own, instead of struct timespec itself.
43466         (Depends-on): Add time; remove extensions.
43467         (Maintainer): Add self.
43468         * modules/utimecmp (Depends-on): Add time; remove timespec.
43469         * modules/utimens (Depends-on): Likewise.
43470         * modules/xnanosleep (Depends-on): Likewise.
43471
43472 2007-02-11  Bruno Haible  <bruno@clisp.org>
43473
43474         * lib/c-strstr.c: Include allocsa.h.
43475         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
43476         * lib/c-strcasestr.c: Include allocsa.h.
43477         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
43478         * lib/strcasestr.c: Include allocsa.h.
43479         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
43480         * lib/mbsstr.c: Include allocsa.h.
43481         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
43482         allocsa/freesa instead of malloc/free.
43483         * lib/mbscasestr.c: Include allocsa.h.
43484         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
43485         allocsa/freesa instead of malloc/free.
43486         * modules/c-strstr (Depends-on): Add allocsa.
43487         * modules/c-strcasestr (Depends-on): Likewise.
43488         * modules/strcasestr (Depends-on): Likewise.
43489         * modules/mbsstr (Depends-on): Likewise.
43490         * modules/mbscasestr (Depends-on): Likewise.
43491
43492 2007-02-11  Bruno Haible  <bruno@clisp.org>
43493
43494         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
43495
43496         * modules/mbsspn-tests: New file.
43497         * tests/test-mbsspn.sh: New file.
43498         * tests/test-mbsspn.c: New file.
43499
43500 2007-02-11  Bruno Haible  <bruno@clisp.org>
43501
43502         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
43503
43504         * modules/mbspbrk-tests: New file.
43505         * tests/test-mbspbrk.sh: New file.
43506         * tests/test-mbspbrk.c: New file.
43507
43508 2007-02-11  Bruno Haible  <bruno@clisp.org>
43509
43510         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
43511         unneeded cast.
43512
43513         * modules/mbscspn-tests: New file.
43514         * tests/test-mbscspn.sh: New file.
43515         * tests/test-mbscspn.c: New file.
43516
43517 2007-02-11  Bruno Haible  <bruno@clisp.org>
43518
43519         * modules/mbscasecmp-tests: New file.
43520         * tests/test-mbscasecmp.sh: New file.
43521         * tests/test-mbscasecmp.c: New file.
43522
43523 2007-02-11  Bruno Haible  <bruno@clisp.org>
43524
43525         Ensure O(n) worst-case complexity of mbscasestr.
43526         * lib/mbscasestr.c: Include stdbool.h.
43527         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
43528         functions.
43529         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
43530         the bookkeeping indicates that it's worth it.
43531         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
43532
43533         * modules/mbscasestr-tests: New file.
43534         * tests/test-mbscasestr1.c: New file.
43535         * tests/test-mbscasestr2.sh: New file.
43536         * tests/test-mbscasestr2.c: New file.
43537         * tests/test-mbscasestr3.sh: New file.
43538         * tests/test-mbscasestr3.c: New file.
43539         * tests/test-mbscasestr4.sh: New file.
43540         * tests/test-mbscasestr4.c: New file.
43541         * m4/locale-tr.m4: New file.
43542
43543 2007-02-11  Bruno Haible  <bruno@clisp.org>
43544
43545         Ensure O(n) worst-case complexity of mbsstr.
43546         * lib/mbsstr.c: Include stdbool.h.
43547         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
43548         functions.
43549         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
43550         bookkeeping indicates that it's worth it.
43551         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
43552
43553         * modules/mbsstr-tests: New file.
43554         * tests/test-mbsstr1.c: New file.
43555         * tests/test-mbsstr2.sh: New file.
43556         * tests/test-mbsstr2.c: New file.
43557         * tests/test-mbsstr3.sh: New file.
43558         * tests/test-mbsstr3.c: New file.
43559         * m4/locale-fr.m4: New file.
43560
43561 2007-02-11  Bruno Haible  <bruno@clisp.org>
43562
43563         * lib/mbsrchr.c (mbsrchr): Fix bug.
43564
43565         * modules/mbsrchr-tests: New file.
43566         * tests/test-mbsrchr.sh: New file.
43567         * tests/test-mbsrchr.c: New file.
43568
43569 2007-02-11  Bruno Haible  <bruno@clisp.org>
43570
43571         * lib/mbschr.c (mbschr): Fix bug.
43572
43573         * modules/mbschr-tests: New file.
43574         * tests/test-mbschr.sh: New file.
43575         * tests/test-mbschr.c: New file.
43576         * m4/locale-zh.m4: New file.
43577
43578 2007-02-11  Bruno Haible  <bruno@clisp.org>
43579
43580         Support for copying multibyte string iterators.
43581         * lib/mbiter.h: Include <string.h>.
43582         (mbiter_multi_copy): New function.
43583         (mbi_copy): New macro.
43584         * lib/mbuiter.h: Include <string.h>.
43585         (mbuiter_multi_copy): New function.
43586         (mbui_copy): New macro.
43587
43588 2007-02-11  Bruno Haible  <bruno@clisp.org>
43589
43590         New module mbslen.
43591         * modules/mbslen: New file.
43592         * lib/mbslen.c: New file.
43593         * lib/string_.h (mbslen): New declaration.
43594         * m4/mbslen.m4: New file.
43595         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43596         GNULIB_MBSLEN.
43597         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
43598         * MODULES.html.sh (Internationalization functions): Add mbslen.
43599
43600 2007-02-11  Bruno Haible  <bruno@clisp.org>
43601
43602         Ensure O(n) worst-case complexity of strcasestr substitute.
43603         * lib/strcasestr.c: Include stdbool.h.
43604         (knuth_morris_pratt): New function.
43605         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
43606         bookkeeping indicates that it's worth it.
43607         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
43608
43609         * modules/strcasestr-tests: New file.
43610         * tests/test-strcasestr.c: New file.
43611
43612 2007-02-11  Bruno Haible  <bruno@clisp.org>
43613
43614         Ensure O(n) worst-case complexity of c_strcasestr.
43615         * lib/c-strcasestr.c: Include stdbool.h, string.h.
43616         (knuth_morris_pratt): New function.
43617         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
43618         the bookkeeping indicates that it's worth it.
43619         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
43620
43621         * modules/c-strcasestr-tests: New file.
43622         * tests/test-c-strcasestr.c: New file.
43623
43624 2007-02-11  Bruno Haible  <bruno@clisp.org>
43625
43626         Ensure O(n) worst-case complexity of c_strstr.
43627         * lib/c-strstr.c: Include stdbool.h, string.h.
43628         (knuth_morris_pratt): New function.
43629         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
43630         bookkeeping indicates that it's worth it.
43631         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
43632
43633         * lib/c-strstr.c: Complete rewrite for maintainability.
43634
43635         * modules/c-strstr-tests: New file.
43636         * tests/test-c-strstr.c: New file.
43637
43638 2007-02-11  Bruno Haible  <bruno@clisp.org>
43639
43640         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
43641         5.2.1 and earlier, whereby \055 was treated just like the range
43642         delimiter '-'.
43643         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
43644
43645 2007-02-08  Bruno Haible  <bruno@clisp.org>
43646
43647         * modules/regex (Depends-on): Add stdbool.
43648         Reported by Dalibor Topic <robilad@kaffe.org>.
43649
43650 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
43651
43652         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
43653         Prefer returning from main to exiting from it.
43654         Remove unnecessary parens after sizeof.
43655
43656 2007-02-05  Bruno Haible  <bruno@clisp.org>
43657
43658         New module mbssep.
43659         * modules/mbssep: New file.
43660         * lib/mbssep.c: New file.
43661         * lib/string_.h (strsep): Add a conditional link warning.
43662         (mbssep): New declaration.
43663         * m4/mbssep.m4: New file.
43664         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43665         GNULIB_MBSSEP.
43666         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
43667         * MODULES.html.sh (Internationalization functions): Add mbssep.
43668
43669 2007-02-05  Bruno Haible  <bruno@clisp.org>
43670
43671         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
43672         Optimize search in case of 1 delimiter.
43673
43674 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
43675
43676         * lib/acl.h: Include sys/types.h before sys/acl.h.
43677
43678 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
43679
43680         Merge upstream fix for glibc bugzilla #3957:
43681
43682         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
43683
43684         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
43685         bit for RE_HAT_LISTS_NOT_NEWLINE.
43686         (build_charclass_op): Remove bogus comment.
43687
43688 2007-02-05  Simon Josefsson  <simon@josefsson.org>
43689
43690         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
43691
43692 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
43693
43694         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
43695         * lib/memmem.c [!defined _LIBC]: Include config.h.
43696
43697 2007-02-04  Bruno Haible  <bruno@clisp.org>
43698
43699         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
43700         warning message.
43701
43702 2007-02-04  Bruno Haible  <bruno@clisp.org>
43703
43704         New module mbstok_r.
43705         * modules/mbstok_r: New file.
43706         * lib/mbstok_r.c: New file.
43707         * lib/string_.h (strtok_r): Change argument names to match the
43708         comments. Add a conditional link warning.
43709         (mbstok_r): New declaration.
43710         * m4/mbstok_r.m4: New file.
43711         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43712         GNULIB_MBSTOK_R.
43713         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
43714         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
43715
43716 2007-02-04  Bruno Haible  <bruno@clisp.org>
43717
43718         New module mbsspn.
43719         * modules/mbsspn: New file.
43720         * lib/mbsspn.c: New file.
43721         * lib/string_.h (strspn): Add a conditional link warning.
43722         (mbsspn): New declaration.
43723         * m4/mbsspn.m4: New file.
43724         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43725         GNULIB_MBSSPN.
43726         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
43727         * MODULES.html.sh (Internationalization functions): Add mbsspn.
43728
43729 2007-02-04  Bruno Haible  <bruno@clisp.org>
43730
43731         New module mbspbrk.
43732         * modules/mbspbrk: New file.
43733         * lib/mbspbrk.c: New file.
43734         * lib/string_.h (strpbrk): Add a conditional link warning.
43735         (mbspbrk): New declaration.
43736         * m4/mbspbrk.m4: New file.
43737         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43738         GNULIB_MBSPBRK.
43739         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
43740         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
43741
43742 2007-02-04  Bruno Haible  <bruno@clisp.org>
43743
43744         New module mbscspn.
43745         * modules/mbscspn: New file.
43746         * lib/mbscspn.c: New file.
43747         * lib/string_.h (strcspn): Add a conditional link warning.
43748         (mbscspn): New declaration.
43749         * m4/mbscspn.m4: New file.
43750         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43751         GNULIB_MBSCSPN.
43752         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
43753         * MODULES.html.sh (Internationalization functions): Add mbscspn.
43754
43755 2007-02-04  Bruno Haible  <bruno@clisp.org>
43756
43757         New module mbscasestr, reduced goal of strcasestr.
43758         * modules/mbscasestr: New file.
43759         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
43760         (mbscasestr): Renamed from strcasestr.
43761         * lib/strcasestr.c: Don't include mbuiter.h.
43762         (strcasestr): Remove support for multibyte locales.
43763         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
43764         Change the conditional link warning.
43765         (mbscasestr): New declaration.
43766         * m4/mbscasestr.m4: New file.
43767         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
43768         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
43769         REPLACE_STRCASESTR.
43770         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
43771         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43772         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
43773         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
43774         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
43775         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
43776         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
43777         (Depends-on): Remove mbuiter.
43778         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
43779
43780 2007-02-04  Bruno Haible  <bruno@clisp.org>
43781
43782         Simplify handling of strncasecmp.
43783         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
43784         the conditional link warning.
43785         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43786         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
43787         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
43788         * modules/strcase (configure.ac): Don't invoke
43789         gl_STRING_MODULE_INDICATOR.
43790         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
43791
43792 2007-02-04  Bruno Haible  <bruno@clisp.org>
43793
43794         New module mbscasecmp, reduced goal of strcasecmp.
43795         * modules/mbscasecmp: New file.
43796         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
43797         (mbscasecmp): Renamed from strcasecmp.
43798         * lib/strcasecmp.c: Don't include mbuiter.h.
43799         (strcasecmp): Remove support for multibyte locales.
43800         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
43801         Change the conditional link warning.
43802         (mbscasecmp): New declaration.
43803         * m4/mbscasecmp.m4: New file.
43804         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
43805         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
43806         REPLACE_STRCASECMP.
43807         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
43808         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43809         GNULIB_MBSCASECMP.
43810         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
43811         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
43812         * modules/strcase (Files): Remove m4/mbrtowc.m4.
43813         (Depends-on): Remove mbuiter.
43814         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
43815
43816 2007-02-04  Bruno Haible  <bruno@clisp.org>
43817
43818         New module mbsstr. Remove module strstr.
43819         * modules/mbsstr: New file.
43820         * modules/strstr: Remove file.
43821         * lib/mbsstr.c: Renamed from lib/strstr.c.
43822         (mbsstr): Renamed from strstr.
43823         * lib/string_.h (strstr): Remove declaration. Change the conditional
43824         link warning.
43825         (mbsstr): New declaration.
43826         * m4/mbsstr.m4: New file.
43827         * m4/strstr.m4: Remove file.
43828         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
43829         REPLACE_STRSTR.
43830         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
43831         Don't initialize GNULIB_STRSTR.
43832         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
43833         substitute GNULIB_STRSTR and REPLACE_STRSTR.
43834         * MODULES.html.sh (Internationalization functions): Add mbsstr.
43835         (Support for systems lacking ANSI C 89): Remove strstr.
43836
43837 2007-02-04  Bruno Haible  <bruno@clisp.org>
43838
43839         New module mbsrchr.
43840         * modules/mbsrchr: New file.
43841         * lib/mbsrchr.c: New file.
43842         * lib/string_.h (strrchr): Add a conditional link warning.
43843         (mbsrchr): New declaration.
43844         * m4/mbsrchr.m4: New file.
43845         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43846         GNULIB_MBSRCHR.
43847         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
43848         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
43849
43850 2007-02-04  Bruno Haible  <bruno@clisp.org>
43851
43852         New module mbschr.
43853         * modules/mbschr: New file.
43854         * lib/mbschr.c: New file.
43855         * lib/string_.h (strchr): Add a conditional link warning.
43856         (mbschr): New declaration.
43857         * m4/mbschr.m4: New file.
43858         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43859         GNULIB_MBSCHR.
43860         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
43861         * MODULES.html.sh (Internationalization functions): Add mbschr.
43862
43863 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
43864
43865         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
43866
43867         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
43868
43869 2007-02-04  Bruno Haible  <bruno@clisp.org>
43870
43871         New module description section 'configure.ac-early'.
43872         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
43873         (func_get_autoconf_early_snippet): New function.
43874         (func_import, func_create_testdir): Use it. Remove special cases for
43875         modules 'extensions' and 'lock'.
43876         * modules/extensions (configure.ac-early): Require
43877         gl_USE_SYSTEM_EXTENSIONS.
43878         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
43879
43880 2007-02-04  Bruno Haible  <bruno@clisp.org>
43881
43882         Make use of gcj-4.3's -fsource and -ftarget option.
43883         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
43884         and if so try the options -fsource and -ftarget.
43885         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
43886         source_version, ftarget_option, target_version arguments.
43887         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
43888         (is_envjavac_oldgcj_14_14_usable): Renamed from
43889         is_envjavac_gcj_14_14_usable.
43890         (is_envjavac_oldgcj_14_13_usable): Renamed from
43891         is_envjavac_gcj_14_13_usable.
43892         (is_gcj_present): Update.
43893         (is_gcj_43, is_gcj43_usable): New functions.
43894         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
43895         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
43896         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
43897         try the options -fsource and -ftarget.
43898
43899 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
43900
43901         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
43902         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
43903         larger value.
43904
43905 2007-02-03  Jim Meyering  <jim@meyering.net>
43906
43907         Give tools a better chance to allocate space for very large buffers.
43908         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
43909
43910         Make pwd and readlink work also when run with an unreadable parent dir
43911         on systems with openat support.
43912         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
43913         provided getcwd function, even when we have openat support.
43914         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
43915
43916 2007-02-02  Bruno Haible  <bruno@clisp.org>
43917
43918         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
43919         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
43920         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
43921         portability problems if one of these functions is only used on specific
43922         platforms.
43923         Reported by Paul Eggert.
43924
43925 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
43926
43927         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
43928         is causing more trouble than it's curing.
43929         * lib/regex_internal.h (__mempcpy): Remove.
43930         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
43931         (and make the code a tad smaller to boot).
43932         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
43933
43934 2007-02-02  Jim Meyering  <jim@meyering.net>
43935
43936         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
43937         section, not in the Makefile.am: one.
43938
43939 2007-02-02  Eric Blake  <ebb9@byu.net>
43940
43941         * lib/strchrnul.c: Always include config.h first.
43942
43943         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
43944         gnulib strstr is not necessary here.
43945
43946 2007-02-02  Simon Josefsson  <simon@josefsson.org>
43947
43948         * m4/socklen.m4: Fix typo.
43949
43950 2007-02-02  Eric Blake  <ebb9@byu.net>
43951
43952         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
43953         * modules/netinet_in (Makefile.am): Likewise.
43954
43955 2007-02-01  Bruno Haible  <bruno@clisp.org>
43956
43957         * lib/string_.h (GL_LINK_WARNING): New macro.
43958         (strcasecmp, strstr, strcasestr): If provided by the system,
43959         conditionally define as a macro that leads to a warning instead of to
43960         an error.
43961         (strncasecmp): Conditionally define as a macro that leads to a warning.
43962
43963 2007-02-01  Karl Berry  <karl@gnu.org>
43964
43965         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
43966
43967 2007-02-01  Bruno Haible  <bruno@clisp.org>
43968
43969         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
43970         renamings.
43971
43972 2007-02-01  Eric Blake  <ebb9@byu.net>
43973
43974         * modules/regex (Depends-on): Revert dependence on mempcpy.
43975         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
43976         module's definition of mempcpy.
43977         Reported by Paul Eggert.
43978
43979 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
43980
43981         * lib/string_.h: If the gnulib module XYZ is not present, undefine
43982         the symbol XYZ before redefining it.  This fixes a problem with
43983         programs that don't use XYZ, when compiled on systems that define
43984         XYZ to something else.
43985
43986 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
43987
43988         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
43989         occurs when "mkdir -m foo" creates a setgid directory that is (1)
43990         writeable to group or other and (2) is intended to have a special
43991         mode bit that is set or cleared.  In such a case, the directory
43992         should be neither group- nor other-writeable until the special
43993         mode bits are right.
43994
43995 2007-01-31  Eric Blake  <ebb9@byu.net>
43996
43997         * modules/mountlist (Depends-on): Add strstr.
43998
43999         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
44000         bug.
44001         * modules/string (Makefile.am): Remove redundant replacement.
44002         * modules/regex (Depends-on): Add mempcpy.
44003
44004 2007-01-31  Bruno Haible  <bruno@clisp.org>
44005
44006         New module description field 'Link'.
44007         * gnulib-tool (func_usage): Document --extract-link-directive.
44008         (sed_extract_prog): Recognize 'Link' directive.
44009         (func_get_link_directive): New function.
44010         (func_import): Show summary of link directives.
44011         Handle --extract-link-directive option.
44012         * modules/acl (Link): New section.
44013         * modules/clock-time (Link): New section.
44014         * modules/euidaccess (Link): New section.
44015         * modules/gettext (Link): New section.
44016         * modules/iconv (Link): New section.
44017         * modules/lock (Link): New section.
44018         * modules/nanosleep (Link): New section.
44019         * modules/readline (Link): New section.
44020
44021 2007-01-27  Bruno Haible  <bruno@clisp.org>
44022
44023         Enforce the use of gnulib modules for unportable <string.h> functions.
44024         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
44025         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
44026         (gl_HEADER_STRING_H_BODY): Require it.
44027         * lib/string_.h: If the gnulib module XYZ is not present, redefine
44028         the symbol XYZ to one that gives a link error.
44029         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
44030         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
44031         * modules/mempcpy (configure.ac): Likewise.
44032         * modules/memrchr (configure.ac): Likewise.
44033         * modules/stpcpy (configure.ac): Likewise.
44034         * modules/stpncpy (configure.ac): Likewise.
44035         * modules/strcase (configure.ac): Likewise.
44036         * modules/strcasestr (configure.ac): Likewise.
44037         * modules/strchrnul (configure.ac): Likewise.
44038         * modules/strdup (configure.ac): Likewise.
44039         * modules/strndup (configure.ac): Likewise.
44040         * modules/strnlen (configure.ac): Likewise.
44041         * modules/strpbrk (configure.ac): Likewise.
44042         * modules/strsep (configure.ac): Likewise.
44043         * modules/strstr (configure.ac): Likewise.
44044         * modules/strtok_r (configure.ac): Likewise.
44045
44046 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
44047
44048         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
44049
44050 2007-01-30  Jim Meyering  <jim@meyering.net>
44051
44052         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
44053
44054 2007-01-29  Bruno Haible  <bruno@clisp.org>
44055
44056         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
44057         * lib/execute.c: Likewise.
44058         * lib/pipe.c: Likewise.
44059         * lib/printf-args.h: Likewise.
44060         * lib/printf-args.c: Likewise.
44061         * lib/printf-parse.c: Likewise.
44062         * lib/vasnprintf.c: Likewise.
44063
44064 2007-01-29  Eric Blake  <ebb9@byu.net>
44065
44066         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
44067         declaration.
44068
44069 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
44070
44071         * lib/strptime.h (strptime): Use 'restrict' for args where
44072         POSIX requires this.
44073         * lib/strptime.c (strptime): Likewise.
44074         Change license notice from LGPL to GPL, since gnulib-tool will
44075         change this as needed.
44076         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
44077         defined.
44078         Include "strptime.h" first, to check interface.
44079         Do not #undef _LIBC and _NL_CURRENT.
44080         Do not include <stdlib.h>; no longer needed.
44081         Include "time_r.h" and declare ptime_locale_status
44082         only if _LIBC is not defined.
44083         (__P): Remove unused macro.
44084         (match_string): Bring back glibc version, but use it only if _LIBC
44085         is defined.
44086         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
44087         Remove unnecessary assertion and abort() call.
44088         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
44089         * m4/strptime.m4: Fix serial number comment.
44090         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
44091         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
44092         (Depends-on): Add time_r.
44093
44094 2007-01-29  Bruno Haible  <bruno@clisp.org>
44095
44096         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44097         strptime.
44098         * modules/strptime (Depends-on): Add stdbool.
44099         * lib/strptime.h: Include <time.h> always. Add comments.
44100
44101 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
44102
44103         * modules/strptime: New file.
44104         * lib/strptime.h: New file.
44105         * lib/strptime.c: New file.
44106         * m4/strptime.m4: New file.
44107
44108 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
44109
44110         * MODULES.html.sh: New module mpsort.
44111         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
44112
44113         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
44114         a circularity problem with HP-UX ia64 reported by Bob Proulx in
44115         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
44116         All uses changed.
44117         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
44118         All uses changed.
44119         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
44120         to _Restrict_.
44121         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
44122         the parameter matches the prototype.
44123
44124 2007-01-28  Jim Meyering  <jim@meyering.net>
44125
44126         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
44127         sys/time.h here, reverting that part of the previous patch:
44128         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
44129
44130 2007-01-28  Bruno Haible  <bruno@clisp.org>
44131
44132         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
44133         value of $(SYS_TIME_H).
44134         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
44135         remove it conditionally, too. [added by Jim Meyering]
44136         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
44137         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
44138         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
44139         GETTIMEOFDAY_REPLACEMENT to 1.
44140
44141 2007-01-28  Bruno Haible  <bruno@clisp.org>
44142
44143         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
44144         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
44145         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
44146         Set UNISTD_H instead of UNISTD_H2.
44147         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
44148
44149 2007-01-28  Bruno Haible  <bruno@clisp.org>
44150
44151         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
44152         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
44153
44154 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44155
44156         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
44157         (func_create_testdir): Ensure C locale for `grep' and `tr'
44158         character ranges.
44159         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
44160         ACLOCAL_AMFLAGS parsing state machine.
44161
44162 2007-01-27  Bruno Haible  <bruno@clisp.org>
44163
44164         * modules/unistr/base: Update.
44165
44166 2007-01-27  Bruno Haible  <bruno@clisp.org>
44167
44168         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
44169         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
44170         * modules/unistr/u32-mbtouc-unsafe: Renamed from
44171         modules/unistr/u32-mbtouc.
44172         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
44173         * lib/unistr.h: Update.
44174         * lib/linebreak.c: Update.
44175         * modules/unistr/u32-mbtouc: Renamed from
44176         modules/unistr/u32-mbtouc-safe.
44177         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
44178         * lib/unistr.h: Update.
44179         * lib/unistr/u32-to-u8.c: Update.
44180         * lib/unistr/u32-to-u16.c: Update.
44181
44182 2007-01-27  Bruno Haible  <bruno@clisp.org>
44183
44184         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
44185         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
44186         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
44187         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
44188         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
44189         * modules/unistr/u16-mbtouc-unsafe: Renamed from
44190         modules/unistr/u16-mbtouc.
44191         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
44192         * lib/unistr.h: Update.
44193         * lib/linebreak.c: Update.
44194         * modules/linebreak: Update.
44195         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
44196         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
44197         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
44198         * modules/unistr/u16-mbtouc: Renamed from
44199         modules/unistr/u16-mbtouc-safe.
44200         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
44201         * lib/unistr.h: Update.
44202         * lib/unistr/u16-to-u8.c: Update.
44203         * modules/unistr/u16-to-u8: Update.
44204         * lib/unistr/u16-to-u32.c: Update.
44205         * modules/unistr/u16-to-u32: Update.
44206
44207 2007-01-27  Bruno Haible  <bruno@clisp.org>
44208
44209         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
44210         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
44211         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
44212         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
44213         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
44214         * modules/unistr/u8-mbtouc-unsafe: Renamed from
44215         modules/unistr/u8-mbtouc.
44216         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
44217         * lib/unistr.h: Update.
44218         * lib/striconveh.c: Update.
44219         * modules/striconveh: Update.
44220         * lib/linebreak.c: Update.
44221         * modules/linebreak: Update.
44222         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
44223         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
44224         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
44225         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
44226         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
44227         * lib/unistr.h: Update.
44228         * lib/striconveh.c: Update.
44229         * modules/striconveh: Update.
44230         * lib/unistr/u8-to-u16.c: Update.
44231         * modules/unistr/u8-to-u16: Update.
44232         * lib/unistr/u8-to-u32.c: Update.
44233         * modules/unistr/u8-to-u32: Update.
44234
44235 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44236
44237         Sync from Libtool.
44238         * lib/argz.c: Do not include strings.h nor memory.h, include
44239         string.h unconditionally.  Patch by Simon Josefsson.
44240
44241 2007-01-27  Bruno Haible  <bruno@clisp.org>
44242
44243         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
44244         from gl_HEADER_STRING_H_BODY.
44245         (gl_HEADER_STRING_H_BODY): Require it.
44246         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
44247         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
44248         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
44249         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
44250         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
44251         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
44252         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44253         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
44254         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
44255         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
44256         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
44257         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
44258         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
44259         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
44260         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
44261
44262 2007-01-27  Bruno Haible  <bruno@clisp.org>
44263
44264         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
44265         check_PROGRAMS into noinst_PROGRAMS.
44266         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
44267         check_PROGRAMS in this case.
44268         (func_import): Set for_test to false.
44269         (func_create_testdir): Set for_test to true.
44270
44271 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
44272             Bruno Haible  <bruno@clisp.org>
44273
44274         * modules/strcasestr (Files): Remove lib/strcasestr.h.
44275         (Depends-on): Add string.
44276         (Includes): Use <string.h> instead of strcasestr.h.
44277         * modules/string (Makefile.am): Also substitute the value of
44278         REPLACE_STRCASESTR.
44279         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
44280         assume strcasestr is declared in <string.h> not <strings.h>. Also
44281         set REPLACE_STRCASESTR.
44282         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
44283         REPLACE_STRCASESTR.
44284         * lib/strcasestr.h: Remove file.
44285         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
44286         * lib/string_.h (strcasestr): New declaration.
44287
44288 2007-01-27  Bruno Haible  <bruno@clisp.org>
44289
44290         * lib/string_.h: Use 'extern'.
44291
44292 2007-01-27  Jim Meyering  <jim@meyering.net>
44293
44294         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
44295         of set-but-not-used local, "q".
44296
44297         * lib/mempcpy.c: Include <config.h> before <string.h>.
44298         This fixes a compilation error on HP-UX, due to the system's
44299         "restrict"-using mempcpy prototype.
44300
44301 2007-01-26  Bruno Haible  <bruno@clisp.org>
44302
44303         Small optimization.
44304         * lib/javacomp.c: Include c-strstr.h.
44305          (is_envjavac_gcj): Use c_strstr instead of strstr.
44306         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
44307
44308 2007-01-26  Bruno Haible  <bruno@clisp.org>
44309
44310         * MODULES.html.sh (Unicode string functions): Add the new modules.
44311
44312         * modules/uniconv/u32-strconv-to-locale: New file.
44313         * lib/uniconv/u32-strconv-to-locale.c: New file.
44314
44315         * modules/uniconv/u16-strconv-to-locale: New file.
44316         * lib/uniconv/u16-strconv-to-locale.c: New file.
44317
44318         * modules/uniconv/u8-strconv-to-locale: New file.
44319         * lib/uniconv/u8-strconv-to-locale.c: New file.
44320
44321         * modules/uniconv/u32-strconv-from-locale: New file.
44322         * lib/uniconv/u32-strconv-from-locale.c: New file.
44323
44324         * modules/uniconv/u16-strconv-from-locale: New file.
44325         * lib/uniconv/u16-strconv-from-locale.c: New file.
44326
44327         * modules/uniconv/u8-strconv-from-locale: New file.
44328         * lib/uniconv/u8-strconv-from-locale.c: New file.
44329
44330         * modules/uniconv/u32-strconv-to-enc: New file.
44331         * lib/uniconv/u32-strconv-to-enc.c: New file.
44332         * modules/uniconv/u32-strconv-to-enc-tests: New file.
44333         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
44334
44335         * modules/uniconv/u16-strconv-to-enc: New file.
44336         * lib/uniconv/u16-strconv-to-enc.c: New file.
44337         * lib/uniconv/u-strconv-to-enc.h: New file.
44338         * modules/uniconv/u16-strconv-to-enc-tests: New file.
44339         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
44340
44341         * modules/uniconv/u8-strconv-to-enc: New file.
44342         * lib/uniconv/u8-strconv-to-enc.c: New file.
44343         * modules/uniconv/u8-strconv-to-enc-tests: New file.
44344         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
44345
44346         * modules/uniconv/u32-strconv-from-enc: New file.
44347         * lib/uniconv/u32-strconv-from-enc.c: New file.
44348         * modules/uniconv/u32-strconv-from-enc-tests: New file.
44349         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
44350
44351         * modules/uniconv/u16-strconv-from-enc: New file.
44352         * lib/uniconv/u16-strconv-from-enc.c: New file.
44353         * modules/uniconv/u16-strconv-from-enc-tests: New file.
44354         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
44355
44356         * modules/uniconv/u8-strconv-from-enc: New file.
44357         * lib/uniconv/u8-strconv-from-enc.c: New file.
44358         * lib/uniconv/u-strconv-from-enc.h: New file.
44359         * modules/uniconv/u8-strconv-from-enc-tests: New file.
44360         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
44361
44362         * modules/uniconv/u32-conv-from-enc: New file.
44363         * lib/uniconv/u32-conv-from-enc.c: New file.
44364         * modules/uniconv/u32-conv-from-enc-tests: New file.
44365         * tests/uniconv/test-u32-conv-from-enc.c: New file.
44366
44367         * modules/uniconv/u16-conv-from-enc: New file.
44368         * lib/uniconv/u16-conv-from-enc.c: New file.
44369         * lib/uniconv/u-conv-from-enc.h: New file.
44370         * modules/uniconv/u16-conv-from-enc-tests: New file.
44371         * tests/uniconv/test-u16-conv-from-enc.c: New file.
44372
44373         * modules/uniconv/u8-conv-from-enc: New file.
44374         * lib/uniconv/u8-conv-from-enc.c: New file.
44375         * modules/uniconv/u8-conv-from-enc-tests: New file.
44376         * tests/uniconv/test-u8-conv-from-enc.c: New file.
44377
44378         * modules/uniconv/base: New file.
44379         * lib/uniconv.h: New file.
44380
44381 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
44382
44383         * doc/gnulib-tool.texi (Initial import): Update to match current
44384         behavior with strdup module.
44385         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
44386         * lib/memmem.h: Remove; all uses removed.  This is now done
44387         by <string.h>.
44388         * lib/mempcpy.h: Likewise.
44389         * lib/memrchr.h: Likewise.
44390         * lib/stpcpy.h: Likewise.
44391         * lib/stpncpy.h: Likewise.
44392         * lib/strcase.h: Likewise.
44393         * lib/strchrnul.h: Likewise.
44394         * lib/strdup.h: Likewise.
44395         * lib/strndup.h: Likewise.
44396         * lib/strnlen.h: Likewise.
44397         * lib/strpbrk.h: Likewise.
44398         * lib/strsep.h: Likewise.
44399         * lib/strstr.h: Likewise.
44400         * lib/strtok_r.h: Likewise.
44401         * lib/string_.h: New file.
44402         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
44403         Rely on <string.h> instead.
44404         * lib/canon-host.c: Likewise.
44405         * lib/chdir-long.c: Likewise.
44406         * lib/concatpath.c: Likewise.
44407         * lib/exclude.c: Likewise.
44408         * lib/fchdir.c: Likewise.
44409         * lib/getaddrinfo.c: Likewise.
44410         * lib/getcwd.c: Likewise.
44411         * lib/getsubopt.c: Likewise.
44412         * lib/glob.c: Likewise.
44413         * lib/hard-locale.c: Likewise.
44414         * lib/iconvme.c: Likewise.
44415         * lib/javacomp.c: Likewise.
44416         * lib/mempcpy.c: Likewise.
44417         * lib/memrchr.c: Likewise.
44418         * lib/regex_internal.h: Likewise.
44419         * lib/stpncpy.c: Likewise.
44420         * lib/strcasecmp.c: Likewise.
44421         * lib/strchrnul.c: Likewise.
44422         * lib/strdup.c: Likewise.
44423         * lib/striconv.c: Likewise.
44424         * lib/striconveh.c: Likewise.
44425         * lib/striconveha.c: Likewise.
44426         * lib/strncasecmp.c: Likewise.
44427         * lib/strndup.c: Likewise.
44428         * lib/strnlen.c: Likewise.
44429         * lib/strsep.c: Likewise.
44430         * lib/strstr.c: Likewise.
44431         * lib/strtok_r.c: Likewise.
44432         * lib/userspec.c: Likewise.
44433         * lib/w32spawn.h: Likewise.
44434         * lib/xstrndup.c: Likewise.
44435         * lib/mountlist.c (strstr): Remove decl.
44436         * m4/string_h.m4: New file.
44437         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
44438         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
44439         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
44440         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
44441         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
44442         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
44443         Set REPLACE_STRCASECMP if necessary.
44444         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
44445         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
44446         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
44447         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
44448         HAVE_DECL_STRDUP if necessary.
44449         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
44450         since gl_FUNC_STRNDUP does that now.
44451         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
44452         Check for decl here...
44453         (gl_PREREQ_STRNLEN): ... not here.
44454         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
44455         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
44456         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
44457         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
44458         necessary.
44459         * modules/string: New file.
44460         * modules/memmem (Files): Remove special-purpose include file.
44461         (Depends-on): Add string.
44462         (Include): Include <string.h>, not the removed file.
44463         * modules/mempcpy: Likewise.
44464         * modules/memrchr: Likewise.
44465         * modules/stpcpy: Likewise.
44466         * modules/stpncpy: Likewise.
44467         * modules/strcase: Likewise.
44468         * modules/strchrnul: Likewise.
44469         * modules/strdup: Likewise.
44470         * modules/strndup: Likewise.
44471         * modules/strnlen: Likewise.
44472         * modules/strpbrk: Likewise.
44473         * modules/strsep: Likewise.
44474         * modules/strstr: Likewise.
44475         * modules/strtok_r: Likewise.
44476         * tests/test-dirname.c: Don't include "strdup.h", since
44477         <string.h> now suffices.
44478         * tests/test-memmem.c: Don't include "memmem.h", since
44479         <string.h> now suffices.
44480
44481 2007-01-25  Bruno Haible  <bruno@clisp.org>
44482
44483         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
44484         *resultp is 0.
44485
44486         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
44487         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
44488         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
44489         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
44490
44491         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
44492         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
44493         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
44494         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
44495         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
44496         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
44497
44498 2007-01-24  Bruno Haible  <bruno@clisp.org>
44499
44500         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
44501         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
44502         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
44503         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
44504         gl_FUNC_FTS_CORE.
44505         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
44506         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
44507         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
44508         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
44509         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
44510         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
44511         gl_FUNC_FCHOWNAT.
44512         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
44513         gl_FUNC_STRFTIME.
44514         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
44515         Reported by Ralf Wildenhues.
44516
44517 2007-01-24  Bruno Haible  <bruno@clisp.org>
44518
44519         Drop AC_REQUIRE calls that are redundant with the module dependencies.
44520         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
44521         gl_GETADDRINFO.
44522         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
44523         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
44524         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
44525
44526 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
44527
44528         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
44529         Don't use 'exit'; just return from 'main'.
44530         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
44531
44532         * lib/fnmatch_.h: Readjust white space and comments to match
44533         glibc, to avoid spurious diffs.
44534
44535 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44536
44537         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
44538         2004-12-01 change by Jakub Jelinek, since this code won't compile
44539         if !LIBC.  Problem reported by Bob Proulx.
44540
44541 2007-01-23  Bruno Haible  <bruno@clisp.org>
44542
44543         * lib/striconveh.c: Include c-strcaseeq.h.
44544         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
44545         * modules/striconveh (Depends-on): Add c-strcaseeq.
44546
44547 2007-01-23  Bruno Haible  <bruno@clisp.org>
44548
44549         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
44550
44551         * modules/c-strcaseeq: New file.
44552         * lib/c-strcaseeq.h: New file.
44553
44554         * modules/streq: New file.
44555         * lib/streq.h: New file.
44556
44557 2007-01-23  Bruno Haible  <bruno@clisp.org>
44558
44559         * modules/striconveha-tests: New file.
44560         * tests/test-striconveha.c: New file.
44561
44562         * lib/striconveha.h: Include <stdbool.h>.
44563         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
44564         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
44565         (mem_iconveha_notranslit): Renamed from mem_iconveha.
44566         (mem_iconveha): New function.
44567         (str_iconveha_notranslit): Renamed from str_iconveha.
44568         (str_iconveha): New function.
44569         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
44570         c-strcase.
44571
44572 2007-01-23  Bruno Haible  <bruno@clisp.org>
44573
44574         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
44575         encodings without forgiving before trying any encoding with handler.
44576         (str_iconveha): Try all encodings without forgiving before trying any
44577         encoding with handler.
44578
44579 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44580
44581         Import the following changes from libc.
44582
44583         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
44584
44585         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
44586
44587         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
44588
44589         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
44590         normal_bracket label.
44591
44592         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
44593
44594         [BZ #361]
44595         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
44596         to normal_bracket after fetching the next character.
44597
44598 2007-01-22  Bruno Haible  <bruno@clisp.org>
44599
44600         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
44601         argument.
44602         * lib/striconveh.c (iconv_carefully_1): New function.
44603         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
44604         argument.
44605         (str_cd_iconveh): Update.
44606         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
44607         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
44608         * tests/test-striconveh.c (MAGIC): New macro.
44609         (new_offsets): New function.
44610         (main): Test call with and without offsets.
44611
44612 2007-01-22  Bruno Haible  <bruno@clisp.org>
44613
44614         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
44615         * modules/sys_select (Makefile.am): Likewise.
44616         * modules/sys_socket (Makefile.am): Likewise.
44617         * modules/sys_time (Makefile.am): Likewise.
44618
44619 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
44620
44621         * modules/gettimeofday (License): Change from GPL to LGPL, since
44622         gettimeofday is a library function.
44623
44624 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44625
44626         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
44627
44628 2007-01-21  Bruno Haible  <bruno@clisp.org>
44629
44630         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
44631
44632 2007-01-21  Bruno Haible  <bruno@clisp.org>
44633
44634         * modules/striconveha: New file.
44635         * lib/striconveha.h: New file.
44636         * lib/striconveha.c: New file.
44637         * MODULES.html.sh (Internationalization functions): Add striconveha.
44638         * lib/striconv.c (str_iconv): Optimize the case of an empty input
44639         string.
44640         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
44641
44642 2007-01-21  Bruno Haible  <bruno@clisp.org>
44643
44644         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
44645         * lib/striconveh.c (str_iconveh): Likewise.
44646
44647 2007-01-21  Bruno Haible  <bruno@clisp.org>
44648
44649         * lib/striconveh.h (mem_iconveh): New declaration.
44650         * lib/striconveh.c (mem_iconveh): New function.
44651         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
44652
44653 2007-01-21  Bruno Haible  <bruno@clisp.org>
44654
44655         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
44656
44657         * lib/striconveh.h (mem_cd_iconveh): Change specification.
44658         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
44659         original result buffer.
44660         (str_cd_iconveh): Update.
44661         * tests/test-striconveh.c (main): Update.
44662
44663         * lib/striconv.h (mem_cd_iconv): Change specification.
44664         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
44665         result buffer.
44666         (str_cd_iconv): Update.
44667         * tests/test-striconv.c (main): Update.
44668
44669 2007-01-21  Bruno Haible  <bruno@clisp.org>
44670
44671         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
44672
44673 2007-01-20  Jim Meyering  <jim@meyering.net>
44674
44675         * lib/userspec.c (parse_with_separator): If a user or group string
44676         starts with "+", skip the corresponding name-to-ID look-up, since
44677         such a look-up must fail: user and group names may not include "+".
44678
44679 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
44680
44681         * lib/poll.c: Include sys/time.h and time.h unconditionally,
44682         since we now assume the sys_time module.
44683         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
44684         check for sys/time.h; no longer needed.
44685         * modules/poll (Depends-on): Depend on sys_time.
44686
44687 2007-01-18  Bruno Haible  <bruno@clisp.org>
44688
44689         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
44690         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
44691
44692         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
44693         gettimeofday.
44694
44695         * tests/test-gettimeofday.c: Include <time.h>.
44696         (dummy): Remove variable.
44697
44698         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
44699         gl_HEADER_SYS_TIME_H.
44700         (gl_HEADER_SYS_TIME_H): New macro.
44701
44702         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
44703         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44704         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
44705         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
44706         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44707         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
44708         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
44709         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44710         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
44711         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
44712         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44713
44714         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
44715         last change; it caused a compilation error when cross-compiling to
44716         Cygwin.
44717
44718 2007-01-18  Jim Meyering  <jim@meyering.net>
44719
44720         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
44721         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
44722         than the race-prone "test -d sys || mkdir sys".
44723         (configure.ac): Use AC_PROG_MKDIR_P.
44724         * modules/sys_select: Likewise.
44725         * modules/sys_socket: Likewise.
44726         * modules/sys_time: Likewise.
44727
44728 2007-01-18  Eric Blake  <ebb9@byu.net>
44729
44730         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
44731         replace gettimeofday.
44732         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
44733         name, to avoid infinite recursion.
44734
44735 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
44736
44737         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
44738         module sys_time.
44739         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
44740         assume timespec.h defines struct timeval.
44741         * lib/settime.c: Likewise.
44742         * lib/utimens.c: Likewise.
44743         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
44744         since we now assume the gettimeofday module.
44745         * lib/tempname.c (__gen_tempname): Likewise.
44746         * lib/gettimeofday.h: Remove.
44747         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
44748         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
44749         Include <time.h>, for 'time()'.
44750         (localtime_buffer_addr): Also use this workaround if
44751         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
44752         to simplify the uses.  All uses changed.
44753         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
44754         that #undef is inside {}, and 'const' follows type name consistently.
44755         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
44756         (gettimeofday): Do not use the maximum possible value for
44757         tv->tv_usec, since that might break usages other than ls.c.
44758         Instead, we'll leave ls.c alone.  This undoes today's patch
44759         by Bruno.  Add a compile-time warning for 1s-clock resolution;
44760         we've never observed the problem but might as well keep the
44761         canary.
44762         * lib/nanosleep.c: Include timespec.h first, for interface check.
44763         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
44764         now assume the sys_time module.
44765         * lib/tempname.c: Likewise.
44766         * lib/timespec.h: Likewise.
44767         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
44768         needed.
44769         * lib/strftime.c: Likewise.
44770         * lib/timespec.h: Likewise.
44771         * lib/posixtm.c: Include posixtm.h first, for interface check.
44772         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
44773         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
44774         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
44775         * lib/sys_time_.h: New file.
44776         * lib/timespec.h (struct timespec): Use long int, not long.
44777         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
44778         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
44779         Remove obsolescent call to AC_HEADER_TIME.
44780         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
44781         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44782         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
44783         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
44784         Likewise.
44785         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
44786         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
44787         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
44788         into the sys_time module.  Check for gettimeofday just once.
44789         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
44790         for gettimeofday signature to just check the signature.  Merely
44791         compile it, since linking doesn't test signature.  Improve test for
44792         whether gettimeofday.o is actually needed.
44793         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
44794         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
44795         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
44796         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44797         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
44798         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
44799         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
44800         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
44801         than worrying about sys/time.h.
44802         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
44803         Don't bother worrying about TIME_WITH_SYS_TIME.
44804         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
44805         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
44806         * m4/sys_time_h.m4: New file.
44807         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
44808         Don't include sys/time.h.  Return from main rather than exiting.
44809         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
44810         all uses changed.
44811         * modules/gethrxtime (Depends-on): Add sys_time.
44812         * modules/gettime (Depends-on): Likewise.
44813         * modules/gettimeofday (Depends-on): Likewise.
44814         * modules/nanosleep (Depends-on): Likewise.
44815         * modules/settime (Depends-on): Likewise.
44816         * modules/tempname (Depends-on): Likewise.
44817         * modules/utimens (Depends-on): Likewise.
44818         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
44819         (Include:) Change back to <sys/time.h>.
44820         (Maintainer:) Add self.
44821         * modules/sys_time: New file.
44822         * modules/tempname (Depends-on): Add gettimeofday.
44823         * tests/test-gettimeofday.c: Include <sys/time.h>
44824         rather than gettimeofday.h.
44825
44826 2007-01-17  Bruno Haible  <bruno@clisp.org>
44827
44828         * gnulib-tool (func_get_license): Revert last patch. Instead, let
44829         the license default to GPL.
44830         (func_create_testdir): Don't complain if a module is LGPL and its
44831         tests module depends on GPLed modules.
44832
44833 2007-01-17  Bruno Haible  <bruno@clisp.org>
44834
44835         * lib/gettimeofday.c (gettimeofday): Add code for the case
44836         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
44837         maximum possible value for tv->tv_usec, rather than the minimum one.
44838
44839 2005-10-08  Martin Lambers  <marlam@marlam.de>
44840 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
44841 2007-01-16  Bruno Haible  <bruno@clisp.org>
44842
44843         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
44844         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
44845         gl_FUNC_GETTIMEOFDAY.
44846         (Include): Add gettimeofday.h.
44847         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
44848         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
44849         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
44850         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
44851         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
44852         * lib/gettimeofday.h: New file.
44853         * lib/gettimeofday.c: Include <sys/timeb.h>.
44854         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
44855         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44856         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
44857         fall back on time().
44858
44859         * tests/test-gettimeofday.c: New file.
44860         * modules/gettimeofday-tests: New file.
44861
44862 2007-01-16  Eric Blake  <ebb9@byu.net>
44863
44864         * modules/fnmatch (Depends-on): Depend on wchar.
44865         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
44866         * m4/fnmatch.m4: Likewise.
44867         * modules/mbchar (Makefile.am): Assume <wchar.h>.
44868         * m4/mbchar.m4: Likewise.
44869         * modules/mbswidth (Depends-on): Depend on wchar.
44870         * lib/mbswidth.c: Assume <wchar.h>.
44871         * m4/mbswidth.m4: Likewise.
44872         * modules/quotearg (Depends-on): Depend on wchar.
44873         * lib/quotearg.c: Assume <wchar.h>.
44874         * m4/quotearg.m4: Likewise.
44875         * modules/regex (Depends-on): Depend on wchar.
44876         * lib/regex_internal.h: Assume <wchar.h>.
44877         * m4/regex.m4: Likewise.
44878         * modules/stdint (Depends-on): Depend on wchar.
44879         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
44880         * m4/stdint.m4: Likewise.
44881         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
44882         * modules/strftime (Depends-on): Depend on wchar.
44883         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
44884         * modules/strtol (Depends-on): Depend on wchar.
44885         * lib/strtol.c: Assume <wchar.h>.
44886         * modules/wcwidth (Depends-on): Depend on wchar.
44887         * lib/wcwidth.h: Assume <wchar.h>.
44888         * m4/wcwidth.m4: Likewise.
44889
44890 2007-01-16  Bruno Haible  <bruno@clisp.org>
44891
44892         * modules/csharpexec-script: New, created from...
44893         * modules/csharpexec: ... this.
44894
44895 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
44896
44897         * modules/javaexec-script: New, created from...
44898         * modules/javaexec: ... this.
44899
44900 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44901
44902         * modules/poll (Dependencies): Add sys_select.
44903
44904 2007-01-15  Jim Meyering  <jim@meyering.net>
44905
44906         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
44907         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
44908         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
44909         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
44910
44911 2007-01-15  Bruno Haible  <bruno@clisp.org>
44912
44913         * modules/striconveh: New file.
44914         * lib/striconveh.h: New file.
44915         * lib/striconveh.c: New file.
44916         * MODULES.html.sh (Internationalization functions): Add striconveh.
44917
44918         * modules/striconveh-tests: New file.
44919         * tests/test-striconveh.c: New file.
44920
44921 2007-01-15  Bruno Haible  <bruno@clisp.org>
44922
44923         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
44924         not from GNU libiconv or GNU libc.
44925
44926 2007-01-15  Bruno Haible  <bruno@clisp.org>
44927
44928         * doc/gnulib-intro.texi (Copyright): Explain the different license
44929         terms for module descriptions, autoconf macros, tests, documentation.
44930
44931 2007-01-14  Bruno Haible  <bruno@clisp.org>
44932
44933         * modules/striconv-tests: New file.
44934         * tests/test-striconv.c: New file.
44935
44936 2007-01-14  Bruno Haible  <bruno@clisp.org>
44937
44938         * modules/iconv-tests: New file.
44939         * tests/test-iconv.c: New file.
44940
44941 2007-01-14  Bruno Haible  <bruno@clisp.org>
44942
44943         * gnulib-tool (func_get_license): For test modules, use the license of
44944         the main module.
44945
44946 2007-01-14  Bruno Haible  <bruno@clisp.org>
44947
44948         * modules/iconv (Include): Clarify that <iconv.h> can only be included
44949         if iconv is found to exist.
44950
44951 2007-01-14  Bruno Haible  <bruno@clisp.org>
44952
44953         * modules/c-ctype-tests: New file.
44954         * tests/test-c-ctype.c: New file.
44955
44956 2007-01-14  Bruno Haible  <bruno@clisp.org>
44957
44958         * modules/binary-io-tests: New file.
44959         * tests/test-binary-io.sh: New file.
44960         * tests/test-binary-io.c: New file.
44961
44962 2007-01-14  Bruno Haible  <bruno@clisp.org>
44963
44964         * modules/array-oset-tests: New file.
44965         * tests/test-array_oset.c: New file.
44966
44967 2007-01-14  Bruno Haible  <bruno@clisp.org>
44968
44969         * modules/array-list-tests: New file.
44970         * tests/test-array_list.c: New file.
44971
44972 2007-01-14  Bruno Haible  <bruno@clisp.org>
44973
44974         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
44975         and make.
44976         Reported by Simon Josefsson in
44977         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
44978
44979 2007-01-14  Bruno Haible  <bruno@clisp.org>
44980
44981         * modules/allocsa-tests: New file.
44982         * tests/test-allocsa.c: New file.
44983
44984 2007-01-14  Bruno Haible  <bruno@clisp.org>
44985
44986         * modules/fchdir (Depends-on): Add absolute-header.
44987         * modules/unistd (Depends-on): Likewise.
44988
44989 2006-12-30  Bruno Haible  <bruno@clisp.org>
44990
44991         * modules/fchdir: New file.
44992         * modules/unistd (Files): Add lib/unistd_.h.
44993         (Makefile.am): Generate unistd.h from unistd_.h.
44994         * lib/fchdir.c: New file.
44995         * lib/dirent_.h: New file.
44996         * lib/unistd_.h: New file.
44997         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
44998         * m4/fchdir.m4: New file.
44999         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
45000         (gl_HEADER_UNISTD): Invoke it.
45001         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
45002         function.
45003         * lib/backupfile.c (opendir, closedir): Undefine.
45004         * lib/chown.c (open, close): Undefine.
45005         * lib/clean-temp.c (open, close): Undefine.
45006         * lib/copy-file.c (open, close): Undefine.
45007         * lib/execute.c (open, close): Undefine.
45008         * lib/fsusage.c (open, close): Undefine.
45009         * lib/gc-gnulib.c (open, close): Undefine.
45010         * lib/getcwd.c (opendir, closedir): Undefine.
45011         * lib/glob.c (opendir, closedir): Undefine.
45012         * lib/javacomp.c (open, close): Undefine.
45013         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
45014         * lib/openat-proc.c (open, close): Undefine.
45015         * lib/pagealign_alloc.c (open, close): Undefine.
45016         * lib/pipe.c (open, close): Undefine.
45017         * lib/progreloc.c (open, close): Undefine.
45018         * lib/savedir.c (opendir, closedir): Undefine.
45019         * lib/utime.c (open, close): Undefine.
45020         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
45021
45022 2007-01-10  Bruno Haible  <bruno@clisp.org>
45023
45024         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
45025
45026 2007-01-12  Eric Blake  <ebb9@byu.net>
45027
45028         Provide a robust <wchar.h>.  Further simplifications are now
45029         possible in other modules, but not included here.
45030         * modules/wchar: New module.
45031         * m4/wchar.m4: New file.
45032         * lib/wchar_.h: Likewise.
45033         * modules/mbchar (Depends-on): Depend on wchar, as the first use
45034         of the new module.
45035         * MODULES.html.sh (Extended multibyte and wide character utilities):
45036         New section.
45037
45038 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
45039
45040         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
45041         to a reasonable default for memory allocation.
45042         (xreadlink): Don't allocate a huge buffer, to work around a buggy
45043         file system that reports garbage st_size values for symlinks.
45044         Problem reported by Liyang Hu.
45045
45046 2007-01-11  Simon Josefsson  <simon@josefsson.org>
45047
45048         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
45049         Emacs .#* auto-save files).
45050
45051 2007-01-11  Bruno Haible  <bruno@clisp.org>
45052
45053         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
45054         directory.
45055
45056 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
45057
45058         Use @...@ consistently in lib/wctype_.h.
45059         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
45060         on it being set to 1 or 0.
45061         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
45062         go back to AC_SUBSTing it.
45063         * modules/wctype (Makefile.am): Undo previous change.
45064
45065 2007-01-10  Eric Blake  <ebb9@byu.net>
45066
45067         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
45068         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
45069         * modules/wctype (Makefile.am): Likewise.
45070         Reported by Chris McGuire.
45071
45072 2007-01-10  Jim Meyering  <jim@meyering.net>
45073
45074         fts.c: a small readability/maintainability improvement
45075         * lib/fts.c (fts_read): Make this code slightly more readable and
45076         maintainable by hoisting the "sp->fts_cur = p" assignments to
45077         immediately follow the statements that set P.  Derived from
45078         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
45079
45080 2007-01-10  Eric Blake  <ebb9@byu.net>
45081
45082         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
45083         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
45084         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
45085         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
45086         Reported by Chris McGuire.
45087
45088 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45089
45090         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
45091         in sed script.
45092
45093 2007-01-09  Bruno Haible  <bruno@clisp.org>
45094
45095         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
45096         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
45097         variables.
45098         (func_module): Use them.
45099
45100 2007-01-09  Bruno Haible  <bruno@clisp.org>
45101
45102         * modules/unistr/base: New file.
45103         * lib/unistr.h: New file.
45104
45105         * modules/unistr/u8-to-u16: New file.
45106         * lib/unistr/u8-to-u16.c: New file.
45107
45108         * modules/unistr/u8-to-u32: New file.
45109         * lib/unistr/u8-to-u32.c: New file.
45110
45111         * modules/unistr/u16-to-u8: New file.
45112         * lib/unistr/u16-to-u8.c: New file.
45113
45114         * modules/unistr/u16-to-u32: New file.
45115         * lib/unistr/u16-to-u32.c: New file.
45116
45117         * modules/unistr/u32-to-u8: New file.
45118         * lib/unistr/u32-to-u8.c: New file.
45119
45120         * modules/unistr/u32-to-u16: New file.
45121         * lib/unistr/u32-to-u16.c: New file.
45122
45123         * modules/unistr/u8-check: New file.
45124         * modules/unistr/u16-check: New file.
45125         * modules/unistr/u32-check: New file.
45126         * lib/unistr/u8-check.c: New file.
45127         * lib/unistr/u16-check.c: New file.
45128         * lib/unistr/u32-check.c: New file.
45129
45130         * modules/unistr/u8-chr: New file.
45131         * modules/unistr/u16-chr: New file.
45132         * modules/unistr/u32-chr: New file.
45133         * lib/unistr/u8-chr.c: New file.
45134         * lib/unistr/u16-chr.c: New file.
45135         * lib/unistr/u32-chr.c: New file.
45136
45137         * modules/unistr/u8-cmp: New file.
45138         * modules/unistr/u16-cmp: New file.
45139         * modules/unistr/u32-cmp: New file.
45140         * lib/unistr/u8-cmp.c: New file.
45141         * lib/unistr/u16-cmp.c: New file.
45142         * lib/unistr/u32-cmp.c: New file.
45143
45144         * modules/unistr/u8-cpy: New file.
45145         * modules/unistr/u16-cpy: New file.
45146         * modules/unistr/u32-cpy: New file.
45147         * lib/unistr/u8-cpy.c: New file.
45148         * lib/unistr/u16-cpy.c: New file.
45149         * lib/unistr/u32-cpy.c: New file.
45150         * lib/unistr/u-cpy.h: New file.
45151
45152         * modules/unistr/u8-cpy-alloc: New file.
45153         * modules/unistr/u16-cpy-alloc: New file.
45154         * modules/unistr/u32-cpy-alloc: New file.
45155         * lib/unistr/u8-cpy-alloc.c: New file.
45156         * lib/unistr/u16-cpy-alloc.c: New file.
45157         * lib/unistr/u32-cpy-alloc.c: New file.
45158         * lib/unistr/u-cpy-alloc.h: New file.
45159
45160         * modules/unistr/u8-endswith: New file.
45161         * modules/unistr/u16-endswith: New file.
45162         * modules/unistr/u32-endswith: New file.
45163         * lib/unistr/u8-endswith.c: New file.
45164         * lib/unistr/u16-endswith.c: New file.
45165         * lib/unistr/u32-endswith.c: New file.
45166         * lib/unistr/u-endswith.h: New file.
45167
45168         * modules/unistr/u8-mblen: New file.
45169         * modules/unistr/u16-mblen: New file.
45170         * modules/unistr/u32-mblen: New file.
45171         * lib/unistr/u8-mblen.c: New file.
45172         * lib/unistr/u16-mblen.c: New file.
45173         * lib/unistr/u32-mblen.c: New file.
45174
45175         * modules/unistr/u8-mbtouc: New file.
45176         * modules/unistr/u16-mbtouc: New file.
45177         * modules/unistr/u32-mbtouc: New file.
45178         * lib/unistr/u8-mbtouc.c: New file.
45179         * lib/unistr/u16-mbtouc.c: New file.
45180         * lib/unistr/u32-mbtouc.c: New file.
45181
45182         * modules/unistr/u8-mbtouc-safe: New file.
45183         * modules/unistr/u16-mbtouc-safe: New file.
45184         * modules/unistr/u32-mbtouc-safe: New file.
45185         * lib/unistr/u8-mbtouc-safe.c: New file.
45186         * lib/unistr/u16-mbtouc-safe.c: New file.
45187         * lib/unistr/u32-mbtouc-safe.c: New file.
45188
45189         * modules/unistr/u8-move: New file.
45190         * modules/unistr/u16-move: New file.
45191         * modules/unistr/u32-move: New file.
45192         * lib/unistr/u8-move.c: New file.
45193         * lib/unistr/u16-move.c: New file.
45194         * lib/unistr/u32-move.c: New file.
45195         * lib/unistr/u-move.h: New file.
45196
45197         * modules/unistr/u8-next: New file.
45198         * modules/unistr/u16-next: New file.
45199         * modules/unistr/u32-next: New file.
45200         * lib/unistr/u8-next.c: New file.
45201         * lib/unistr/u16-next.c: New file.
45202         * lib/unistr/u32-next.c: New file.
45203
45204         * modules/unistr/u8-prev: New file.
45205         * modules/unistr/u16-prev: New file.
45206         * modules/unistr/u32-prev: New file.
45207         * lib/unistr/u8-prev.c: New file.
45208         * lib/unistr/u16-prev.c: New file.
45209         * lib/unistr/u32-prev.c: New file.
45210
45211         * modules/unistr/u8-set: New file.
45212         * modules/unistr/u16-set: New file.
45213         * modules/unistr/u32-set: New file.
45214         * lib/unistr/u8-set.c: New file.
45215         * lib/unistr/u16-set.c: New file.
45216         * lib/unistr/u32-set.c: New file.
45217         * lib/unistr/u-set.h: New file.
45218
45219         * modules/unistr/u8-startswith: New file.
45220         * modules/unistr/u16-startswith: New file.
45221         * modules/unistr/u32-startswith: New file.
45222         * lib/unistr/u8-startswith.c: New file.
45223         * lib/unistr/u16-startswith.c: New file.
45224         * lib/unistr/u32-startswith.c: New file.
45225         * lib/unistr/u-startswith.h: New file.
45226
45227         * modules/unistr/u8-stpcpy: New file.
45228         * modules/unistr/u16-stpcpy: New file.
45229         * modules/unistr/u32-stpcpy: New file.
45230         * lib/unistr/u8-stpcpy.c: New file.
45231         * lib/unistr/u16-stpcpy.c: New file.
45232         * lib/unistr/u32-stpcpy.c: New file.
45233         * lib/unistr/u-stpcpy.h: New file.
45234
45235         * modules/unistr/u8-stpncpy: New file.
45236         * modules/unistr/u16-stpncpy: New file.
45237         * modules/unistr/u32-stpncpy: New file.
45238         * lib/unistr/u8-stpncpy.c: New file.
45239         * lib/unistr/u16-stpncpy.c: New file.
45240         * lib/unistr/u32-stpncpy.c: New file.
45241         * lib/unistr/u-stpncpy.h: New file.
45242
45243         * modules/unistr/u8-strcat: New file.
45244         * modules/unistr/u16-strcat: New file.
45245         * modules/unistr/u32-strcat: New file.
45246         * lib/unistr/u8-strcat.c: New file.
45247         * lib/unistr/u16-strcat.c: New file.
45248         * lib/unistr/u32-strcat.c: New file.
45249         * lib/unistr/u-strcat.h: New file.
45250
45251         * modules/unistr/u8-strchr: New file.
45252         * modules/unistr/u16-strchr: New file.
45253         * modules/unistr/u32-strchr: New file.
45254         * lib/unistr/u8-strchr.c: New file.
45255         * lib/unistr/u16-strchr.c: New file.
45256         * lib/unistr/u32-strchr.c: New file.
45257
45258         * modules/unistr/u8-strcmp: New file.
45259         * modules/unistr/u16-strcmp: New file.
45260         * modules/unistr/u32-strcmp: New file.
45261         * lib/unistr/u8-strcmp.c: New file.
45262         * lib/unistr/u16-strcmp.c: New file.
45263         * lib/unistr/u32-strcmp.c: New file.
45264
45265         * modules/unistr/u8-strcpy: New file.
45266         * modules/unistr/u16-strcpy: New file.
45267         * modules/unistr/u32-strcpy: New file.
45268         * lib/unistr/u8-strcpy.c: New file.
45269         * lib/unistr/u16-strcpy.c: New file.
45270         * lib/unistr/u32-strcpy.c: New file.
45271         * lib/unistr/u-strcpy.h: New file.
45272
45273         * modules/unistr/u8-strcspn: New file.
45274         * modules/unistr/u16-strcspn: New file.
45275         * modules/unistr/u32-strcspn: New file.
45276         * lib/unistr/u8-strcspn.c: New file.
45277         * lib/unistr/u16-strcspn.c: New file.
45278         * lib/unistr/u32-strcspn.c: New file.
45279         * lib/unistr/u-strcspn.h: New file.
45280
45281         * modules/unistr/u8-strdup: New file.
45282         * modules/unistr/u16-strdup: New file.
45283         * modules/unistr/u32-strdup: New file.
45284         * lib/unistr/u8-strdup.c: New file.
45285         * lib/unistr/u16-strdup.c: New file.
45286         * lib/unistr/u32-strdup.c: New file.
45287         * lib/unistr/u-strdup.h: New file.
45288
45289         * modules/unistr/u8-strlen: New file.
45290         * modules/unistr/u16-strlen: New file.
45291         * modules/unistr/u32-strlen: New file.
45292         * lib/unistr/u8-strlen.c: New file.
45293         * lib/unistr/u16-strlen.c: New file.
45294         * lib/unistr/u32-strlen.c: New file.
45295         * lib/unistr/u-strlen.h: New file.
45296
45297         * modules/unistr/u8-strmblen: New file.
45298         * modules/unistr/u16-strmblen: New file.
45299         * modules/unistr/u32-strmblen: New file.
45300         * lib/unistr/u8-strmblen.c: New file.
45301         * lib/unistr/u16-strmblen.c: New file.
45302         * lib/unistr/u32-strmblen.c: New file.
45303
45304         * modules/unistr/u8-strmbtouc: New file.
45305         * modules/unistr/u16-strmbtouc: New file.
45306         * modules/unistr/u32-strmbtouc: New file.
45307         * lib/unistr/u8-strmbtouc.c: New file.
45308         * lib/unistr/u16-strmbtouc.c: New file.
45309         * lib/unistr/u32-strmbtouc.c: New file.
45310
45311         * modules/unistr/u8-strncat: New file.
45312         * modules/unistr/u16-strncat: New file.
45313         * modules/unistr/u32-strncat: New file.
45314         * lib/unistr/u8-strncat.c: New file.
45315         * lib/unistr/u16-strncat.c: New file.
45316         * lib/unistr/u32-strncat.c: New file.
45317         * lib/unistr/u-strncat.h: New file.
45318
45319         * modules/unistr/u8-strncmp: New file.
45320         * modules/unistr/u16-strncmp: New file.
45321         * modules/unistr/u32-strncmp: New file.
45322         * lib/unistr/u8-strncmp.c: New file.
45323         * lib/unistr/u16-strncmp.c: New file.
45324         * lib/unistr/u32-strncmp.c: New file.
45325
45326         * modules/unistr/u8-strncpy: New file.
45327         * modules/unistr/u16-strncpy: New file.
45328         * modules/unistr/u32-strncpy: New file.
45329         * lib/unistr/u8-strncpy.c: New file.
45330         * lib/unistr/u16-strncpy.c: New file.
45331         * lib/unistr/u32-strncpy.c: New file.
45332         * lib/unistr/u-strncpy.h: New file.
45333
45334         * modules/unistr/u8-strnlen: New file.
45335         * modules/unistr/u16-strnlen: New file.
45336         * modules/unistr/u32-strnlen: New file.
45337         * lib/unistr/u8-strnlen.c: New file.
45338         * lib/unistr/u16-strnlen.c: New file.
45339         * lib/unistr/u32-strnlen.c: New file.
45340         * lib/unistr/u-strnlen.h: New file.
45341
45342         * modules/unistr/u8-strpbrk: New file.
45343         * modules/unistr/u16-strpbrk: New file.
45344         * modules/unistr/u32-strpbrk: New file.
45345         * lib/unistr/u8-strpbrk.c: New file.
45346         * lib/unistr/u16-strpbrk.c: New file.
45347         * lib/unistr/u32-strpbrk.c: New file.
45348         * lib/unistr/u-strpbrk.h: New file.
45349
45350         * modules/unistr/u8-strrchr: New file.
45351         * modules/unistr/u16-strrchr: New file.
45352         * modules/unistr/u32-strrchr: New file.
45353         * lib/unistr/u8-strrchr.c: New file.
45354         * lib/unistr/u16-strrchr.c: New file.
45355         * lib/unistr/u32-strrchr.c: New file.
45356
45357         * modules/unistr/u8-strspn: New file.
45358         * modules/unistr/u16-strspn: New file.
45359         * modules/unistr/u32-strspn: New file.
45360         * lib/unistr/u8-strspn.c: New file.
45361         * lib/unistr/u16-strspn.c: New file.
45362         * lib/unistr/u32-strspn.c: New file.
45363         * lib/unistr/u-strspn.h: New file.
45364
45365         * modules/unistr/u8-strstr: New file.
45366         * modules/unistr/u16-strstr: New file.
45367         * modules/unistr/u32-strstr: New file.
45368         * lib/unistr/u8-strstr.c: New file.
45369         * lib/unistr/u16-strstr.c: New file.
45370         * lib/unistr/u32-strstr.c: New file.
45371         * lib/unistr/u-strstr.h: New file.
45372
45373         * modules/unistr/u8-strtok: New file.
45374         * modules/unistr/u16-strtok: New file.
45375         * modules/unistr/u32-strtok: New file.
45376         * lib/unistr/u8-strtok.c: New file.
45377         * lib/unistr/u16-strtok.c: New file.
45378         * lib/unistr/u32-strtok.c: New file.
45379         * lib/unistr/u-strtok.h: New file.
45380
45381         * modules/unistr/u8-uctomb: New file.
45382         * modules/unistr/u16-uctomb: New file.
45383         * modules/unistr/u32-uctomb: New file.
45384         * lib/unistr/u8-uctomb.c: New file.
45385         * lib/unistr/u16-uctomb.c: New file.
45386         * lib/unistr/u32-uctomb.c: New file.
45387
45388         * MODULES.html.sh (Unicode string functions): Add the new modules.
45389
45390 2007-01-08  Bruno Haible  <bruno@clisp.org>
45391
45392         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
45393         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
45394         subdirectories.
45395
45396 2007-01-08  Karl Berry  <karl@gnu.org>
45397
45398         * doc/error.texi: mention that main() fns must set program_name
45399         when progname is used.
45400
45401 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
45402
45403         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
45404         WCTYPE_H is empty, for the benefit of builds from non-distclean
45405         directories.  Problem reported by Eric Blake in
45406         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
45407
45408 2007-01-08  Bruno Haible  <bruno@clisp.org>
45409
45410         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
45411         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
45412         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
45413         PROVIDE_CANONICALIZE_FILENAME_MODE.
45414         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
45415
45416 2007-01-08  Bruno Haible  <bruno@clisp.org>
45417
45418         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
45419         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
45420         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
45421         * lib/fts.c: Likewise.
45422         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
45423
45424 2006-12-25  Bruno Haible  <bruno@clisp.org>
45425
45426         * modules/utf8-ucs4-safe: New file.
45427         * lib/utf8-ucs4-safe.h: New file.
45428         * lib/unistr/utf8-ucs4-safe.c: New file.
45429
45430         * modules/utf16-ucs4-safe: New file.
45431         * lib/utf16-ucs4-safe.h: New file.
45432         * lib/unistr/utf16-ucs4-safe.c: New file.
45433
45434         * MODULES.html.sh (Unicode string functions): Add the new modules.
45435
45436 2007-01-08  Bruno Haible  <bruno@clisp.org>
45437
45438         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
45439         (Depends-on): Add unitypes.
45440         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
45441         (u8_mbtouc_aux): Move out to separate file.
45442         (u8_mbtouc): Use ucs4_t, uint8_t types.
45443         * lib/unistr/utf8-ucs4.c: New file.
45444
45445         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
45446         (Depends-on): Add unitypes.
45447         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
45448         (u16_mbtouc_aux): Move out to separate file.
45449         (u16_mbtouc): Use ucs4_t, uint16_t types.
45450         * lib/unistr/utf16-ucs4.c: New file.
45451
45452         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
45453         (Depends-on): Add unitypes.
45454         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
45455         (u8_uctomb_aux): Move out to separate file.
45456         (u8_uctomb): Use ucs4_t, uint8_t types.
45457         * lib/unistr/ucs4-utf8.c: New file.
45458
45459         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
45460         (Depends-on): Add unitypes.
45461         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
45462         (u16_uctomb_aux): Move out to separate file.
45463         (u16_uctomb): Use ucs4_t, uint16_t types.
45464         * lib/unistr/ucs4-utf16.c: New file.
45465
45466 2006-12-25  Bruno Haible  <bruno@clisp.org>
45467
45468         * modules/unitypes: New file.
45469         * lib/unitypes.h: New file.
45470         * MODULES.html.sh (func_all_modules): New section "Unicode string
45471         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
45472         this section. Add unitypes.
45473
45474 2007-01-08  Bruno Haible  <bruno@clisp.org>
45475
45476         Avoid variable names that conflict with those from libtool.
45477         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
45478         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
45479         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
45480         library_names_spec to acl_library_names_spec, hardcode_* to
45481         acl_hardcode_*.
45482         Reported by Ralf Wildenhues.
45483
45484 2007-01-08  Bruno Haible  <bruno@clisp.org>
45485
45486         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
45487         definition.
45488         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
45489         definition.
45490         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
45491         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
45492         definition.
45493         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
45494         definition.
45495         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
45496         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
45497         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
45498         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
45499         definition.
45500         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
45501         definition.
45502         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
45503         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
45504         GC_USE_<algorithm>.
45505         * lib/gc-libgcrypt.c: Likewise.
45506         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
45507         * modules/gc-arctwo (configure.ac): Likewise.
45508         * modules/gc-des (configure.ac): Likewise.
45509         * modules/gc-hmac-md5 (configure.ac): Likewise.
45510         * modules/gc-hmac-sha1 (configure.ac): Likewise.
45511         * modules/gc-md2 (configure.ac): Likewise.
45512         * modules/gc-md4 (configure.ac): Likewise.
45513         * modules/gc-md5 (configure.ac): Likewise.
45514         * modules/gc-random (configure.ac): Likewise.
45515         * modules/gc-rijndael (configure.ac): Likewise.
45516         * modules/gc-sha1 (configure.ac): Likewise.
45517
45518 2007-01-08  Bruno Haible  <bruno@clisp.org>
45519
45520         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
45521         macro definition.
45522         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
45523         definition.
45524         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
45525         definition.
45526         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
45527         * modules/fcntl-safer (configure.ac): Likewise.
45528         * modules/fopen-safer (configure.ac): Likewise.
45529         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
45530         GNULIB_FWRITEERROR macro definition.
45531
45532 2007-01-08  Bruno Haible  <bruno@clisp.org>
45533
45534         * m4/gnulib-common.m4: New file.
45535         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
45536         (func_get_filelist): Add m4/gnulib-common.m4.
45537
45538 2007-01-08  Bruno Haible  <bruno@clisp.org>
45539
45540         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
45541         command.
45542
45543 2007-01-08  Jim Meyering  <jim@meyering.net>
45544
45545         Use a more robust test for a "can't happen" condition.
45546         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
45547         narrowed the st_size value.  Presuming the "can't happen" condition
45548         is true, that narrowing could conceivably convert an invalid st_size
45549         value into a valid one.  Instead, use a change based on Matthew
45550         Woehlke's original patch.
45551
45552         Slight readability improvement: use an assert-like macro
45553         in place of literal "abort ()" uses.
45554         * lib/fts.c (fts_assert): Define.
45555         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
45556         Use this macro instead of a bare 'abort'.
45557
45558 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
45559
45560         Don't worry about using IRIX 5.3's wctype.h broken definitions;
45561         simply work around them.
45562         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
45563         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
45564         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
45565         declaring.
45566         Don't bother to define as macros, since the standard doesn't require it.
45567         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
45568         longer worry about IRIX 5.3.
45569         (HAVE_WCTYPE_CTMP_BUG): Remove.
45570
45571 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
45572
45573         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
45574         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
45575         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
45576         Problems reported by Georg Schwarz for IRIX 5.3.
45577
45578         * gnulib-tool (autoconf_minversion): Take the maximum version number
45579         found, not the minimum.  Problem reported by James Youngman.
45580
45581 2007-01-03  Karl Berry  <karl@gnu.org>
45582
45583         * doc/error.texi: new file, explaining interaction with progname.
45584         * doc/gnulib.texi: include it.  Update copyright.
45585
45586 2007-01-03  Simon Josefsson  <simon@josefsson.org>
45587
45588         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
45589         AC_CANONICAL_HOST, to improve autobuild outputs.
45590
45591 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
45592             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
45593
45594         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
45595         sockets, server sockets, and other file descriptors.  Count errors
45596         to compute the return value.  Reorder the code a bit to be easier
45597         to follow.  Don't set event bits that were not requested (except
45598         POLLERR and POLLHUP).
45599
45600 2007-01-01  Bruno Haible  <bruno@clisp.org>
45601
45602         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
45603
45604 2007-01-03  Jim Meyering  <jim@meyering.net>
45605
45606         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
45607
45608 2007-01-02  Bruno Haible  <bruno@clisp.org>
45609
45610         * modules/settime (Include): Require timespec.h.
45611         * modules/nanosleep (Include): Likewise.
45612
45613 2007-01-01  Bruno Haible  <bruno@clisp.org>
45614
45615         * gnulib-tool (func_emit_copyright_notice): Bump year.
45616         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
45617
45618 2007-01-01  Bruno Haible  <bruno@clisp.org>
45619
45620         Improve support for OpenBSD.
45621         * build-aux/config.rpath (libname_spec): Export.
45622         (library_names_spec): New variable. Export.
45623         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
45624         library_names_spec from the config.rpath output. Locate shared library
45625         through the name pattern in library_names_spec.
45626
45627 2007-01-01  Eric Blake  <ebb9@byu.net>
45628
45629         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
45630
45631 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
45632
45633         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
45634         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
45635         assume the C locale, and avoid an "eval" that could cause trouble.
45636         Problem with SORT reported by Bob Proulx.
45637
45638         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
45639         Define.  Trivial patch from Henning Nielsen Lund, originally
45640         sent to bug-grep@gnu.org today.
45641
45642 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
45643
45644         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
45645         struct stat.  Problem reported by Henning Nielsen Lund.
45646         * lib/acl.c: Include acl.h first, to check interface.  Don't
45647         bother to include sys/types.h and sys/stat.h again.
45648
45649 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
45650
45651         Import the following change from libc; problem reported by
45652         Sven Verdoolaege.
45653
45654         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
45655
45656         [BZ #1373]
45657         * lib/argp.h: Remove __NTH for __argp_usage inline function.
45658
45659 2006-12-28  Jim Meyering  <jim@meyering.net>
45660
45661         * build-aux/announce-gen: Do not assume that the package
45662         builds any of tar.gz, tar.bz2, and .xdelta files.
45663         Suggestion from Simon Josefsson.
45664
45665 2006-12-28  Simon Josefsson  <simon@josefsson.org>
45666
45667         * modules/announce-gen: New file.
45668
45669 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
45670
45671         * lib/mbchar.h: Just include <wctype.h>; the wctype module
45672         handles its gotchas now.
45673         * lib/mbswidth.c: Likewise.
45674         * lib/wcwidth.h: Likewise.
45675         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
45676         and iswcntrl; the wctype module does this stuff now.
45677         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
45678         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
45679         * modules/mbchar (Depends-on): Add wctype.
45680         * modules/mbswidth (Depends-on): Likewise.
45681         * modules/wcwidth (Depends-on): Likewise.
45682
45683 2006-12-27  Eric Blake  <ebb9@byu.net>
45684
45685         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
45686         module uses more than what <wctype.h> is required to provide.
45687
45688 2006-12-26  Eric Blake  <ebb9@byu.net>
45689
45690         * gnulib-tool (sed_extract_prog): Avoid space-tab.
45691
45692 2006-12-26  Eric Blake  <ebb9@byu.net>
45693
45694         * modules/absolute-header: New module.
45695         * modules/fcntl (Depends-on): Depend on it.
45696         * modules/inttypes (Depends-on): Likewise.
45697         * modules/stdint (Depends-on): Likewise.
45698         * modules/sys_stat (Depends-on): Likewise.
45699         * modules/wctype (Depends-on): Likewise.
45700         * MODULES.html.sh (Support for building libraries and
45701         executables): Document it.
45702
45703 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
45704
45705         * gnulib-tool (SED): Remove, undoing previous change.
45706         The problem was that it broke coreutils on Solaris, because
45707         "sed --posix" leaked into a makefile.
45708         (sed): New alias, if 'alias' and GNU sed.
45709
45710 2006-12-24  Jim Meyering  <jim@meyering.net>
45711
45712         Work around an fchownat bug in glibc-2.4:
45713         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
45714         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
45715         in spite of the -P option.
45716         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
45717         New macros.
45718         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
45719         * modules/openat (Files): Add lib/fchownat.c.
45720         * lib/openat.c (fchownat): Don't define here.  Move to...
45721         * lib/fchownat.c: ...this new file.
45722
45723 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
45724
45725         Fix bug reported by Bruno Haible in
45726         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
45727         where quotearg.c didn't compile on Mac OS X 10.2 because it
45728         lacks <wchar.h> and wint_t.
45729         * lib/wctype_.h (__wctype_wint_t): New type.
45730         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
45731         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
45732         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
45733         Arg is now of type __wctype_wint_t, not wint_t.
45734         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
45735         substitute HAVE_WINT_T.
45736         * modules/wctype (Files): Add m4/wint_t.m4.
45737         (wctype.h): Substitute HAVE_WINT_T.
45738
45739 2006-12-23  Bruno Haible  <bruno@clisp.org>
45740
45741         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
45742
45743 2006-12-23  Bruno Haible  <bruno@clisp.org>
45744
45745         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
45746         S_ISLNK.
45747         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
45748         mingw.
45749
45750 2006-12-22  Bruno Haible  <bruno@clisp.org>
45751
45752         * lib/copy-file.c: Include acl.h.
45753         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
45754         Close the file descriptors only after being done with copy_acl.
45755         * modules/copy-file (Depends-on): Add acl.
45756
45757 2006-12-22  Bruno Haible  <bruno@clisp.org>
45758
45759         * gnulib-tool (SED): New variable.
45760         Use $SED instead of sed everywhere.
45761
45762 2006-12-22  Bruno Haible  <bruno@clisp.org>
45763
45764         * modules/no-c++: New file.
45765         * m4/no-c++.m4: New file.
45766         * MODULES.html.sh (Support for building libraries and executables):
45767         Add no-c++.
45768
45769 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
45770
45771         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
45772         Include <limits.h>, and use its INT_MAX to rewrite the
45773         j loop so that it does not overflow 'int'.  Problem reported by
45774         Ralf Wildenhues in
45775         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
45776         Play it safe by shifting left by 1 rather than multiplying by 2,
45777         as GCC is less likely to optimize this away when the value
45778         is signed (when it assumes overflow leads to undefined behavior).
45779         Also, don't assume time_t uses two's complement.
45780
45781 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
45782
45783         * MODULES.html.sh: New module wctype.
45784         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
45785         * lib/fnmatch.c: Don't bother to include <wchar.h> before
45786         <wctype.h>, since the new wctype module should fix this.
45787         * lib/quotearg.c: Include <wctype.h> unconditionally, since
45788         the wctype module should arrange for it.
45789         * lib/regex_internal.h: Likewise.
45790         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
45791         since the wctype module should handle this now.
45792         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
45793         * modules/fnmatch (Depends-on): Add wctype.
45794         * modules/quotearg (Depends-on): Likewise.
45795         * modules/regex (Depends-on): Likewise.
45796
45797 2006-12-19  Bruno Haible  <bruno@clisp.org>
45798
45799         * lib/strdup.h [C++]: Wrap definitions in extern "C".
45800         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
45801
45802 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45803
45804         * modules/savewd (Depends-on): Fix dependency on fcntl.
45805
45806 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
45807
45808         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
45809         conforms to C99, rather than relying on the user's environment
45810         setting of STDINT_H.
45811
45812 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
45813         and Eric Blake  <ebb9@byu.net>
45814
45815         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
45816         This is more consistent with the other defines here.
45817         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
45818         Port to z/OS.  Problem reported by Paul Gilmartin.
45819         Change local vars to use gl_ prefix rather than ac_.
45820         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
45821         with other defines.
45822         * modules/double-slash-root: New module.
45823         * modules/dirname (Files): Remove m4/double-slash-root.m4.
45824         (Depends-on): Add double-slash-root.
45825         * MODULES.html.sh (File system functions): Mention new module.
45826
45827 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
45828
45829         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
45830         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
45831         This is for the benefit of gzip, which doesn't do i18n.
45832
45833 2006-12-12  Jim Meyering  <jim@meyering.net>
45834
45835         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
45836         Reported by Andreas Schwab <schwab@suse.de>.
45837
45838 2006-12-12  Bruno Haible  <bruno@clisp.org>
45839
45840         Merge these changes.
45841         2006-09-05  Bruno Haible  <bruno@clisp.org>
45842         * lib/iconvme.c (iconv_string): No need to save and restore errno when
45843         iconv_alloc succeeded.
45844         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
45845         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
45846         test for " && dest " at the end - dest is always != NULL there. Call
45847         iconv with 4xNULL arguments initially, to reset the state. Call iconv
45848         with 2xNULL arguments, also to flush the state storage. Handle the
45849         IRIX iconv behaviour. Realloc the final result, to throw away unused
45850         memory.
45851
45852 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
45853
45854         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
45855         and fchmodat unconditionally, since glibc 2.4 has them.
45856         Problem reported by Arkadiusz Miskiewicz.
45857
45858 2006-12-10  Bruno Haible  <bruno@clisp.org>
45859
45860         * gnulib-tool (func_import): Show the include files only for those
45861         modules that are copied and specified.
45862         Reported by Karl Berry.
45863
45864 2006-12-08  Jim Meyering  <jim@meyering.net>
45865
45866         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
45867         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
45868
45869         * build-aux/announce-gen: Add two new options, both optional:
45870         --bootstrap-tools=TOOL_LIST
45871               a comma-separated list of tools, e.g.,
45872               autoconf,automake,bison,gnulib
45873         --gnulib-snapshot-date=DATE
45874               if gnulib is in the bootstrap tool list,
45875               then report this as the snapshot date.
45876               If not specified, use the current date/time.
45877               If you specify a date here, be sure it's UTC.
45878
45879 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45880
45881         * tests/test-argp-2.sh: Fix test to match actual output.
45882         (func_compare): Fix sed script to be portable.
45883
45884 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
45885
45886         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
45887         workaround for this case.  It is not autoconfigured now; offhand
45888         it's hard to see how to autoconfigure it.
45889
45890 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
45891
45892         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
45893         a directory that is about to be chowned.  Such a directory's
45894         initial file permissions should permit the owner only and this
45895         should not be changed until after the chown, since the group and
45896         other bits would be incorrect if they granted permission before
45897         the chown.
45898
45899         Fix porting problem for iswctype reported by Georg Schwarz in:
45900         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
45901         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
45902         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
45903         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
45904         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
45905
45906 2006-12-03  Jim Meyering  <jim@meyering.net>
45907
45908         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
45909         p->fts_statp may not yet be defined.
45910         (fts_read): Instead, set it in the caller, once p->fts_statp is
45911         sure to be defined, and corresponds to a top-level directory.
45912         This bug made du -x fail.  Here's the coreutils test case:
45913         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
45914         Reported by Mike Frysinger.
45915
45916 2006-12-01  Jim Meyering  <jim@meyering.net>
45917
45918         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
45919         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
45920         Reported by Simon Josefsson.
45921
45922 2006-11-30  Jim Meyering  <jim@meyering.net>
45923
45924         * m4/warning.m4: Use the all-permissive copyright notice
45925         recommended by RMS (rather than LGPL).
45926         * m4/vararrays.m4: Likewise.
45927         * m4/flexmember.m4: Likewise.
45928
45929 2006-11-29  Bruno Haible  <bruno@clisp.org>
45930
45931         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
45932         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
45933         using +=.
45934         Reported by Simon Josefsson <simon@josefsson.org>.
45935
45936 2006-11-28  James Youngman <jay@gnu.org>
45937
45938         * README: Advise users that they might find the bug-gnulib@gnu.org
45939         and autotools-announce@gnu.org mailing lists useful.
45940
45941 2006-11-28  Bruno Haible  <bruno@clisp.org>
45942
45943         * m4/ptrdiff_max.m4: Remove file.
45944
45945 2006-11-21  Bruno Haible  <bruno@clisp.org>
45946
45947         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
45948         _AC_COMPUTE_INT.
45949         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
45950         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
45951         _AC_COMPUTE_INT.
45952         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
45953         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
45954         _AC_COMPUTE_INT.
45955         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
45956
45957 2006-11-28  Jim Meyering  <jim@meyering.net>
45958
45959         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
45960         warning from "gcc -Wshadow" about shadowing the builtin.
45961
45962 2006-11-27  Bruno Haible  <bruno@clisp.org>
45963
45964         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
45965         _AC_COMPUTE_INT.
45966         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
45967
45968 2006-11-27  Bruno Haible  <bruno@clisp.org>
45969             Paul Eggert  <eggert@cs.ucla.edu>
45970
45971         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
45972
45973 2006-11-26  Bruno Haible  <bruno@clisp.org>
45974
45975         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
45976         noinst_LTLIBRARIES.
45977
45978 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
45979             Bruno Haible  <bruno@clisp.org>
45980
45981         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
45982         if compiling with "gcc -ansi".
45983
45984 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
45985
45986         Fix some incompatibilities with gcc -ansi -pedantic.
45987         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
45988         if compiling pedantically with GCC, unless it's C99 or later.
45989         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
45990         it mishandles gcc -ansi -pedantic as well.
45991         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
45992         if gcc -pedantic.
45993         * lib/regexec.c (check_node_accept_bytes): Don't use auto
45994         initializers for struct if -pedantic, unless it's C99 or later.
45995
45996 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
45997
45998         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
45999         Don't close an fd more than once. Identical atimes indicate
46000         success, not failure.
46001
46002 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
46003
46004         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
46005
46006 2006-11-23  Jim Meyering  <jim@meyering.net>
46007
46008         * build-aux/announce-gen: New file.  From coreutils.
46009
46010 2006-11-22  Jim Meyering  <jim@meyering.net>
46011
46012         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
46013         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
46014         (fts_read): Use a temporary to narrow the overused st_size member
46015         before using it in a switch statement.  Reported by Matthew Woehlke.
46016
46017         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
46018         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
46019
46020 2006-11-20  Bruno Haible  <bruno@clisp.org>
46021
46022         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
46023         changequote instead of pairs of brackets.
46024         Reported by Andreas Schwab <schwab@suse.de>.
46025
46026 2006-11-21  Jim Meyering  <jim@meyering.net>
46027
46028         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
46029         so as to remain compatible with older compilers.
46030         Patch from Michael Deutschmann.
46031
46032 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
46033
46034         * MODULES.html.sh (File system functions): Add openat.
46035
46036         * lib/openat.h (rpl_fstatat): New macro, if
46037         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
46038         (fstatat): Define to rpl_fstatat under the same conditions,
46039         unless COMPILING_FSTATAT.
46040         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
46041         seems to have the bug.
46042         * lib/fstatat.c: New file.
46043         * modules/openat (Files): Add it.
46044
46045 2006-11-20  Bruno Haible  <bruno@clisp.org>
46046
46047         * Makefile: New file.
46048
46049 2006-11-20  Jim Meyering  <jim@meyering.net>
46050
46051         The beginnings of syntax-related checks for gnulib.
46052         * lib/Makefile: New file.
46053         * lib/t-idcache: New script.  Ensure that the two halves of
46054         idcache.c stay in sync.
46055
46056         * lib/idcache.c: Adjust comments in user- and group- portions to
46057         be more accurate, and to be consistent with one another.
46058
46059 2006-11-20  Jim Meyering  <jim@meyering.net>
46060
46061         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
46062         continue using the flexible array member (thus, this module performs
46063         half as many malloc calls), with the addition that...
46064         (getgroup, getuser): Consistently record a non-match via an empty
46065         "name" string, and map an empty string match to a NULL return value.
46066         * modules/idcache (Depends-on): Re-add flexmember.
46067
46068         * lib/idcache.c (getuser): Remove all uses of the register keyword.
46069         (getuidbyname, getgroup, getgidbyname): Likewise.
46070
46071         Use cleaner syntax: NULL rather than 0.
46072         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
46073
46074 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
46075
46076         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
46077         It mishandled the case where the group was missing.
46078         Problem reported by Greg Schafer.
46079         * modules/idcache: Likewise.
46080
46081 2006-11-18  Jim Meyering  <jim@meyering.net>
46082
46083         * check-module (%exempt_header): Add exception for some
46084         conditionally-included headers.
46085
46086         * modules/i-ring (Depends-on): Add verify.
46087         (License): Change to LGPL.
46088
46089 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
46090
46091         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
46092         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
46093         and inttostr.h.  Use snprintf rather than uinttostr, so that
46094         LGPLed code doesn't depend on GPLed.
46095
46096 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
46097
46098         * modules/inline (License): Change from GPL to LGPL.
46099
46100 2006-11-17  Jim Meyering  <jim@meyering.net>
46101
46102         * modules/d-type (License): Switch to LGPL.
46103
46104 2006-11-15  Bruno Haible  <bruno@clisp.org>
46105
46106         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
46107
46108 2006-11-15  Eric Blake  <ebb9@byu.net>
46109
46110         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
46111         the module dependency.
46112
46113 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46114             Bruno Haible  <bruno@clisp.org>
46115
46116         * gnulib-tool (func_create_testdir): Add license consistency check.
46117
46118 2006-11-15  Eric Blake  <ebb9@byu.net>
46119
46120         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
46121         random "(cached)" in configure output.
46122
46123 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46124
46125         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
46126         test for conforming inttypes.h is both announced and cached.
46127
46128         * MODULES.html.sh (seen_modules, seen_files): New variables.
46129         (func_module): Rewrite to use a few less gnulib-tool and sed
46130         invocations.  Avoid a couple of quadratic algorithms for ...
46131         (missed_modules, missed_files): ... these, with ...
46132         (func_append, func_tmpdir): ... these new functions, from
46133         gnulib-tool.  Analogously, install traps for cleanup.
46134
46135         * tests/test-gc.c (main): Remove unused variables.
46136         * tests/test-read-file.c: Include stdlib.h, for 'free'.
46137
46138 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
46139
46140         * modules/inttostr (License): Change to LGPL.
46141
46142 2006-11-14  Eric Blake  <ebb9@byu.net>
46143
46144         * modules/tempname (License): Change to LGPL.
46145
46146 2006-11-14  Eric Blake  <ebb9@byu.net>
46147
46148         * doc/functions.texi (Function Portability): *printf functions on
46149         Cygwin now understand all POSIX size specifiers.
46150
46151 2006-11-14  Bruno Haible  <bruno@clisp.org>
46152
46153         * modules/c-ctype (License): Change to LGPL.
46154
46155 2006-11-12  Bruno Haible  <bruno@clisp.org>
46156
46157         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
46158         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
46159         for GNOME libraries, for which the include files are installed in
46160         subdirectories of $prefix/include.
46161
46162 2006-11-12  Bruno Haible  <bruno@clisp.org>
46163
46164         * m4/lib-link.m4: Require at least autoconf-2.54.
46165         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
46166         name to underscores for the --with option.
46167
46168 2006-11-13  Bruno Haible  <bruno@clisp.org>
46169
46170         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
46171         the tests directory.
46172         Reported by Ralf Wildenhues.
46173
46174 2006-11-13  Bruno Haible  <bruno@clisp.org>
46175
46176         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
46177         (func_emit_initmacro_end): Undo the override here.
46178         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
46179         Works around the famous automake error in coreutils.
46180
46181 2006-11-13  Eric Blake  <ebb9@byu.net>
46182
46183         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
46184         element, not its node.
46185
46186 2006-11-12  Bruno Haible  <bruno@clisp.org>
46187
46188         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
46189         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
46190
46191 2006-11-12  Bruno Haible  <bruno@clisp.org>
46192
46193         * gnulib-tool: New option --local-symlink.
46194         (func_usage): Document it.
46195         (lsymbolic): New variable.
46196         (func_import, func_create_testdir): If --symlink was not specified,
46197         test whether --local-symlink was specified and the file comes from
46198         the local_gnulib_dir.
46199
46200 2006-11-12  Bruno Haible  <bruno@clisp.org>
46201
46202         * gnulib-tool (func_ln): New function.
46203         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
46204
46205 2006-11-12  Bruno Haible  <bruno@clisp.org>
46206
46207         Finish support for source files in subdirectories.
46208         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
46209         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
46210         AUTOMAKE_OPTIONS.
46211         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
46212
46213 2006-11-12  Bruno Haible  <bruno@clisp.org>
46214
46215         * gnulib-tool (func_get_automake_snippet): Synthesize also an
46216         EXTRA_lib_SOURCES augmentation.
46217         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
46218
46219 2006-11-12  Jim Meyering  <jim@meyering.net>
46220
46221         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
46222         file descriptors.  This also averts a failure on systems with
46223         native openat support when a traversed directory lacks "x" access.
46224         * lib/fts_.h: Include "i-ring.h"
46225         (struct FTS) [fts_fd_ring]: New member.
46226         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
46227         (FCHDIR): Add parentheses.
46228         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
46229         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
46230         When descending, rather than simply closing the previous
46231         fts_cwd_fd value, push that file descriptor onto the ring.
46232         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
46233         (fts_open): Initialize the new fd_ring member.
46234         (fts_close): Clear the ring.
46235         (fts_safe_changedir): When possible, use our new fd_ring to skip
46236         the diropen and fstat and dev/ino comparison that would normally
46237         accompany a virtual `chdir ("..")'.
46238
46239         * modules/fts (Depends-on): Add i-ring.
46240         * modules/i-ring: New module.
46241         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
46242         * m4/i-ring.m4: New file.
46243
46244 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46245
46246         * gnulib-tool (func_create_testdir): Fix replacement of
46247         `build-aux' in configure.ac.  Run autotools in gltests
46248         subdirectory.
46249         (func_create_testdir, func_create_megatestdir, test): There is
46250         no need for '--force' in most autotool invocations in a new
46251         tree.  Actually fail the whole test if any of the tools, or the
46252         configure or make stages fail.
46253
46254         Sync from Automake.
46255         * build-aux/gnupload: Revert last change.  Add pointer to upload
46256         instructions of the GNU Maintenance Instructions.
46257         Suggestion by Karl Berry.
46258
46259 2006-11-10  Jim Meyering  <jim@meyering.net>
46260
46261         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
46262
46263 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
46264
46265         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
46266         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
46267         (bind_textdomain_codeset) [! ENABLE_NLS]:
46268         Evaluate all the arguments.  That way, callers get compatible behavior
46269         if the arguments have side effects.  Also, it avoids some GCC
46270         diagnostics in some cases; Joel E. Denny reported problems when Bison
46271         was configured with --enable-gcc-warnigs.
46272
46273 2006-11-10  Jim Meyering  <jim@meyering.net>
46274
46275         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
46276         relevant options in CFLAGS (like -O, -fno-inline) are taken into
46277         account.
46278
46279 2006-11-10  Jim Meyering  <jim@meyering.net>
46280
46281         * modules/inline: New file/module.
46282         * modules/xalloc (Files): Remove m4/inline.m4.
46283         (Depends-on): Add inline, instead.
46284         * modules/oset: Likewise.
46285         * modules/list: Likewise.
46286
46287 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
46288
46289         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
46290         Problem reported by Matthew Woehlke.
46291
46292 2006-11-09  Bruno Haible  <bruno@clisp.org>
46293
46294         * lib/tempname.c (gen_tempname): Remove variant that invokes
46295         __gen_tempname.
46296         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
46297         __gen_tempname.
46298
46299 2006-11-08  Bruno Haible  <bruno@clisp.org>
46300
46301         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
46302         to 'yes' instead of 'cross-compiling'.
46303
46304 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
46305
46306         * lib/quotearg.h (quotearg_free): New decl.
46307         * lib/quotearg.c (quotearg_free): New function.
46308         (slot0, nslots, slotvec0, slotvec):
46309         Now file-scope so that quotearg_free can get at them.
46310
46311 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46312
46313         Sync from Automake.
46314         * build-aux/gnupload: Add missing 'gnu' to example URL.
46315         Report by Karl Berry.
46316
46317 2006-11-08  Bruno Haible  <bruno@clisp.org>
46318
46319         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
46320         Suggested by Paul Eggert.
46321
46322 2006-11-08  Jim Meyering  <jim@meyering.net>
46323
46324         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
46325         It's already included if !_LIBC.
46326         (fts_safe_changedir): Add a comment.
46327
46328 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
46329
46330         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
46331         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
46332         Matthew Woehlke.
46333
46334         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
46335         definitions up, to avoid colliding with change below.
46336         (static_inline) [HAVE_INLINE]: New macro.
46337         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
46338         Provide extern decls when !HAVE_INLINE.  Do not define unless
46339         static_inline is defined, either by us or by xmalloc.c.  Use
46340         static_inline rather than static inline.
46341         (XCALLOC): Optimize sizeof(T) = 1 case.
46342         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
46343
46344 2006-11-07  Bruno Haible  <bruno@clisp.org>
46345
46346         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
46347         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
46348         AC_C_INLINE.
46349         * modules/xalloc (Files): Add m4/inline.m4.
46350
46351 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46352
46353         * README: Fix typo.
46354         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
46355         (Miscellanous Notes): ...from this.
46356
46357 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
46358
46359         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
46360         Mention that offsetof should be used instead of sizeof.
46361         From Bruno Haible.
46362
46363 2006-11-07  Bruno Haible  <bruno@clisp.org>
46364
46365         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
46366
46367 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
46368
46369         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
46370         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
46371         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
46372         (gl_tree_add_before, gl_tree_add_after):
46373         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
46374         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
46375         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
46376         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
46377         (gl_linked_add_after, gl_linked_add_at): Likewise.
46378         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
46379         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
46380         (gl_tree_add_before, gl_tree_add_after): Likewise.
46381         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
46382         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
46383         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
46384
46385 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46386
46387         * lib/gl_oset.h: Use C comment style, not C++ comment style.
46388
46389 2006-11-06  Bruno Haible  <bruno@clisp.org>
46390
46391         * m4/inline.m4: New file.
46392         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
46393         * modules/list (Files): Add m4/inline.m4.
46394         * modules/oset (Files): Likewise.
46395
46396 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
46397
46398         * lib/idcache.c: Include <stddef.h>, for offsetof.
46399         (struct userid.name): Change from char * to a flexible array member.
46400         All uses changed.
46401         * modules/idcache (Depends-on): Add flexmember.
46402
46403         * MODULES.html.sh (Core language properties): New module flexmember.
46404         * modules/flexmember, m4/flexmember.m4: New files.
46405
46406         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
46407         inline functions that are identical with the old xnmalloc_inline,
46408         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
46409         that we can avoid some unnecessary integer multiplications and
46410         divisions in the common case where the element size is known at
46411         compile time.
46412         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
46413         needed.
46414         (xnboundedmalloc): Remove.
46415         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
46416         arguments, for consistency with rest of this header.
46417         (xcharalloc): Rewrite using XNMALLOC.
46418         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
46419         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
46420         versions have been moved to lib/xalloc.h and renamed to be the
46421         non-*_inline versions.
46422         (xmalloc, xrealloc): Implement without reference to the xnmalloc
46423         and xnrealloc functions, since those functions are now inline and
46424         now call us.
46425         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
46426         renaming described above.
46427         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
46428         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
46429         captures the dependency in AC_C_INLINE.
46430
46431         New module canonicalize-lgpl, proposed by Charles Wilson in
46432         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
46433         with a few small changes afterwards.
46434         * MODULES.html.sh (File system functions): New module
46435         canonicalize-lgpl.
46436         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
46437         and canonicalize_file_name.
46438         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
46439         * modules/canonicalize-lgpl: New files.
46440
46441 2006-11-05  Bruno Haible  <bruno@clisp.org>
46442
46443         * gnulib-tool (func_import, func_create_testdir): Create directories
46444         also for files in subdirectories of lib/.
46445
46446 2006-11-05  Bruno Haible  <bruno@clisp.org>
46447
46448         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
46449         ANSI C compliant.
46450
46451 2006-11-03  Bruno Haible  <bruno@clisp.org>
46452
46453         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
46454         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
46455         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
46456         (xnboundedmalloc): New inline function.
46457         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
46458         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
46459         xmalloc.
46460         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
46461         xmalloc.
46462         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
46463         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
46464         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
46465         xmalloc.
46466         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
46467         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
46468         xmalloc.
46469         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
46470         gl_tree_add_after): Use XMALLOC instead of xmalloc.
46471         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
46472         xmalloc.
46473         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
46474         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
46475         gl_tree_add_after): Use XMALLOC instead of xmalloc.
46476         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
46477         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
46478         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
46479         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
46480
46481 2006-11-03  Bruno Haible  <bruno@clisp.org>
46482
46483         * lib/c-ctype.h [C++]: Define functions without name mangling.
46484         * lib/fwriteerror.h [C++]: Likewise.
46485         * lib/gcd.h [C++]: Likewise.
46486         * lib/linebreak.h [C++]: Likewise.
46487
46488 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
46489
46490         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
46491         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
46492         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
46493         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
46494         Check for functions and headers just once.
46495         Check for declaration of canonicalize_file_name.
46496         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
46497
46498 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
46499
46500         * gnulib-tool (func_import): Fix typo in actioncmd.
46501
46502 2006-11-02  Bruno Haible  <bruno@clisp.org>
46503
46504         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
46505         newline sequence in the Makefile.am snippet as a space, like "make"
46506         does.
46507         Reported by Roger Persson <perrog@gmail.com>.
46508
46509 2006-11-01  Bruno Haible  <bruno@clisp.org>
46510
46511         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
46512         already declared in <string.h>.
46513         * lib/strcase.h (strncasecmp): Don't declare it if yes.
46514
46515 2006-11-01  Bruno Haible  <bruno@clisp.org>
46516
46517         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
46518         * lib/strcase.h: Include <string.h>.
46519         (strcasecmp): Define to rpl_strcasecmp here.
46520
46521 2006-11-01  Bruno Haible  <bruno@clisp.org>
46522
46523         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
46524
46525 2006-11-01  Eric Blake  <ebb9@byu.net>
46526
46527         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
46528
46529         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
46530
46531 2006-10-29  Bruno Haible  <bruno@clisp.org>
46532
46533         Make it compile in C++ mode.
46534         * lib/full-write.c (full_rw): Add a cast.
46535
46536 2006-11-01  Bruno Haible  <bruno@clisp.org>
46537
46538         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
46539         be POSIX compliant.
46540         Reported by Roger Persson <perrog@gmail.com>.
46541
46542 2006-11-01  Eric Blake  <ebb9@byu.net>
46543
46544         * lib/getopt_.h: Fix comments.
46545
46546 2006-10-31  Eric Blake  <ebb9@byu.net>
46547
46548         * modules/tmpdir (Depends-on): Add sys_stat.
46549         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
46550         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
46551         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
46552         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
46553         tempname.
46554
46555 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
46556
46557         Avoid some C++ diagnostics reported by Bruno Haible.
46558         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
46559         xmalloc.
46560         (quotearg_alloc): Use xcharalloc rather than xmalloc.
46561         (struct slotvec): Move to top level.
46562         (quotearg_n_options): Rewrite to avoid xmalloc.
46563         * lib/xalloc.h (xcharalloc): New function.
46564         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
46565         [defined __cplusplus]: Add function template that provides result
46566         type propagation.  This part of the change is from Bruno Haible.
46567
46568 2006-10-29  Bruno Haible  <bruno@clisp.org>
46569
46570         Make it compile in C++ mode.
46571         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
46572         * lib/strnlen1.c (strnlen1): Cast memchr result.
46573         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
46574         * lib/clean-temp.c (string_equals, string_hash): Add casts.
46575         (create_temp_dir): Rename local variable 'template'.
46576         (compile_csharp_using_sscli): Add cast.
46577         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
46578         * lib/findprog.c (find_in_path): Likewise.
46579         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
46580         * lib/wait-process.c (register_slave_subprocess): Likewise.
46581
46582 2006-10-22  Bruno Haible  <bruno@clisp.org>
46583
46584         * modules/tsearch: New file.
46585         * lib/tsearch.h: New file.
46586         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
46587         * m4/tsearch.m4: New file.
46588         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
46589
46590 2006-10-29  Eric Blake  <ebb9@byu.net>
46591
46592         * lib/arcfour.c: Assume config.h.
46593         * lib/arctwo.c: Likewise.
46594         * lib/base64.c: Likewise.
46595         * lib/check-version.c: Likewise.
46596         * lib/crc.c: Likewise.
46597         * lib/des.c: Likewise.
46598         * lib/gc-gnulib.c: Likewise.
46599         * lib/gc-libgcrypt.c: Likewise.
46600         * lib/gc-pbkdf2-sha1.c: Likewise.
46601         * lib/getaddrinfo.c: Likewise.
46602         * lib/getdelim.c: Likewise.
46603         * lib/getline.c: Likewise.
46604         * lib/hmac-md5.c: Likewise.
46605         * lib/hmac-sha1.c: Likewise.
46606         * lib/iconvme.c: Likewise.
46607         * lib/md2.c: Likewise.
46608         * lib/md4.c: Likewise.
46609         * lib/memxor.c: Likewise.
46610         * lib/read-file.c: Likewise.
46611         * lib/readline.c: Likewise.
46612         * lib/rijndael-alg-fst.c: Likewise.
46613         * lib/rijndael-api-fst.c: Likewise.
46614         * lib/xgetdomainname.c: Likewise.
46615
46616 2006-10-28  Eric Blake  <ebb9@byu.net>
46617
46618         * lib/xstrndup.c: Assume config.h.
46619
46620 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
46621
46622         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
46623         stat-macros.h is now for our own macros, whereas stat_h is for
46624         macros in the <sys/stat.h> name space.
46625         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
46626         (STAT_MACROS_H): Remove.
46627         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
46628         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
46629         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
46630         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
46631         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
46632         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
46633         Move these macros to ...
46634         * lib/stat_.h: here.  Don't include stat-macros.h.
46635         * lib/canonicalize.c: Don't include stat-macros.h.
46636         * lib/chown.c: Likewise.
46637         * lib/euidaccess.c: Likewise.
46638         * lib/file-type.c: Likewise.
46639         * lib/filemode.c: Likewise.
46640         * lib/glob.c: Likewise.
46641         * lib/isapipe.c: Likewise.
46642         * lib/lchown.c: Likewise.
46643         * lib/lstat.c: Likewise.
46644         * lib/mkdir-p.c: Likewise.
46645         * lib/rmdir.c: Likewise.
46646         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
46647         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
46648         unless mkdir isn't declared, to speed up 'configure'.
46649         Always create sys/stat.h, since it's unlikely any real sys/stat.h
46650         would define all the S_* symbols.
46651         * modules/canonicalize (Depends-on):
46652         Depend on sys_stat, not stat-macros.
46653         * modules/chown: Likewise.
46654         * modules/euidaccess: Likewise.
46655         * modules/filemode: Likewise.
46656         * modules/file-type: Likewise.
46657         * modules/glob: Likewise.
46658         * modules/isapipe: Likewise.
46659         * modules/lchown: Likewise.
46660         * modules/lstat: Likewise.
46661         * modules/mkancesdirs: Likewise.
46662         * modules/rmdir: Likewise.
46663         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
46664         * modules/modechange: Likewise.
46665         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
46666         (configure.ac): Remove gl_STAT_MACROS.
46667         * modules/sys_stat (Depends-on): Remove stat-macros.
46668
46669 2006-10-27  Bruno Haible  <bruno@clisp.org>
46670
46671         * m4/signed.m4: Remove file.
46672         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
46673         invocation.
46674         * modules/vasnprintf (Files): Remove m4/signed.m4.
46675
46676 2006-10-27  Bruno Haible  <bruno@clisp.org>
46677
46678         Update to GNU gettext 0.16.
46679         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
46680         m4/inttypes-h.m4, m4/signed.m4.
46681         * m4/gettext.m4: Update to GNU gettext 0.16.
46682         * m4/intl.m4: New file, from GNU gettext.
46683         * m4/intldir.m4: New file, from GNU gettext.
46684         * config/srclist.txt: Update
46685
46686 2006-10-27  Eric Blake  <ebb9@byu.net>
46687
46688         * MODULES.html.sh: Document tempname.
46689         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
46690         dependencies.
46691         (Files): Move lib/tempname.c...
46692         * modules/tempname: ...to this new module.
46693         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
46694         (gl_PREREQ_TEMPNAME): Move...
46695         * m4/tempname.m4: ...to this new file.
46696         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
46697         * modules/sys_stat (Depends-on): Add stat-macros.
46698         * lib/stat_.h (includes): Pick up stat macros.
46699         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
46700         if stat macros are broken.
46701         * lib/tempname.c (includes): No need to include "stat-macros.h".
46702         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
46703         (direxists, __path_search) [!_LIBC]: Don't compile these in
46704         gnulib; the tmpdir module covers that.
46705         * lib/tempname.h: New file.
46706
46707 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
46708
46709         * COPYING: Explain how gnulib-tool converts licence headers.
46710         Almost all wording by Eric Blake.
46711
46712 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
46713
46714         * lib/mbchar.h (is_basic_table): Make read-only.
46715         * lib/mbchar.c (is_basic_table): Likewise.
46716         Reported by John Darrington.
46717
46718 2006-10-25  Bruno Haible  <bruno@clisp.org>
46719
46720         * lib/progname.h (set_program_name): Undefine before defining.
46721
46722 2006-10-25  Bruno Haible  <bruno@clisp.org>
46723
46724         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
46725         false for non-gcc C++ compilers.
46726         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
46727
46728 2006-10-24  Bruno Haible  <bruno@clisp.org>
46729
46730         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
46731         iconv implementations like Irix iconv.
46732
46733 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46734
46735         * modules/vararrays: New file.
46736         * m4/vararrays.m4: New file, taken from diffutils.
46737         * MODULES.html.sh: New module vararrays.
46738
46739 2006-10-24  Karl Berry  <karl@gnu.org>
46740
46741         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
46742         Don't call GNU Unix.
46743
46744 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46745
46746         * users.txt: Add Libtool.
46747
46748         Sync from Libtool:
46749
46750         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46751
46752         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
46753         to gnulib's policy of including config.h unconditionally.
46754
46755 2006-10-24  Bruno Haible  <bruno@clisp.org>
46756
46757         * modules/wcwidth (Files): Add m4/wint_t.m4.
46758         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
46759         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
46760
46761 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46762
46763         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
46764         to pacify GCC with some -W flags enabled.  Problem reported by
46765         Bruno Haible.
46766
46767 2006-10-24  Jim Meyering  <jim@meyering.net>
46768
46769         * MODULES.html.sh: Remove uinttostr.  It's not a module.
46770         Reported by Karl Berry.
46771
46772 2006-10-23  Bruno Haible  <bruno@clisp.org>
46773
46774         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
46775
46776 2006-10-24  Bruno Haible  <bruno@clisp.org>
46777
46778         * lib/gl_list.h: Use C comment style, not C++ comment style.
46779
46780 2006-10-23  Eric Blake  <ebb9@byu.net>
46781
46782         * lib/getaddrinfo.c (includes): Add missing include.
46783
46784 2006-10-23  Bruno Haible  <bruno@clisp.org>
46785             Paul Eggert  <eggert@cs.ucla.edu>
46786
46787         Ability to rename obstack_free.
46788         * lib/obstack.h (__obstack_free): New macro. Declare instead of
46789         obstack_free.
46790         (obstack_free): Invoke the __obstack_free macro.
46791         * lib/obstack.c (obstack_free): Use __obstack_free macro.
46792
46793 2006-10-23  Bruno Haible  <bruno@clisp.org>
46794             Paul Eggert  <eggert@cs.ucla.edu>
46795
46796         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
46797         __argc, __argv from the declaration. (They are defined as macros on
46798         mingw.)
46799
46800 2006-10-22  Bruno Haible  <bruno@clisp.org>
46801
46802         * doc/gnulib-intro.texi: New file.
46803         * doc/gnulib.texi: Include it.
46804
46805 2006-10-21  Bruno Haible  <bruno@clisp.org>
46806
46807         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
46808         "Introduction", "Miscellanous Notes", "Particular Modules".
46809
46810 2006-10-21  Bruno Haible  <bruno@clisp.org>
46811
46812         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46813         Change mostlyclean-local rule to avoid sh syntax error from bash
46814         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
46815
46816 2006-10-23  Jim Meyering  <jim@meyering.net>
46817
46818         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
46819         in place of snprintf.
46820
46821         * modules/inttostr (Files): Add lib/uinttostr.c.
46822         * lib/uinttostr.c (inttostr): New file/function.
46823         * lib/inttostr.h (uinttostr): Declare.
46824         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
46825         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
46826         Add uinttostr.
46827         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
46828
46829 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
46830
46831         * lib/canonicalize.c (ELOOP): Define if not already defined.
46832         Problem reported by Bruno Haible in
46833         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
46834
46835 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
46836
46837         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
46838         Problem reported by Perry Smith and Ville Laurikari.
46839
46840         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
46841         uses.
46842
46843 2006-10-19  Bruno Haible  <bruno@clisp.org>
46844
46845         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
46846         for mingw.
46847
46848 2006-10-19  Bruno Haible  <bruno@clisp.org>
46849
46850         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
46851         Needed for mingw.
46852
46853 2006-10-19  Bruno Haible  <bruno@clisp.org>
46854
46855         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
46856
46857 2006-10-19  Bruno Haible  <bruno@clisp.org>
46858
46859         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
46860         it.
46861
46862 2006-10-19  Bruno Haible  <bruno@clisp.org>
46863
46864         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
46865         invocation.
46866
46867 2006-10-19  Bruno Haible  <bruno@clisp.org>
46868
46869         * gnulib-tool (func_create_testdir): Don't include ftruncate and
46870         mountlist by default.
46871
46872 2006-10-16  Bruno Haible  <bruno@clisp.org>
46873
46874         * lib/c-strstr.c: Include c-strstr.h.
46875
46876 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
46877
46878         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
46879         in a slash.
46880
46881 2006-10-18  Bruno Haible  <bruno@clisp.org>
46882
46883         * lib/lock.h [C++]: Wrap definitions in extern "C".
46884
46885 2006-10-18  Bruno Haible  <bruno@clisp.org>
46886
46887         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
46888         gl_LIBOBJS list.
46889
46890 2006-10-18  Bruno Haible  <bruno@clisp.org>
46891
46892         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
46893
46894 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
46895
46896         * lib/xstrtol.h: Include gettext.h.
46897         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
46898         Problem reported by Eric Blake.
46899         * modules/xstrtol (Depends-on): Add gettext-h.
46900
46901 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
46902
46903         * lib/strftime.c (advance): New macro.
46904         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
46905         incomplete type, so you can't add 0 to it.  Problem and patch
46906         reported by Eelco Dolstra for dietlibc.
46907
46908 2006-10-18  Jim Meyering  <jim@meyering.net>
46909
46910         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
46911         type for a local, and rename it: s/up/user_proc/.
46912
46913 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
46914
46915         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
46916         READ_UTMP_USER_PROCESS.
46917         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
46918
46919 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
46920
46921         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
46922         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
46923
46924 2006-10-17  Eric Blake  <ebb9@byu.net>
46925
46926         * lib/sigprocmask.c (sigprocmask): Fix typo.
46927
46928         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
46929
46930         * modules/clean-temp (Makefile.am): Don't add to make output...
46931         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
46932         config.h.
46933
46934 2006-10-17  Bruno Haible  <bruno@clisp.org>
46935
46936         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
46937         differently if DEFAULT_TEXT_DOMAIN is set.
46938
46939 2006-10-16  Bruno Haible  <bruno@clisp.org>
46940
46941         * lib/clean-temp.c: Include fwriteerror.h.
46942
46943 2006-10-16  Bruno Haible  <bruno@clisp.org>
46944
46945         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
46946
46947 2006-10-16  Bruno Haible  <bruno@clisp.org>
46948
46949         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
46950         * lib/sigprocmask.h: Include <sys/types.h>.
46951         (sigset_t): Use the system's definition if present.
46952
46953 2006-10-17  Eric Blake  <ebb9@byu.net>
46954
46955         * lib/xvasprintf.c (includes): Assume config.h.
46956         * lib/xasprintf.c (includes): Likewise.
46957
46958 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46959
46960         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
46961         at least as wide as intmax_t.
46962
46963 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
46964
46965         (Imported from Automake.)
46966         * build-aux/gnupload: Update to version 1.1 of directive file.
46967
46968 2006-10-16  Eric Blake  <ebb9@byu.net>
46969
46970         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
46971         match Automake 1.10a.
46972
46973 2006-10-14  Bruno Haible  <bruno@clisp.org>
46974
46975         * modules/sigprocmask: New file.
46976         * lib/sigprocmask.h: New file.
46977         * lib/sigprocmask.c: New file.
46978         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
46979         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
46980         request sigprocmask.o.
46981         (gl_PREREQ_SIGPROCMASK): New macro.
46982         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
46983         (Depends-on): Add sigprocmask.
46984         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
46985         gt_SIGNALBLOCKING. Test for 'raise' only once.
46986         * lib/fatal-signal.c: Include sigprocmask.h.
46987         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
46988         unblock_fatal_signals): Define always.
46989         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46990         sigprocmask.
46991
46992 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
46993
46994         Sync from Automake.
46995         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
46996         which incorrectly sets the mode of an existing destination
46997         directory.  In some cases the unpatched install-sh could do the
46998         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
46999         system.  We hope this is rare in practice, but it's clearly worth
47000         fixing.  Problem reported by Alex Unleashed in
47001         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
47002         Also, don't bother to check for -m bugs unless we're using -m;
47003         suggested by Stepan Kasal.
47004
47005 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47006
47007         Sync from Automake.
47008         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
47009         `-c' flag, so they appear at the same position as in %FASTDEP%
47010         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
47011         which ignores unknown options only after the first non-option.
47012         Bug report against M4 by Nelson H. F. Beebe.
47013
47014 2006-10-13  Jim Meyering  <jim@meyering.net>
47015
47016         Fix a bug in yesterday's change.
47017         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
47018         p->fts_statp->st_dev would be used uninitialized.
47019         Ensures that we always call fts_stat on the very first entry.
47020         Miklos Szeredi reported that find -xdev stopped working.
47021
47022 2006-10-12  Bruno Haible  <bruno@clisp.org>
47023
47024         * gnulib-tool (func_get_automake_snippet): Append an automatically
47025         computed EXTRA_DIST augmentation.
47026         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
47027         * modules/alloca-opt (Makefile.am): Likewise.
47028         * modules/allocsa (Makefile.am): Likewise.
47029         * modules/arcfour (Makefile.am): Likewise.
47030         * modules/arctwo (Makefile.am): Likewise.
47031         * modules/argmatch (Makefile.am): Likewise.
47032         * modules/argz (Makefile.am): Likewise.
47033         * modules/atexit (Makefile.am): Likewise.
47034         * modules/backupfile (Makefile.am): Likewise.
47035         * modules/byteswap (Makefile.am): Likewise.
47036         * modules/c-strtod (Makefile.am): Likewise.
47037         * modules/c-strtold (Makefile.am): Likewise.
47038         * modules/calloc (Makefile.am): Likewise.
47039         * modules/canon-host (Makefile.am): Likewise.
47040         * modules/canonicalize (Makefile.am): Likewise.
47041         * modules/chdir-long (Makefile.am): Likewise.
47042         * modules/chdir-safer (Makefile.am): Likewise.
47043         * modules/check-version (Makefile.am): Likewise.
47044         * modules/chown (Makefile.am): Likewise.
47045         * modules/cloexec (Makefile.am): Likewise.
47046         * modules/close-stream (Makefile.am): Likewise.
47047         * modules/closeout (Makefile.am): Likewise.
47048         * modules/crc (Makefile.am): Likewise.
47049         * modules/csharpexec (Makefile.am): Likewise.
47050         * modules/cycle-check (Makefile.am): Likewise.
47051         * modules/des (Makefile.am): Likewise.
47052         * modules/dev-ino (Makefile.am): Likewise.
47053         * modules/dirfd (Makefile.am): Likewise.
47054         * modules/dirname (Makefile.am): Likewise.
47055         * modules/dup2 (Makefile.am): Likewise.
47056         * modules/eealloc (Makefile.am): Likewise.
47057         * modules/error (Makefile.am): Likewise.
47058         * modules/euidaccess (Makefile.am): Likewise.
47059         * modules/exclude (Makefile.am): Likewise.
47060         * modules/exitfail (Makefile.am): Likewise.
47061         * modules/fcntl-safer (Makefile.am): Likewise.
47062         * modules/fcntl (Makefile.am): Likewise.
47063         * modules/file-type (Makefile.am): Likewise.
47064         * modules/fileblocks (Makefile.am): Likewise.
47065         * modules/filemode (Makefile.am): Likewise.
47066         * modules/filenamecat (Makefile.am): Likewise.
47067         * modules/fnmatch (Makefile.am): Likewise.
47068         * modules/fopen-safer (Makefile.am): Likewise.
47069         * modules/fpending (Makefile.am): Likewise.
47070         * modules/fprintftime (Makefile.am): Likewise.
47071         * modules/free (Makefile.am): Likewise.
47072         * modules/fsusage (Makefile.am): Likewise.
47073         * modules/ftruncate (Makefile.am): Likewise.
47074         * modules/fts (Makefile.am): Likewise.
47075         * modules/gc-arcfour (Makefile.am): Likewise.
47076         * modules/gc-des (Makefile.am): Likewise.
47077         * modules/gc-hmac-md5 (Makefile.am): Likewise.
47078         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
47079         * modules/gc-md4 (Makefile.am): Likewise.
47080         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
47081         * modules/gc-sha1 (Makefile.am): Likewise.
47082         * modules/gc (Makefile.am): Likewise.
47083         * modules/getaddrinfo (Makefile.am): Likewise.
47084         * modules/getcwd (Makefile.am): Likewise.
47085         * modules/getdelim (Makefile.am): Likewise.
47086         * modules/getdomainname (Makefile.am): Likewise.
47087         * modules/getgroups (Makefile.am): Likewise.
47088         * modules/gethostname (Makefile.am): Likewise.
47089         * modules/gethrxtime (Makefile.am): Likewise.
47090         * modules/getline (Makefile.am): Likewise.
47091         * modules/getloadavg (Makefile.am): Likewise.
47092         * modules/getlogin_r (Makefile.am): Likewise.
47093         * modules/getndelim2 (Makefile.am): Likewise.
47094         * modules/getopt (Makefile.am): Likewise.
47095         * modules/getpagesize (Makefile.am): Likewise.
47096         * modules/getpass-gnu (Makefile.am): Likewise.
47097         * modules/getpass (Makefile.am): Likewise.
47098         * modules/getsubopt (Makefile.am): Likewise.
47099         * modules/gettime (Makefile.am): Likewise.
47100         * modules/gettimeofday (Makefile.am): Likewise.
47101         * modules/getugroups (Makefile.am): Likewise.
47102         * modules/getusershell (Makefile.am): Likewise.
47103         * modules/glob (Makefile.am): Likewise.
47104         * modules/group-member (Makefile.am): Likewise.
47105         * modules/hard-locale (Makefile.am): Likewise.
47106         * modules/hash (Makefile.am): Likewise.
47107         * modules/hmac-md5 (Makefile.am): Likewise.
47108         * modules/hmac-sha1 (Makefile.am): Likewise.
47109         * modules/human (Makefile.am): Likewise.
47110         * modules/idcache (Makefile.am): Likewise.
47111         * modules/imaxabs (Makefile.am): Likewise.
47112         * modules/imaxdiv (Makefile.am): Likewise.
47113         * modules/inet_ntop (Makefile.am): Likewise.
47114         * modules/inet_pton (Makefile.am): Likewise.
47115         * modules/intprops (Makefile.am): Likewise.
47116         * modules/inttostr (Makefile.am): Likewise.
47117         * modules/inttypes (Makefile.am): Likewise.
47118         * modules/isapipe (Makefile.am): Likewise.
47119         * modules/javaversion (Makefile.am): Likewise.
47120         * modules/lchmod (Makefile.am): Likewise.
47121         * modules/lchown (Makefile.am): Likewise.
47122         * modules/localcharset (Makefile.am): Likewise.
47123         * modules/long-options (Makefile.am): Likewise.
47124         * modules/lstat (Makefile.am): Likewise.
47125         * modules/malloc (Makefile.am): Likewise.
47126         * modules/mathl (Makefile.am): Likewise.
47127         * modules/mbchar (Makefile.am): Likewise.
47128         * modules/md2 (Makefile.am): Likewise.
47129         * modules/md4 (Makefile.am): Likewise.
47130         * modules/md5 (Makefile.am): Likewise.
47131         * modules/memcasecmp (Makefile.am): Likewise.
47132         * modules/memchr (Makefile.am): Likewise.
47133         * modules/memcmp (Makefile.am): Likewise.
47134         * modules/memcoll (Makefile.am): Likewise.
47135         * modules/memcpy (Makefile.am): Likewise.
47136         * modules/memmem (Makefile.am): Likewise.
47137         * modules/memmove (Makefile.am): Likewise.
47138         * modules/mempcpy (Makefile.am): Likewise.
47139         * modules/memrchr (Makefile.am): Likewise.
47140         * modules/memset (Makefile.am): Likewise.
47141         * modules/memxor (Makefile.am): Likewise.
47142         * modules/mkancesdirs (Makefile.am): Likewise.
47143         * modules/mkdir-p (Makefile.am): Likewise.
47144         * modules/mkdir (Makefile.am): Likewise.
47145         * modules/mkdtemp (Makefile.am): Likewise.
47146         * modules/mkstemp (Makefile.am): Likewise.
47147         * modules/mktime (Makefile.am): Likewise.
47148         * modules/modechange (Makefile.am): Likewise.
47149         * modules/mountlist (Makefile.am): Likewise.
47150         * modules/nanosleep (Makefile.am): Likewise.
47151         * modules/obstack (Makefile.am): Likewise.
47152         * modules/openat (Makefile.am): Likewise.
47153         * modules/pagealign_alloc (Makefile.am): Likewise.
47154         * modules/pathmax (Makefile.am): Likewise.
47155         * modules/physmem (Makefile.am): Likewise.
47156         * modules/poll (Makefile.am): Likewise.
47157         * modules/posixtm (Makefile.am): Likewise.
47158         * modules/posixver (Makefile.am): Likewise.
47159         * modules/putenv (Makefile.am): Likewise.
47160         * modules/quote (Makefile.am): Likewise.
47161         * modules/quotearg (Makefile.am): Likewise.
47162         * modules/raise (Makefile.am): Likewise.
47163         * modules/read-file (Makefile.am): Likewise.
47164         * modules/readline (Makefile.am): Likewise.
47165         * modules/readlink (Makefile.am): Likewise.
47166         * modules/readtokens (Makefile.am): Likewise.
47167         * modules/readutmp (Makefile.am): Likewise.
47168         * modules/realloc (Makefile.am): Likewise.
47169         * modules/regex (Makefile.am): Likewise.
47170         * modules/rename-dest-slash (Makefile.am): Likewise.
47171         * modules/rename (Makefile.am): Likewise.
47172         * modules/rijndael (Makefile.am): Likewise.
47173         * modules/rmdir (Makefile.am): Likewise.
47174         * modules/rpmatch (Makefile.am): Likewise.
47175         * modules/safe-read (Makefile.am): Likewise.
47176         * modules/safe-write (Makefile.am): Likewise.
47177         * modules/same-inode (Makefile.am): Likewise.
47178         * modules/same (Makefile.am): Likewise.
47179         * modules/save-cwd (Makefile.am): Likewise.
47180         * modules/savedir (Makefile.am): Likewise.
47181         * modules/setenv (Makefile.am): Likewise.
47182         * modules/settime (Makefile.am): Likewise.
47183         * modules/sha1 (Makefile.am): Likewise.
47184         * modules/sig2str (Makefile.am): Likewise.
47185         * modules/snprintf (Makefile.am): Likewise.
47186         * modules/stat-macros (Makefile.am): Likewise.
47187         * modules/stat-time (Makefile.am): Likewise.
47188         * modules/stdbool (Makefile.am): Likewise.
47189         * modules/stdint (Makefile.am): Likewise.
47190         * modules/stdlib-safer (Makefile.am): Likewise.
47191         * modules/stpcpy (Makefile.am): Likewise.
47192         * modules/stpncpy (Makefile.am): Likewise.
47193         * modules/strcase (Makefile.am): Likewise.
47194         * modules/strcasestr (Makefile.am): Likewise.
47195         * modules/strchrnul (Makefile.am): Likewise.
47196         * modules/strcspn (Makefile.am): Likewise.
47197         * modules/strdup (Makefile.am): Likewise.
47198         * modules/strerror (Makefile.am): Likewise.
47199         * modules/strftime (Makefile.am): Likewise.
47200         * modules/strndup (Makefile.am): Likewise.
47201         * modules/strnlen (Makefile.am): Likewise.
47202         * modules/strpbrk (Makefile.am): Likewise.
47203         * modules/strsep (Makefile.am): Likewise.
47204         * modules/strstr (Makefile.am): Likewise.
47205         * modules/strtod (Makefile.am): Likewise.
47206         * modules/strtoimax (Makefile.am): Likewise.
47207         * modules/strtok_r (Makefile.am): Likewise.
47208         * modules/strtol (Makefile.am): Likewise.
47209         * modules/strtoll (Makefile.am): Likewise.
47210         * modules/strtoul (Makefile.am): Likewise.
47211         * modules/strtoull (Makefile.am): Likewise.
47212         * modules/strtoumax (Makefile.am): Likewise.
47213         * modules/strverscmp (Makefile.am): Likewise.
47214         * modules/sys_socket (Makefile.am): Likewise.
47215         * modules/sys_stat (Makefile.am): Likewise.
47216         * modules/sysexits (Makefile.am): Likewise.
47217         * modules/time_r (Makefile.am): Likewise.
47218         * modules/timegm (Makefile.am): Likewise.
47219         * modules/timespec (Makefile.am): Likewise.
47220         * modules/tmpfile-safer (Makefile.am): Likewise.
47221         * modules/trim (Makefile.am): Likewise.
47222         * modules/unistd-safer (Makefile.am): Likewise.
47223         * modules/unlinkdir (Makefile.am): Likewise.
47224         * modules/unlocked-io (Makefile.am): Likewise.
47225         * modules/userspec (Makefile.am): Likewise.
47226         * modules/utime (Makefile.am): Likewise.
47227         * modules/utimecmp (Makefile.am): Likewise.
47228         * modules/utimens (Makefile.am): Likewise.
47229         * modules/vasnprintf (Makefile.am): Likewise.
47230         * modules/vasprintf (Makefile.am): Likewise.
47231         * modules/vsnprintf (Makefile.am): Likewise.
47232         * modules/xalloc (Makefile.am): Likewise.
47233         * modules/xgetcwd (Makefile.am): Likewise.
47234         * modules/xnanosleep (Makefile.am): Likewise.
47235         * modules/xreadlink (Makefile.am): Likewise.
47236         * modules/xstrtod (Makefile.am): Likewise.
47237         * modules/xstrtol (Makefile.am): Likewise.
47238         * modules/xstrtold (Makefile.am): Likewise.
47239         * modules/yesno (Makefile.am): Likewise.
47240         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
47241
47242 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
47243
47244         * modules/error (Makefile.am): Distribute files through
47245         EXTRA_DIST, not lib_SOURCES.
47246
47247 2006-10-12  Eric Blake  <ebb9@byu.net>
47248
47249         * modules/error (Makefile.am): Distribute files in /lib.
47250         * modules/obstack (Makefile.am): Likewise.
47251
47252 2006-10-12  Bruno Haible  <bruno@clisp.org>
47253
47254         * modules/acl (Makefile.am): Distribute all files in lib/ through
47255         EXTRA_DIST.
47256         * modules/arcfour (Makefile.am): Likewise.
47257         * modules/arctwo (Makefile.am): Likewise.
47258         * modules/argmatch (Makefile.am): Likewise.
47259         * modules/argz (Makefile.am): Likewise.
47260         * modules/atexit (Makefile.am): Likewise.
47261         * modules/backupfile (Makefile.am): Likewise.
47262         * modules/c-strtod (Makefile.am): Likewise.
47263         * modules/c-strtold (Makefile.am): Likewise.
47264         * modules/calloc (Makefile.am): Likewise.
47265         * modules/canon-host (Makefile.am): Likewise.
47266         * modules/canonicalize (Makefile.am): Likewise.
47267         * modules/chdir-long (Makefile.am): Likewise.
47268         * modules/chdir-safer (Makefile.am): Likewise.
47269         * modules/check-version (Makefile.am): Likewise.
47270         * modules/chown (Makefile.am): Likewise.
47271         * modules/cloexec (Makefile.am): Likewise.
47272         * modules/close-stream (Makefile.am): Likewise.
47273         * modules/closeout (Makefile.am): Likewise.
47274         * modules/crc (Makefile.am): Likewise.
47275         * modules/cycle-check (Makefile.am): Likewise.
47276         * modules/des (Makefile.am): Likewise.
47277         * modules/dirfd (Makefile.am): Likewise.
47278         * modules/dirname (Makefile.am): Likewise.
47279         * modules/dup2 (Makefile.am): Likewise.
47280         * modules/euidaccess (Makefile.am): Likewise.
47281         * modules/exclude (Makefile.am): Likewise.
47282         * modules/exitfail (Makefile.am): Likewise.
47283         * modules/fcntl-safer (Makefile.am): Likewise.
47284         * modules/file-type (Makefile.am): Likewise.
47285         * modules/fileblocks (Makefile.am): Likewise.
47286         * modules/filemode (Makefile.am): Likewise.
47287         * modules/filenamecat (Makefile.am): Likewise.
47288         * modules/fnmatch (Makefile.am): Likewise.
47289         * modules/fopen-safer (Makefile.am): Likewise.
47290         * modules/fpending (Makefile.am): Likewise.
47291         * modules/fprintftime (Makefile.am): Likewise.
47292         * modules/free (Makefile.am): Likewise.
47293         * modules/fsusage (Makefile.am): Likewise.
47294         * modules/ftruncate (Makefile.am): Likewise.
47295         * modules/fts (Makefile.am): Likewise.
47296         * modules/gc (Makefile.am): Likewise.
47297         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
47298         * modules/getaddrinfo (Makefile.am): Likewise.
47299         * modules/getcwd (Makefile.am): Likewise.
47300         * modules/getdelim (Makefile.am): Likewise.
47301         * modules/getdomainname (Makefile.am): Likewise.
47302         * modules/getgroups (Makefile.am): Likewise.
47303         * modules/gethostname (Makefile.am): Likewise.
47304         * modules/gethrxtime (Makefile.am): Likewise.
47305         * modules/getline (Makefile.am): Likewise.
47306         * modules/getloadavg (Makefile.am): Likewise.
47307         * modules/getlogin_r (Makefile.am): Likewise.
47308         * modules/getopt (Makefile.am): Likewise.
47309         * modules/getpass (Makefile.am): Likewise.
47310         * modules/getpass-gnu (Makefile.am): Likewise.
47311         * modules/getsubopt (Makefile.am): Likewise.
47312         * modules/gettime (Makefile.am): Likewise.
47313         * modules/gettimeofday (Makefile.am): Likewise.
47314         * modules/getugroups (Makefile.am): Likewise.
47315         * modules/getusershell (Makefile.am): Likewise.
47316         * modules/glob (Makefile.am): Likewise.
47317         * modules/group-member (Makefile.am): Likewise.
47318         * modules/hard-locale (Makefile.am): Likewise.
47319         * modules/hash (Makefile.am): Likewise.
47320         * modules/hmac-md5 (Makefile.am): Likewise.
47321         * modules/hmac-sha1 (Makefile.am): Likewise.
47322         * modules/human (Makefile.am): Likewise.
47323         * modules/idcache (Makefile.am): Likewise.
47324         * modules/imaxabs (Makefile.am): Likewise.
47325         * modules/imaxdiv (Makefile.am): Likewise.
47326         * modules/inet_ntop (Makefile.am): Likewise.
47327         * modules/inet_pton (Makefile.am): Likewise.
47328         * modules/inttostr (Makefile.am): Likewise.
47329         * modules/isapipe (Makefile.am): Likewise.
47330         * modules/lchown (Makefile.am): Likewise.
47331         * modules/long-options (Makefile.am): Likewise.
47332         * modules/lstat (Makefile.am): Likewise.
47333         * modules/malloc (Makefile.am): Likewise.
47334         * modules/mathl (Makefile.am): Likewise.
47335         * modules/mbchar (Makefile.am): Likewise.
47336         * modules/md2 (Makefile.am): Likewise.
47337         * modules/md4 (Makefile.am): Likewise.
47338         * modules/md5 (Makefile.am): Likewise.
47339         * modules/memcasecmp (Makefile.am): Likewise.
47340         * modules/memchr (Makefile.am): Likewise.
47341         * modules/memcmp (Makefile.am): Likewise.
47342         * modules/memcoll (Makefile.am): Likewise.
47343         * modules/memcpy (Makefile.am): Likewise.
47344         * modules/memmem (Makefile.am): Likewise.
47345         * modules/memmove (Makefile.am): Likewise.
47346         * modules/mempcpy (Makefile.am): Likewise.
47347         * modules/memrchr (Makefile.am): Likewise.
47348         * modules/memset (Makefile.am): Likewise.
47349         * modules/memxor (Makefile.am): Likewise.
47350         * modules/mkancesdirs (Makefile.am): Likewise.
47351         * modules/mkdir (Makefile.am): Likewise.
47352         * modules/mkdir-p (Makefile.am): Likewise.
47353         * modules/mkdtemp (Makefile.am): Likewise.
47354         * modules/mkstemp (Makefile.am): Likewise.
47355         * modules/mktime (Makefile.am): Likewise.
47356         * modules/modechange (Makefile.am): Likewise.
47357         * modules/mountlist (Makefile.am): Likewise.
47358         * modules/nanosleep (Makefile.am): Likewise.
47359         * modules/openat (Makefile.am): Likewise.
47360         * modules/pagealign_alloc (Makefile.am): Likewise.
47361         * modules/physmem (Makefile.am): Likewise.
47362         * modules/poll (Makefile.am): Likewise.
47363         * modules/posixtm (Makefile.am): Likewise.
47364         * modules/posixver (Makefile.am): Likewise.
47365         * modules/putenv (Makefile.am): Likewise.
47366         * modules/quote (Makefile.am): Likewise.
47367         * modules/quotearg (Makefile.am): Likewise.
47368         * modules/raise (Makefile.am): Likewise.
47369         * modules/read-file (Makefile.am): Likewise.
47370         * modules/readline (Makefile.am): Likewise.
47371         * modules/readlink (Makefile.am): Likewise.
47372         * modules/readtokens (Makefile.am): Likewise.
47373         * modules/readutmp (Makefile.am): Likewise.
47374         * modules/realloc (Makefile.am): Likewise.
47375         * modules/regex (Makefile.am): Likewise.
47376         * modules/rename (Makefile.am): Likewise.
47377         * modules/rename-dest-slash (Makefile.am): Likewise.
47378         * modules/rijndael (Makefile.am): Likewise.
47379         * modules/rmdir (Makefile.am): Likewise.
47380         * modules/rpmatch (Makefile.am): Likewise.
47381         * modules/safe-read (Makefile.am): Likewise.
47382         * modules/safe-write (Makefile.am): Likewise.
47383         * modules/same (Makefile.am): Likewise.
47384         * modules/save-cwd (Makefile.am): Likewise.
47385         * modules/savedir (Makefile.am): Likewise.
47386         * modules/setenv (Makefile.am): Likewise.
47387         * modules/settime (Makefile.am): Likewise.
47388         * modules/sha1 (Makefile.am): Likewise.
47389         * modules/sig2str (Makefile.am): Likewise.
47390         * modules/snprintf (Makefile.am): Likewise.
47391         * modules/stdlib-safer (Makefile.am): Likewise.
47392         * modules/stpcpy (Makefile.am): Likewise.
47393         * modules/stpncpy (Makefile.am): Likewise.
47394         * modules/strcase (Makefile.am): Likewise.
47395         * modules/strcasestr (Makefile.am): Likewise.
47396         * modules/strchrnul (Makefile.am): Likewise.
47397         * modules/strcspn (Makefile.am): Likewise.
47398         * modules/strdup (Makefile.am): Likewise.
47399         * modules/strerror (Makefile.am): Likewise.
47400         * modules/strftime (Makefile.am): Likewise.
47401         * modules/strndup (Makefile.am): Likewise.
47402         * modules/strnlen (Makefile.am): Likewise.
47403         * modules/strpbrk (Makefile.am): Likewise.
47404         * modules/strsep (Makefile.am): Likewise.
47405         * modules/strstr (Makefile.am): Likewise.
47406         * modules/strtod (Makefile.am): Likewise.
47407         * modules/strtoimax (Makefile.am): Likewise.
47408         * modules/strtok_r (Makefile.am): Likewise.
47409         * modules/strtol (Makefile.am): Likewise.
47410         * modules/strtoll (Makefile.am): Likewise.
47411         * modules/strtoul (Makefile.am): Likewise.
47412         * modules/strtoull (Makefile.am): Likewise.
47413         * modules/strtoumax (Makefile.am): Likewise.
47414         * modules/strverscmp (Makefile.am): Likewise.
47415         * modules/time_r (Makefile.am): Likewise.
47416         * modules/timegm (Makefile.am): Likewise.
47417         * modules/tmpfile-safer (Makefile.am): Likewise.
47418         * modules/unistd-safer (Makefile.am): Likewise.
47419         * modules/unlinkdir (Makefile.am): Likewise.
47420         * modules/userspec (Makefile.am): Likewise.
47421         * modules/utime (Makefile.am): Likewise.
47422         * modules/utimecmp (Makefile.am): Likewise.
47423         * modules/utimens (Makefile.am): Likewise.
47424         * modules/vasnprintf (Makefile.am): Likewise.
47425         * modules/vasprintf (Makefile.am): Likewise.
47426         * modules/vsnprintf (Makefile.am): Likewise.
47427         * modules/xalloc (Makefile.am): Likewise.
47428         * modules/xgetcwd (Makefile.am): Likewise.
47429         * modules/xnanosleep (Makefile.am): Likewise.
47430         * modules/xreadlink (Makefile.am): Likewise.
47431         * modules/xstrtod (Makefile.am): Likewise.
47432         * modules/xstrtol (Makefile.am): Likewise.
47433         * modules/xstrtold (Makefile.am): Likewise.
47434         * modules/yesno (Makefile.am): Likewise.
47435
47436 2006-10-12  Jim Meyering  <jim@meyering.net>
47437
47438         * m4/getloadavg.m4: Revert the change below.
47439
47440         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
47441         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
47442         fail with a symlink, which is what coreutils' ./bootstrap now
47443         creates by default.
47444
47445 2006-10-12  Bruno Haible  <bruno@clisp.org>
47446
47447         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
47448         mingw.
47449         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
47450         MSVC and mingw explicitly.
47451
47452 2006-10-11  Simon Josefsson  <jas@extundo.com>
47453             Bruno Haible  <bruno@clisp.org>
47454
47455         Add support for multiple gnulib-tool invocations in the scope of a
47456         single configure.ac file.
47457         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
47458         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
47459         with the same contents as the _LIBADD variable.
47460         (func_emit_initmacro_start, func_emit_initmacro_end,
47461         func_emit_initmacro_done): New functions.
47462         (func_import, func_create_testdir): Invoke them. Allow the identifiers
47463         gl_LIBOBJS and gl_LTLIBOBJS.
47464
47465 2006-10-11  Bruno Haible  <bruno@clisp.org>
47466
47467         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
47468         (func_create_testdir): Don't create po/Makefile.am, don't invoke
47469         autoreconf. Instead, invoke autopoint explicitly but move back the
47470         *.m4 files from gnulib.
47471
47472 2006-10-11  Bruno Haible  <bruno@clisp.org>
47473
47474         * gnulib-tool (func_usage): Make module names after --create-testdir
47475         optional.
47476         (func_create_testdir): If no module was specified, use nearly all
47477         modules.
47478
47479 2006-10-12  Jim Meyering  <jim@meyering.net>
47480
47481         Big performance improvement for fts-based tools that use FTS_NOSTAT.
47482         Avoid spurious inode-mismatch problems on non-POSIX file systems.
47483         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
47484         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
47485         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
47486         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
47487         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
47488         (fts_set_stat_required): New function.
47489         (fts_open): Defer the calls to fts_stat, if possible or requested.
47490         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
47491         into fts_stat itself.
47492         (fts_read): Perform any required (deferred) fts_stat call.
47493         (fts_build): Likewise, for the directory we're about to open and read.
47494         In the readdir loop, carefully decide whether each entry will require
47495         an eventual call to fts_stat, using dirent.d_type info if available.
47496         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
47497         a command line argument into this function.  Update all callers.
47498         Map a return value of FTS_DOT to FTS_D for a command line argument.
47499         * modules/fts (Depends-on): Add d-type.  Alphabetize.
47500         Thanks to Miklos Szeredi for his tenacity and for the initial
47501         bug report about "find" failing on a FUSE-based file system.
47502
47503         * lib/fts.c (fts_open): Use consistent indentation.
47504
47505 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
47506
47507         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
47508         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
47509         reported by Jim Meyering.  All uses of cache variables renamed
47510         to match Autoconf's.
47511         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
47512         the other one.
47513
47514         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
47515         Fix misspelling in diagnostic.
47516
47517 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
47518
47519         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
47520         defined.  Problem reported by Matthew Woehlke.
47521
47522         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
47523         Add support for Tandem NonStop R series.
47524         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
47525         Use new macro.
47526
47527         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
47528         (has_trailing_slash): Omit size arg; all callers changed.
47529         Omit 'inline', since it doesn't help performance and we'd
47530         need to configure it.
47531         Don't count //, ///, etc. as having a trailing slash.
47532         As a side effect, this removes a C99ism reported by Matthew Woehlke.
47533         (rpl_rename_dest_slash): On failure, use rename's errno rather
47534         than (in some cases) an incorrect or junk errno.
47535         Simplify code by removing need to compute length; this does
47536         cause it to make two passes instead of one over the file name,
47537         but it's worth it.
47538
47539         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
47540         change, since Autoconf's version may no longer be appropriate now
47541         that we are using CVS Autoconf's version.  Add support for Tandem.
47542
47543 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
47544             Bruno Haible  <bruno@clisp.org>
47545
47546         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
47547         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
47548         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
47549         gl_AC_TYPE_LONG_LONG.
47550
47551         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
47552         instead of HAVE_LONG_LONG.
47553         * lib/printf-args.c (printf_fetchargs): Likewise.
47554         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
47555         * lib/vasnprintf.c (VASNPRINTF): Likewise.
47556         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
47557         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
47558         gl_AC_TYPE_LONG_LONG.
47559
47560 2006-10-11  Bruno Haible  <bruno@clisp.org>
47561
47562         * m4/longlong.m4: Add comments.
47563         * m4/ulonglong.m4: Likewise.
47564
47565 2006-10-10  Bruno Haible  <bruno@clisp.org>
47566
47567         Make it possible to #define stpcpy, strdup to aliases.
47568         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
47569         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
47570
47571 2006-10-10  Bruno Haible  <bruno@clisp.org>
47572
47573         Make it possible to #define gcd to an alias.
47574         * lib/gcd.c: Include config.h.
47575
47576 2006-10-10  Bruno Haible  <bruno@clisp.org>
47577
47578         Make it possible to #define c_isascii to an alias.
47579         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
47580         defined. Undefine the macros before defining them, to avoid gcc
47581         warnings.
47582         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
47583         define NO_C_CTYPE_MACROS early.
47584
47585 2006-10-10  Bruno Haible  <bruno@clisp.org>
47586
47587         Make it possible to #define set_program_name to an alias.
47588         * lib/progname.c: Don't undefine set_program_name; instead, undefine
47589         ENABLE_RELOCATABLE early.
47590
47591 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
47592
47593         Port to Tandem NSK OSS, which has 64-bit signed int but at most
47594         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
47595         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
47596         More generally, don't assume that 64-bit signed int is available
47597         if unsigned int is, and vice versa.
47598         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
47599         unsigned symbols, not on their signed counterparts.
47600         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
47601         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
47602         (UINT64_C, UINTMAX_C):
47603         Likewise.
47604         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
47605         unsigned counterparts.
47606         (Have_long_long, Unsigned): New macros.
47607         (Int): Renamed from INT.
47608         (strtoimax): Use the new macros.
47609         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
47610         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
47611         * modules/inttypes (inttypes.h): Substitute
47612         HAVE_UNSIGNED_LONG_LONG_INT.
47613         * modules/stdint (stdint.h): Likewise.
47614         (Files): Add m4/ulonglong.m4.
47615
47616 2006-10-10  Bruno Haible  <bruno@clisp.org>
47617
47618         Fix a gcc -Wshadow warning.
47619         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
47620         to 'bucket'.
47621         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
47622         gl_linked_indexof_from_to): Likewise.
47623         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
47624         Likewise.
47625         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
47626         Likewise.
47627         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
47628         Reported by Eric Blake.
47629
47630 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
47631
47632         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
47633         for NetBSD.  Problem reported by Bruno Haible.
47634
47635 2006-10-09  Jim Meyering  <jim@meyering.net>
47636
47637         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
47638         Patch from Bruno Haible.
47639
47640 2006-10-09  Jim Meyering  <jim@meyering.net>
47641
47642         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
47643         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
47644         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
47645
47646 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
47647
47648         Don't include <config.h> twice; this doesn't work in some cases,
47649         e.g., when config.h has "#define intmax_t long long int" and
47650         we include <config.h>, <inttypes.h>, <config.h> in that order.
47651         Problem reported by Matthew Woehlke in:
47652         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
47653         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
47654         * lib/fts-cycle.c: Don't include config.h.
47655         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
47656         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
47657         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
47658         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
47659         inttypes.h.
47660         * lib/xstrtoumax.c: Likewise.
47661         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
47662         __strtol and the like, so that this module is more like its siblings.
47663         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
47664         Remove; no longer needed now that we assume gnulib inttypes.h.
47665
47666 2006-10-08  Bruno Haible  <bruno@clisp.org>
47667
47668         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
47669         option.
47670
47671 2006-10-07  Jim Meyering  <jim@meyering.net>
47672
47673         * modules/inttypes (inttypes.h): Revert what seems to have been
47674         an inadvertent part of today's change: use "|", not "/" in the
47675         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
47676
47677 2006-10-07  Bruno Haible  <bruno@clisp.org>
47678
47679         * modules/sublist: New file.
47680
47681 2006-10-07  Bruno Haible  <bruno@clisp.org>
47682
47683         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
47684         * modules/argz (argz.h): Likewise.
47685         * modules/arpa_inet (arpa/inet.h): Likewise.
47686         * modules/byteswap (byteswap.h): Likewise.
47687         * modules/configmake (configmake.h): Likewise.
47688         * modules/fcntl (fcntl.h): Likewise.
47689         * modules/fnmatch (fnmatch.h): Likewise.
47690         * modules/getopt (getopt.h): Likewise.
47691         * modules/glob (glob.h): Likewise.
47692         * modules/inttypes (inttypes.h): Likewise.
47693         * modules/netinet_in (netinet/in.h): Likewise.
47694         * modules/poll (poll.h): Likewise.
47695         * modules/stdbool (stdbool.h): Likewise.
47696         * modules/stdint (stdint.h): Likewise.
47697         * modules/sys_select (sys/select.h): Likewise.
47698         * modules/sys_socket (sys/socket.h): Likewise.
47699         * modules/sys_stat (sys/stat.h): Likewise.
47700         * modules/sysexits (sysexits.h): Likewise.
47701         * modules/unistd (unistd.h): Likewise.
47702         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47703         Add a "DO NOT EDIT" comment to the generated file.
47704         (func_import): Likewise for gnulib-comp.m4.
47705
47706 2006-10-07  Bruno Haible  <bruno@clisp.org>
47707
47708         * lib/gl_sublist.h: New file.
47709         * lib/gl_sublist.c: New file.
47710
47711 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
47712
47713         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
47714         name (relative to the original working directory) and the file
47715         name component (relative to the temporary working directory).  All
47716         callers changed.
47717         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
47718         * lib/mkdir-p.c (make_dir_parents): Likewise.
47719         * lib/mkdir-p.h (make_dir_parents): Likewise.
47720
47721 2006-10-06  Eric Blake  <ebb9@byu.net>
47722
47723         Define several macros for use by the clean-temp module.
47724         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
47725         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
47726         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
47727
47728         * lib/clean-temp.h (close_stream_temp): New declaration.
47729         * lib/clean-temp.c (includes): Pull in headers according to what
47730         other modules are in use.
47731         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
47732
47733 2006-10-06  Bruno Haible  <bruno@clisp.org>
47734
47735         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
47736         instead of fopen, fwriteerror.
47737
47738 2006-10-06  Bruno Haible  <bruno@clisp.org>
47739
47740         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
47741         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
47742         int.
47743         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
47744         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
47745         Return an error indicator.
47746         Suggested by Eric Blake.
47747
47748 2006-10-06  Bruno Haible  <bruno@clisp.org>
47749
47750         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
47751         Reported by Eric Blake.
47752
47753 2006-10-06  Bruno Haible  <bruno@clisp.org>
47754
47755         * modules/closeout (Description): Mention stderr too.
47756
47757 2006-10-06  Bruno Haible  <bruno@clisp.org>
47758         and Paul Eggert  <eggert@cs.ucla.edu>
47759
47760         * lib/closeout.c (close_stdout): Also close stderr.
47761         * lib/closeout.h: Update comment.
47762
47763 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
47764
47765         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
47766         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
47767         * lib/dirchownmod.c: Include lchown.h.
47768         * lib/lchown.c: Don't include files that lchown.h now includes.
47769         Don't declare chown, since lchown.h now does that.
47770         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
47771         (lchown): Define to rpl_chown if lchown is declared but
47772         does not exist.  Declare using a prototype if lchown is not
47773         declared.  Add a copyright notice.
47774         * lib/mkstemp.h: Include <unistd.h>.
47775         * lib/openat.c: Include lchown.h.
47776
47777         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
47778         we now test for that separately.
47779         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
47780         rather than O_NOFOLLOW, when testing whether it's possible to
47781         avoid a race condition reliably.
47782         * lib/savewd.c (savewd_chdir): Likewise.
47783
47784         Remove macros that are no longer needed now that stdint.h is
47785         reliable.
47786         * lib/fsusage.c (UINTMAX_MAX): Remove.
47787         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
47788         * lib/utimecmp.c (SIZE_MAX): Remove.
47789
47790         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
47791
47792         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
47793         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
47794         O_NOATIME works.
47795
47796 2006-10-05  Bruno Haible  <bruno@clisp.org>
47797
47798         * lib/gl_list.h (gl_sortedlist_search_from_to,
47799         gl_sortedlist_indexof_from_to): New declarations.
47800         (gl_list_implementation): New fields sortedlist_search_from_to,
47801         sortedlist_indexof_from_to.
47802         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
47803         inline functions.
47804         * lib/gl_list.c (gl_sortedlist_search_from_to,
47805         gl_sortedlist_indexof_from_to): New functions.
47806         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
47807         function.
47808         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
47809         (gl_array_sortedlist_search_from_to): New function.
47810         (gl_array_list_implementation): Update.
47811         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
47812         function.
47813         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
47814         (gl_carray_sortedlist_search_from_to): New function.
47815         (gl_carray_list_implementation): Update.
47816         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
47817         gl_linked_sortedlist_indexof_from_to): New functions.
47818         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
47819         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
47820         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
47821         gl_tree_sortedlist_indexof_from_to): New functions.
47822         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
47823         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
47824         Update.
47825         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
47826         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
47827         Update.
47828
47829 2006-10-05  Bruno Haible  <bruno@clisp.org>
47830
47831         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
47832         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
47833         (struct gl_list_implementation): Add fields search_from_to,
47834         indexof_from_to. Remove fields search, indexof.
47835         (gl_list_search): Use the search_from_to method.
47836         (gl_list_search_from, gl_list_search_from_to): New functions.
47837         (gl_list_indexof): Use the indexof_from_to method.
47838         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
47839         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
47840         (gl_list_search_from, gl_list_search_from_to): New functions.
47841         (gl_list_indexof): Use the indexof_from_to method.
47842         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
47843         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
47844         gl_array_indexof. Add start_index, end_index arguments.
47845         (gl_array_search_from_to): Renamed from gl_array_search. Add
47846         start_index, end_index arguments.
47847         (gl_array_remove, gl_array_list_implementation): Update.
47848         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
47849         gl_carray_indexof. Add start_index, end_index arguments.
47850         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
47851         start_index, end_index arguments.
47852         (gl_carray_remove, gl_carray_list_implementation): Update.
47853         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
47854         gl_linked_search. Add start_index, end_index arguments.
47855         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
47856         start_index, end_index arguments.
47857         (gl_linked_remove): Update.
47858         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
47859         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
47860         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
47861         field to 'size_t'.
47862         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
47863         gl_tree_search. Add start_index, end_index arguments.
47864         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
47865         start_index, end_index arguments.
47866         (gl_tree_remove): Update.
47867         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
47868         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
47869         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
47870         function.
47871         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
47872         gl_tree_search. Add start_index, end_index arguments.
47873         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
47874         start_index, end_index arguments.
47875         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
47876         Update.
47877         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
47878
47879 2006-10-05  Bruno Haible  <bruno@clisp.org>
47880
47881         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
47882
47883         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
47884         fwriteerror_temp): New declarations.
47885         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
47886         (descriptors): New variable.
47887         (cleanup): First, close the descriptors.
47888         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
47889         fclose_temp, fwriteerror_temp): New functions.
47890
47891 2006-10-04  Jim Meyering  <jim@meyering.net>
47892
47893         * lib/fts.c (fts_open): Tiny comment change.
47894
47895 2006-10-04  Bruno Haible  <bruno@clisp.org>
47896
47897         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
47898         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
47899         gl_LOCK_BODY.
47900         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
47901         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
47902         gl_LOCK_EARLY_BODY.
47903         (gl_LOCK): Require gl_LOCK_BODY.
47904
47905 2006-10-04  Bruno Haible  <bruno@clisp.org>
47906
47907         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
47908         (gl_oset_search_atleast): New declaration.
47909         (struct gl_oset_implementation): Add field 'search_atleast'.
47910         (gl_oset_search_atleast): New inline function.
47911         * lib/gl_oset.c (gl_oset_search_atleast): New function.
47912         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
47913         (gl_array_oset_implementation): Update.
47914         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
47915         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
47916         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
47917
47918 2006-10-04  Bruno Haible  <bruno@clisp.org>
47919
47920         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
47921
47922 2006-10-03  Bruno Haible  <bruno@clisp.org>
47923
47924         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
47925         from gl_avltreehash_list_implementation.
47926
47927 2006-10-03  Bruno Haible  <bruno@clisp.org>
47928
47929         * lib/gl_oset.c (gl_oset_add): Fix return type.
47930
47931 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
47932
47933         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
47934
47935 2006-10-02  Eric Blake  <ebb9@byu.net>
47936
47937         * modules/strnlen (Depends-on): Add extensions.
47938
47939 2006-10-02  Eric Blake  <ebb9@byu.net>
47940
47941         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
47942         definition in 2.60+.
47943
47944 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
47945
47946         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
47947         checks.
47948
47949 2006-10-02  Bruno Haible  <bruno@clisp.org>
47950
47951         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
47952         to the AUTOMAKE_OPTIONS.
47953         Reported by Jim Meyering.
47954
47955 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
47956
47957         Work around bug in Solaris 10 /proc file system:
47958         /proc/self/fd/NNN/.. isn't the parent directory of
47959         the directory whose file descriptor is NNN.  This needs to
47960         be worked around at run time, not compile time, since a
47961         program might be built on Solaris 8, where things work, and
47962         run on Solaris 10.
47963         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
47964         to use the following interface instead:
47965         (OPENAT_BUFFER_SIZE): New macro.
47966         (openat_proc_name): New function.
47967         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
47968         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
47969         Likewise.
47970         * lib/openat-proc.c: New file.
47971         * modules/openat (Files): Add lib/openat-proc.c.
47972         (Depends-on): Add same-inode, stdbool.
47973         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
47974
47975 2006-09-29  Bruno Haible  <bruno@clisp.org>
47976
47977         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
47978         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
47979         argument. Set stdout_closed before testing for ferror, not after.
47980         (fwriteerror, fwriteerror_no_ebadf): New functions.
47981
47982 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47983
47984         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
47985
47986 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
47987
47988         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
47989         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
47990
47991 2006-09-28  Jim Meyering  <jim@meyering.net>
47992
47993         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
47994         Include <unistd.h>.
47995
47996 2006-09-28  Bruno Haible  <bruno@clisp.org>
47997
47998         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
47999         * modules/linkedhash-list (Depends-on): Likewise.
48000         * modules/rbtreehash-list (Depends-on): Likewise.
48001
48002 2006-09-28  Bruno Haible  <bruno@clisp.org>
48003
48004         * lib/strndup.h: Simplify the redefinition of strndup.
48005         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
48006         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
48007
48008 2006-09-28  Bruno Haible  <bruno@clisp.org>
48009
48010         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
48011         * lib/gl_linkedhash_list.c: Likewise.
48012         * lib/gl_rbtreehash_list.c: Likewise.
48013
48014 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
48015
48016         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
48017         getaddrinfo.
48018
48019         * lib/__fpending.h: Don't include <stdio_ext.h> unless
48020         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
48021         it causes <stdio_ext.h> to cause a compile-time error.
48022         Problem reported by Nelson H. F. Beebe.
48023         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
48024         of HAVE_DECL___PENDING.
48025
48026         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
48027         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
48028         declaration.
48029
48030 2006-09-27  Jim Meyering  <jim@meyering.net>
48031
48032         This file could end up with a definition for a function
48033         named __strndup, rather than rpl_strndup on a system with
48034         incomplete weak_alias support.
48035         * lib/strndup.c (strndup): Rename from __strndup.
48036         Remove #defines that used to map __strndup to strndup.
48037         Don't use K&R prototypes.
48038         Remove LIBC-related code, since this file is not sync'd with glibc.
48039         * lib/strndup.h: Revamp, accordingly.
48040         * m4/strndup.m4: Modernize.
48041
48042 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
48043
48044         * modules/savewd (Depends-on): Add 'raise'.
48045         * lib/savewd.c: Include <signal.h>, for 'raise'.
48046
48047 2006-09-26  Jim Meyering  <jim@meyering.net>
48048
48049         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
48050         when we detect Darwin 8.7.0's acl_get_file bug.
48051         Rearrange to perform the new (below) run-test while $LIBS
48052         contains any acl-related library.  Set USE_ACL at the end.
48053         (gl_ACL_GET_FILE): New function.
48054
48055 2006-09-26  Eric Blake  <ebb9@byu.net>
48056
48057         * lib/verror.c: Include <config.h> unconditionally.
48058
48059 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
48060
48061         * modules/clock-time (Maintainer): Add self.
48062         * modules/getlogin_r (Depends-on): Add extensions.
48063
48064 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48065
48066         * modules/clock-time: New module.
48067         * modules/nanosleep (Depends-on): Add clock-time.
48068         * modules/gethrxtime (Depends-on): Likewise.
48069         * modules/gettime (Depends-on): Likewise.
48070         * modules/settime (Depends-on): Likewise.
48071
48072         * modules/fts-lgpl: Depend on openat.
48073         * modules/mkancesdirs: Depend on savewd.
48074         * modules/mkdir-p: Likewise.
48075
48076 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48077
48078         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
48079
48080         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
48081         `gl_have_arbitrary_file_name_length_limit' to
48082         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
48083         actually works between configure runs.
48084
48085 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48086             Bruno Haible  <bruno@clisp.org>
48087
48088         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
48089
48090 2006-09-25  Jim Meyering  <jim@meyering.net>
48091
48092         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
48093         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
48094
48095 2006-09-25  Eric Blake  <ebb9@byu.net>
48096
48097         * gnulib-tool (func_import, func_create_testdir): Fix typos in
48098         exec's in 2006-09-18 patch when shuffling fds.
48099
48100 2006-09-25  Bruno Haible  <bruno@clisp.org>
48101
48102         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
48103         Reported by Jim Meyering.
48104
48105 2006-09-24  Jim Meyering  <jim@meyering.net>
48106
48107         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
48108         compare a pointer against a literal "0".  That caused failures with
48109         at least HP-UX's hpcc.
48110
48111 2006-09-22  Simon Josefsson  <jas@extundo.com>
48112
48113         * modules/gc-sha1:
48114         * modules/gc-md4:
48115         * modules/gc-hmac-sha1:
48116         * modules/gc-hmac-md5:
48117         * modules/gc-des:
48118         * modules/gc-arcfour: Distribute more files.
48119
48120 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48121
48122         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
48123         (gl_linked_iterator_from_to): Initialize struct completely.
48124         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
48125         (gl_tree_iterator_from_to): Likewise
48126         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
48127         * lib/gl_array_list.c [lint] (gl_array_iterator)
48128         (gl_array_iterator_from_to): Likewise.
48129         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
48130         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
48131         (gl_carray_iterator_from_to): Likewise.
48132
48133         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
48134         * lib/md4.c (md4_process_block): Remove unused variable.
48135         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
48136         parentheses for clarity.
48137
48138 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48139
48140         * modules/bison-i18n (Depends-on): Add gettext.
48141
48142 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48143
48144         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
48145         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
48146         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
48147         also add missing comma that caused broken test.
48148         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
48149         stdlib.h, for `abort'.
48150         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
48151         variables.
48152         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
48153         include unistd.h if present, for `rmdir'.
48154         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
48155         variables.
48156         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
48157         in the process include standard headers for prototypes.
48158         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
48159         gets declared on GNU/Linux.
48160         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
48161         unistd.h, for `rmdir'.
48162         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
48163
48164         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
48165         always true.
48166         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
48167
48168         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
48169
48170 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48171
48172         * gnulib-tool (func_version): Create output all at once.  This
48173         may help avoid triggering unnecessary SIGPIPEs, and at any
48174         rate it doesn't hurt.
48175
48176 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48177             Bruno Haible  <bruno@clisp.org>
48178
48179         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
48180         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
48181         * m4/signed.m4 (bh_C_SIGNED): Likewise.
48182
48183         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
48184         (gl_FUNC_VASPRINTF): Invoke it.
48185
48186 2006-09-22  Bruno Haible  <bruno@clisp.org>
48187
48188         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
48189         getloadavg.c as first argument.
48190
48191 2006-09-22  Bruno Haible  <bruno@clisp.org>
48192
48193         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
48194         at the beginning of the gl_INIT macro.
48195         * modules/getloadavg (configure.ac): Pass $gl_source_base to
48196         gl_GETLOADAVG.
48197
48198 2006-09-22  Bruno Haible  <bruno@clisp.org>
48199
48200         * gnulib-tool (func_create_megatestdir): Don't include the config-h
48201         module.
48202         Suggested by Ralf Wildenhues.
48203
48204 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
48205
48206         Import this patch from libc:
48207
48208         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
48209
48210         * lib/regex_internal.c (re_string_reconstruct): Handle
48211         offset < pstr->valid_raw_len && pstr->offsets_needed case.
48212         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
48213         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
48214         re_string_context_at.
48215
48216         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
48217         now requires it.
48218         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
48219         gl_REGEX now does it for us.
48220         (gl_REGEX): Add test taken from
48221         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
48222
48223         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
48224         Check that large offsets work.  Modernize Autoconf usages.
48225         Prefer "yes" to mean a good thing rather than a bad.
48226         Don't put "#define mkstemp" in config.h, as this might interfere
48227         with standard system headers that "#define mkstemp mkstemp64".
48228
48229         * modules/mkstemp (Depends-on): Add extensions, so that
48230         mkstemp is visible on some platforms.
48231         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
48232         (Include): Change to "mkstemp.h" from <stdlib.h>.
48233         (Files): Add mkstemp.h.
48234
48235         * lib/mkstemp.h: New file, since some standard headers
48236         #define mkstemp.
48237         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
48238         Include "mkstemp.h".
48239         Make the _LIBC code resemble glibc original more,
48240         e.g., use K&R style.
48241         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
48242         (mkstemp): Remove, since mkstemp.h does this for us.
48243         * lib/stdlib--.h: Include mkstemp.h.
48244
48245         Import this patch from libc:
48246
48247         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
48248
48249         * lib/tempname.c (__gen_tempname): Change attempts_min
48250         into a macro.  Use preprocessor to decide how to initialize
48251         attempts [Coverity CID 67].
48252
48253 2006-09-20  Bruno Haible  <bruno@clisp.org>
48254
48255         * lib/mkdtemp.c: Import from libc.
48256         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
48257                 * sysdeps/posix/tempname.c (__gen_tempname): Change
48258                 attempts_min into a macro.  Use preprocessor to decide how to
48259                 initialize attempts [Coverity CID 67].
48260         2001-11-27  Paul Eggert  <eggert@twinsun.com>
48261                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
48262                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
48263
48264 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48265
48266         * gnulib-tool (func_exit): New function, to allow to pass the
48267         exit status portably through the trap.  Use everywhere.
48268         (--help, --version): Signal a write error.
48269         (trap): catch SIGPIPE, for write errors.
48270         Exit at the end of the trap, with the correct exit status.
48271
48272 2006-09-19  Karl Berry  <karl@gnu.org>
48273
48274         * doc/gnulib.texi: note about the license texinfo files.
48275
48276 2006-09-19  Eric Blake  <ebb9@byu.net>
48277
48278         * gnulib-tool: Avoid space-tab.
48279
48280 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
48281
48282         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
48283         that prevented coreutils 6.1 from building.  Problem reported
48284         by Petter Reinholdtsen.
48285
48286 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
48287
48288         * gnulib-tool (avoidlist): Fix typo that broke options like
48289         --avoid=lock that are used by coreutils bootstrap.
48290
48291 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
48292
48293         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
48294         more systematically.
48295
48296 2006-09-18  Jim Meyering  <jim@meyering.net>
48297
48298         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
48299
48300 2006-09-18  Bruno Haible  <bruno@clisp.org>
48301
48302         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
48303
48304 2006-09-18  Bruno Haible  <bruno@clisp.org>
48305
48306         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
48307         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
48308         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
48309         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
48310         * m4/gettext.m4: Require autoconf >= 2.52.
48311         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
48312         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
48313         of gl_cv_header_inttypes_h.
48314
48315 2006-09-18  Bruno Haible  <bruno@clisp.org>
48316
48317         * lib/javaversion.c: Include configmake.h.
48318
48319 2006-09-18  Bruno Haible  <bruno@clisp.org>
48320
48321         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
48322         avoid that the while loops be executed in a subshell.
48323
48324 2006-09-18  Bruno Haible  <bruno@clisp.org>
48325
48326         * MODULES.html.sh (func_module): Break long lines.
48327         Suggested by Bruce Korb <bkorb@gnu.org>.
48328
48329 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48330
48331         Speed up by a factor of 1.12.
48332         * gnulib-tool (nl): New variable.
48333         (func_import): Rewrite include directive extraction to only read each
48334         directive once.
48335
48336 2006-09-17  Bruno Haible  <bruno@clisp.org>
48337
48338         * modules/javaversion (Makefile.am): Remove DEFS setting.
48339         (Depends-on): Add configmake, for PKGDATADIR definition.
48340
48341 2006-09-17  Bruno Haible  <bruno@clisp.org>
48342
48343         * gnulib-tool (func_create_testdir): Rewrite all files at once.
48344
48345 2006-09-17  Bruno Haible  <bruno@clisp.org>
48346
48347         * gnulib-tool (func_append): New function, stolen from libtool.m4.
48348         (func_modules_transitive_closure, func_modules_add_dummy,
48349         func_modules_to_filelist, func_import, func_create_testdir,
48350         func_create_megatestdir, ...): Use it wherever possible.
48351         Suggested by Ralf Wildenhues.
48352
48353 2006-09-16  Karl Berry  <karl@gnu.org>
48354
48355         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
48356         to avoid sectioning errors.
48357         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
48358         [ifinfo]: blank line after @center-ed titles.
48359         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
48360         Spell FSF address consistently with others.
48361         (These changes approved by rms.)
48362
48363 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48364
48365         Speed up by a factor of 1.61.
48366         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
48367         already checked module names again.
48368
48369 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48370
48371         Speed up by a factor of 1.13.
48372         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
48373         for new_files, and the input to func_add_or_update.
48374
48375 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48376
48377         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
48378         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
48379
48380 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
48381
48382         * modules/mkancesdirs (Depends-on): Add fcntl.
48383         * modules/savewd: New file.
48384         * MODULES.html.sh (File system functions): Add savewd.
48385
48386         * modules/configmake (Makefile.am): Add support for the
48387         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
48388
48389 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
48390
48391         * m4/savewd.m4: New file.
48392
48393 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
48394
48395         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
48396         (dirchownmod): New arg FD.  All callers changed.
48397         Use FD rather than opening the directory ourself, as opening is
48398         now the caller's responsibility.
48399         * lib/dirchownmod.h: Likewise.
48400         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
48401         hosts that require <sys/types.h> before <sys/stat.h>.  Include
48402         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
48403         (test_dir): Remove.
48404         (mkancesdirs): Return length of prefix of FILE that has already
48405         been made, or -2 if there is a child doing the work.  Redo
48406         algorithm so that it is O(N) rather than O(N**2).  Optimize away
48407         ".", and treat ".." specially since it might stray back into
48408         already-created areas.  Use a subprocess if necessary.  New arg
48409         WD; all users changed.  MAKE_DIR function should now return 1
48410         if it creates a directory that is not readable.  Return -2 if
48411         a child process is spun off.
48412         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
48413         Adjust signature to match code.
48414         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
48415         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
48416         all users changed.
48417         * lib/savewd.c, lib/savewd.h: New files.
48418
48419 2006-09-15  Jim Meyering  <jim@meyering.net>
48420
48421         * modules/rename-dest-slash: New module.
48422         * MODULES.html.sh (posix_compat): Add it here.
48423
48424         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
48425
48426 2006-09-15  Jim Meyering  <jim@meyering.net>
48427
48428         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
48429         file.
48430
48431         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
48432
48433 2006-09-15  Jim Meyering  <jim@meyering.net>
48434
48435         * lib/rename-dest-slash.c (has_trailing_slash): Use
48436         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
48437         (rpl_rename_dest_slash): Perform the cheaper trailing slash
48438         test before testing whether SRC is a directory.
48439         Suggestions from Bruno Haible.
48440
48441         Avoid a warning about an unused variable.
48442         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
48443         into the #ifdef block where it's used.
48444
48445         * lib/rename-dest-slash.c: New file.
48446
48447 2006-09-14  Bruno Haible  <bruno@clisp.org>
48448
48449         * lib/allocsa.c: Include <config.h> unconditionally.
48450         * lib/asnprintf.c: Likewise.
48451         * lib/asprintf.c: Likewise.
48452         * lib/c-strcasecmp.c: Likewise.
48453         * lib/c-strcasestr.c: Likewise.
48454         * lib/c-strncasecmp.c: Likewise.
48455         * lib/c-strstr.c: Likewise.
48456         * lib/classpath.c: Likewise.
48457         * lib/clean-temp.c: Likewise.
48458         * lib/concatpath.c: Likewise.
48459         * lib/copy-file.c: Likewise.
48460         * lib/csharpcomp.c: Likewise.
48461         * lib/csharpexec.c: Likewise.
48462         * lib/execute.c: Likewise.
48463         * lib/fatal-signal.c: Likewise.
48464         * lib/findprog.c: Likewise.
48465         * lib/fwriteerror.c: Likewise.
48466         * lib/gl_array_list.c: Likewise.
48467         * lib/gl_array_oset.c: Likewise.
48468         * lib/gl_avltree_list.c: Likewise.
48469         * lib/gl_avltree_oset.c: Likewise.
48470         * lib/gl_avltreehash_list.c: Likewise.
48471         * lib/gl_carray_list.c: Likewise.
48472         * lib/gl_linked_list.c: Likewise.
48473         * lib/gl_linkedhash_list.c: Likewise.
48474         * lib/gl_list.c: Likewise.
48475         * lib/gl_oset.c: Likewise.
48476         * lib/gl_rbtree_list.c: Likewise.
48477         * lib/gl_rbtree_oset.c: Likewise.
48478         * lib/gl_rbtreehash_list.c: Likewise.
48479         * lib/imaxabs.c: Likewise.
48480         * lib/imaxdiv.c: Likewise.
48481         * lib/javacomp.c: Likewise.
48482         * lib/javaexec.c: Likewise.
48483         * lib/javaversion.c: Likewise.
48484         * lib/linebreak.c: Likewise.
48485         * lib/localcharset.c: Likewise.
48486         * lib/lock.c: Likewise.
48487         * lib/mbchar.c: Likewise.
48488         * lib/mbswidth.c: Likewise.
48489         * lib/mkdtemp.c: Likewise.
48490         * lib/pipe.c: Likewise.
48491         * lib/printf-args.c: Likewise.
48492         * lib/printf-parse.c: Likewise.
48493         * lib/progname.c: Likewise.
48494         * lib/progreloc.c: Likewise.
48495         * lib/readlink.c: Likewise.
48496         * lib/sh-quote.c: Likewise.
48497         * lib/stpcpy.c: Likewise.
48498         * lib/stpncpy.c: Likewise.
48499         * lib/strcasecmp.c: Likewise.
48500         * lib/strcasestr.c: Likewise.
48501         * lib/strcspn.c: Likewise.
48502         * lib/striconv.c: Likewise.
48503         * lib/strncasecmp.c: Likewise.
48504         * lib/strnlen1.c: Likewise.
48505         * lib/strstr.c: Likewise.
48506         * lib/strtok_r.c: Likewise.
48507         * lib/tls.c: Likewise.
48508         * lib/tmpdir.c: Likewise.
48509         * lib/unicodeio.c: Likewise.
48510         * lib/unsetenv.c: Likewise.
48511         * lib/vasnprintf.c: Likewise.
48512         * lib/vasprintf.c: Likewise.
48513         * lib/wait-process.c: Likewise.
48514         * lib/xallocsa.c: Likewise.
48515         * lib/xsetenv.c: Likewise.
48516         * lib/xstriconv.c: Likewise.
48517
48518 2006-09-13  Simon Josefsson  <jas@extundo.com>
48519
48520         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
48521         that internally, suggested by Ralf Wildenhues
48522         <Ralf.Wildenhues@gmx.de>.
48523
48524 2006-09-13  Simon Josefsson  <jas@extundo.com>
48525
48526         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
48527         @LIBOBJS@.
48528         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48529
48530 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
48531
48532         * lib/_fpending.c: Include <config.h> unconditionally, since we no
48533         longer worry about uses that don't define HAVE_CONFIG_H.
48534         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
48535         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
48536         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
48537         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
48538         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
48539         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
48540         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
48541         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
48542         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
48543         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
48544         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
48545         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
48546         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
48547         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
48548         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
48549         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
48550         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
48551         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
48552         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
48553         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
48554         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
48555         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
48556         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
48557         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
48558         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
48559         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
48560         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
48561         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
48562         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
48563         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
48564         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
48565         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
48566         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
48567         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
48568         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
48569         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
48570         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
48571         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
48572         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
48573         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
48574         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
48575         Likewise.
48576
48577 2006-09-13  Eric Blake  <ebb9@byu.net>
48578
48579         * lib/getopt.c: Fix typo in last commit.
48580
48581 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48582
48583         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
48584         dgettext.
48585
48586 2006-09-12  Jim Meyering  <jim@meyering.net>
48587
48588         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
48589         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
48590         Reported by Nelson H. F. Beebe.
48591
48592 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48593
48594         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
48595         program_invocation_name and program_invocation_short_name are
48596         initialized.
48597         * lib/argp-namefrob.h: Move declarations of program_invocation_name
48598         and program_invocation_short_name to argp.h, so they are visible
48599         to user programs.
48600         * lib/argp.h: Likewise
48601
48602 2006-09-10  Bruno Haible  <bruno@clisp.org>
48603
48604         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
48605         m4/inttypes_h.m4, m4/uintmax_t.m4.
48606
48607 2006-09-10  Bruno Haible  <bruno@clisp.org>
48608
48609         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
48610         gl_AC_TYPE_UINTMAX_T.
48611
48612 2006-09-10  Bruno Haible  <bruno@clisp.org>
48613
48614         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
48615
48616 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48617
48618         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
48619         convention.  Text proposed by Bruno Haible.
48620         (struct argp_option): Document the use of N_() wrappers.
48621
48622         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
48623         '\v', and translate the two parts separately, instead of feeding
48624         the whole string to gettext.  This allows to exclude
48625         '\v' from the strings visible to the translator by writing doc
48626         strings as N_("..") "\v" N_("..").
48627
48628 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
48629
48630         * config/srclist.txt: Undo latest change; the bug was fixed.
48631
48632 2006-09-09  Bruno Haible  <bruno@clisp.org>
48633
48634         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
48635         assignments if building a library without libtool.
48636         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
48637         in func_emit_lib_Makefile_am.
48638         (func_import): When building a static library libfoo.a, arrange to
48639         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
48640         (func_create_testdir): Likewise.
48641         * modules/gc (configure.ac, Makefile.am): If building statically,
48642         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
48643         * modules/iconvme (configure.ac, Makefile.am): Likewise.
48644         * modules/striconv (configure.ac, Makefile.am): Likewise.
48645         Based on a suggestion by Ralf Wildenhues.
48646
48647 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48648
48649         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
48650         Check for unistd.h too, since Autoconf doesn't assume POSIX.
48651         Also:
48652
48653         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48654         Add year_2050_test to catch glibc bug 2821
48655         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
48656
48657         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48658         Prefer #ifdef to #if.
48659
48660         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
48661         Return from 'main' instead of calling 'exit'.
48662
48663 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48664
48665         * lib/mktime.c (guess_time_tm): Fix bug where mktime
48666         returned the maximum time_t value rather than (time_t) -1.
48667         Problem originally reported by William Bardwell
48668         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
48669
48670         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
48671         Moved to here ...
48672         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
48673         ... from here.
48674
48675 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48676
48677         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
48678         2821 is fixed.
48679
48680 2006-09-08  Jim Meyering  <jim@meyering.net>
48681
48682         Don't make generated files read-only.  That would bother too many
48683         people.  However, do retain the ability to work when targets are
48684         read-only: remove the destination and temporary files before writing
48685         them (when generated via sed or echo), or by using the -f option for
48686         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
48687         * modules/alloca-opt, modules/argz, modules/arpa_inet:
48688         * modules/byteswap, modules/configmake, modules/fcntl:
48689         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
48690         * modules/localcharset, modules/netinet_in, modules/poll:
48691         * modules/stdbool, modules/stdint, modules/sys_select:
48692         * modules/sys_socket, modules/sys_stat, modules/sysexits:
48693
48694 2006-09-08  Jim Meyering  <jim@meyering.net>
48695
48696         Avoid new build failure on FreeBSD 6.0.
48697         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
48698         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
48699         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
48700
48701 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48702
48703         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
48704
48705 2006-09-07  Jim Meyering  <jim@meyering.net>
48706
48707         Fix global typo in last change: use chmod u-w, not chmod u-x.
48708         Spotted by Paul Eggert and Bruce Korb.
48709         * modules/alloca-opt, modules/argz, modules/arpa_inet:
48710         * modules/byteswap, modules/configmake, modules/fcntl:
48711         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
48712         * modules/localcharset, modules/netinet_in, modules/poll:
48713         * modules/stdbool, modules/stdint, modules/sys_select:
48714         * modules/sys_socket, modules/sys_stat, modules/sysexits:
48715
48716 2006-09-06  Jim Meyering  <jim@meyering.net>
48717
48718         Make generated files be read-only.
48719         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
48720         Ensure that each generated file is now read-only.
48721         * modules/argz: Likewise.
48722         * modules/arpa_inet: Likewise.
48723         * modules/byteswap: Likewise.
48724         * modules/configmake: Likewise.
48725         * modules/fcntl: Likewise.
48726         * modules/fnmatch: Likewise.
48727         * modules/getopt: Likewise.
48728         * modules/glob: Likewise.
48729         * modules/inttypes: Likewise.
48730         * modules/netinet_in: Likewise.
48731         * modules/poll: Likewise.
48732         * modules/stdbool: Likewise.
48733         * modules/stdint: Likewise.
48734         * modules/sys_select: Likewise.
48735         * modules/sys_socket: Likewise.
48736         * modules/sys_stat: Likewise.
48737         * modules/sysexits: Likewise.
48738         * modules/localcharset: Same as above, but continue using temporary
48739         file named "t-$@" (why different?) rather than the "$@-t" used
48740         everywhere else.
48741
48742         * modules/sysexits (Makefile.am): Replace literal occurrences
48743         of "sysexit.h" more readable, and more consistent, "$@".
48744
48745 2006-09-06  Bruno Haible  <bruno@clisp.org>
48746
48747         * modules/striconv: New file.
48748         * modules/xstriconv: New file.
48749         * MODULES.html.sh (Internationalization functions): Add striconv,
48750         xstriconv.
48751
48752 2006-09-06  Bruno Haible  <bruno@clisp.org>
48753
48754         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
48755         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
48756         not using libtool correctly.
48757
48758 2006-09-06  Bruno Haible  <bruno@clisp.org>
48759
48760         * lib/striconv.h: New file.
48761         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
48762         iconvstring.c.
48763         * lib/xstriconv.h: New file.
48764         * lib/xstriconv.c: New file.
48765
48766 2006-09-06  Bruno Haible  <bruno@clisp.org>
48767
48768         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
48769         lib_..._LDFLAGS.
48770
48771 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48772
48773         * lib/argz_.h: Sync from Libtool.
48774
48775         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
48776                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
48777
48778         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
48779
48780 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
48781
48782         * modules/trim: New file.
48783
48784 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
48785
48786         * lib/trim.h: New file.
48787         * lib/trim.c: New file.
48788
48789 2006-09-05  Bruno Haible  <bruno@clisp.org>
48790
48791         * MODULES.html.sh (String handling): Add trim.
48792
48793 2006-09-04  Karl Berry  <karl@gnu.org>
48794
48795         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
48796         until next release.
48797
48798 2006-09-03  Bruno Haible  <bruno@clisp.org>
48799
48800         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
48801         correctly.
48802
48803 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48804
48805         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
48806         not gl_GETLOADAVG.  Omit unneeded semicolons.
48807         Problems reported by Ralf Wildenhues in
48808         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
48809         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
48810         at the end, which is the usual gnulib style.
48811
48812         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
48813         of doing all the work ourselves.
48814         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
48815         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
48816
48817 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48818
48819         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
48820         Problem reported by Ralf Wildenhues in
48821         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
48822
48823         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
48824         HAVE_STRUCT_STATFS_F_FSTYPENAME.
48825
48826 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48827
48828         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
48829         yesterday's patch by changing test -n to test -z.
48830
48831 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48832
48833         * modules/getloadavg (Files): Add m4/getloadavg.m4.
48834         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
48835         the former is now obsolescent.
48836
48837         * modules/chdir-long (Depends-on): Add fcntl.
48838
48839 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48840
48841         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
48842         obsolescent, and programs should use gnulib instead.
48843         * m4/getloadavg.m4: New file, with contents taken from Autoconf
48844         but with prefixes changed.
48845
48846 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48847
48848         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
48849         or stdbool.h, because they might not exist while configuring.
48850
48851         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
48852         Don't include unistd.h or limits.h; not needed, since chdir-long.h
48853         does that for us.
48854         (O_DIRECTORY): Remove.
48855
48856 2006-08-31  Eric Blake  <ebb9@byu.net>
48857
48858         * gnulib-tool: Don't let emacs change spaces to TAB.
48859
48860 2006-08-31  Bruno Haible  <bruno@clisp.org>
48861
48862         * gnulib-tool: When calling func_import more than once, do it in a
48863         subshell.
48864         Reported by Eric Blake <ebb9@byu.net>.
48865
48866 2006-08-31  Bruno Haible  <bruno@clisp.org>
48867
48868         * gnulib-tool (nl): Remove variable.
48869         (sed_transform_lib_file): Use more robust test for config-h module.
48870         (func_import): Fix typo in 2006-08-25 patch.
48871
48872 2006-08-31  Bruno Haible  <bruno@clisp.org>
48873
48874         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
48875         specified, augment Makefile.am variables instead of assigning them.
48876
48877 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48878
48879         Work around a bug in both the Linux and SunOS 64-bit kernels:
48880         nanosleep mishandles sleeps for longer than 2**31 seconds.
48881         Problem reported by Frank v Waveren in
48882         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
48883         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
48884         Check for nanosleep bug.
48885         (LIB_NANOSLEEP): Append clock_gettime library if needed.
48886
48887 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48888
48889         Work around a bug in both the Linux and SunOS 64-bit kernels:
48890         nanosleep mishandles sleeps for longer than 2**31 seconds.
48891         Problem reported by Frank v Waveren in
48892         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
48893         * lib/nanosleep.c (BILLION): New constant.
48894         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
48895         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
48896         implementation.
48897
48898 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48899
48900         * modules/nanosleep (Depends-on): Add gettime.
48901
48902 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48903         and Simon Josefsson  <jas@extundo.com>
48904         and Oskar Liljeblad  <oskar@osk.mine.nu>
48905
48906         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
48907         * gnulib-tool (func_import): New license type 'unmodifiable license
48908         text'.
48909         * modules/fdl: Use it.  Longer description.
48910         * module/gpl, module/lgpl: New files.
48911
48912 2006-08-30  Jim Meyering  <jim@meyering.net>
48913
48914         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
48915         shadowing the parameter.
48916
48917 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48918
48919         Sync from Libtool:
48920
48921         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48922
48923         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
48924         sharing with gnulib.  Report by Eric Blake.
48925
48926 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
48927
48928         * modules/isapipe: New file.
48929         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
48930
48931 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
48932
48933         * modules/configmake (Makefile.am): Add a comment, and omit
48934         the CONFIGMAKE_ prefix from generated macro names.  Suggested
48935         by Bruno Haible.
48936
48937 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
48938
48939         * m4/isapipe.m4: New file.
48940
48941 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
48942
48943         * lib/isapipe.c, lib/isapipe.h: New files.
48944
48945 2006-08-29  Jim Meyering  <jim@meyering.net>
48946
48947         * modules/configmake (Makefile.am): Make configmake.h depend on
48948         Makefile.  Otherwise, a stale configmake.h could hang around.
48949
48950 2006-08-29  Eric Blake  <ebb9@byu.net>
48951
48952         * lib/error.c (error_at_line, print_errno_message): Match libc, after
48953         resolution of upstream bug 3044.
48954
48955 2006-08-29  Bruno Haible  <bruno@clisp.org>
48956
48957         * modules/localcharset (Depends-on): Add configmake.
48958         (Makefile.am): Remove setting of LIBDIR through DEFS.
48959
48960 2006-08-29  Bruno Haible  <bruno@clisp.org>
48961
48962         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
48963         defined.
48964
48965 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
48966
48967         * modules/fcntl: New file.
48968         * modules/chdir-safer (Depends-on): Add fcntl.
48969         * modules/fts: Likewise.
48970         * modules/mkdir-p: Likewise.
48971
48972         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
48973         This undoes the most recent change, since we're now addressing the
48974         problem in a different way.
48975
48976         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
48977         into output, since the output might be called Makefile.am even
48978         if $makefile_name is something different.
48979         (func_import): Use $makefile_am rather than
48980         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
48981         empty.
48982
48983         * modules/inttypes (Files): Add m4/inttypes-h.m4.
48984
48985 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
48986
48987         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
48988         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
48989         recent change to stdint.m4, since we're now addressing the problem in a
48990         different way.
48991
48992 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
48993
48994         * m4/fcntl_h.m4: New file.
48995
48996 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
48997
48998         * lib/fcntl_.h: New file.
48999         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
49000         the fcntl module.
49001         * lib/dirchownmod.c: Likewise.
49002         * lib/fts.c: Likewise.
49003
49004         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
49005         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
49006         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
49007         just before including <inttypes.h>, to avoid circular inclusion.
49008
49009 2006-08-28  Jim Meyering  <jim@meyering.net>
49010
49011         * doc/visibility.texi: Actually read and correct the grammar of the
49012         sentence affected by yesterday's change.
49013
49014 2006-08-28  Eric Blake  <ebb9@byu.net>
49015
49016         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
49017         needs wrapper.
49018
49019 2006-08-28  Eric Blake  <ebb9@byu.net>
49020
49021         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
49022
49023 2006-08-28  Eric Blake  <ebb9@byu.net>
49024
49025         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
49026
49027 2006-08-28  Bruno Haible  <bruno@clisp.org>
49028
49029         * modules/c-strstr: New file, from GNU gettext.
49030         * MODULES.html.sh (String handling): Add c-strstr.
49031
49032 2006-08-28  Bruno Haible  <bruno@clisp.org>
49033
49034         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
49035         macros.
49036         Reported by Eric Blake.
49037
49038 2006-08-28  Bruno Haible  <bruno@clisp.org>
49039
49040         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
49041         (VASNPRINTF): Return a string of length > INT_MAX without failing.
49042         * lib/vasprintf.c: Include errno.h, limits.h.
49043         (EOVERFLOW): New fallback definition.
49044         (vasprintf): Test here whether the string length is > INT_MAX.
49045         * lib/vsnprintf.c: Include errno.h, limits.h.
49046         (EOVERFLOW): New fallback definition.
49047         (vsnprintf): Fix bug when generated string was too long for the buffer.
49048         Test here whether the string length is > INT_MAX.
49049
49050 2006-08-28  Bruno Haible  <bruno@clisp.org>
49051
49052         * lib/inttypes_.h (SCNX*): Remove definitions.
49053         Reported by Eric Blake.
49054
49055 2006-08-28  Bruno Haible  <bruno@clisp.org>
49056
49057         * lib/c-strstr.h: New file, from GNU gettext.
49058         * lib/c-strstr.c: New file, from GNU gettext.
49059
49060 2006-08-28  Bruno Haible  <bruno@clisp.org>
49061
49062         * gnulib-tool: Reorder some statements.
49063
49064 2006-08-28  Bruno Haible  <bruno@clisp.org>
49065
49066         * gnulib-tool: New option --makefile-name.
49067         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
49068         $makefile_name.
49069         (func_import): Write $makefile_name to the cache file, and read it from
49070         there unless explicitly specified. Use $makefile_name as file name
49071         instead of Makefile.am. Adjust the recommendations accordingly.
49072
49073 2006-08-28  Bruno Haible  <bruno@clisp.org>
49074
49075         * gnulib-tool (func_verify_module): Check against misapplying patch.
49076
49077 2006-08-28  Bruno Haible  <bruno@clisp.org>
49078
49079         * gnulib-tool (func_relativize, func_relconcat): New functions.
49080         Give an error if --local-dir is given with --update.
49081         Remove trailing slashes from $local_gnulib_dir.
49082         (func_import): Store the relativized $local_gnulib_dir in
49083         gnulib-cache.m4, and read it from there if not specified explicitly.
49084
49085 2006-08-28  Bruno Haible  <bruno@clisp.org>
49086
49087         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
49088         is the current directory. Respect also $local_gnulib_dir.
49089
49090 2006-08-28  Bruno Haible  <bruno@clisp.org>
49091             Simon Josefsson  <jas@extundo.com>
49092
49093         BeOS portability.
49094         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
49095
49096 2006-08-27  Jim Meyering  <jim@meyering.net>
49097
49098         * doc/visibility.texi: Remove duplicate word: "pointer".
49099
49100 2006-08-26  Bruno Haible  <bruno@clisp.org>
49101
49102         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
49103         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
49104         (Makefile.am): Create inttypes.h from inttypes_.h.
49105         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
49106
49107         * modules/imaxabs: New file.
49108
49109         * modules/imaxdiv: New file.
49110
49111 2006-08-26  Bruno Haible  <bruno@clisp.org>
49112
49113         * m4/inttypes.m4: New file.
49114         * m4/_inttypes_h.m4: Remove file.
49115         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
49116         PRI_MACROS_BROKEN.
49117         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
49118
49119         * m4/imaxabs.m4: New file.
49120
49121         * m4/imaxdiv.m4: New file.
49122
49123 2006-08-26  Bruno Haible  <bruno@clisp.org>
49124
49125         * lib/inttypes_.h: New file.
49126         * lib/inttypes.h: Remove file.
49127         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
49128
49129         * lib/imaxabs.c: New file.
49130
49131         * lib/imaxdiv.c: New file.
49132
49133 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49134
49135         New config-h module, so that "make" output needn't be cluttered
49136         by -DHAVE_CONFIG_H.
49137         * MODULES.html.sh (Support for building libraries and executables):
49138         Add config-h.
49139         * modules/config-h: New file.
49140         * gnulib-tool (nl, sed_transform_lib_file): New vars.
49141         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
49142         the config-h module is used.
49143
49144         New configmake module, so that "make" output needn't be cluttered
49145         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
49146         * MODULES.html.sh (Support for building libraries and executables):
49147         Add configmake.
49148         * modules/configmake: New file.
49149
49150 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49151
49152         * m4/config-h.m4: New file.
49153
49154 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49155
49156         * config/srclist.txt: Add elisp-comp.
49157
49158 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49159
49160         * MODULES.html.sh (Support for building libraries and executables):
49161         Add elisp-comp.
49162         * build-aux/elisp-comp: New file.
49163         * modules/elisp-comp: New file.
49164
49165 2006-08-24  Bruno Haible  <bruno@clisp.org>
49166
49167         * gnulib-tool (func_create_testdir): Use non-default values of
49168         sourcebase and m4base.
49169
49170 2006-08-24  Bruno Haible  <bruno@clisp.org>
49171
49172         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
49173         HTML structure.
49174
49175 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
49176
49177         * modules/openat (Depends-on): Add lchown.
49178
49179 2006-08-23  Bruno Haible  <bruno@clisp.org>
49180
49181         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
49182         of gl_LOCK_EARLY instead of gl_LOCK.
49183
49184 2006-08-23  Bruno Haible  <bruno@clisp.org>
49185
49186         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
49187         on OSF/1 to no.
49188         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
49189
49190 2006-08-23  Bruno Haible  <bruno@clisp.org>
49191
49192         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
49193         as unusable.
49194
49195         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
49196         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
49197         (gl_LOCK): New macro.
49198
49199 2006-08-22  Simon Josefsson  <jas@extundo.com>
49200
49201         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
49202         to md5 module.
49203
49204 2006-08-22  Simon Josefsson  <jas@extundo.com>
49205
49206         * MODULES.html.sh: Add "Support for maintaining and release
49207         projects".
49208
49209         * build-aux/gnupload: New file, from coreutils.
49210
49211 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
49212
49213         Avoid the need for AC_LIBSOURCES in m4 macros.
49214         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
49215         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
49216         * modules/check-version (EXTRA_DIST): Add check-version.h.
49217         * modules/crc (EXTRA_DIST): Add crc.h.
49218         * modules/des (EXTRA_DIST): Add des.h.
49219         * modules/gc (EXTRA_DIST): Add gc.h.
49220         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
49221         * modules/getline (EXTRA_DIST): Add getline.h.
49222         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
49223         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
49224         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
49225         * modules/md2 (EXTRA_DIST): Add md2.h.
49226         * modules/md4 (EXTRA_DIST): Add md4.h.
49227         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
49228         * modules/read-file (EXTRA_DIST): Add read-file.h.
49229         * modules/readline (EXTRA_DIST): Add readline.h.
49230         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
49231         rijndael-api-fst.h.
49232
49233 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
49234
49235         * m4/rijndael.m4 (gl_ARCFOUR):
49236         * m4/arctwo.m4 (gl_ARCTWO):
49237         * m4/check-version.m4 (gl_CHECK_VERSION):
49238         * m4/crc.m4 (gl_CRC):
49239         * m4/des.m4 (gl_DES):
49240         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
49241         * m4/gc.m4 (gl_GC):
49242         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
49243         * m4/getline.m4 (gl_FUNC_GETLINE):
49244         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
49245         * m4/hmac-md5.m4 (gl_HMAC_MD5):
49246         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
49247         * m4/md2.m4 (gl_MD2):
49248         * m4/md4.m4 (gl_MD4):
49249         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
49250         * m4/read-file.m4 (gl_FUNC_READ_FILE):
49251         * m4/readline.m4 (gl_FUNC_READLINE):
49252         * m4/rijndael.m4 (gl_RIJNDAEL):
49253         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
49254         to get the necessary .h files and whatnot.
49255
49256 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
49257
49258         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
49259         gnulib rather than the other way around.
49260         * config/srclistvars.sh (COREUTILS): Remove.
49261
49262 2006-08-22  Jim Meyering  <jim@meyering.net>
49263
49264         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
49265
49266         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
49267
49268 2006-08-22  Eric Blake  <ebb9@byu.net>
49269
49270         * modules/regexprops-generic: New file.
49271         * MODULES.html.sh (Support for building documentation): List it.
49272
49273 2006-08-22  Eric Blake  <ebb9@byu.net>
49274
49275         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
49276         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
49277         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
49278         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
49279
49280 2006-08-22  Bruno Haible  <bruno@clisp.org>
49281
49282         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
49283         and lib_LTLIBRARIES like the other lib_* variables.
49284
49285 2006-08-22  Bruno Haible  <bruno@clisp.org>
49286
49287         * build-aux/x-to-1.in: New file, from GNU gettext.
49288
49289 2006-08-22  Bruno Haible  <bruno@clisp.org>
49290
49291         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
49292         <utmpx.h> exists.
49293
49294 2006-08-22  Bruno Haible  <bruno@clisp.org>
49295
49296         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
49297         <utmpx.h> exists.
49298
49299 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
49300
49301         BeOS portability.
49302         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
49303         exist.
49304         Problem reported by Bruno Haible.
49305
49306 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
49307
49308         Avoid the need for AC_LIBSOURCES in m4 macros.
49309         * modules/acl (EXTRA_DIST): Add acl.h.
49310         * modules/argmatch (Files): Add m4/argmatch.m4.
49311         (configure.ac): Add gl_ARGMATCH.
49312         (EXTRA_DIST): Renamed from lib_SOURCES, for
49313         consistency with the other modules.  Remove argmatch.c.
49314         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
49315         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
49316         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
49317         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
49318         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
49319         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
49320         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
49321         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
49322         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
49323         * modules/closeout (EXTRA_DIST): Add closeout.h.
49324         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
49325         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
49326         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
49327         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
49328         dirname.h; remove basename.c and stripslash.c.
49329         * modules/exclude (EXTRA_DIST): Add exclude.h.
49330         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
49331         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
49332         * modules/file-type (EXTRA_DIST): Add file-type.h.
49333         * modules/filemode (EXTRA_DIST): Add filemode.h.
49334         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
49335         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
49336         * modules/fpending (EXTRA_DIST): Add __fpending.h.
49337         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
49338         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
49339         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
49340         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
49341         * modules/getdate (EXTRA_DIST): Add getdate.c.
49342         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
49343         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
49344         * modules/getpass (EXTRA_DIST): Add getpass.h.
49345         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
49346         * modules/group-member (EXTRA_DIST): Add group-member.h.
49347         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
49348         * modules/hash (EXTRA_DIST): Add hash.h.
49349         * modules/human (EXTRA_DIST): Add human.h.
49350         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
49351         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
49352         * modules/lchown (EXTRA_DIST): Add lchown.h.
49353         * modules/long-options (EXTRA_DIST): Add long-options.h.
49354         * modules/lstat (EXTRA_DIST): Add lstat.h.
49355         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
49356         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
49357         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
49358         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
49359         * modules/memxor (EXTRA_DIST): Add memxor.h.
49360         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
49361         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
49362         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
49363         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
49364         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
49365         * modules/physmem (EXTRA_DIST): Add physmem.h.
49366         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
49367         * modules/posixver (EXTRA_DIST): Add posixver.h.
49368         * modules/quote (EXTRA_DIST): Add quote.h.
49369         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
49370         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
49371         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
49372         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
49373         regex_internal.h regexec.c.
49374         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
49375         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
49376         * modules/same (EXTRA_DIST): Add same.h.
49377         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
49378         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
49379         * modules/savedir (EXTRA_DIST): Add savedir.h.
49380         * modules/sha1 (EXTRA_DIST): Add sha1.h.
49381         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
49382         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
49383         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
49384         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
49385         * modules/strdup (EXTRA_DIST): Add strdup.h.
49386         * modules/strftime (EXTRA_DIST): Add strftime.h.
49387         * modules/strndup (EXTRA_DIST): Add strndup.h.
49388         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
49389         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
49390         * modules/time_r (EXTRA_DIST): Add time_r.h.
49391         * modules/timespec (EXTRA_DIST): Add timespec.h.
49392         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
49393         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
49394         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
49395         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
49396         * modules/userspec (EXTRA_DIST): Add userspec.h.
49397         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
49398         * modules/utimens (EXTRA_DIST): Add utimens.h.
49399         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
49400         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
49401         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
49402         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
49403         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
49404         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
49405         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
49406         * modules/yesno (EXTRA_DIST): Add yesno.h.
49407
49408 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
49409
49410         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
49411
49412         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
49413         * m4/dev-ino.m4, same-inode.m4: Remove.
49414
49415         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
49416         * m4/acl.m4 (AC_FUNC_ACL):
49417         * m4/backupfile.m4 (gl_BACKUPFILE):
49418         * m4/c-strtod.m4 (gl_C99_STRTOLD):
49419         * m4/canon-host.m4 (gl_CANON_HOST):
49420         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
49421         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
49422         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
49423         * m4/cloexec.m4 (gl_CLOEXEC):
49424         * m4/close-stream.m4 (gl_CLOSE_STREAM):
49425         * m4/closeout.m4 (gl_CLOSEOUT):
49426         * m4/dirfd.m4 (gl_FUNC_DIRFD):
49427         * m4/dirname.m4 (gl_DIRNAME):
49428         * m4/exclude.m4 (gl_EXCLUDE):
49429         * m4/exitfail.m4 (gl_EXITFAIL):
49430         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
49431         * m4/file-type.m4 (gl_FILE_TYPE):
49432         * m4/filemode.m4 (gl_FILEMODE):
49433         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
49434         * m4/fpending.m4 (gl_FUNC_FPENDING):
49435         * m4/fprintftime.m4 (gl_FPRINTFTIME):
49436         * m4/fts.m4 (gl_FUNC_FTS):
49437         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
49438         * m4/getdate.m4 (gl_GETDATE):
49439         * m4/gethrxtime.m4 (gl_GETHRXTIME):
49440         * m4/getpagesize.m4 (gl_GETPAGESIZE):
49441         * m4/getpass.m4 (gl_FUNC_GETPASS):
49442         * m4/gettime.m4 (gl_GETTIME):
49443         * m4/getugroups.m4 (gl_GETUGROUPS):
49444         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
49445         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
49446         * m4/hard-locale.m4 (gl_HARD_LOCALE):
49447         * m4/hash.m4 (gl_HASH):
49448         * m4/idcache.m4 (gl_IDCACHE):
49449         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
49450         * m4/lchown.m4 (gl_FUNC_LCHOWN):
49451         * m4/long-options.m4 (gl_LONG_OPTIONS):
49452         * m4/lstat.m4 (gl_FUNC_LSTAT):
49453         * m4/md5.m4 (gl_MD5):
49454         * m4/memcasecmp.m4 (gl_MEMCASECMP):
49455         * m4/memcoll.m4 (gl_MEMCOLL):
49456         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
49457         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
49458         * m4/memxor.m4 (gl_MEMXOR):
49459         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
49460         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
49461         * m4/modechange.m4 (gl_MODECHANGE):
49462         * m4/mountlist.m4 (gl_MOUNTLIST):
49463         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
49464         * m4/openat.m4 (gl_FUNC_OPENAT):
49465         * m4/pathmax.m4 (gl_PATHMAX):
49466         * m4/physmem.m4 (gl_PHYSMEM):
49467         * m4/posixtm.m4 (gl_POSIXTM):
49468         * m4/posixver.m4 (gl_POSIXVER):
49469         * m4/quote.m4 (gl_QUOTE):
49470         * m4/quotearg.m4 (gl_QUOTEARG):
49471         * m4/readtokens.m4 (gl_READTOKENS):
49472         * m4/readutmp.m4 (gl_READUTMP):
49473         * m4/regex.m4 (gl_REGEX):
49474         * m4/safe-read.m4 (gl_SAFE_READ):
49475         * m4/safe-write.m4 (gl_SAFE_WRITE):
49476         * m4/same.m4 (gl_SAME):
49477         * m4/save-cwd.m4 (gl_SAVE_CWD):
49478         * m4/savedir.m4 (gl_SAVEDIR):
49479         * m4/settime.m4 (gl_SETTIME):
49480         * m4/sha1.m4 (gl_SHA1):
49481         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
49482         * m4/stat-macros.m4 (gl_STAT_MACROS):
49483         * m4/stat-time.m4 (gl_STAT_TIME):
49484         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
49485         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
49486         * m4/strdup.m4 (gl_FUNC_STRDUP):
49487         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
49488         * m4/strndup.m4 (gl_FUNC_STRNDUP):
49489         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
49490         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
49491         * m4/time_r.m4 (gl_TIME_R):
49492         * m4/timespec.m4 (gl_TIMESPEC):
49493         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
49494         * m4/unlinkdir.m4 (gl_UNLINKDIR):
49495         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
49496         * m4/userspec.m4 (gl_USERSPEC):
49497         * m4/utimecmp.m4 (gl_UTIMECMP):
49498         * m4/utimens.m4 (gl_UTIMENS):
49499         * m4/xalloc.m4 (gl_XALLOC):
49500         * m4/xgetcwd.m4 (gl_XGETCWD):
49501         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
49502         * m4/xreadlink.m4 (gl_XREADLINK):
49503         * m4/xstrtod.m4 (gl_XSTRTOD):
49504         * m4/yesno.m4 (gl_YESNO):
49505         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
49506         to get the necessary .h files and whatnot.
49507
49508 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
49509             Bruno Haible  <bruno@clisp.org>
49510
49511         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
49512         /bin/sh understanding of '!' conditional negation.
49513
49514 2006-08-21  Jim Meyering  <jim@meyering.net>
49515
49516         * modules/openat (Depends-on): Really alphabetize.
49517
49518         * modules/acl (Depends-on): Add error and quote.
49519
49520         * check-module (find_included_lib_files): Add at-func.c to the
49521         ok-to-include-more-than-once white list.
49522
49523         * modules/openat (Depends-on): Add lstat.  Alphabetize.
49524
49525 2006-08-21  Bruno Haible  <bruno@clisp.org>
49526
49527         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49528         Emit a pkgdata_DATA variable only if some snippets add contents to it.
49529         Reported by Martin Lambers <marlam@marlam.de>.
49530
49531 2006-08-21  Bruno Haible  <bruno@clisp.org>
49532
49533         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
49534         specify an installation location, don't emit a noinst_LIBRARIES or
49535         noinst_LTLIBRARIES assignment.
49536
49537 2006-08-21  Bruno Haible  <bruno@clisp.org>
49538
49539         BeOS portability.
49540         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
49541         BeOS has mbrtowc() but no <wctype.h>.
49542
49543 2006-08-21  Bruno Haible  <bruno@clisp.org>
49544
49545         BeOS portability.
49546         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
49547         exist.
49548
49549 2006-08-21  Bruno Haible  <bruno@clisp.org>
49550
49551         BeOS portability.
49552         * lib/mbchar.h: Include <wctype.h> only if it exists.
49553
49554 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49555
49556         Remove files that are no longer needed by their respective modules.
49557         * m4/obstack.m4: Remove.
49558         * m4/strerror_r.m4: Remove.
49559         * m4/uint32_t.m4: Remove.
49560         * m4/uintptr_t.m4: Remove.
49561         * m4/ullong_max.m4: Remove.
49562         * m4/xstrtoimax.m4: Remove.
49563         * m4/xstrtoumax.m4: Remove.
49564
49565         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
49566         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
49567         dependencies now capture this.
49568
49569         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
49570         Do not use AC_LIBSOURCES, since gnulib modules now do this.
49571         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
49572         * m4/human.m4 (gl_HUMAN): Likewise.
49573         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
49574         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
49575
49576         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
49577
49578         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
49579         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
49580         stdint.
49581         * m4/human.m4 (gl_HUMAN): Likewise.
49582         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
49583         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
49584         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
49585         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
49586         * m4/xstrtol (gl_XSTRTOL): Likewise.
49587
49588         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
49589         AC_TYPE_LONG_LONG_INT.
49590         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
49591         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
49592         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
49593         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
49594
49595         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
49596         on stdbool.
49597
49598         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
49599         (gl_PREREQ_XSTRTOUL): Remove.
49600
49601         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
49602
49603         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
49604         mode.
49605
49606 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49607
49608         Add and change modules to make it easier for coreutils to use
49609         gnulib-tool.
49610         * modules/backupfile (Files): Remove m4/d-ino.m4.
49611         (Depends-on): Add d-ino.
49612         * modules/cycle-check (Depends-on): Add stdint.
49613         (lib_SOURCES): Add cycle-check.h.
49614         * modules/d-ino: New module.
49615         * modules/d-type: New module.
49616         * modules/error (Files): Remove m4/strerror_r.m4.
49617         * modules/filemode (Files): Add m4/st_dm_mode.m4.
49618         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
49619         m4/inttypes_h.m4, m4/uintmax_t.m4.
49620         (Depends-on): Add stdint.
49621         (lib_SOURCES): Add fsusage.h.
49622         * modules/getcwd (Files): Remove d-ino.m4.
49623         (Depends-on): Add d-ino.
49624         * modules/getndelim2 (Depends-on): Add stdint.
49625         * modules/glob (Files): Remove m4/d-type.m4.
49626         (Depends-on): Add d-type.
49627         * modules/host-os: New module.
49628         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
49629         m4/inttypes_h.m4, m4/uintmax_t.m4.
49630         * Depends-on: Add stdint.
49631         (lib_SOURCES): Add human.h.
49632         * modules/inttostr (Files): Remove m4/intmax_t.m4,
49633         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
49634         m4/uintmax_t.m4, m4/ulonglong.m4.
49635         (Depends-on): Add stdint.
49636         (EXTRA_DIST): Add inttostr.h.
49637         * modules/lchmod: New module.
49638         * modules/link-follow: New module.
49639         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
49640         (Depends-on): Add lchmod.
49641         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
49642         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
49643         (Depends-on): Add stdint.
49644         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
49645         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
49646         (Depends-on): Add stdint.
49647         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
49648         * modules/perl: New module.
49649         * modules/regex (Depends-on): Add stdint.
49650         * modules/rmdir-errno: New module.
49651         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
49652         m4/intmax_t.m4.
49653         (Depends-on): Add stdint.
49654         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
49655         m4/uintmax_t.m4.
49656         (Depends-on): Add stdint.
49657         * modules/unlink-busy: New module.
49658         * modules/utimecmp (Depends-on): Add stdint.
49659         * modules/uptime: New module.
49660         * modules/winsz-ioctl: New module.
49661         * modules/winsz-termios: New module.
49662         * modules/xnanosleep (Depends-on): Add nanosleep.
49663         * modules/ullong_max: Remove.
49664         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
49665         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
49666         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
49667         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
49668         (Depends-on): Add inttypes.
49669         (lib_SOURCES): Add xstrtol.h.
49670         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
49671         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
49672         * MODULES.html.sh: Move 'assert' into the assert section.
49673         Move 'dummy' into the linking section.
49674         Remove ullong_max.
49675         Add section for compatibility checks for POSIX:2001 functions,
49676         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
49677         winsz-ioctl, and winsz-termios into it.
49678         Add lchmod.
49679         Add top-level Misc section and put host-os, perl, and uptime
49680         into it.
49681
49682 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49683
49684         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
49685         now assume the stdint module.  Do not include inttypes.h.
49686         * lib/fsusage.h: Likewise.
49687         * lib/getndelim2.c: Likewise.
49688         * lib/human.h: Likewise.
49689         * lib/inttostr.h: Likewise.
49690         * lib/obstack.c: Likewise.
49691         * lib/regex_internal.h: Likewise.
49692         * lib/tempname.c: Likewise.
49693         * lib/utimecmp.c: Likewise.
49694         * lib/xstrtol.h: Likewise.
49695
49696         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
49697
49698         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
49699         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
49700         * lib/xtime.h: Likewise.
49701
49702 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49703
49704         * modules/openat (Files): Add lib/fchmodat.c.
49705         Fixes problem reported by Jay Youngman.
49706
49707 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49708
49709         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
49710         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
49711
49712 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
49713             Bruno Haible  <bruno@clisp.org>
49714
49715         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
49716         and is a script that invokes bison. Tighten the code. Add comments.
49717
49718 2006-08-18  Jim Meyering  <jim@meyering.net>
49719
49720         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
49721         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
49722         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
49723         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
49724
49725 2006-08-18  Bruno Haible  <bruno@clisp.org>
49726
49727         * modules/bison-i18n: New file.
49728         * MODULES.html.sh (Internationalization functions): Add it.
49729
49730 2006-08-18  Bruno Haible  <bruno@clisp.org>
49731
49732         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
49733         sys/statvfs.h. When getmntinfo was found, check its declaration and
49734         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
49735
49736 2006-08-18  Bruno Haible  <bruno@clisp.org>
49737
49738         * m4/bison-i18n.m4: New file, from bison.
49739
49740 2006-08-18  Bruno Haible  <bruno@clisp.org>
49741
49742         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
49743         (ME_DUMMY): Treat "kernfs" as a dummy.
49744         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
49745
49746 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
49747
49748         Update from coreutils.
49749
49750         2006-08-15  Jim Meyering  <jim@meyering.net>
49751
49752         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
49753
49754         2006-01-17  Jim Meyering  <jim@meyering.net>
49755
49756         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
49757
49758         2006-01-11  Jim Meyering  <jim@meyering.net>
49759
49760         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
49761         Check for the lchmod function.
49762
49763 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
49764
49765         Update from coreutils.
49766
49767         * lib/__fpending.h: Add copyright notice.
49768         * lib/fprintftime.h: Likewise.
49769         * lib/savedir.c: Use (C) in copyright notice.
49770         * lib/savedir.h: Likewise.
49771
49772         2006-08-15  Jim Meyering  <jim@meyering.net>
49773
49774         * lib/at-func.c: New file, with the logic of all emulated at-functions.
49775         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
49776         in support of the EXPECTED_ERRNO macro.
49777         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
49778         definitions.  Instead, define the appropriate symbols and include
49779         "at-func.c".
49780         * lib/mkdirat.c (mkdirat): Likewise.
49781         * lib/fchmodat.c (fchmodat): Likewise.
49782         (ENOSYS): Remove definition.
49783         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
49784         it.  Don't include "unistd--.h" -- it wasn't ever used.
49785
49786         2006-01-17  Jim Meyering  <jim@meyering.net>
49787
49788         Rewrite fts.c not to change the current working directory,
49789         by using openat, fstatat, fdopendir, etc..
49790
49791         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
49792         (HAVE_OPENAT_SUPPORT): Define.
49793         [_LIBC] (fchdir): Don't undef or define; no longer used.
49794         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
49795         Now, this `function' always succeeds, and consumes its file descriptor
49796         parameter -- so callers must not close such FDs.  Update callers.
49797         (diropen_fd, opendirat, cwd_advance_fd): New functions.
49798         (diropen): Add parameter, SP.  Adjust all callers.
49799         Implement using diropen_fd, rather than open.
49800         (fts_open): Initialize new member, fts_cwd_fd.
49801         Remove fts_rft-setting code.
49802         (fts_close): Close fts_cwd_fd, if necessary.
49803         (__opendir2): Define in terms of opendir or opendirat,
49804         depending on whether the FST_NOCHDIR flag is set.
49805         (fts_build): Since fts_safe_changedir consumes its FD, and since
49806         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
49807         and close the dup'd file descriptor upon failure.
49808         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
49809         (fts_safe_changedir): Tweak semantics to reflect that this function
49810         now calls cwd_advance_fd and hence consumes its FD argument.
49811         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
49812         [struct FTS] (fts_rft): Remove now-unused member.
49813         [struct FTS] (fts_cycle.state): Improve comment.
49814
49815         * lib/openat.c (openat_needs_fchdir): New function.
49816         * lib/openat.h (openat_needs_fchdir): Declare it.
49817
49818 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
49819
49820         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
49821         Problem and fix reported by Pádraig Brady in
49822         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
49823
49824 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49825
49826         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
49827
49828 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49829
49830         * lib/memcoll.c (memcoll): Optimize for the common case where the
49831         arguments are bytewise equal.
49832
49833 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49834
49835         * doc/regexprops-generic.texi: Add a copyright notice.
49836
49837 2006-08-15  Bruno Haible  <bruno@clisp.org>
49838
49839         * modules/tmpdir (License): Change to LGPL.
49840
49841 2006-08-15  Bruno Haible  <bruno@clisp.org>
49842
49843         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
49844         module.
49845
49846 2006-08-14  Simon Josefsson  <jas@extundo.com>
49847
49848         * config/srclist.txt: Add gnupload.
49849
49850 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49851
49852         Change copyright notice from LGPL 2 to GPL 2, since that's the
49853         standard form used in the gnulib repository.
49854         * tests/test-lock.c: Likewise.
49855         * tests/test-stdint.c: Likewise.
49856         * tests/test-tls.c: Likewise.
49857
49858         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
49859         prelude-manager.  User shorter URLs for GNU projects, without '?'.
49860         Add copyright notice.
49861
49862         * check-module: Add copyright notice.  Output a copyright
49863         notice if "--version" is specified.
49864         * modules/COPYING: New file.
49865         * tests/test-getaddrinfo.c: Add copyright notice.
49866         * tests/test-verify.c: Likewise.
49867
49868 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49869
49870         Change copyright notice from LGPL 2 to GPL 2, since that's the
49871         standard form used in the gnulib repository.
49872         * lib/lock.c: LGPL -> GPL.
49873         * lib/lock.h: Likewise.
49874         * lib/strnlen1.c: Likewise.
49875         * lib/strnlen1.h: Likewise.
49876         * lib/tls.c: Likewise.
49877         * lib/tls.h: Likewise.
49878         * lib/tmpdir.c: Likewise.
49879
49880         * lib/TODO: Remove; this belongs only in coreutils.
49881
49882 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49883
49884         Add copyright notices to long-enough files that lack them, since
49885         otherwise the files aren't clearly free.  Use the same notice that
49886         getdate.texi already uses.
49887         * doc/alloca-opt.texi: Add copyright notice.
49888         * doc/alloca.texi: Likewise.
49889         * doc/ctime.texi: Likewise.
49890         * doc/functions.texi: Likewise.
49891         * doc/gcd.texi: Likewise.
49892         * doc/gnulib-tool.texi: Likewise.
49893         * doc/inet_ntoa.texi: Likewise.
49894         * doc/visibility.texi: Likewise.
49895
49896         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
49897         * doc/quote.texi: Add copyright notice.
49898
49899         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
49900         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
49901         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
49902         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
49903         is now obsolete, and give a pointer to the Sun list.
49904         Add copyright notice.
49905
49906 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49907
49908         * config/srclistvars.sh: Add copyright notice.
49909
49910 2006-08-14  Eric Blake  <ebb9@byu.net>
49911
49912         Import the following change from libc:
49913
49914         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
49915
49916         Upstream bug 2997.
49917         * lib/misc/error.c: Add space between program name and message if file
49918         name is missing.
49919
49920 2006-08-12  Karl Berry  <karl@gnu.org>
49921
49922         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
49923         remove, these originate in gnulib now.
49924
49925 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49926
49927         * doc/Makefile (standards.info standards.html standards.dvi):
49928         Also depend on make-stds.texi.
49929
49930 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
49931
49932         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
49933         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
49934
49935         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
49936         in wchar_t.  Problem reported by Eric Blake.
49937
49938         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
49939         LEN is smaller than SIZE.  Suggested by Bruno Haible.
49940         Also, help the compiler to keep LEN in a register.
49941
49942 2006-08-11  Eric Blake  <ebb9@byu.net>
49943
49944         * users.txt: Sort.  Add tar.
49945
49946 2006-08-11  Bruno Haible  <bruno@clisp.org>
49947
49948         * users.txt: New file.
49949
49950 2006-08-11  Bruno Haible  <bruno@clisp.org>
49951
49952         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
49953         before <wchar.h>. Needed for OSF/1 and BSD/OS.
49954
49955 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
49956
49957         * modules/snprintf (Depends-on): Remove minmax.
49958         (Maintainer): Add self and Bruno.
49959
49960 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
49961
49962         * lib/.cppi-disable: Add snprintf.h, socket_.h.
49963         * lib/snprintf.c: Include <errno.h> and <limits.h>.
49964         (EOVERFLOW): Define if the system does not.
49965         Do not include "minmax.h"; it wasn't used.
49966         (snprintf): Don't assume size_t promotes to an unsigned type.
49967         Fix bug when generated string was too long for the buffer: the
49968         buffer's contents are supposed to be the initial prefix of the
49969         output.  Don't assume vasnprintf returns EOVERFLOW if the size
49970         exceeds INT_MAX; do the check ourselves.
49971
49972         Import the following changes from libc:
49973
49974         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
49975
49976         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
49977         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
49978         set wc to the byte which couldn't be converted.
49979         (re_string_reconstruct): Don't clear valid_raw_len before calling
49980         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
49981         tip_context using re_string_context_at.
49982
49983         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
49984
49985         * lib/posix/regex.h: g++ still cannot handled [restrict].
49986
49987         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
49988
49989         * lib/posix/regex.h: Remove special handling for VMS.
49990
49991 2006-08-10  Jim Meyering  <jim@meyering.net>
49992
49993         * modules/same-inode: New module.
49994         * modules/dev-ino: New module.
49995         * modules/cycle-check: Depend on these modules, rather than simply
49996         including their .h files.
49997         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
49998         required via m4/cycle-check.m4.
49999         * modules/same: Depend on new same-inode module, rather than
50000         including same-inode.h.
50001         * modules/chdir-safer: New file.
50002
50003         * modules/chown (Depends-on): Add stat-macros.
50004
50005 2006-08-10  Jim Meyering  <jim@meyering.net>
50006
50007         * m4/cycle-check.m4: New file.
50008         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
50009         * m4/dev-ino.m4, m4/same-inode.m4: New files.
50010
50011 2006-08-10  Eric Blake  <ebb9@byu.net>
50012
50013         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
50014         in from original proposal.
50015
50016 2006-08-10  Eric Blake  <ebb9@byu.net>
50017         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
50018
50019         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
50020         namespace.
50021
50022 2006-08-10  Bruno Haible  <bruno@clisp.org>
50023
50024         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
50025         as well.
50026
50027 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
50028
50029         Sync from coreutils.
50030
50031         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
50032
50033         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
50034         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
50035
50036 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
50037
50038         * modules/restrict: Remove; no longer needed now that we assume
50039         Autoconf 2.59 or later.
50040         * MODULES.html.sh: Remove 'restrict'.
50041         * modules/argp (Depends-on): Remove 'restrict'.
50042         * modules/base64 (Depends-on): Likewise.
50043         * modules/gc (Depends-on): Likewise.
50044         * modules/getaddrinfo (Depends-on): Likewise.
50045         * modules/glob (Depends-on): Likewise.
50046         * modules/inet_ntop (Depends-on): Likewise.
50047         * modules/inet_pton (Depends-on): Likewise.
50048         * modules/memxor (Depends-on): Likewise.
50049         * modules/regex (Depends-on): Likewise.
50050         * modules/strtok_r (Depends-on): Likewise.
50051         * modules/time_r (Depends-on): Likewise.
50052
50053 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
50054
50055         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
50056         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
50057         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
50058         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
50059         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
50060         * m4/memxor.m4 (gl_MEMXOR): Likewise.
50061         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
50062         gl_C_RESTRICT replaced by AC_C_RESTRICT.
50063
50064         Merge from coreutils.
50065         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
50066         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
50067         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
50068         * m4/time_r.m4 (gl_TIME_R): Likewise.
50069
50070 2006-08-09  Karl Berry  <karl@gnu.org>
50071
50072         * config/srclist.txt: no more gettext-tools, per Bruno.
50073
50074 2006-08-08  Eric Blake  <ebb9@byu.net>
50075
50076         * modules/verror: New module.
50077         * MODULES.html.sh: Document it.
50078
50079 2006-08-08  Eric Blake  <ebb9@byu.net>
50080
50081         * lib/verror.h, lib/verror.c: New files.
50082
50083 2006-08-08  Eric Blake  <ebb9@byu.net>
50084
50085         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
50086         verror_at_line output complies with GNU Coding Standards even when
50087         file is NULL.
50088
50089 2006-08-07  Bruno Haible  <bruno@clisp.org>
50090
50091         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
50092         versions of AIX.
50093         Reported by Ralf Wildenhues.
50094
50095 2006-08-07  Bruno Haible  <bruno@clisp.org>
50096
50097         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
50098         in an AC_DEFUN. Needed so that the autoconf snippets can use
50099         AC_REQUIRE.
50100
50101 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50102
50103         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50104         Initialize pkgdata_DATA.
50105         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
50106         overriding it.
50107
50108 2006-08-06  Eric Blake  <ebb9@byu.net>
50109
50110         * lib/error.h: Fold in some upstream changes from glibc.
50111         * lib/error.c: Likewise.
50112
50113 2006-08-04  Bruno Haible  <bruno@clisp.org>
50114
50115         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50116         Make the mostlyclean-local rule depend on mostlyclean-generic.
50117         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
50118
50119 2006-07-31  Bruno Haible  <bruno@clisp.org>
50120
50121         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
50122         <stdlib.h>, <string.h>.
50123
50124 2006-07-30  Bruno Haible  <bruno@clisp.org>
50125
50126         * modules/readlink (License): Change to LGPL.
50127
50128 2006-07-30  Bruno Haible  <bruno@clisp.org>
50129
50130         * modules/javaversion (Makefile.am): Distribute javaversion.java and
50131         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
50132         set PKGDATADIR to point to it.
50133
50134 2006-07-30  Bruno Haible  <bruno@clisp.org>
50135
50136         * modules/csharpexec (configure.ac): Comment out macro invocation.
50137         * modules/javaexec (configure.ac): Likewise.
50138         * modules/javacomp-script (configure.ac): Likewise.
50139
50140         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
50141
50142 2006-07-30  Bruno Haible  <bruno@clisp.org>
50143
50144         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
50145         linked-list.
50146
50147 2006-07-30  Bruno Haible  <bruno@clisp.org>
50148
50149         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
50150
50151 2006-07-30  Bruno Haible  <bruno@clisp.org>
50152
50153         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50154         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
50155         get removed.
50156
50157 2006-07-29  Bruno Haible  <bruno@clisp.org>
50158
50159         Make it possible for gnulib-tool to work with locally modified or
50160         augmented gnulib repositories.
50161         * gnulib-tool (func_usage): Document --local-dir option.
50162         (local_gnulib_dir): New variable.
50163         Handle --local-dir option.
50164         (func_lookup_file): New function.
50165         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
50166         (func_get_description, func_get_filelist, func_get_description,
50167         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
50168         func_get_automake_snippet, func_get_include_directive,
50169         func_get_license, func_get_maintainer): Use func_lookup_file.
50170         (func_import, func_create_testdir): Use func_lookup_file.
50171
50172 2006-07-29  Bruno Haible  <bruno@clisp.org>
50173
50174         * modules/setenv (Depends-on): Add unistd.
50175
50176 2006-07-29  Bruno Haible  <bruno@clisp.org>
50177
50178         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
50179
50180 2006-07-29  Bruno Haible  <bruno@clisp.org>
50181
50182         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
50183
50184 2006-07-29  Bruno Haible  <bruno@clisp.org>
50185
50186         * gnulib-tool (import, update): If there is no Makefile.am, look at
50187         aclocal.m4, instead of bailing out.
50188
50189 2006-07-29  Bruno Haible  <bruno@clisp.org>
50190
50191         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
50192         Categorize the options by when they are useful.
50193
50194 2006-07-29  Bruno Haible  <bruno@clisp.org>
50195
50196         * gnulib-tool (func_usage): Document option --no-libtool.
50197         Handle option --no-libtool.
50198         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
50199         for changed semantics of $libtool variable.
50200         (func_import): Likewise. If libtool is not used, show this through
50201         an option --no-libtool.
50202         (func_create_testdir): Update.
50203
50204 2006-07-29  Bruno Haible  <bruno@clisp.org>
50205
50206         * gnulib-tool (func_import): Extend error message about missing
50207         --doc-base.
50208
50209 2006-07-29  Bruno Haible  <bruno@clisp.org>
50210
50211         * gnulib-tool (func_import): Don't create the $docbase directory if
50212         there is no file to store there.
50213
50214 2006-07-29  Bruno Haible  <bruno@clisp.org>
50215
50216         * gnulib-tool (autoconf_minversion): If a --dir option is given and
50217         relevant, look for configure.ac there, not in the current directory.
50218         Also use a simple search for AC_PREREQ, not "autoconf --trace".
50219
50220 2006-07-29  Bruno Haible  <bruno@clisp.org>
50221
50222         * gnulib-tool (SORT): New variable.
50223         (func_usage): Undocument --assume-autoconf option.
50224         Remove --assume-autoconf option handling.
50225         (autoconf_minversion): Determine from the contents of configure.ac.
50226         (func_import): Remove autoconf_minversion handling.
50227         Suggested by Eric Blake.
50228
50229 2006-07-29  Bruno Haible  <bruno@clisp.org>
50230
50231         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
50232
50233 2006-07-29  Bruno Haible  <bruno@clisp.org>
50234
50235         * config/srclist.txt (*setenv.[ch]): Remove rules.
50236
50237 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50238
50239         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
50240
50241 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50242
50243         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
50244         arpa/inet.h.
50245
50246 2006-07-28  Simon Josefsson  <jas@extundo.com>
50247
50248         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
50249         * modules/inet_pton (Depends-on): Likewise.
50250
50251 2006-07-28  Simon Josefsson  <jas@extundo.com>
50252
50253         * m4/netinet_in_h.m4: New file.
50254
50255 2006-07-28  Simon Josefsson  <jas@extundo.com>
50256
50257         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
50258         #include's.
50259
50260 2006-07-28  Simon Josefsson  <jas@extundo.com>
50261
50262         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
50263         #include's.
50264
50265 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
50266
50267         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
50268         setgid on directories only if they set these bits.
50269         * lib/modechange.h: Remove obsolete comment about masks.
50270
50271 2006-07-28  Eric Blake  <ebb9@byu.net>
50272
50273         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
50274         macro expansion.
50275
50276 2006-07-28  Bruno Haible  <bruno@clisp.org>
50277
50278         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
50279
50280 2006-07-28  Bruno Haible  <bruno@clisp.org>
50281
50282         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
50283
50284 2006-07-28  Bruno Haible  <bruno@clisp.org>
50285
50286         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
50287         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
50288         Define fallbacks.
50289         Avoids link error on FreeBSD 4.x.
50290         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50291
50292         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
50293         encoding.
50294         * lib/mbswidth.c (iswcntrl): Likewise.
50295
50296 2006-07-27  Bruno Haible  <bruno@clisp.org>
50297
50298         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
50299         test.
50300
50301 2006-07-27  Bruno Haible  <bruno@clisp.org>
50302
50303         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
50304         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
50305         defined.
50306
50307 2006-07-26  Eric Blake  <ebb9@byu.net>
50308
50309         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
50310
50311 2006-07-26  Eric Blake  <ebb9@byu.net>
50312
50313         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
50314         like mingw that lack mkstemp.
50315         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
50316         avoid compilation warning on mingw.
50317
50318 2006-07-26  Bruno Haible  <bruno@clisp.org>
50319
50320         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
50321         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
50322         INT_FAST*_MIN, INTPTR_MIN.
50323
50324 2006-07-25  Bruno Haible  <bruno@clisp.org>
50325
50326         * modules/version-etc (Depends-on): Add stdarg.
50327
50328 2006-07-25  Bruno Haible  <bruno@clisp.org>
50329
50330         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
50331         complex commands.
50332
50333 2006-07-25  Bruno Haible  <bruno@clisp.org>
50334
50335         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
50336         defined in <stdarg.h> or config.h.
50337
50338 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
50339
50340         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
50341         (gl_STDIO_SAFER): Remove.
50342
50343 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
50344
50345         * MODULES.html.sh (File stream based Input/Output):
50346         Add fopen-safer, tmpfile-safer; remove stdio-safer.
50347         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
50348         * modules/fopen-safer, modules/tmpfile-safer: New files.
50349         * modules/stdio-safer: Remove.
50350
50351 2006-07-24  Bruno Haible  <bruno@clisp.org>
50352
50353         * modules/tmpdir: New file.
50354         * MODULES.html.sh (File system functions): Add it.
50355
50356 2006-07-24  Bruno Haible  <bruno@clisp.org>
50357
50358         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
50359         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
50360
50361 2006-07-24  Bruno Haible  <bruno@clisp.org>
50362
50363         * modules/clean-temp: New file.
50364
50365 2006-07-24  Bruno Haible  <bruno@clisp.org>
50366
50367         * m4/tmpdir.m4: New file, from GNU gettext.
50368
50369 2006-07-24  Bruno Haible  <bruno@clisp.org>
50370
50371         * lib/tmpdir.h: New file, from GNU gettext.
50372         * lib/tmpdir.c: New file, from GNU gettext.
50373
50374 2006-07-24  Bruno Haible  <bruno@clisp.org>
50375
50376         * lib/clean-temp.h: New file, from GNU gettext.
50377         * lib/clean-temp.c: New file, from GNU gettext.
50378
50379 2006-07-23  Eric Blake  <ebb9@byu.net>
50380
50381         * modules/stdio-safer (Files): Add tmpfile-safer.c.
50382         (Depends-on): Add binary-io.
50383
50384 2006-07-23  Eric Blake  <ebb9@byu.net>
50385
50386         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
50387
50388 2006-07-23  Eric Blake  <ebb9@byu.net>
50389
50390         * lib/tmpfile-safer.c: New file.
50391         * lib/stdio-safer.h (fopen_safer): Add prototype.
50392         * lib/stdio--.h (tmpfile): Make safer.
50393
50394 2006-07-23  Bruno Haible  <bruno@clisp.org>
50395
50396         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
50397         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
50398         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
50399         gl_linked_remove_at): Use it.
50400
50401 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50402         and Simon Josefsson <jas@extundo.com>
50403
50404         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
50405
50406         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
50407
50408 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50409
50410         * modules/close-stream: New file.
50411         * modules/closeout (Description): Make it clear that it exits
50412         with a diagnostic on error.
50413         (Depends-on): Add close-stream.  Remove fpending, stdbool.
50414         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
50415
50416 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50417
50418         * m4/close-stream.m4: New file.
50419
50420 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50421
50422         * lib/close-stream.c, lib/close-stream.h: New files.
50423
50424 2006-07-22  Bruno Haible  <bruno@clisp.org>
50425
50426         Merge from GNU gettext 0.15.
50427
50428         2006-05-01  Bruno Haible  <bruno@clisp.org>
50429
50430                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
50431
50432         2006-07-22  Bruno Haible  <bruno@clisp.org>
50433
50434                 * modules/javaversion: New file.
50435                 * MODULES.html.sh (Java): Add javaversion.
50436
50437         2006-03-12  Bruno Haible  <bruno@clisp.org>
50438
50439                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
50440
50441         2005-12-04  Bruno Haible  <bruno@clisp.org>
50442
50443                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
50444                 (untested).
50445
50446         2006-06-21  Bruno Haible  <bruno@clisp.org>
50447
50448                 Avoid warnings from recent versions of mcs.
50449                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
50450                 -o, -L, -r any more. Use options documented since mcs-1.0
50451                 instead. Similarly for -g.
50452
50453         2005-12-04  Bruno Haible  <bruno@clisp.org>
50454
50455                 * build-aux/csharpcomp.sh.in: Suffix for resources is
50456                 .resources, not .resource.
50457
50458         2005-07-09  Bruno Haible  <bruno@clisp.org>
50459
50460                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
50461                 add a .dll suffix.
50462                 Reported by Mark Junker <mjscod@gmx.de>.
50463
50464         2006-07-22  Bruno Haible  <bruno@clisp.org>
50465
50466                 * modules/gettext: Upgrade to gettext-0.15.
50467                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
50468                 m4/visibility.m4.
50469                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
50470
50471 2006-07-22  Bruno Haible  <bruno@clisp.org>
50472
50473         Merge from GNU gettext 0.15.
50474
50475         2006-03-25  Bruno Haible  <bruno@clisp.org>
50476
50477                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
50478
50479         2006-07-21  Bruno Haible  <bruno@clisp.org>
50480
50481                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
50482                 "1.1".
50483
50484         2006-05-09  Bruno Haible  <bruno@clisp.org>
50485
50486                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
50487                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
50488                 for the conftestver execution.
50489
50490         2006-05-01  Bruno Haible  <bruno@clisp.org>
50491
50492                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
50493                 optional target-version argument. Verify that the compiler
50494                 groks source of the specified source-version, or add -source
50495                 option as necessary. Verify that the compiler produces
50496                 bytecode in the specified target-version, or add -target and
50497                 -source options as necessary. Make the result of the test
50498                 available as variable CONF_JAVAC. Also log error output in
50499                 config.log.
50500
50501         2006-03-11  Bruno Haible  <bruno@clisp.org>
50502
50503                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
50504
50505         2006-05-09  Bruno Haible  <bruno@clisp.org>
50506
50507                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
50508                 CLASSPATH_SEPARATOR to a semicolon.
50509
50510         2006-03-12  Bruno Haible  <bruno@clisp.org>
50511
50512                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
50513                 available as variable CONF_JAVA, for subsequent autoconf
50514                 tests. Also log error output in config.log.
50515
50516         2006-07-19  Bruno Haible  <bruno@clisp.org>
50517
50518                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
50519                 that getline works on glibc2 systems. Needed to avoid trouble
50520                 in relocatable.c.
50521                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
50522
50523         2005-12-04  Bruno Haible  <bruno@clisp.org>
50524
50525                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
50526                 launcher (untested).
50527
50528         2005-12-04  Bruno Haible  <bruno@clisp.org>
50529
50530                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
50531
50532         2006-07-22  Bruno Haible  <bruno@clisp.org>
50533
50534                 * gettext.m4: Update from GNU gettext-0.15.
50535                 * nls.m4: Likewise.
50536                 * po.m4: Likewise.
50537                 * inttypes-pri.m4: Likewise.
50538                 * inttypes-h.m4: Renamed from inttypes.m4.
50539                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
50540
50541 2006-07-22  Bruno Haible  <bruno@clisp.org>
50542
50543         Merge from GNU gettext 0.15.
50544
50545         2005-07-05  Bruno Haible  <bruno@clisp.org>
50546
50547                 * printf-args.c (printf_fetchargs): Work around broken
50548                 definition of wint_t on mingw.
50549
50550         2005-02-12  Bruno Haible  <bruno@clisp.org>
50551
50552                 * xallocsa.h: Add extern "C" for C++.
50553
50554         2006-05-17  Bruno Haible  <bruno@clisp.org>
50555
50556                 Cygwin portability.
50557                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
50558
50559         2006-04-30  Bruno Haible  <bruno@clisp.org>
50560
50561                 * progreloc.c: Include <mach-o/dyld.h> if available.
50562                 (find_executable): Use _NSGetExecutablePath when possible.
50563
50564         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
50565
50566                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
50567                 function.
50568
50569         2005-12-29  Bruno Haible  <bruno@clisp.org>
50570
50571                 * progreloc.c (set_program_name_and_installdir): Fix
50572                 compilation error.
50573
50574         2005-12-04  Bruno Haible  <bruno@clisp.org>
50575
50576                 Cygwin portability.
50577                 * progreloc.c: Include <windows.h> also on Cygwin.
50578                 (find_executable): Add support for Cygwin.
50579                 (set_program_name_and_installdir): Handle also platforms with
50580                 nonempty EXEEXT.
50581
50582         2006-07-11  Bruno Haible  <bruno@clisp.org>
50583
50584                 * javacomp.c: Fix a comment.
50585                 Reported by Jim Meyering.
50586
50587         2006-04-30  Bruno Haible  <bruno@clisp.org>
50588
50589                 * javacomp.h (compile_java_class): Add source_version,
50590                 target_version arguments.
50591                 * javacomp.c: Rewritten to choose only a compiler that
50592                 respects the specified source_version and target_version.
50593
50594         2006-06-27  Bruno Haible  <bruno@clisp.org>
50595
50596                 Assume correct S_ISDIR macro.
50597                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
50598
50599         2006-07-22  Bruno Haible  <bruno@clisp.org>
50600
50601                 * javaversion.h: New file, from GNU gettext.
50602                 * javaversion.c: New file, from GNU gettext.
50603                 * javaversion.java: New file, from GNU gettext.
50604                 * javaversion.class: New file, from GNU gettext.
50605
50606         2006-05-17  Bruno Haible  <bruno@clisp.org>
50607
50608                 Cygwin portability.
50609                 * javaexec.c (execute_java_class): Test for jview program
50610                 also on Cygwin.
50611
50612         2006-04-09  Bruno Haible  <bruno@clisp.org>
50613
50614                 * fatal-signal.c: Don't include string.h.
50615                 (at_fatal_signal): Use a copying loop instead of memcpy.
50616
50617         2005-12-04  Bruno Haible  <bruno@clisp.org>
50618
50619                 * csharpexec.c: Add support for 'clix' launcher (untested).
50620                 (execute_csharp_using_sscli): New function.
50621                 (execute_csharp_program): Call it.
50622
50623         2006-06-21  Bruno Haible  <bruno@clisp.org>
50624
50625                 Avoid warnings from recent versions of mcs.
50626                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
50627                 -o, -L, -r any more. Use options documented since mcs-1.0
50628                 instead. Similarly for -g.
50629
50630         2005-07-09  Bruno Haible  <bruno@clisp.org>
50631
50632                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
50633                 add a .dll suffix.
50634                 Reported by Mark Junker <mjscod@gmx.de>.
50635
50636         2006-06-17  Bruno Haible  <bruno@clisp.org>
50637
50638                 * config.charset: Update for NetBSD 3.0.
50639
50640         2006-05-17  Bruno Haible  <bruno@clisp.org>
50641
50642                 Cygwin portability.
50643                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
50644
50645         2006-05-16  Bruno Haible  <bruno@clisp.org>
50646
50647                 * localcharset.c [CYGWIN]: Include <windows.h>.
50648                 (get_charset_aliases): For Cygwin, return the same CPxxx
50649                 aliases list as under WIN32.
50650                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
50651                 the environment variables. Fall back to GetACP().
50652
50653         2006-04-05  Bruno Haible  <bruno@clisp.org>
50654
50655                 * config.charset: Update Juan Manuel Guerrero's address.
50656
50657         2005-02-12  Bruno Haible  <bruno@clisp.org>
50658
50659                 * allocsa.h: Add extern "C" for C++.
50660
50661         2005-02-10  Bruno Haible  <bruno@clisp.org>
50662
50663                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
50664                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
50665
50666         2006-07-22  Bruno Haible  <bruno@clisp.org>
50667
50668                 * gettext.h: Update to GNU gettext-0.15.
50669
50670 2006-07-22  Bruno Haible  <bruno@clisp.org>
50671
50672         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
50673         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
50674         lib-prefix.m4, longdouble.m4, ssize_t.m4.
50675
50676 2006-07-21  Eric Blake  <ebb9@byu.net>
50677
50678         * modules/stdlib-safer: New file.
50679         * MODULES.html.sh (File stream based Input/Output): Add
50680         stdlib-safer.
50681
50682 2006-07-21  Eric Blake  <ebb9@byu.net>
50683
50684         * lib/stdlib-safer.h: New file from coreutils, required by
50685         stdlib--.h.
50686
50687 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
50688
50689         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
50690
50691 2006-07-20  Bruno Haible  <bruno@clisp.org>
50692
50693         * gnulib-tool: Recognize new option --assume-autoconf.
50694         (autoconf_minversion): New variable.
50695         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
50696
50697 2006-07-20  Bruno Haible  <bruno@clisp.org>
50698
50699         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
50700
50701 2006-07-19  Derek R. Price  <derek@ximbiot.com>
50702
50703         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
50704         Reindent and repaginate.
50705
50706 2006-07-19  Derek Price  <derek@ximbiot.com>
50707
50708         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
50709         Correct grammar.
50710
50711 2006-07-17  Bruno Haible  <bruno@clisp.org>
50712
50713         * modules/list: New file.
50714         * modules/array-list: New file.
50715         * modules/carray-list, modules/carray-list-tests: New files.
50716         * modules/linked-list, modules/linked-list-tests: New files.
50717         * modules/avltree-list, modules/avltree-list-tests: New files.
50718         * modules/rbtree-list, modules/rbtree-list-tests: New files.
50719         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
50720         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
50721         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
50722         * modules/oset: New file.
50723         * modules/array-oset: New file.
50724         * modules/avltree-oset, modules/avltree-oset-tests: New files.
50725         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
50726         * tests/test-carray_list.c: New file.
50727         * tests/test-linked_list.c: New file.
50728         * tests/test-avltree_list.c: New file.
50729         * tests/test-rbtree_list.c: New file.
50730         * tests/test-linkedhash_list.c: New file.
50731         * tests/test-avltreehash_list.c: New file.
50732         * tests/test-rbtreehash_list.c: New file.
50733         * tests/test-avltree_oset.c: New file.
50734         * tests/test-rbtree_oset.c: New file.
50735         * MODULES.html.sh (Container data structures): New section.
50736
50737 2006-07-17  Bruno Haible  <bruno@clisp.org>
50738
50739         * m4/gl_list.m4: New file.
50740
50741 2006-07-17  Bruno Haible  <bruno@clisp.org>
50742
50743         * lib/gl_list.h: New file.
50744         * lib/gl_list.c: New file.
50745         * lib/gl_array_list.h: New file.
50746         * lib/gl_array_list.c: New file.
50747         * lib/gl_carray_list.h: New file.
50748         * lib/gl_carray_list.c: New file.
50749         * lib/gl_linked_list.h: New file.
50750         * lib/gl_linked_list.c: New file.
50751         * lib/gl_anylinked_list1.h: New file.
50752         * lib/gl_anylinked_list2.h: New file.
50753         * lib/gl_avltree_list.h: New file.
50754         * lib/gl_avltree_list.c: New file.
50755         * lib/gl_anyavltree_list1.h: New file.
50756         * lib/gl_anyavltree_list2.h: New file.
50757         * lib/gl_rbtree_list.h: New file.
50758         * lib/gl_rbtree_list.c: New file.
50759         * lib/gl_anyrbtree_list1.h: New file.
50760         * lib/gl_anyrbtree_list2.h: New file.
50761         * lib/gl_anytree_list1.h: New file.
50762         * lib/gl_anytree_list2.h: New file.
50763         * lib/gl_linkedhash_list.h: New file.
50764         * lib/gl_linkedhash_list.c: New file.
50765         * lib/gl_anyhash_list1.h: New file.
50766         * lib/gl_anyhash_list2.h: New file.
50767         * lib/gl_avltreehash_list.h: New file.
50768         * lib/gl_avltreehash_list.c: New file.
50769         * lib/gl_rbtreehash_list.h: New file.
50770         * lib/gl_rbtreehash_list.c: New file.
50771         * lib/gl_anytreehash_list1.h: New file.
50772         * lib/gl_anytreehash_list2.h: New file.
50773
50774         * lib/gl_oset.h: New file.
50775         * lib/gl_oset.c: New file.
50776         * lib/gl_array_oset.h: New file.
50777         * lib/gl_array_oset.c: New file.
50778         * lib/gl_avltree_oset.h: New file.
50779         * lib/gl_avltree_oset.c: New file.
50780         * lib/gl_rbtree_oset.h: New file.
50781         * lib/gl_rbtree_oset.c: New file.
50782         * lib/gl_anytree_oset.h: New file.
50783
50784 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
50785
50786         * m4/mkancesdirs.m4: New file.
50787         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
50788         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
50789         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
50790         it.
50791
50792 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
50793
50794         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
50795         * lib/mkancesdirs.h: New files.
50796         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
50797         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
50798         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
50799         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
50800         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
50801         callers changed.  Revamp internals significantly, by not
50802         attempting to create directories that are temporarily more
50803         permissive than the final results.  Do not attempt to use
50804         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
50805         This removes some race conditions, fixes some bugs, and simplifies
50806         things.  Use new dirchownmod function to do owner and mode changes.
50807         * lib/mkdir-p.h: Likewise.
50808         * lib/modechange.c (octal_to_mode): New function.
50809         (struct mode_change): New member mentioned.
50810         (make_node_op_equals): New arg mentioned.  All callers changed.
50811         (mode_compile): Keep track of which mode bits the user has explicitly
50812         mentioned.
50813         (mode_adjust): New arg DIR, so that we implement the X op correctly.
50814         New arg PMODE_BITS, to keep track of which mode bits the user
50815         mentioned; it treats S_ISUID and S_ISGID speciall.
50816         All callers changed.
50817         * lib/modechange.h: Likewise.
50818
50819 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
50820
50821         * MODULES.html.sh: Add mkancestors.
50822         * modules/mkancesdirs: New module.
50823         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
50824         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
50825         The chdir-safer and afs files are now orphans; I'll remove them
50826         unless someone speaks up.
50827         Add lib/dirchownmod.c, lib/dirchownmod.h.
50828         (Depends-on): Remove alloca, chown, save-cwd, dirname.
50829         Add lchown, mkancesdirs.
50830         (Maintainer): Add self.
50831
50832 2006-07-15  Karl Berry  <karl@gnu.org>
50833
50834         * gnulib-tool: help message wording/arrangement.
50835
50836 2006-07-14  Simon Josefsson  <jas@extundo.com>
50837
50838         * doc/gnulib.texi (Libtool and Windows): New section.
50839
50840 2006-07-12  Simon Josefsson  <jas@extundo.com>
50841
50842         * modules/gendocs (License): Fix license, approved by Karl.
50843
50844 2006-07-12  Eric Blake  <ebb9@byu.net>
50845
50846         * MODULES.html.sh: Add gendocs.
50847
50848 2006-07-11  Eric Blake  <ebb9@byu.net>
50849
50850         * modules/fdl: New module, to install doc/fdl.texi.
50851         * MODULES.html.sh: Add new section for documentation modules.
50852         * gnulib-tool: Avoid space-tab.
50853         (--doc-base): New option, to manage files from doc.
50854
50855 2006-07-11  Eric Blake  <ebb9@byu.net>
50856
50857         * m4/absolute-header.m4: Fix comments to match recent change.
50858
50859 2006-07-11  Eric Blake  <ebb9@byu.net>
50860
50861         * gnulib-tool: List --doc-base before --tests-base.
50862
50863 2006-07-11  Derek R. Price  <derek@ximbiot.com>
50864
50865         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
50866
50867 2006-07-11  Bruno Haible  <bruno@clisp.org>
50868
50869         * README: Mention where to put documentation.
50870
50871 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50872
50873         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
50874
50875 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
50876
50877         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
50878         to stdint.m4.
50879
50880 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
50881
50882         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
50883         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
50884         "no/such/file/stdint.h" when there is no such file, so that
50885         the resulting C code can be parsed by dodgy compilers.
50886         Problems reported by Bob Proulx.
50887
50888 2006-07-10  Derek R. Price  <derek@ximbiot.com>
50889
50890         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
50891         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
50892         macros into the GNU _D_EXACT_NAMLEN.
50893         * lib/savedir.c:  Likewise.
50894         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
50895
50896 2006-07-10  Derek R. Price  <derek@ximbiot.com>
50897         and Paul Eggert  <eggert@cs.ucla.edu>
50898
50899         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
50900         * m4/savedir.m4:
50901         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
50902         macros into the GNU _D_EXACT_NAMLEN.
50903
50904 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50905
50906         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
50907         around the absolute name, to work around a problem with the HP-UX
50908         11.23 native C compiler, reported by Bob Proulx.
50909
50910 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50911
50912         * doc/maintain.texi, make-stds.texi: Sync from
50913         <http://savannah.gnu.org/projects/gnustandards>.
50914
50915 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50916
50917         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
50918
50919 2006-07-09  Jim Meyering  <jim@meyering.net>
50920
50921         * m4/glob.m4: Remove a doubled word in a comment.
50922
50923 2006-07-09  Jim Meyering  <jim@meyering.net>
50924
50925         * lib/argp-pv.c: Remove a doubled word in a comment.
50926         * lib/check-version.c (check_version): Likewise.
50927         * lib/javacomp.c (compile_java_class): Likewise.
50928
50929 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
50930
50931         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
50932         for the benefit of people using Autoconf 2.60.  If you want to
50933         support older Autoconf versions you can copy m4/onceonly_2_57.m4
50934         (or m4/onceonly.m4, if pre-2.57) manually.
50935
50936 2006-07-08  Jim Meyering  <jim@meyering.net>
50937
50938         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
50939         comment.
50940         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
50941         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
50942         comment.
50943
50944 2006-07-08  Jim Meyering  <jim@meyering.net>
50945
50946         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
50947
50948 2006-07-07  Simon Josefsson  <jas@extundo.com>
50949
50950         * tests/test-crc.c: Change expected crc value, the test vector
50951         were probably computed using the old broken crc.c?
50952
50953 2006-07-06  Simon Josefsson  <jas@extundo.com>
50954
50955         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
50956         now the canonical place for the M4 file).
50957
50958         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
50959         from the sys_socket dependency now.
50960
50961         * modules/inet_pton (Files): Ditto.
50962
50963         * modules/inet_ntop (Files): Ditto.
50964
50965 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
50966
50967         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
50968         not gl_PREREQ_GETUSERSHELL.
50969
50970 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50971
50972         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
50973         with only one argument, for Autoconf 2.60.
50974         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
50975         expand to nothing, so add a shell command to avoid syntax error.
50976         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
50977
50978 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50979
50980         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
50981
50982 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50983
50984         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
50985         no longer needed.  Check for isblank decl.
50986         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
50987         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
50988         of existence.
50989
50990 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50991
50992         * lib/getloadavg.c: Use __VMS, not VMS.
50993         * lib/getopt.c: Likewise.
50994         * lib/getpagesize.h: Likewise.
50995         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
50996         and probably does not work.
50997
50998 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50999
51000         * lib/.cppi-disable: Add wcwidth.
51001         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
51002         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
51003         (ISGRAPH): Remove.  All uses changed to isgraph.
51004         (FOLD) [!defined _LIBC]: Remove special case.
51005         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
51006         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
51007         HAVE_ISBLANK.
51008         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
51009         case.
51010
51011 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
51012
51013         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
51014         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
51015         brackets.  Other minor changes to suppress some compiler
51016         warnings.
51017
51018 2006-07-06  Derek R. Price  <derek@ximbiot.com>
51019         and Paul Eggert  <eggert@cs.ucla.edu>
51020
51021         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
51022         of invoking obsolescent AC_HEADER_DIRENT macro.
51023         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
51024         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
51025         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
51026         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
51027         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
51028         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
51029         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
51030         * m4/readdir.m4: Remove; no longer needed.
51031
51032 2006-07-06  Derek R. Price  <derek@ximbiot.com>
51033         and Paul Eggert  <eggert@cs.ucla.edu>
51034
51035         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
51036         Don't worry about this obsolete case any more.
51037         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
51038         directories.
51039         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
51040         worry about this obsolete case any more.
51041         * lib/fts.c: Likewise.
51042         * lib/getcwd.c: Likewise.
51043         * lib/glob.h: Likewise.
51044         * lib/savedir.c: Likewise.
51045
51046 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
51047
51048         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
51049         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
51050         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
51051         needed.
51052         All uses removed.
51053         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
51054         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
51055         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
51056         needed.
51057         * m4/getdate.m4 (gl_GETDATE): Likewise.
51058         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
51059         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
51060         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
51061         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
51062         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
51063         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
51064         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
51065         needed.
51066
51067 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
51068
51069         * lib/memcasecmp.c: Include <limits.h>.
51070         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
51071         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
51072         Don't assume isdigit succeeds only on '0' through '9'.
51073
51074 2006-07-05  Eric Blake  <ebb9@byu.net>
51075
51076         * modules/getaddrinfo (Depends-on): Add snprintf.
51077
51078 2006-07-05  Eric Blake  <ebb9@byu.net>
51079
51080         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
51081         to avoid 'header present but could not be compiled' on cygwin.
51082
51083 2006-07-05  Eric Blake  <ebb9@byu.net>
51084
51085         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
51086         missing from netdb.h.
51087         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
51088
51089 2006-07-05  Derek R. Price  <derek@ximbiot.com>
51090
51091         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
51092         no longer needed.
51093         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
51094         * m4/getdate.m4 (gl_GETDATE): Likewise.
51095         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
51096         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
51097         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
51098         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
51099         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
51100
51101 2006-07-05  Derek R. Price  <derek@ximbiot.com>
51102
51103         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
51104         All uses of is_space replaced by isspace.
51105         * lib/exit.h: Don't talk about STDC_HEADERS.
51106         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
51107         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
51108         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
51109         replaced by isprint etc.
51110         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
51111         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
51112         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
51113         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
51114         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
51115         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
51116
51117 2006-07-05  Bruno Haible  <bruno@clisp.org>
51118
51119         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
51120         the function exists, before testing against AIX.
51121         Reported by Martin Lambers <marlam@marlam.de>.
51122
51123 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
51124
51125         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
51126         From Mark D. Baushke.
51127
51128 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
51129
51130         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
51131         to the absolute name, not just one, to bypass Sun C 5.8's
51132         "warning: #include of /usr/include/... may be non-portable".
51133
51134 2006-07-04  Eric Blake  <ebb9@byu.net>
51135
51136         * modules/dirname-tests: New test module.
51137         * tests/test-dirname.c: New file, replacing dirname.c
51138         TEST_DIRNAME section that was recently deleted.
51139
51140 2006-07-04  Bruno Haible  <bruno@clisp.org>
51141
51142         Assume ANSI C header files and <ctype.h> functions.
51143         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
51144         (mbsnwidth): Use isprint, iscntrl instead.
51145
51146 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51147
51148         Merge from coreutils.
51149         * MODULES.html.sh: Add xstrtold.
51150         * modules/xstrtold: New file.
51151         * modules/cycle-check (Files): Add lib/same-inode.h.
51152         * modules/dirname (Files): Add m4/double-slash-root.m4.
51153         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
51154         * modules/mkdir-p (Files): Add lib/same-inode.h.
51155         * modules/same (Files): Add lib/same-inode.h.
51156
51157 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51158
51159         * m4/absolute-header.m4: Renamed from full-header-path.m4.
51160         This is to keep the terminology clean; POSIX talks about
51161         "absolute pathnames", not "full pathnames", but the GNU
51162         Coding Standards say to use "path" for something else;
51163         so use "absolute" to keep both sides happy.
51164         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
51165         Set gl_absolute_header, not gl_full_header_path.
51166         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
51167         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
51168         All uses changed.
51169
51170         Merge from coreutils.
51171
51172         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
51173
51174         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
51175         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
51176         want to require the building of c-strtod.o.
51177         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
51178         needs -lm directly.
51179         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
51180
51181         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
51182
51183         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
51184         --as-needed option if available.  Problem reported by Albert Chin in
51185         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
51186         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
51187         cc merely issues a bunch of annoying warnings for --as-needed
51188         (this problem was reported by Bob Proulx).  Also, try linking with
51189         -lm to detect a bug in binutils 2.16 (this problem was reported
51190         by Ralf Wildenhues).
51191
51192         2006-06-18  Jim Meyering  <jim@meyering.net>
51193
51194         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
51195         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
51196         macro.
51197         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
51198         also check for glibc-2.4's abort-inducing bug.
51199
51200         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
51201         Low-probability clean-up should be to use rmdir to get rid of
51202         the just-created directory, not unlink.
51203
51204         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
51205         configure fail, and request a bug report to inform us about it.
51206         Add a comment that, barring reports to the contrary, in 2007 we'll
51207         assume ftruncate is universally available.
51208
51209         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
51210
51211         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
51212
51213         2006-03-12  Jim Meyering  <jim@meyering.net>
51214
51215         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
51216         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
51217         * m4/same.m4 (gl_SAME): Likewise.
51218         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
51219
51220         2006-03-11  Eric Blake  <ebb9@byu.net>
51221
51222         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
51223         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
51224         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
51225         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
51226
51227 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51228
51229         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
51230         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
51231         reported by Mark D. Baushke, one in
51232         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
51233
51234         Merge from coreutils.
51235
51236         * lib/.cppi-disable: Add stdint_.h.
51237         * lib/.cvsignore: Add stdint.h.
51238
51239         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
51240
51241         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
51242         both double and long double versions.
51243         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
51244         * lib/xstrtold.c: New file.
51245         * lib/xstrtod.h (xstrtold): New decl.
51246
51247         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
51248
51249         * lib/filemode.c (setst): Remove.
51250         (strmode): Rewrite to avoid setst.  This makes the code shorter,
51251         (arguably) clearer, and the generated code is a bit smaller on my
51252         Debian GNU/Linux stable x86 host.
51253
51254         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
51255
51256         * lib/filemode.c: Include "filemode.h" first, to test the interface.
51257         Assume that filemode.h includes sys/types.h and sys/stat.h.
51258         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
51259         (ftypelet): Reorder to put common cases first, for efficiency.
51260         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
51261         to do 'M'.
51262         (strmode): Renamed from mode_string, and now stores 12 bytes instead
51263         of 10, for compatibility with FreeBSD.  All callers changed.
51264         (filemodestring): Now stores 12 bytes instead of 10, and sets file
51265         types that can't be deduced solely from st_mode.  First arg is now a
51266         const pointer.
51267         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
51268         (strmode): Renamed from mode_string.
51269         (filemodestring): New decl.
51270         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
51271         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
51272         needed.
51273         (S_ISPORT, S_ISWHT): New macros, if not already defined.
51274
51275         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
51276
51277         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
51278         fsusage.h now does that.  Include fsusage.h first, to test interface.
51279         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
51280         at most one method (the old code could have generated decls that
51281         didn't conform to C89, not that this was ever exercised).
51282         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
51283
51284         2006-03-19  Jim Meyering  <jim@meyering.net>
51285
51286         Work even in a chroot where d_ino values for entries in "/"
51287         don't match the stat.st_ino values for the same names.
51288         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
51289         number, iterate through all entries again, using lstat instead.
51290         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
51291         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
51292
51293         * lib/getcwd.c (__getcwd): Clarify a comment.
51294         Use memcpy in place of a call to strcpy.
51295
51296         2006-03-12  Jim Meyering  <jim@meyering.net>
51297
51298         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
51299         matches that of the current directory (which we're about to chdir ".."
51300         out of), then save the dev-ino of the parent, instead.
51301
51302         * lib/same-inode.h (SAME_INODE): New file/macro.
51303         * lib/chdir-safer.c (SAME_INODE): Remove definition.
51304         Include "same-inode.h", instead.
51305         * lib/same.c: Likewise.
51306         * lib/cycle-check.h: Include "same-inode.h".
51307         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
51308         * lib/cycle-check.c (SAME_INODE): Remove definition.
51309         * lib/root-dev-ino.h: Include "same-inode.h".
51310
51311         2006-03-11  Eric Blake  <ebb9@byu.net>
51312
51313         * lib/same.c (same_name): s/base_name/last_component/
51314         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
51315         * lib/filenamecat.c (file_name_concat): Likewise.
51316
51317         2006-03-11  Eric Blake  <ebb9@byu.net>,
51318                     Paul Eggert  <eggert@cs.ucla.edu>
51319
51320         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
51321         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
51322         drive prefix.
51323         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
51324         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
51325         (last_component): New method.
51326         * lib/dirname.c (dir_len): Determine when drive letters need a
51327         subsequent slash.  Preserve // when it is special.
51328         (dir_name): Don't append dot when drive letter is absolute.
51329         [TEST_DIRNAME]: Move into a full-blown gnulib test.
51330         * lib/basename.c (base_name): New semantics - malloc the result.
51331         Preserve // when it is special.  Preserve relative files that look
51332         like drive letters.
51333         (base_len): Preserve // when it is special.
51334         (last_component): New method, similar to old base_name semantics.
51335         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
51336         base_name.  Strip redundant slashes from ///.
51337
51338 2006-07-03  Jim Meyering  <jim@meyering.net>
51339
51340         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
51341         macro is used before the first cycle_check call.
51342
51343 2006-07-03  Eric Blake  <ebb9@byu.net>
51344
51345         * modules/dirname (Depends-on): Add xstrndup.
51346
51347 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
51348
51349         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
51350         test cases, so that config.log is a bit easier to follow.
51351
51352 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
51353
51354         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
51355         both are 64 bits, since this seems to be the tradition, and this
51356         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
51357         we ever run into a host that prefers long long to long in this
51358         case, we'll need another configure-time test.  Problem reported by
51359         Jim Meyering.
51360
51361 2006-07-02  Eric Blake  <ebb9@byu.net>
51362
51363         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
51364
51365 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
51366
51367         * modules/inttypes (Depends-on): No longer depends on stdint.
51368         * modules/stdint (Description): Say more about assumptions.
51369         Say that the fast types might differ.  Say macros are used.
51370         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
51371         (Makefile.am): Revise list of substituted symbols to match
51372         new stdint.m4.
51373         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
51374         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
51375         * tests/test-stdint.c (verify_same_types)
51376         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
51377         the code conforms to C99/C89.
51378         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
51379         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
51380
51381 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
51382
51383         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
51384         but fix a bug, by requiring at least 64 bits.
51385         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
51386         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
51387         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
51388         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
51389
51390         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
51391         changes.  Make 2.59 a prerequisite.  Check and substitute for
51392         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
51393         inttypes.h.  Do not use special include files; just use the
51394         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
51395         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
51396         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
51397         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
51398         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
51399         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
51400         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
51401         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
51402         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
51403         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
51404         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
51405         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
51406         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
51407         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
51408         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
51409         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
51410         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
51411         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
51412         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
51413         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
51414         WINT_MAX.  Check for C99 conformance more strictly, by detecting
51415         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
51416         not check for things that C99 does not require, e.g., int8_t.  If
51417         a test isn't needed unless <stdint.h> isn't working, and is
51418         unlikely to be needed for any other reason, then don't do it
51419         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
51420         size_t, since we assume C89 freestanding at least.  Do not check
51421         for sig_atomic_t, wchar_t, or wint_t, since the code now does
51422         the right thing even if the types are not defined.  Instead use:
51423         (gl_STDINT_TYPE_PROPERTIES): New macro.
51424         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
51425         testing whether <sys/types.h> clashes, as Autoconf does this for
51426         us now.  All uses removed.
51427         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
51428         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
51429         (gl_CHECK_TYPE_SAME):
51430         Remove; no longer needed.
51431         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
51432         exists, since we'll return 0 anyway in that case.
51433         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
51434
51435 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
51436
51437         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
51438         possible collision with system files.
51439         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
51440         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
51441         WCHAR_MIN and WCHAR_MAX in this case.
51442         (<stddef.h>): Do not include; no longer needed.
51443         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
51444         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
51445         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
51446         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
51447         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
51448         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
51449         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
51450         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
51451         !defined(__c99))]: Include in this case too, since it's harmless
51452         now.
51453         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
51454         dangerous to do so.
51455         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
51456         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
51457         (_STDINT_MIN, _STDINT_MAX): New macros.
51458         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
51459         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
51460         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
51461         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
51462         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
51463         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
51464         macros, not typedefs; this simplifies things quite a bit.
51465         Use long int for all types narrower than int64_t.
51466         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
51467         Define in terms of long long int or int64_t or long int,
51468         not int64_t or int32_t.  This saves some compile-time testing.
51469         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
51470         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
51471         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
51472         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
51473         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
51474         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
51475         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
51476         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
51477         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
51478         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
51479         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
51480         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
51481         undef any previous version and define our own version, for
51482         simplicity and consistency with the new macros for types.
51483         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
51484         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
51485         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
51486         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
51487         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
51488         @WINT_T_SUFFIX@ to keep things simple here.
51489         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
51490         Simplify by assuming typical 8/16/32/64 host, since we're
51491         already doing that elsewhere anyway.
51492         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
51493         and assume long long int is 64 bits if available.  This
51494         speeds up 'configure'.
51495
51496 2006-07-01  Eric Blake  <ebb9@byu.net>
51497
51498         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
51499         Reported by Andreas Buening.
51500
51501 2006-07-01  Eric Blake  <ebb9@byu.net>
51502
51503         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
51504
51505 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
51506
51507         * lib/getaddrinfo.c: fixed typo
51508
51509 2006-06-29  Jim Meyering  <jim@meyering.net>
51510
51511         * modules/strftime (Maintainer): Add my name, since with the
51512         FPRINTFTIME changes strftime.c has forked from glibc.
51513
51514 2006-06-29  Eric Blake  <ebb9@byu.net>
51515
51516         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
51517
51518 2006-06-29  Eric Blake  <ebb9@byu.net>
51519
51520         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
51521
51522 2006-06-29  Eric Blake  <ebb9@byu.net>
51523
51524         * lib/stat_.h: New file.
51525
51526 2006-06-29  Eric Blake  <ebb9@byu.net>
51527
51528         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
51529         unused static function.
51530
51531 2006-06-29  Eric Blake  <ebb9@byu.net>
51532
51533         * doc/functions.texi (Function Portability): Document missing lstat
51534         on mingw.
51535
51536 2006-06-29  Eric Blake  <ebb9@byu.net>
51537
51538         * MODULES.html.sh: Add sys_stat.
51539         * modules/sys_stat: New module.
51540         * modules/mkstemp (Depends-on): Add sys_stat.
51541
51542 2006-06-29  Derek R. Price  <derek@ximbiot.com>
51543
51544         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
51545
51546 2006-06-29  Derek R. Price  <derek@ximbiot.com>
51547
51548         * m4/c-bs-a.m4: Removed.
51549
51550 2006-06-29  Derek R. Price  <derek@ximbiot.com>
51551
51552         * lib/strftime.c: Assume strftime() exists.
51553
51554 2006-06-29  Derek Price  <derek@ximbiot.com>
51555
51556         * modules/c-bs-a: Removed - \a is C89.
51557         * MODULES.html.sh: Remove c-bs-a.
51558
51559 2006-06-29  Bruno Haible  <bruno@clisp.org>
51560
51561         * modules/wcwidth (License): Change to LGPL.
51562
51563 2006-06-28  Simon Josefsson  <jas@extundo.com>
51564
51565         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
51566         on _WIN32.
51567
51568         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
51569         getnameinfo.
51570
51571 2006-06-28  Simon Josefsson  <jas@extundo.com>
51572
51573         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
51574
51575 2006-06-28  Simon Josefsson  <jas@extundo.com>
51576
51577         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
51578         functions there.  It will succeed on Windows XP, but on Windows
51579         2000 and (presumably) earlier, it will fail, and use the internal
51580         re-implementation.
51581         (use_win32_p): New function.
51582         (getaddrinfo): Use strtoul on servname, to support numeric ports.
51583         Support AI_NUMERICSERV to disable getservbyname.
51584         (getnameinfo): New function, only supports
51585         NI_NUMERICHOST|NI_NUMERICSERV for now.
51586
51587         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
51588         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
51589         getnameinfo.
51590
51591 2006-06-28  Eric Blake  <ebb9@byu.net>
51592
51593         * modules/wcwidth: New file.
51594         * modules/mbchar (Depends-on): Add wcwidth.
51595         * modules/mbswidth (Depends-on): Add wcwidth.
51596         * MODULES.html.sh: Add wcwidth.
51597
51598 2006-06-28  Eric Blake  <ebb9@byu.net>
51599
51600         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
51601         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
51602
51603 2006-06-28  Eric Blake  <ebb9@byu.net>
51604
51605         * lib/xvasprintf.h: Fix comments.
51606
51607 2006-06-28  Eric Blake  <ebb9@byu.net>
51608
51609         * lib/mbchar.h (wcwidth): Include wcwidth.h.
51610         * lib/mbswidth.c (wcwidth): Move from here...
51611         * lib/wcwidth.h: ...to this new file.
51612
51613 2006-06-28  Derek R. Price  <derek@ximbiot.com>
51614
51615         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
51616
51617         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
51618         it's obsolete.
51619         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
51620
51621 2006-06-28  Derek R. Price  <derek@ximbiot.com>
51622
51623         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
51624         Autoconf 2.60 says this stuff was obsolete.
51625
51626 2006-06-28  Bruno Haible  <bruno@clisp.org>
51627
51628         * modules/wcwidth (Files): Add m4/wchar_t.m4.
51629
51630 2006-06-28  Bruno Haible  <bruno@clisp.org>
51631
51632         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
51633         gt_TYPE_WCHAR_T.
51634
51635 2006-06-28  Bruno Haible  <bruno@clisp.org>
51636
51637         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
51638         declaration for wcwidth.
51639         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
51640
51641 2006-06-28  Bruno Haible  <bruno@clisp.org>
51642
51643         * lib/mkdtemp.c [MINGW]: Include <io.h>.
51644         (mkdir): Define using _mkdir.
51645
51646 2006-06-28  Bruno Haible  <bruno@clisp.org>
51647
51648         * lib/getaddrinfo.h: Fix POSIX URL.
51649         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
51650         _WIN32.
51651         (use_win32_p): Make static.
51652         (getaddrinfo): Reject service name if it is empty or does not consist
51653         solely of decimal digits, or if its value is > 65535.
51654         (getnameinfo): Remove useless casts.
51655
51656 2006-06-27  Simon Josefsson  <jas@extundo.com>
51657
51658         * modules/sys_select: New file, suggested by Bruno Haible, Paul
51659         Eggert and Martin Lambers.
51660
51661 2006-06-27  Simon Josefsson  <jas@extundo.com>
51662
51663         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
51664         Eggert and Martin Lambers.
51665
51666 2006-06-27  Bruno Haible  <bruno@clisp.org>
51667
51668         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
51669         result to 0, not to empty.
51670         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
51671
51672 2006-06-27  Bruno Haible  <bruno@clisp.org>
51673
51674         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
51675
51676 2006-06-26  Simon Josefsson  <jas@extundo.com>
51677
51678         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
51679         present.
51680
51681 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
51682
51683         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
51684         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
51685         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
51686
51687 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
51688
51689         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
51690
51691 2006-06-26  Bruno Haible  <bruno@clisp.org>
51692
51693         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
51694
51695 2006-06-26  Bruno Haible  <bruno@clisp.org>
51696
51697         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
51698
51699 2006-06-26  Bruno Haible  <bruno@clisp.org>
51700
51701         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
51702         SGI C compiler in pre-C99 mode.
51703         Suggested by Mark D. Baushke and Larry Jones.
51704
51705 2006-06-26  Bruno Haible  <bruno@clisp.org>
51706
51707         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
51708         WCHAR_MAX.
51709         Reported by Mark D. Baushke and Larry Jones.
51710
51711 2006-06-26  Bruno Haible  <bruno@clisp.org>
51712
51713         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
51714         in pre-C99 mode.
51715         Suggested by Mark D. Baushke and Larry Jones.
51716
51717 2006-06-23  Simon Josefsson  <jas@extundo.com>
51718             Bruno Haible  <bruno@clisp.org>
51719
51720         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
51721         Emit mostlyclean-local rule.
51722         (func_emit_tests_Makefile_am): Likewise.
51723         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
51724
51725 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
51726
51727         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
51728
51729 2006-06-23  Bruno Haible  <bruno@clisp.org>
51730
51731         * tests/test-stdint.c: Update to match ISO C 99 Technical
51732         Corrigendum 1.
51733
51734 2006-06-23  Bruno Haible  <bruno@clisp.org>
51735
51736         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
51737
51738 2006-06-23  Bruno Haible  <bruno@clisp.org>
51739
51740         * lib/stdint_.h: Treat IRIX like OpenBSD.
51741
51742 2006-06-23  Bruno Haible  <bruno@clisp.org>
51743
51744         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
51745         ISO C 99 Technical Corrigendum 1.
51746
51747 2006-06-22  Simon Josefsson  <jas@extundo.com>
51748
51749         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
51750         MinGW.
51751
51752 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51753
51754         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
51755         needed.  Some compiler complained about some of them.  Problem reported
51756         by Larry Jones in
51757         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
51758
51759 2006-06-21  Simon Josefsson  <jas@extundo.com>
51760
51761         * tests/test-getaddrinfo.c: New file.
51762
51763         * modules/getaddrinfo-tests: New file.
51764
51765         * MODULES.html.sh: Add inet_pton.
51766
51767         * modules/inet_pton: New file.
51768
51769 2006-06-21  Simon Josefsson  <jas@extundo.com>
51770
51771         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
51772         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
51773         of using the (limited) gnulib implementation on Windows XP.
51774
51775         * m4/inet_pton.m4: New file.
51776
51777 2006-06-21  Simon Josefsson  <jas@extundo.com>
51778
51779         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
51780         variable.
51781
51782         * lib/socket_.h: Don't define WINVER.
51783
51784         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
51785         slightly modified to work in gnulib.
51786
51787 2006-06-21  Simon Josefsson  <jas@extundo.com>
51788
51789         * doc/gnulib.texi (Windows sockets): Add.
51790
51791 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
51792
51793         * lib/read-file.c (fread_file): Start with buffer allocation of
51794         0 bytes rather than 1 byte; this simplifies the code.
51795         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
51796         code to free buffer and save/restore errno.
51797         (internal_read_file): Remove unused local.
51798
51799 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
51800
51801         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
51802         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
51803         Problem reported by Denis Excoffier in
51804         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
51805
51806 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51807
51808         * modules/sys_socket, modules/socklen: Include sys/types since
51809         FreeBSD 4.x's sys/socket.h needs it.
51810
51811 2006-06-19  Simon Josefsson  <jas@extundo.com>
51812
51813         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
51814
51815 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
51816
51817         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
51818
51819 2006-06-19  Bruno Haible  <bruno@clisp.org>
51820
51821         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
51822         and FULL_PATH_INTTYPES_H in angle brackets.
51823         Reported by Mark D. Baushke <mdb@gnu.org>.
51824
51825 2006-06-17  Eric Blake  <ebb9@byu.net>
51826
51827         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
51828         errno.
51829
51830 2006-06-17  Bruno Haible  <bruno@clisp.org>
51831
51832         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
51833         <sys/inttypes.h>.
51834
51835 2006-06-17  Bruno Haible  <bruno@clisp.org>
51836
51837         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
51838         whether errno is declared. Assume <errno.h> declares errno.
51839
51840 2006-06-17  Bruno Haible  <bruno@clisp.org>
51841
51842         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
51843
51844 2006-06-17  Bruno Haible  <bruno@clisp.org>
51845
51846         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
51847         problem on Solaris 2.5.1.
51848
51849 2006-06-16  Eric Blake  <ebb9@byu.net>
51850
51851         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
51852         * lib/unicodeio.c [!defined errno]: Likewise.
51853         * lib/strtol.c [!defined errno]: Likewise.
51854         * lib/strtod.c [!defined errno]: Likewise.
51855
51856 2006-06-15  Eric Blake  <ebb9@byu.net>
51857
51858         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
51859
51860 2006-06-15  Eric Blake  <ebb9@byu.net>
51861
51862         * config/srclist.txt (ssize_t.m4): Lose sync.
51863
51864 2006-06-15  Bruno Haible  <bruno@clisp.org>
51865
51866         * modules/stdint (Files): Include m4/full-header-path.m4,
51867         m4/size_max.m4, m4/wchar_t.m4.
51868         (Makefile.am): Many more substitutions.
51869         * modules/stdint-tests: New file.
51870         * tests/test-stdint.c: New file.
51871
51872 2006-06-15  Bruno Haible  <bruno@clisp.org>
51873
51874         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
51875         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
51876         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
51877         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
51878         gl_CHECK_TYPE_SAME): New macros.
51879
51880 2006-06-15  Bruno Haible  <bruno@clisp.org>
51881
51882         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
51883
51884 2006-06-15  Bruno Haible  <bruno@clisp.org>
51885
51886         * lib/stdint_.h: Rewritten to be fully auto-configured.
51887         Fixes bug on HP-UX/IA64.
51888
51889 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
51890
51891         * lib/getdate.y (__attribute__): Don't define if already defined.
51892         Problem reported by Larry Jones.
51893         * lib/utimens.c (__attribute__): Likewise.
51894
51895 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
51896
51897         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
51898         reported by Andreas Schwab.
51899
51900 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51901             Bruno Haible  <bruno@clisp.org>
51902
51903         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
51904         check for the declaration of strnlen and a run test that exposes the
51905         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
51906         rpl_strndup.
51907
51908 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51909             Bruno Haible  <bruno@clisp.org>
51910
51911         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
51912
51913 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51914
51915         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
51916         compile test, for Tru64 4.0D.
51917
51918 2006-05-28  Karl Berry  <karl@gnu.org>
51919
51920         * config/srclist.txt (printf-args.c): lose sync.
51921
51922 2006-05-26  Martin Lambers  <marlam@marlam.de>
51923
51924         * lib/getpass.c: Updates the test for the native W32 API, and adds
51925         missing includes, thus fixing compilation warnings.
51926
51927 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
51928
51929         * lib/exclude.c (exclude_fnmatch): New function.
51930         (excluded_file_name): Call exclude_fnmatch.
51931         * lib/exclude.h (excluded_file_name): New prototype
51932
51933 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
51934
51935         * lib/tempname.c (small_open, large_open): New macros.
51936         (__open, __open64) [!_LIBC]: Remove.
51937         (__gen_tempname): Use small_open and large_open instead of __open
51938         and __open64.  This fixes a portability bug on HP-UX 11.11i
51939         reported by Simon Wing-Tang in
51940         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
51941
51942 2006-05-24  Bruno Haible  <bruno@clisp.org>
51943
51944         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
51945         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
51946         Reported by Thorsten Maerz <torte@netztorte.de> via
51947         Aaron Stone <aaron@serendipity.cx>.
51948
51949 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
51950
51951         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
51952         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
51953         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
51954         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
51955         not really conditional on the cache.
51956         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
51957
51958 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
51959
51960         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
51961         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
51962         (my_usleep): Don't mishandle maximum value.
51963
51964 2006-05-19  Jim Meyering  <jim@meyering.net>
51965
51966         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
51967
51968 2006-05-17  Bruno Haible  <bruno@clisp.org>
51969
51970         Cygwin portability.
51971         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
51972
51973 2006-05-17  Bruno Haible  <bruno@clisp.org>
51974
51975         * lib/stdint_.h: Fix recognition of Cygwin.
51976
51977 2006-05-15  Bruno Haible  <bruno@clisp.org>
51978
51979         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
51980         on libtool patch by Ralf Wildenhues.
51981
51982 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
51983
51984         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
51985         test for C99 conformance; (bool) 0.5 is an integer constant
51986         expression, but (bool) -0.5 is not.  Problem reported by Fedor
51987         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
51988
51989 2006-05-11  Simon Josefsson  <jas@extundo.com>
51990
51991         * m4/xvasprintf.m4: Fix obvious typo.
51992
51993 2006-05-11  Jim Meyering  <jim@meyering.net>
51994
51995         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
51996         James Lemley.
51997
51998 2006-05-10  Simon Josefsson  <jas@extundo.com>
51999
52000         * lib/md4.c: Typo fix, update copyright years.
52001         (K1, K2): Don't use L because it turn computations into 64-bit on
52002         64-bit platforms.
52003
52004 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
52005
52006         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
52007         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
52008         unwanted sign propagation, e.g., on hosts with 64-bit int.
52009         There still are some problems with reeelly weird theoretical hosts
52010         (e.g., 33-bit int) but it's not worth worrying about now.
52011         * lib/sha1.c (rol): Likewise.
52012         (K1, K2, K3, K4): Remove unnecessary L suffix.
52013
52014 2006-05-10  Bruno Haible  <bruno@clisp.org>
52015
52016         * lib/des.c: Cast to avoid warnings.
52017
52018 2006-05-09  Bruno Haible  <bruno@clisp.org>
52019
52020         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
52021         (Depends-on): Depend also on xsize, stdarg.
52022         (configure.ac): Add gl_XVASPRINTF.
52023
52024 2006-05-09  Bruno Haible  <bruno@clisp.org>
52025
52026         * m4/xvasprintf.m4: New file.
52027
52028 2006-05-09  Bruno Haible  <bruno@clisp.org>
52029
52030         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
52031         (EOVERFLOW): Define fallback value.
52032         (xstrcat): New function.
52033         (xvasprintf): Recognize the special case of a string concatenation.
52034
52035 2006-05-08  Eric Blake  <ebb9@byu.net>
52036
52037         * gnulib-tool (func_version): Base copyright year on CVS date.
52038         (func_emit_copyright_notice): New function.
52039         (func_emit_lib_Makefile_am): Use it.
52040         (func_emit_tests_Makefile_am): Likewise.
52041         (func_import): Likewise.
52042
52043 2006-05-08  Bruno Haible  <bruno@clisp.org>
52044
52045         * modules/stdarg: New file.
52046         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
52047
52048 2006-05-08  Bruno Haible  <bruno@clisp.org>
52049
52050         * m4/stdarg.m4: New file, from GNU gettext.
52051
52052 2006-05-08  Bruno Haible  <bruno@clisp.org>
52053
52054         * config/srclist.txt (build-aux/config.rpath): different from latest
52055         release.
52056
52057 2006-05-08  Bruno Haible  <bruno@clisp.org>
52058
52059         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
52060
52061 2006-05-05  Jim Meyering  <jim@meyering.net>
52062
52063         * m4/warning.m4: New file, derived from bison's file by the same name.
52064
52065 2006-05-03  Bruno Haible  <bruno@clisp.org>
52066
52067         * lib/stdint_.h: Shorter URL.
52068         * lib/inttypes.h: Likewise.
52069
52070 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
52071
52072         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
52073
52074 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
52075
52076         * lib/verify.h: Document the internals better.  Most of this change
52077         was written by Bruno Haible.
52078
52079 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
52080
52081         * doc/verify.texi: New file, partly based on a proposal by
52082         Bruno Haible.
52083
52084 2006-05-02  Bruno Haible  <bruno@clisp.org>
52085
52086         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
52087         test from here...
52088         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
52089
52090 2006-04-29  Bruno Haible  <bruno@clisp.org>
52091
52092         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
52093         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
52094
52095 2006-04-29  Bruno Haible  <bruno@clisp.org>
52096
52097         * gnulib-tool: Make --update option actually work.
52098
52099 2006-04-29  Bruno Haible  <bruno@clisp.org>
52100
52101         * doc/gcd.texi: New file.
52102         * doc/gnulib.texi: Include it.
52103
52104 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
52105
52106         * lib/getdate.y (get_date): When adding relative date, start with the
52107         initial time, not with the result of the first mktime call.
52108
52109 2006-04-25  Bruno Haible  <bruno@clisp.org>
52110
52111         * gnulib-tool (func_import): Output the include directives in three
52112         blocks, sorted separately.
52113         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52114
52115 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
52116
52117         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
52118         to define main with arguments, for C++.  Reported by Eric Blake.
52119         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
52120         Prefer 'int main ()' to 'int main (void)', for C++.
52121         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
52122         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
52123         for 'main', for C99 and C++.
52124
52125 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
52126
52127         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
52128         Don't assume that exit status -1 is valid.
52129         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
52130         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
52131         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
52132         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
52133         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
52134         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
52135         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
52136         functions can be used without declaring them, or that you can
52137         exit with status -1.
52138         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
52139
52140 2006-04-24  Karl Berry  <karl@gnu.org>
52141
52142         * config/srclist.txt (longdouble.m4): sync lost.
52143
52144 2006-04-24  Eric Blake  <ebb9@byu.net>
52145
52146         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
52147
52148 2006-04-24  Bruno Haible  <bruno@clisp.org>
52149
52150         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
52151         poll() implementation in AIX.
52152         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52153
52154 2006-04-24  Bruno Haible  <bruno@clisp.org>
52155
52156         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
52157         assigned exactly once.
52158
52159 2006-04-23  Claudio Fontana  <claudio@gnu.org>
52160             Bruno Haible  <bruno@clisp.org>
52161
52162         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
52163         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
52164         for AM_CPPFLAGS.
52165
52166 2006-04-23  Bruno Haible  <bruno@clisp.org>
52167
52168         * modules/copy-file: Depend on unistd.
52169         * modules/execute: Likewise.
52170         * modules/fatal-signal: Likewise.
52171         * modules/findprog: Likewise.
52172         * modules/mkdtemp : Likewise.
52173         * modules/pipe: Likewise.
52174         * modules/wait-process: Likewise.
52175
52176 2006-04-23  Bruno Haible  <bruno@clisp.org>
52177
52178         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
52179         condition was already detected.
52180         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52181
52182 2006-04-23  Bruno Haible  <bruno@clisp.org>
52183
52184         * lib/copy-file.c: Include <unistd.h> unconditionally.
52185         * lib/execute.c: Likewise.
52186         * lib/fatal-signal.c: Likewise.
52187         * lib/findprog.c: Likewise.
52188         * lib/mkdtemp.c: Likewise.
52189         * lib/pipe.h: Likewise.
52190         * lib/pipe.c: Likewise.
52191         * lib/wait-process.h: Likewise.
52192
52193 2006-04-23  Bruno Haible  <bruno@clisp.org>
52194
52195         * gnulib-tool (func_usage): Fix --import description. Document
52196         --update.
52197         (func_import): Create temporary file in a temporary directory, if
52198         --dry-run is specified. Silence errors from 'grep' when there are no
52199         m4 files in $m4dir.
52200         (func_create_testdir): Silence errors from 'grep' when there are no
52201         m4 files in $m4dir.
52202         Reported by Karl Berry <karl@freefriends.org>.
52203
52204 2006-04-20  Bruno Haible  <bruno@clisp.org>
52205
52206         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
52207         one argument, so that the code will be portable to Autoconf 2.60.
52208         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
52209         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
52210         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
52211
52212 2006-04-19  Derek Price  <derek@ximbiot.com>
52213             Eric Blake  <ebb9@byu.net>
52214
52215         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
52216         rather than "/full/path.h".  Update comment to match.  Shorten &
52217         generalize m4_translit call via AS_TR_CPP.
52218
52219 2006-04-19  Derek Price  <derek@ximbiot.com>
52220             Eric Blake  <ebb9@byu.net>
52221
52222         * lib/inttypes.h: Correct grammar in comment.
52223
52224 2006-04-18  Derek Price  <derek@ximbiot.com>
52225             Paul Eggert  <eggert@cs.ucla.edu>
52226
52227         * modules/inttypes: New file.
52228         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
52229
52230 2006-04-18  Derek Price  <derek@ximbiot.com>
52231             Paul Eggert  <eggert@cs.ucla.edu>
52232
52233         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
52234         New files.
52235
52236 2006-04-18  Derek Price  <derek@ximbiot.com>
52237             Paul Eggert  <eggert@cs.ucla.edu>
52238
52239         * lib/inttypes.h: New file.
52240         * lib/strtoimax.c: Assume <inttypes.h>.
52241
52242 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
52243
52244         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
52245         isn't mounted.  Problem reported by Kir Kolyshkin.
52246
52247 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
52248
52249         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
52250         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
52251         Derek R. Price.
52252         * lib/regex.h (RE_DUP_MAX): Update comment to match current
52253         implementation.
52254
52255 2006-04-12  Eric Blake  <ebb9@byu.net>
52256
52257         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
52258         is now done automatically by the corresponding Autoconf macro.
52259
52260 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
52261
52262         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
52263         time_r.h.
52264
52265 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52266
52267         Merge regex changes from libc, removing some of our
52268         POSIX-conformance changes that were rejected and redoing them in a
52269         less-intrusive way.
52270
52271         * lib/regcomp.c (re_compile_internal, init_dfa):
52272         Length arg is now size_t, not Idx.  All uses changed.
52273         (peek_token): Forward decl now says internal_function.
52274         (__re_error_msgid, __re_error_msgid_idx):
52275         Now static rather than extern with attribute_hidden.
52276         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
52277         For some reason libc prefers K&R style defns for external functions.
52278         (regerror) [!defined _LIBC]: Likewise.
52279         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
52280         (seek_collating_symbol_entry, lookup_collation_sequence_value):
52281         (build_range_exp, build_collating_symbol):
52282         Use K&R-style defn.
52283         (re_compile_fastmap): Use '\0' to memset, not 0.
52284         (utf8_sb_map): Make the calculations more obvious.
52285         (init_dfa, parse_bracket_exp, build_charclass_op):
52286         Call calloc and cast result, as glibc does.
52287         (init_word_char, fetch_token, peek_token, peek_token_bracket):
52288         (build_range_exp, build_collating_symbol):
52289         Now internal functions.
52290
52291         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
52292
52293         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
52294         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
52295         Don't depend on VMS; depend on __VMS instead, for POSIX
52296         namespace cleanness.
52297         (regoff_t): Define to ssize_t, not long int.
52298
52299         Remove the REG_ macros named below.  Instead, make the old names
52300         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
52301         __USE_GNU_REGEX.
52302         (REG_BACKSLASH_ESCAPE_IN_LISTS):
52303         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
52304         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
52305         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
52306         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
52307         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
52308         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
52309         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
52310         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
52311         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
52312         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
52313         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
52314         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
52315         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
52316         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
52317         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
52318         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
52319         (REG_NREGS):
52320         Remove.  All uses replaced by the old RE_* names.
52321         (RE_BACKSLASH_ESCAPE_IN_LISTS):
52322         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
52323         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
52324         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
52325         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
52326         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
52327         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
52328         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
52329         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
52330         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
52331         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
52332         Don't bother having these macros be independent of each others'
52333         values, since they no longer exist in the POSIX name space.
52334
52335         Rename the following member names back to their old names,
52336         unless !__USE_GNU_REGEX.  All uses changed back.
52337         (buffer): Renamed from re_buffer.
52338         (allocated): Renamed from re_allocated.
52339         (used): Renamed from re_used.
52340         (syntax): Renamed from re_syntax.
52341         (fastmap): Renamed from re_fastmap.
52342         (translate): Renamed from re_translate.
52343         (can_be_null): Renamed from re_can_be_null.
52344         (regs_allocated): Renamed from re_regs_allocated.
52345         (fastmap_accurate): Renamed from re_fastmap_accurate.
52346         (no_sub): Renamed from re_no_sub.
52347         (not_bol): Renamed from re_not_bol.
52348         (not_eol): Renamed from re_not_eol.
52349         (newline_anchor): Renamed from re_newline_anchor.
52350         (num_regs): Renamed from rm_num_regs.
52351         (start): Renamed from rm_start.
52352         (end): Renamed from rm_end.
52353
52354         (free_state): Move up a bit.
52355
52356         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
52357         #define to be empty.
52358         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
52359         when that is what is intended.
52360         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
52361         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
52362         (MAX): New macro.
52363         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
52364         All uses changed back to re_malloc, etc.  It's now the caller's
52365         responsibility to check for overflow; all callers changed.
52366         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
52367         (re_x2nrealloc): Remove.
52368         (free_state): Remove decl.
52369
52370         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
52371         (re_set_registers, re_exec):
52372         Use K&R-style defn.
52373
52374         2006-01-31  Roland McGrath  <roland@redhat.com>
52375
52376         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
52377         Reported by Mike Frysinger <vapier@gentoo.org>.
52378
52379         2006-01-15  Andreas Jaeger  <aj@suse.de>
52380
52381         [BZ #1950]
52382         * lib/regex_internal.c (re_string_reconstruct): Adjust for
52383         build_wcs_upper_buffer change.
52384         (build_wcs_upper_buffer): Change return type.
52385
52386         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
52387
52388         * lib/regex_internal.h: Include <stdint.h> if available.
52389
52390         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
52391
52392         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
52393
52394         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
52395
52396         * lib/regcomp.c: Adjust for changed secondary hash function.
52397
52398         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
52399
52400         * lib/regex.h: Pretty printing.
52401         Clean up namespace a bit.
52402
52403         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
52404
52405         * lib/regexec.c (update_cur_sifted_state, check_arrival,
52406         check_arrival_add_next_nodes): Avoid using uninitialized variable.
52407
52408         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
52409                     Ulrich Drepper  <drepper@redhat.com>
52410
52411         [BZ #1302]
52412         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
52413         changed.
52414         (bitset_word_t): Renamed from bitset_word.  All uses changed.
52415
52416         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
52417
52418         [BZ #281]
52419         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
52420         * lib/regcomp.c: Remove unnecessary uses of
52421         unsigned RE_TRANSLATE_TYPE.
52422         * lib/regex_internal.h: Likewise.
52423         * lib/regex_internal.c: Likewise.
52424         * lib/regexec.c: Likewise.
52425         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
52426
52427         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
52428
52429         * lib/regexec.c (find_recover_state): Remove unnecessary
52430         initialization.
52431         (transit_state_bkref): Make DFA a const pointer.
52432         (get_subexp): Likewise.
52433         (check_arrival): Likewise.
52434         (update_cur_sifted_state): Likewise.
52435         (re_search_internal): Likewise.
52436         (prune_impossible_nodes): Likewise.
52437         (acquire_init_state_context): Likewise.
52438         (proceed_next_node): Likewise.
52439         (set_regs): Likewise.
52440         (free_fail_stack_return): Likewise.
52441         (check_arrival_expand_ecl): Mark DFA parameter as const.
52442         (check_arrival_expand_ecl_sub): Likewise.
52443         (check_subexp_limits): Likewise.
52444         (sub_epsilon_src_nodes):  Likewise.
52445         (add_epsilon_src_nodes):  Likewise.
52446         (merge_state_array): Likewise.
52447         (update_regs): Likewise.
52448         (build_trtable): Likewise.
52449         (sift_states_backward): Mark MCTX parameter as const.
52450         (build_sifted_states): Likewise.
52451         (update_cur_sifted_state): Likewise.
52452         (sift_states_mkref): Likewise.
52453         (check_arrival_expand_ecl): Mark eclosure as const.
52454         (check_dst_limits_calc_pos_1): Likewise.
52455         * lib/regex_internal.h (re_match_context_t): Make dfa a const
52456         pointer.
52457
52458         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
52459
52460         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
52461         (transit_state_sb): Likewise.
52462         (transit_state_mb): Likewise.
52463         (sift_states_iter_mb): Likewise.
52464         (check_arrival_add_next_nodes): Likewise.
52465         (check_node_accept_bytes): Change first parameter to pointer-to-const.
52466         [_LIBC] (re_search_2_stub): Use mempcpy.
52467
52468         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
52469         mbrtowc for very simple UTF-8 case.
52470
52471         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
52472         a pointer-to-const.
52473         (re_acquire_state_context): Likewise.
52474         * lib/regex_internal.h: Adjust prototypes.
52475
52476         * lib/regex.c: Prevent using C++ compilers.
52477
52478         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
52479         (re_acquire_state_context): Likewise.
52480
52481 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52482
52483         * modules/regex (Depends-on): Add ssize_t.
52484
52485 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52486
52487         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
52488         translation table.
52489
52490 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52491
52492         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
52493
52494 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
52495             Bruno Haible  <bruno@clisp.org>
52496
52497         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
52498         <sys/types.h> and <inttypes.h>.
52499
52500 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52501
52502         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
52503         `__error_t_defined', so argp.h will not typedef the former.
52504
52505 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
52506
52507         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
52508         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
52509         glibc names.  Even if glibc is changed to conform to POSIX, the
52510         traditional names will be available anyway, since regex depends on
52511         the extensions module.  Also, fix a longstanding typo in the
52512         implementation of Spencer ERE test #75 from grep 2.3.  Problems
52513         reported by Emanuele Giaquinta.  Also, change sense of cached
52514         variable, so that the message makes sense.
52515
52516 2006-03-24  Simon Josefsson  <jas@extundo.com>
52517
52518         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
52519         including some doc fixes.
52520         (base64_encode_alloc): Fix +1 bug on allocation failures.
52521
52522 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52523
52524         * lib/base64.c (base64_encode): Do not read past end of array with
52525         unsanitized input on systems with CHAR_BIT > 8.
52526
52527 2006-03-24  Eric Blake  <ebb9@byu.net>
52528
52529         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
52530
52531 2006-03-22  Karl Berry  <karl@gnu.org>
52532
52533         * config/srclist.txt (*setenv.[ch]): get from coreutils.
52534         * config/srclistvars.sh (COREUTILS): new var.
52535
52536 2006-03-17  Jim Meyering  <jim@meyering.net>
52537
52538         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
52539         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
52540
52541 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
52542
52543         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
52544         no longer needs it.  Instead, check that regoff_t is as least
52545         as wide as ptrdiff_t.
52546
52547         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
52548         so that our regex.h stays compatible with the installed regex.
52549         This is helpful for installers who configure --without-included-regex.
52550         Problem reported by Emanuele Giaquinta.
52551
52552 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
52553
52554         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
52555         Typedef to long int, not to off_, as POSIX will likely change
52556         in that direction.
52557
52558 2006-03-15  Eric Blake  <ebb9@byu.net>
52559
52560         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
52561
52562 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
52563
52564         * lib/argp-help.c (validate_uparams): Fix typo
52565         * lib/argp-parse.c (argp_default_options): Consistently begin help
52566         messages with a lowercase letter.
52567
52568 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
52569
52570         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
52571         overrun buffers and shouldn't be used (much as gets shouldn't be
52572         used).
52573         * lib/time_r.c (asctime_r, ctime_r): Likewise.
52574
52575 2006-03-08  Simon Josefsson  <jas@extundo.com>
52576
52577         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
52578         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52579
52580 2006-03-08  Simon Josefsson  <jas@extundo.com>
52581
52582         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
52583         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52584
52585 2006-03-08  Simon Josefsson  <jas@extundo.com>
52586
52587         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
52588         signal that configure disabled the device.
52589
52590 2006-03-08  Simon Josefsson  <jas@extundo.com>
52591
52592         * build-aux/maint.mk: Fix refresh-po, to handle no translated
52593         languages.
52594
52595 2006-03-07  Simon Josefsson  <jas@extundo.com>
52596
52597         * modules/getopt (Depends-on): Add unistd.
52598
52599         * modules/unistd: New file.
52600
52601 2006-03-07  Simon Josefsson  <jas@extundo.com>
52602
52603         * modules/gc-random: New file.
52604
52605 2006-03-07  Simon Josefsson  <jas@extundo.com>
52606
52607         * m4/unistd_h.m4: New file.
52608
52609 2006-03-07  Simon Josefsson  <jas@extundo.com>
52610
52611         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
52612         test to be side-effect free by storing the result in the cache
52613         variable gl_cv_lib_readline, and moving the assignment of
52614         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
52615         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52616
52617 2006-03-07  Simon Josefsson  <jas@extundo.com>
52618
52619         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
52620         error on missing devices (the functions will return an error).
52621
52622         * m4/gc.m4: Move random stuff to gc-random.m4
52623
52624 2006-03-07  Simon Josefsson  <jas@extundo.com>
52625
52626         * lib/unistd_.h: New file.
52627
52628 2006-03-07  Simon Josefsson  <jas@extundo.com>
52629
52630         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
52631
52632 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
52633
52634         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
52635         Problem reported by Juan Manuel Guerrero.
52636
52637 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
52638
52639         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
52640         the unistd module.
52641         * lib/getlogin_r.c: Likewise.
52642         * lib/getlogin_r.h: Likewise.
52643         * lib/glob.c: Likewise.
52644         * lib/pagealign_alloc.c: Likewise.
52645         * lib/unistd_.h: Remove; no longer needed.
52646
52647 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
52648
52649         * MODULES.html.sh (Support for systems lacking POSIX:2001):
52650         Add unistd.
52651         * modules/c-stack (Depends-on): Add unistd.
52652         * modules/getlogin_r: Likewise.
52653         * modules/glob: Likewise.
52654         * modules/pagealign_alloc: Likewise.
52655         * modules/unistd (Files): Remove lib/unistd_.h.
52656         (EXTRA_DIST): Remove.
52657         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
52658         need unistd_.h.
52659         (MOSTLYCLEANFILES): Remove unistd.h-t.
52660
52661 2006-03-03  Simon Josefsson  <jas@extundo.com>
52662
52663         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
52664
52665 2006-03-03  Simon Josefsson  <jas@extundo.com>
52666
52667         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
52668         libidn and bison.
52669
52670 2006-03-03  Simon Josefsson  <jas@extundo.com>
52671
52672         * build-aux/maint.mk: Add indent target.
52673
52674 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
52675
52676         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
52677         our replacement poll.h in any case, to avoid a differing
52678         declaration from a system header.  Seen on AIX.
52679
52680 2006-03-01  Simon Josefsson  <jas@extundo.com>
52681
52682         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
52683         <kasal@ucw.cz>.
52684
52685 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52686
52687         * modules/gettime (Depends-on): Add extensions module.
52688         * modules/nanosleep (Depends-on): Likewise.
52689         * modules/settime (Depends-on): Likewise.
52690
52691 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52692
52693         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
52694         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
52695         pedantically.
52696         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
52697         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
52698
52699         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
52700         not "==".  Reported by Ralf Wildenhues.
52701
52702 2006-03-01  Karl Berry  <karl@gnu.org>
52703
52704         * doc/Copyright/request-*: new files, synced from gnuorg.
52705
52706 2006-03-01  Karl Berry  <karl@gnu.org>
52707
52708         * config/srclist.txt (Copyright/*): new entries.
52709
52710 2006-02-28  Simon Josefsson  <jas@extundo.com>
52711
52712         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
52713
52714 2006-02-27  Simon Josefsson  <jas@extundo.com>
52715
52716         * lib/base64.h: Indent #define's.  From Jim Meyering
52717         <jim@meyering.net>.
52718
52719 2006-02-27  Jim Meyering  <jim@meyering.net>
52720
52721         Revert the change of 2006-02-24, so these files can continue
52722         to be sync'd from gettext.
52723         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
52724         of `config.h'.
52725
52726 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
52727
52728         * modules/intprops: New file.
52729         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
52730         Add intprops.
52731         * modules/getloadavg (Files): Remove lib/intprops.h.
52732         (Depends-on): Add intprops.
52733         * modules/human: Likewise.
52734         * modules/inttostr: Likewise.
52735         * modules/openat: Likewise.
52736         * modules/sig2str: Likewise.
52737         * modules/userspec: Likewise.
52738         * modules/utimecmp: Likewise.
52739         * modules/xnanosleep: Likewise.
52740         * modules/xstrtol: Likewise.
52741
52742 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
52743
52744         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
52745         * modules/lock-tests (TESTS): Use $(EXEEXT).
52746         * modules/tls-tests: Likewise.
52747         * modules/argp-tests: Likewise.
52748         (check_PROGRAMS): New var, replacing...
52749         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
52750
52751 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52752
52753         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
52754         `config.h'.
52755
52756 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
52757
52758         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
52759
52760 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52761
52762         Sync from coreutils.
52763         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
52764         gl_CHDIR_SAFER.
52765
52766 2006-02-22  Jim Meyering  <jim@meyering.net>
52767
52768         Sync from coreutils.
52769         * m4/chdir-safer.m4: New file.
52770
52771 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
52772
52773         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
52774         AT_FDCWD exceeds INT_MAX.
52775         * lib/openat.h (AT_FDCWD): Likewise.
52776
52777 2006-02-17  Eric Blake  <address@hidden>
52778
52779         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
52780
52781 2006-02-16  Simon Josefsson  <jas@extundo.com>
52782
52783         * modules/getaddrinfo (Depends-on): Add sys_socket.
52784
52785 2006-02-15  Simon Josefsson  <jas@extundo.com>
52786
52787         * build-aux/maint.mk: Add dsyntax-check rule.
52788
52789 2006-02-15  Eric Blake  <ebb9@byu.net>
52790
52791         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
52792         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
52793         'present but cannot compile' warnings on cygwin.
52794         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
52795         use ws2tcpip.h if sys/socket.h works.
52796         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
52797         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
52798
52799 2006-02-14  Simon Josefsson  <jas@extundo.com>
52800
52801         * modules/maintainer-makefile (Files): Rename.
52802
52803         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
52804         and (the local) Makefile.cfg to maint-cfg.mk.
52805
52806         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
52807         to the latter.
52808
52809         * modules/maintainer-makefile: New module.
52810
52811         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
52812         severaly stripped to make it possible to build it up from scratch
52813         with reliable tests.
52814
52815         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
52816         fixes to permit overriding the default actions when configure and
52817         makefile are not available.
52818
52819 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
52820
52821         Sync from coreutils.
52822         * modules/lstat (Depends-on): Don't depend on xalloc.
52823         (License): Change from GPL to LGPL, since this is now simply a
52824         replacement for a libc function.
52825
52826 2006-02-14  Jim Meyering  <jim@meyering.net>
52827
52828         Sync from coreutils.
52829
52830         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
52831         failure on deficient systems, and simplify gnulib lgpl dependencies.
52832         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
52833         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
52834
52835         * lib/xalloc-die.c: Remove unused definition of N_.
52836
52837 2006-02-14  Jim Meyering  <jim@meyering.net>
52838
52839         Sync from coreutils.
52840         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
52841         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
52842         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
52843         double-quote uses of that variable, to accommodate the rare case in
52844         which getmntent is available in none of the libraries checked.  This
52845         happens at least on FreeBSD 5.0.
52846
52847 2006-02-13  Simon Josefsson  <jas@extundo.com>
52848
52849         * gnulib-tool (Usage): Fix --import, from
52850         karl@freefriends.org (Karl Berry).
52851
52852 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
52853
52854         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
52855
52856 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
52857
52858         * lib/argp-namefrob.h: Restore changes accidentally lost during the
52859         "autoupdate" on 2005-12-12.
52860
52861 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
52862
52863         * modules/closeout (Depends-on): Remove atexit.
52864
52865 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
52866
52867         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
52868         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
52869
52870 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
52871
52872         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
52873         __EXTENSIONS__ if this causes compilation to fail.  Problem
52874         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
52875         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
52876
52877 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
52878
52879         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
52880         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
52881         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
52882         All uses changed.
52883
52884 2006-01-26  Simon Josefsson  <jas@extundo.com>
52885
52886         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
52887         prototype is visible on mingw32.
52888
52889         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
52890         for mingw32.
52891
52892         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
52893         mingw32).
52894
52895 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
52896
52897         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
52898         attempt to open for write; this always fails, at least on POSIX
52899         hosts.  This reinstates the 2006-01-09 change, which was
52900         inadvertently removed.
52901
52902 2006-01-26  Bruno Haible  <bruno@clisp.org>
52903
52904         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
52905         Reported by Paul Eggert.
52906
52907 2006-01-26  Bruno Haible  <bruno@clisp.org>
52908             Paul Eggert  <eggert@cs.ucla.edu>
52909
52910         * lib/stdbool_.h (_Bool)
52911         [(! (defined __cplusplus || defined __BEOS__)
52912           && !defined __GNUC__
52913           && !(defined __HP_cc || defined __xlc__
52914                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
52915                || defined __sgi))]:
52916         #define to signed char in these cases too; this simplifies
52917         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
52918         etc., separately) and makes it more conservative.
52919
52920 2006-01-25  Simon Josefsson  <jas@extundo.com>
52921
52922         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
52923         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
52924         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
52925
52926 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
52927
52928         * lib/argp-namefrob.h: Bugfix. Remove stray #
52929
52930 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
52931
52932         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
52933         so that we test the test.
52934         Check for yet another HP-UX cc bug involving *bool |= bool.
52935
52936 2006-01-25  Karl Berry  <karl@gnu.org>
52937
52938         * config/srclist.txt (vasnprintf.c): sync lost.
52939
52940 2006-01-25  Jim Meyering  <jim@meyering.net>
52941
52942         Sync from the stable (b5) branch of coreutils:
52943
52944         * lib/fts.c (fts_children): Don't let close() clobber errno from
52945         failed fchdir().
52946
52947         * lib/fts.c (fts_stat): When following a symlink-to-directory,
52948         don't necessarily interpret stat-fails+lstat-succeeds as indicating
52949         a dangling symlink.  That can also happen at least for ELOOP.
52950         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
52951         FYI, this bug predates the inclusion of fts.c in coreutils.
52952
52953         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
52954         in their own block, so pre-c99 compilers don't object.
52955
52956         Avoid the double-free (first in fts_read, second in fts_close) that
52957         would occur when an `active' directory is made inaccessible (e.g.,
52958         via chmod a-x) during a traversal.
52959         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
52960         before returning.  Reproduce this failure by
52961         mkdir -p a/b; cd a; chmod a-x . b
52962         Reported by Stavros Passas.
52963
52964 2006-01-25  Jim Meyering  <jim@meyering.net>
52965
52966         * lib/fileblocks.c: Remove more useless parentheses.
52967         * lib/readutmp.h: Likewise.
52968
52969 2006-01-25  Bruno Haible  <bruno@clisp.org>
52970
52971         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
52972         warnings.
52973         Reported by Paul Eggert.
52974
52975 2006-01-25  Bruno Haible  <bruno@clisp.org>
52976
52977         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
52978         rid of a trap command. For Solaris sh.
52979         Reported by Mark D. Baushke <mdb@gnu.org>.
52980
52981 2006-01-24  Simon Josefsson  <jas@extundo.com>
52982
52983         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
52984         Bruno.
52985
52986 2006-01-24  Karl Berry  <karl@gnu.org>
52987
52988         * config/srclist.txt (argp-namefrob.h): sync lost.
52989
52990 2006-01-24  Jim Meyering  <jim@meyering.net>
52991
52992         * modules/openat (Files): Add lib/intprops.h.
52993         From Mark D. Baushke.
52994
52995 2006-01-24  Jim Meyering  <jim@meyering.net>
52996
52997         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
52998         Reported by Mark D. Baushke.
52999
53000 2006-01-24  Jim Meyering  <jim@meyering.net>
53001
53002         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
53003
53004 2006-01-24  Bruno Haible  <bruno@clisp.org>
53005
53006         * modules/strnlen (Maintainer): Change from glibc to all.
53007
53008 2006-01-24  Bruno Haible  <bruno@clisp.org>
53009
53010         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
53011         Patch by Paul Eggert.
53012
53013 2006-01-24  Bruno Haible  <bruno@clisp.org>
53014
53015         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
53016         already has it.
53017         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
53018         2005-11-26.
53019
53020         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
53021         'signed char' to avoid problems with the built-in _Bool type.
53022         Reported by Paul Eggert on 2005-11-26.
53023
53024 2006-01-24  Bruno Haible  <bruno@clisp.org>
53025
53026         * gnulib-tool (func_import): Avoid constructing complicated sed
53027         expressions inside backquote.
53028         Report and solution by Mark D. Baushke <mdb@gnu.org>.
53029
53030 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
53031
53032         These changes imported from libc.
53033         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
53034         test and two separate function calls.
53035         * lib/strndup.c (__strndup): Add libc_hidden_def.
53036
53037 2006-01-23  Simon Josefsson  <jas@extundo.com>
53038
53039         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
53040         Remove the test_*_SOURCES variable: automake infers it by default.
53041         * modules/tls-tests: Likewise.
53042
53043 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53044
53045         Work around porting bugs reported by Dieter in
53046         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
53047         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
53048         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
53049         Include "getopt.h" first, to check interface.
53050         (getenv): Declare only if defined HAVE_DECL_GETENV &&
53051         !HAVE_DECL_GETENV.
53052         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
53053         (__strndup): Revert to K&R-style function dfns, the glibc style.
53054         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
53055         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
53056         Include strnlen.h first, to get prototype properly.
53057         (strnlen): Renamed from __strnlen.
53058         Remove weak alias.
53059
53060 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53061
53062         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
53063
53064 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53065
53066         * config/srclist.txt: Adjust to reflect glibc reorganization.
53067         This affects only comments.
53068
53069 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
53070
53071          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
53072          Reported by Bruce Korb <bkorb@gnu.org>.
53073
53074 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
53075
53076         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
53077         to pacify gcc -Wswitch-default.
53078
53079 2006-01-22  Bruno Haible  <bruno@clisp.org>
53080
53081         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
53082         temporary buffer for sprintf, take into account the precision also
53083         for 'd', 'i', 'u', 'o', 'x', 'X'.
53084
53085 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
53086
53087         * modules/argp-tests: New module
53088         * tests/test-argp.c: New file
53089         * tests/test-argp-2.sh: New file
53090
53091 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
53092
53093         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
53094         (__argp_base_name): Removed
53095         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
53096         typo.
53097         (__argp_base_name): Provide macro definition or extern declaration
53098         depending on the configuration
53099
53100 2006-01-20  Simon Josefsson  <jas@extundo.com>
53101
53102         * modules/inet_ntop (Depends-on): Depend on sys_socket.
53103
53104 2006-01-20  Simon Josefsson  <jas@extundo.com>
53105
53106         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
53107
53108 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53109
53110         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
53111         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
53112         Suggested by Bruno Haible.
53113
53114 2006-01-20  Karl Berry  <karl@gnu.org>
53115
53116         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
53117         until changes propagate, I guess.
53118
53119 2006-01-19  Simon Josefsson  <jas@extundo.com>
53120
53121         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
53122
53123 2006-01-19  Simon Josefsson  <jas@extundo.com>
53124
53125         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
53126
53127 2006-01-19  Simon Josefsson  <jas@extundo.com>
53128
53129         * gnulib-tool: Set check_PROGRAMS.
53130
53131         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
53132         modules/des-tests, modules/gc-arcfour-tests,
53133         modules/gc-arctwo-tests, modules/gc-des-tests,
53134         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
53135         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
53136         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
53137         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
53138         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
53139         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
53140         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
53141         test_*_SOURCES.
53142
53143 2006-01-18  Simon Josefsson  <jas@extundo.com>
53144
53145         * modules/socklen (Depends-on): Depend on sys_socket.
53146
53147 2006-01-18  Simon Josefsson  <jas@extundo.com>
53148
53149         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
53150         modules/des-tests, modules/gc-arcfour-tests,
53151         modules/gc-arctwo-tests, modules/gc-des-tests,
53152         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
53153         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
53154         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
53155         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
53156         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
53157         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
53158         $(EXEEXT) to automake TESTS variable, for mingw32.
53159
53160 2006-01-17  Simon Josefsson  <jas@extundo.com>
53161
53162         * modules/socklen (Include): Need sys/socket.h.
53163
53164 2006-01-17  Bruno Haible  <bruno@clisp.org>
53165
53166         * modules/ssize_t (Include): Add <sys/types.h>.
53167
53168 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
53169
53170         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
53171         it's not portable and it doesn't work with cross-compiles.
53172         Problem reported by Bruno Haible.  Fix missing-$ typo in
53173         'test "gl_cv_ignore_unused_libraries" ...' that prevented
53174         -zignore from being used with Sun's C compiler.
53175
53176 2006-01-12  Simon Josefsson  <jas@extundo.com>
53177
53178         * lib/base64.c: Fix warning, reported by Bruno Haible
53179         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
53180
53181 2006-01-12  Bruno Haible  <bruno@clisp.org>
53182
53183         * modules/ldd: New file.
53184         * build-aux/ldd.sh.in: New file.
53185         * MODULES.html.sh (Support for building libraries and executables): Add
53186         ldd.
53187
53188 2006-01-12  Bruno Haible  <bruno@clisp.org>
53189
53190         * m4/ldd.m4: New file.
53191
53192 2006-01-12  Bruno Haible  <bruno@clisp.org>
53193
53194         * gnulib-tool (func_import, func_create_testdir): Don't go into an
53195         endless loop while replacing $auxdir with build-aux.
53196
53197 2006-01-11  Simon Josefsson  <jas@extundo.com>
53198
53199         * lib/stdint_.h (SIZE_MAX): Add missing (.
53200
53201 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
53202
53203         Sync from coreutils.
53204         * lib/md5.c: Fix commentary typos.
53205         (alignof, UNALIGNED_P): No need for a GCC-specific version.
53206         * lib/md5.h (__attribute__): Remove; unused.
53207         * lib/sha1.c: Fix commentary to match md5 better.
53208         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
53209         so that we don't need to worry about alignment.  All uses changed.
53210         This merges the 2005-10-28 md5 change into sha1.
53211
53212 2006-01-11  Jim Meyering  <jim@meyering.net>
53213
53214         Sync from coreutils.
53215         * lib/md5.c (OP): Fix spacing.
53216
53217 2006-01-11  Bruno Haible  <bruno@clisp.org>
53218
53219         Ensure automatic ordering between gl_LOCK and gl_ARGP.
53220         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
53221         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
53222
53223 2006-01-11  Bruno Haible  <bruno@clisp.org>
53224
53225         Ensure automatic ordering between gl_LOCK and gl_ARGP.
53226         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
53227         the "early" section as well.
53228
53229 2006-01-11  Bruno Haible  <bruno@clisp.org>
53230
53231         Avoid "ar: no archive members specified" error on MacOS X.
53232         * gnulib-tool (func_modules_add_dummy): New function.
53233         (func_import, func_create_testdir): Invoke it.
53234
53235 2006-01-11  Bruno Haible  <bruno@clisp.org>
53236
53237         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
53238         with $auxdir in AC_CONFIG_FILES statements.
53239
53240 2006-01-11  Bruno Haible  <bruno@clisp.org>
53241
53242         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53243         Initialize also noinst_HEADERS to empty.
53244
53245 2006-01-11  Bruno Haible  <bruno@clisp.org>
53246
53247         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
53248         variables.
53249         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
53250         autoreconf.
53251
53252 2006-01-11  Bruno Haible  <bruno@clisp.org>
53253
53254         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
53255         overridable by the user.
53256         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53257
53258 2006-01-10  Simon Josefsson  <jas@extundo.com>
53259
53260         * modules/sys_socket: New file.
53261
53262 2006-01-10  Simon Josefsson  <jas@extundo.com>
53263
53264         * m4/sys_socket_h.m4: New file.
53265
53266 2006-01-10  Simon Josefsson  <jas@extundo.com>
53267
53268         * lib/socket_.h: New file.
53269
53270 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
53271
53272         * modules/readutmp (Maintainer): Add myself.
53273
53274 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
53275
53276         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
53277         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
53278         People who are still concerned with buggy memcmp implementations
53279         can invoke gl_FUNC_MEMCMP themselves.
53280
53281 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
53282
53283         * lib/regex_internal.h (BITSET_WORD_BITS):
53284         Work around a bug in 64-bit PGC (before version 6.1-2), where the
53285         preprocessor mishandles large unsigned values as if they were signed.
53286         Problem reported by Claudio Fontana in
53287         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
53288
53289 2006-01-10  Jim Meyering  <jim@meyering.net>
53290
53291         Avoid the double-free (first in fts_read, second in fts_close) that
53292         would occur when an `active' directory is made inaccessible (e.g.,
53293         via chmod a-x) during a traversal.
53294         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
53295         before returning.  Reproduce this failure by
53296         mkdir -p a/b; cd a; chmod a-x . b
53297         Reported by Stavros Passas.
53298
53299         Sync from coreutils.
53300         * lib/sha1.c: Tweak grammar in a comment.
53301
53302 2006-01-10  Jim Meyering  <jim@meyering.net>
53303
53304         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
53305         Patch by Joerg Sonnenberger.
53306
53307 2006-01-10  Bruno Haible  <bruno@clisp.org>
53308
53309         * modules/readutmp: Depend on module free.
53310         * modules/strtok_r: Depend on module restrict.
53311
53312 2006-01-10  Bruno Haible  <bruno@clisp.org>
53313
53314         * modules/gettext (configure.ac): Add an invocation of
53315         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
53316
53317 2006-01-10  Bruno Haible  <bruno@clisp.org>
53318
53319         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
53320         Reported by Werner Lemberg <wl@gnu.org>.
53321
53322 2006-01-10  Bruno Haible  <bruno@clisp.org>
53323
53324         * lib/localcharset.c: Update from GNU gettext.
53325
53326 2006-01-10  Bruno Haible  <bruno@clisp.org>
53327
53328         * lib/argp.h (__const): Remove macro. Use const instead.
53329         * lib/argp-fmtstream.h (__const): Likewise.
53330         * lib/glob_.h (__const): Remove macro.
53331         * lib/glob-libc.h: Use const instead of __const.
53332
53333 2006-01-10  Bruno Haible  <bruno@clisp.org>
53334
53335         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
53336         variable.
53337         Needed to avoid an automake error regarding the 'gettext' module.
53338
53339 2006-01-09  Simon Josefsson  <jas@extundo.com>
53340
53341         * modules/inet_ntop (Depends-on): Add restrict.
53342
53343 2006-01-09  Simon Josefsson  <jas@extundo.com>
53344
53345         * modules/gc-rijndael-tests (License): Put under LGPL.
53346
53347         * modules/gc-des-tests (License): Likewise.
53348
53349         * modules/gc-arcfour-tests (License): Likewise.
53350
53351         * modules/gc-arctwo-tests (License): Likewise.
53352
53353         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
53354
53355         * modules/gc-hmac-sha1-tests (Files): Likewise.
53356
53357         * modules/gc-hmac-md5-tests (License): Likewise.
53358
53359         * modules/gc-sha1-tests (License): Likewise.
53360
53361         * modules/gc-md5-tests (License): Likewise.
53362
53363         * modules/gc-md4-tests (License): Likewise.
53364
53365         * modules/gc-md2-tests (License): Likewise.
53366
53367         * modules/gc-tests (License): Likewise.
53368
53369         * modules/des-tests (License): Likewise.
53370
53371         * modules/md4-tests (License): Likewise.
53372
53373         * modules/md2-tests (License): Likewise.
53374
53375 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53376
53377         Sync from coreutils:
53378
53379         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
53380         * modules/lib-ignore: New file.
53381         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
53382         chdir-safer.m4, lchmod.m4.
53383         * modules/openat: Add mkdirat.c, openat-priv.h.
53384
53385 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53386
53387         Sync from coreutils.
53388         * m4/lib-ignore.m4: New file.
53389         * m4/lchmod.m4: New file.
53390
53391 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53392
53393         Sync from coreutils.
53394         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
53395         for write access: POSIX says that must fail.
53396         * lib/fts.c (diropen): Likewise.
53397         * lib/save-cwd.c (save_cwd): Likewise.
53398         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
53399         well, for minor improvements on hosts that lack O_DIRECTORY.
53400         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
53401         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
53402         Fall back on chown if open failed with EACCES.
53403
53404         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
53405         Report an error at compile-time if only a 1-second nominal clock
53406         resolution is found.
53407
53408         * lib/lchmod.h: New file.
53409         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
53410         (make_dir_parents): Use lchown rather than chown, and
53411         lchmod rather than chmod.
53412
53413         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
53414         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
53415         "proc" reported by n0dalus.
53416
53417         * lib/mountlist.c: Include <limits.h>.
53418         (dev_from_mount_options)
53419         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
53420         New function.  It no longer assumes "dev=" has the System V meaning
53421         on Linux (since it doesn't).  It also parses "dev=" more carefully.
53422         (read_file_system_list)
53423         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
53424         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
53425         dev= in that case.
53426
53427         * lib/posixtm.h (PDS_PRE_2000): New macro.
53428         * lib/posixtm.c (year): Arg is now syntax_bits rather than
53429         allow_century.  All usages changed.  Reject dates outside the range
53430         1969-1999 if PDS_PRE_2000 is used.
53431
53432 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53433
53434         Sync from coreutils.
53435         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
53436         (Time of day items): Mention the possibility of leap seconds.
53437         Problem reported by Dr. David Alan Gilbert.
53438
53439 2006-01-09  Jim Meyering  <jim@meyering.net>
53440
53441         Sync from coreutils.
53442
53443         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
53444
53445         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
53446
53447         * lib/modechange.c (mode_compile): Reject an invalid mode string
53448         that starts with an octal digit.  From Andreas Gruenbacher.
53449
53450         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
53451         and dup to open_safer and dup_safer, respectively.
53452         (openat_permissive): Fix typo in comment.
53453
53454         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
53455         "gettext.h"; either no longer needed or are guaranteed by openat.h.
53456         (_): Remove; no longer needed.
53457         (openat): Renamed from rpl_openat; no need for rpl_openat
53458         since openat.h renames openat for us.
53459         Replace most of the body with a call to openat_permissive,
53460         to avoid duplicate code.
53461         Port to (probably hypothetical) environments were mode_t is
53462         wider than int.
53463         (openat_permissive): Require mode arg, so that we can check
53464         types better.  Put it just after flags.  Change cwd failure
53465         indicator from pointer-to-bool to pointer-to-errno-value.
53466         All callers changed.
53467         Invoke openat_save_fail and/or openat_restore_fail if
53468         cwd_errno is null, so that openat can call us.
53469         (openat_permissive, fdopendir, fstatat, unlinkat):
53470         Simplify errno handling to avoid some duplicate code,
53471         as it's OK to set errno on success.
53472         * lib/openat.h: Revamp code so that function macros depend on
53473         __OPENAT_PREFIX only, not also on AT_FDCWD.
53474         (openat_ro): Remove.  Caller changed to use openat_permissive.
53475         (openat_permissive): Now a macro, if not a function.
53476         (openat_restore_fail, openat_save_fail): Now always functions,
53477         since mkdirat needs them even if __OPENAT_PREFIX is defined.
53478
53479         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
53480         and openat.c.
53481         * lib/mkdirat.c: Include openat-priv.h.
53482         Remove definitions of macros defined therein.
53483         * lib/openat.c: Likewise.
53484
53485         * lib/mkdirat.c (mkdirat): New file and function.
53486         * lib/openat.h (mkdirat): Declare.
53487
53488         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
53489
53490         * lib/openat.h (openat_permissive): Declare.
53491         (openat_ro): Define.
53492
53493         * lib/openat.c (EXPECTED_ERRNO): New macro.
53494         (openat_permissive): New function -- used in remove.c rewrite.
53495         (all functions): Set errno just before returning, only if there
53496         was an actual failure.
53497         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
53498
53499         Emulate openat-family functions using Linux's procfs, if possible.
53500         Idea and some code based on Ulrich Drepper's glibc changes.
53501
53502         * lib/openat.c: (BUILD_PROC_NAME): New macro.
53503         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
53504         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
53505         before falling back on save_cwd and restore_cwd.
53506         (fdopendir, fstatat, unlinkat): Likewise.
53507
53508         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
53509         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
53510
53511         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
53512         as second argument to va_arg.  Otherwise, some versions of gcc
53513         warn that `if this code is reached, the program will abort'.
53514
53515 2006-01-09  Jim Meyering  <jim@meyering.net>
53516
53517         Sync from coreutils.
53518         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
53519         Require openat-priv.h.
53520
53521 2006-01-09  Bruno Haible  <bruno@clisp.org>
53522
53523         * modules/strnlen (Include): Use strnlen.h.
53524
53525 2006-01-09  Bruno Haible  <bruno@clisp.org>
53526
53527         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
53528
53529 2006-01-09  Bruno Haible  <bruno@clisp.org>
53530
53531         * lib/sysexit_.h (EX_OK): New macro.
53532         Suggested by Martin Lambers <marlam@marlam.de>.
53533
53534 2006-01-09  Bruno Haible  <bruno@clisp.org>
53535
53536         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
53537         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
53538
53539 2006-01-09  Bruno Haible  <bruno@clisp.org>
53540
53541         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
53542         numbers.
53543
53544 2006-01-09  Bruno Haible  <bruno@clisp.org>
53545
53546         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
53547         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
53548         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
53549         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
53550
53551 2006-01-09  Bruno Haible  <bruno@clisp.org>
53552
53553         * build-aux/javacomp.sh.in: New file, moved from lib/.
53554         * modules/javacomp-script (Files): Update.
53555         (configure.ac): Add AC_CONFIG_FILES invocation.
53556         (EXTRA_DIST): Remove variable.
53557
53558         * build-aux/javaexec.sh.in: New file, moved from lib/.
53559         * modules/javaexec (Files): Update.
53560         (configure.ac): Add AC_CONFIG_FILES invocation.
53561         (EXTRA_DIST): Remove javaexec.sh.in.
53562
53563         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
53564         * modules/csharpcomp-script (Files): Update.
53565         (configure.ac): Add AC_CONFIG_FILES invocation.
53566         (EXTRA_DIST): Remove variable.
53567
53568         * build-aux/csharpexec.sh.in: New file, moved from lib/.
53569         * modules/csharpexec (Files): Update.
53570         (configure.ac): Add AC_CONFIG_FILES invocation.
53571         (EXTRA_DIST): Remove csharpexec.sh.in.
53572
53573 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
53574
53575         Sync from coreutils.
53576
53577         Add POSIX ACL support
53578         * lib/acl.h (copy_acl, set_acl): Add declarations.
53579         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
53580         systems other than Linux.
53581         (chmod_or_fchmod): New function: use fchmod when possible,
53582         and chmod otherwise.
53583         (file_has_acl): Add a POSIX ACL implementation, with a
53584         Linux-specific subcase.
53585         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
53586         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
53587         acls are unsupported.
53588         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
53589         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
53590         are unsupported.
53591
53592 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
53593
53594         Sync from coreutils.
53595         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
53596
53597 2006-01-07  Bruno Haible  <bruno@clisp.org>
53598
53599         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
53600         gl_EARLY.
53601
53602 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53603
53604         * lib/strftime.c (tzname): Don't declare if it is already #defined.
53605         Problem reported for Mingw by Mark Junker.
53606
53607 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53608
53609         * README: Gnulib normally doesn't generate a tarball.
53610
53611 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
53612
53613         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
53614         long int, not int, for nanosecond counts, so that people who are
53615         used to POSIX struct timespec won't be surprised.  Reported by Jim
53616         Meyering.
53617
53618 2005-12-28  Bruno Haible  <bruno@clisp.org>
53619
53620         * build-aux/config.rpath: Update from GNU gettext.
53621
53622 2005-12-16  Jim Meyering  <jim@meyering.net>
53623
53624         * modules/fprintftime: New module.
53625         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
53626
53627 2005-12-16  Jim Meyering  <jim@meyering.net>
53628
53629         * m4/fprintftime.m4: New file.
53630
53631 2005-12-16  Jim Meyering  <jim@meyering.net>
53632
53633         * lib/fprintftime.c, lib/fprintftime.h: New files.
53634
53635 2005-12-15  Simon Josefsson  <jas@extundo.com>
53636
53637         * modules/socklen (configure.ac): Fix M4 macro name, to align with
53638         new m4/socklen.m4.
53639
53640 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
53641
53642         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
53643         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
53644
53645 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
53646
53647         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
53648         * lib/argp-help.c (fill_in_uparams): Check if the constructed
53649         struct uparams is valid. Fall back to the default values if it is
53650         not.
53651
53652 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
53653
53654         * modules/argp (Files): Add argp-pin.c
53655         (Depends-on): dirname
53656         (lib_SOURCES): Add argp-pin.c
53657
53658 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
53659
53660         * m4/argp.m4:  Check if program_invocation_name and
53661         program_invocation_short_name are declared and define appropriate
53662         macros if they are not.
53663
53664 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
53665
53666         * lib/argp-help.c (__argp_base_name): New function
53667         (__argp_short_program_name): Rewrite using __argp_base_name
53668         * lib/argp-namefrob.h: Define program_invocation_name and
53669         program_invocation_short_name if requested
53670         (__argp_base_name): Add prototype
53671         * lib/argp-parse.c (argp_def): Use gettext wrappers
53672         (argp_default_parser): Use __argp_base_name
53673         * lib/argp-pin.c: New file. Defines program_invocation_name and
53674         program_invocation_short_name on systems that lack them.
53675
53676 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
53677
53678         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
53679         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
53680         porting problem reported by Georg Schwarz in
53681         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
53682
53683 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
53684
53685         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
53686         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
53687         porting problem reported by Georg Schwarz in
53688         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
53689
53690 2005-12-05  Bruno Haible  <bruno@clisp.org>
53691
53692         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
53693         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
53694         Reported by Mark Junker <mjscod@gmx.de>.
53695
53696 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
53697
53698         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
53699         Use implementation from Albert Chin, with some
53700         comments/corrections by Stepan Kasal and myself.
53701
53702 2005-12-02  Bruno Haible  <bruno@clisp.org>
53703
53704         * gnulib-tool (func_import): Accept GPLed build tool modules when
53705         --lgpl is given.
53706         * modules/csharpcomp-script: New file.
53707         * modules/csharpcomp: Depend on it.
53708         * modules/javacomp-script: New file.
53709         * modules/javacomp: Depend on it.
53710         Suggested by Simon Josefsson.
53711
53712 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
53713
53714         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
53715         statement, to work around an HP-UX 10.20 compiler bug reported by
53716         Peter O'Gorman.
53717
53718 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
53719
53720         * modules/savedir (Depends-on): Add openat.
53721
53722 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
53723
53724         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
53725         (uintmax_t) [defined uintmax_t]: Do not declare.
53726         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
53727         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
53728         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
53729         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
53730         sake of portability to weird hosts that C allows (though we don't
53731         know of any practical examples).
53732
53733         * lib/savedir.h (fdsavedir): New decl.
53734         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
53735         contains most of the former guts of savedir.
53736         (savedir): Use savedirstream.
53737         Include "openat.h".
53738
53739 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
53740
53741         * modules/obstack (Files): Add m4/ulonglong.m4.
53742         Problem reported by Davide Angelocola.
53743
53744 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
53745
53746         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
53747         coreutils no longer futzes with rounding modes.
53748
53749 2005-11-14  Jim Meyering  <jim@meyering.net>
53750
53751         * lib/mkstemp-safer.c: Include <config.h>, required for possible
53752         replacement of mkstemp.
53753
53754 2005-11-10  Simon Josefsson  <jas@extundo.com>
53755
53756         * lib/readline.c: Remove EOL.
53757
53758 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53759
53760         * modules/gethrxtime (Depends-on): Add gettime.
53761
53762 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53763
53764         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
53765         or gettimeofday; no longer needed.
53766
53767 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53768
53769         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
53770         time business.
53771         (gethrxtime) [! (HAVE_NANOUPTIME
53772         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
53773         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
53774         our own approximation.
53775
53776 2005-11-08  Eric Blake  <ebb9@byu.net>
53777
53778         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
53779
53780 2005-11-08  Eric Blake  <ebb9@byu.net>
53781
53782         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
53783
53784 2005-11-04  Bruno Haible  <bruno@clisp.org>
53785
53786         * gnulib-tool: Implement --update mode.
53787
53788 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
53789
53790         Fix porting problem reported by Theodoros V. Kalamatianos.
53791         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
53792         Don't assume that futimes failing means we must fail.
53793
53794 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
53795
53796         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
53797         variables to suggest the intended function of the PATH_MAX check.
53798
53799 2005-10-30  Kean Johnston  <jkj@sco.com>
53800
53801         Trivial changes to support SCO systems.
53802         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
53803         as PATH_MAX.
53804         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
53805         where __ptr is null when no I/O is pending.
53806
53807 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
53808
53809         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
53810         leave errno alone.  Problem reported by Dmitry V. Levin.
53811
53812 2005-10-28  Simon Josefsson  <jas@extundo.com>
53813
53814         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
53815         Test more.
53816
53817         * tests/test-gc-md2.c, tests/test-md2.c: New files.
53818
53819         * modules/md2, modules/md2-tests: New files.
53820
53821 2005-10-28  Simon Josefsson  <jas@extundo.com>
53822
53823         * m4/inet_ntop.m4: More tests.
53824
53825         * m4/gc-md2.m4, md2.m4: New file.
53826
53827 2005-10-28  Simon Josefsson  <jas@extundo.com>
53828
53829         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
53830         "restrict" keywords, as per POSIX.  Protect the function
53831         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
53832         Don't use K&R prototypes.  Check the sprintf return values.
53833         Re-define EAFNOSUPPORT if not present.  Indent.
53834
53835         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
53836         suggested by Bruno Haible <bruno@clisp.org>.
53837
53838         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
53839
53840         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
53841
53842         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
53843         libgcrypt).
53844
53845         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
53846
53847         * lib/md2.h, lib/md2.c: New files.
53848
53849 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
53850
53851         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
53852         errno alone.  Problem reported by Frederic Jolliton.
53853
53854 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
53855
53856         * modules/verify (License): Change from GPL to LGPL.  This is a
53857         tiny module and there are apparently near-equivalents that are
53858         under the BSD license.
53859
53860 2005-10-24  Simon Josefsson  <jas@extundo.com>
53861
53862         * modules/sha1: Relicense to LGPL.
53863
53864 2005-10-24  Simon Josefsson  <jas@extundo.com>
53865
53866         * lib/md4.h: Shrink buffer size, now that we changed the type.
53867
53868 2005-10-23  Simon Josefsson  <jas@extundo.com>
53869
53870         * gnulib-tool (func_import): Fix --tests-base.
53871
53872 2005-10-22  Simon Josefsson  <jas@extundo.com>
53873
53874         * modules/arcfour (Depends-on): Need stdint.
53875
53876 2005-10-22  Simon Josefsson  <jas@extundo.com>
53877
53878         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
53879         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
53880
53881 2005-10-22  Simon Josefsson  <jas@extundo.com>
53882
53883         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
53884         suggested by Bruno Haible <bruno@clisp.org>.
53885
53886 2005-10-22  Simon Josefsson  <jas@extundo.com>
53887
53888         * lib/crc.h: Include stddef.h, for size_t.
53889
53890 2005-10-22  Simon Josefsson  <jas@extundo.com>
53891
53892         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
53893         arcfour_context struct (simplify test vector testing in GNU
53894         Shishi).
53895
53896 2005-10-21  Simon Josefsson  <jas@extundo.com>
53897
53898         * modules/des, modules/des-tests: New files.
53899
53900         * modules/gc-des, modules/gc-des-tests: New files.
53901
53902         * tests/test-des.c, tests/test-gc-des.c: New file.
53903
53904 2005-10-21  Simon Josefsson  <jas@extundo.com>
53905
53906         * modules/arctwo, modules/arctwo-tests: New files.
53907
53908         * tests/test-arctwo.c: New file.
53909
53910         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
53911
53912         * tests/test-gc-arctwo.c: New file.
53913
53914 2005-10-21  Simon Josefsson  <jas@extundo.com>
53915
53916         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
53917         Bruno Haible <bruno@clisp.org>.
53918
53919         * m4/gc-des.m4: New file.
53920
53921 2005-10-21  Simon Josefsson  <jas@extundo.com>
53922
53923         * m4/arctwo.m4: New file.
53924
53925         * m4/gc-arctwo.m4: New file.
53926
53927 2005-10-21  Simon Josefsson  <jas@extundo.com>
53928
53929         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
53930         block.
53931
53932 2005-10-21  Simon Josefsson  <jas@extundo.com>
53933
53934         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
53935         <bruno@clisp.org>.
53936
53937         * lib/hmac-sha1.c (hmac_sha1): Likewise.
53938
53939         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
53940         Bruno Haible <bruno@clisp.org>.
53941
53942         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
53943         <bruno@clisp.org>.
53944
53945 2005-10-21  Simon Josefsson  <jas@extundo.com>
53946
53947         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
53948
53949 2005-10-21  Simon Josefsson  <jas@extundo.com>
53950
53951         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
53952
53953 2005-10-21  Simon Josefsson  <jas@extundo.com>
53954
53955         * lib/des.h, lib/des.c: New files.
53956
53957         * lib/gc-gnulib.c: Support DES.c
53958
53959 2005-10-21  Simon Josefsson  <jas@extundo.com>
53960
53961         * lib/arctwo.h, lib/arctwo.c: New files.
53962
53963         * lib/gc-gnulib.c: Support ARCTWO.
53964
53965 2005-10-21  Simon Josefsson  <jas@extundo.com>
53966
53967         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
53968         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53969
53970 2005-10-21  Simon Josefsson  <jas@extundo.com>
53971
53972         * gnulib-tool (func_import, func_create_testdir): Define automake
53973         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
53974         Makefile.am snippet),
53975         suggested by Bruno Haible <bruno@clisp.org>.
53976
53977         * modules/gc (Makefile.am): Use it.
53978
53979 2005-10-21  Bruno Haible  <bruno@clisp.org>
53980
53981         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
53982         patch.
53983
53984 2005-10-19  Simon Josefsson  <jas@extundo.com>
53985
53986         * tests/test-gc-rijndael.c: New file.
53987
53988         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
53989
53990 2005-10-19  Simon Josefsson  <jas@extundo.com>
53991
53992         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
53993         interface too.
53994
53995 2005-10-19  Simon Josefsson  <jas@extundo.com>
53996
53997         * tests/test-gc-arcfour.c: New file.
53998
53999         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
54000
54001 2005-10-19  Simon Josefsson  <jas@extundo.com>
54002
54003         * modules/gc-md4, modules/gc-md4-tests: New file.
54004
54005         * tests/test-gc-md4.c: New file.
54006
54007 2005-10-19  Simon Josefsson  <jas@extundo.com>
54008
54009         * m4/gc-md4.m4: New file.
54010
54011 2005-10-19  Simon Josefsson  <jas@extundo.com>
54012
54013         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
54014         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
54015         <kasal@ucw.cz>.
54016
54017 2005-10-19  Simon Josefsson  <jas@extundo.com>
54018
54019         * m4/gc-arcfour.m4: New file.
54020
54021         * m4/gc-rijndael.m4: New file.
54022
54023 2005-10-19  Simon Josefsson  <jas@extundo.com>
54024
54025         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
54026
54027 2005-10-19  Simon Josefsson  <jas@extundo.com>
54028
54029         * lib/gc-gnulib.c: Support ARCFOUR.
54030
54031 2005-10-19  Simon Josefsson  <jas@extundo.com>
54032
54033         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
54034         support.
54035
54036         * lib/gc.h: Add ECB enum type.
54037
54038         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
54039
54040 2005-10-18  Simon Josefsson  <jas@extundo.com>
54041
54042         * tests/test-md5.c: New file.
54043
54044         * modules/md5-tests: New file.
54045
54046 2005-10-18  Simon Josefsson  <jas@extundo.com>
54047
54048         * tests/test-md4.c: New file.
54049
54050         * modules/md4, modules/md4-tests: New files.
54051
54052 2005-10-18  Simon Josefsson  <jas@extundo.com>
54053
54054         * m4/md4.m4: New file.
54055
54056 2005-10-18  Simon Josefsson  <jas@extundo.com>
54057
54058         * lib/md4.h, lib/md4.c: New files, based on md5.?.
54059
54060 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
54061
54062         * gnulib-tool (func_create_testdir): Omit the second check whether
54063         BUILT_SOURCES in nonempty.
54064
54065 2005-10-17  Simon Josefsson  <jas@extundo.com>
54066
54067         * tests/test-rijndael.c: New file.
54068
54069 2005-10-17  Simon Josefsson  <jas@extundo.com>
54070
54071         * modules/sha1: Depend on stdint instead of md5.
54072
54073         * modules/md5: Depend on stdint, remove uint32_t.
54074
54075 2005-10-17  Simon Josefsson  <jas@extundo.com>
54076
54077         * modules/gc-sha1-tests: New file.
54078
54079         * tests/test-gc-sha1.c: New file.
54080
54081 2005-10-17  Simon Josefsson  <jas@extundo.com>
54082
54083         * m4/md5.m4: Remove call to uint32_t.m4.
54084
54085 2005-10-17  Simon Josefsson  <jas@extundo.com>
54086
54087         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
54088
54089         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
54090         md5.h.
54091
54092         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
54093
54094         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
54095
54096 2005-10-17  Simon Josefsson  <jas@extundo.com>
54097
54098         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
54099
54100 2005-10-17  Simon Josefsson  <jas@extundo.com>
54101
54102         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
54103
54104 2005-10-17  Simon Josefsson  <jas@extundo.com>
54105
54106         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
54107
54108         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
54109
54110 2005-10-17  Bruno Haible  <bruno@clisp.org>
54111
54112         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
54113         that it can also be used in a test.
54114
54115 2005-10-16  Bruno Haible  <bruno@clisp.org>
54116
54117         * gnulib-tool (func_emit_tests_Makefile_am): Also define
54118         TESTS_ENVIRONMENT, so that individual tests can augment it.
54119
54120         * gnulib-tool (func_create_testdir): Use an intermediate target for
54121         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
54122         macros, like $(ALLOCA_H), which cannot be passed through the command
54123         line.
54124
54125 2005-10-15  Simon Josefsson  <jas@extundo.com>
54126
54127         * modules/rijndael-tests: New file.
54128
54129         * modules/rijndael: New file.
54130
54131 2005-10-15  Simon Josefsson  <jas@extundo.com>
54132
54133         * m4/rijndael.m4: New file.
54134
54135 2005-10-15  Simon Josefsson  <jas@extundo.com>
54136
54137         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
54138
54139         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
54140
54141 2005-10-14  Simon Josefsson  <jas@extundo.com>
54142
54143         * tests/test-arcfour.c: New file.
54144
54145         * modules/arcfour, modules/arcfour-tests: New files.
54146
54147 2005-10-14  Simon Josefsson  <jas@extundo.com>
54148
54149         * m4/arcfour.m4: New file.
54150
54151 2005-10-14  Simon Josefsson  <jas@extundo.com>
54152
54153         * lib/arcfour.h, lib/arcfour.c: New files.
54154
54155 2005-10-14  Roland McGrath  <roland@redhat.com>
54156
54157         Import from libc.  [BZ #1331]
54158         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
54159         macro argument.
54160         Reported by Matej Vela <vela@debian.org>.
54161
54162 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
54163
54164         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
54165         include <wchar.h>; no longer needed.
54166
54167 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
54168
54169         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
54170
54171 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
54172         and  Ulrich Drepper  <drepper@redhat.com>
54173
54174         Import from libc.
54175         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
54176         instead of inline stream orientation test and two separate
54177         function calls.  Pay no attention to USE_IN_LIBIO.
54178
54179 2005-10-13  Simon Josefsson  <jas@extundo.com>
54180
54181         * modules/gc-hmac-md5-tests: New file.
54182
54183         * tests/test-gc-hmac-sha1.c: New file.
54184
54185         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
54186
54187         * modules/gc-hmac-md5-tests: New file.
54188
54189         * tests/test-gc-md5.c: New file.
54190
54191         * modules/gc-md5-tests: New file.
54192
54193 2005-10-13  Simon Josefsson  <jas@extundo.com>
54194
54195         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
54196         Move memory allocation outside of loop.
54197
54198 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
54199
54200         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
54201         intermediate directory is in a read-only file system.  Problem
54202         reported by Eric Blake.
54203
54204 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
54205
54206         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
54207
54208 2005-10-12  Simon Josefsson  <jas@extundo.com>
54209
54210         * tests/test-hmac-sha1.c: New file.
54211
54212         * modules/hmac-sha1-tests: New file.
54213
54214         * modules/hmac-sha1: New file.
54215
54216 2005-10-12  Simon Josefsson  <jas@extundo.com>
54217
54218         * modules/gc-sha1: New file.
54219
54220 2005-10-12  Simon Josefsson  <jas@extundo.com>
54221
54222         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
54223
54224         * tests/test-gc-pbkdf2-sha1.c: New file.
54225
54226 2005-10-12  Simon Josefsson  <jas@extundo.com>
54227
54228         * modules/gc-md5, modules/gc-hmac-md5: New files.
54229
54230         * modules/gc (Files): Remove md5, memxor and hmac files.
54231
54232 2005-10-12  Simon Josefsson  <jas@extundo.com>
54233
54234         * m4/gc-pbkdf2-sha1.m4: New file.
54235
54236         * m4/gc-hmac-sha1.m4: New file.
54237
54238         * m4/gc-sha1: New file.
54239
54240         * m4/hmac-sha1.m4: New file.
54241
54242 2005-10-12  Simon Josefsson  <jas@extundo.com>
54243
54244         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
54245
54246         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
54247
54248 2005-10-12  Simon Josefsson  <jas@extundo.com>
54249
54250         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
54251         suggested by Bruno Haible <bruno@clisp.org>.
54252
54253 2005-10-12  Simon Josefsson  <jas@extundo.com>
54254
54255         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
54256
54257 2005-10-12  Simon Josefsson  <jas@extundo.com>
54258
54259         * lib/gc-pbkdf2-sha1.c: New file.
54260
54261         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
54262
54263 2005-10-12  Simon Josefsson  <jas@extundo.com>
54264
54265         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
54266
54267         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
54268
54269 2005-10-12  Simon Josefsson  <jas@extundo.com>
54270
54271         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
54272         GC_USE_HMAC_MD5, respectively.
54273
54274         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
54275         (gc_md5): Fix typo.
54276
54277         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
54278
54279         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
54280
54281         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
54282
54283 2005-10-12  Bruno Haible  <bruno@clisp.org>
54284
54285         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
54286         Reported by Stepan Kasal <kasal@ucw.cz>.
54287
54288 2005-10-11  Simon Josefsson  <jas@extundo.com>
54289
54290         * tests/test-crc.c: New file.
54291
54292         * modules/crc, modules/crc-tests: New files.
54293
54294 2005-10-11  Simon Josefsson  <jas@extundo.com>
54295
54296         * m4/crc.m4: New file.
54297
54298 2005-10-11  Simon Josefsson  <jas@extundo.com>
54299
54300         * lib/gc.h: Add gc_hash and gc_hash_buffer.
54301
54302         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
54303
54304         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
54305
54306 2005-10-11  Simon Josefsson  <jas@extundo.com>
54307
54308         * lib/crc.h, lib/crc.c: New files.
54309
54310         * lib/gc.h (gc_hash_buffer): Add doc.
54311
54312 2005-10-11  Bruno Haible  <bruno@clisp.org>
54313
54314         * modules/c-strcasestr: New file.
54315         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
54316
54317 2005-10-11  Bruno Haible  <bruno@clisp.org>
54318
54319         * modules/c-strcase: New file.
54320         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
54321
54322 2005-10-11  Bruno Haible  <bruno@clisp.org>
54323
54324         * lib/strcasecmp.c: Include limits.h.
54325         (strcasecmp): Avoid integer overflow on exotic platforms.
54326         * lib/strncasecmp.c: Include limits.h.
54327         (strncasecmp): Avoid integer overflow on exotic platforms.
54328         Reported by Paul Eggert.
54329
54330 2005-10-11  Bruno Haible  <bruno@clisp.org>
54331
54332         * lib/c-strcasestr.h: New file, from GNU gettext.
54333         * lib/c-strcasestr.c: New file, from GNU gettext.
54334
54335 2005-10-11  Bruno Haible  <bruno@clisp.org>
54336
54337         * lib/c-strcase.h: New file, from GNU gettext.
54338         * lib/c-strcasecmp.c: New file, from GNU gettext.
54339         * lib/c-strncasecmp.c: New file, from GNU gettext.
54340
54341 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
54342
54343         * modules/mempcpy (License): GPL -> LGPL.
54344         * modules/strchrnul (License): Likewise.
54345         * modules/sysexits (License): Likewise.
54346
54347 2005-10-08  Simon Josefsson  <jas@extundo.com>
54348
54349         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
54350
54351 2005-10-07  Simon Josefsson  <jas@extundo.com>
54352
54353         * m4/memxor.m4: Remove gl_C_RESTRICT call.
54354
54355 2005-10-06  Simon Josefsson  <jas@extundo.com>
54356
54357         * tests/test-hmac-md5.c: New file.
54358
54359         * modules/hmac-md5-tests: New file.
54360
54361         * modules/hmac-md5: New file.
54362
54363 2005-10-06  Simon Josefsson  <jas@extundo.com>
54364
54365         * m4/hmac-md5.m4: New file.
54366
54367         * m4/memxor.m4: Require gl_C_RESTRICT.
54368
54369 2005-10-06  Simon Josefsson  <jas@extundo.com>
54370
54371         * lib/memxor.c (memxor): Avoid casts and warnings.
54372
54373 2005-10-06  Simon Josefsson  <jas@extundo.com>
54374
54375         * lib/hmac-md5.c: New file.
54376
54377         * lib/hmac.h: New file.
54378
54379 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
54380
54381         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
54382         promotes to int, not unsigned int, to catch the AIX 5.3
54383         compiler bug.
54384
54385 2005-10-05  Simon Josefsson  <jas@extundo.com>
54386
54387         * modules/memxor: New file.
54388
54389         * modules/iconv (Files): Move config.rpath to havelib, it is used
54390         there.
54391
54392         * modules/havelib (Files): Add config.rpath.
54393
54394 2005-10-05  Simon Josefsson  <jas@extundo.com>
54395
54396         * m4/memxor.m4: New file.
54397
54398 2005-10-05  Simon Josefsson  <jas@extundo.com>
54399
54400         * lib/memxor.c (memxor): Fix compiler error.
54401
54402         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
54403         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
54404
54405         * lib/memxor.h, lib/memxor.c: New files.
54406
54407         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
54408         we assume all systems have it, suggested by Jim Meyering
54409         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
54410         any systems lack sys/socket.h; mingw32 is known to lack it, but we
54411         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
54412         same reasons.
54413
54414 2005-10-05  Simon Josefsson  <jas@extundo.com>
54415
54416         * config/srclist.txt: Add glibc bug 1423 for md5.h.
54417
54418 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
54419
54420         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
54421         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
54422         needed, since the source code now assumes these .h files.
54423
54424 2005-10-05  Derek Price  <derek@ximbiot.com>
54425
54426         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
54427
54428 2005-10-05  Bruno Haible  <bruno@clisp.org>
54429
54430         * modules/stdint (License): Change to LGPL.
54431
54432 2005-10-04  Simon Josefsson  <jas@extundo.com>
54433
54434         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
54435         D. Baushke" <mdb@gnu.org>.
54436
54437 2005-10-04  Bruno Haible  <bruno@clisp.org>
54438
54439         * lib/verify.h (verify_true): Provide alternative definition for C++.
54440
54441 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
54442
54443         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
54444         (SSIZE_MAX): New macro, if not already defined.
54445         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
54446         than 2 GiB.
54447
54448 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
54449
54450         Sync from coreutils.
54451         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
54452         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
54453         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
54454         ULLONG_MAX doesn't work with 2.7.2.1.
54455
54456 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
54457
54458         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
54459         From Ben Pfaff.
54460
54461         * modules/exclude (Depends-on): Depend on verify.
54462         * modules/strtoimax (Depends-on): Likewise.
54463         * modules/utimecmp (Depends-on): Likewise.
54464
54465 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
54466
54467         * lib/exclude.c: Include verify.h.
54468         (verify): Remove.  All callers changed to use verify.h's version.
54469         * lib/strtoimax.c: Likewise.
54470         * lib/utimecmp.c: Likewis.e
54471
54472         Sync from coreutils.
54473         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
54474         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
54475         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
54476         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
54477         bother returning ENOSYS if settimeofday or stime fails; just let
54478         them return whatever errno they want to return.
54479         * lib/utimens.c: Include unistd.h, for dup2.
54480         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
54481         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
54482
54483 2005-10-02  Jim Meyering  <jim@meyering.net>
54484
54485         Sync from coreutils.
54486         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
54487         from glibc-2.2.5 that fails for read-only files.
54488
54489 2005-10-02  Jim Meyering  <jim@meyering.net>
54490
54491         Sync from coreutils.
54492         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
54493         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
54494         `#if HAVE_CONFIG_H'.
54495         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
54496         Remove AT_FDCWD test.
54497         Do not consume the fd unless successful.
54498         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
54499         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
54500         block, so that we don't even try to compile it if settimeofday is
54501         available.  This works around a compilation failure on OSF1 V5.1,
54502         due to stime requiring a `long int*' while tv_sec is `int'.
54503
54504 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
54505
54506         Sync from coreutils.
54507         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
54508         against `yes', rather than just testing for nonempty.
54509
54510 2005-10-01  Simon Josefsson  <jas@extundo.com>
54511
54512         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
54513         and Darwin.
54514
54515         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
54516         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
54517         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
54518         freeaddrinfo and gai_strerror are declared by the POSIX headers.
54519         Check if struct addrinfo is declared.
54520
54521 2005-10-01  Simon Josefsson  <jas@extundo.com>
54522
54523         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
54524         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
54525         AI_* and EAI_* definitions.  Protect function declarations.
54526
54527 2005-10-01  Jim Meyering  <jim@meyering.net>
54528
54529         Sync from coreutils.
54530
54531         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
54532         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
54533         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
54534         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
54535         in the inet and nsl libraries.  Required on Solaris 5.7.
54536
54537 2005-10-01  Jim Meyering  <jim@meyering.net>
54538
54539         Sync from coreutils.
54540         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
54541         in the inet and nsl libraries.  Required on Solaris 5.7.
54542
54543 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
54544
54545         * lib/getdelim.c (getdelim): Remove unused variables.
54546
54547 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
54548
54549         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
54550         so that the code works even with ancient cpp.  Portability problem
54551         with GCC 2.7.2.1 reported by Thomas M.Ott.
54552
54553 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
54554
54555         * modules/regex (Depends-on): Add strcase.
54556
54557         * modules/gethostname (Licence): Change from GPL to LGPL, since
54558         gethostname.c is a trivial implementation of a standard library
54559         function.
54560         * modules/poll (License): Change from GPL to LGPL, since it's
54561         derived from LGPL code.
54562
54563 2005-09-27  Jim Meyering  <jim@meyering.net>
54564
54565         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
54566         HAVE_CONFIG_H.
54567
54568         * lib/intprops.h (signed_type_or_expr__): Define.
54569         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
54570         for unsigned types.
54571
54572 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
54573
54574         * lib/verify.h (verify_expr): Remove, replacing with:
54575         (verify_true): New macro that returns true instead of void.
54576         (verify_type__): Remove.
54577         (verify): Use verify_true rather than verify_type__.
54578
54579 2005-09-26  Bruno Haible  <bruno@clisp.org>
54580
54581         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
54582         is necessary.
54583         (lib_SOURCES): Remove mbchar.c.
54584         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
54585         (Files): Add m4/mbrtowc.m4.
54586         * modules/mbiter: Likewise.
54587         * modules/mbuiter: Likewise.
54588
54589 2005-09-26  Bruno Haible  <bruno@clisp.org>
54590
54591         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
54592         compile mbchar.c if they are not both present.
54593         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
54594         * m4/mbiter.m4 (gl_MBITER): Likewise.
54595         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
54596         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
54597         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
54598
54599 2005-09-25  Jim Meyering  <jim@meyering.net>
54600
54601         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
54602         also uses socklen_t.
54603
54604 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
54605
54606         * lib/utimens.c (ENOSYS): Define if not already defined.
54607         (futimens): Support having a null PATH if the file descriptor
54608         is nonnegative.
54609
54610         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
54611         Remove.
54612         (__attribute): Define to empty unless GCC 3.1 or later.
54613         This works around a core dump on OpenBSD 3.4, which has GCC
54614         2.95.3, which dumps core when given __attribute__(()).  It also
54615         simplifies other tests, since we really don't want to bother with
54616         worrying about which ancient version of GCC supported what.
54617         Original problem reported by Yoann Vandoorselaere, with part of
54618         the fix suggested by Derek Price.
54619
54620 2005-09-24  Jim Meyering  <jim@meyering.net>
54621
54622         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
54623         so we can once again use a positive bitfield width of 1 -- now we
54624         don't have to explain why we were using a bitfield width of 2.
54625
54626 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
54627
54628         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
54629         and similarly for the other external symbols.  Problem reported
54630         by James Gallager.
54631
54632         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
54633         bug reported by Jim Meyering.
54634
54635         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
54636         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
54637         not needed, since socklen is a prerequisite module.
54638
54639 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
54640
54641         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
54642         Problem reported by Eric Blake.
54643         (getaddrinfo): Initialize se so that it's not garbage.
54644         Redo internal storage allocation so that it doesn't make unportable
54645         assumptions about alignment.
54646         Fix a memory leak.
54647
54648         * lib/utimens.c (futimens): Use futimesat if available.
54649         Prefer it to futimes since it doesn't have the futimes bug.
54650
54651         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
54652         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
54653         Instead, declare a function that returns a pointer to an array,
54654         and use verify_type__ to declare the size of the array.
54655         Problem and germ of a solution reported by Bruno Haible.
54656         (verify_type__): Use 2, not 1, for bitfield size, to avoid
54657         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
54658
54659 2005-09-23  Jim Meyering  <jim@meyering.net>
54660
54661         Sync from coreutils.
54662         Correct build failure (socklen_t not defined) on at least
54663         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
54664         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
54665
54666 2005-09-23  Jim Meyering  <jim@meyering.net>
54667
54668         * modules/getaddrinfo (Depends-on): Add socklen.
54669
54670 2005-09-23  Bruno Haible  <bruno@clisp.org>
54671
54672         * tests/test-verify.c: New file.
54673
54674 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54675
54676         Sync from coreutils.
54677
54678         * modules/argmatch (Depends-on): Add verify.
54679         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
54680         unistd-safer.
54681         * modules/save-cwd (Depends-on): Likewise.
54682
54683         * modules/openat (Files): Add lib/openat-die.c.
54684         (Depends-on): Remove error, exitfail.
54685         Add dirname.
54686
54687         * modules/verify: New file.
54688         * MODULES.html.sh (Diagnostics <assert.h>): New section,
54689         with "verify" module.
54690
54691 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54692
54693         Sync from coreutils.
54694
54695         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
54696         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
54697         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
54698         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
54699         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
54700         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
54701         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
54702         Don't bother checking for string.h, stdlib.h, unistd.h.
54703         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
54704         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
54705         module's job.
54706         * m4/jm-macros.m4 (gl_MACROS): Likewise.
54707         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
54708
54709         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
54710         (gl_GETDATE): Use it.
54711
54712         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
54713
54714 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54715
54716         Sync from coreutils.
54717
54718         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
54719         stat-time.h.
54720         * lib/argmatch.h: Include verify.h
54721         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
54722         (ARGMATCH_ASSERT): Remove; unused.
54723         * lib/canonicalize.c: Assume STDC_HEADERS.
54724         * lib/exclude.c: Include "strcase.h".
54725         * lib/regex_internal.h [!defined _LIBC]: Likewise.
54726         * lib/getusershell.c: Include stdio--.h rather than stdio.h
54727         and stdio-safer.h.
54728         (getusershell): Call fopen, not fopen_safer.
54729         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
54730         Do not include unistd-safer.h.
54731         (save_cwd): Don't call fd_safer; no longer needed
54732         now that we include fcntl--.h.
54733
54734         * lib/getdate.y (relative_time): New type.
54735         (RELATIVE_TIME_0): New constant.
54736         (parser_control): Use relative_time instead of doing it ourselves.
54737         (%union): Add new relative_time rel member.
54738         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
54739         Now typeless.
54740         (relunit, relunit_snumber): Now of type rel.
54741         (zone, rel, relunit, get_date): Adjust to above changes.
54742
54743         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
54744         Do not include unistd-safer.h.
54745         (getloadavg): Don't call fd_safer; no longer needed
54746         now that we include fcntl--.h.
54747
54748         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
54749         (make_dir_parents): Treat ENOSYS like EEXIST.
54750
54751         Improve quality of diagnostics on restore_cwd failure.
54752         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
54753         (make_dir_parents): Last arg is now int * (for errno), not bool *.
54754         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
54755         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
54756         each time through the loop.  Do not diagnose restore_cwd failure;
54757         that is the caller's job (and perhaps the caller does not care).
54758
54759         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
54760         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
54761         If the file already exists but is not a directory, don't bother
54762         to try to make its parents.
54763         Close potential file descriptor leak if we can't chdir("/") (!).
54764         Don't always return true if chdir($PWD) fails; return true only
54765         if the requested action was done successfully (except for the
54766         chdir($PWD)).
54767         Don't log final directory unless we actually made it.
54768         Refactor to avoid duplicate code to fix up permissions.
54769         Don't attempt to fix up parent permissions if chdir($PWD) fails.
54770
54771         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
54772         to make it a bit faster and (I hope) clearer.
54773         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
54774         Fix bug in formats like %2N.
54775
54776         * lib/verify.h: New file.
54777
54778 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54779
54780         Sync from coreutils.
54781         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
54782
54783 2005-09-22  Jim Meyering  <jim@meyering.net>
54784
54785         Sync from coreutils.
54786
54787         * m4/lstat.m4 (gl_FUNC_LSTAT):
54788         Use AC_LIBSOURCES to require lstat.c and lstat.h.
54789         Remove obsolete comment.
54790         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
54791         * m4/xstrtod.m4: Likewise.
54792
54793         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
54794
54795 2005-09-22  Jim Meyering  <jim@meyering.net>
54796
54797         Sync from coreutils.
54798
54799         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
54800
54801         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
54802         the .tm_year member, since otherwise gcc-4.0 would now warn about
54803         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
54804
54805         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
54806         order to avoid an unsuppressible warning from gcc on 64-bit systems.
54807
54808         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
54809         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
54810         when run in a time zone for which daylight savings time is in effect
54811         for the starting date.
54812
54813         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
54814         stop us from restricting permissions of just-created absolute-named
54815         directories.
54816         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
54817         to restore initial working directory.
54818         * lib/mkdir-p.c (make_dir_parents): New parameter:
54819         different_working_dir, to tell caller if/when we change the working
54820         directory and are unable to return to the initial one.
54821         * lib/mkdir-p.h (make_dir_parents): Update prototype.
54822         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
54823         `return false'.  This fixes a bug introduced on 2004-07-30.
54824
54825         * lib/openat.c (fdopendir): Be sure to close the supplied
54826         file descriptor before returning.  This makes our replacement
54827         implementation a little closer to Solaris's, where fdopendir
54828         ties the file descriptor to the returned DIR* pointer.
54829         * lib/openat.c (unlinkat): New function.
54830         * lib/openat.h (unlinkat): Add prototype.
54831         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
54832         (openat_restore_fail): Rename from openat_restore_die.
54833         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
54834
54835         Provide an alternative to exiting immediately upon save_cwd or
54836         restore_cwd failure.  Now, an application can arrange e.g.,
54837         to perform a longjump in that case.
54838         * lib/openat.c: Include dirname.h.
54839         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
54840         (rpl_openat, fdopendir, fstatat): Call openat_save_die
54841         and openat_restore_die rather than calling error directly.
54842         Don't include "error.h" or "exitfail.h"; they're no longer needed.
54843
54844         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
54845         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
54846         define.
54847
54848         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
54849         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
54850                             int utc, int nanoseconds);
54851         Background:
54852         date should not have to allocate a megabyte of virtual memory to
54853         handle a format argument like +%1048575T.  When implemented with
54854         strftime, it must allocate such a buffer, use strftime to fill it
54855         in, print it, then free it.
54856         With fprintftime, it simply prints everything and exits.
54857         With no need for memory allocation, that's one fewer way to fail.
54858         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
54859         optional field width, not before, so we accept %9:z, not %:9z.
54860         (my_strftime): Be sure to use L_('x') for literals.
54861
54862         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
54863         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
54864         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
54865         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
54866         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
54867         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
54868         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
54869         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
54870         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
54871         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
54872         * lib/xgethostname.c, lib/xreadlink.c:
54873         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
54874
54875         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
54876         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
54877         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
54878         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
54879         and don't include <sys/file.h>).
54880
54881 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
54882
54883         Sync from coreutils.
54884
54885         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
54886         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
54887         [!LDAV_DONE]: Avoid unused variable warning.
54888
54889 2005-09-21  Bruno Haible  <bruno@clisp.org>
54890
54891         * lib/unicodeio.h (unicode_to_mb): New declaration.
54892
54893 2005-09-20  Derek Price  <derek@ximbiot.com>
54894
54895         * lib/getaddrinfo.c: Don't include <netdb.h> included from
54896         getaddrinfo.h.
54897
54898 2005-09-20  Bruno Haible  <bruno@clisp.org>
54899
54900         * gnulib-tool: Remove trailing slashes from the values specified for
54901         --source-base, --m4-base, --tests-base, --aux-dir.
54902         Suggested by Simon Josefsson <jas@extundo.com>.
54903
54904 2005-09-20  Bruno Haible  <bruno@clisp.org>
54905
54906         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
54907         func_modules_to_filelist, func_import, func_create_testdir): Make all
54908         sorting results locale-independent, so that gnulib-cache.m4 doesn't
54909         change when gnulib-tool is invoked in a different locale.
54910
54911 2005-09-19  Simon Josefsson  <jas@extundo.com>
54912
54913         * m4/socklen.m4: Fix typo.
54914
54915 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54916
54917         Use a consistent style for including <config.h>.
54918         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
54919         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
54920         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
54921         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
54922         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
54923         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
54924         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
54925         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
54926         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
54927         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
54928         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
54929         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
54930         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
54931         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
54932         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
54933         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
54934         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
54935         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
54936         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
54937         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
54938         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
54939         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
54940         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
54941         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
54942         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
54943         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
54944         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
54945         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
54946         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
54947         lib/xstrtoumax.c, lib/yesno.c:
54948         Standardize inclusion of config.h.
54949         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
54950         lib/inttostr.h:  Removed inclusion of config.h from header files.
54951         * lib/inttostr.c:  Adjusted in-tree users.
54952         * lib/timespec.h: Remove superfluous warning to include config.h.
54953         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
54954         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
54955         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
54956         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
54957         config.h with HAVE_CONFIG_H.
54958
54959 2005-09-19  Jim Meyering  <jim@meyering.net>
54960
54961         * modules/pathmax (License): Change to LGPL.
54962
54963 2005-09-19  Derek Price  <derek@ximbiot.com>
54964
54965         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
54966
54967 2005-09-19  Bruno Haible  <bruno@clisp.org>
54968
54969         * gnulib-tool (import): Provide default for --tests-base.
54970
54971 2005-09-19  Bruno Haible  <bruno@clisp.org>
54972
54973         * doc/quote.texi: New file, extracted from gnulib.texi.
54974         * doc/ctime.texi: New file, extracted from gnulib.texi.
54975         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
54976         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
54977         * doc/gnulib.texi: Include them.
54978
54979 2005-09-18  Bruno Haible  <bruno@clisp.org>
54980
54981         Portability fix.
54982         * gnulib-tool (func_readlink): New function.
54983         (func_ln_if_changed): Use it.
54984
54985 2005-09-18  Bruno Haible  <bruno@clisp.org>
54986
54987         * gnulib-tool: Support --with-tests also with --import.
54988         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
54989         (func_import): Use variables $testsbase and $inctests. Emit a
54990         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
54991         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
54992         SUBDIRS += $testsdir.
54993         (func_create_testdir): Update.
54994
54995 2005-09-18  Bruno Haible  <bruno@clisp.org>
54996
54997         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
54998         instead of $dry_run.
54999         (func_cp_if_changed, func_mv_if_changed): Remove functions.
55000         (func_ln_if_changed): Don't handle dry-run here.
55001         (func_import): In dry-run mode, detect more precisely which actions
55002         would be performed, and don't use "...ing" verbs.
55003
55004 2005-09-18  Bruno Haible  <bruno@clisp.org>
55005
55006         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
55007         (func_import): Use join on two temporary files instead of three nested
55008         loops, in order to determine which files are new or old.
55009
55010 2005-09-18  Bruno Haible  <bruno@clisp.org>
55011
55012         * gnulib-tool (func_import): Comment out code that spits out the
55013         new files with --dry-run.
55014
55015 2005-09-18  Bruno Haible  <bruno@clisp.org>
55016
55017         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
55018
55019 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
55020
55021         * lib/stat-time.h: New file.
55022         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
55023         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
55024         in a different way.
55025         (timespec_cmp): New function.
55026         * lib/utimecmp.c: Include stat-time.h.
55027         (SYSCALL_RESOLUTION): Depend on whether various struct stat
55028         members exist, not on the obsolescent ST_MTIM_NSEC.
55029         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
55030
55031 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
55032
55033         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
55034
55035 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
55036
55037         * MODULES.html.sh (File system functions): Add stat-time.
55038         * modules/stat-time: New file.
55039         * modules/timespec (Files): Remove m4/st_mtim.m4; this
55040         is now done in a different way, by the stat-time module.
55041         * modules/utimecmp (Depends-on): Add stat-time.
55042
55043 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
55044
55045         * m4/st_mtim.m4: Remove.  Superseded by...
55046         * m4/stat-time.m4: New file.
55047         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
55048         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
55049
55050 2005-09-15  Derek Price  <derek@ximbiot.com>
55051
55052         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
55053
55054 2005-09-15  Derek Price  <derek@ximbiot.com>
55055
55056         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
55057         * lib/regex_internal.c: Ditto, using this...
55058         (__GNUC_PREREQ): ...new macro.
55059         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
55060         using...
55061         (__GNUC_PREREQ): ...this new macro.
55062
55063         * lib/strstr.h: Include string.h. Define strstr as a macro here.
55064
55065 2005-09-15  Derek Price  <derek@ximbiot.com>
55066             Paul Eggert  <eggert@cs.ucla.edu>
55067
55068         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
55069         changes, consolidating in...
55070         * lib/regex_internal.h: ...this file.
55071
55072 2005-09-13  Jim Meyering  <jim@meyering.net>
55073
55074         * lib/canon-host.c: Filter through gnu indent and reword comments
55075         slightly.
55076         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
55077
55078 2005-09-13  Derek Price  <derek@ximbiot.com>
55079
55080         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
55081         failure.
55082         Reported by Jim Meyering  <jim@meyering.net>.
55083
55084 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
55085
55086         * lib/base64.c: Typo.
55087         (base64_encode): Put b64str in initialized data section.
55088
55089 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
55090
55091         Merge glibc and coreutils changes into gnulib, plus a few
55092         extra fixes.
55093         * lib/md5.c: Use #error rather than a string.
55094         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
55095         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
55096         (__attribute__): Define to empty for non recent-GCC.
55097         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
55098         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
55099         Renamed from their non-__ counterparts, with new macros replacing
55100         them if not _LIBC.  Add __THROW attribute.
55101         (rol): Remove.
55102         (struct md5_ctx): Align buffer if using GCC.
55103         * lib/sha1.h (struct sha1_ctx): Likewise.
55104         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
55105         The old name was backwards.
55106         (NOTSWAP): Remove; not used.
55107         (rol): New macro, moved here from md5.h.
55108         (sha1_process_block): Remove a FIXME that doesn't make sense.
55109
55110 2005-09-12  Derek Price  <derek@ximbiot.com>
55111
55112         Return usable errors from canon-host.
55113         * lib/canon-host.h: New file.
55114         * lib/canon-host.c (canon_host): Wrap...
55115         (canon_host_r): ...this new function, which now relies exclusively on
55116         getaddrinfo.
55117         (ch_strerror): New function.
55118         (last_cherror): New global.
55119         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
55120         interface.
55121         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
55122         void *.
55123         (freeaddrinfo): Free ai->ai_canonname when set.
55124
55125 2005-09-12  Derek Price  <derek@ximbiot.com>
55126
55127         Make canon-host require getaddrinfo.
55128         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
55129         AC_LIBSOURCE canon-host.h.  Call...
55130         (gl_PREREQ_CANON_HOST): ...this new function, which requires
55131         gl_GETADDRINFO.
55132         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
55133
55134 2005-09-12  Derek Price  <derek@ximbiot.com>
55135
55136         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
55137         LGPL.
55138         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
55139
55140 2005-09-12  Derek Price  <derek@ximbiot.com>
55141
55142         * lib/gai_strerror.c: Include config.h when available.  Include
55143         getaddrinfo.h before other headers to test interface.
55144         Reported by Larry Jones <lawrence.jones@ugs.com>.
55145
55146 2005-09-12  Derek Price  <derek@ximbiot.com>
55147             Paul Eggert  <eggert@cs.ucla.edu>
55148
55149         * modules/glob (Files): Add glob-libc.h.
55150
55151 2005-09-12  Derek Price  <derek@ximbiot.com>
55152             Paul Eggert  <eggert@cs.ucla.edu>
55153
55154         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
55155         glob_.h, glob-libc.h.
55156         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
55157
55158 2005-09-12  Derek Price  <derek@ximbiot.com>
55159             Paul Eggert  <eggert@cs.ucla.edu>
55160
55161         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
55162         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
55163         protecting things that should be done only in gnulib contexts.
55164         * lib/glob_.h: New file, containing only the glob things needed for
55165         gnulib.
55166         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
55167         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
55168         (glob, globfree, glob_pattern_p): Now defined simply in terms of
55169         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
55170         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
55171         and to respect the namespace rules better.
55172
55173 2005-09-08  Simon Josefsson  <jas@extundo.com>
55174
55175         * modules/socklen: New file.
55176
55177 2005-09-08  Simon Josefsson  <jas@extundo.com>
55178
55179         * m4/socklen.m4: New file.
55180
55181 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55182
55183         * modules/utimens (Files): Add m4/utimbuf.m4, since
55184         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
55185         Reported by Sergey Poznyakoff.
55186
55187 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55188
55189         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
55190         definitions, since that's the preferred style in glibc.
55191         Fix a minor spacing issue, and update copyright notice to match
55192         glibc's.
55193
55194 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55195
55196         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
55197
55198 2005-09-06  Simon Josefsson  <jas@extundo.com>
55199
55200         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
55201         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
55202
55203 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
55204
55205         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
55206         warning.
55207
55208 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
55209
55210         * config/srclist.txt: Add glibc bug 1302.
55211
55212 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
55213
55214         Change bitset word type from unsigned int to unsigned long int,
55215         as this has better performance on typical 64-bit hosts.
55216         Port bitset code to hosts with unusual word sizes.
55217         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
55218         (build_collating_symbol):
55219         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
55220         argument is a bitset.  This is merely a style issue, but it makes
55221         it clearer that an entire array is expected.
55222         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
55223         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
55224         Port to the case where bitset_word is not the same as unsigned int.
55225         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
55226         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
55227         Likewise.
55228         * lib/regexec.c (check_dst_limits_calc_pos_1,
55229         check_subexp_matching_top):
55230         (build_trtable, group_nodes_into_DFAstates):
55231         Likewise.
55232         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
55233         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
55234         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
55235         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
55236         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
55237         * lib/regcomp.c (optimize_subexps, lower_subexp):
55238         Work even if bitset_word has holes in its bitwise representation.
55239         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
55240         * lib/regexec.c (check_dst_limits_calc_pos_1,
55241         check_subexp_matching_top):
55242         Likewise.
55243         * lib/regex_internal.c (re_string_reconstruct):
55244         Don't assume UCHAR_MAX == 255.
55245         * lib/regex_internal.h (bitset_set_all): Likewise.
55246         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
55247         All uses changed.
55248         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
55249         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
55250         All uses changed.
55251         (BITSET_WORD_MAX): New macro.
55252         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
55253         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
55254         (bitset_empty, bitset_copy):
55255         Prefer sizeof (bitset) to multiplying it out ourselves.
55256         (bitset_not_merge): Remove; unused.
55257         (bitset_contain): Return bool, not unsigned int with one bit on.
55258         All callers changed.
55259         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
55260         alignment than re_node_set; do this by defining a new internal
55261         type struct dests_alloc and using it to allocate memory.
55262
55263 2005-09-05  Bruno Haible  <bruno@clisp.org>
55264
55265         * gnulib-tool (func_import): Fix comparison in handling of symbolic
55266         links.
55267
55268 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
55269
55270         * modules/size_max (Makefile.am): Add size_max.h
55271
55272 2005-09-04  Derek Price  <derek@ximbiot.com>
55273
55274         * gnulib-tool (func_import): Fix reversed $symbolic logic.
55275
55276 2005-09-03  Simon Josefsson  <jas@extundo.com>
55277
55278         * gnulib-tool: Fix typo.
55279
55280 2005-09-03  Simon Josefsson  <jas@extundo.com>
55281
55282         * config/srclist.txt: Add glibc bug 1293.
55283
55284 2005-09-03  Derek Price  <derek@ximbiot.com>
55285
55286         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
55287         From Larry Jones <lawrence.jones@ugs.com>.
55288
55289 2005-09-02  Simon Josefsson  <jas@extundo.com>
55290
55291         * modules/socklen: New file.
55292
55293 2005-09-02  Simon Josefsson  <jas@extundo.com>
55294
55295         * modules/havelib: New module.
55296
55297         * modules/gettext, modules/iconv, modules/lock, modules/readline:
55298         Use havelib.
55299
55300 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
55301
55302         Check for arithmetic overflow when calculating sizes, to prevent
55303         some buffer-overflow issues.  These patches are conservative, in the
55304         sense that when I couldn't determine whether an overflow was possible,
55305         I inserted a run-time check.
55306         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
55307         macros.
55308         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
55309         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
55310         (re_xnrealloc, re_x2nrealloc): New inline functions.
55311         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
55312         parse_bracket_exp):
55313         (build_equiv_class, build_charclass): Check for arithmetic overflow
55314         in size expression calculations.
55315         * lib/regex_internal.c (re_string_realloc_buffers):
55316         (build_wcs_upper_buffer, re_node_set_add_intersect):
55317         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
55318         (re_dfa_add_node, register_state): Likewise.
55319         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
55320         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
55321         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
55322         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
55323
55324 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
55325
55326         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
55327         m4/ulonglong.m4.  Problem reported by Martin Lambers.
55328
55329 2005-09-02  Bruno Haible  <bruno@clisp.org>
55330
55331         Support for lib vs. lib64 distinction on biarch platforms.
55332         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
55333         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
55334         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
55335
55336 2005-09-02  Bruno Haible  <bruno@clisp.org>
55337
55338         * gnulib-tool (import): In the other first-use case, provide defaults
55339         as well.
55340
55341 2005-09-02  Bruno Haible  <bruno@clisp.org>
55342
55343         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
55344         patches not yet found in the latest gettext release.
55345
55346 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
55347
55348         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
55349         to avoid a collision with bits/local_lim.h in glibc.
55350         All uses changed.  Problem reported by Dmitry V. Levin in
55351         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
55352
55353         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
55354         bugs in int versus size_t comparisons.
55355         (re_string_context_at): Fix bug where the code assumed that
55356         Idx is signed.
55357
55358         Use bool where appropriate.
55359         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
55360         All callers changed.
55361         (calc_eclosure_iter): Likewise, for ROOT arg.
55362         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
55363         (build_charclass_op): Likewise, for NON_MATCH arg.
55364         * lib/regex_internal.c (re_string_allocate, re_string_construct):
55365         (re_string_construct_common): Likewise, for ICASE arg.
55366         * lib/regexec.c (re_search_2_stub, re_search_stub):
55367         Likewise, for RET_LEN arg.
55368         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
55369         (set_regs): Likewise, for FL_BACKTRACK arg.
55370         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
55371         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
55372         (calc_eclosure_iter, parse_bracket_exp):
55373         Use bool for internal variables that are booleans.
55374         * lib/regexec.c (re_search_internal, check_matching,
55375         proceed_next_node):
55376         (set_regs, build_sifted_states, sift_states_bkref):
55377         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
55378         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
55379         (find_collation_sequence_value):
55380         Likewise.
55381         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
55382         (re_node_set_compare):
55383         Return bool, not int. All callers changed.
55384         * lib/regexec.c (check_halt_node_context, check_dst_limits):
55385         (build_trtable, check_node_accept): Likewise.
55386         * lib/regex_internal.h: Include stdbool.h.
55387
55388         Fix bugs uncovered when converting to bool.
55389         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
55390         failure instead of charging ahead blindly.
55391         * lib/regex_internal.c (register_state): Likewise.
55392         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
55393         for freeing internal storage.
55394         (group_nodes_into_DFA_states): Use unsigned int, not int, for
55395         bitset pieces used as boolean, to avoid undefined behavior
55396         on hosts that do int overflow checking.
55397
55398 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
55399
55400         * config/srclist.txt: Add glibc bugs 1285-1287.
55401
55402 2005-09-01  Jim Meyering  <jim@meyering.net>
55403
55404         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
55405         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
55406         Require gl_STAT_MACROS, too.
55407
55408 2005-09-01  Bruno Haible  <bruno@clisp.org>
55409
55410         * gnulib-tool (import): In the first-use case, provide defaults.
55411
55412 2005-09-01  Bruno Haible  <bruno@clisp.org>
55413
55414         * gnulib-tool (func_import): Remove the .tmp files.
55415
55416 2005-09-01  Bruno Haible  <bruno@clisp.org>
55417
55418         * gnulib-tool (func_import): Fix handling of symbolic links.
55419
55420 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55421
55422         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
55423         old glibc regex code mishandles strings longer than 2**31 bytes.
55424         This patch fixes this when the regex code is used in gnulib
55425         (i.e., outside glibc).
55426
55427         This patch should not affect the use of the regex code inside
55428         glibc.  No doubt this problem also needs to be handled for glibc
55429         as well, but the result will be an incompatible change to the
55430         glibc ABI, and the old ABI will have to be supported too.  That
55431         can be the the subject for another patch.
55432
55433         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
55434         governing whether the rest of this patch is active.  By default,
55435         the macro is disabled and the patch has no effect.
55436         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
55437         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
55438         (struct re_pattern_buffer, re_search, re_search_2, re_match):
55439         (re_match_2, re_set_registers): Use the new types.
55440         * lib/regex_internal.h (Idx, re_hashval_t): New types.
55441         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
55442         New macros.
55443         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
55444         (re_string_context_at, bin_tree_t, re_dfastate_t):
55445         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
55446         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
55447         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
55448         (re_string_char_size_at, re_string_wchar_at):
55449         (re_string_elem_size_at):
55450         Use the new types and macros to port to 64-bit hosts.
55451         Use unsigned types for internal values, so that the code
55452         mostly works even for arrays larger than SSIZE_MAX.
55453         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
55454         (search_duplicated_node, calc_eclosure_iter, fetch_number):
55455         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
55456         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
55457         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
55458         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
55459         (calc_inveclosure, parse_dup_op, build_range_exp):
55460         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
55461         (fetch_number, create_token_tree, mark_opt_subexp):
55462         Likewise.
55463         * lib/regex_internal.c (re_string_construct_common,
55464         create_ci_newstate):
55465         (create_cd_newstate, re_string_allocate, re_string_construct):
55466         (re_string_realloc_buffers, build_wcs_upper_buffer):
55467         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
55468         (re_string_reconstruct, re_string_peek_byte_case):
55469         (re_string_fetch_byte_case, re_string_context_at):
55470         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
55471         (re_node_set_init_copy, re_node_set_add_intersect):
55472         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
55473         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
55474         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
55475         (re_acquire_state, re_acquire_state_context, register_state):
55476         Likewise.
55477         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
55478         search_cur_bkref_entry):
55479         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
55480         (re_search_internal, re_search_2_stub, re_search_stub)
55481         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
55482         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
55483         (update_cur_sifted_state, check_dst_limits):
55484         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
55485         (check_subexp_limits, sift_states_bkref, merge_state_array):
55486         (check_subexp_matching_top, get_subexp, get_subexp_sub):
55487         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
55488         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
55489         (expand_bkref_cache, check_node_accept_bytes):
55490         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
55491         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
55492         (acquire_init_state_context, check_halt_node_context):
55493         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
55494         (sift_states_backward, clean_state_log_if_needed):
55495         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
55496         (find_recover_state, transit_state_sb, transit_state_mb):
55497         (transit_state_bkref, build_trtable, match_ctx_clean):
55498         Likewise.
55499         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
55500         to work around an assumption that REG_MISSING is negative.
55501
55502         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
55503         (seek_collating_symbol_entry) [defined _LIBC]:
55504         (lookup_collation_sequence_value) [defined _LIBC]:
55505         (build_range_exp, build_collating_symbol) [defined _LIBC]:
55506         Use prototypes rather than old-style function definitions.
55507         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
55508         (transit_state_sb) [0]:
55509         (find_collation_sequence_value) [defined _LIBC]: Likewise.
55510
55511         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
55512         rm_eo.
55513
55514         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
55515         (optimize_subexps, lower_subexp):
55516         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
55517         since the signed shift might overflow.  Use 1u<<31 instead.
55518         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
55519         Likewise.
55520         * lib/regexec.c (check_dst_limits_calc_pos_1,
55521         check_subexp_matching_top): Likewise.
55522
55523         * lib/regcomp.c (optimize_subexps, lower_subexp):
55524         Use CHAR_BIT rather than 8, for clarity.
55525         * lib/regexec.c (check_dst_limits_calc_pos_1):
55526         (check_subexp_matching_top): Likewise.
55527         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
55528         have to worry about portability issues when shifting it left.
55529         Remove no-longer-needed test for table_size > 0.
55530         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
55531         in a word, as the resulting behavior is undefined.
55532         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
55533         in one case, a <= should have been an <, and in another case the
55534         whole test was missing.
55535         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
55536         the standard name CHAR_BIT.
55537         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
55538         this is not true on one's complement and signed-magnitude hosts.
55539
55540         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
55541         next_last_offset.
55542         (struct re_dfa_t): Remove unused member states_alloc.
55543         * lib/regcomp.c (init_dfa): Don't initialize unused members.
55544
55545 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55546
55547         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
55548         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
55549         and large-file glibc and in 32-bit large-file Solaris.
55550
55551 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55552
55553         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
55554         lengths fit in regoff_t; this isn't true if regoff_t is the same
55555         width as size_t.
55556         * lib/regex.c (re_search_internal): 5th arg is LAST_START
55557         (= START + RANGE) instead of RANGE.  This avoids overflow
55558         problems when regoff_t is the same width as size_t.
55559         All callers changed.
55560         (re_search_2_stub): Check for overflow when adding the
55561         sizes of the two strings.
55562         (re_search_stub): Check for overflow when adding START
55563         to RANGE; if it occurs, substitute the extreme value.
55564
55565 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55566
55567         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
55568
55569 2005-08-31  Jim Meyering  <jim@meyering.net>
55570
55571         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
55572         a pointer-to-const.
55573         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
55574         (register_state): Likewise.
55575         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
55576         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
55577         (group_nodes_into_DFAstates): Likewise.
55578
55579 2005-08-31  Jim Meyering  <jim@meyering.net>
55580
55581         * check-module: Add a FIXME comment.
55582
55583 2005-08-31  Eric Blake  <ebb9@byu.net>
55584
55585         * modules/unistd-safer (Files): Add unistd--.h.
55586         * modules/stdio-safer (Files): Add stdio--.h.
55587
55588 2005-08-31  Derek Price  <derek@ximbiot.com>
55589
55590         * lib/getdelim.c (getdelim): Return EOF on EOF.
55591         Reported by Larry Jones <lawrence.jones@ugs.com>.
55592
55593 2005-08-31  Bruno Haible  <bruno@clisp.org>
55594
55595         Avoid unnecessary diffs in the generated lib/Makefile.am.
55596         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
55597         the generated files.
55598         (func_import): Don't set cmd.
55599
55600 2005-08-31  Bruno Haible  <bruno@clisp.org>
55601
55602         * lib/strstr.c: Include <stddef.h>, for NULL.
55603         * lib/strcasestr.c: Likewise.
55604         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55605
55606 2005-08-31  Bruno Haible  <bruno@clisp.org>
55607
55608         * gnulib-tool: New option --macro-prefix.
55609         (func_import): Use macro_prefix.
55610         (import): Handle option --macro-prefix.
55611
55612 2005-08-31  Bruno Haible  <bruno@clisp.org>
55613
55614         * gnulib-tool (import): Rename most ac_* variables to cached_*.
55615         Also use new variables cached_lgpl, cached_libtool.
55616
55617 2005-08-31  Bruno Haible  <bruno@clisp.org>
55618
55619         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
55620         always instantiating them.
55621
55622 2005-08-31  Bruno Haible  <bruno@clisp.org>
55623
55624         * gnulib-tool (func_import): Read the previous cached settings
55625         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
55626         earlier added by gnulib but are now dropped. Warn when a gnulib file
55627         overwrites a non-gnulib file.
55628
55629 2005-08-31  Bruno Haible  <bruno@clisp.org>
55630
55631         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
55632         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
55633         projects that don't keep autogenerated files in CVS. Put into
55634         actioncmd only the specified modules, not the transitive closure.
55635
55636 2005-08-31  Bruno Haible  <bruno@clisp.org>
55637
55638         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
55639         Create directories that shall be filled.
55640         (import): Don't look for gl_* macros in configure.ac. Recurse across
55641         all directories containing a gnulib-cache.m4 files, if meaningful.
55642
55643 2005-08-31  Bruno Haible  <bruno@clisp.org>
55644
55645         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
55646         (import): Set seen_libtool when we see gl_LIBTOOL.
55647
55648 2005-08-31  Bruno Haible  <bruno@clisp.org>
55649
55650         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
55651         declaration macro definitions from generated gnulib.m4.
55652
55653 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
55654
55655         * lib/iconvme.h: Add prototype for iconv_alloc.
55656
55657 2005-08-29  Simon Josefsson  <jas@extundo.com>
55658
55659         * lib/iconvme.c: Fix errno.
55660
55661 2005-08-29  Bruno Haible  <bruno@clisp.org>
55662
55663         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
55664         that it works when the directory contains spaces.
55665
55666 2005-08-29  Bruno Haible  <bruno@clisp.org>
55667
55668         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
55669
55670 2005-08-29  Bruno Haible  <bruno@clisp.org>
55671
55672         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
55673         Emit more advice.
55674
55675 2005-08-29  Bruno Haible  <bruno@clisp.org>
55676         and Stepan Kasal  <kasal@ucw.cz>
55677
55678         * check-module: If more parameters are given, check each of them
55679         separately; add more exceptions, as noted by Jim Meyering.
55680         (check_module): New procedure.
55681         (%exempt_header): Now contains all exceptions.
55682
55683 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
55684
55685         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
55686
55687 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
55688
55689         * lib/iconvme.c: Split iconv_string into iconv_alloc.
55690
55691 2005-08-28  Bruno Haible  <bruno@clisp.org>
55692
55693         * m4/gnulib-tool.m4: New file.
55694
55695 2005-08-27  Jim Meyering  <jim@meyering.net>
55696
55697         * modules/unistd-safer (Files): Add pipe-safer.c.
55698         * modules/fcntl-safer (Files): Add creat-safer.c.
55699
55700 2005-08-27  Jim Meyering  <jim@meyering.net>
55701
55702         * m4/stdlib-safer.m4: New file.  From coreutils.
55703         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
55704         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
55705         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
55706         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
55707         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
55708
55709 2005-08-27  Jim Meyering  <jim@meyering.net>
55710
55711         * lib/fopen-safer.c: Merge minor changes from coreutils.
55712         * lib/dup-safer.c: Likewise.
55713         * lib/fd-safer.c: Likewise.
55714
55715         Merge from coreutils.
55716         * lib/stdio--.h: New file.
55717         * lib/stdlib--.h: New file.
55718         * lib/mkstemp-safer.c: New file.
55719
55720         GNU tar needs these.
55721         * lib/pipe-safer.c: New file.
55722         * lib/creat-safer.c: New file.
55723         * lib/fcntl--.h (creat): Define to creat_safer.
55724         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
55725         * lib/unistd--.h (pipe): Define to pipe_safer.
55726         * lib/unistd-safer.h: Declare pipe_safer.
55727
55728 2005-08-26  Simon Josefsson  <jas@extundo.com>
55729
55730         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
55731         Haible <bruno@clisp.org>.
55732
55733 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
55734
55735         * lib/regex_internal.h: Remove all references to
55736         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
55737         or better.
55738         (bitset_not, bitset_merge, bitset_not_merge):
55739         (bitset_mask, re_string_allocate, re_string_construct):
55740         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
55741         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
55742         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
55743         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
55744         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
55745         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
55746         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
55747         (re_acquire_state_context):
55748         Remove unnecessary forward decls.
55749         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
55750         Put __attribute at function definition,
55751         now that the function decl has been removed.
55752         * lib/regex_internal.c (re_string_peek_byte_case):
55753         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
55754         Likewise.
55755
55756 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
55757
55758         * m4/regex.m4: Add AC_PREREQ(2.50).
55759         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
55760
55761 2005-08-25  Simon Josefsson  <jas@extundo.com>
55762
55763         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
55764         __fsetlocking.
55765
55766 2005-08-25  Simon Josefsson  <jas@extundo.com>
55767
55768         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
55769         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
55770         GLIBC specific code.
55771
55772 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55773
55774         Make regex safe for g++.  This fixes one real bug (an "err"
55775         that should have been "*err").  g++ problem reported by
55776         Sam Steingold.
55777         * lib/regex_internal.h (re_calloc): New macro, consistent with
55778         re_malloc etc.  All callers of calloc changed to use re_calloc.
55779         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
55780         not int.  All callers changed.
55781         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
55782         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
55783         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
55784         (find_recover_state): Change "err" to "*err"; this fixes what
55785         appears to be a real bug.
55786         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
55787         versus int.
55788
55789 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55790
55791         * modules/regex (Depends-on): Add malloc, since the code
55792         assumes that !malloc(0) means failure.
55793
55794 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55795
55796         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
55797
55798         alloca modernization/simplification for regex.
55799         * lib/regex.c: Remove portability cruft for alloca.  This no longer
55800         needs to be at the start of the file, and can be moved into
55801         regex_internal.h and simplified.
55802         * lib/regex_internal.h: Include <alloca.h>.
55803         (__libc_use_alloca) [!defined _LIBC]: New macro.
55804         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
55805         now works outside glibc.
55806
55807 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55808
55809         * config/srclist.txt: Add glibc bugs 1241, 1245.
55810
55811 2005-08-25  Jim Meyering  <jim@meyering.net>
55812
55813         * lib/open-safer.c: Include <config.h>.
55814         Otherwise, we'd lose LARGEFILE support in any file using
55815         e.g. "fcntl--.h"
55816
55817 2005-08-25  Bruno Haible  <bruno@clisp.org>
55818
55819         * m4/minmax.m4: Require autoconf 2.52.
55820         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
55821         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
55822         alternatives of translit over the alphabet.
55823         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
55824
55825 2005-08-24  Simon Josefsson  <jas@extundo.com>
55826
55827         * tests/test-getpass.c: New file.
55828
55829 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
55830
55831         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
55832         for GNU regex features.
55833
55834 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
55835
55836         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
55837         * lib/regex.h (regerror): Likewise.
55838
55839         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
55840         requires this.  (The code never needed it.)
55841
55842         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
55843         All uses of recently-renamed identifiers changed to use the new,
55844         POSIX-compliant names.  The code will build and run just fine
55845         without these changes, but it's better to eat our own dog food
55846         and use the standard-conforming names.
55847
55848         * lib/regex.h: Fix a multitude of POSIX name space violations.
55849         These changes have an effect only for programs that define
55850         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
55851         do not change anything for programs compiled in the normal way.
55852         Also, there is no effect on the ABI.
55853
55854         (_REGEX_SOURCE): New macro.
55855         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
55856         defined and _GNU_SOURCE is not; this fixes a name space violation.
55857
55858         Rename the following macros to obey POSIX requirements.
55859         The old names are still visible as macros if _REGEX_SOURCE is defined.
55860         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
55861         RE_BACKSLASH_ESCAPE_IN_LISTS.
55862         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
55863         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
55864         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
55865         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
55866         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
55867         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
55868         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
55869         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
55870         (REG_INTERVALS): renamed from RE_INTERVALS.
55871         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
55872         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
55873         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
55874         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
55875         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
55876         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
55877         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
55878         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
55879         RE_UNMATCHED_RIGHT_PAREN_ORD.
55880         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
55881         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
55882         (REG_DEBUG): renamed from RE_DEBUG.
55883         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
55884         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
55885         unusual, since we can't clash with the POSIX REG_ICASE.
55886         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
55887         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
55888         (REG_NO_SUB): renamed from RE_NO_SUB.
55889         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
55890         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
55891         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
55892         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
55893         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
55894         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
55895         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
55896         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
55897         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
55898         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
55899         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
55900         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
55901         RE_SYNTAX_POSIX_MINIMAL_BASIC.
55902         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
55903         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
55904         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
55905         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
55906         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
55907         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
55908         (REG_FIXED): Renamed from REGS_FIXED.
55909         (REG_NREGS): Renamed from RE_NREGS.
55910
55911         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
55912         of other REG_* macros, since POSIX says the user is allowed to
55913         #undef these macros selectively.
55914
55915         (reg_errcode_t): Update comment stating what other tables need
55916         to be consistent.
55917
55918         Rename the following enum values to obey POSIX requirements.
55919         The old names are still visible as macros.
55920         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
55921         is not defined, since GNU is supposed to be a superset of POSIX as
55922         much as possible, and since we want reg_errcode_t to be a signed
55923         type for implementation consistency.
55924         (_REG_NOERROR): Renamed from REG_NOERROR.
55925         (_REG_NOMATCH): Renamed from REG_NOMATCH.
55926         (_REG_BADPAT): Renamed from REG_BADPAT.
55927         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
55928         (_REG_ECTYPE): Renamed from REG_ECTYPE.
55929         (_REG_EESCAPE): Renamed from REG_EESCAPE.
55930         (_REG_ESUBREG): Renamed from REG_ESUBREG.
55931         (_REG_EBRACK): Renamed from REG_EBRACK.
55932         (_REG_EPAREN): Renamed from REG_EPAREN.
55933         (_REG_EBRACE): Renamed from REG_EBRACE.
55934         (_REG_BADBR): Renamed from REG_BADBR.
55935         (_REG_ERANGE): Renamed from REG_ERANGE.
55936         (_REG_ESPACE): Renamed from REG_ESPACE.
55937         (_REG_BADRPT): Renamed from REG_BADRPT.
55938         (_REG_EEND): Renamed from REG_EEND.
55939         (_REG_ESIZE): Renamed from REG_ESIZE.
55940         (_REG_ERPAREN): Renamed from REG_ERPAREN.
55941         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
55942         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
55943         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
55944         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
55945
55946         (_REG_RE_NAME, _REG_RM_NAME): New macros.
55947         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
55948         changed.  But support the old name if the new one is not defined
55949         and if _REGEX_SOURCE.
55950
55951         Change the following member names in struct re_pattern_buffer.
55952         The old names are still supported if !_REGEX_SOURCE.
55953         The new names are always supported, regardless of _REGEX_SOURCE.
55954         (re_buffer): Renamed from buffer.
55955         (re_allocated): Renamed from allocated.
55956         (re_used): Renamed from used.
55957         (re_syntax): Renamed from syntax.
55958         (re_fastmap): Renamed from fastmap.
55959         (re_translate): Renamed from translate.
55960         (re_can_be_null): Renamed from can_be_null.
55961         (re_regs_allocated): Renamed from regs_allocated.
55962         (re_fastmap_accurate): Renamed from fastmap_accurate.
55963         (re_no_sub): Renamed from no_sub.
55964         (re_not_bol): Renamed from not_bol.
55965         (re_not_eol): Renamed from not_eol.
55966         (re_newline_anchor): Renamed from newline_anchor.
55967
55968         Change the following member names in struct re_registers.
55969         The old names are still supported if !_REGEX_SOURCE.
55970         The new names are always supported, regardless of _REGEX_SOURCE.
55971         (rm_num_regs): Renamed from num_regs.
55972         (rm_start): Renamed from start.
55973         (rm_end): Renamed from end.
55974
55975         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
55976         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
55977         Prepend __ to parameter names.
55978
55979         Undo yesterday's changes.
55980
55981 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
55982
55983         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
55984         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
55985         lib/regex.c.
55986
55987 2005-08-24  Jim Meyering  <jim@meyering.net>
55988
55989         Sync from coreutils.
55990         * m4/fcntl-safer.m4: New file.
55991
55992         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
55993         and object files for this module.
55994
55995 2005-08-24  Jim Meyering  <jim@meyering.net>
55996
55997         Sync from coreutils.
55998         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
55999
56000 2005-08-24  Jim Meyering  <jim@meyering.net>
56001
56002         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
56003         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
56004
56005 2005-08-24  Jim Meyering  <jim@meyering.net>
56006
56007         * modules/fcntl-safer: New module.
56008         * modules/fts (Depends-on): Add fcntl-safer.
56009         * MODULES.html.sh (File descriptor based Input/Output):
56010         Add fcntl-safer.
56011
56012 2005-08-24  Bruno Haible  <bruno@clisp.org>
56013
56014         Support for unit test modules.
56015         * modules/README: Mention tests modules.
56016         * modules/TEMPLATE-TESTS: New file.
56017         * gnulib-tool: New options --extract-tests-module, --with-tests and
56018         --tests-base (unused for the moment).
56019         (testsbase, inctests): New variables.
56020         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
56021         (func_verify_module): Exclude TEMPLATE-TESTS.
56022         (func_verify_nontests_module, func_verify_tests_module): New functions.
56023         (func_get_dependencies): Add implicit dependency for tests modules.
56024         (func_get_tests_module): New function.
56025         (func_modules_transitive_closure): When --with-tests was specified,
56026         include the unit tests as well, unless explicitly avoided.
56027         (func_emit_lib_Makefile_am): Ignore the tests modules here.
56028         (func_emit_tests_Makefile_am): New function.
56029         (func_create_testdir): When --with-tests was specified, emit a
56030         tests/ directory.
56031         * MODULES.html.sh (Future developments): Update.
56032
56033 2005-08-24  Bruno Haible  <bruno@clisp.org>
56034
56035         * modules/tls-tests: New file.
56036         * tests/test-tls.c: New file, from GNU gettext.
56037
56038 2005-08-24  Bruno Haible  <bruno@clisp.org>
56039
56040         * modules/lock-tests: New file.
56041         * tests/test-lock.c: New file, from GNU gettext.
56042
56043 2005-08-24  Bruno Haible  <bruno@clisp.org>
56044
56045         * lib/lock.h: Add multiple inclusion guard.
56046         * lib/tls.h: Add multiple inclusion guard.
56047
56048 2005-08-24  Bruno Haible  <bruno@clisp.org>
56049
56050         * gnulib-tool: Add support for the --aux-dir option to
56051         --create-testdir, --create-megatestdir, --test, --megatest.
56052         (func_create_testdir, func_create_megatestdir): Optionally emit a
56053         AC_CONFIG_AUX_DIR directive.
56054         (create-testdir, create-megatestdir, test, megatest): Provide a
56055         default value for $auxdir.
56056
56057 2005-08-24  Bruno Haible  <bruno@clisp.org>
56058
56059         * gnulib-tool (import): Use compound statement instead of subshell
56060         where possible.
56061
56062 2005-08-24  Bruno Haible  <bruno@clisp.org>
56063
56064         * gnulib-tool (import): Change --aux-dir default to "build-aux".
56065
56066 2005-08-24  Bruno Haible  <bruno@clisp.org>
56067
56068         * gnulib-tool (func_version): Update.
56069
56070 2005-08-24  Bruno Haible  <bruno@clisp.org>
56071
56072         * gnulib-tool (func_import, func_create_testdir,
56073         func_create_megatestdir): Quote all autoconf macro arguments.
56074
56075 2005-08-24  Bruno Haible  <bruno@clisp.org>
56076
56077         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
56078         option --force, because --force causes the aclocal.m4 of each
56079         subdirectory to be newer than the corresponding config.h.in.
56080
56081 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
56082
56083         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
56084         All contents moved to gl_REGEX.
56085         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
56086         assume that it does.
56087
56088 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
56089
56090         * lib/regex.h (REG_NOSYS)
56091         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
56092         Define, since POSIX requires it as of 2001.
56093         (_REG_ENOSYS)
56094         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
56095         New private symbol, used to keep the enum signed in all cases.
56096         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
56097         Youngman in
56098         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
56099
56100         * lib/regex_internal.c (re_string_skip_chars, register_state):
56101         (calc_state_hash):
56102         Remove forward decls; no longer needed now that we use prototypes.
56103         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
56104         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
56105         (clean_state_log_if_needed): Likewise.
56106
56107 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
56108
56109         * config/srclist.txt: Add glibc bugs 1231-1233.
56110
56111 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56112
56113         Fix problems reported by Sam Steingold in
56114         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
56115         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
56116         assumed that reg_errcode_t is a signed type, which is not
56117         necessarily true if _XOPEN_SOURCE is not defined.
56118         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
56119         since some compilers warn about it otherwise.
56120
56121 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56122
56123         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
56124         (init_word_char, create_initial_state, duplicate_node_closure):
56125         (fetch_token, peek_token_bracket, build_range_exp):
56126         (build_collating_symbol): Remove forward decls; no longer needed
56127         now that we use prototypes.
56128
56129         * lib/regcomp.c:
56130         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
56131         (re_compile_fastmap_iter, regcomp, regerror, regfree):
56132         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
56133         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
56134         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
56135         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
56136         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
56137         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
56138         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
56139         (build_range_exp, build_collating_symbol, parse_bracket_exp):
56140         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
56141         (build_charclass, build_charclass_op, fetch_number, create_tree):
56142         (create_token_tree, mark_opt_subexp, duplicate_tree):
56143         Use prototypes rather than old-style definitions.
56144
56145         * lib/regex_internal.c:
56146         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
56147         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
56148         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
56149         (re_string_reconstruct, re_string_peek_byte_case):
56150         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
56151         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
56152         (re_node_set_init_copy, re_node_set_add_intersect):
56153         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
56154         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
56155         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
56156         (re_acquire_state, re_acquire_state_context, register_state):
56157         (create_ci_newstate, create_cd_newstate, free_state):
56158         Likewise.
56159         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
56160         re_search_2):
56161         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
56162         (re_search_internal, prune_impossible_nodes):
56163         (acquire_init_state_context, check_matching, static):
56164         (check_halt_node_context, check_halt_state_context, proceed_next_node):
56165         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
56166         (update_regs, sift_states_backward, build_sifted_states):
56167         (clean_state_log_if_needed, merge_state_array):
56168         (update_cur_sifted_state, add_epsilon_src_nodes):
56169         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
56170         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
56171         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
56172         (find_recover_state, check_subexp_matching_top, transit_state_mb):
56173         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
56174         (check_arrival, check_arrival_add_next_nodes):
56175         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
56176         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
56177         (check_node_accept_bytes, check_node_accept, extend_buffers):
56178         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
56179         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
56180         (sift_ctx_init):
56181         Likewise.
56182
56183         * lib/regex_internal.h:
56184         (re_string_allocate, re_string_construct, re_string_reconstruct):
56185         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
56186         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
56187         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
56188         (re_string_context_at, re_string_peek_byte_case):
56189         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
56190         is defined, since we now use prototypes always.
56191
56192         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
56193         C89 or better.  All uses removed.
56194
56195 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56196
56197         * config/srclist.txt: Add glibc bugs 1220-1227.
56198
56199 2005-08-20  Jim Meyering  <jim@meyering.net>
56200
56201         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
56202         of unused local, dfa.
56203
56204 2005-08-20  Bruno Haible  <bruno@clisp.org>
56205
56206         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
56207
56208 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56209
56210         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
56211         (re_node_set_insert_last, re_dfa_add_node):
56212         Rename local variables to avoid GCC shadowing warnings.
56213
56214 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56215
56216         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
56217         [defined lint]: Suppress bogus uninitialized-variable warnings.
56218
56219         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
56220         and let the caller return REG_ESPACE if out of space.  This
56221         removes an uninitialied-variable warning with GCC 4.0.1, and also
56222         avoids taking the address of a local variable.  All callers
56223         changed.
56224
56225 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56226
56227         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
56228         $LIBCSRC/posix/regexec.c.
56229         Add glibc bug 1217 for regcomp.c.
56230
56231 2005-08-19  Jim Meyering  <jim@meyering.net>
56232
56233         * lib/regexec.c (proceed_next_node): Redo local variables to
56234         avoid GCC shadowing warnings.
56235
56236 2005-08-18  Bruno Haible  <bruno@clisp.org>
56237
56238         * lib/strstr.c (strstr): Fix return value in multibyte case.
56239         * lib/strcasestr.c (strcasestr): Likewise.
56240
56241 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
56242
56243         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
56244
56245 2005-08-17  Jim Meyering  <jim@meyering.net>
56246
56247         Make the %s format (seconds since the epoch) work for a negative
56248         number and when used with a zero-padded field width, e.g. %015s.
56249
56250         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
56251         label so that it precedes the code to set `digits'.  Otherwise,
56252         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
56253         print `00-22'.  Now, it prints `-0022', as it should.
56254
56255 2005-08-17  Bruno Haible  <bruno@clisp.org>
56256
56257         * modules/strstr (Files): Add m4/mbrtowc.m4.
56258         (Depends-on): Add mbuiter.
56259
56260 2005-08-17  Bruno Haible  <bruno@clisp.org>
56261
56262         * modules/strcasestr: New file.
56263         * MODULES.html.sh (String handling, based on ANSI C 89): Add
56264         strcasestr.
56265
56266 2005-08-17  Bruno Haible  <bruno@clisp.org>
56267
56268         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
56269
56270 2005-08-17  Bruno Haible  <bruno@clisp.org>
56271
56272         * modules/mbuiter: New file.
56273         * MODULES.html.sh (Extended multibyte and wide character utilities):
56274         Add mbuiter.
56275
56276 2005-08-17  Bruno Haible  <bruno@clisp.org>
56277
56278         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
56279         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
56280
56281 2005-08-17  Bruno Haible  <bruno@clisp.org>
56282
56283         * m4/strcasestr.m4: New file.
56284
56285 2005-08-17  Bruno Haible  <bruno@clisp.org>
56286
56287         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
56288         * lib/strstr.c: Completely rewritten, with multibyte locale support.
56289
56290 2005-08-17  Bruno Haible  <bruno@clisp.org>
56291
56292         * lib/strcasestr.h: New file.
56293         * lib/strcasestr.c: New file.
56294
56295 2005-08-17  Bruno Haible  <bruno@clisp.org>
56296
56297         * lib/strcasecmp.c: Use mbuiter.h.
56298
56299 2005-08-17  Bruno Haible  <bruno@clisp.org>
56300
56301         * lib/mbuiter.h: New file.
56302
56303 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
56304
56305         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
56306         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
56307         and gl_GETOPT are both invoked via different paths (as happens
56308         with GNU tar CVS because it uses both argp and getopt), the former
56309         wins.
56310
56311 2005-08-16  Bruno Haible  <bruno@clisp.org>
56312
56313         * modules/tls: New file.
56314         * MODULES.html.sh (Multithreading): Add tls.
56315
56316 2005-08-16  Bruno Haible  <bruno@clisp.org>
56317
56318         * modules/strnlen1: New file.
56319         * MODULES.html.sh (String handling): Add strnlen1.
56320
56321 2005-08-16  Bruno Haible  <bruno@clisp.org>
56322
56323         * modules/strcase (Files): Add m4/mbrtowc.m4.
56324         (Depends-on): Add strnlen1, mbchar.
56325
56326 2005-08-16  Bruno Haible  <bruno@clisp.org>
56327
56328         * modules/mbiter: New file.
56329         * MODULES.html.sh (Extended multibyte and wide character utilities):
56330         Add mbiter.
56331
56332 2005-08-16  Bruno Haible  <bruno@clisp.org>
56333
56334         * modules/mbfile: New file.
56335         * MODULES.html.sh (Extended multibyte and wide character utilities):
56336         Add mbfile.
56337
56338 2005-08-16  Bruno Haible  <bruno@clisp.org>
56339
56340         * modules/mbchar: New file.
56341         * MODULES.html.sh (Extended multibyte and wide character utilities):
56342         New section.
56343
56344 2005-08-16  Bruno Haible  <bruno@clisp.org>
56345
56346         * m4/tls.m4: New file, from GNU gettext.
56347
56348 2005-08-16  Bruno Haible  <bruno@clisp.org>
56349
56350         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
56351         always.
56352         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
56353
56354 2005-08-16  Bruno Haible  <bruno@clisp.org>
56355
56356         * m4/mbiter.m4: New file.
56357
56358 2005-08-16  Bruno Haible  <bruno@clisp.org>
56359
56360         * m4/mbfile.m4: New file.
56361
56362 2005-08-16  Bruno Haible  <bruno@clisp.org>
56363
56364         * m4/mbchar.m4: New file.
56365
56366 2005-08-16  Bruno Haible  <bruno@clisp.org>
56367
56368         * lib/tls.h: New file, from GNU gettext.
56369         * lib/tls.c: New file, from GNU gettext.
56370
56371 2005-08-16  Bruno Haible  <bruno@clisp.org>
56372
56373         * lib/strnlen1.h: New file.
56374         * lib/strnlen1.c: New file.
56375
56376 2005-08-16  Bruno Haible  <bruno@clisp.org>
56377
56378         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
56379         (mbi_init): Update.
56380         (mbi_avail, mbi_advance): Let the iteration end before the terminating
56381         NUL byte, not after it.
56382
56383 2005-08-16  Bruno Haible  <bruno@clisp.org>
56384
56385         * lib/strcase.h (strcasecmp): Add note in comments.
56386         * lib/strncasecmp.c: Use code from strcasecmp.c.
56387         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
56388         (strcasecmp): Work correctly in multibyte locales.
56389
56390 2005-08-16  Bruno Haible  <bruno@clisp.org>
56391
56392         * lib/mbiter.h: New file.
56393
56394 2005-08-16  Bruno Haible  <bruno@clisp.org>
56395
56396         * lib/mbfile.h: New file.
56397
56398 2005-08-16  Bruno Haible  <bruno@clisp.org>
56399
56400         * lib/mbchar.h: New file.
56401         * lib/mbchar.c: New file.
56402
56403 2005-08-16  Bruno Haible  <bruno@clisp.org>
56404
56405         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
56406         the valid ones. Makes the comparison operations transitive:
56407         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
56408         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
56409
56410 2005-08-15  Simon Josefsson  <jas@extundo.com>
56411
56412         * modules/ssize_t (License): Change to 'unlimited'.
56413
56414         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
56415
56416 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
56417
56418         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
56419         Add comments for each pending glibc patch.
56420
56421 2005-08-15  Bruno Haible  <bruno@clisp.org>
56422
56423         * lib/regex.h (__restrict_arr): Don't define to __restrict if
56424         __cplusplus is defined.
56425
56426 2005-08-14  Jim Meyering  <jim@meyering.net>
56427
56428         Sync from coreutils.
56429
56430         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
56431         Use the hash-table-based cycle-detection code not just when
56432         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
56433         Reported by James Youngman in
56434         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
56435         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
56436         FTS_TIGHT_CYCLE_CHECK.
56437         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
56438         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
56439         once again.
56440         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
56441         * lib/fts.c (fd_safer): Remove decl.
56442         Include fcntl--.h rather than unistd-safer.h
56443         (fts_safe_changedir): Don't call fd_safer; no longer needed
56444         now that we include fcntl--.h.
56445
56446 2005-08-12  Simon Josefsson  <jas@extundo.com>
56447
56448         * modules/getndelim2: Use ssize_t module.
56449         * modules/getnline: Likewise.
56450         * modules/safe-read: Likewise.
56451         * modules/xreadlink: Likewise.
56452
56453         * modules/ssize_t: New file.
56454
56455 2005-08-12  Simon Josefsson  <jas@extundo.com>
56456
56457         * m4/readline.m4: Look for termcap, curses or ncurses if required.
56458
56459 2005-08-12  Simon Josefsson  <jas@extundo.com>
56460
56461         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56462         ssize_t.
56463
56464 2005-08-12  Simon Josefsson  <jas@extundo.com>
56465
56466         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
56467         readline, getdelim and check_version.
56468         (Support for systems lacking ISO C 99: Sizes of integer types):
56469         Add size_max.
56470
56471 2005-08-12  Bruno Haible  <bruno@clisp.org>
56472
56473         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
56474
56475 2005-08-11  Simon Josefsson  <jas@extundo.com>
56476
56477         * modules/readline: New file.
56478
56479         * modules/strnlen (Files): Add strnlen.h.
56480
56481 2005-08-11  Simon Josefsson  <jas@extundo.com>
56482
56483         * m4/readline.m4: New file.
56484
56485 2005-08-11  Simon Josefsson  <jas@extundo.com>
56486
56487         * lib/readline.h, readline.c: New file.
56488
56489 2005-08-11  Simon Josefsson  <jas@extundo.com>
56490
56491         * doc/gnulib.texi (Initial import, Finishing touches): Mention
56492         gl_AVOID.
56493
56494 2005-08-11  Bruno Haible  <bruno@clisp.org>
56495
56496         * lib/strnlen.h (strnlen): Change parameter name to match comment.
56497
56498 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
56499
56500         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
56501
56502 2005-08-10  Simon Josefsson  <jas@extundo.com>
56503
56504         * tests/test-iconvme.c: New file.
56505
56506 2005-08-10  Simon Josefsson  <jas@extundo.com>
56507
56508         * m4/strnlen.m4: New file.
56509
56510         * m4/strndup.m4: Don't check for strnlen declaration, done in
56511         strnlen.m4.
56512
56513 2005-08-10  Simon Josefsson  <jas@extundo.com>
56514
56515         * lib/strndup.c: Use strnlen.h.
56516
56517         * lib/strnlen.h: New file.
56518
56519 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
56520
56521         * README: Typos.
56522
56523 2005-08-02  Simon Josefsson  <jas@extundo.com>
56524
56525         * modules/readline: New file.
56526
56527 2005-08-02  Simon Josefsson  <jas@extundo.com>
56528
56529         * modules/getdelim: New file.
56530
56531         * modules/getline: Rewrite, don't use getndelim2.
56532
56533 2005-08-02  Simon Josefsson  <jas@extundo.com>
56534
56535         * m4/getline.m4: Separate out getdelim stuff into separate module.
56536
56537         * m4/getdelim.m4: New file.
56538
56539 2005-08-02  Simon Josefsson  <jas@extundo.com>
56540
56541         * lib/getline.h, getline.c: Rewrite.
56542
56543         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
56544
56545 2005-07-31  Bruno Haible  <bruno@clisp.org>
56546
56547         * lib/lock.h (gl_lock_initializer): New macro.
56548         (gl_lock_define_initialized): Use it.
56549         (gl_rwlock_initializer): New macro.
56550         (gl_rwlock_define_initialized): Use it.
56551         (gl_recursive_lock_initializer): New macro.
56552         (gl_recursive_lock_define_initialized): Use it.
56553
56554 2005-07-30  Karl Berry  <karl@gnu.org>
56555
56556         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
56557         Report from Ben Pfaff, regarding getopt.
56558
56559 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
56560
56561         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
56562         normal way.
56563         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
56564         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
56565         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
56566         (gl_GETOPT): Use the new macros.  Most of the implementation
56567         is moved to the new macros.  This is for programs like Emacs
56568         that don't want all the functionality of gl_GETOPT.
56569
56570 2005-07-26  Bruno Haible  <bruno@clisp.org>
56571
56572         * m4/lock.m4: Update from GNU gettext.
56573
56574 2005-07-26  Bruno Haible  <bruno@clisp.org>
56575
56576         * lib/lock.h: Update from GNU gettext.
56577         * lib/lock.c: Update from GNU gettext.
56578
56579 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
56580
56581         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
56582         obsolescent AC_TRY_RUN.  Include the default includes files, for
56583         'exit'.
56584
56585 2005-07-24  Bruno Haible  <bruno@clisp.org>
56586
56587         * modules/visibility: New file.
56588         * MODULES.html.sh (Misc): Add visibility.
56589
56590 2005-07-24  Bruno Haible  <bruno@clisp.org>
56591
56592         * m4/visibility.m4: New file.
56593
56594 2005-07-24  Bruno Haible  <bruno@clisp.org>
56595
56596         * doc/visibility.texi: New file.
56597
56598 2005-07-22  Bruno Haible  <bruno@clisp.org>
56599
56600         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
56601         $(ALLOCA_H), redundant through BUILT_SOURCES.
56602         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
56603         redundant through BUILT_SOURCES.
56604         * modules/byteswap (Makefile.am): Remove explicit dependency on
56605         $(BYTESWAP_H), redundant through BUILT_SOURCES.
56606         * modules/fnmatch (Makefile.am): Remove explicit dependency on
56607         $(FNMATCH_H), redundant through BUILT_SOURCES.
56608         * modules/getopt (Makefile.am): Remove explicit dependency on
56609         $(GETOPT_H), redundant through BUILT_SOURCES.
56610         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
56611         redundant through BUILT_SOURCES.
56612         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
56613         redundant through BUILT_SOURCES.
56614         * modules/stdbool (Makefile.am): Remove explicit dependency on
56615         $(STDBOOL_H), redundant through BUILT_SOURCES.
56616         * modules/stdint (Makefile.am): Remove explicit dependency on
56617         $(STDINT_H), redundant through BUILT_SOURCES.
56618         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
56619         Remove explicit dependency on $(SYSEXITS_H).
56620         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
56621
56622 2005-07-18  Simon Josefsson  <jas@extundo.com>
56623
56624         * lib/check-version.c (check_version): Accept identical versions too.
56625
56626 2005-07-18  Bruno Haible  <bruno@clisp.org>
56627
56628         * modules/lock: New file.
56629         * MODULES.html.sh (Multithreading): New section.
56630
56631 2005-07-18  Bruno Haible  <bruno@clisp.org>
56632
56633         * m4/lock.m4: New file, from GNU gettext.
56634
56635 2005-07-18  Bruno Haible  <bruno@clisp.org>
56636
56637         * lib/lock.h: New file, from GNU gettext.
56638         * lib/lock.c: New file, from GNU gettext.
56639
56640 2005-07-18  Bruno Haible  <bruno@clisp.org>
56641
56642         * lib/lock.h (gl_once_t): New type.
56643         (gl_once_define, gl_once): New macros.
56644         * lib/lock.c (fresh_once): New variable.
56645         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
56646         functions.
56647
56648 2005-07-16  Simon Josefsson  <jas@extundo.com>
56649
56650         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
56651         workaround, suggested by Bruno.
56652
56653 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
56654
56655         * modules/xalloc (Depends-on): Add xalloc-die.
56656         * modules/xvasprintf (Depends-on): Add xalloc-die.
56657
56658 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
56659
56660         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
56661         with a minor change.
56662
56663 2005-07-15  Bruno Haible  <bruno@clisp.org>
56664
56665         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
56666         When using lib/poll.c, define poll as rpl_poll.
56667
56668 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
56669
56670         * modules/argp (Depends-on): Remove unlocked-io.
56671
56672 2005-07-14  Derek Price  <derek@ximbiot.com>
56673
56674         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
56675         for glob symlink bug.
56676
56677 2005-07-14  Bruno Haible  <bruno@clisp.org>
56678
56679         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
56680         Instead, test for *_unlocked function declarations directly.
56681
56682 2005-07-11  Simon Josefsson  <jas@extundo.com>
56683
56684         * modules/size_max: New file.
56685
56686         * modules/xsize: Depend on size_max module for size_max.m4.
56687
56688 2005-07-11  Simon Josefsson  <jas@extundo.com>
56689
56690         * lib/size_max.h: New file.
56691
56692 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
56693
56694         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
56695         copyright symbol and the year.
56696         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
56697         (version_etc_va): Use parameterized copyright notice.
56698         Reword to conform to the current GNU coding standards.
56699
56700 2005-07-11  Karl Berry  <karl@gnu.org>
56701
56702         * doc/gnulib.texi (Quoting): new node.
56703         (Initial import): more info, from Patrice.
56704
56705 2005-07-11  Bruno Haible  <bruno@clisp.org>
56706
56707         * gnulib-tool (func_usage): Document option --avoid.
56708         (Command line options): Handle --avoid.
56709         (func_acceptable): New function.
56710         (func_modules_transitive_closure): Use it.
56711
56712 2005-07-11  Bruno Haible  <bruno@clisp.org>
56713
56714         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
56715         Reported by Jim Meyering.
56716
56717 2005-07-10  Bruno Haible  <bruno@clisp.org>
56718
56719         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
56720         Needed when size_t is smaller than 'unsigned int'.
56721         Reported by Paul Eggert.
56722
56723 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56724
56725         * modules/argp (Depends-on): Add unlocked-io
56726
56727 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56728
56729         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
56730         block of defines.
56731
56732 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
56733
56734         * config/srclist.txt: Comment out regcomp.c, since we have a porting
56735         fix now.
56736
56737 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
56738         and Paul Eggert  <eggert@cs.ucla.edu>
56739
56740         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
56741         in wint_t, not wchar_t.  Remove now-unnecessary cast.
56742
56743 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56744
56745         * modules/regex (Files): Add lib/regex_internal.c,
56746         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
56747         (Depends-on): Add extensions.
56748         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
56749
56750 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56751
56752         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
56753         pathconf.
56754         * m4/same.m4 (gl_SAME): Likewise.
56755         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
56756
56757         * m4/regex.m4: Adjust to new libc regex implementation.
56758         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
56759         all the .c and .h parts of (the new) regex.
56760         Quote the m4 stuff better.
56761         Check for RE_ICASE bug of old gnulib.
56762         Check for REG_STARTEND of recent libc.
56763         Rename local variables from jm_* to gl_*.
56764         Quote operand of "test -f".
56765         Say "recent enough" version of libc, not "version 2".
56766         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
56767         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
56768         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
56769         Remove check for btowc, isascii.
56770         Require AM_LANGINFO_CODESET.
56771
56772 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56773
56774         * lib/regex.c, regex.h: Sync from libc.
56775         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
56776         * lib/regexec.c:
56777         New files, synced from libc, except that regex_internal.h
56778         currently has a small porting fix.
56779
56780 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56781
56782         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
56783         regex_internal.c, regexec.c.
56784         Add regex_internal.h too, but as a comment, since the libc version
56785         is currently broken in gnulib mode.
56786
56787 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
56788
56789         Support programs like Emacs that use gnulib but not gettext.
56790         * MODULES.html.sh (Internationalization functions): Add gettext-h.
56791         * modules/gettext-h: New file.
56792         * modules/gettext (Files): Remove lib/gettext.h.
56793         (Depends-on): Add gettext-h.
56794         (Makefile.am): Remove lib_SOURCES.
56795         * modules/argmatch, modules/c-stack, modules/closeout:
56796         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
56797         * modules/execute, modules/file-type, modules/getaddrinfo:
56798         * modules/getopt, modules/human, modules/javacomp:
56799         * modules/javaexec, modules/mkdir-p, modules/obstack:
56800         * modules/openat, modules/pagealign_alloc, modules/pipe:
56801         * modules/quotearg, modules/regex, modules/rpmatch:
56802         * modules/unicodeio, modules/userspec, modules/version-etc:
56803         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
56804         * modules/xsetenv:
56805         Depend on gettext-h, not gettext.
56806
56807 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
56808
56809         * gnulib-tool (func_import): Add support for 'public domain' license.
56810         * modules/alloca, modules/atexit, modules/memmove:
56811         Now public domain, not GPL.
56812         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
56813         * modules/realloc, modules/strerror, modules/strtod:
56814         Now LGPL, not GPL.
56815
56816 2005-07-05  Bruno Haible  <bruno@clisp.org>
56817
56818         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
56819         autoconf CVS. Needed for mingw.
56820
56821 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56822
56823         Remove the dependency of the strftime module on the tzset module.
56824         * modules/strftime (Depends-on): Remove dependency on tzset.
56825
56826 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56827
56828         Remove the dependency of the strftime module on the tzset module.
56829         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
56830         gl_FUNC_TZSET_CLOBBER.
56831
56832 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56833
56834         Remove the dependency of the strftime module on the tzset module.
56835         * lib/strftime.c (my_strftime)
56836         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
56837         Copy the input structure, to work around some of the bug with
56838         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
56839         Solaris releases, you should also use the tzset module, but we won't
56840         require it as a dependency any more since we don't want LGPLed code
56841         to depend on GPLed code.
56842
56843 2005-07-02  Jim Meyering  <jim@meyering.net>
56844
56845         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
56846         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
56847         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
56848         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
56849
56850 2005-07-02  Jim Meyering  <jim@meyering.net>
56851
56852         * lib/backupfile.c (backup_args): Change a `0' to NULL.
56853
56854 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
56855
56856         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
56857         declares only 'struct timespec;' (!).
56858
56859 2005-07-01  Jim Meyering  <jim@meyering.net>
56860
56861         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
56862         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
56863         * lib/save-cwd.c, tempname.c:
56864         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
56865         and don't include <sys/file.h>).
56866
56867 2005-06-29  Jim Meyering  <jim@meyering.net>
56868
56869         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
56870         type name.  Use the variable name instead.
56871         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
56872         Likewise.
56873
56874 2005-06-28  Simon Josefsson  <jas@extundo.com>
56875
56876         * modules/check-version (Files): Add check-version.m4.
56877
56878 2005-06-28  Simon Josefsson  <jas@extundo.com>
56879
56880         * m4/check-version.m4: New file, suggested by Jim Meyering
56881         <jim@meyering.net>.
56882
56883 2005-06-28  Simon Josefsson  <jas@extundo.com>
56884
56885         * lib/check-version.h, lib/check-version.c: New files.
56886
56887 2005-06-28  Simon Josefsson  <jas@extundo.com>
56888
56889         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
56890         collision with global variable.  Better indentation.  Don't
56891         increment buffer pointer beyond buffer end.  Based on comments
56892         from Paul Eggert <eggert@cs.ucla.edu>.
56893
56894         * lib/base64.h: Indent.
56895
56896 2005-06-28  Simon Josefsson  <jas@extundo.com>
56897
56898         * doc/gnulib.texi (Library version handling): New section.
56899
56900 2005-06-28  Jim Meyering  <jim@meyering.net>
56901
56902         * check-module (find_included_lib_files): Hard-code another
56903         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
56904         but modules/fts-lgpl (correctly) does not list those files.
56905
56906         * modules/canonicalize (Files): Add lib/pathmax.h.
56907
56908 2005-06-25  Simon Josefsson  <jas@extundo.com>
56909
56910         * modules/check-version: New file.
56911
56912 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
56913
56914         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
56915         initializer of struct addrinfo, as an indication that we don't
56916         care how many members the structure has.
56917
56918 2005-06-24  Derek Price  <derek@ximbiot.com>
56919         and Bruno Haible  <bruno@clisp.org>
56920
56921         Remove stat module & update lstat.
56922         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
56923         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
56924         * m4/stat.m4: Remove this file.
56925
56926 2005-06-24  Derek Price  <derek@ximbiot.com>
56927         and Bruno Haible  <bruno@clisp.org>
56928
56929         Remove stat module & update lstat.
56930         * lib/stat.c: Remove this file...
56931         (slash_aware_lstat): ...moving this content and its support...
56932         * lib/lstat.c (rpl_lstat): ...into here.
56933         * lib/lstat.h: New file.
56934
56935 2005-06-24  Derek Price  <derek@ximbiot.com>
56936         and Bruno Haible  <bruno@clisp.org>
56937
56938         Remove stat module & update lstat.
56939         * config/srclist.txt (libc sources): Remove stat.
56940
56941 2005-06-24  Derek Price  <derek@ximbiot.com>
56942         and Bruno Haible  <bruno@clisp.org>
56943
56944         Remove stat module & update lstat.
56945         * MODULES.html.sh (stat): Remove.
56946         * MODULES.html: Regenerated.
56947         * modules/lstat (Description): Correct function name.
56948         (Files): Add "lstat.h".
56949         (Depends-on): Remove stat, add xalloc, stat-macros.
56950         * modules/stat: Remove this file.
56951         (Include): Add "lstat.h", remove <sys/stat.h>.
56952
56953 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
56954
56955         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
56956         (ranged_convert): Don't save conversion in a temporary struct.
56957         This causes a warning with GCC 4.0.0, and anyway in the typical
56958         case it's not worth the extra 100 bytes or so of code.
56959         (ranged_convert, __mktime_internal): When calling a function via a
56960         pointer P, use P () rather than (*P) (), as we now assume C89 or
56961         better.
56962
56963 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
56964
56965         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
56966         "who -r" failed to give output.  Problem reported by Tim Waugh.
56967
56968         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
56969         (xcalloc): Use it to avoid needless tests.
56970         Problem reported by Jim Meyering.
56971
56972 2005-06-20  Derek Price  <derek@ximbiot.com>
56973
56974         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
56975         unnecessary for Autoconfs > 2.59c.
56976
56977 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56978
56979         * lib/argp.h (__option_is_short): Check upper limit of
56980         __key. Isprint() requires its argument to have the value
56981         of an unsigned char or EOF.
56982
56983 2005-06-16  Jim Meyering  <jim@meyering.net>
56984
56985         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
56986         when either N or S is zero.
56987
56988 2005-06-16  Derek Price  <derek@ximbiot.com>
56989
56990         * m4/bison.m4: Declare YACC & YFLAGS precious.
56991
56992 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
56993
56994         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
56995         multibyte string or pattern, fall back on unibyte matching.
56996         Problem reported by James Youngman.
56997
56998 2005-06-08  Bruno Haible  <bruno@clisp.org>
56999
57000         * modules/csharpcomp: New file.
57001         * MODULES.html.sh (C#): Add csharpcomp.
57002
57003 2005-06-08  Bruno Haible  <bruno@clisp.org>
57004
57005         * m4/csharpcomp.m4: New file, from GNU gettext.
57006
57007 2005-06-08  Bruno Haible  <bruno@clisp.org>
57008
57009         * lib/csharpcomp.h: New file, from GNU gettext.
57010         * lib/csharpcomp.c: New file, from GNU gettext.
57011         * lib/csharpcomp.sh.in: New file, from GNU gettext.
57012
57013 2005-06-08  Bruno Haible  <bruno@clisp.org>
57014
57015         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
57016         warning on mingw.
57017
57018 2005-06-07  Derek Price  <derek@ximbiot.com>
57019
57020         Sync from CVS.
57021         * lib/glob_.h: Indent nested #ifdef.
57022
57023 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
57024
57025         Sync from coreutils.
57026         Use "file name" when talking about file names, instead of "filename"
57027         or "path", as per the GNU coding standards.
57028         * lib/mkdir-p.c: Renamed from makepath.c.
57029         (make_dir_parents): Renamed from make_path.  All callers changed.
57030         * lib/mkdir-p.h: Likewise.  All includers changed.
57031         * lib/filenamecat.c: Renamed from path-concat.c.
57032         (file_name_concat): Renamed from path_concat.  All callers changed.
57033         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
57034         * lib/filenamecat.h: Likewise.  All includers changed.
57035         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
57036         in comments or local variable names.
57037         * lib/basename.c: Likewise.
57038         * lib/canonicalize.c, canonicalize.h: Likewise.
57039         * lib/dirname.c, dirname.h: Likewise.
57040         * lib/euidaccess.c: Likewise.
57041         * lib/exclude.c: Likewise
57042         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
57043         * lib/fsusage.c, fsuage.h: Likewise.
57044         * lib/fts.c, fts_.h: Likewise.
57045         * lib/getcwd.c: Likewise.
57046         * lib/getloadavg.c: Likewise.
57047         * lib/mkstemp.c: Likewise.
57048         * lib/mountlist.c, mountlist.h: Likewise.
57049         * lib/openat.c, openat.h: Likewise.
57050         * lib/readlink-stub.c: Likewise.
57051         * lib/readutmp.c, readutmp.h: Likewise.
57052         * lib/rename.c: Likewise.
57053         * lib/rmdir.c: Likewise.
57054         * lib/same.c: Likewise.
57055         * lib/savedir.c: Likewise.
57056         * lib/stripslash.c: Likewise.
57057         * lib/tempname.c: Likewise.
57058         * lib/xreadlink.c: Likewise.
57059         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
57060         All uses changed.
57061         * lib/exclude.h: Likewise.
57062
57063         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
57064         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
57065         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
57066         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
57067         * lib/pathmax.h: Include <limits.h> unconditionally, since other
57068         files have been getting away with it for years (MORE/BSD 4.3
57069         is extinct now).
57070         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
57071         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
57072
57073         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
57074         Define to 256, not 255, as per modern POSIX.
57075
57076 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
57077
57078         Sync from coreutils.
57079         Use "file name" when talking about file names, instead of "filename"
57080         or "path", as per the GNU coding standards.
57081         * MODULES.html.sh: mkdir-p renamed from makepath.
57082         filenamecat renamed from path-concat.
57083         * modules/filenamecat: Renamed from modules/path-concat.
57084         (Files): filenamecat.h and filenamecat.c renamed from
57085         path-concat.h and path-concat.c.
57086         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
57087         (Include): filenamecat.h, not path-concat.h.
57088         * modules/mkdir-p: Renamed from modules/makepath.
57089         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
57090         makepath.c.
57091         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
57092         (Include): mkdir-p.h, not makepath.h.
57093
57094 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
57095
57096         Sync from coreutils.
57097         * m4/mkdir-p.m4: Renamed from makepath.m4.
57098         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
57099         Rename files from makepath.c to mkdir-p.c, and from
57100         makepath.h to mkdir-p.h.
57101         * m4/filenamecat.m4: Renamed from path-concat.m4.
57102         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
57103         Rename files from path-concat.c to filenamecat.c,
57104         and from path-concat.h to filenamecat.h.
57105         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
57106         "file name" in local variables or comments.
57107         * m4/rename.m4: Likewise.
57108
57109 2005-06-01  Bruno Haible  <bruno@clisp.org>
57110
57111         * modules/csharpexec: New file.
57112         * MODULES.html.sh (C#): New section.
57113
57114 2005-06-01  Bruno Haible  <bruno@clisp.org>
57115
57116         * m4/csharp.m4: New file, from GNU gettext.
57117         * m4/csharpexec.m4: New file, from GNU gettext.
57118
57119 2005-06-01  Bruno Haible  <bruno@clisp.org>
57120
57121         * lib/csharpexec.h: New file, from GNU gettext.
57122         * lib/csharpexec.c: New file, from GNU gettext.
57123         * lib/csharpexec.sh.in: New file, from GNU gettext.
57124
57125 2005-05-31  Derek Price  <derek@ximbiot.com>
57126             Paul Eggert  <eggert@cs.ucla.edu>
57127
57128         Sync from cvs.
57129         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
57130
57131 2005-05-31  Derek Price  <derek@ximbiot.com>
57132             Paul Eggert  <eggert@cs.ucla.edu>
57133
57134         Sync from cvs.
57135         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
57136
57137 2005-05-29  Derek Price  <derek@ximbiot.com>
57138
57139         * config/srclist.txt (glob_.h, glob.c): Add these files.
57140
57141 2005-05-29  Derek Price  <derek@ximbiot.com>
57142
57143         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
57144         * modules/glob: New file.
57145         * modules/getlogin_r: Add link to POSIX spec in description.
57146
57147 2005-05-29  Derek Price  <derek@ximbiot.com>
57148             Paul Eggert  <eggert@cs.ucla.edu>
57149
57150         * m4/glob.m4: New file.
57151
57152 2005-05-29  Derek Price  <derek@ximbiot.com>
57153             Paul Eggert  <eggert@cs.ucla.edu>
57154
57155         * lib/glob_.h, lib/glob.c: New files.
57156
57157 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
57158
57159         * modules/fts (Files): Remove m4/inttypes-pri.m4.
57160         * modules/fts-lgpl (Depends-on): Remove gettext.
57161
57162 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
57163
57164         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
57165         and don't require gt_INTTYPES_PRI.
57166
57167 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
57168
57169         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
57170
57171         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
57172         the configuration hassle isn't worth it.
57173         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
57174         (LONGEST_MODIFIER, PRIuMAX): Remove.
57175
57176 2005-05-27  Bruno Haible  <bruno@clisp.org>
57177
57178         * lib/getlogin_r.h: Remove second include of <stddef.h>.
57179
57180 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
57181
57182         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
57183         _POSIX_PTHREAD_SEMANTICS for Solaris.
57184
57185 2005-05-25  Derek Price  <derek@ximbiot.com>
57186
57187         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
57188
57189 2005-05-25  Derek Price  <derek@ximbiot.com>
57190             Paul Eggert  <eggert@cs.ucla.edu>
57191
57192         * modules/getlogin_r, m4/getlogin_r.m4: New files.
57193         * lib/getlogin_r.c, getlogin_r.h: New files.
57194
57195 2005-05-25  Bruno Haible  <bruno@clisp.org>
57196             Derek Price  <derek@ximbiot.com>
57197
57198         * lib/getlogin_r.h: Simplify API documentation.
57199
57200 2005-05-23  Derek Price  <derek@ximbiot.com>
57201
57202         * modules/minmax (Files): Add m4/minmax.m4.
57203         (configure.ac): Add gl_MINMAX.
57204
57205 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
57206
57207         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
57208         so that unistd-safer.h (GPL'ed code) need not be included.
57209
57210 2005-05-22  Bruno Haible  <bruno@clisp.org>
57211
57212         * m4/minmax.m4: New file.
57213         Based on a patch by Derek Price <derek@ximbiot.com>.
57214
57215 2005-05-22  Bruno Haible  <bruno@clisp.org>
57216
57217         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
57218         (INT64_MIN): Fix definition.
57219         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
57220
57221         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
57222         NEED_SIGNED_INT_TYPES.
57223
57224         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
57225         HAVE_SYSTEM_INTTYPES.
57226
57227 2005-05-22  Bruno Haible  <bruno@clisp.org>
57228
57229         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
57230         Also include <sys/param.h> if it defines MIN, MAX.
57231         Based on a patch by Derek Price <derek@ximbiot.com>.
57232
57233 2005-05-21  Jim Meyering  <jim@meyering.net>
57234
57235         * modules/fts (Files): Add m4/inttypes-pri.m4.
57236         (Depends-on): Add lstat and remove gettext.  Alphabetize.
57237
57238 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
57239
57240         New fts module.
57241         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
57242         (setup_dir, free_dir): New functions.
57243         (enter_dir, leave_dir): Define trivial
57244         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
57245         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
57246         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
57247         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
57248         Move to fts-cycle.c.
57249         (fts_open): Use setup_dir.
57250         (fts_close): Use free_dir.
57251         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
57252         This adds a label and some gotos, but the alternatives were messier.
57253         Check for memory allocation failure when entering a dir.
57254         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
57255         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
57256         (FTS): New member fts_cycle, that is a union that contains the
57257         old active_dir_ht and cycle_state.  All uses changed to mention
57258         fts_cycle.ht and fts_cycle.state.
57259         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
57260         fts.c, with the following changes:
57261         (setup_dir, free_dir): New functions.
57262         (enter_dir): Now returns bool.  Return true if successful, false
57263         if memory exhausted.  All callers changed.
57264         Do not bother partly cleaning up on
57265         memory allocation failure; that is free_dir's job.
57266         However, free ad if hash_insert fails, to avoid memory leak.
57267         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
57268         fts->fts_options to see which union member to use.
57269
57270 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
57271
57272         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
57273         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
57274
57275 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
57276
57277         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
57278
57279 2005-05-20  Jim Meyering  <jim@meyering.net>
57280
57281         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
57282         Now a macro, to pacify GCC.
57283
57284 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
57285
57286         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
57287         of -1.
57288
57289 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
57290
57291         * lib/chown.c (rpl_chown): Return -1 on failure.
57292
57293 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
57294
57295         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
57296         Don't check for stddef.h.
57297         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
57298         don't use its results.
57299         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
57300         since we include them unconditionally.  Don't require
57301         AM_STDBOOL_H, since stdbool is a prerequisite.
57302         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
57303         since we assume C89 or better.
57304         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
57305         as we don't use their results.
57306         Don't check for fchdir, memmove, memset, strrchr, as we use
57307         them unconditionally.
57308         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
57309         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
57310
57311 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
57312
57313         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
57314         Include <stddef.h> unconditionally, since we assume C89 now.
57315         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
57316         * lib/fts.c: Include fts_.h first, to check interface.
57317         Do not include intprops.h; no longer needed.
57318         Include cycle-check.h and hash.h, since fts_.h no longer does.
57319         Remove unnecessary casts of closedir to void.
57320         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
57321         decide whether to decrement nlinks.
57322         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
57323         (FTS): Use struct hash_table * instead of Hash_table, so that
57324         we no longer need to include hash.h here.
57325
57326 2005-05-18  Jim Meyering  <jim@meyering.net>
57327
57328         * modules/dirfd (License): Change to LGPL.  Most of the code
57329         is already in the public domain.
57330
57331 2005-05-18  Jim Meyering  <jim@meyering.net>
57332
57333         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
57334         Reported by Yoann Vandoorselaere.
57335
57336 2005-05-17  Jim Meyering  <jim@meyering.net>
57337
57338         * m4/fts.m4: New file, from coreutils.
57339
57340 2005-05-17  Jim Meyering  <jim@meyering.net>
57341
57342         * lib/fts.c, lib/fts_.h: New files, from coreutils.
57343
57344 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
57345
57346         Sync from coreutils.
57347         * m4/unlinkdir.m4: New file.
57348
57349 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
57350
57351         Sync from coreutils.
57352         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
57353         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
57354         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
57355         White space changes only.
57356         * lib/makepath.c (make_path): Port to hosts where leading "//" is
57357         special.
57358         * lib/yesno.c: Include getline.h, not ctype.h.
57359         (yesno): Don't remove leading white space; POSIX doesn't allow it.
57360         Use getline to remove arbitrary restriction on response length.
57361
57362 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
57363
57364         * config/srclist-update: Spell out "Street" in FSF postal
57365         mail address; this is the style the FSF seems to prefer.
57366
57367         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
57368         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
57369         this updates FSF postal mail address.
57370
57371         Sync from coreutils.
57372         * modules/unlinkdir: New file.
57373         * modules/yesno (Depends-on): Add getline.
57374         * MODULES.html.sh (File system functions): Add unlinkdir.
57375
57376 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
57377
57378         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
57379         lib/strsep.h:
57380         Change the initial comment to refer to GPL, not LGPL.
57381         gnulib-tool will change it to LGPL as needed.
57382
57383         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
57384         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
57385         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
57386         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
57387         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
57388         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
57389         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
57390         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
57391         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
57392         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
57393         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
57394         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
57395         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
57396         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
57397         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
57398         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
57399         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
57400         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
57401         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
57402         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
57403         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
57404         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
57405         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
57406         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
57407         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
57408         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
57409         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
57410         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
57411         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
57412         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
57413         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
57414         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
57415         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
57416         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
57417         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
57418         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
57419         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
57420         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
57421         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
57422         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
57423         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
57424         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
57425         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
57426         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
57427         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
57428         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
57429         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
57430         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
57431         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
57432         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
57433         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
57434         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
57435         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
57436         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
57437         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
57438         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
57439         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
57440         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
57441         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
57442         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
57443         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
57444         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
57445         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
57446         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
57447         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
57448         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
57449         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
57450         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
57451         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
57452         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
57453         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
57454         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
57455         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
57456         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
57457         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
57458         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
57459         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
57460         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
57461         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
57462         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
57463         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
57464         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
57465         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
57466         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
57467         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
57468         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
57469         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
57470         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
57471         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
57472         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
57473         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
57474         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
57475         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
57476         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
57477         lib/yesno.c, lib/yesno.h:
57478         Update FSF postal mail address.
57479
57480 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
57481
57482         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
57483         tests/test-memmem.c, tests/test-stpncpy.c:
57484         Update FSF postal mail address.
57485
57486 2005-05-13  Bruno Haible  <bruno@clisp.org>
57487
57488         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
57489         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
57490         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
57491         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
57492         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
57493         Add support for 64-bit integers in the MSVC compiler.
57494
57495 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57496
57497         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
57498
57499 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
57500
57501         * gnulib-tool (func_import): Sort and uniquify recommended includes.
57502
57503 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
57504
57505         * doc/getdate.texi (General date syntax): Don't say that date
57506         date --iso-8601=ns generates acceptable dates; it doesn't yet.
57507         Problem reported by Nic Ferrier.
57508
57509 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57510
57511         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
57512         specified in ai_socktype. Fix invalid ai_protocol
57513         check. ai_protocol is usually set to 0 or depending on
57514         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
57515         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
57516         ai_socktype / ai_protocol in the returned addrinfo structure.
57517
57518 2005-05-10  Simon Josefsson  <jas@extundo.com>
57519
57520         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
57521         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57522
57523 2005-05-10  Karl Berry  <karl@gnu.org>
57524
57525         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
57526         (from http://www.gnu.org/licenses).
57527         * doc/COPYING.LIB: also rename to COPYING.LESSER.
57528         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
57529         fdl.texi suffices.
57530
57531 2005-05-10  Karl Berry  <karl@gnu.org>
57532
57533         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
57534         (COPYING.DOC): remove.
57535
57536         * config/srclist-update: new FSF address.
57537
57538 2005-05-10  Derek Price  <derek@ximbiot.com>
57539
57540         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
57541         possible.
57542
57543 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57544             Bruno Haible  <bruno@clisp.org>
57545
57546         * modules/inet_ntop: New file.
57547         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57548         inet_ntop.
57549
57550 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57551             Bruno Haible  <bruno@clisp.org>
57552
57553         * m4/inet_ntop.m4: New file.
57554
57555 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57556             Bruno Haible  <bruno@clisp.org>
57557
57558         * lib/inet_ntop.h: New file.
57559         * lib/inet_ntop.c: New file, from glibc with modifications.
57560
57561 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
57562
57563         * modules/time_r (License): Change to LGPL.
57564         * modules/extensions (License): Change to LGPL.  Actually,
57565         the license is more permissive than that, but currently gnulib-tool
57566         doesn't know how to handle more-permissive licenses.
57567
57568         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
57569         Problem reported by Dave Love.
57570
57571 2005-05-08  Jim Meyering  <jim@meyering.net>
57572
57573         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
57574         blank.
57575
57576 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
57577
57578         * modules/argmatch (Depends-on): Add stdbool.
57579         * modules/backupfile (Depends-on): Likewise.
57580         * modules/chdir-long (Depends-on): Likewise.
57581         * modules/closeout (Depends-on): Likewise.
57582         * modules/cycle-check (Depends-on): Likewise.
57583         * modules/dirname (Depends-on): Likewise.
57584         * modules/fnmatch (Depends-on): Likewise.
57585         * modules/fsusage (Depends-on): Likewise.
57586         * modules/fwriteerror (Depends-on): Likewise.
57587         * modules/getcwd (Depends-on): Likewise.
57588         * modules/getloadavg (Depends-on): Likewise.
57589         * modules/hard-locale (Depends-on): Likewise.
57590         * modules/makepath (Depends-on): Likewise.
57591         * modules/mountlist (Depends-on): Likewise.
57592         * modules/nanosleep (Depends-on): Likewise.
57593         * modules/posixtm (Depends-on): Likewise.
57594         * modules/quotearg (Depends-on): Likewise.
57595         * modules/readtokens (Depends-on): Likewise.
57596         * modules/readtokens0 (Depends-on): Likewise.
57597         * modules/readutmp (Depends-on): Likewise.
57598         * modules/save-cwd (Depends-on): Likewise.
57599         * modules/strftime (Depends-on): Likewise.
57600         * modules/userspec (Depends-on): Likewise.
57601         * modules/utimecmp (Depends-on): Likewise.
57602         * modules/xgetcwd (Depends-on): Likewise.
57603         * modules/xnanosleep (Depends-on): Likewise.
57604         * modules/xstrtod (Depends-on): Likewise.
57605         * modules/yesno (Depends-on): Likewise.
57606
57607 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
57608
57609         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
57610         needless checks.
57611
57612 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57613
57614         Merge from coreutils.  Among other things,
57615         add bulletproofing for cases where stdin, stdout, or stderr are closed.
57616         * lib/fd-safer.c: New file.
57617         * lib/fcntl-safer.h, open-safer.c: Remove.
57618         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
57619         * lib/dup-safer.c: Include unistd-safer.h first.
57620         Don't include errno.h.
57621         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
57622         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
57623         * lib/file-type.c: Rely on file-type.h change.
57624         * lib/getloadavg.c: Include unistd-safer.h.
57625         (getloadavg): Use safer open.
57626         * lib/getusershell.c: Include "stdio-safer.h".
57627         (getusershell): Use safer fopen.
57628         * lib/long-options.c (long_options): Use NULL rather than 0.
57629         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
57630         'free'.
57631         * lib/modechange.c: Likewise.
57632         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
57633         (MODE_DONE): New constant.
57634         (struct mode_change): Remove 'next' member.
57635         (make_node_op_equals): New function; like the old one of the
57636         same name, except it allocates an array.
57637         (mode_compile, mode_create_from_ref): Use it.
57638         (mode_compile): Allocate result as an array, not a linked list.
57639         Parse octal string ourself, so that we catch mistakes like "+0".
57640         (mode_adjust): Arg is an array, not a linked list.
57641         * lib/modechange.c: Include stat-macros.h, xalloc.h.
57642         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
57643         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
57644         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
57645         Remove.  This is now stat-macros.h's job.
57646         (talloc): Remove.  All callers replaced by xalloc, so that
57647         our invokers don't have to worry about reporting memory failures.
57648         (make_node_op_equals): Remove.
57649         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
57650         New constants.
57651         (struct mode_change): Moved here from modechange.h.
57652         (mode_append_entry): Remove.
57653         (mode_compile): Remove MASKED_OPS arg, since it encouraged
57654         apps to have incorrect behavior.  Use simpler algorithm for head
57655         and tail.  Don't futz with umask; that's now the job of mode_adjust.
57656         Detect more invalid usages rather than having somewhat-random behavior.
57657         Don't insert an "a=" action, as that leads to incorrect behavior.
57658         (mode_compile, mode_create_from_ref): Return NULL on error instead
57659         of an enum, since now there's only one way to have an error.  All
57660         callers changed.
57661         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
57662         at the correct time.  Simplify calculation of "+u" and its ilk.
57663         Don't mishandle "+X".
57664         (mode_free): Remove "register" and localize decls.
57665         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
57666         (struct mode_change): Move to modechange.c; callers don't
57667         need to see this stuff.
57668         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
57669         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
57670         (mode_change, mode_adjust): Reflect the new signatures noted above.
57671         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
57672         that might redefine system include files.
57673         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
57674         (my_usleep): Use NULL rather than (void *) 0.
57675         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
57676         Use siginterrupt to specify that system calls should be interrupted.
57677         (rpl_nanosleep): Move initialization of suspended closer to call of
57678         my_usleep.
57679         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
57680         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
57681         (desirable_utmp_entry): New function.
57682         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
57683         using x2nrealloc, to simplify logic.
57684         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
57685         size calculation.  Do not assume utmp file is a regular file.
57686         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
57687         (READ_UTMP_CHECK_PIDS): New constant.
57688         * lib/save-cwd.c: Include unistd-safer.h.
57689         (save_cwd): Use fd_safer.
57690         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
57691         [!_LIBC] Include "stat-macros.h" instead.
57692         * lib/unistd-safer.h (fd_safer): New decl.
57693
57694 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57695
57696         * modules/getloadavg (Depends-on): Add unistd-safer.
57697         * modules/getusershell (Depends-on): Add stdio-safer.
57698         * modules/lstat (Depends-on): Remove xalloc.
57699         * modules/mkstemp (Depends-on): Add stat-macros.
57700         * modules/modechange (Depends-on): Remove xstrtol.
57701         Add stat-macros, xalloc.
57702         * modules/save-cwd (Depends-on): Add unistd-safer.
57703         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
57704         * modules/unistd-safer (Files): Add lib/fd-safer.c
57705         (Makefile.am): Remove lib_SOURCES.
57706
57707         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
57708         Remove fcntl-safer; unistd-safer supersedes it.
57709
57710 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57711
57712         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
57713         AC_HEADER_STAT.
57714         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
57715         (gl_PREREQ_CHOWN): Remove.
57716         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
57717         it.  Don't require AC_HEADER_STAT.
57718         (gl_PREREQ_LSTAT): Remove.
57719         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
57720         Don't require AC_HEADER_STAT.
57721         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
57722         (gl_PREREQ_RMDIR): Remove.
57723         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
57724         mention stat-macros.h or AC_HEADER_STAT, since we'll make
57725         the stat-macros module a prerequisite.
57726         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
57727         * m4/filemode.m4 (gl_FILEMODE): Likewise.
57728         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
57729         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
57730         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
57731         variable names.
57732         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
57733         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
57734         variable prefixes.
57735         * m4/fcntl-safer.m4: Remove.
57736         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
57737         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
57738         Invoke gl_PREREQ_FD_SAFER.
57739         (gl_PREREQ_FD_SAFER): New macro.
57740         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
57741         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
57742         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
57743         Remove duplicate call to AC_LIBOBJ(readutmp).
57744         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
57745
57746         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
57747         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
57748
57749 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57750
57751         * MODULES.html.sh (Misc): Add byteswap.
57752
57753 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57754
57755         * modules/getcwd (Depends-on): Add extensions.
57756         * modules/openat (Depends-on): Likewise.
57757
57758 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57759
57760         * modules/byteswap: New file.
57761
57762 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57763
57764         * m4/byteswap.m4: New file.
57765
57766 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57767
57768         * lib/byteswap_.h: New file.
57769
57770 2005-04-25  Karl Berry  <karl@gnu.org>
57771
57772         * m4/gettext.m4: Update from GNU gettext 0.14.4.
57773
57774 2005-04-25  Albert Chin  <china@thewrittenword.com>
57775
57776         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
57777         Toolkit C bug.
57778
57779 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
57780
57781         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
57782         (func_ln_if_changed) Remove forcibly for no error message
57783         in case file does not exist.
57784
57785 2005-04-19  Simon Josefsson  <jas@extundo.com>
57786
57787         * gnulib-tool (Options): Make --symlink mean --symbolic.
57788
57789 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
57790
57791         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
57792
57793 2005-04-16  Simon Josefsson  <jas@extundo.com>
57794
57795         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
57796
57797 2005-04-15  Simon Josefsson  <jas@extundo.com>
57798
57799         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
57800
57801 2005-04-15  Simon Josefsson  <jas@extundo.com>
57802
57803         * gnulib-tool: Rename --symlink to --symbolic.
57804
57805 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
57806
57807         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
57808         symbolic links to files instead of copying/moving.  Add --aux-dir,
57809         specifying directory relative --dir where auxiliary build tools
57810         are placed.
57811
57812 2005-04-14  Bruno Haible  <bruno@clisp.org>
57813
57814         * modules/allocsa (License): Change to LGPL.
57815         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
57816
57817 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
57818
57819         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
57820         that "UTC +1 second" continues to work.  Problem reported
57821         by Dmitry V. Levin.
57822         (relunit_snumber): New rule.
57823         (relunit): Use it.
57824
57825 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
57826
57827         * lib/getdate.y (universal_time_zone_table): New constant.
57828         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
57829         universal_time_zone_table.
57830         (lookup_zone): Prefer universal_time_zone_table to
57831         local_time_zone_table, so that "GMT" time stamps are allowed in
57832         London during the summer.  Problem reported by Ian Abbott.
57833
57834 2005-04-12  Jim Meyering  <jim@meyering.net>
57835
57836         * lib/human.c (humblock): Set *options even when returning due to
57837         xstrtoumax conversion failure.  Thanks to a used-uninitialized
57838         warning from gcc-4.
57839
57840 2005-04-09  Jim Meyering  <jim@meyering.net>
57841
57842         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
57843         -Wuninitialized: initialize tm0.tm_year.
57844
57845 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
57846
57847         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
57848         count, since there's no maximum.  All uses changed.
57849         Add member dsts_seen.
57850         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
57851         not being INT_MAX.
57852         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
57853         Use pc_rels_seen to decide whther a date is absolute.
57854
57855         * lib/getdate.y (number): Don't overwrite year.
57856         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
57857         check.
57858
57859 2005-04-02  Simon Josefsson  <jas@extundo.com>
57860
57861         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
57862         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
57863
57864 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
57865
57866         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
57867         where no absolute path name can be longer than PATH_MAX.
57868
57869 2005-03-27  Jim Meyering  <jim@meyering.net>
57870
57871         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
57872
57873 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
57874
57875         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
57876         "one's complement" -> "ones' complement" in comment, as per Knuth.
57877         "value of type" -> "type or expression" in comment.
57878         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
57879
57880 2005-03-26  Jim Meyering  <jim@meyering.net>
57881
57882         Comment nits.
57883         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
57884         Correct typos: s/or/of/.
57885
57886 2005-03-26  Jim Meyering  <jim@meyering.net>
57887
57888         * modules/check-include-files: Move to ../ and rename to...
57889         * check-module: ...this.
57890
57891 2005-03-25  Jim Meyering  <jim@meyering.net>
57892
57893         * modules/xvasprintf (Files): Add xalloc.h.
57894
57895 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
57896
57897         * modules/gettext (Files): config/config.rpath ->
57898         build-aux/config.rpath
57899         * modules/iconv (Files): Likewise.
57900         Problem reported by Oskar Liljeblad.
57901
57902 2005-03-23  Jim Meyering  <jim@meyering.net>
57903
57904         * modules/check-include-files: New script to check for
57905         missing dependencies, multiple includes, etc.
57906
57907         * modules/c-strtold (Depends-on): Add xalloc.
57908         * modules/c-strtod (Depends-on): Add xalloc.
57909         * modules/hash (Depends-on): Add xalloc.
57910         (Files): Remove lib/xalloc.h.
57911
57912         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
57913         * modules/userspec (Files): Add lib/inttostr.h.
57914
57915 2005-03-23  Jim Meyering  <jim@meyering.net>
57916
57917         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
57918
57919 2005-03-22  Jim Meyering  <jim@meyering.net>
57920
57921         * modules/stat-macros: New module.
57922         * modules/canonicalize, modules/euidaccess, modules/file-type,
57923         * modules/filemode, modules/lchown, modules/makepath,
57924         * modules/rmdir, modules/stat: Depend on new stat-macros module
57925         rather than listing lib/stat-macros.h manually.
57926         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
57927
57928 2005-03-22  Jim Meyering  <jim@meyering.net>
57929
57930         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
57931
57932 2005-03-22  Bruno Haible  <bruno@clisp.org>
57933
57934         * config/srclist.txt: Replace target directory 'config' with
57935         'build-aux'.
57936         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
57937         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
57938         ../build-aux/.
57939
57940 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
57941
57942         * modules/chdir-long (Depends-on): Add mempcpy.
57943
57944         * modules/acl, modules/backupfile, modules/c-strtod,
57945         modules/c-strtold, modules/canon-host, modules/canonicalize,
57946         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
57947         modules/exclude, modules/exitfail, modules/file-type,
57948         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
57949         modules/getdate, modules/getline, modules/getpagesize,
57950         modules/getpass, modules/getugroups, modules/group-member,
57951         modules/hard-locale, modules/hash, modules/human, modules/idcache,
57952         modules/inttostr, modules/long-options, modules/makepath,
57953         modules/md5, modules/memcasecmp, modules/memcoll,
57954         modules/modechange, modules/mountlist, modules/path-concat,
57955         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
57956         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
57957         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
57958         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
57959         modules/strftime, modules/strndup, modules/strverscmp,
57960         modules/timespec, modules/unlocked-io, modules/userspec,
57961         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
57962         modules/yesno:
57963         Remove lib_SOURCES line from Makefile.am section, as this is now
57964         done automatically by the corresponding Autoconf macro.
57965
57966 2005-03-21  Jim Meyering  <jim@meyering.net>
57967
57968         Changes imported from coreutils.
57969
57970         * lib/cycle-check.c: Don't include xalloc.h.
57971
57972         * lib/path-concat.c: Don't include assert.h.
57973         (path_concat): Remove assertion that would have triggered
57974         for ABASE starting with more than one slash.
57975         Reported by Andreas Schwab.
57976
57977         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
57978         properly when ABASE is an absolute file name.
57979         Correct the description of this function.
57980         Include <assert.h>.
57981         Add an assertion and a test driver.
57982         This fixes a bug introduced on 2004-07-02.
57983         Andreas Schwab reported the resulting failure of cp --parents:
57984         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
57985
57986 2005-03-21  Jim Meyering  <jim@meyering.net>
57987
57988         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
57989         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
57990
57991 2005-03-21  Jim Meyering  <jim@meyering.net>
57992         and  Paul Eggert  <eggert@cs.ucla.edu>
57993
57994         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
57995         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
57996         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
57997         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
57998         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
57999         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
58000         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
58001         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
58002         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
58003         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
58004         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
58005         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
58006         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
58007         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
58008         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
58009         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
58010         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
58011         for these modules.
58012
58013 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
58014
58015         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
58016         (which shouldn't happen), generate nothing instead of returning 0
58017         immediately, so that nstrftime (NULL, ...) doesn't return 0.
58018
58019 2005-03-16  Bruno Haible  <bruno@clisp.org>
58020
58021         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
58022         HAVE_LONGLONG_64BIT.
58023
58024 2005-03-16  Bruno Haible  <bruno@clisp.org>
58025
58026         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
58027         HAVE_LONGLONG_64BIT.
58028
58029 2005-03-16  Bruno Haible  <bruno@clisp.org>
58030
58031         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
58032         HAVE_LONGLONG_64BIT.
58033
58034 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
58035
58036         * lib/strftime.c (my_strftime): Prepend space to format so that we can
58037         reliably distinguish strftime failure from empty output on POSIX
58038         hosts.
58039
58040 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
58041
58042         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
58043         (iconv_string): Don't guess a size-zero buffer, as that might cause
58044         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
58045         result would be 'too large', where 'too large' is (heuristically)
58046         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
58047         overflow concerns.  This will prevent some unwanted malloc failures
58048         when the inputs are very large.
58049
58050 2005-03-15  Karl Berry  <karl@gnu.org>
58051
58052         * config/srclist.txt (config.rpath): from gettext.
58053         * config/config.rpath: update.
58054
58055 2005-03-15  Bruno Haible  <bruno@clisp.org>
58056
58057         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
58058         to 'negate'.
58059
58060         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
58061         variable.
58062
58063         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
58064         results.
58065
58066 2005-03-14  Simon Josefsson  <jas@extundo.com>
58067
58068         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
58069         <fx@gnu.org>.
58070
58071 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
58072
58073         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
58074         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
58075         intprops.h.
58076         * lib/strtol.c: Likewise.
58077
58078 2005-03-14  Jim Meyering  <jim@meyering.net>
58079
58080         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
58081         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
58082         to be nonzero so that we (and caller) can detect the difference
58083         between a valid zero-length expansion and an error return, even
58084         when the underlying strftime fails before writing anything into
58085         that location.
58086
58087 2005-03-14  Bruno Haible  <bruno@clisp.org>
58088
58089         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
58090         Update from GNU gettext 0.14.3.
58091
58092 2005-03-10  Jim Meyering  <jim@meyering.net>
58093
58094         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
58095
58096 2005-03-10  Jim Meyering  <jim@meyering.net>
58097
58098         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
58099         so that this module works on systems without fchdir.
58100
58101 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
58102
58103         Factor int-properties macros into a single file, except for
58104         glibc-related files.
58105         * lib/intprops.h: New file.
58106         * lib/getloadavg.c: Include it instead of limits.h.
58107         (INT_STRLEN_BOUND): Remove.
58108         * lib/human.c: Include intprops.h.
58109         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
58110         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
58111         302/1000.
58112         * lib/inttostr.h: Include intprops.h instead of limits.h.
58113         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
58114         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
58115         for consistency with intprops.h.
58116         (time_t_is_integer, twos_complement_arithmetic): Use them.
58117         * lib/sig2str.h: Include <signal.h>, intprops.h.
58118         (INT_STRLEN_BOUND): Remove.
58119         * lib/strftime.c (TYPE_SIGNED): Remove.
58120         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
58121         * lib/strtol.c: Adjust comments to match intprops.h.
58122         * lib/userspec.c: Include intprops.h.
58123         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
58124         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
58125         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
58126         instead of rolling our own expressions.
58127         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
58128
58129         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
58130         instead of int.
58131         (my_strftime): Do not mishandle years close to INT_MAX, by doing
58132         the right thing even if adding 1900 would overflow.  Similarly
58133         for tm_mon + 1 and tm_yday + 1.
58134         Make %Y always equivalent to %C%y, and similarly for %G and %g.
58135         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
58136         (DO_SIGNED_NUMBER): New macro.
58137         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
58138
58139 2005-03-07  Bruno Haible  <bruno@clisp.org>
58140
58141         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
58142
58143 2005-03-07  Bruno Haible  <bruno@clisp.org>
58144
58145         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
58146
58147 2005-03-04  Derek R. Price  <derek@ximbiot.com>
58148
58149         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
58150         (func_import): Only replace files via --import when they have actually
58151         changed.
58152
58153 2005-03-03  Derek R. Price  <derek@ximbiot.com>
58154
58155         * m4/mmap-anon.m4: New file.
58156         * m4/pagealign_alloc.m4: New file.
58157
58158 2005-03-03  Derek R. Price  <derek@ximbiot.com>
58159             Bruno Haible  <bruno@clisp.org>
58160
58161         * modules/pagealign_alloc: New file.
58162         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
58163
58164 2005-03-03  Derek R. Price  <derek@ximbiot.com>
58165             Bruno Haible  <bruno@clisp.org>
58166
58167         * lib/pagealign_alloc.h: New file.
58168         * lib/pagealign_alloc.c: New file.
58169
58170 2005-03-03  Bruno Haible  <bruno@clisp.org>
58171
58172         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
58173         Use an all-permissive copyright notice, recommended by RMS.
58174
58175 2005-03-02  Bruno Haible  <bruno@clisp.org>
58176
58177         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
58178         of AIX, the replacement has to be done only after <string.h> is
58179         included, therefore not in config.h. stpncpy.h does the replacement,
58180         and stpncpy.c uses it.
58181
58182 2005-03-02  Bruno Haible  <bruno@clisp.org>
58183
58184         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
58185         stpncpy.c uses it.
58186
58187 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58188
58189         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
58190         The workaround isn't strictly needed for POSIX conformance, and
58191         it's too much of a pain to configure and maintain.  We'll ask
58192         people to fix their kernels instead.
58193         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
58194         (NANOSLEEP_BUG_WORKAROUND): Remove.
58195         (xnanosleep): Remove the workaround.
58196
58197 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58198
58199         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
58200         Reported by Derek Price.
58201         (Include): Add "timespec.h".
58202
58203         * modules/xnanosleep (Depends-on): Remove gethrxtime.
58204
58205 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58206
58207         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
58208         to detect nanosleep bug.
58209
58210 2005-03-01  Bruno Haible  <bruno@clisp.org>
58211
58212         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
58213
58214 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
58215
58216         * modules/gethrxtime: New file.
58217         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
58218         (Depends-on): Add gethrxtime.
58219         (configure.ac): Add gl_XNANOSLEEP.
58220         (Makefile.am): Remove lib_SOURCES line.
58221
58222 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
58223
58224         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
58225         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
58226
58227 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
58228
58229         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
58230         * lib/timespec.h (gettime): Return void, since it always
58231         succeeds now.  All uses changed.
58232         * lib/gettime.c (gettime) Likewise.
58233         [HAVE_NANOTIME]: Prefer nanotime.
58234         Assume gettimeofday succeeds, as POSIX requires.
58235         Assime time () succeeds, since other code already does.
58236         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
58237         (timespec_subtract): Remove.
58238         (NANOSLEEP_BUG_WORKAROUND): New constant.
58239         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
58240         things considerably.  Use it only on GNU/Linux hosts, since the
58241         workaround shouldn't be needed elsewhere.
58242
58243 2005-02-24  Bruno Haible  <bruno@clisp.org>
58244
58245         * modules/gettext (Files): Add m4/glibc2.m4.
58246
58247 2005-02-24  Bruno Haible  <bruno@clisp.org>
58248
58249         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
58250         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
58251         * m4/progtest.m4:
58252         Update from GNU gettext 0.14.2.
58253         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
58254
58255 2005-02-24  Bruno Haible  <bruno@clisp.org>
58256
58257         * lib/localcharset.c: Update from GNU gettext 0.14.2.
58258         * lib/config.charset: Update from GNU gettext 0.14.2.
58259
58260 2005-02-24  Bruno Haible  <bruno@clisp.org>
58261
58262         * lib/gettext.h: Update from GNU gettext 0.14.2.
58263
58264 2005-02-23  Simon Josefsson  <jas@extundo.com>
58265
58266         * m4/iconvme.m4: New file.
58267
58268 2005-02-23  Jim Meyering  <jim@meyering.net>
58269
58270         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
58271         change.
58272         Thanks to Bruno Haible for catching it.
58273
58274 2005-02-22  Simon Josefsson  <jas@extundo.com>
58275
58276         * modules/iconvme: New file.
58277
58278         * MODULES.html.sh: Add iconvme.
58279
58280 2005-02-22  Simon Josefsson  <jas@extundo.com>
58281
58282         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
58283
58284 2005-02-22  Simon Josefsson  <jas@extundo.com>
58285
58286         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
58287
58288 2005-02-22  Jim Meyering  <jim@meyering.net>
58289
58290         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
58291         s/ifndef/ifdef/.
58292
58293 2005-02-20  Neil Conway  <neilc@samurai.com>
58294
58295         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
58296         returned by OSX/Darwin if the specified buffer is not large
58297         enough for the hostname.
58298
58299 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58300
58301         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
58302         pass it to _help, otherwise the latter coredumps trying to
58303         dereference state.root_argp.
58304
58305 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
58306
58307         * modules/chdir-long (Depends-on): Add memrchr.
58308         * modules/memrchr (Files): Add lib/memrchr.h.
58309         (Include): "memrchr.h".
58310
58311 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
58312
58313         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
58314
58315 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
58316
58317         * lib/memrchr.h: New file.
58318         * lib/chdir-long.c: Include it.
58319         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
58320         Don't bother including stddef.h.
58321
58322 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
58323
58324         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
58325         inclusion.
58326         Include <sys/types.h>, for dev_t.
58327         (ME_DUMMY, ME_REMOTE): Move from here....
58328         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
58329         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
58330         Dmitry V. Levin.
58331         Include mountlist.h first, to test the interface.
58332
58333 2005-01-29  Bruno Haible  <bruno@clisp.org>
58334
58335         * lib/progname.c (program_name): Initialize.
58336         Needed when linking statically on MacOS X.
58337
58338 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
58339
58340         Sync from coreutils.
58341         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
58342         (Depends-on): Add c-strtod.
58343         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
58344
58345 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
58346
58347         Sync from coreutils.
58348         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
58349
58350         Remove files that are specific to coreutils.
58351         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
58352
58353 2005-01-28  Bruno Haible  <bruno@clisp.org>
58354
58355         * modules/javacomp: New file.
58356         * MODULES.html.sh (Java): Add javacomp.
58357
58358 2005-01-28  Bruno Haible  <bruno@clisp.org>
58359
58360         * m4/javacomp.m4: New file, from GNU gettext.
58361
58362 2005-01-28  Bruno Haible  <bruno@clisp.org>
58363
58364         * lib/javacomp.sh.in: New file, from GNU gettext.
58365         * lib/javacomp.h: New file, from GNU gettext.
58366         * lib/javacomp.c: New file, from GNU gettext.
58367
58368 2005-01-26  Simon Josefsson  <jas@extundo.com>
58369
58370         * lib/gai_strerror.c: Use GPL in header.
58371
58372 2005-01-26  Bruno Haible  <bruno@clisp.org>
58373
58374         * modules/javaexec: New file.
58375         * MODULES.html.sh (Java): Add javaexec.
58376
58377 2005-01-26  Bruno Haible  <bruno@clisp.org>
58378
58379         * m4/javaexec.m4: New file, from GNU gettext.
58380
58381 2005-01-26  Bruno Haible  <bruno@clisp.org>
58382
58383         * lib/javaexec.sh.in: New file, from GNU gettext.
58384         * lib/javaexec.h: New file, from GNU gettext.
58385         * lib/javaexec.c: New file, from GNU gettext.
58386
58387 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58388
58389         * modules/lchown (Depends-on): Remove lchown.h
58390
58391 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58392
58393         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
58394         must be defined if the header file was not found, in order
58395         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
58396
58397 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58398
58399         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
58400         initializers for struct pentry_state.
58401         (__argp_error): Check return value of __asprintf
58402         (__argp_failure): Translate error message
58403
58404         * lib/argp-parse.c: Removed braces around the expansion of N_()
58405
58406 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58407
58408         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
58409         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
58410         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
58411         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
58412         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
58413         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
58414         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
58415         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
58416         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
58417         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
58418         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
58419         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
58420         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
58421         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
58422         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
58423         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
58424         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
58425         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
58426         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
58427         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
58428         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
58429         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
58430         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
58431         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
58432         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
58433         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
58434         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
58435         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
58436         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
58437         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
58438         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
58439         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
58440         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
58441         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
58442         xstrtol.m4, xstrtoumax.m4, yesno.m4:
58443         Use an all-permissive copyright notice, recommended by RMS.
58444
58445 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
58446
58447         * modules/chdir-long (Depends-on): Remove mempcpy.
58448
58449 2005-01-21  Jim Meyering  <jim@meyering.net>
58450
58451         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
58452         same value as for Solaris 9.
58453
58454         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
58455         component length.  This included changing the parameter to be
58456         of type `char *' rather than `char const *'.
58457         * lib/chdir-long.h (chdir_long): Update prototype.
58458
58459         * lib/openat.c (fdopendir, fstatat): New functions.
58460         * lib/openat.h: Include headers required for use of DIR and struct
58461         stat.
58462         [AT_SYMLINK_NOFOLLOW]: Define.
58463         (fdopendir, fstatat): Add prototypes.
58464
58465 2005-01-21  Bruno Haible  <bruno@clisp.org>
58466
58467         * modules/classpath: New file.
58468         * MODULES.html.sh (Java): Add classpath.
58469
58470 2005-01-21  Bruno Haible  <bruno@clisp.org>
58471
58472         * lib/classpath.h: New file, from GNU gettext.
58473         * lib/classpath.c: New file, from GNU gettext.
58474
58475 2005-01-20  Simon Josefsson  <jas@extundo.com>
58476
58477         * modules/version-etc-fsf: New file.
58478
58479 2005-01-20  Simon Josefsson  <jas@extundo.com>
58480
58481         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
58482         * lib/version-etc.c: Remove version_etc_copyright.
58483         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
58484         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
58485
58486 2005-01-20  Simon Josefsson  <jas@extundo.com>
58487
58488         * lib/base64.h (isbase64): Add.
58489
58490         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
58491         using a unsigned prototype, don't inline.
58492         (base64_decode): Use it.
58493
58494 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
58495
58496         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
58497         it.
58498
58499 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
58500
58501         * lib/save-cwd.c (save_cwd): Remove code to support the case
58502         where fchdir is missing or flaky.
58503
58504 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
58505
58506         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
58507
58508 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
58509
58510         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
58511         AC_LIBSOURCES now does this.
58512         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
58513         with new ullong_max module.
58514
58515 2005-01-19  Bruno Haible  <bruno@clisp.org>
58516
58517         * modules/sh-quote: New file.
58518         * MODULES.html.sh (Executing programs): Add sh-quote.
58519
58520 2005-01-19  Bruno Haible  <bruno@clisp.org>
58521
58522         * lib/sh-quote.h: New file, from GNU gettext.
58523         * lib/sh-quote.c: New file, from GNU gettext.
58524
58525 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
58526
58527         Merge from coreutils.
58528         * m4/ullong_max.m4: New file.
58529         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
58530         (gl_MACROS): Assume localeconv exists.
58531
58532 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
58533
58534         Merge changes from coreutils, as described below in several
58535         changelogs dated today.
58536
58537         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
58538         (O_DIRECTORY): Remove; not needed here, since "." must be
58539         a directory.  All uses removed.
58540         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
58541         universal on Suns, and we also need to test for IRIX.
58542         Revamp code to use 'if' rather than '#if'.
58543         Avoid unnecessary comparison of cwd->desc to 0.
58544
58545         * lib/utimens.c (futimens): Robustify the previous patch, by checking
58546         for known valid error numbers rather than observed invalid ones.
58547
58548 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
58549
58550         * modules/ullong_max: New file.
58551
58552         * modules/chdir-long, modules/openat: New files.
58553         * modules/save-cwd (Depends-on): Depend on chdir-long.
58554         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
58555
58556 2005-01-18  Jim Meyering  <jim@meyering.net>
58557
58558         Merge from coreutils.
58559         * m4/chdir-long.m4, m4/openat.m4: New files.
58560         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
58561         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
58562         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
58563         is sane and DOES follow symlinks.  Besides, testing 20 different
58564         systems found no broken chown implementations.
58565         Prompted by a change in rsync's copy of this macro.
58566         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
58567
58568         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
58569
58570         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
58571         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
58572         NULL-means-set-to-current-time semantics.
58573         Remove temporary file immediately, rather than waiting
58574         for configure's at-exit trap code to do it.
58575
58576 2005-01-18  Jim Meyering  <jim@meyering.net>
58577
58578         * lib/version-etc.c (version_etc_copyright): Update copyright date.
58579
58580         * lib/utimens.c (futimens): Account for the fact that futimes
58581         can also fail with errno == ENOSYS or errno == ENOENT.
58582         Patch from Dmitry V. Levin.
58583
58584         Change the name of the robust chdir function from chdir to chdir_long.
58585         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
58586         (restore_cwd): Use chdir_long, not chdir.
58587         * lib/chdir-long.c: Renamed from chdir.c.
58588         * lib/chdir-long.h: Renamed from chdir.h.
58589         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
58590         Hurd.
58591
58592 2005-01-18  Bruno Haible  <bruno@clisp.org>
58593
58594         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
58595         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
58596         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
58597         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
58598         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
58599         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
58600         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
58601         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
58602         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
58603         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
58604         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
58605         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
58606         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
58607         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
58608         Use an all-permissive copyright notice, recommended by RMS.
58609
58610 2005-01-18  Bob Proulx  <bob@proulx.com>
58611
58612         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
58613         simplify offsetof() macro construct to avoid compile failure with
58614         native HP-UX 11.0 ANSI C compiler.
58615
58616 2005-01-17  Bruno Haible  <bruno@clisp.org>
58617
58618         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
58619         redundant because stpncpy.m4 takes care of it.
58620
58621 2005-01-17  Bruno Haible  <bruno@clisp.org>
58622
58623         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
58624
58625 2005-01-17  Bruno Haible  <bruno@clisp.org>
58626
58627         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
58628         used.
58629
58630 2005-01-17  Bruno Haible  <bruno@clisp.org>
58631
58632         * lib/fwriteerror.h (fwriteerror): Change specification to include
58633         fclose.
58634         * lib/fwriteerror.c: Include <stdbool.h>.
58635         (fwriteerror): At the end, close the file stream. Record whether
58636         stdout was already closed.
58637
58638 2005-01-17  Bruno Haible  <bruno@clisp.org>
58639
58640         * lib/execute.c (environ): Declare if needed.
58641         * lib/pipe.c (environ): Likewise.
58642         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
58643
58644 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58645
58646         * modules/argp: Depend on vsnprintf
58647
58648 2005-01-10  Jim Meyering  <jim@meyering.net>
58649
58650         * modules/closeout (Depends-on): Add atexit.
58651
58652 2005-01-06  Bruno Haible  <bruno@clisp.org>
58653
58654         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
58655
58656 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
58657
58658         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
58659         definitions to be after all include files, to avoid collisions.
58660         Problem reported by Bob Proulx.
58661
58662 2005-01-04  Jim Meyering  <jim@meyering.net>
58663
58664         Changes imported from coreutils.
58665         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
58666         as the mkstemp template, use a temporary directory and an
58667         8.3-friendly template to avoid trouble on systems like DJGPP.
58668         Reported by Juan M. Guerrero via Stepan Kasal.
58669         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
58670         close. Remove the temporary directory right away, rather than waiting
58671         for configure's at-exit trap code to do it.
58672         Suggestion from Stepan Kasal.
58673
58674 2005-01-01  Simon Josefsson  <jas@extundo.com>
58675
58676         * gnulib-tool: Print #include directives when --import'ing.
58677
58678 2004-12-28  Simon Josefsson  <jas@extundo.com>
58679
58680         * tests/test-base64.c: Include required header files.  Remove
58681         unused variables.
58682
58683 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
58684
58685         * modules/error (Depends-on): Remove gettext.
58686
58687 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
58688
58689         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
58690         not needed.  This removes a dependency on the gettext module.
58691         [defined _LIBC]: Do not include <libintl.h>; not needed.
58692
58693 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
58694
58695         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
58696         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
58697
58698 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
58699
58700         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
58701         HAVE_DECL_STRTOLD.
58702
58703 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58704
58705         * modules/getdate (Depends-on): Remove alloca-opt.
58706
58707 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58708
58709         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
58710
58711 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58712
58713         * lib/argp-parse.c: Include <stddef.h>.
58714         (alignof, alignto): New macros.
58715         (parser_init): Don't assume that void * is aligned sufficiently
58716         for struct option.
58717
58718         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
58719         need to extend the stack.
58720         (YYINITDEPTH): New macro, so that the initial stack isn't overly
58721         large.
58722
58723 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58724
58725         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
58726
58727 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
58728
58729         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
58730         (2004-10-24) change.  Apparently this was a false alarm.
58731
58732         * modules/getdate: Depend on alloca-opt, not alloca.
58733
58734 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
58735
58736         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
58737         Remove now-obsolete comment about AIX.
58738         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
58739         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
58740         (YYMAXDEPTH): New macro.
58741
58742 2004-12-18  Simon Josefsson  <jas@extundo.com>
58743
58744         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
58745
58746 2004-12-18  Bruno Haible  <bruno@clisp.org>
58747
58748         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
58749
58750 2004-12-18  Bruno Haible  <bruno@clisp.org>
58751
58752         * lib/fatal-signal.c (fatal_signals): Make non-const.
58753         (init_fatal_signals): New function.
58754         (uninstall_handlers, install_handlers): Ignore signals that were set to
58755         SIG_IGN.
58756         (at_fatal_signal): Call init_fatal_signals.
58757         (init_fatal_signal_set): Likewise. Ignore signals that were set to
58758         SIG_IGN.
58759         Reported by Paul Eggert.
58760
58761 2004-12-18  Bruno Haible  <bruno@clisp.org>
58762
58763         * doc/alloca.texi: New file.
58764         * doc/alloca-opt.texi: New file.
58765
58766 2004-12-17  Jim Meyering  <jim@meyering.net>
58767
58768         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
58769         Otherwise, install-sh could exit with improper exit status when
58770         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
58771
58772 2004-12-16  Simon Josefsson  <jas@extundo.com>
58773
58774         * tests/test-base64.c: Add license.
58775
58776 2004-12-15  Stepan Kasal  <address@hidden>
58777
58778         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
58779
58780 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
58781
58782         * modules/getcwd (Files): Add m4/d-ino.m4.
58783         Suggested by Mark D. Baushke.
58784
58785 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
58786
58787         * lib/getdate.y (textint): New member "negative".
58788         (time_zone_hhmm): New function.
58789         Expect 14 shift-reduce conflicts, not 13.
58790         (o_colon_minutes): New rule.
58791         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
58792         (yylex): Set the "negative" member of signed numbers.
58793
58794 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
58795
58796         * doc/getdate.texi (Time of day items, Time zone items):
58797         Describe new formats +00:00, UTC+00:00.
58798
58799 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
58800
58801         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
58802         spurious "-l"s.  Problem reported by Stepan Kasal.
58803
58804 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
58805
58806         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
58807         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
58808
58809 2004-12-04  Simon Josefsson  <jas@extundo.com>
58810
58811         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
58812         Vandoorselaere <yoann@prelude-ids.org>.
58813
58814 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
58815
58816         Changes imported from coreutils.
58817         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
58818         exist.
58819         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
58820
58821 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
58822
58823         Changes imported from coreutils.
58824         * lib/hard-locale.c: Assume <locale.h> exists.
58825         Include "strdup.h".
58826         (GLIBC_VERSION): New macro.
58827         (hard_locale): Assume setlocale exists.
58828         Rewrite to avoid #ifdef.
58829         Use strdup rather than malloc + strcpy.
58830         * lib/human.c: Assume <locale.h> exists.
58831         (human_readable): Assume localeconv exists.
58832
58833 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
58834
58835         * modules/hard-locale (Depends-on): Add strdup.
58836
58837 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
58838
58839         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
58840         convert T2, not T.  (Imported from libc.)
58841
58842 2004-11-30  Simon Josefsson  <jas@extundo.com>
58843
58844         * modules/restrict (License): Change to LGPL.
58845
58846 2004-11-30  Simon Josefsson  <jas@extundo.com>
58847
58848         * m4/restrict.m4: Add copyright and copying conditions.
58849
58850 2004-11-30  Simon Josefsson  <jas@extundo.com>
58851
58852         * m4/base64.m4: New file.
58853
58854 2004-11-30  Simon Josefsson  <jas@extundo.com>
58855
58856         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
58857         base64.
58858
58859         * tests/test-base64.c: New file.
58860
58861         * modules/base64: New file.
58862
58863 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
58864
58865         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
58866         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
58867
58868         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
58869
58870 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
58871
58872         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
58873         (__getcwd.c): Don't restore errno; glibc doesn't.
58874         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
58875         first, falling back to our code only if its results look suspicious.
58876         Ensure that the resulting buffer is only as large as necessary.
58877
58878         * lib/readutmp.c: Include readutmp.h first.
58879         Include <errno.h>, since readutmp.h no longer does that.
58880         * lib/readutmp.h: Don't include <errno.h>,
58881         <sys/param.h>, <time.h>; not needed to establish interface.
58882         (errno): Remove decl.
58883         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
58884         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
58885         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
58886
58887 2004-11-28  Simon Josefsson  <jas@extundo.com>
58888
58889         * lib/base64.h, base64.c: New file.
58890
58891 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
58892
58893         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
58894
58895 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
58896
58897         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
58898         (Depends-on): Remove pathmax, same.  Add mempcpy.
58899         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
58900         (Makefile.am): Append getcwd.h to lib_SOURCES.
58901         (Include): Add getcwd.h.
58902         (Maintainer): Change from Jim Meyering to "all, glibc",
58903         since getdate now uses intended-for-glibc code.
58904         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
58905         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
58906
58907 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
58908
58909         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
58910         HP's ANSI C compiler.
58911         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
58912         Declaring int functions causes warnings on some modern systems and
58913         shouldn't be needed to compile on ancient ones.
58914         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
58915         defined.
58916
58917         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
58918         with the following changes.
58919         (__set_errno): Parenthesize properly.
58920         Include <stdbool.h>.
58921         (MIN, MAX, MATCHING_INO): New macros.
58922         (__getcwd): Define with prototype, not K&R form.
58923         Use heuristics to allocate default buffer on stack if possible.
58924         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
58925         behavior, and to avoid the PATH_MAX limit when computing
58926         ../../../../...
58927         Use MATCHING_INO to compare inode number to file.
58928         Check for arithmetic overflow in size calculations.
58929         Fix bug in reallocation of dot array that caused getcwd to fail
58930         on directories nested deeper than 75.
58931         Be more careful about saving errno on error.
58932         Do not use realloc; use only free+malloc, as this is a bit
58933         more flexible and avoids a needless copy operation.
58934         Do not inspect st_dev and st_ino for symbolic links; POSIX
58935         doesn't specify the latter.
58936         Check for closedir errors.
58937         Avoid needless casts.
58938         Use "#ifdef weak_alias" around weak_alias, to be like other
58939         glibc code.
58940         The following changes to getcwd.c have effect only when used in
58941         gnulib; they have no effect inside glibc proper.
58942         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
58943         as alloca isn't used.
58944         (alloca, __alloca): Likewise.
58945         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
58946         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
58947         unconditionally, as gnulib assumes C89 or better.
58948         Do not include <sys/param.h>.
58949         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
58950         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
58951         better.
58952         (NULL) [!defined NULL]: Remove; we assume C89 or better.
58953         Include <dirent.h> in a way that is compatible with modern Autoconf.
58954         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
58955         New macros, if not already defined.
58956         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
58957         Use "_LIBC", not "defined _LIBC", for consistency.
58958         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
58959         a mempcpy module.
58960         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
58961         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
58962         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
58963         credit only to Jim Meyering and adjust the copyright dates.
58964         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
58965         <stdlib.h>, <unistd.h>, "pathmax.h".
58966         Instead, include "xgetcwd.h" (first) and "getcwd.h".
58967         (INITIAL_BUFFER_SIZE): Remove.
58968         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
58969
58970 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
58971
58972         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
58973         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
58974         Use the _ONCE methods, for efficiency.
58975         Check for fcntl.h.  In test program, include <errno.h>
58976         and <fcntl.h> if available.  Remove old K&R cruft from
58977         test program.  Check for common errors in GNU/Linux,
58978         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
58979         don't do AC_LIBOBJ, as that's getcwd.m4's job.
58980         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
58981         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
58982         name accordingly.
58983         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
58984         accommodate new getcwd.c.
58985         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
58986         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
58987         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
58988         that's all we need now.
58989
58990 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58991
58992         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
58993         argp-parse.c depends on getopt internals, that means we should
58994         always use our getopt, to be on the safe side.
58995         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
58996         order not to spoil the result of an eventual previous invocation
58997         of gl_GETOPT_SUBSTITUTE.
58998
58999 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59000
59001         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
59002         redefinition warnings. To avoid them, include the defines
59003         in `#if !defined __need_getopt ... #endif'. The only place
59004         where __getopt_argv_const is used is in definitions
59005         of getopt_long and getopt_long_only below, which are as well
59006         protected by `#ifndef __need_getopt'.
59007         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
59008         __need_getopt after including <stdio.h> and <unistd.h> These
59009         headers might have defined it.
59010
59011 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
59012
59013         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
59014
59015 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
59016
59017         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
59018         (futimens): New function, which uses futimes if available.
59019         (futimens, utimens): Support timespec==NULL, with same semantics
59020         as utime and utimens.
59021         * lib/utimens.h (futimens): New decl.
59022
59023 2004-11-23  Jim Meyering  <jim@meyering.net>
59024
59025         * lib/getopt_.h: Remove trailing blanks.
59026
59027 2004-11-23  Jim Meyering  <jim@meyering.net>
59028
59029         * lib/__fpending.c: Add comment.
59030
59031 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
59032
59033         * modules/canonicalize (Depends-on): Add xreadlink.
59034         Problem reported by James Youngman.
59035
59036 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
59037
59038         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
59039         New macros.
59040         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
59041         optopt): Use them instead of invoking ## directly; otherwise, the
59042         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
59043
59044 2004-11-19  Bruno Haible  <bruno@clisp.org>
59045
59046         * lib/strtok_r.c: Move comments from here...
59047         * lib/strtok_r.h: ... to here.
59048
59049 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
59050
59051         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
59052         implementations that mishandle size_t overflow.
59053
59054 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
59055
59056         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
59057         might fail.  Problem reported by Yoann Vandoorselaere.
59058         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
59059         implementations that mishandle size_t overflow.
59060
59061 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59062
59063         * modules/canon-host (Depends-on): Add strdup.
59064
59065 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59066
59067         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
59068
59069 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59070
59071         * lib/canon-host.c: Include "strdup.h".
59072         (canon_host): Use getaddrinfo if available, so that IPv6 works.
59073         Use strdup instead of malloc/strcpy to duplicate strings.
59074
59075         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
59076         (human_space_before_unit): New constant.
59077         * lib/human.c (human_readable): Support it.
59078
59079         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
59080         (xgetcwd): Set errno correctly when failing.
59081         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
59082         the failure is actually due to a PATH_MAX problem.
59083
59084         Further getopt changes to make it more likely that glibc will
59085         buy the changes back.
59086         * lib/getopt.c (POSIXLY_CORRECT): New constant.
59087         (getopt): Use it, so to preserve glibc semantic
59088         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
59089         when compiling for libc.
59090         * lib/getopt_.h (__getopt_argv_const): Bring it back.
59091         (getopt_long, getopt_long_only): Use it.
59092
59093         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
59094         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
59095         (getopt): Argv is now char * const *, as per standard.
59096         (_getopt_internal_r, _getopt_internal): Argv is now char **,
59097         not char *__getopt_argv_const *.
59098         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
59099         _getopt_long_only_r): Likewise.
59100         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
59101         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
59102         _getopt_long_r, _getopt_long_only_r): Likewise.
59103         * lib/getopt_.h (__getopt_argv_const): Remove.
59104         (getopt): Argv is now char * const *, as per standard.
59105
59106         * lib/getdate.y (tORDINAL): New token.
59107         (day, relunit): Allow it for relative times.
59108         (relative_time_table): Use tORDINAL for ordinals.
59109
59110 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59111
59112         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
59113         Document that "second" isn't allowed as an ordinal number.
59114
59115 2004-11-16  Jim Meyering  <jim@meyering.net>
59116
59117         * modules/closeout (Depends-on): Add fpending.
59118
59119 2004-11-15  Jim Meyering  <jim@meyering.net>
59120
59121         * lib/closeout.c: Include "__fpending.h" once again.
59122         Include <stdbool.h>.
59123         (close_stdout): Don't fail just because stdout was closed initially,
59124         since some programs don't write to stdout in the normal course of
59125         operation (other than --version and --help), and we don't want this
59126         function to make e.g. `touch file >&-' fail.
59127         But do fail if it was closed and someone has tried to write to it.
59128         E.g., `printf foo >&-' must fail.
59129
59130 2004-11-13  Jim Meyering  <jim@meyering.net>
59131
59132         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
59133
59134 2004-11-12  Simon Josefsson  <jas@extundo.com>
59135
59136         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
59137         small doc fix is still pending.
59138
59139 2004-11-11  Simon Josefsson  <jas@extundo.com>
59140
59141         * modules/strtok_r: New file.
59142
59143         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59144         strtok_r.
59145
59146 2004-11-11  Simon Josefsson  <jas@extundo.com>
59147
59148         * m4/strtok_r.m4: New file.
59149
59150         * m4/getopt.m4: Replace opterr.
59151
59152 2004-11-11  Simon Josefsson  <jas@extundo.com>
59153
59154         * lib/strtok_r.h, strtok_r.c: New file.
59155
59156 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
59157
59158         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
59159         of replacing opterr, getopt, etc.  This should handle the
59160         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
59161
59162 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
59163
59164         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
59165         we can stop lying to compilers about the constness of argv when we
59166         are compiled outside glibc.
59167         (getopt, getopt_long, getopt_long_only): Use it.
59168         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
59169         _getopt_internal, getopt): Likewise.
59170         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
59171         _getopt_long_only_r): Likewise.
59172         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
59173         _getopt_long_r, _getopt_long_only_r): Likewise.
59174
59175         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
59176         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
59177         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
59178         the other external symbols.
59179         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
59180         declaration, since the above renaming now works around collisions.
59181
59182 2004-11-11  Jim Meyering  <jim@meyering.net>
59183
59184         * lib/linebreak.c: Remove trailing blanks.
59185         * lib/alloca_.h: Likewise.
59186         * lib/acosl.c: Likewise.
59187         * lib/euidaccess.c: Likewise.
59188         * lib/allocsa.h: Likewise.
59189
59190 2004-11-10  Simon Josefsson  <jas@extundo.com>
59191
59192         * m4/getaddrinfo.m4: New file.
59193
59194 2004-11-10  Simon Josefsson  <jas@extundo.com>
59195
59196         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
59197
59198 2004-11-10  Simon Josefsson  <jas@extundo.com>
59199
59200         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59201         getaddrinfo.
59202
59203         * modules/getaddrinfo: New file.
59204
59205 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
59206
59207         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
59208
59209 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
59210
59211         * lib/mktime.c (SHR): New macro, which is a portable
59212         substitute for >> that should work even on Crays.
59213         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
59214         Problem reported by Mark D. Baushke in
59215         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
59216         * lib/getdate.y (SHR): Likewise.
59217         (tm_diff): Use it.
59218         * lib/strftime.c (SHR): Likewise.
59219         (tm_diff): Use it.
59220         * lib/quotearg.c (struct quoting_options): Use unsigned int for
59221         quote_these_too, so that right shifts are well defined.  All uses
59222         changed.
59223
59224 2004-11-10  Jim Meyering  <jim@meyering.net>
59225
59226         Ensure that no close failure goes unreported.
59227         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
59228         return early when it seems there's nothing to flush.
59229         Don't include __fpending.h.
59230
59231 2004-11-10  Jim Meyering  <jim@meyering.net>
59232
59233         * modules/closeout (Depends-on): Remove fpending.
59234
59235 2004-11-10  Jim Meyering  <jim@meyering.net>
59236
59237         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
59238
59239 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
59240
59241         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
59242         gl_FUNC_STRFTIME.
59243         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
59244         and AC_REQUIRE when possible, to avoid duplicate checks.
59245         Check for <wchar.h>.
59246
59247 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
59248
59249         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
59250
59251 2004-11-09  Bruno Haible  <bruno@clisp.org>
59252
59253         * m4/sockpfaf.m4: New file.
59254
59255 2004-11-05  Bruno Haible  <bruno@clisp.org>
59256
59257         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
59258         Reported by Mark D. Baushke <mdb@cvshome.org>.
59259
59260 2004-11-04  Bruno Haible  <bruno@clisp.org>
59261
59262         2004-09-11  Bruno Haible  <bruno@clisp.org>
59263                 * allocsa.valgrind: New file.
59264         2004-02-06  Bruno Haible  <bruno@clisp.org>
59265                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
59266                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
59267                 Reported by Christopher Seip <chris.seip@hp.com>.
59268
59269 2004-11-04  Bruno Haible  <bruno@clisp.org>
59270
59271         * modules/allocsa (Files): Add lib/allocsa.valgrind.
59272         (Makefile.am): Distribute it.
59273
59274 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
59275
59276         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
59277         with errno == ERANGE if the buffer is too small.
59278         Problem reported by Mark D. Baushke.
59279
59280 2004-11-03  Albert Chin  <china@thewrittenword.com>
59281             Paul Eggert  <eggert@cs.ucla.edu>
59282
59283         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
59284         equivalent, substitute $ac_type for equivalent type rather than
59285         blindly using uint32_t *always* which won't work if uint32_t is not
59286         available.  Define _UINT32_T to work around typedef of uint32_t if
59287         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
59288         2.5.1.
59289
59290 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
59291
59292         * m4/jm-macros.m4: Sync from coreutils.
59293         (gl_MACROS): Check for mbrlen, for pathchk.
59294         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
59295
59296 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
59297
59298         * lib/xreadlink.c (MAXSIZE): New macro.
59299         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
59300         size does not exceed MAXSIZE.  Avoid cast.
59301         As suggested by Mark D. Baushke in
59302         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
59303         if readlink fails with buffer size just under MAXSIZE, try again
59304         with MAXSIZE.
59305
59306 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
59307
59308         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
59309
59310 2004-11-02  Derek R. Price  <derek@ximbiot.com>
59311         and  Paul Eggert  <eggert@cs.ucla.edu>
59312
59313         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
59314         (get_date): Overparenthesize to avoid GCC warning.
59315
59316 2004-11-02  Bruno Haible  <bruno@clisp.org>
59317
59318         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
59319         returns void.
59320
59321 2004-11-02  Bruno Haible  <bruno@clisp.org>
59322
59323         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
59324         function returns void.
59325
59326 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
59327
59328         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
59329         fflush_unlocked, flockfile, funlockfile, funlockfile,
59330         fputs_unlocked, putc_unlocked.
59331
59332 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
59333
59334         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
59335         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
59336         already declared.
59337
59338 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
59339
59340         * modules/getdate (Files): Add doc/getdate.texi.
59341         (Depends-on): Add setenv, xalloc.
59342
59343 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
59344
59345         * lib/getdate.y: Add support for TZ="foo" within a date string.
59346         Fix some bugs near time_t boundaries.  Reject dates with
59347         out-of-range components, e.g., "Sept 31".
59348         Include <stdlib.h>, "setenv.h", "xalloc.h".
59349         (ISDIGIT_LOCALE): Remove; unused.
59350         Note that the TZ and time functions used here are not reentrant.
59351         (mktime_ok, get_tz): New functions.
59352         (TZBUFSIZE): New constant.
59353         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
59354         This requires that we sometimes generate our own TZ="XXX..." setting.
59355
59356 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
59357
59358         * doc/getdate.texi: New file, from coreutils with modifications for
59359         the new TZ parsing.
59360
59361 2004-10-27  Derek R. Price  <derek@ximbiot.com>
59362
59363         * lib/mktime.c (not_equal_tm): Remove redundant check.
59364
59365 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59366
59367         * modules/regex (lib_SOURCES): Add regex.c.
59368         Reported by James Youngman in
59369         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
59370
59371 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59372
59373         * lib/getdate.y: Use Bison 1.875 features, and some minor
59374         code cleanups.  This change does not affect semantics.
59375         Don't include <stdlib.h>; no longer needed.
59376         Don't include unlocked-io.h; only the "#if TEST" code uses
59377         stdio, and performance isn't crucial there.
59378         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
59379         Bison 1.875 features as described below.
59380         All uses of "PC." replaced by "pc->".
59381         (YYSTYPE): Add a forward declaration.
59382         (yylex, yyerror): Use full prototypes in forward decls.
59383         Use "%pure-parser" rather than obsolescent "%pure_parser".
59384         Use %parse-param and %lex-param instead of obsolescent
59385         YYPARSE_PARAM and YYLEX_PARAM.
59386         (meridian_table, month_and_day_table, time_units_table,
59387         relative_time_table, time_zone_table, military_table,
59388         lookup_zone, lookup_word, get_date):
59389         Use NULL instead of 0 where appropriate.
59390         (to_hour): Avoid abort (), to avoid a dependency on
59391         stdlib.h.
59392         (yyerror, yylex): Now accepts parser_control * arg.
59393         (main) [TEST]: Use '\0' rather than 0 for char.
59394
59395 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59396
59397         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
59398
59399 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59400
59401         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
59402         It's now the caller's responsibility to handle the case where
59403         !HAVE_GETPAGESIZE && !defined getpagesize.
59404
59405         * lib/mktime.c (leapyear): Arg is long int, not int.
59406
59407 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
59408
59409         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
59410
59411 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
59412
59413         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
59414         missing.  Problem reported by James Youngman.
59415
59416 2004-10-16  Simon Josefsson  <jas@extundo.com>
59417
59418         * gnulib-tool: Fix comments.  Fix parse problem.
59419         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
59420
59421 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
59422
59423         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
59424         implementation of getopt_long.  Problem reported by Alexander Taler in:
59425         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
59426
59427 2004-10-15  Bruno Haible  <bruno@clisp.org>
59428
59429         * gnulib-tool: Untabify. Initialize supplied_libname.
59430         (func_usage): More homogenous output.
59431         (func_modules_transitive_closure, func_modules_to_filelist,
59432         func_emit_lib_Makefile_am): New functions.
59433         (func_import): New function, extracted from big case statement. Use
59434         func_get_license, func_modules_transitive_closure,
59435         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
59436         opt_lgpl. Don't use test -a, as it's not portable.
59437         (func_create_testdir): Use func_modules_transitive_closure,
59438         func_modules_to_filelist, func_emit_lib_Makefile_am.
59439
59440 2004-10-15  Bruno Haible  <bruno@clisp.org>
59441
59442         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
59443
59444 2004-10-15  Bruno Haible  <bruno@clisp.org>
59445
59446         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
59447         the portions belonging to each module.
59448         Suggested by Derek Robert Price <derek@ximbiot.com>.
59449
59450 2004-10-12  Simon Josefsson  <jas@extundo.com>
59451
59452         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
59453         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
59454         to real functions.
59455
59456 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59457
59458         * modules/vsnprintf: New file.
59459
59460 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59461
59462         * m4/vsnprintf.m4: New file.
59463
59464 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59465
59466         * lib/vsnprintf.h: New file.
59467         * lib/vsnprintf.c: New file.
59468
59469 2004-10-11  Bruno Haible  <bruno@clisp.org>
59470
59471         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
59472         vsnprintf.
59473
59474 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
59475
59476         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
59477
59478 2004-10-07  Bruno Haible  <bruno@clisp.org>
59479
59480         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
59481         fits into the provided buffer.
59482
59483 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
59484
59485         * lib/diacrit.c, diacrit.h: Add GPL notice.
59486
59487         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
59488         notice.
59489         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
59490         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
59491         This avoids a potential constant-folding bug.
59492
59493 2004-10-05  Bruno Haible  <bruno@clisp.org>
59494
59495         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
59496         for the declaration of strsep.
59497
59498 2004-10-05  Bruno Haible  <bruno@clisp.org>
59499
59500         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
59501
59502 2004-10-04  Simon Josefsson  <jas@extundo.com>
59503
59504         * modules/memmem: New file.
59505         * tests/test-memmem.c: New file.
59506         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
59507
59508 2004-10-04  Simon Josefsson  <jas@extundo.com>
59509
59510         * m4/memmem.m4: New file.
59511
59512 2004-10-04  Simon Josefsson  <jas@extundo.com>
59513
59514         * lib/memmem.h: New file.
59515         * lib/memmem.c: New file, taken from glibc.
59516
59517 2004-10-04  Simon Josefsson  <jas@extundo.com>
59518
59519         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
59520         '#ifdef USE_UNLOCKED_IO'.
59521
59522 2004-10-04  Simon Josefsson  <jas@extundo.com>
59523
59524         * config/srclist.txt: Add memmem from glibc.
59525
59526 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59527
59528         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
59529
59530         * modules/argmatch, modules/argp, modules/closeout, modules/error,
59531         modules/exclude, modules/getdate, modules/getline,
59532         modules/getndelim2, modules/getpass, modules/getpass-gnu,
59533         modules/getusershell, modules/linebuffer, modules/md5,
59534         modules/mountlist, modules/posixtm, modules/readtokens,
59535         modules/readutmp, modules/regex, modules/sha1,
59536         modules/version-etc, modules/yesno:
59537         Remove dependency on unlocked-io.
59538
59539 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59540
59541         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
59542
59543         * m4/unlocked-io.m4: Add copyright notice.
59544         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
59545
59546 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59547
59548         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
59549         * lib/xmalloc.c (xmemdup): Likewise.
59550         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
59551         XFREE): Remove these long-obsolescent macros.
59552         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
59553         * lib/xstrdup.c: Remove.
59554
59555         * lib/regex.c (re_comp): Cast gettext return value to char *,
59556         Problem reported by Martin Neitzel via Mark D. Baushke.
59557
59558 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59559
59560         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
59561         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
59562         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
59563         regex.c, sha1.c, version-etc.c, yesno.c:
59564         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
59565         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
59566         the includer's responsibility.
59567
59568         Sync from coreutils.
59569
59570         * lib/modechange.c (mode_compile): Don't decrement a pointer that
59571         points to the start of a string, as the C Standard says the
59572         resulting behavior is undefined.
59573
59574         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
59575         simple -> simple_backups, numbered_existing ->
59576         numbered_existing_backups, numbered -> numbered_backups
59577         to avoid shadowing problems.  All uses changed.
59578         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
59579         * lib/backupfile.c (check_extension, numbered_backup):
59580         Rename locals to avoid shadowing 'basename'.
59581         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
59582         once.
59583
59584         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
59585         * lib/.cvsignore: Add getopt.h.
59586
59587 2004-10-04  Bruno Haible  <bruno@clisp.org>
59588
59589         * modules/README: New file.
59590         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
59591         not a module.
59592
59593 2004-10-02  Jim Meyering  <jim@meyering.net>
59594
59595         * lib/dirfd.h, getpagesize.h: Add copyright notice.
59596
59597 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59598
59599         * modules/strsep: New file.
59600
59601 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59602
59603         * m4/strsep.m4: New file.
59604
59605 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59606
59607         * lib/strsep.h: New file.
59608         * lib/strsep.c: New file.
59609
59610 2004-10-01  Simon Josefsson  <jas@extundo.com>
59611
59612         * lib/snprintf.c (snprintf): Handle size==0.
59613
59614 2004-10-01  Simon Josefsson  <jas@extundo.com>
59615             Bruno Haible  <bruno@clisp.org>
59616
59617         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
59618         (snprintf): Declare 'args'.
59619
59620 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
59621
59622         * lib/snprintf.c: Remove comments as to why each header is needed.
59623
59624 2004-10-01  Bruno Haible  <bruno@clisp.org>
59625
59626         * MODULES.html.sh: Add strsep.
59627
59628 2004-09-30  Simon Josefsson  <jas@extundo.com>
59629
59630         * modules/snprintf: New file.
59631
59632 2004-09-30  Simon Josefsson  <jas@extundo.com>
59633
59634         * m4/snprintf.m4: New file.
59635
59636 2004-09-30  Simon Josefsson  <jas@extundo.com>
59637
59638         * lib/snprintf.h, lib/snprintf.c: New files.
59639
59640 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59641
59642         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
59643         (hol_entry_help): Never translate an empty string.
59644         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
59645         * lib/argp.h (OPTION_NO_TRANS): New option.
59646
59647 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
59648
59649         * modules/argp (Maintainer): Replace Simon Josefsson
59650         by Sergey Poznyakoff.
59651
59652 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
59653
59654         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
59655         changes merged back into glibc.
59656
59657 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
59658
59659         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
59660
59661 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
59662
59663         * lib/xvasprintf.c: Include xalloc.h.
59664         (xvasprintf): Use xalloc_die, not xmalloc_die.
59665
59666 2004-09-29  Bruno Haible  <bruno@clisp.org>
59667
59668         * modules/alloca-opt: New file, derived from modules/alloca.
59669         * modules/allocsa: Depend on alloca-opt instead of alloca.
59670         * modules/setenv: Likewise.
59671         * modules/vasnprintf: Likewise.
59672         * MODULES.html.sh: Add alloca-opt.
59673
59674 2004-09-28  Simon Josefsson  <jas@extundo.com>
59675
59676         * gnulib-tool: New parameter --lgpl, to asseert that modules are
59677         LGPL, and to replace license template from GPL to LGPL.
59678
59679 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
59680
59681         * modules/dummy: Change license to LGPL.
59682
59683 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
59684
59685         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
59686
59687 2004-09-24  Simon Josefsson  <jas@extundo.com>
59688
59689         * modules/minmax (License): Change from GPL to LGPL.
59690
59691 2004-09-23  Simon Josefsson  <jas@extundo.com>
59692
59693         * gnulib-tool (--import): Typo.
59694
59695 2004-09-23  Simon Josefsson  <jas@extundo.com>
59696
59697         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
59698
59699 2004-09-22  Bruno Haible  <bruno@clisp.org>
59700
59701         * modules/*: Add 'License' field.
59702         * gnulib-tool: Accept --extract-license option.
59703         (func_get_license): New function.
59704
59705 2004-09-21  Bruno Haible  <bruno@clisp.org>
59706
59707         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
59708         Reported by Simon Josefsson.
59709
59710 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
59711
59712         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
59713         gl_AC_TYPE_LONG_LONG.
59714
59715 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
59716
59717         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
59718
59719 2004-09-18  Simon Josefsson  <jas@extundo.com>
59720         and  Paul Eggert  <eggert@cs.ucla.edu>
59721
59722         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
59723         calls with autoreconf.  Define GL_LIB.
59724
59725 2004-09-14  Karl Berry  <karl@gnu.org>
59726
59727         * config/srclist.txt: unsync setenv.c, sigh.
59728
59729 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59730
59731         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
59732         Problem reported by Bruno Haible in:
59733         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
59734
59735 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59736
59737         * config/srclist.txt: Comment out argp-pvh.c.
59738
59739 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
59740
59741         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
59742         in case some system header has #define'd it.  Problem reported by
59743         Soeren D. Schulze in
59744         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
59745
59746 2004-09-09  Karl Berry  <karl@gnu.org>
59747
59748         * regex.[ch]: delete from the root.  These were supposed to be
59749                 synced with emacs cvs, but this has not happened for about
59750                 a year, and anyway nothing else uses emacs regex.[ch].
59751                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
59752                 lib/regex[.ch] is untouched.
59753
59754 2004-09-09  Bruno Haible  <bruno@clisp.org>
59755
59756         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
59757
59758 2004-09-09  Bruno Haible  <bruno@clisp.org>
59759
59760         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
59761         modifications.
59762         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
59763
59764 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
59765
59766         * modules/xvasprintf: New file.
59767         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
59768
59769 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
59770
59771         * lib/xvasprintf.h: New file.
59772         * lib/xvasprintf.c: New file.
59773         * lib/xasprintf.c: New file.
59774
59775 2004-09-08  Bruno Haible  <bruno@clisp.org>
59776
59777         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
59778
59779 2004-09-08  Bruno Haible  <bruno@clisp.org>
59780
59781         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
59782         length is > INT_MAX.
59783         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
59784         more.
59785
59786 2004-09-08  Bruno Haible  <bruno@clisp.org>
59787
59788         * lib/stdint_.h: New file, taken from GNU clisp.
59789
59790 2004-09-08  Bruno Haible  <bruno@clisp.org>
59791             Oskar Liljeblad  <oskar@osk.mine.nu>
59792
59793         * modules/stdint: New file.
59794         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
59795
59796 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59797
59798         Import from coreutils.
59799         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
59800         strings on unbounded length.  alloca's performance benefits aren't
59801         that important here.
59802         (V_STRDUP): Remove.
59803         (parse_with_separator): New function, with most of the internals
59804         of the old parse_user_spec.  Allow user to omit both user and group,
59805         for compatibility with FreeBSD.
59806         Clone only the user name, not the entire spec.
59807         Do not set *uid, *gid unless entirely successful.
59808         Avoid memory leak in some failing cases.
59809         Fix regression for USER.GROUP reported by Dmitry V. Levin in
59810         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
59811         (parse_user_spec): Rewrite to use parse_with_separator.
59812
59813 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59814
59815         * modules/userspec: Don't depend on alloca.
59816
59817 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59818
59819         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
59820
59821 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
59822
59823         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
59824         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
59825         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
59826
59827 2004-08-16  Simon Josefsson  <jas@extundo.com>
59828
59829         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
59830         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
59831         Add --dry-run for --import.
59832         Let user provided command line parameters override configure.ac
59833         settings.
59834
59835 2004-08-12  Simon Josefsson  <jas@extundo.com>
59836
59837         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
59838         as discussed with Paul Eggert in threads rooted at
59839         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
59840         and
59841         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
59842         Before, the test was empty, and relied on ELIDE_CODE in source
59843         code.)
59844         (gl_PREREQ_GETOPT): New macro.
59845         (gl_GETOPT): Use them.
59846
59847 2004-08-12  Simon Josefsson  <jas@extundo.com>
59848
59849         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
59850         * lib/getopt_.h: Renamed from getopt.h.
59851
59852 2004-08-12  Simon Josefsson  <jas@extundo.com>
59853
59854         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
59855         Change default library name from libfoo to libgnu.
59856         Now, if you have a configure.ac that says:
59857                 gl_SOURCE_BASE(gl)
59858                 gl_M4_BASE(gl/m4)
59859                 gl_MODULES(error getopt etcetera)
59860                 gl_INIT
59861         you can import all you need by running:
59862                 ../gnulib/gnulib-tool --import
59863
59864         * modules/getopt (Files): Rename getopt.h to getopt_.h.
59865         (Makefile.am): Rewrite, use logic from argz.
59866         (Include): Use <getopt.h> instead of "getopt.h".
59867
59868 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59869
59870         * modules/argp (Files): Add m4/unlocked-io.m4.
59871         (Depends-on): Add extensions.
59872
59873 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59874
59875         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
59876         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
59877         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
59878         Check for program_invocation_name, program_invocation_short_name,
59879         flockfile, funlockfile, features.h, _getopt_long_only_r.
59880
59881 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59882
59883         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
59884         its complicated substitute.
59885         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
59886         and program_invocation_name.
59887         (__argp_basename) [!_LIBC]: Remove; the only use was
59888         replaced by its body.
59889         (__argp_short_program_name): Change condition from
59890         !defined __argp_short_program_name to
59891         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
59892         to match argp-namefrob.h.
59893         (__argp_failure): Don't assume strerror_r returns char *.
59894         * lib/argp-parse.c (N_): Define unconditionally.
59895         (argp_default_options): Fill out initializers with 0 to avoid
59896         gcc warnings.
59897
59898 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59899
59900         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
59901         getopt1.c.
59902
59903 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59904
59905         Merge from coreutils.
59906
59907         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
59908
59909         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
59910         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
59911
59912 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59913
59914         Merge from coreutils.
59915
59916         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
59917         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
59918         for Reliant Unix 5.43.
59919
59920         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
59921         (union fooround): Use uintmax_t, not long int.
59922         The rest is a merge from libc:
59923         [defined _LIBC]: Include <shlib-compat.h>.
59924         (_obstack) [defined _LIBC]: Remove after 2.3.4.
59925
59926         * lib/settime.c (settime): Recode to avoid warning with
59927         Sun Forte C 6U2.
59928
59929         * lib/strverscmp.c: Convert to UTF-8.
59930
59931 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59932
59933         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
59934         m4/uintmax_t.m4.
59935
59936 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59937
59938         * modules/xalloc-die: New file.
59939         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
59940
59941         * modules/md5 (Files): Add m4/uint32_t.m4.
59942         * modules/sha1: Renamed from modules/sha.
59943         (Files):
59944         Rename lib/sha.h to lib/sha1.h.
59945         Rename lib/sha.c to lib/sha1.c.
59946         Rename m4/sha.m4 to m4/sha1.m4.
59947         (lib_SOURCES): Likewise.
59948         (configure.ac): Rename gl_SHA to gl_SHA1.
59949         (Include): sha.h -> sha1.h.
59950
59951 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59952
59953         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
59954         * m4/sha1.m4: Renamed from sha.m4.
59955         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
59956
59957 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59958
59959         * lib/obstack.h (obstack_empty_p):
59960         Don't assume that chunk->contents is suitably aligned.
59961         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
59962         Likewise. Problem reported by Benno in
59963         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
59964
59965         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
59966         readable.  This could be improved further but it'd take some work.
59967
59968 2004-08-08  Simon Josefsson  <jas@extundo.com>
59969
59970         * modules/xgethostname (Depends-on): Remove exit and error (not
59971         used).
59972
59973         * modules/getpass-gnu: Add getpass.h.
59974         (Depends-on): Add stdbool.
59975         * modules/getpass: Add getpass.h.
59976
59977 2004-08-08  Simon Josefsson  <jas@extundo.com>
59978
59979         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
59980         Check getpass declaration.
59981
59982 2004-08-08  Simon Josefsson  <jas@extundo.com>
59983
59984         * lib/xgethostname.c: Don't include error.h (not used).
59985
59986         * lib/getpass.h: Add.
59987         * lib/getpass.c: Include getpass.h first.
59988
59989 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
59990
59991         * lib/xalloc-die.c: New file.
59992         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
59993         All uses removed.
59994         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
59995         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
59996         xalloc-die.c.
59997         (_, N_, xalloc_die): Move to xalloc-die.c.
59998         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
59999         so that we needn't mess with xalloc_msg_memory_exhausted.
60000
60001         * lib/sha1.h: Renamed from sha.h.
60002         (SHA1_H): Renamed from _SHA_H.
60003         (sha1_ctx): Renamed from sha_ctx.
60004         (sha1_init_ctx): Renamed from sha_init_ctx.
60005         (sha1_process_block): Renamed from sha_process_block.
60006         (sha1_process_bytes): Renamed from sha_process_bytes.
60007         (sha1_finish_ctx): Renamed from sha_finish_ctx.
60008         (sha1_read_ctx): Renamed from sha_read_ctx.
60009         (sha1_stream): Renamed from sha_stream.
60010         (sha1_buffer): Renamed from sha_buffer.
60011         * lib/sha1.c: Likewise; renamed from sha.c.
60012         Do not include <sys/types.h>.
60013         Include <stddef.h> rather than <stdlib.h>.
60014
60015 2004-08-08  Bruno Haible  <bruno@clisp.org>
60016
60017         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
60018         FILESYSTEM_PREFIX_LEN.
60019         * lib/progreloc.c: Likewise.
60020         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
60021
60022 2004-08-06  Simon Josefsson  <jas@extundo.com>
60023
60024         * modules/progname (Depends-on): Don't depend on stdbool.
60025
60026 2004-08-06  Simon Josefsson  <jas@extundo.com>
60027
60028         * modules/getsubopt: New file.
60029         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60030         getsubopt.
60031
60032 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
60033
60034         More merge from coreutils.
60035
60036         * m4/utimens.m4, m4/utimecmp.m4: New files.
60037         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
60038         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
60039         prereq.m4, sha.m4: Import changes from coreutils.
60040
60041 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
60042
60043         More merge from coreutils.
60044         * modules/raise, modules/readtokens0, modules/utimens:
60045         * modules/utimecmp, module/xnanosleep: New files.
60046         * modules/strftime: Add lib/strftime.h.
60047         Change include from <time.h> to "strftime.h".
60048         * modules/yesno: Add lib/yesno.h.
60049         * modules/backupfile: Remove lib/addext.c.
60050         * modules/euidaccess: Add stat-macros.h.
60051         * modules/canonicalize, modules/euidaccess,
60052         modules/filemode, modules/lchown, modules/makepath,
60053         modules/rmdir, modules/stat: Likewise.
60054
60055 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
60056
60057         Merge from tar.
60058         * lib/argp-help.c (make_hol, hol_append): Don't assume that
60059         SIZE_MAX is a valid preprocessor constant.
60060         (__argp_basename): Change from "#ifndef _LIBC"
60061         to "#ifndef __argp_short_program_name", so that
60062         we don't compile these functions for tar.
60063
60064         More merges from coreutils.
60065         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
60066         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
60067         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
60068         * lib/addext.c: Remove; no longer needed.
60069         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
60070         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
60071         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
60072         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
60073         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
60074         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
60075         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
60076         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
60077         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
60078         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
60079         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
60080         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
60081         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
60082         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
60083         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
60084         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
60085         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
60086         Import changes from coreutils.
60087
60088 2004-08-05  Simon Josefsson  <jas@extundo.com>
60089
60090         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
60091
60092 2004-08-05  Simon Josefsson  <jas@extundo.com>
60093
60094         * m4/getsubopt.m4: New file.
60095
60096 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
60097
60098         Merge from coreutils.
60099
60100         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
60101         * m4/getcwd-path-max.m4: New files.
60102
60103         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
60104         FILESYSTEM_PREFIX_LEN ->
60105         FILE_SYSTEM_PREFIX_LEN.
60106         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
60107         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
60108         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
60109         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
60110
60111         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
60112         prerequisite modules now handle the DOS stuff.
60113         Don't check for unistd.h.
60114
60115 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
60116
60117         Merge from coreutils.
60118
60119         * lib/.gdb-history: Remove; this doesn't belong here.
60120
60121         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
60122         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
60123         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
60124         * lib/getcwd.c: New files.
60125
60126         * lib/dirname.h: Include <stdbool.h>.
60127         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
60128         for consistency with POSIX terminology.  All uses changed.
60129         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
60130         (strip_trailing_slashes): Use bool for booleans.
60131         * lib/stripslash.c (strip_trailing_slashes): Likewise.
60132
60133         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
60134         sometimes returns a positive errno value even when it succeeds.
60135         (print_errno_message) [!LIBC]: Fall back on strerror if
60136         __strerror_r fails.
60137
60138         * lib/path-concat.c (mempcpy): Don't define if a system header defines
60139         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
60140         (longest_relative_suffix): New function.
60141         (path_concat): Use it.  Assume first argument is not NULL.
60142         Port to DOS.  Omit redundant separators.
60143         Report an error instead of returning NULL.
60144         Use mempcpy instead of memcpy.
60145         (xpath_concat): Remove: not declared or used.
60146
60147         * lib/same.h: Include <stdbool.h>
60148         (same_name): Return bool, not int.
60149         * lib/same.c (same_name): Likewise.
60150         (errno): Don't declare; we assume C89 or better now.
60151
60152         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
60153         if not already defined.
60154
60155         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
60156         * lib/dup-safer.c (errno): Likewise.
60157
60158 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
60159
60160         Merge from coreutils.
60161         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
60162         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
60163         * modules/path-concat: Don't depend on strdup.
60164
60165 2004-08-03  Simon Josefsson  <jas@extundo.com>
60166
60167         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
60168         * lib/progname.h: Don't include stdbool.h.
60169
60170 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
60171
60172         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
60173         * MODULES.html.sh (func_all_modules): Remove fatal.
60174
60175 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
60176
60177         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
60178
60179 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
60180
60181         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
60182         working.
60183
60184 2004-08-02  Simon Josefsson  <jas@extundo.com>
60185
60186         * lib/getsubopt.h: New file, with comments from Bruno Haible.
60187         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
60188         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
60189
60190 2004-08-01  Simon Josefsson  <jas@extundo.com>
60191
60192         * lib/xgetdomainname.c: Include stdlib.h, for free().
60193
60194 2004-07-19  Bruno Haible  <bruno@clisp.org>
60195
60196         * MODULES.html.sh (func_all_modules): Add dummy.
60197
60198 2004-07-16  Simon Josefsson  <jas@extundo.com>
60199
60200         * modules/dummy: New file.
60201
60202 2004-07-16  Simon Josefsson  <jas@extundo.com>
60203
60204         * lib/dummy.c: New file.
60205
60206 2004-07-16  Bruno Haible  <bruno@clisp.org>
60207
60208         * lib/backupfile.h: Add extern "C" for C++.
60209         * lib/closeout.h: Likewise.
60210         * lib/copy-file.h: Likewise.
60211         * lib/findprog.h: Likewise.
60212         * lib/full-write.h: Likewise.
60213         * lib/pathname.h: Likewise.
60214         * lib/progname.h: Likewise.
60215         * lib/stpcpy.h: Likewise.
60216         * lib/stpncpy.h: Likewise.
60217         * lib/strcase.h: Likewise.
60218         * lib/strstr.h: Likewise.
60219         * lib/xalloc.h: Likewise.
60220
60221         * lib/mbswidth.h: Add extern "C" for C++.
60222         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
60223
60224 2004-07-13  Robert Millan  <robertmh@gnu.org>
60225
60226         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
60227
60228 2004-07-09  Simon Josefsson  <jas@extundo.com>
60229
60230         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
60231         failed without this.)
60232
60233 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60234
60235         * modules/chown (Files): Add lib/fchown-stub.c, since
60236         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
60237
60238 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60239
60240         * lib/fchown-stub.c: New file.
60241
60242 2004-06-24  Jim Meyering  <jim@meyering.net>
60243
60244         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
60245
60246 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60247
60248         * modules/argz: Omit "#include".
60249
60250         * MODULES.html.sh (func_all_modules): Add calloc, to match
60251         2004-06-01 addition of calloc module.
60252
60253 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60254
60255         * m4/argz.m4: New file, which is autoupdated from libtool.
60256
60257 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60258
60259         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
60260         libtool.
60261
60262 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60263
60264         * config/srclist-update: Don't insist on "USA." before the
60265         close-comment, as libtool omits the period and puts the */ on a
60266         separate line.
60267         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
60268         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
60269
60270 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
60271
60272         * modules/argz: New file.
60273         * MODULES.html.sh (func_all_modules): Add argz.
60274
60275 2004-06-12  Jim Meyering  <jim@meyering.net>
60276         and  Paul Eggert  <eggert@cs.ucla.edu>
60277
60278         * modules/hash (Files): Add lib/xalloc.h.
60279         * modules/pipe (Depends-on): Add wait-process.
60280         * modules/stat (Depends-on): Add xalloc.
60281         * modules/userspec (Files): Add lib/userspec.h.
60282         * modules/xstrto
60283
60284         Upgrade from gettext-0.13.
60285         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
60286         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
60287         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
60288
60289 2004-06-10  Jim Meyering  <jim@meyering.net>
60290
60291         * lib/calloc.c: New file.
60292
60293 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
60294
60295         * lib/getdate.y (yylex): Allow space between sign and number.
60296         Problem reported by Dan Jacobson.
60297
60298 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
60299
60300         Merge from coreutils CVS.
60301
60302         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
60303         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
60304         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
60305         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
60306         xstrtol.m4: Fix copyright date and/or serial number.
60307
60308         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
60309         See if we need an fchown replacement.
60310         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
60311         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
60312         and use the replacement function if we detect either defect.
60313
60314         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
60315         gl_UTIMECMP.
60316
60317 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
60318         and  Jim Meyering  <jim@meyering.net>
60319
60320         Merge from coreutils CVS.
60321
60322         * lib/stat-macros.h: New file, with contents from file-type.h
60323         and coreutils' system.h.
60324         * lib/file-type.c: Include "stat-macros.h".
60325         * lib/file-type.h (file_type): Move all macro definitions to new file,
60326         stat-macros.h.
60327
60328         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
60329         Wrap old code with this conditional.
60330         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
60331         function that does not dereference symlinks.
60332         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
60333
60334         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
60335         dependency problems.
60336         (xreadlink): Accept new arg SIZE, for efficiency.
60337         All decls and uses changed.
60338         * lib/xreadlink.h: Include <stddef.h>, for size_t.
60339
60340         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
60341         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
60342
60343         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
60344         sysexits.h.
60345
60346 2004-06-01  Jim Meyering  <jim@meyering.net>
60347
60348         * m4/calloc.m4: New file.
60349
60350 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
60351
60352         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
60353         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
60354         Also, fix a typo in a diagnostic.
60355
60356 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
60357
60358         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
60359         or AC_FUNC_REALLOC.
60360
60361 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
60362
60363         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
60364         macros to be defined.
60365         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
60366         the allocator returns NULL because the requested size is zero.
60367
60368 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
60369
60370         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
60371         var.  Add comment explaining why libc still defines it.  This
60372         merges the following patch from glibc:
60373         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
60374
60375 2004-05-20  Andreas Schwab  <schwab@suse.de>
60376
60377         * m4/free.m4: Replace free if it not known to work, not the other
60378         way round.
60379
60380 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
60381
60382         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
60383         present in glibc since revision 1.1 of this file.
60384         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
60385         obstack_alignment_mask, obstack_alloc, obstack_base,
60386         obstack_blank, obstack_blank_fast, obstack_chunk_size,
60387         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
60388         obstack_grow0, obstack_init, obstack_int_grow,
60389         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
60390         obstack_next_free, obstack_object_size, obstack_ptr_grow,
60391         obstack_ptr_grow_fast, obstack_room): Remove declarations of
60392         nonexistent functions.
60393
60394 2004-05-18  Karl Berry  <karl@gnu.org>
60395
60396         * config/srclist.txt: break link for vasnprintf.c.
60397
60398 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
60399
60400         Port obstack to the AS/400, where pointers are 16 bytes wide and
60401         you cannot cast an integer to a valid pointer.  This patch is
60402         currently waiting to be integrated into glibc; see
60403         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
60404
60405         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
60406         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
60407         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
60408         (struct obstack): temp member is now a union of a pointer and
60409         an integer, instead of an integer.  All integer uses changed.
60410         This does not affect the physical layout of struct obstack,
60411         except on hosts (like the AS/400) where the size or alignment of
60412         void * is greater than that of ptrdiff_t.
60413         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
60414         __STDC__)]: Store temporary in pointer member of union, not
60415         integer member.
60416         * lib/obstack.c: Include <stddef.h>, for offsetof.
60417         (struct fooalign): Remove; it doesn't need a name.
60418         (union fooround): Change double to long double, and add void *.
60419         (DEFAULT_ALIGNMENT): Use offsetof to compute.
60420         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
60421         not a macro.  Hence the values are always int; so remove all
60422         casts-to-int in uses.
60423
60424 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
60425
60426         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
60427         we can get this patch merged into glibc.
60428
60429 2004-05-17  Derek R. Price  <derek@ximbiot.com>
60430             Paul Eggert  <eggert@cs.ucla.edu>
60431
60432         * m4/argp: Depend on alloca.
60433
60434 2004-05-17  Derek R. Price  <derek@ximbiot.com>
60435             Paul Eggert  <eggert@cs.ucla.edu>
60436
60437         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
60438         freecoding.
60439
60440 2004-05-17  Bruno Haible  <bruno@clisp.org>
60441
60442         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
60443         precision that consists of a '.' followed by an empty digit string.
60444         Patch by Tor Lillqvist <tml@iki.fi>.
60445
60446 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
60447
60448         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
60449         for backward compatibility with older code.  We need our own
60450         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
60451         it under some other name, and our alloca.h will define it.
60452
60453 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
60454             Derek Price  <derek@ximbiot.com>
60455
60456         * lib/alloca.c: Include <alloca.h>, to get our interface.
60457         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
60458         include <alloca.h> first.  Use C89 prototype for alloca; this
60459         requires including <stddef.h> for size_t.  Use extern "C" if C++.
60460         Use #elif for simplicity, since we can assume C89 now.
60461         Don't try to source the system alloca.h since it will not be found
60462         and to prevent recursively including its replacement.
60463         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
60464         * lib/regex.c: Likewise.
60465
60466 2004-05-16  Derek Price  <derek@ximbiot.com>
60467             Paul Eggert  <eggert@cs.ucla.edu>
60468
60469         getline cleanup.  This changes the getndelim2 API: both order of
60470         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
60471         no delimiter).
60472
60473         * lib/getline.c: Don't include stddef.h or stdio.h, since our
60474         interface does that.
60475         (getline): Always use getdelim, so that we don't have two
60476         copies of this code.
60477         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
60478         if available.
60479         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
60480         (GETNDELIM2_MAXIMUM): New macro.
60481         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
60482         instead of the old practice of delim2==0.  All callers changed.
60483         Return -1 on overflow, instead of returning junk.
60484         Do not set *linesize unless allocation succeeds.
60485         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
60486         that we include sys/types.h.
60487         * lib/getnline.h: Likewise.
60488         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
60489         (getndelim2): Reorder arguments.
60490         * lib/getnline.c (getnline, getndelim):
60491         Don't discard the NMAX argument.
60492         (getnline): Invoke getndelim, to avoid code duplication.
60493         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
60494         of (size_t) -1 by callers of the getnline family.
60495
60496 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
60497
60498         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
60499         Check for gettimeofday.
60500         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
60501         Check for settimeofday, stime.
60502
60503 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
60504
60505         * lib/nanosleep.c (suspended): Change its type from int to
60506         sig_atomic_t volatile.
60507         (first_call): Make it private to rpl_nanosleep, and have it
60508         be zero initially as that's a bit faster.
60509         (my_usleep): Round up fractional times instead of truncating them,
60510         as this is the usual meaning for 'sleep'.
60511
60512         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
60513         doesn't work.
60514         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
60515         (ENOSYS): Define if not defined.
60516         (settime): Fall back on stime if it exists and settimeofday fails.
60517         But don't bother with fallbacks if a method fails with errno == EPERM.
60518
60519 2004-05-11  Jim Meyering  <jim@meyering.net>
60520
60521         Prior to this change, the save_cwd caller required read access to the
60522         current directory on most systems (ones with the fchdir function).
60523
60524         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
60525         fails, try write-only, and finally, resort to using xgetcwd.
60526
60527 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
60528
60529         * lib/obstack.c, obstack.h: Import changes from libc.
60530
60531 2004-04-28  Bruno Haible  <bruno@clisp.org>
60532
60533         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
60534         also implicitly appends .exe to executables.
60535         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
60536         accepts Windows pathnames.
60537         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
60538         Treat Cygwin like Windows, since it now accepts Windows pathnames.
60539         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
60540         Treat Cygwin like Windows, since it now accepts Windows pathnames.
60541         Reported by Derek Robert Price <derek@ximbiot.com>.
60542
60543 2004-04-21  Karl Berry  <karl@gnu.org>
60544
60545         * config/srclist.txt (localcharset.c): break sync.
60546
60547 2004-04-20  Paul Eggert  <eggert@twinsun.com>
60548
60549         * m4/host-os.m4: Add a copyright notice.
60550
60551 2004-04-20  Jim Meyering  <jim@meyering.net>
60552
60553         Change UTILS_ to gl_ in AC_DEFINE'd names.
60554         Change utils_- and jm_-prefixed variables, too.
60555         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
60556         UTILS_FUNC_MKDIR_TRAILING_SLASH.
60557         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
60558
60559         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
60560         Don't emit trailing blanks.
60561         Also rename jm_-prefixed variables to have gl_ prefix.
60562
60563         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
60564         Also rename jm_-prefixed variables to have gl_ prefix.
60565
60566         * m4/jm-macros.m4: Reflect the renamings.
60567         * m4/prereq.m4: Likewise.
60568
60569 2004-04-20  Jim Meyering  <jim@meyering.net>
60570
60571         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
60572         memory.
60573
60574 2004-04-20  Jim Meyering  <jim@meyering.net>
60575             Bruno Haible  <bruno@clisp.org>
60576
60577         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
60578         memory when realloc fails.
60579
60580 2004-04-19  Jim Meyering  <jim@meyering.net>
60581
60582         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
60583         now that readutmp.c may call `free (0)'.
60584
60585 2004-04-19  Bruno Haible  <bruno@clisp.org>
60586
60587         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
60588         * m4/inttypes_h.m4: Likewise.
60589         * m4/stdint_h.m4: Likewise.
60590         * m4/intmax_t.m4: Likewise.
60591         * m4/uintmax_t.m4: Likewise.
60592
60593 2004-04-18  Jim Meyering  <jim@meyering.net>
60594
60595         * m4/prereq.m4: Don't forbid jm_ prefix.
60596
60597         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
60598         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
60599         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
60600         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
60601         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
60602         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
60603         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
60604         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
60605         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
60606         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
60607         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
60608         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
60609         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
60610         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
60611         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
60612         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
60613         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
60614         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
60615         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
60616
60617 2004-04-18  Jim Meyering  <jim@meyering.net>
60618
60619         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
60620         failure, don't leak memory and do call END_UTMP_ENT.
60621
60622 2004-04-16  Jim Meyering  <jim@meyering.net>
60623
60624         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
60625         coreutils' stat program.
60626         (gl_PREREQ): Don't require jm_PREREQ_STAT.
60627
60628 2004-04-11  Paul Eggert  <eggert@twinsun.com>
60629
60630         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
60631         C89.
60632         (CHAR_BIT): Remove, since we assume C89.
60633         Include <stdint.h> if available, as per current Autoconf CVS advice.
60634
60635 2004-03-31  Jim Meyering  <jim@meyering.net>
60636
60637         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
60638         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
60639         * m4/xalloc.m4: Likewise.
60640
60641 2004-03-30  Paul Eggert  <eggert@twinsun.com>
60642
60643         Merge from coreutils.
60644
60645         * m4/inttostr.m4: New file.
60646         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
60647         Require AM_STDBOOL_H and gl_TIMESPEC instead.
60648         Require gl_CLOCK_TIME.
60649         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
60650
60651 2004-03-30  Paul Eggert  <eggert@twinsun.com>
60652
60653         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
60654         not bool, to be more consistent with Unix conventions.
60655         Suggested by Bruno Haible.
60656
60657         Merge from coreutils.
60658
60659         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
60660         * lib/umaxtostr.c: New files.
60661
60662         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
60663         the usual <time.h> dance.
60664         (get_date): Change signature to support fractional time stamps.
60665         All callers changed.
60666         * lib/getdate.y: Include "getdate.h" first, as we can now
60667         assume C89 and don't need to worry about 'const'.
60668         Similarly, include "unlocked-io.h" near start, not in middle.
60669         Include <limits.h>.
60670         (textint.value): Use long int rather than int.
60671         (textint.digits): Use size_t rather than int.
60672         (BILLION, LOG10_BILLION): New constants.
60673         (parser_control): New member rel_ns.  Members day_ordinal,
60674         time_zone, month, day, hour, minutes, rel_year, rel_month,
60675         rel_day, rel_hour, rel_minutes, rel_seconds
60676         are now long int, not int.  Member seconds is now struct timespec,
60677         not int.  New member timespec_seen.  Members dates_seen, days_seen,
60678         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
60679         not int.
60680         (%union.intval): Now long int, not int.
60681         New member timespec.
60682         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
60683         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
60684         (spec): Now is a timespec or an item list.
60685         (timespec, items): New nonterminals.
60686         (time, rel, relunit, number, get_date):
60687         Add support for fractional seconds.
60688         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
60689         (gmtime, localtime, mktime): Remove decls; not needed with C89.
60690         (to_hour): First arg is now long int, not int.
60691         (to_year): Returns long int, not int.
60692         Don't treat year -70 like 70.
60693         (tm_diff): Returns long int, not int.
60694         (lookup_word): Use bool instead of int when appropriate.
60695         (yylex): Use size_t for count, not int.
60696         Detect overflow when parsing large integer constants.
60697         Add support for fractions.
60698         (get_date): Make pointers 'const' if possible.
60699         Use more-portable code to detect integer overflow.
60700         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
60701         Don't use ctime; it's not reliable if the year has >4 digits.
60702
60703         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
60704         This is for compatibility with BSD.
60705
60706         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
60707         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
60708         From coreutils' system.h.
60709
60710         * lib/userspec.c: Don't include "posixver.h".
60711         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
60712         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
60713         compatible extension.  Simplify code by removing a boolean int
60714         that was always nonzero if a string was nonnull.
60715
60716 2004-03-30  Jim Meyering  <jim@meyering.net>
60717
60718         Merge from coreutils.
60719
60720         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
60721         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
60722         on some systems one must include <grp.h> before it.
60723         Reported by Christian Krackowizer.
60724
60725 2004-03-30  Jim Meyering  <jim@meyering.net>
60726
60727         Merge from coreutils.
60728
60729         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
60730
60731         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
60732         an empty input stream.
60733
60734         * lib/readtokens.c: Include <stdbool.h>.
60735         (readtoken): Use `size_t' rather than int/long.
60736         All callers adjusted.
60737         Use `bool' rather than `int' where appropriate.
60738         Use memset rather than an explicit loop.
60739         Use x2nrealloc rather than xrealloc.
60740         Allow the use of `\0' as a delimiter.
60741         (readtokens): Likewise.
60742         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
60743
60744 2004-03-30  Jim Meyering  <jim@meyering.net>
60745
60746         * m4/realloc.m4: Remove file, since now it does no more than
60747         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
60748         the `configure.ac' section of module/realloc.
60749         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
60750
60751 2004-03-30  Bruno Haible  <bruno@clisp.org>
60752
60753         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
60754         nonnull.
60755
60756 2004-03-29  Paul Eggert  <eggert@twinsun.com>
60757
60758         Merge changes to getloadavg.c from coreutils and Emacs.
60759
60760         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
60761         Define to an expression, not to the empty string.
60762         Include cloexec.h and xalloc.h.
60763         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
60764         Use set_cloexec_flag rather than rolling our own.
60765         * lib/cloexec.c, lib/cloexec.h: New files.
60766
60767 2004-03-29  Paul Eggert  <eggert@twinsun.com>
60768
60769         * m4/cloexec.m4: New file.
60770
60771 2004-03-18  Paul Eggert  <eggert@twinsun.com>
60772
60773         * lib/getopt.h: Sync with libc CVS.
60774
60775 2004-03-18  Paul Eggert  <eggert@twinsun.com>
60776             Bruno Haible  <bruno@clisp.org>
60777
60778         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
60779         mbswidth.
60780
60781 2004-03-18  Paul Eggert  <eggert@twinsun.com>
60782             Bruno Haible  <bruno@clisp.org>
60783
60784         * lib/mbswidth.h: Include <wchar.h> only if
60785         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
60786         <wchar.h>.
60787         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
60788
60789 2004-03-09  Paul Eggert  <eggert@twinsun.com>
60790
60791         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
60792         Sync with libc CVS.
60793         * lib/getopt_int.h: New file, also synced from libc.
60794
60795 2004-03-09  Paul Eggert  <eggert@twinsun.com>
60796
60797         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
60798         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
60799         Bring back getopt.c, getopt.h, getopt1.c.
60800
60801 2004-03-07  Paul Eggert  <eggert@twinsun.com>
60802
60803         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
60804         All uses changed.  Check for sa_sigaction member; this fixes
60805         a bug first reported by Jason Andrade in
60806         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
60807
60808 2004-03-07  Paul Eggert  <eggert@twinsun.com>
60809
60810         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
60811         '#if' expressions.  Unlike the code it replaces, it does not
60812         depend on (defined _SC_PAGESIZE).  However, it does depend on
60813         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
60814         first reported by Jason Andrade in
60815         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
60816
60817 2004-02-25  Simon Josefsson  <jas@extundo.com>
60818
60819         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
60820
60821 2004-02-25  Simon Josefsson  <jas@extundo.com>
60822
60823         * lib/strdup.h: New file.
60824         * lib/strdup.c: Include it.
60825         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
60826         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
60827
60828 2004-02-23  Karl Berry  <karl@gnu.org>
60829
60830         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
60831         (from fencepost.gnu.org:/gd/gnuorg).
60832
60833 2004-02-23  Karl Berry  <karl@gnu.org>
60834
60835         * config/srclistvars.sh (GNUORG) [karl]: redefine.
60836         * config/srclist.txt: add maintain/standards documents.
60837
60838 2004-02-18  Bruno Haible  <bruno@clisp.org>
60839
60840         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
60841         Reported by Derek Robert Price <derek@ximbiot.com>.
60842
60843 2004-02-16  Karl Berry  <karl@gnu.org>
60844
60845         * config/mkinstalldirs, install-sh: update from automake.
60846
60847 2004-02-06  Karl Berry  <karl@gnu.org>
60848
60849         * m4/po.m4: update from gettext 0.14.1.
60850
60851 2004-02-06  Karl Berry  <karl@gnu.org>
60852
60853         * lib/config.charset: update from gettext 0.14.1.
60854
60855 2004-02-05  Paul Eggert  <eggert@twinsun.com>
60856
60857         Add comments and code, prompted by suggestions from Bruno Haible
60858         for sh-quote.
60859         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
60860         describing the enum quoting_style values.
60861         * lib/quotearg.c (quotearg_alloc): New function.
60862         (quotearg_buffer_restyled): Treat lone { and } as special.
60863         Treat = as special.  Work around bug with older shells
60864         that "see" a '\' that is really the 2nd byte of a multibyte char.
60865         Quote empty string with shell_quoting_style.
60866
60867 2004-02-03  Bruno Haible  <bruno@clisp.org>
60868
60869         * m4/pipe.m4: New file, from GNU gettext.
60870
60871 2004-02-03  Bruno Haible  <bruno@clisp.org>
60872
60873         * lib/pipe.h: New file, from GNU gettext.
60874         * lib/pipe.c: New file, from GNU gettext.
60875
60876 2004-01-27  Bruno Haible  <bruno@clisp.org>
60877
60878         * m4/execute.m4: New file, from GNU gettext.
60879
60880 2004-01-27  Bruno Haible  <bruno@clisp.org>
60881
60882         * lib/execute.h: New file, from GNU gettext.
60883         * lib/execute.c: New file, from GNU gettext.
60884         * lib/w32spawn.h: New file, from GNU gettext.
60885
60886 2004-01-24  Paul Eggert  <eggert@twinsun.com>
60887
60888         Merge from diffutils.
60889
60890         * lib/file-type.c (file_type): Add typed memory objects.
60891         * lib/file-type.h (S_TYPEISTMO): New macro.
60892
60893         * lib/c-stack.h (c_stack_action): Remove argv argument.
60894         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
60895         (die): Don't calculate message unless segv_action returns.
60896         (get_stack_location, min_address_from_argv, max_address_from_argv,
60897         volatile stack_base, volatile_stack_size): Remove.
60898         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
60899         that every segmentation violation is a stack overflow.  (Ouch!)
60900         See Debian bug 136249 (still outstanding) for more info about why
60901         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
60902
60903 2004-01-24  Paul Eggert  <eggert@twinsun.com>
60904
60905         Exit-status fix from coreutils.
60906
60907         Use exit_failure consistently in place of EXIT_FAILURE,
60908         so that program exit statuses are consistent on failure.
60909
60910         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
60911         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
60912         * lib/argmatch.h: Comment fix to match the above.
60913         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
60914         Now a macro referring to exit_failure, instead of a separate
60915         variable.  Include "exitfail.h" to get it.
60916         * lib/xstrtol.h: Include "exitfail.h".
60917         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
60918
60919         * lib/long-options.c (parse_long_options): Use prototype
60920         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
60921         for clarity.
60922
60923 2004-01-21  Jim Meyering  <jim@meyering.net>
60924
60925         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
60926         so as not to conflict with a different-sized __mktime_internal
60927         function in GNU libc.
60928         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
60929         Problem building statically-linked `ls' reported by Michael Brunnbauer.
60930
60931 2004-01-20  Karl Berry  <karl@gnu.org>
60932
60933         * config/config.guess: update from config.
60934
60935         * config/srclistvars.sh: GNUWWWLICENSES for karl.
60936
60937 2004-01-20  Bruno Haible  <bruno@clisp.org>
60938
60939         Safer stack allocation.
60940         * lib/setenv.c: Include allocsa.h.
60941         (alloca): Remove fallback definition.
60942         (freea): Remove macro.
60943         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
60944         instead of freea.
60945
60946 2004-01-20  Bruno Haible  <bruno@clisp.org>
60947
60948         * m4/eealloc.m4: New file, from GNU gettext.
60949
60950 2004-01-20  Bruno Haible  <bruno@clisp.org>
60951
60952         * m4/allocsa.m4: New file, from GNU gettext.
60953
60954 2004-01-20  Bruno Haible  <bruno@clisp.org>
60955
60956         * lib/xallocsa.h: New file, from GNU gettext.
60957         * lib/xallocsa.c: New file, from GNU gettext.
60958
60959 2004-01-20  Bruno Haible  <bruno@clisp.org>
60960
60961         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
60962
60963 2004-01-20  Bruno Haible  <bruno@clisp.org>
60964
60965         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
60966         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
60967         specially.
60968
60969 2004-01-20  Bruno Haible  <bruno@clisp.org>
60970
60971         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
60972         patch.
60973
60974 2004-01-20  Bruno Haible  <bruno@clisp.org>
60975
60976         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
60977
60978 2004-01-20  Bruno Haible  <bruno@clisp.org>
60979
60980         * lib/eealloc.h: New file.
60981
60982 2004-01-20  Bruno Haible  <bruno@clisp.org>
60983
60984         * lib/binary-io.h: Avoid warnings on Cygwin.
60985
60986 2004-01-20  Bruno Haible  <bruno@clisp.org>
60987
60988         * lib/allocsa.h: New file, from GNU gettext.
60989         * lib/allocsa.c: New file, from GNU gettext.
60990
60991 2004-01-18  Karl Berry  <karl@gnu.org>
60992
60993         * doc/gpl.texi, doc/lgpl.texi: new files.
60994
60995 2004-01-18  Karl Berry  <karl@gnu.org>
60996
60997         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
60998         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
60999
61000 2004-01-15  Paul Eggert  <eggert@twinsun.com>
61001
61002         Merge from coreutils.
61003
61004         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
61005         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
61006         (gl_DEFAULT_POSIX2_VERSION): Move
61007         the documentation from 'configure' into 'config.hin',
61008         so that 'configure --help' isn't burdened by it and
61009         we don't have to worry about its formatting there.
61010         Reword the documentation so that it's more succinct
61011         and can be run together into a single paragraph.
61012         * m4/same.m4 (gl_SAME): Check for pathconf.
61013
61014 2004-01-15  Paul Eggert  <eggert@twinsun.com>
61015
61016         Merge from coreutils.
61017
61018         * lib/posixver.c: Include posixver.h.
61019
61020         * lib/same.c: Include <stdbool.h>, <limits.h>.
61021         (_POSIX_NAME_MAX): Define if not defined.
61022         (MIN): New macro.
61023         (same_name): If file names are silently truncated, report
61024         that the file names are the same if they are the same after
61025         the silent truncation.
61026
61027         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
61028         conversion function.
61029         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
61030         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
61031         longer needed.
61032
61033 2004-01-15  Jim Meyering  <jim@meyering.net>
61034
61035         Merge from coreutils.
61036
61037         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
61038         if no library is required.
61039         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
61040         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
61041         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
61042         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
61043         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
61044         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
61045         value, $ac_cv_search_crypt, if it's "none required".
61046         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
61047         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
61048         not gl_FUNC_GETLOADAVG.
61049         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
61050         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
61051
61052 2004-01-15  Jim Meyering  <jim@meyering.net>
61053
61054         Merge from coreutils.
61055
61056         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
61057         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
61058         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
61059
61060         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
61061         optional configure-time default.
61062
61063         * lib/version-etc.c (version_etc_copyright): Update copyright date.
61064
61065         * lib/xreadlink.c (xreadlink): Correct outdated comment.
61066
61067 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
61068
61069         Merge from coreutils.
61070
61071         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
61072         value, $ac_cv_search_nanosleep, if it's "none required".
61073
61074 2004-01-14  Paul Eggert  <eggert@twinsun.com>
61075
61076         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
61077         with like-named macro in fnmatch.c.
61078         (EXT): Use an internal constant instead.
61079
61080         Merge fnmatch patches from glibc.
61081         * lib/fnmatch.c (mbsinit): Remove define.
61082         Add libc_hidden_ver (__fnmatch, fnmatch).
61083         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
61084         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
61085
61086 2004-01-14  Karl Berry  <karl@gnu.org>
61087
61088         * config/install-sh: update from automake.
61089
61090 2004-01-13  Karl Berry  <karl@gnu.org>
61091
61092         * config/install-sh: update from automake.
61093
61094 2004-01-09  Karl Berry  <karl@gnu.org>
61095
61096         * config/install-sh: update from automake.
61097
61098 2004-01-05  Karl Berry  <karl@gnu.org>
61099
61100         * config/config.{sub,guess}: update from config.
61101
61102 2003-12-31  Karl Berry  <karl@gnu.org>
61103
61104         * config/depcomp: update from automake.
61105
61106 2003-12-14  Karl Berry  <karl@gnu.org>
61107
61108         * lib/config.charset: update from gettext-runtime.
61109
61110 2003-12-03  Paul Eggert  <eggert@twinsun.com>
61111
61112         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
61113         Bug reported by Alfred M. Szmidt.
61114
61115 2003-12-03  Bruno Haible  <bruno@clisp.org>
61116
61117         * m4/gettext.m4: Upgrade from gettext-0.13.
61118         * m4/po.m4: Upgrade from gettext-0.13.
61119         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
61120         * m4/intmax.m4: New file, from gettext-0.13.
61121         * m4/printf-posix.m4: New file, from gettext-0.13.
61122
61123 2003-11-29  Karl Berry  <karl@gnu.org>
61124
61125         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
61126
61127 2003-11-25  Paul Eggert  <eggert@twinsun.com>
61128             Bruno Haible  <bruno@clisp.org>
61129
61130         * lib/printf-parse.h: Don't include sys/types.h.
61131         (ARG_NONE): New macro.
61132         (char_directive): Change type of *arg_index fields to size_t.
61133         * lib/printf-parse.c: Don't include sys/types.h.
61134         (SSIZE_MAX): Remove macro.
61135         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
61136         Remove unnecessary overflow check.
61137         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
61138         fields.
61139
61140 2003-11-25  Bruno Haible  <bruno@clisp.org>
61141
61142         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
61143
61144 2003-11-25  Bruno Haible  <bruno@clisp.org>
61145
61146         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
61147         gt_TYPE_SSIZE_T.
61148
61149 2003-11-24  Paul Eggert  <eggert@twinsun.com>
61150
61151         * modules/alloca: Remove dependency on xalloc.
61152
61153 2003-11-24  Paul Eggert  <eggert@twinsun.com>
61154
61155         * lib/alloca.c: Remove dependency on xalloc module.
61156         (xalloc_die): Remove.
61157         (memory_full) [!defined emacs]: New macro.
61158         [!defined emacs]: Don't include xalloc.h.
61159         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
61160         address arithmetic overflows.  Change datatypes a bit to avoid
61161         unnecessary casts.
61162
61163 2003-11-22  Jim Meyering  <jim@meyering.net>
61164
61165         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
61166         s/size/size_t/.
61167
61168 2003-11-21  Karl Berry  <karl@gnu.org>
61169
61170         * config/config.{sub,guess}: update from config.
61171
61172 2003-11-18  Karl Berry  <karl@gnu.org>
61173
61174         * config/config.{sub,guess}: update from config.
61175
61176         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
61177
61178 2003-11-17  Paul Eggert  <eggert@twinsun.com>
61179
61180         * README: Mention that S+T cannot overflow if S is the size of
61181         an existing object and T is sufficiently small.
61182
61183 2003-11-17  Jim Meyering  <jim@meyering.net>
61184
61185         On systems without utime and without a utimes function capable of
61186         dealing with a NULL struct utimbuf* argument, this utime replacement
61187         could -- in unusual circumstances -- leak a file descriptor.
61188         * lib/utime.c: Include <unistd.h> and <errno.h>.
61189         (utime_null): Be sure to close `fd' and to preserve errno.
61190         Reported by Geoff Collyer via Arnold Robbins.
61191
61192 2003-11-17  Bruno Haible  <bruno@clisp.org>
61193
61194         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
61195         (Depends-on): Add xsize.
61196
61197 2003-11-17  Bruno Haible  <bruno@clisp.org>
61198
61199         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
61200
61201 2003-11-17  Bruno Haible  <bruno@clisp.org>
61202
61203         * lib/vasnprintf.c (alloca): Remove fallback definition.
61204         (freea): Remove definition.
61205         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
61206         Reported by Paul Eggert.
61207
61208 2003-11-16  Paul Eggert  <eggert@twinsun.com>
61209             Bruno Haible  <bruno@clisp.org>
61210
61211         Protect against address arithmetic overflow.
61212         * lib/printf-args.h: Include stddef.h.
61213         (arguments): Change type of field 'count' to size_t.
61214         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
61215         'unsigned int' where appropriate.
61216         * lib/printf-parse.h: Include sys/types.h.
61217         (char_directive): Change type of *arg_index fields to ssize_t.
61218         (char_directives): Change type of fields 'count', max_*_length to
61219         size_t.
61220         * lib/printf-parse.c: Include sys/types.h and xsize.h.
61221         (SSIZE_MAX): Define fallback value.
61222         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
61223         instead of 'int' where appropriate. Check a_allocated, d_allocated
61224         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
61225         * lib/vasnprintf.c: Include xsize.h.
61226         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
61227         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
61228         overflow. Avoid wraparound when converting a width or precision from
61229         decimal to binary.
61230
61231 2003-11-16  Bruno Haible  <bruno@clisp.org>
61232
61233         Update from GNU gettext.
61234         * lib/printf-parse.c: Generalize to it can be compiled for wide
61235         strings.
61236         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
61237         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
61238         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
61239         SNPRINTF): New macros.
61240         Don't include <alloca.h> if the file is used inside libintl.
61241         (local_wcslen): New function, for Solaris 2.5.1.
61242         (VASNPRINTF): Use it instead of wcslen.
61243
61244 2003-11-16  Bruno Haible  <bruno@clisp.org>
61245
61246         * lib/xsize.h (xmax): New function.
61247         (xsum, xsum3, xsum4): Declare as "pure" functions.
61248
61249 2003-11-12  Paul Eggert  <eggert@twinsun.com>
61250
61251         * modules/xalloc (Files): Undo latest change, since xalloc.h
61252         no longer needs SIZE_MAX or PTRDIFF_MAX.
61253
61254 2003-11-12  Paul Eggert  <eggert@twinsun.com>
61255
61256         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
61257         gl_PTRDIFF_MAX.
61258
61259 2003-11-12  Paul Eggert  <eggert@twinsun.com>
61260
61261         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
61262         "return", to pacify some unknown compiler.  Problem reported
61263         by Joerg Schilling.
61264
61265 2003-11-12  Paul Eggert  <eggert@twinsun.com>
61266
61267         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
61268         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
61269         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
61270         heuristic is just as accurate as far as we know, and it removes a
61271         dependency on size_max.m4 and ptrdiff_max.m4.
61272
61273 2003-11-11  Bruno Haible  <bruno@clisp.org>
61274
61275         * modules/xsize (Files): Add m4/size_max.m4.
61276         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
61277
61278 2003-11-11  Bruno Haible  <bruno@clisp.org>
61279
61280         * m4/size_max.m4: New file.
61281         * m4/ptrdiff_max.m4: New file.
61282         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
61283         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
61284         (gl_XALLOC): Invoke it.
61285
61286 2003-11-11  Bruno Haible  <bruno@clisp.org>
61287
61288         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
61289         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
61290         defined.
61291
61292 2003-11-10  Paul Eggert  <eggert@twinsun.com>
61293
61294         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
61295         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
61296         rejected some allocations of exactly SIZE_MAX - 2 bytes.
61297         From Bruno Haible.
61298         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
61299         not (size_t) -1, since it's defined here.
61300
61301 2003-11-09  Karl Berry  <karl@gnu.org>
61302
61303         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
61304
61305 2003-11-06  Paul Eggert  <eggert@twinsun.com>
61306
61307         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
61308         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
61309         Reject sizes of exactly SIZE_MAX bytes.
61310         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
61311         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
61312
61313 2003-11-05  Bruno Haible  <bruno@clisp.org>
61314
61315         * lib/xsize.h: Include limits.h, to avoid a possible collision with
61316         SIZE_MAX defined in <limits.h> on Solaris.
61317
61318 2003-11-04  Jim Meyering  <jim@meyering.net>
61319
61320         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
61321         variable names, rather than @VAR@.
61322         * modules/poll: Likewise.
61323
61324 2003-11-04  Bruno Haible  <bruno@clisp.org>
61325
61326         * modules/xsize: New file.
61327         * modules/linebreak: Depend on xsize.
61328         * MODULES.html.sh (func_all_modules): Add xsize.
61329
61330 2003-11-04  Bruno Haible  <bruno@clisp.org>
61331
61332         * m4/xsize.m4: New file.
61333
61334 2003-11-04  Bruno Haible  <bruno@clisp.org>
61335
61336         * lib/xsize.h: New file.
61337         * lib/linebreak.c: Include xsize.h.
61338         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
61339         argument for overflow.
61340         Suggested by Paul Eggert.
61341
61342 2003-11-03  Karl Berry  <karl@gnu.org>
61343
61344         * config/config.{guess,sub}: update from config.
61345
61346 2003-11-03  Jim Meyering  <jim@meyering.net>
61347
61348         * modules/userspec (lib_SOURCES): Add userspec.h.
61349         (Include): Add "userspec.h".
61350         Improve description.
61351
61352 2003-11-03  Jim Meyering  <jim@meyering.net>
61353
61354         * lib/userspec.c: Include "userspec.h".
61355         * lib/userspec.h: New file.
61356
61357 2003-11-03  Bruno Haible  <bruno@clisp.org>
61358
61359         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
61360
61361 2003-11-03  Bruno Haible  <bruno@clisp.org>
61362
61363         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
61364         available, to avoid (extremely rare) race condition.
61365         Suggested by Paul Eggert.
61366
61367 2003-11-02  Karl Berry  <karl@gnu.org>
61368
61369         * config/srclist.txt (vasprintf.c): sync broken, sigh.
61370
61371 2003-10-31  Paul Eggert  <eggert@twinsun.com>
61372
61373         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
61374         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
61375         (read_filesystem_list): Set and use me_type_malloced.
61376         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
61377         whatever the type happens to be), for brevity and consistency.
61378         Check for size calculation overflow on Alphas running OSF/1.
61379
61380 2003-10-31  Jim Meyering  <jim@meyering.net>
61381
61382         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
61383
61384         * lib/linebuffer.c: Include <string.h> for declaration of memset.
61385
61386 2003-10-30  Paul Eggert  <eggert@twinsun.com>
61387             Bruno Haible  <bruno@clisp.org>
61388
61389         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
61390         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
61391
61392 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
61393
61394         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
61395         netbsd*-gnu*.  Suggested by Robert Millan.
61396
61397 2003-10-29  Paul Eggert  <eggert@twinsun.com>
61398
61399         * modules/group-member: Depend on stdbool.
61400
61401 2003-10-29  Paul Eggert  <eggert@twinsun.com>
61402
61403         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
61404
61405 2003-10-29  Paul Eggert  <eggert@twinsun.com>
61406
61407         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
61408         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
61409         after the 'gnu' in these cases.  This fixes some bugs in the
61410         previous change, and is based on suggestions by Robert Millan.
61411
61412 2003-10-29  Paul Eggert  <eggert@twinsun.com>
61413
61414         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
61415         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
61416         no longer needed.
61417         * lib/quotearg.c (quotearg_n_options): Use it.
61418         * lib/group-member.c: Include <stdbool.h>.
61419         (free_group_info): Arg is now const *; don't free arg.
61420         (get_group_info): Now returns bool and accepts struct group_info *,
61421         rather than returning a malloc'ed struct group_info *.
61422         All uses changed.  Check for overflow in internal size calculation.
61423
61424         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
61425         rather than xmalloc/xrealloc.
61426         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
61427         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
61428         conformance bug: the old code used a pointer after freeing the
61429         storage that it addressed.
61430         * lib/hash.c (hash_initialize): Simplify the code by using
61431         xalloc_oversized rather than doing it by hand.
61432         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
61433         the buffer preserved.  Use free and xmalloc instead.
61434         * lib/quotearg.c (quotearg_n_options): Likewise.
61435         Use a simpler test for size overflow.  Don't use xalloc_oversized
61436         because unsigned int might be wider than size_t (!); this suggests
61437         that we should switch from unsigned int to size_t for slot numbers.
61438
61439 2003-10-28  Paul Eggert  <eggert@twinsun.com>
61440
61441         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
61442         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
61443         NetBSD kernels.  Requested by Richard Stallman.
61444
61445 2003-10-27  Paul Eggert  <eggert@twinsun.com>
61446
61447         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
61448         to allocate the returned structure.  Do not allocate a subarray,
61449         as x2nrealloc will do that.
61450         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
61451         instead of xnrealloc.
61452         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
61453
61454 2003-10-27  Bruno Haible  <bruno@clisp.org>
61455
61456         * lib/stdbool_.h: Better support for BeOS.
61457
61458 2003-10-26  Paul Eggert  <eggert@twinsun.com>
61459
61460         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
61461         now uses inline.
61462
61463 2003-10-26  Paul Eggert  <eggert@twinsun.com>
61464
61465         * lib/xalloc.h (xalloc_oversized): New static inline function, for
61466         callers that want to do their own size-overflow checking.  Include
61467         <stdbool.h>, since xalloc_oversized returns bool.
61468         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
61469         to use xalloc_oversized.
61470
61471         Add two functions x2realloc, x2nrealloc, for programs that grow
61472         arrays dynamically by doubling their sizes.
61473         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
61474         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
61475         New functions.
61476
61477         Port to C99 semantics for 'inline' of external functions.
61478         Bug reported by Bruno Haible.
61479         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
61480         with the old contents of xnmalloc.
61481         (xnmalloc, xmalloc): Use it.
61482         (xnrealloc_inline): New static inline function,
61483         with the old contents of xnrealloc.
61484         (xnrealloc, xrealloc): Use it.
61485
61486         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
61487         that.
61488
61489 2003-10-26  Karl Berry  <karl@gnu.org>
61490
61491         * config/srclist.txt (COPYING.DOC): no longer available from
61492         /gd/gnuorg; don't know where the ultimate source is.
61493
61494 2003-10-25  Paul Eggert  <eggert@twinsun.com>
61495
61496         Fix several address-calculation bugs in the hash modules,
61497         plus some minor code cleanup.
61498
61499         * lib/hash.h: Include <stdbool.h>, for bool.
61500         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
61501         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
61502         hash_get_n_entries, hash_get_max_bucket_length,
61503         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
61504         hash_rehash): Use size_t rather than unsigned.
61505         * lib/hash.c (struct hash_table, hash_get_n_buckets,
61506         hash_get_n_buckets_used, hash_get_n_entries,
61507         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
61508         hash_get_entries, hash_do_for_each, hash_string, is_prime,
61509         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
61510         Likewise.
61511         (SIZE_MAX): Define if not defined.
61512         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
61513         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
61514         hash_print):
61515         Use const * when possible.
61516         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
61517         (check_tuning): Fix bug: if tuning parameters were very close to
61518         0 or 1, rounding errors could have caused subscript violations.
61519         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
61520         (hash_initialize): Add 'fail:' label
61521         to free table and return NULL, and use it to simplify code.
61522         Use calloc rather than clearing the storage ourself.
61523         (hash_initialize, hash_rehash): Check for arithmetic overflow in
61524         buffer size calculations.
61525         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
61526         Include <stddef.h>, for size_t.
61527         * lib/hash-pjw.c (hash_pjw): Likewise.
61528         Switch to method described by Bruno Haible.
61529         Include <limits.h>, for CHAR_BIT.
61530         (SIZE_BITS): New macro.
61531
61532 2003-10-23  Paul Eggert  <eggert@twinsun.com>
61533
61534         * m4/getline.m4 (AM_FUNC_GETLINE):
61535         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
61536         hosts.  Problem reported by Derek Robert Price in
61537         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
61538         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
61539         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
61540
61541 2003-10-21  Paul Eggert  <eggert@twinsun.com>
61542
61543         * lib/getndelim2.c (getndelim2): When size calculation overflows,
61544         ceiling the allocation at NMAX bytes rather than silently
61545         discarding input bytes before NMAX is reached.  This makes
61546         a difference only if NMAX exceeds SIZE_MAX / 2.
61547
61548         * lib/obstack.c: Merge from glibc.
61549         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
61550         Add libc_hidden_def (_obstack_newchunk).
61551         (_obstack_free) [! defined _LIBC]: Remove.
61552         [defined _LIBC]: Make a strong alias from obstack_free, rather than
61553         a clone of the function body.
61554         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
61555         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
61556
61557         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
61558         glibc.
61559         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
61560         arg to memcpy.
61561
61562         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
61563         (obstack_ptr_grow_fast, obstack_int_grow_fast):
61564         Don't use lvalue casts, as GCC plans to remove support for them
61565         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
61566         was also present in the non-GCC version, indicating that this
61567         code had always been buggy and had never been widely used.
61568         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
61569         Use the fast variant of each macro, rather than copying the
61570         definiens of the fast variant; that way, we'll be more likely to
61571         catch future bugs in the fast variants.
61572
61573 2003-10-20  Bruno Haible  <bruno@clisp.org>
61574
61575         * modules/wait-process: New file.
61576         * MODULES.html.sh (func_all_modules): Add wait-process.
61577
61578 2003-10-20  Bruno Haible  <bruno@clisp.org>
61579
61580         * m4/wait-process.m4: New file.
61581
61582 2003-10-20  Bruno Haible  <bruno@clisp.org>
61583
61584         * lib/wait-process.h: New file, from GNU gettext.
61585         * lib/wait-process.c: New file, from GNU gettext.
61586
61587 2003-10-19  Jim Meyering  <jim@meyering.net>
61588
61589         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
61590         HPUX 10.20.
61591
61592 2003-10-18  Karl Berry  <karl@gnu.org>
61593
61594         * config/config.guess: update from config.
61595
61596 2003-10-16  Paul Eggert  <eggert@twinsun.com>
61597
61598         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
61599         (getgroups): First arg is int, not size_t.
61600         Don't let 'free' mangle errno.
61601
61602 2003-10-16  Paul Eggert  <eggert@twinsun.com>
61603
61604         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
61605
61606 2003-10-16  Karl Berry  <karl@gnu.org>
61607
61608         * config/config.{guess,sub}: update from config.
61609
61610 2003-10-16  Jim Meyering  <jim@meyering.net>
61611
61612         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
61613         memcpy.
61614
61615 2003-10-15  Paul Eggert  <eggert@twinsun.com>
61616
61617         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
61618         (SIZE_MAX): Remove.
61619         (new_exclude, add_exclude_file): Initial size no longer needs to
61620         be a power of 2.
61621         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
61622         our own address arithmetic overflow checking.
61623
61624         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
61625         (fnmatch): Do not alloca more than 2000 wide characters;
61626         instead, use malloc for large buffers.
61627         Check for address arithmetic overflow, and return -1
61628         with errno set to ENOMEM in that case.
61629         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
61630         (NEW_PATTERN): Do not alloca more than 8000 bytes;
61631         instead, return -1.  Check for address arithmetic overflow.
61632
61633 2003-10-14  Paul Eggert  <eggert@twinsun.com>
61634
61635         Handle invalid suffixes and overflow independently, so that
61636         callers can treat them independently as needed.  Fix some bugs in
61637         suffix handling, e.g., "100k@" was not diagnosed as an invalid
61638         suffix for a human-readable blocksize.  The major caller-visible
61639         change is the addition of a new
61640         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
61641         that both overflow and suffix chars were found.
61642
61643         * lib/human.c (humblock): Don't check separately for invalid suffix
61644         char; that is xstrtoumax's job (now that its bug is fixed).
61645         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
61646         INTMAX_MAX]: New macros.
61647         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
61648         TYPE_MAXIMUM): New macros.
61649         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
61650         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
61651         if overflow occurs, as it's what __strtol does and it's more useful
61652         in practice.
61653         (__xstrtol): If __strtol reports some error other than ERANGE,
61654         reflect it to the caller as LONGINT_INVALID.  If it reports
61655         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
61656         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
61657         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
61658         value.
61659         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
61660         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
61661         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
61662         [defined UINTMAX_MAX]: New macros.
61663
61664 2003-10-14  Bruno Haible  <bruno@clisp.org>
61665
61666         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
61667
61668 2003-10-14  Bruno Haible  <bruno@clisp.org>
61669
61670         * m4/sig_atomic_t: New file, from GNU gettext.
61671         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
61672
61673 2003-10-14  Bruno Haible  <bruno@clisp.org>
61674
61675         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
61676         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
61677         Also use volatile where needed.
61678
61679 2003-10-12  Paul Eggert  <eggert@twinsun.com>
61680
61681         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
61682         Change maintainer from Bruno Haible to 'all'.
61683
61684 2003-10-12  Paul Eggert  <eggert@twinsun.com>
61685
61686         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
61687
61688 2003-10-12  Paul Eggert  <eggert@twinsun.com>
61689
61690         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
61691         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
61692         and define in terms of the other primitives.
61693         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
61694         (SIZE_MAX): Define if not already defined.
61695         (array_size_overflow): New function.
61696         (xalloc_die): Abort instead of exiting if 'error' returns.
61697         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
61698         (xmalloc, xrealloc): Use them.
61699         (xcalloc): Check for address arithmetic overflow.
61700         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
61701         a bit faster than strcpy.
61702
61703 2003-10-10  Simon Josefsson  <jas@extundo.com>
61704
61705         * modules/argp (Depends-on): Add restrict and strcase.
61706
61707 2003-10-10  Simon Josefsson  <jas@extundo.com>
61708
61709         * m4/argp.m4: Add AC_C_INLINE.
61710
61711 2003-10-08  Paul Eggert  <eggert@twinsun.com>
61712
61713         Merge getpass from libc, plus a few fixes.
61714
61715         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
61716         Include <stdbool.h>.
61717         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
61718         __fsetlocking to empty.
61719         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
61720         do include <bits/libc-lock.h>.
61721         Do not include <fcntl.h>; not needed.
61722         [_LIBC]: Include <wchar.h>.
61723         (NOTCANCEL_MODE): New macro.
61724         (flockfile, funlockfile) [_LIBC]: New macros.
61725         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
61726         [!_LIBC]: New macros.
61727         (call_fclose): New function.
61728         (getpass): Use it.  Save tty stream separately; this simplifies the
61729         code and makes it more reliable if stdin happens to equal stdout.
61730         Invoke __fsetlocking on tty.
61731         Handle thread cancellation if needed.
61732         Namespace cleanup (use __tcgetattr, __getline).
61733         Use bool for Booleans.
61734         [USE_IN_LIBIO]: Handle wide streams.
61735         [!_LIBC]: Unconditionally do the fseek, since we don't know what
61736         stream might go where.
61737
61738         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
61739         doesn't have to include <stdio.h> before us.
61740         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
61741         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
61742         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
61743         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
61744         if not declared, so that we can use getpass.c code from libc without
61745         rewriting it.
61746         (flockfile, ftrylockfile, funlockfile): New macros.
61747
61748 2003-10-08  Paul Eggert  <eggert@twinsun.com>
61749
61750         * modules/getpass: Depend on stdbool.
61751
61752 2003-10-08  Paul Eggert  <eggert@twinsun.com>
61753
61754         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
61755
61756 2003-10-07  Karl Berry  <karl@gnu.org>
61757
61758         * config/config.{guess,sub}: update from config.
61759
61760 2003-10-06  Jim Meyering  <jim@meyering.net>
61761             Bruno Haible  <bruno@clisp.org>
61762
61763         This lets translators provide better translations for the
61764         "Written by ..." part of --version output.
61765         * lib/version-etc.h: Include stdarg.h.
61766         (version_etc_copyright): Declare as readonly.
61767         (version_etc): Make this function variadic with a NULL-terminated list
61768         of author name strings.
61769         (version_etc_va): New declaration.
61770         * lib/version-etc.c: Include stdarg.h, stdlib.h.
61771         (version_etc_copyright): Declare as readonly.
61772         (version_etc_va): New function. Provide a different translatable string
61773         for each possible number of authors < 10. Abbreviate when there are 10
61774         authors or more.
61775         (version_etc): Make this function variadic. Call version_etc_va.
61776         Suggestion from Gary V. Vaughan.
61777
61778         * lib/long-options.h (parse_long_options): Change prototype: the
61779         authors string is moved to the end and becomes variadic.
61780         * lib/long-options.c: Include stdarg.h.
61781         (parse_long_options): Make this function variadic, too.
61782         Call version_etc_va, not version_etc.
61783
61784 2003-10-06  Bruno Haible  <bruno@clisp.org>
61785
61786         * modules/version-etc-2: Remove file.
61787         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
61788
61789 2003-10-06  Bruno Haible  <bruno@clisp.org>
61790
61791         * modules/fatal-signal: New file.
61792         * MODULES.html.sh (func_all_modules): Add fatal-signal.
61793
61794 2003-10-06  Bruno Haible  <bruno@clisp.org>
61795
61796         * m4/fatal-signal.m4: New file.
61797         * m4/signalblocking.m4: New file, from GNU gettext.
61798
61799 2003-10-06  Bruno Haible  <bruno@clisp.org>
61800
61801         * lib/version-etc-2.h: Remove file.
61802         * lib/version-etc-2.c: Remove file.
61803
61804 2003-10-06  Bruno Haible  <bruno@clisp.org>
61805
61806         * lib/fatal-signal.h: New file, from GNU gettext.
61807         * lib/fatal-signal.c: New file, from GNU gettext.
61808
61809 2003-10-05  Paul Eggert  <eggert@twinsun.com>
61810
61811         * README: Rework advice for preventing empty .o files.
61812         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
61813         not <sys/types.h>.
61814
61815 2003-10-04  Karl Berry  <karl@gnu.org>
61816
61817         * lib/argp*: update from libc.
61818
61819 2003-10-04  Karl Berry  <karl@gnu.org>
61820
61821         * config/config.{guess,sub}: update from config.
61822
61823 2003-10-02  Bruno Haible  <bruno@clisp.org>
61824
61825         * modules/lchown (Include): Add lchown.h.
61826         * modules/time_r (Include): Use "..." syntax.
61827         * modules/xgetdomainname (Include): Add xgetdomainname.h.
61828
61829 2003-10-01  Simon Josefsson  <jas@extundo.com>
61830
61831         * MODULES.html.sh (func_all_modules): Move gethostname from section
61832         'based on' to section 'lacking' POSIX:2001.
61833
61834 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
61835
61836         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
61837         to output mode on the same stream.
61838
61839 2003-09-29  Paul Eggert  <eggert@twinsun.com>
61840
61841         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
61842         Fix arg typo in previous patch.
61843
61844 2003-09-28  Jim Meyering  <jim@meyering.net>
61845
61846         * lib/error.c: Correct cpp indentation.
61847
61848 2003-09-27  Paul Eggert  <eggert@twinsun.com>
61849
61850         * modules/free: New file.
61851
61852 2003-09-27  Paul Eggert  <eggert@twinsun.com>
61853
61854         * m4/free.m4: New file.
61855
61856 2003-09-27  Paul Eggert  <eggert@twinsun.com>
61857
61858         * lib/minmax.h (MIN, MAX)
61859         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
61860         Omit the special code that used __typeof__, since we worry that
61861         it could be more trouble than it's worth.  See:
61862         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
61863         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
61864
61865         * lib/free.c: New file.
61866
61867 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
61868
61869         Trivial fixes to Makefile.am parts of module listings.
61870         * modules/strstr: Append strstr.h to lib_SOURCES.
61871         * modules/strcase: Likewise, for strcase.h.
61872
61873 2003-09-27  Karl Berry  <karl@gnu.org>
61874
61875         * config/mkinstalldirs: update from automake.
61876
61877 2003-09-26  Paul Eggert  <eggert@twinsun.com>
61878
61879         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
61880         (error_tail): Do not loop, reallocating temporary buffer, since
61881         the output cannot contain more wide characters than the input
61882         contains bytes, the size must be big enough already.  This avoids
61883         one potential size overflow calculation.  Check for size overflow
61884         when calculating temporary buffer size.  Free temporary buffer
61885         when done, if it was allocated with malloc; this plugs a memory
61886         leak.  Remove casts from void * to pointers, that are no longer
61887         needed now that we're assuming C89 or better.
61888
61889         Merge error changes from glibc.
61890
61891         * lib/error.c, error.h: Update copyright notice header to match glibc.
61892         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
61893         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
61894         Disable cancellation while printing error.
61895         * lib/error.h: Prepend __ to parameter names.
61896
61897 2003-09-26  Jim Meyering  <jim@meyering.net>
61898
61899         * lib/error.c (error_tail): Move some declarations
61900         into inner scope where the local variables are used.
61901
61902 2003-09-26  Bruno Haible  <bruno@clisp.org>
61903
61904         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
61905         stpncpy().
61906         Don't define stpncpy through config.h; it's now done through stpncpy.h.
61907
61908 2003-09-26  Bruno Haible  <bruno@clisp.org>
61909
61910         * lib/stpncpy.h (gnu_stpncpy): New declaration.
61911         (stpncpy): Define as alias for gnu_stpncpy.
61912         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
61913
61914 2003-09-25  Simon Josefsson  <jas@extundo.com>
61915
61916         * lib/xgetdomainname.h: New file.
61917         * lib/xgetdomainname.c: New file.
61918
61919 2003-09-25  Simon Josefsson  <jas@extundo.com>
61920             Bruno Haible  <bruno@clisp.org>
61921
61922         * modules/getdomainname: New file.
61923         * modules/xgetdomainname: New file.
61924         * MODULES.html.sh (func_all_modules): Add getdomainname,
61925         xgetdomainname.
61926
61927 2003-09-25  Simon Josefsson  <jas@extundo.com>
61928             Bruno Haible  <bruno@clisp.org>
61929
61930         * m4/getdomainname.m4: New file.
61931
61932 2003-09-25  Simon Josefsson  <jas@extundo.com>
61933             Bruno Haible  <bruno@clisp.org>
61934
61935         * lib/getdomainname.h: New file.
61936         * lib/getdomainname.c: New file.
61937
61938 2003-09-25  Karl Berry  <karl@gnu.org>
61939
61940         * lib/argp-fmtstream.c, argp-help.c: update from libc.
61941
61942 2003-09-25  Karl Berry  <karl@gnu.org>
61943
61944         * config/install-sh: update from automake.
61945
61946 2003-09-25  Bruno Haible  <bruno@clisp.org>
61947
61948         * modules/version-etc-2: New file, from modules/version-etc with
61949         modifications.
61950         * MODULES.html.sh (func_all_modules): Add version-etc-2.
61951
61952 2003-09-25  Bruno Haible  <bruno@clisp.org>
61953
61954         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
61955         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
61956
61957 2003-09-24  Simon Josefsson  <jas@extundo.com>
61958
61959         * modules/xgethostname: Add xgethostname.h.
61960
61961 2003-09-24  Paul Eggert  <eggert@twinsun.com>
61962
61963         * lib/linebuffer.c (freebuffer): Don't free the argument, just
61964         the buffer associated with the argument.  Bug reported by
61965         Simon Josefsson.
61966
61967 2003-09-24  Paul Eggert  <eggert@twinsun.com>
61968
61969         * README: Document assumptions that 'int' is at least 32 bits
61970         wide, that integer arithmetic is 2's complement without overflow,
61971         that there are no holes in integer values, that adding sizes of
61972         two nonoverlapping objects can't overflow, and that all-bits-zero
61973         yields scalar zero.  Fix spelling and capitalization typos.
61974
61975 2003-09-19  Karl Berry  <karl@gnu.org>
61976
61977         * lib/argp.h: update from libc.
61978
61979 2003-09-17  Paul Eggert  <eggert@twinsun.com>
61980
61981         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
61982         to avoid spurious warnings like "AC_RUN_IFELSE was called before
61983         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
61984
61985 2003-09-17  Paul Eggert  <eggert@twinsun.com>
61986
61987         * gnulib-tool: Use "test -h", not "test -L", for portability
61988         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
61989         (tags_regexp): Remove, since \| doesn't conform to POSIX.
61990         (sed_extract_prog): Issue s commands one-by-one, rather than
61991         using \| in one s command.
61992
61993 2003-09-16  Paul Eggert  <eggert@twinsun.com>
61994
61995         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
61996         input error, instead of returning NULL the next time we are called
61997         (and therefore losing track of errno).
61998
61999 2003-09-16  Bruno Haible  <bruno@clisp.org>
62000
62001         * gnulib-tool (func_create_testdir): Warn about duplicated
62002         dependencies.
62003
62004 2003-09-15  Paul Eggert  <eggert@twinsun.com>
62005
62006         * modules/argmatch, modules/fatal, modules/obstack,
62007         modules/xalloc, modules/xgethostname: Sort dependencies by
62008         importance, not alphabetically.
62009
62010 2003-09-15  Paul Eggert  <eggert@twinsun.com>
62011
62012         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
62013         fails, so that the caller gets the proper errno.
62014
62015         * lib/readutmp.c (read_utmp): Likewise.
62016         Check for fstat error.  Close stream and free storage
62017         when failing.
62018
62019 2003-09-14  Karl Berry  <karl@gnu.org>
62020
62021         * config/srclist.txt (strdup.c): disable for c89 changes.
62022
62023 2003-09-14  Jim Meyering  <jim@meyering.net>
62024
62025         * lib/getloadavg.c: Correct cpp indentation.
62026         * lib/strdup.c: Likewise.
62027         * lib/vasnprintf.c: Likewise.
62028
62029 2003-09-14  Bruno Haible  <bruno@clisp.org>
62030
62031         * modules/fwriteerror: New file.
62032         * MODULES.html.sh (func_all_modules): Add fwriteerror.
62033
62034 2003-09-14  Bruno Haible  <bruno@clisp.org>
62035
62036         * lib/fwriteerror.h: New file.
62037         * lib/fwriteerror.c: New file.
62038
62039 2003-09-12  Paul Eggert  <eggert@twinsun.com>
62040
62041         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
62042         modules/xgethostname, modules/xalloc: Depend on exit.
62043
62044 2003-09-12  Paul Eggert  <eggert@twinsun.com>
62045
62046         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
62047
62048         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
62049         and AC_MINIX, too, so that their extensions are available.
62050
62051         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
62052         This macro has been superseded by gl_BACKUPFILE.
62053
62054         More patches to assume C89 or better.
62055
62056         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
62057
62058         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
62059         unconditionally.
62060         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
62061         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
62062         Include <string.h>, <stdlib.h> unconditionally.
62063         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
62064         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
62065         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
62066         headers or for string.h.
62067         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
62068         or strtoul.
62069
62070         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
62071         headers.
62072         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
62073         * m4/userspec.m4 (gl_USERSPEC): Likewise.
62074         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
62075         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
62076         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
62077         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
62078         memcpy, memset.
62079         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
62080         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
62081         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
62082         strtol.
62083         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
62084         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
62085         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
62086         strtoul.
62087
62088 2003-09-12  Paul Eggert  <eggert@twinsun.com>
62089
62090         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
62091         * lib/obstack.c [!defined _LIBC]: Likewise.
62092         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
62093         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
62094         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
62095
62096         More changes to assume C89 or better.
62097
62098         * lib/error.c (error_tail): Assume vprintf.
62099
62100         * lib/argmatch.c (getenv): Remove decl.
62101         * lib/progreloc.c (get_full_program_name): Define via prototype.
62102         * lib/setenv.c (clearenv): Likewise.
62103         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
62104         needed.
62105         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
62106         (malloc, memcpy): Remove decls.
62107         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
62108         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
62109         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
62110         (memcpy): Remove macro.
62111         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
62112         (__P): Remove.  All uses removed.
62113         (PTR): Remove.  All uses changed to void *.
62114         (CHAR_BIT, NULL): Remove.
62115         (spaces, zeros, memset_space, memset_zero)
62116         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
62117         Remove.
62118         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
62119         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
62120         Define with prototype.
62121         Remove now-unnecessary prototype decl.
62122         (extra_args_spec): Assume ANSI C.  All uses changed.
62123         (extra_args_spec_iso): Remove.
62124         (my_strftime, emacs_strftimeu): Define via prototype.
62125         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
62126         unconditionally.
62127         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
62128         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
62129         (strtoul, strtol): Remove decls.
62130         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
62131         LONG_MAX): Remove.
62132         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
62133         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
62134         (LOCALE_PARAM_PROTO): New macro.
62135         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
62136         (INTERNAL (strtol), strtol): Define with a prototype.
62137         (PARAMS): Remove.  All uses removed.
62138         * lib/tempname.c: Include <string.h> unconditionally.
62139         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
62140         * lib/xgethostname.c (main): Define with a prototype.
62141         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
62142         Include <stdlib.h> unconditionally.
62143         (calloc, malloc, realloc, free): Remove decls.
62144         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
62145         Include <stdlib.h> unconditionally.  Sort include file names.
62146         (strtod): Remove.
62147         (xstrtod): Define with a prototype.
62148         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
62149         (strtol, strtoul): Remove decls.
62150
62151 2003-09-11  Paul Eggert  <eggert@twinsun.com>
62152
62153         More patches to assume C89 or better.
62154         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
62155         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
62156         string.h, memchr, STDC_HEADERS.
62157
62158 2003-09-11  Paul Eggert  <eggert@twinsun.com>
62159
62160         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
62161         Include <stdlib.h>, <string.h> unconditionally.
62162         Remove now-unnecessary cast to char *.
62163         * lib/strnlen.c: Include <string.h> unconditionally.
62164         * lib/yesno.c (yesno): Define with a prototype.
62165
62166 2003-09-11  Bruno Haible  <bruno@clisp.org>
62167
62168         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
62169
62170 2003-09-10  Jim Meyering  <jim@meyering.net>
62171
62172         * lib/error.c: Correct indentation of cpp directives.
62173
62174 2003-09-10  Bruno Haible  <bruno@clisp.org>
62175
62176         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
62177         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
62178         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
62179         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
62180         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
62181         <stdlib.h> and <string.h> checks.
62182         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
62183         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
62184
62185 2003-09-10  Bruno Haible  <bruno@clisp.org>
62186
62187         * lib/strcspn.c: Include <string.h> unconditionally.
62188         * lib/strpbrk.c: Include <string.h> unconditionally.
62189         * lib/strstr.c: Include <string.h> unconditionally.
62190         * lib/unicodeio.c: Include <string.h> unconditionally.
62191         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
62192         * lib/unsetenv.c: Likewise.
62193         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
62194         * lib/yesno.c: Include <stdlib.h> unconditionally.
62195         (rpmatch): Add prototype.
62196
62197 2003-09-09  Paul Eggert  <eggert@twinsun.com>
62198
62199         More patches to assume C89 or better.
62200         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
62201         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
62202         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
62203         or for string.h.
62204         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
62205         stdlib.h.
62206         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
62207         C headers.
62208         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
62209         string.h.
62210         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
62211         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
62212         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
62213         or for string.h.
62214         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
62215         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
62216         C headers.
62217         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
62218         memcpy.
62219         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
62220         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
62221         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
62222         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
62223         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
62224         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
62225         string.h, free.
62226         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
62227         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
62228         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
62229         C headers, or for string.h.
62230         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
62231         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
62232         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
62233         headers, memory.h, stdlib.h, string.h, strings.h.
62234         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
62235         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
62236         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
62237         strchr.
62238         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
62239         headers, memory.h, string.h.
62240         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
62241         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
62242         free.
62243         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
62244         headers.
62245         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
62246         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
62247         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
62248         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
62249         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
62250
62251 2003-09-09  Paul Eggert  <eggert@twinsun.com>
62252
62253         More K&R removal.
62254
62255         * lib/acosl.c (main): Use a prototype.
62256         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
62257         tanl.c: Likewise.
62258
62259         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
62260
62261         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
62262         (getopt, etopt_long, getopt_long_only, _getopt_internal)
62263         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
62264         with a prototype.
62265         * lib/getopt.c (const): Remove macro.
62266         Include <string.h> unconditionally.
62267         (my_index): Remove; all uses changed to strchr.
62268         (strlen): Remove decl.
62269         (exchange): Remove forward decl; no longer needed.
62270         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
62271         Define with prototype.
62272         * lib/getopt1.c (const): Remove macro.
62273         (getopt_long, getopt_long_only, main): Define with prototype.
62274
62275         * lib/getugroups.c: Include <string.h> unconditionally.
62276
62277         * lib/getusershell.c: Include <stdlib.h> unconditionally.
62278         (getusershell, setusershell, endusershell, readname, main):
62279         Define with prototypes.
62280
62281         * lib/group-member.c: Include group-member.h first.
62282         Include <stdlib.h> unconditionally.
62283
62284         * lib/hard-locale.c: Include hard-locale.h first.
62285         Include <stdlib.h>, <string.h> unconditionally.
62286
62287         * lib/hash.c (free, malloc): Remove decls.
62288         Include <stdlib.h> unconditionally.
62289
62290         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
62291         (getenv): Do not declare.
62292
62293         * lib/idcache.c: Include <string.h> unconditionally.
62294
62295         * lib/long-options.c: Include long-options.h first, to test interface.
62296         Include <stdlib.h> unconditionally.
62297
62298         * lib/makepath.c: Include makepath.h first, to test interface.
62299         Include <stdlib.h> and <string.h> unconditionally.
62300
62301         * lib/linebuffer.c: Include <stdlib.h>.
62302         (free): Remove decl.
62303
62304         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
62305         stddef.h. rpl_malloc returns void *, not char *.
62306         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
62307         prototype.
62308
62309         * lib/md5.h: Include <limits.h> unconditionally.
62310         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
62311         (__P): Remove; all uses removed.
62312         * lib/md5.c: Include "md5.h" first.
62313         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
62314         md5_buffer, md5_process_bytes, md5_process_block):
62315         Define with prototypes.
62316         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
62317         * lib/sha.c: Include "sha.h" first.
62318         Include <stdlib.h>, <string.h> unconditionally.
62319
62320         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
62321         * lib/memcmp.c (__ptr_t): Likewise.
62322         * lib/memrchr.c (__ptr_t): Likewise.
62323         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
62324         Include <string.h> unconditionally.
62325         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
62326         * lib/memchr.c: Include <stdlib.h> unconditionally.
62327         * lib/memchr.c (LONG_MAX): Remove.
62328         * lib/memrchr.c (LONG_MAX): Likewise.
62329         * lib/memchr.c (__memchr): Define via a prototype.
62330         * lib/memrchr.c (__memrchr): Likewise.
62331         * lib/memcmp.c (__P): Remove, and remove all uses.
62332         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
62333         Remove forward decls; no longer needed.
62334         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
62335         Use types required by C89 in prototype.
62336
62337         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
62338         * lib/savedir.c: Likewise.
62339         * lib/mkdir.c (free): Remove decl.
62340         * lib/rmdir.c (rmdir): Define with a prototype.
62341         * lib/savedir.c: Include savedir.h first, to test interface.
62342
62343         * lib/mktime.c (STDC_HEADERS): Remove.
62344         Include <stdlib.h>, <string.h> unconditionally.
62345
62346         * lib/modechange.c: Include <stdlib.h> unconditionally.
62347         (malloc): Remove decl.
62348
62349         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
62350         (free): Remove decl.
62351
62352         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
62353         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
62354         (This type really should be intptr_t, but that's a C99ism.)
62355         (_obstack_memcpy): Remove: all uses changed to memcpy.
62356         Include <string.h> unconditionally.
62357         (struct obstack): Assume __STDC__ for types of members
62358         chunkfun, freefun, extra_arg.
62359         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
62360         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
62361         obstack_begin, obstack_specify_allocation,
62362         obstack_specify_allocation_with_arg, obstack_chunkfun,
62363         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
62364         Remove unprototyped decls and the macros that use them.
62365         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
62366         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
62367         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
62368         (defined __STDC__ && __STDC__)]:
62369         Remove nonprototyped code.
62370         Include <stdlib.h> unconditionally.
62371         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
62372         _obstack_allocated_p, _obstack_free, obstack_free,
62373         _obstack_memory_used, print_and_abort):
62374         Define using prototypes.
62375         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
62376         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
62377         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
62378         obstack_next_free, obstack_object_size, obstack_room) [0]:
62379         Remove unused, unprototyped code.
62380
62381         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
62382
62383         * lib/physmem.c (physmem_total, physmem_available, main): Define
62384         with prototypes.
62385
62386         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
62387         (main): Define with a prototype.
62388
62389         * lib/posixver.c (getenv): Remove decl.
62390
62391         * lib/putenv.c (malloc): Returns void *, not char *.
62392         Include <string.h> unconditionally.
62393         (strchr, memcpy, NULL): Do not define.
62394
62395         * lib/readtokens.c: Include readtokens.h first, to test interface.
62396         Include <stdlib.h>, <string.h> unconditionally.
62397         (init_tokenbuffer): Define with a prototype.
62398
62399         * lib/regex.c (PARAMS): Remove.  All uses removed.
62400         All uses of _RE_ARGS removed, too.
62401         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
62402         unconditionally.
62403         (bzero): Assume memset exists.
62404         (memcmp, memcpy, NULL): Remove.
62405         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
62406         char, or assignments to local vars of type signed char.
62407         (init_syntax_once, PREFIX(extract_number_and_incr),
62408         PREFIX(print_partial_compiled_pattern),
62409         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
62410         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
62411         PREFIX(regex_grow_registers), PREFIX(regex_compile),
62412         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
62413         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
62414         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
62415         wcs_compile_range, byte_compile_range, truncate_wchar,
62416         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
62417         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
62418         count_mbs_length, wcs_re_match_2_internal,
62419         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
62420         PREFIX(alt_match_null_string_p),
62421         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
62422         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
62423         regfree, PREFIX(extract_number)): Define with prototype.  Remove
62424         now-unnecessary declaration, if any.
62425         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
62426         regcomp, regexec):
62427         Remove now-unnecessary casts among pointer types.
62428         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
62429
62430         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
62431         (free): Remove decl.
62432
62433         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
62434
62435         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
62436         (free): Remove decl.
62437
62438         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
62439         * lib/xgetcwd.c: Likewise.
62440
62441         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
62442         (free): Remove decl.
62443
62444         * lib/strchrnul.c (strchrnul): Define with a prototype.
62445         Fix bug: c_in was not converted to char before searching.
62446
62447         The following changes are not K&R related:
62448
62449         * lib/group-member.h: Include <sys/types.h>, so that this file is
62450         self-contained.
62451         * lib/makepath.h: Likewise.
62452
62453         * lib/getusershell.c (readname, default_index, line_size, readname):
62454         Use size_t, not int, for sizes.
62455         (readname): If the size overflows, report an error instead of
62456         looping forever.
62457
62458 2003-09-09  Paul Eggert  <eggert@twinsun.com>
62459
62460         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
62461         libc.
62462
62463 2003-09-09  Paul Eggert  <eggert@twinsun.com>
62464
62465         * README: New section: portability guidelines.
62466
62467 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
62468
62469         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
62470         C89 spec.
62471
62472 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
62473
62474         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
62475
62476 2003-09-08  Paul Eggert  <eggert@twinsun.com>
62477
62478         Assume C89 or better; remove K&R cruft.
62479         A few of these changes were first proposed by Derek Robert Price
62480         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
62481
62482         * lib/addext.c: Include <string.h> unconditionally.
62483         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
62484         Don't declare getenv or malloc.
62485
62486         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
62487         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
62488         (NULL): Remove.
62489         (find_stack_direction, alloca): Use prototypes.
62490
62491         * lib/atexit.c (atexit): Define using a prototype.
62492
62493         * lib/basename.c, dirname.c, stripslash.c:
62494         Include <string.h> unconditionally.
62495
62496         * lib/bcopy.c: Include <stddef.h>.
62497         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
62498
62499         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
62500
62501         * lib/error.h (error, error_at_line, error_print_progname)
62502         [! (defined (__STDC__) && __STDC__)]: Remove decls.
62503         * lib/error.c: Include error.h first, to check interface.
62504         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
62505         (VA_START): Remove; all uses changeed to va_start.
62506         (exit, strerror): Remove decls.
62507         (error_print_progname): Prototype uncondionally.
62508         Don't include <errno.h>; no longer needed.
62509         (private_strerror): Remove.
62510         (error_tail): Always define.
62511         (error, error_at_line): Assume C89 or better; always use prototypes.
62512         * lib/fatal.c: Include "fatal.h" first, to test interface.
62513         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
62514         (VA_START): Remove; all uses changed to va_start.
62515         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
62516         this case.
62517         (exit): Remove decl.
62518         (fatal): Prototype unconditionally.  Assume va_start works.
62519         Abort at end, to pacify gcc.
62520
62521         * lib/euidaccess.c (main): Define with a prototype.
62522
62523         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
62524
62525         * lib/exitfail.c: Include <stdlib.h> unconditionally.
62526
62527         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
62528         prototypes.
62529         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
62530         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
62531         (getenv): Remove decl.
62532         (fnmatch): Define using a prototype.
62533         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
62534         (FCT): Define using a prototype.
62535
62536         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
62537
62538         * lib/gethostname.c: Include <stddef.h>.
62539         (gethostname): Define with prototype.  Length is size_t, not int.
62540
62541 2003-09-08  Paul Eggert  <eggert@twinsun.com>
62542
62543         Assume C89 or better; remove K&R cruft.
62544         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
62545         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
62546         string.h, getenv, malloc.
62547         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
62548         headers.
62549         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
62550         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
62551         do not check for strerror.
62552         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
62553         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
62554         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
62555         do not check for doprnt or vprintf.
62556         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
62557         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
62558
62559 2003-09-08  Paul Eggert  <eggert@twinsun.com>
62560
62561         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
62562         getversion.c should have been removed then, but was accidentally
62563         preserved.
62564
62565         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
62566         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
62567
62568 2003-09-08  Karl Berry  <karl@gnu.org>
62569
62570         * config/config.sub, config.guess, srclistvars.sh: update from savannah
62571                 config, forget about prep.
62572
62573         * config/depcomp, missing: update from automake.
62574
62575 2003-09-07  Paul Eggert  <eggert@twinsun.com>
62576
62577         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
62578         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
62579
62580 2003-09-07  Paul Eggert  <eggert@twinsun.com>
62581
62582         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
62583         copy_tm_result.  Bug reported by Simon Josefsson in
62584         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
62585
62586 2003-09-06  Paul Eggert  <eggert@twinsun.com>
62587
62588         * m4/time_r.m4: New file.
62589         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
62590         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
62591         is. Check for timegm declaration.
62592         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
62593         Do not check for gmtime_r.
62594         Replace mktime if __mktime_internal does not exist and if mktime
62595         hasn't been replaced already.
62596
62597 2003-09-06  Paul Eggert  <eggert@twinsun.com>
62598
62599         * lib/time_r.c, lib/time_r.h: New files.
62600
62601         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
62602         __localtime_r.
62603         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
62604         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
62605
62606         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
62607         __gmtime_r.
62608         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
62609         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
62610         Include <time_r.h>.
62611
62612         * lib/timegm.c: Switch to glibc implementation, with the following
62613         changes:
62614         [defined HAVE_CONFIG_H]: Include <config.h>.
62615         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
62616         (__mktime_internal) [!defined _LIBC]: New decl.
62617         (__gmtime_r) [!defined _LIBC]: New macro and function.
62618         (timegm): Use a prototype, since gnulib assumes C89.
62619         Do not bother declaring tmp to be const, as it's not really usefu.
62620         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
62621         (timegm): Declare only if HAVE_DECL_TIMEGM.
62622
62623 2003-09-06  Paul Eggert  <eggert@twinsun.com>
62624
62625         * MODULES.html.sh (func_all_modules): Add time_r.
62626         * modules/time_r: New file.
62627         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
62628         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
62629
62630 2003-09-03  Paul Eggert  <eggert@twinsun.com>
62631
62632         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
62633         Bug reported by Lute Kamstra in
62634         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
62635
62636         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
62637         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
62638         course with correspondingly smaller numbers for tomorrow and
62639         yesterday.  From Tadayoshi Funaba.  Originally installed into
62640         sh-utils on 1999-08-07, but the patch got lost (I guess during the
62641         coreutils merge?).
62642
62643 2003-08-31  Simon Josefsson  <jas@extundo.com>
62644
62645         * modules/timegm: New file.
62646         * MODULES.html.sh (func_all_modules): Add timegm.
62647
62648 2003-08-31  Simon Josefsson  <jas@extundo.com>
62649
62650         * m4/timegm.m4: New file.
62651
62652 2003-08-31  Simon Josefsson  <jas@extundo.com>
62653
62654         * lib/timegm.h: New file.
62655         * lib/timegm.c: New file.  Based on
62656         wget-1.8.2/src/http.c:mktime_from_utc.
62657
62658 2003-08-31  Karl Berry  <karl@gnu.org>
62659
62660         * lib/argp.h: update from libc.
62661
62662 2003-08-28  Bruno Haible  <bruno@clisp.org>
62663
62664         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
62665         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
62666         followed by '#define fnmatch fnmatch_posix' gives an error.
62667
62668 2003-08-28  Bruno Haible  <bruno@clisp.org>
62669
62670         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
62671         warning on QNX, which defines O_BINARY to 000000.
62672
62673 2003-08-27  Jim Meyering  <jim@meyering.net>
62674
62675         * m4/mkstemp.m4: Require that the system mkstemp be able to create
62676         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
62677         would fail after 32.  Reported by Danny Levinson.  Details here:
62678         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
62679
62680 2003-08-24  Bruno Haible  <bruno@clisp.org>
62681
62682         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
62683         MSVC7 <stdio.h> is included later.
62684
62685 2003-08-22  Simon Josefsson  <jas@extundo.com>
62686
62687         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
62688
62689 2003-08-20  Karl Berry  <karl@gnu.org>
62690
62691         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
62692
62693 2003-08-20  Bruno Haible  <bruno@clisp.org>
62694
62695         * modules/progname: New file.
62696         * MODULES.html.sh (func_all_modules): Add progname.
62697
62698 2003-08-20  Bruno Haible  <bruno@clisp.org>
62699
62700         * lib/progname.h: New file, from GNU gettext.
62701         * lib/progname.c: New file, from GNU gettext.
62702         * lib/progreloc.c: New file, from GNU gettext.
62703
62704 2003-08-19  Jim Meyering  <jim@meyering.net>
62705
62706         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
62707         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
62708
62709 2003-08-19  Bruno Haible  <bruno@clisp.org>
62710
62711         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
62712         more.
62713
62714 2003-08-19  Bruno Haible  <bruno@clisp.org>
62715
62716         * lib/xstrdup.c: Assume <string.h> exists.
62717
62718 2003-08-18  Paul Eggert  <eggert@twinsun.com>
62719
62720         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
62721         in makefile rules.
62722
62723 2003-08-18  Jim Meyering  <jim@meyering.net>
62724
62725         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
62726         * m4/lib-ld.m4: Likewise.
62727
62728 2003-08-18  Jim Meyering  <jim@meyering.net>
62729
62730         * lib/setenv.h: Indent nested cpp directive.
62731         * lib/vasnprintf.c: Remove trailing blanks.
62732
62733 2003-08-17  Simon Josefsson  <jas@extundo.com>
62734
62735         * modules/xstrndup: New file.
62736         * MODULES.html.sh (func_all_modules): Add xstrndup.
62737
62738 2003-08-17  Simon Josefsson  <jas@extundo.com>
62739
62740         * modules/argp: Fix autoconf macro name. Add more dependencies.
62741
62742 2003-08-17  Simon Josefsson  <jas@extundo.com>
62743
62744         * m4/xstrndup.m4: New file.
62745
62746 2003-08-17  Simon Josefsson  <jas@extundo.com>
62747
62748         * m4/argp.m4: New file.
62749
62750 2003-08-17  Simon Josefsson  <jas@extundo.com>
62751             Bruno Haible  <bruno@clisp.org>
62752
62753         * lib/xstrndup.h: New file.
62754         * lib/xstrndup.c: New file.
62755
62756 2003-08-17  Bruno Haible  <bruno@clisp.org>
62757
62758         * modules/strndup (Files, Include): Add lib/strndup.h.
62759
62760 2003-08-17  Bruno Haible  <bruno@clisp.org>
62761
62762         * modules/euidaccess (Files): Add lib/euidaccess.h.
62763
62764 2003-08-17  Bruno Haible  <bruno@clisp.org>
62765
62766         * lib/strndup.h: New file.
62767
62768 2003-08-17  Bruno Haible  <bruno@clisp.org>
62769
62770         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
62771         like AC_GNU_SOURCE.
62772         * modules/extensions (configure.ac): Comment out the invocation of
62773         gl_USE_SYSTEM_EXTENSIONS.
62774
62775 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62776
62777         Merges from coreutils, etc.
62778         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
62779         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
62780         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
62781         fixing a typo.
62782         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
62783         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
62784
62785 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62786
62787         Document merge from coreutils.
62788         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
62789         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
62790         * modules/utime: Add m4/utimes-null.m4.
62791
62792 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62793
62794         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
62795         space, undoing this 2003-08-12 change:
62796         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
62797
62798 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62799
62800         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
62801         strtoul.c from libc, undoing this 2003-08-12 change:
62802         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
62803
62804 2003-08-16  Jim Meyering  <jim@meyering.net>
62805
62806         Merges from coreutils.
62807         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
62808         prefix.  Adjust cache variables similarly.  Create 500 rather than
62809         just 300 files, to exercise bug on Darwin6.5, too.
62810         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
62811         $missing_dir.
62812         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
62813         AM_SYS_POSIX_TERMIOS.
62814         Reported by mkc@mathdogs.com.
62815         Also change use of $am_cv_sys_posix_termios
62816         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
62817         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
62818         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
62819         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
62820         in /proc/mounts until it finds one with matching device number.  This
62821         is unnecessary when the FILE argument *is* a mount point.  No stat call
62822         is necessary in that case.  So, disable the statvfs-testing code on
62823         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
62824         as RedHat bug# 84846.
62825         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
62826         to 1MB, so as not to render systems with no stack size limit (e.g.,
62827         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
62828         Include <unistd.h>.  On some systems,
62829         it is required for the definition of _SC_PAGESIZE.
62830
62831 2003-08-16  Jim Meyering  <jim@meyering.net>
62832
62833         Merge from coreutils.
62834         * lib/xstrtoimax.c: #else #if -> #elif.
62835         * lib/xstrtoumax.c: Likewise.
62836
62837 2003-08-16  Jim Meyering  <jim@meyering.net>
62838
62839         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
62840         * m4/utimes.m4: Removed.
62841         * m4/utimes-null.m4: Renamed from utimes.m4.
62842
62843         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
62844         to 1MB, so as not to render systems with no stack size limit (e.g.,
62845         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
62846         Include <unistd.h>.  On some systems,
62847         it is required for the definition of _SC_PAGESIZE.
62848
62849 2003-08-16  Jim Meyering  <jim@meyering.net>
62850         and Paul Eggert  <eggert@cs.ucla.edu>
62851
62852         Merges from coreutils, etc.
62853
62854         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
62855         using the latest version from cvs.  This avoids problems with #line
62856         directives using a vendor (Sun) compiler.
62857         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
62858         Don't set GETGROUPS_LIB here; now it's
62859         done via getgroups.m4's wrapper function.
62860         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
62861         rather than just in sh-util/configure.in, so that the
62862         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
62863         same.
62864         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
62865         AC_FUNC_GETLOADAVG where to find getloadavg.c.
62866         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
62867         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
62868         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
62869         Remove code that is now done by the newly-required macros.
62870         Append $(EXEEXT) to DF_PROG.
62871         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
62872         Do not invoke or require the following here,
62873         since prereq.m4 or some gnulib .m4 now does this for us:
62874         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
62875         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
62876         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
62877         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
62878         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
62879         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
62880         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
62881         AC_FUNC_OBSTACK.
62882         Do not replace the following functions, as this is now the job
62883         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
62884         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
62885         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
62886         atexit getpass, strdup, getpagesize.
62887         Replace 'raise'.
62888         Do not check for the following functions, as this is now the job
62889         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
62890         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
62891         setregid.
62892         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
62893         Check for sys/sysctl.h.
62894         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
62895         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
62896         of checking for ssize_t ourselves.
62897
62898         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
62899         Require every macro that gnulib/modules/* suggests for us.
62900         (jm_PREREQ_ADDEXT): New macro.
62901         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
62902         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
62903
62904         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
62905         (gl_PHYSMEM): Use it.
62906         Also check for `table' function.
62907         Check for new headers and functions.
62908         Add check for sys/sysmp.h.
62909         With suggestions from Kaveh Ghazi.
62910         Ignore headers that are present but cannot be compiled.  This
62911         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
62912         C 5.4.
62913
62914 2003-08-15  Paul Eggert  <eggert@twinsun.com>
62915
62916         Document merge from coreutils.
62917         * modules/userspec: Depend on posixver.
62918         * modules/strftime: Depend on tzset.
62919
62920 2003-08-15  Paul Eggert  <eggert@twinsun.com>
62921
62922         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
62923         rather than tab, after '#' in shell-script copyright notices.
62924         Suggested by Bruno Haible.
62925
62926 2003-08-15  Paul Eggert  <eggert@twinsun.com>
62927
62928         * config/srclist-update: Use three spaces, rather than tab, after '#'
62929         in shell-script copyright notices.  Suggested by Bruno Haible.
62930         Remove unnecessary parenthesization in regular expression.
62931
62932 2003-08-15  Jim Meyering  <jim@meyering.net>
62933
62934         Merge from coreutils.
62935         * lib/xgethostname.c: Include <stdlib.h>.
62936         (xghostname): Don't exit for anything other than memory-related
62937         failure; just return NULL.
62938         * lib/userspec.c: Include "posixver.h".
62939         (parse_user_spec): Accept `.' as a separator only
62940         in pre-POSIX-200112 mode.
62941         * lib/strtoimax.c: Use #elif rather than #else #if.
62942         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
62943         Remove function, now that we can rely on a working tzset function.
62944         [!_LIBC]: Ensure that the required autoconf test has been run.
62945         [!defined _NL_CURRENT && HAVE_STRFTIME]:
62946         Use underlying_strftime for %r.
62947         * lib/sha.c: Merge in some clean-up and optimization changes from
62948         glibc.
62949         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
62950         Ensure that it is a multiple of 64.
62951         Rearrange loop exit tests so as to avoid performing an
62952         additional fread after encountering an error or EOF.
62953         * lib/realloc.c: Update copyright date.
62954
62955 2003-08-15  Jim Meyering  <jim@meyering.net>
62956         and Paul Eggert  <eggert@twinsun.com>
62957
62958         Merge from coreutils.
62959         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
62960         member but strut utmpx does not.  Needed for AIX 4.3.3.
62961         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
62962
62963 2003-08-15  Jim Meyering  <jim@meyering.net>
62964         and Paul Eggert  <eggert@cs.ucla.edu>
62965
62966         Merges from coreutils, etc.
62967         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
62968         Require gl_FUNC_TZSET_CLOBBER.
62969         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
62970         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
62971         members.
62972
62973 2003-08-14  Paul Eggert  <eggert@twinsun.com>
62974
62975         Help the merge from coreutils.
62976         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
62977         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
62978         * m4/tzset.m4: Use it too.
62979
62980 2003-08-14  Paul Eggert  <eggert@twinsun.com>
62981
62982         * modules/tzset: New file.
62983
62984 2003-08-14  Jim Meyering  <jim@meyering.net>
62985
62986         Merges from coreutils.
62987         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
62988         variable names, rather than @FNMATCH_H@.
62989         * modules/alloca: Likewise for $(ALLOCA_H).
62990
62991         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
62992         the three copies of the literal target, `fnmatch.h'.
62993         * modules/alloca (alloca.h): Likewise.
62994
62995 2003-08-14  Jim Meyering  <jim@meyering.net>
62996
62997         Merge from coreutils.
62998         * m4/tzset.m4: New file.
62999         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
63000         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
63001         otherwise, AIX 5.1 systems would end up using the latter.
63002         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
63003         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
63004         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
63005         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
63006
63007 2003-08-14  Jim Meyering  <jim@meyering.net>
63008
63009         Merge from coreutils.
63010         * lib/obstack.h: Whitespace changes.
63011         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
63012         and xcalloc return values.
63013         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
63014         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
63015         hang on OSF/1 5.1 for DIR on both local and remote file systems.
63016         Reported by (and fix confirmed by) Nelson H. F. Beebe.
63017         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
63018         error from mntctl.
63019         Use mntctl's return value to drive the entry-processing loop, since
63020         we can't rely on the value of the vmt_length member in the last
63021         entry.  On some systems doing so could result in exhausting
63022         virtual memory.  Based in part on a patch from Mike Jetzer.
63023
63024 2003-08-14  Jim Meyering  <jim@meyering.net>
63025         and Paul Eggert  <eggert@twinsun.com>
63026
63027         Merges from coreutils, plus other fixes.
63028         * lib/physmem.c: Merge in portability changes from gcc/libiberty
63029         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
63030         for credits and details.  Thanks to Kaveh Ghazi for helping
63031         to keep these files in sync.
63032         (ARRAY_SIZE): Define it.
63033         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
63034         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
63035         (memcasecmp): Don't assume size_t fits in unsigned int.
63036         Remove casts and duplicate code.
63037         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
63038         (memcpy): Remove definition.
63039         Merge in some clean-up and optimization changes from glibc.
63040         [BLOCKSIZE]: Move definition to top of file.
63041         Ensure that it is a multiple of 64.
63042         Rearrange loop exit tests so as to avoid performing an
63043         additional fread after encountering an error or EOF.
63044         * lib/md5.h (md5_uintptr): Define.
63045         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
63046         return to the initial working directory.  Preserve errno
63047         for caller.
63048         * lib/idcache.c: Include "xalloc.h".
63049         (xmalloc, xrealloc): Remove decls.
63050         (getuser): Remove casts no longer required in C89.
63051         * lib/human.c: Include stdio.h, for sprintf.
63052         * lib/group-member.c: Include "xalloc.h".
63053         (xmalloc, xrealloc): Remove decls.
63054         (get_group_info): Remove casts no longer required in C89.
63055         * lib/getusershell.c (readname): Remove casts no longer required in
63056         C89.
63057         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
63058         * lib/getline.c: Whitespace fix, from coreutils.
63059
63060 2003-08-13  Paul Eggert  <eggert@twinsun.com>
63061
63062         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
63063         Check for isascii.
63064
63065         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
63066         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
63067         Undo previous (whitespace-only) change.
63068
63069 2003-08-13  Paul Eggert  <eggert@twinsun.com>
63070
63071         * lib/exclude.c: Include <ctype.h>
63072         (IN_CTYPE_DOMAIN): New macro.
63073         (is_space): New fn.
63074         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
63075         and empty lines.
63076
63077         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
63078         Undo previous (whitespace-only) change.
63079
63080 2003-08-13  Paul Eggert  <eggert@twinsun.com>
63081
63082         * config/srclist-update: Change update back to the old behavior,
63083         leaving whitespace alone.  Use one 'sed' command rather than a
63084         pipeline.
63085         (fixlicense): Now a variable, not a function.
63086         (remove_trailing_blanks): Remove.
63087         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
63088         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
63089         Undo previous (whitespace-only) change.
63090
63091 2003-08-12  Paul Eggert  <eggert@twinsun.com>
63092
63093         Merge from coreutils.
63094         * modules/euidaccess: Add lib_SOURCES, include for new
63095         file euidaccess.h
63096
63097 2003-08-12  Paul Eggert  <eggert@twinsun.com>
63098
63099         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
63100         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
63101         Normalize leading white space and remove trailing white space.
63102
63103         Merge from coreutils
63104         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
63105
63106         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
63107         0.12.1.  These files are now being upgraded automatically by
63108         ../config/srclist-update.
63109
63110 2003-08-12  Paul Eggert  <eggert@twinsun.com>
63111
63112         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
63113         Normalize leading white space and remove trailing white space.
63114         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
63115         notice, as per ../config/srclist-update.
63116
63117         Merge from coreutils.
63118         * lib/euidaccess.h: New file.
63119         * lib/euidaccess.c: Include it.
63120         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
63121         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
63122         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
63123
63124 2003-08-12  Paul Eggert  <eggert@twinsun.com>
63125
63126         * config/srclist-update: Add copyright notice.
63127         (remove_id_lines, remove_trailing_blanks): New constants.
63128         (fixfile): Use them to normalize spacing a bit in copied files.
63129         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
63130         Normalize leading white space and remove trailing white space.
63131
63132         * config/texinfo.tex: Sync with texinfo.
63133
63134         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
63135         strtoul.c from libc, to merge coreutils whitespace changes.
63136
63137         * config/srclist.txt: Get the following m4 files from gettext:
63138         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
63139         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
63140         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
63141         wint_t.m4.
63142
63143 2003-08-12  Karl Berry  <karl@gnu.org>
63144
63145         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
63146         been made.
63147
63148 2003-08-11  Paul Eggert  <eggert@twinsun.com>
63149
63150         * modules/gnu-source, m4/gnu-source.m4:
63151         Remove; we're assuming Autoconf 2.54 or later now.
63152         Suggested by Bruno Haible.
63153         * MODULES.html.sh (func_all_modules): Remove gnu-source.
63154
63155 2003-08-11  Bruno Haible  <bruno@clisp.org>
63156
63157         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
63158
63159 2003-08-11  Bruno Haible  <bruno@clisp.org>
63160
63161         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
63162         (vasnprintf): Use it instead of wcslen.
63163
63164 2003-08-11  Bruno Haible  <bruno@clisp.org>
63165
63166         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
63167         value to ensure that _Bool promotes to int. Use #define for _Bool when
63168         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
63169
63170 2003-08-10  Karl Berry  <karl@gnu.org>
63171
63172         * lib/regex.h: update from libc (whitespace fix).
63173
63174 2003-08-09  Paul Eggert  <eggert@twinsun.com>
63175
63176         Merge some files from coreutils.  These changes were
63177         originally made by Jim Meyering.
63178         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
63179         many older Unixes require this.
63180         * lib/alloca.c (alloca): Remove cast to argument of free;
63181         no longer needed in C89.
63182         * lib/alloca_.h, regex.h: Fix white space to match
63183         what GNU indent does.
63184
63185 2003-08-09  Paul Eggert  <eggert@twinsun.com>
63186
63187         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
63188         apparently Emacs's Unicode mode got confused before my 2003-08-05
63189         checkin.
63190
63191 2003-08-08  Paul Eggert  <eggert@twinsun.com>
63192
63193         * m4/extensions.m4: New file.
63194         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
63195         Require gl_USE_SYSTEM_EXTENSIONS.
63196         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
63197         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
63198
63199 2003-08-08  Paul Eggert  <eggert@twinsun.com>
63200
63201         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
63202         * modules/extensions, modules/gnu-source: New files.
63203         * modules/timespec, modules/unlocked-io: Depend on extensions.
63204
63205 2003-08-07  Paul Eggert  <eggert@twinsun.com>
63206
63207         * modules/restrict: New file.
63208         * MODULES.html.sh (func_all_modules): Add restrict.
63209         * modules/regex: Depend on restrict.
63210
63211 2003-08-07  Paul Eggert  <eggert@twinsun.com>
63212
63213         * m4/restrict.m4: New file.
63214         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
63215
63216 2003-08-07  Bruno Haible  <bruno@clisp.org>
63217
63218         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
63219         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
63220
63221 2003-08-07  Bruno Haible  <bruno@clisp.org>
63222
63223         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
63224         makes the module 'getndelim2' compatible with the module 'getline'.
63225
63226 2003-08-05  Paul Eggert  <eggert@twinsun.com>
63227
63228         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
63229         byte with "\201" to avoid glitches when editing that source file
63230         with multi-gnome-terminal.
63231
63232 2003-08-05  Paul Eggert  <eggert@twinsun.com>
63233
63234         * lib/bumpalloc.h: Remove.
63235
63236 2003-08-05  Paul Eggert  <eggert@twinsun.com>
63237
63238         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
63239         * modules/bumpalloc: Remove.
63240
63241 2003-08-04  Paul Eggert  <eggert@twinsun.com>
63242
63243         * lib/getloadavg.c: Change copyright notice and spacing to conform to
63244         GNU coding style.
63245
63246         Merge from coreutils.
63247         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
63248         1. From glibc.
63249         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
63250         from Karl Berry, implemented by Jim Meyering.
63251         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
63252         from Dmitry V. Levin.
63253         Remove anachronistic cast of xrealloc.
63254         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
63255         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
63256         type. Otherwise, it wouldn't compile with at least /bin/cc on
63257         ymp-cray-unicos9.0.2.X.
63258         Combine two mostly-identical uses of alloca into one.
63259         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
63260
63261 2003-08-04  Dave Love  <d.love@dl.ac.uk>
63262
63263         [From Emacs.]
63264
63265         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
63266         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
63267         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
63268         obsolete NLIST_NAME_UNION.
63269         [__GNU__]: Undef BSD and FSCALE.
63270         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
63271
63272 2003-08-03  Paul Eggert  <eggert@twinsun.com>
63273
63274         * lib/stdbool_.h (_Bool): Make it signed char, instead of
63275         an enum type, so that it's guaranteed to promote to int.  See:
63276         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
63277
63278 2003-08-03  Karl Berry  <karl@gnu.org>
63279
63280         * config/depcomp: update from automake.
63281
63282 2003-07-31  Paul Eggert  <eggert@twinsun.com>
63283
63284         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
63285         (strerror): Don't assume that a printable int fits in 14 bytes.
63286
63287 2003-07-31  Bruno Haible  <bruno@clisp.org>
63288
63289         * modules/getpass-gnu: New file.
63290         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
63291
63292 2003-07-31  Bruno Haible  <bruno@clisp.org>
63293
63294         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
63295
63296 2003-07-24  Karl Berry  <karl@gnu.org>
63297
63298         * config/missing: update from automake.
63299
63300 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
63301             Bruno Haible  <bruno@clisp.org>
63302
63303         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
63304         * lib/getline.c (getline, getdelim): Likewise.
63305         Remove _GNU_SOURCE define; now it's defined in config.h through
63306         m4/getline.m4.
63307
63308 2003-07-23  Karl Berry  <karl@gnu.org>
63309
63310         * config/config.sub: update from prep.
63311
63312 2003-07-22  Paul Eggert  <eggert@twinsun.com>
63313
63314         * modules/xalloc (Depends-on): Add exitfail.
63315         * modules/xmemcoll: Likewise.
63316
63317 2003-07-22  Paul Eggert  <eggert@twinsun.com>
63318
63319         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
63320         over-parenthesization in macros.
63321
63322         Sync with coreutils.
63323
63324         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
63325         required by C99.
63326
63327         Use `exit_failure' for xalloc and xmemcoll instead of their own
63328         private exit-failure variables.
63329         * lib/xalloc.h (xalloc_exit_failure): Remove.
63330         * lib/xmalloc.c: Likewise.  Include exitfail.h.
63331         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
63332         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
63333         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
63334         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
63335
63336 2003-07-20  Jim Meyering  <jim@meyering.net>
63337
63338         * modules/closeout (Depends-on): Add exitfail.
63339         Suggestion from Bruno Haible.
63340
63341 2003-07-19  Karl Berry  <karl@gnu.org>
63342
63343         * config/config.sub: update from prep.
63344
63345 2003-07-18  Paul Eggert  <eggert@twinsun.com>
63346
63347         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
63348         Remove.
63349         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
63350         to test that it can stand by itself.  Include "exitfail.h".
63351         Clients should set exit_failure instead.
63352         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
63353
63354 2003-07-18  Bruno Haible  <bruno@clisp.org>
63355
63356         * modules/getndelim2: New file.
63357         * modules/getline: Share files with module getndelim2.
63358         * modules/getnline: Depend on getndelim2 instead of sharing files with
63359         it. Add getnline.c to lib_SOURCES.
63360         * MODULES.html.sh (func_all_modules): Add getndelim2.
63361
63362 2003-07-18  Bruno Haible  <bruno@clisp.org>
63363
63364         * m4/getndelim2.m4: New file.
63365         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
63366         invoke gl_PREREQ_GETNDELIM2.
63367         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
63368         gl_PREREQ_GETNDELIM2.
63369         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
63370         gl_GETNDELIM2.
63371
63372 2003-07-18  Bruno Haible  <bruno@clisp.org>
63373
63374         * lib/getndelim2.h: New file.
63375         * lib/getndelim2.c: Make into a module of its own. Include config.h,
63376         getndelim2.h.
63377         (getndelim2): Make non-static. Change return type to ssize_t.
63378         * lib/getline.h: Change argument names.
63379         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
63380         * lib/getnline.c: Include getndelim2.h.
63381
63382 2003-07-18  Andreas Schwab  <schwab@suse.de>
63383
63384         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
63385
63386 2003-07-17  Karl Berry  <karl@gnu.org>
63387
63388         * config/config.sub: update from prep.
63389
63390 2003-07-17  Bruno Haible  <bruno@clisp.org>
63391
63392         * modules/getnline: New file.
63393         * modules/getline: Add lib/getndelim2.c to source file list.
63394         * MODULES.html.sh (func_all_modules): Add getnline.
63395
63396 2003-07-17  Bruno Haible  <bruno@clisp.org>
63397
63398         * m4/getnline.m4: New file.
63399
63400 2003-07-17  Bruno Haible  <bruno@clisp.org>
63401
63402         * m4/Makefile.am.in: Remove file.
63403         * m4/Makefile.am: Remove file.
63404         * m4/Makefile.in: Remove file.
63405
63406 2003-07-17  Bruno Haible  <bruno@clisp.org>
63407
63408         * lib/getnline.h: New file.
63409         * lib/getnline.c: New file.
63410         * lib/getndelim2.c: New file, extracted from getline.c.
63411         (getndelim2): Renamed from getdelim2, with added nmax argument.
63412         * lib/getline.c: Include getndelim2.c.
63413         (getdelim2): Moved out to getndelim2.c.
63414         (getline, getdelim): Update.
63415
63416 2003-07-17  Bruno Haible  <bruno@clisp.org>
63417
63418         * lib/Makefile.am: Remove file.
63419         * lib/Makefile.in: Remove file.
63420
63421 2003-07-17  Bruno Haible  <bruno@clisp.org>
63422
63423         * configure.in: Remove file.
63424         * Makefile.in: Remove file.
63425
63426 2003-07-17  Bruno Haible  <bruno@clisp.org>
63427
63428         * MODULES.html.sh: Put the </BODY> right before </HTML>.
63429
63430 2003-07-16  Karl Berry  <karl@gnu.org>
63431
63432         * config/srclist-update: was running fixlicense twice, which caused
63433                 texinfo.tex to be nullified for some reason.  Simplify,
63434                 $gplsrc is no longer needed as far as I can see?
63435
63436 2003-07-16  Jim Meyering  <jim@meyering.net>
63437
63438         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
63439
63440 2003-07-15  Paul Eggert  <eggert@twinsun.com>
63441
63442         * config/srclist.txt: Get the following files from gettext-runtime/intl
63443         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
63444         ref-del.sin.  From Bruno Haible.
63445         * config/srclist-update (fixfile): Change grep pattern again, since the
63446         previous fix didn't work (there was another trailing $).  Use
63447         '[$]' to escape the $s.
63448
63449 2003-07-15  Karl Berry  <karl@gnu.org>
63450
63451         * lib/vasnprintf.c: update from gettext.
63452
63453 2003-07-15  Karl Berry  <karl@gnu.org>
63454
63455         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
63456         gets expanded when surrounded by '$'.
63457
63458 2003-07-15  Jim Meyering  <jim@meyering.net>
63459
63460         * modules/save-cwd: Don't depend on error.  From Derek Price.
63461
63462 2003-07-15  Jim Meyering  <jim@meyering.net>
63463
63464         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
63465
63466 2003-07-14  Simon Josefsson  <jas@extundo.com>
63467
63468         * modules/mempcpy: New file.
63469         * MODULES.html.sh (func_all_modules): Add mempcpy.
63470
63471 2003-07-14  Simon Josefsson  <jas@extundo.com>
63472
63473         * m4/mempcpy.m4: New file.
63474
63475 2003-07-14  Simon Josefsson  <jas@extundo.com>
63476
63477         * lib/mempcpy.h: New file.
63478         * lib/mempcpy.c: New file.
63479
63480 2003-07-14  Paul Eggert  <eggert@twinsun.com>
63481
63482         * modules/getdate, modules/posixtm: Depend on mktime.
63483
63484 2003-07-14  Paul Eggert  <eggert@twinsun.com>
63485
63486         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
63487         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
63488         unicodeio.c, unicodeio.h, unlocked-io.h:
63489         Switch from LGPL to GPL.
63490
63491 2003-07-14  Paul Eggert  <eggert@twinsun.com>
63492
63493         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
63494         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
63495         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
63496         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
63497         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
63498         updated automatically by ../config/srclist-update.  This changes
63499         their license from LPGL to GPL.
63500
63501 2003-07-14  Paul Eggert  <eggert@twinsun.com>
63502
63503         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
63504         assumed to refer to the root of the most recent stable gettext version.
63505         * config/srclistvars.sh: Add defaults for eggert.
63506         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
63507         Match "This program" as well as "The program".  This is needed
63508         for gettext.
63509
63510 2003-07-14  Jim Meyering  <jim@meyering.net>
63511
63512         Don't emit diagnostics.  Let callers do that.
63513         * lib/save-cwd.c: Don't include "error.h".
63514         (save_cwd): Don't call error.  Ensure that errno is valid
63515         when returning nonzero.
63516
63517         * lib/save-cwd.h (restore_cwd): Update prototype.
63518         * lib/save-cwd.c (restore_cwd): Remove two parameters.
63519         Simplify.  Don't call error upon failure.  Let callers do that.
63520         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
63521         when auditing is enabled.  But don't bother updating the #if.
63522
63523 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
63524
63525         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
63526         it breaks C++ compilation.
63527         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
63528
63529 2003-07-10  Simon Josefsson  <jas@extundo.com>
63530
63531         * modules/strchrnul (Makefile.am): Add strchrnul.h.
63532
63533 2003-07-10  Jim Meyering  <jim@meyering.net>
63534
63535         * m4/clock_time.m4: Remove trailing blank.
63536         * m4/intmax_t.m4: Likewise.
63537
63538 2003-07-10  Jim Meyering  <jim@meyering.net>
63539
63540         * lib/vasnprintf.c: Remove trailing blanks.
63541         Make cpp indentation consistent.
63542
63543 2003-07-09  Paul Eggert  <eggert@twinsun.com>
63544
63545         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
63546         posixver.c, strftime.c, strnlen.c, strverscmp.c:
63547         Switch from LGPL to GPL.
63548
63549 2003-07-09  Paul Eggert  <eggert@twinsun.com>
63550
63551         * config/srclist.txt: Sort sublists.  Add
63552         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
63553         that differ from gnulib for one reason or another; we'd like this list
63554         to be smaller but for now let's document what we have.
63555
63556 2003-07-08  Paul Eggert  <eggert@twinsun.com>
63557
63558         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
63559         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
63560         and sweeter "eval x=$x".
63561         * config/srclist.txt: Get lib/argp* from glibc.
63562
63563 2003-07-07  Paul Eggert  <eggert@twinsun.com>
63564
63565         * lib/mktime.c: Fix some boundary cases and remove need for floating
63566         point.
63567
63568         Issue a compile-time diagnostic if time_t is floating point, or if
63569         two's complement arithmetic is not in effect, or if arithmetic
63570         right shift does not propagate the sign.  These assumptions were
63571         all in the original code but they weren't checked.
63572
63573         (TIME_T_MIDPOINT, verify): New macros.
63574         (__isleap): Remove; it has integer overflow problems.
63575         (leapyear): New function, without those problems.
63576         (ydhms_tm_diff): Remove; splitting into two parts.
63577         (ydhms_diff): New function, containing the arithmetic part of
63578         the old ydhms_tm_diff function.  Issue a compile-time
63579         diagnostic if we are not using C99 integer division.
63580         Avoid casts when possible.
63581         (guess_time_tm): New function, containing the checking part of
63582         the old ydhms_tm_diff function.  Return the new value, rather than
63583         the difference between it and the old.  Accept a new argument T
63584         so that *T specifies the old value.  Check for overflow in the result.
63585
63586         (__mktime_internal): Use a time_t offset, not a long int offset.
63587         This undoes the 2003-06-04 change, which is no longer needed now
63588         that we have better overflow checking.
63589         (localtime_offset): Likewise.
63590
63591         (__mktime_internal): Avoid harmful overflow on hosts where time_t
63592         and long are 64-bit but int is only 32-bit.
63593         (ydhms_diff): Use long int to store year1 and yday1.
63594         Issue a compile-time diagnostic if long int is not wide enough.
63595
63596         (__mktime_internal): Use long int to store adjusted year and yday.
63597         Use plain C rather than preprocessor commands, if that doesn't
63598         affect efficiency.
63599         Check for overflow (and try to repair) after each probe
63600         rather than checking only at the very end.  This avoids some bugs
63601         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
63602         does not equal GMT offset at maximum time).
63603         Use integer to check for overflow rather than floating point; this
63604         is more portable to non-IEEE hosts, and is a tad faster.
63605         When we detect that we are oscillating between two values,
63606         don't check whether tm_isdst has the requested value, since
63607         we already know the answer.  When tm_isdst has the wrong value,
63608         use a different heuristic to find the right one, based on the
63609         extreme values actually observed in practice in tz2003a,
63610         rather than the (overly optimistic) "previous 3 calendar quarters".
63611
63612         (not_equal_tm, print_tm, check_result): Use "const T" rather than
63613         "T const" to accommodate glibc style.
63614         (check_result): Use less-confusing report format.  "long" -> "long int.
63615         (main): Likewise.
63616         Don't loop if the iteration overflows time_t.
63617         Allow a negative step in the iteration.
63618
63619 2003-07-06  Karl Berry  <karl@gnu.org>
63620
63621         * config/depcomp: update from automake.
63622         * config/config.sub: update from prep.
63623
63624 2003-07-03  Karl Berry  <karl@gnu.org>
63625
63626         * config/config.guess: update from prep.
63627
63628 2003-07-01  Paul Eggert  <eggert@twinsun.com>
63629
63630         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
63631         xreadlink.c now includes it unconditionally.
63632
63633 2003-07-01  Paul Eggert  <eggert@twinsun.com>
63634
63635         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
63636         having it depend on HAVE_SYS_TYPES_H.
63637
63638 2003-07-01  Bruno Haible  <bruno@clisp.org>
63639
63640         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
63641         <sys/types.h> should be sufficient.
63642         Reported by Paul Eggert.
63643
63644 2003-06-26  Karl Berry  <karl@gnu.org>
63645
63646         * config/depcomp: update from automake.
63647
63648 2003-06-26  Bruno Haible  <bruno@clisp.org>
63649
63650         * modules/human: Depend on module stdbool.
63651
63652 2003-06-25  Bruno Haible  <bruno@clisp.org>
63653
63654         * modules/readlink: New file.
63655         * modules/xreadlink: Depend on it.
63656         * MODULES.html.sh (func_all_modules): Add readlink.
63657
63658 2003-06-25  Bruno Haible  <bruno@clisp.org>
63659
63660         * m4/readlink.m4: New file.
63661
63662 2003-06-25  Bruno Haible  <bruno@clisp.org>
63663
63664         * lib/readlink.c: New file.
63665
63666 2003-06-22  Karl Berry  <karl@gnu.org>
63667
63668         * config/srclist.txt: update mkinstalldirs from automake.
63669         * config/mkinstalldirs: update.
63670
63671 2003-06-22  Bruno Haible  <bruno@clisp.org>
63672
63673         Portability to mingw32.
63674         * m4/ssize_t.m4: New file, from GNU gettext.
63675         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
63676         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
63677
63678 2003-06-22  Bruno Haible  <bruno@clisp.org>
63679
63680         * modules/safe-read: Add m4/ssize_t.m4.
63681         * modules/xreadlink: Add m4/ssize_t.m4.
63682
63683 2003-06-20  Bruno Haible  <bruno@clisp.org>
63684
63685         Assume C89, so PARAMS isn't needed.
63686         * lib/unicodeio.h (PARAMS): Remove.
63687         * lib/unicodeio.c: Don't use PARAMS.
63688
63689 2003-06-18  Karl Berry  <karl@gnu.org>
63690
63691         * config/config.{guess,sub}: update from prep.
63692
63693 2003-06-18  Jim Meyering  <jim@meyering.net>
63694
63695         Merge changes from coreutils.
63696         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
63697         Remove explicit declarations of xmalloc and realloc.
63698         Include xalloc.h.
63699         (read_utmp): Remove anachronistic cast of xmalloc.
63700
63701 2003-06-17  Paul Eggert  <eggert@twinsun.com>
63702
63703         Assume C89, so PARAMS isn't needed.
63704         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
63705         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
63706         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
63707         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
63708         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
63709         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
63710         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
63711         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
63712         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
63713         lib/xstrtod.h, lib/xstrtol.h: Likewise.
63714         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
63715         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
63716         no longer needed. Anyway, config.h should always be included before any
63717         other file.
63718
63719 2003-06-11  Simon Josefsson  <jas@extundo.com>
63720
63721         * modules/sysexits: New file.
63722         * MODULES.html.sh (func_all_modules): Add sysexits.
63723
63724 2003-06-11  Simon Josefsson  <jas@extundo.com>
63725
63726         * lib/sysexit_.h: New file.
63727
63728 2003-06-11  Derek Price  <derek@ximbiot.com>
63729
63730         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
63731         necessary.
63732
63733 2003-06-11  Bruno Haible  <bruno@clisp.org>
63734
63735         * m4/sysexits.m4: New file.
63736
63737 2003-06-10  Simon Josefsson  <jas@extundo.com>
63738
63739         * lib/argp.h: New file, from glibc.
63740         * lib/argp-ba.c: New file, from glibc.
63741         * lib/argp-eexst.c: New file, from glibc.
63742         * lib/argp-fmtstream.c: New file, from glibc.
63743         * lib/argp-fmtstream.h: New file, from glibc.
63744         * lib/argp-fs-xinl.c: New file, from glibc.
63745         * lib/argp-help.c: New file, from glibc.
63746         * lib/argp-namefrob.h: New file, from glibc.
63747         * lib/argp-parse.c: New file, from glibc.
63748         * lib/argp-pv.c: New file, from glibc.
63749         * lib/argp-pvh.c: New file, from glibc.
63750         * lib/argp-xinl.c: New file, from glibc.
63751
63752 2003-06-10  Simon Josefsson  <jas@extundo.com>
63753
63754         * modules/strchrnul: New file.
63755
63756 2003-06-10  Simon Josefsson  <jas@extundo.com>
63757
63758         * modules/argp: New file.
63759
63760 2003-06-10  Simon Josefsson  <jas@extundo.com>
63761
63762         * m4/strchrnul.m4: New file.
63763
63764 2003-06-10  Simon Josefsson  <jas@extundo.com>
63765
63766         * lib/strchrnul.h: New file.
63767         * lib/strchrnul.c: New file.
63768
63769 2003-06-10  Bruno Haible  <bruno@clisp.org>
63770
63771         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
63772
63773 2003-06-07  Karl Berry  <karl@gnu.org>
63774
63775         * config/config.{guess,sub}: update from prep.
63776
63777 2003-06-07  Jim Meyering  <jim@meyering.net>
63778
63779         * modules/strtod: Use $(...) notation, not @...@ for
63780         AC_REPLACE'd variables.
63781         * modules/localcharset: Likewise.
63782
63783 2003-06-07  Jim Meyering  <jim@meyering.net>
63784
63785         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
63786         in place of my name in the copyright comment.
63787         Remove definition and uses of __P.
63788
63789         From coreutils.
63790         * lib/stat.c: Don't declare xmalloc explicitly.
63791         Instead, include "xalloc.h".
63792         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
63793         xrealloc, and xcalloc return values.
63794         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
63795         Improve comment.
63796         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
63797
63798 2003-06-07  Bruno Haible  <bruno@clisp.org>
63799
63800         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
63801         avoid AC_CONFIG_LINKS.
63802         * modules/fnmatch (Makefile.am): Use explicit creation rule for
63803         fnmatch.h, to avoid AC_CONFIG_LINKS.
63804         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
63805
63806 2003-06-07  Bruno Haible  <bruno@clisp.org>
63807
63808         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
63809         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
63810         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
63811         directory.
63812         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
63813         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
63814         directory.
63815
63816 2003-06-06  Jim Meyering  <jim@meyering.net>
63817
63818         Merge from coreutils.
63819         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
63820         Consolidate declarations and initializations of *_base* locals.
63821
63822         Merge from coreutils.
63823         This avoids a core dump on systems without GNU putenv,
63824         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
63825         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
63826         (unsetenv): New static function, from GNU libc.
63827         (rpl_putenv): Use it.
63828
63829         * lib/modechange.c: Remove trailing blanks.
63830
63831         Merge from coreutils.
63832         * lib/fsusage.c: Remove declaration of statfs.
63833         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
63834
63835         * lib/posixtm.c: Include <stdbool.h> unconditionally.
63836
63837 2003-06-06  Jim Meyering  <jim@meyering.net>
63838
63839         * lib/stdbool_.h: Renamed from stdbool.h.in.
63840
63841 2003-06-06  Jim Meyering  <jim@meyering.net>
63842             Bruno Haible  <bruno@clisp.org>
63843
63844         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
63845         Adjust Makefile.am snippet not to redirect directly to target.
63846         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
63847
63848 2003-06-05  Paul Eggert  <eggert@twinsun.com>
63849
63850         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
63851         mismatch, look in future quarters as well as past.  This fixes a
63852         bug when processing fall-backwards gaps immediately after a long
63853         period of daylight-saving time.
63854
63855         * lib/mktime.c: Assume freestanding C89 or better.
63856         (HAVE_LIMITS_H): Remove.  Assume it's 1.
63857         (__P): Remove; not used.
63858         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
63859         (mktime, not_equal_tm, print_tm, check_result,
63860         main): Use prototypes.  Use const * where appropriate.
63861         (main): Fix typo in testing code that uncovered by above changes.
63862         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
63863
63864 2003-06-04  Paul Eggert  <eggert@twinsun.com>
63865
63866         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
63867         locale.h, localeconv.  This merges changes from coreutils.
63868
63869         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
63870         It can be removed after the next Autoconf is released.
63871         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
63872         needed.
63873
63874 2003-06-04  Paul Eggert  <eggert@twinsun.com>
63875
63876         * lib/mktime.c: Fix Debian bug 177940
63877         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
63878         (localtime_offset): Now long int, not time_t, because we want it
63879         to be guaranteed to be signed.  All uses changed.
63880         (__mktime_internal): If overflow would occur when adding offset,
63881         don't add it.
63882
63883         Merge 'human' changes from coreutils.  Rewrite to support
63884         locale-specific notations like thousands separators.
63885         * lib/human.c: Simplify authorship notice.
63886         Include human.h immediately after config.h.
63887         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
63888         <limits.h>: Do not include, since human.h does.
63889         (SIZE_MAX, UINTMAX_MAX): New macros.
63890         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
63891         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
63892         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
63893         (power_letter): Renamed from suffixes.
63894         (generate_suffix_backwards): Remove.
63895         (adjust_value): Now takes int style (because of human.h changes)
63896         and long double value (for greater precision on some platforms).
63897         (group_number): New function.
63898         (human_readable): Use it.  Use integer options, not enum.
63899         Put the options before the sizes in the arg list.
63900         Support all the new options.
63901         The old human_readable function has been removed;
63902         use inttostr.h instead.
63903         (human_readable, default_block_size, humblock):
63904         Use uintmax_t, not int, for block sizes.
63905         (human_readable_inexact, block_size_types): Remove.
63906         (block_size_opts): New constant.
63907         (human_options): Renamed from human_block_size, with new signature
63908         that allows block sizes up to UINTMAX_MAX.  All callers changed.
63909         * lib/human.h: Add copyright and authorship notice.
63910         Include <limits.h> and <stdbool.h> unconditionally.
63911         (PARAMS): Remove.  All uses removed.
63912         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
63913         (enum human_inexact_style): Remove tag; now a nameless enum.
63914         (human_floor, human_ceiling, human_round_to_even): Now have
63915         values 2, 0, 1 rather than -1, 1, 0.
63916         (human_group_digits, human_suppress_point_zero, human_autoscale,
63917         human_base_1024, human_SI, human_B): New constants.
63918         (human_readable_inexact, human_block_size): Remove.
63919         (human_readable): Size args are now uintmax_t, not int.
63920         (human_options): New decl.
63921
63922         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
63923         unnecessary now that we assume C89 or better.  This change
63924         imported from coreutils.
63925
63926         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
63927         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
63928         in the 2003-05-30 sync from glibc.
63929
63930         .h files should stand alone, but we shouldn't include <sys/types.h>
63931         if we can get away with just <stddef.h>.
63932
63933         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
63934         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
63935         rather than <sys/types.h>, as we merely need size_t.
63936         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
63937         to get size_t.
63938         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
63939         Include <stdio.h>, to get FILE.
63940         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
63941         memcasecmp.h has included <stddef.h> and all we need is size_t.
63942         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
63943         our interface, instead of including <sys/types.h>
63944
63945 2003-06-04  Paul Eggert  <eggert@twinsun.com>
63946
63947         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
63948         now, as glibc mktime is buggy on non-glibc systems.
63949
63950 2003-06-03  Karl Berry  <karl@gnu.org>
63951
63952         * config/config.sub: update from prep.
63953
63954 2003-06-02  Paul Eggert  <eggert@twinsun.com>
63955
63956         [from coreutils]
63957         Fix some minor time-related bugs with POSIX time arguments.
63958         Some valid time stamps were being rejected (notably -1, and
63959         time stamps before 1900 on 64-bit hosts).  And some invalid
63960         time stamps were being accepted, e.g. September 31.
63961
63962         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
63963         that we can return (time_t) -1 successfully.
63964         * lib/posixtm.c: Likewise.
63965         [HAVE_STDBOOL_H]: Include <stdbool.h>.
63966         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
63967         (t): Remove static var.
63968         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
63969         of static var.  All uses changed.
63970         (year): Do not reject years before 1900; they can occur with
63971         64-bit time_t.
63972         (posix_time_parse): Do not check for out-of-range components;
63973         that is now the caller's responsibility, since our checks were
63974         only approximations.
63975         (posixtime): Use mktime to check for out-of-range components,
63976         since it knows them exactly.
63977         If mktime returns (time_t) -1, check whether an error actually occurred
63978         by invoking localtime on -1.
63979         (main) [TEST_POSIXTIME]: Check for input data errors, and report
63980         posixtime failures better.
63981         Improve the test data (in comments only).
63982
63983 2003-06-02  Karl Berry  <karl@gnu.org>
63984
63985         * config/mkinstalldirs (version): new variable.
63986         (--version): new option.
63987         (usage): improve message.
63988
63989 2003-05-30  Karl Berry  <karl@gnu.org>
63990
63991         * lib/mktime.c: update from libc.
63992
63993 2003-05-30  Bruno Haible  <bruno@clisp.org>
63994
63995         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
63996         * config/config.rpath: Upgrade to gettext-0.12.1.
63997
63998 2003-05-30  Bruno Haible  <bruno@clisp.org>
63999
64000         * m4/gettext.m4: Upgrade to gettext-0.12.1.
64001         * m4/nls.m4: New file, from gettext-0.12.1.
64002         * m4/po.m4: New file, from gettext-0.12.1.
64003         * m4/progtest.m4: Upgrade to gettext-0.12.1.
64004
64005 2003-05-30  Bruno Haible  <bruno@clisp.org>
64006
64007         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
64008         * lib/localcharset.h: Likewise.
64009         * lib/localcharset.c: Likewise.
64010
64011 2003-05-29  Karl Berry  <karl@gnu.org>
64012
64013         * config/config.rpath: update from gettext.
64014
64015 2003-05-28  Paul Eggert  <eggert@twinsun.com>
64016
64017         Assume the headers required for C89 freestanding compilers.
64018         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
64019         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
64020         * m4/human.m4 (gl_HUMAN): Likewise.
64021         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
64022         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
64023         * m4/userspec.m4 (gl_USERSPEC): Likewise.
64024         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
64025         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
64026         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
64027
64028 2003-05-28  Paul Eggert  <eggert@twinsun.com>
64029
64030         Assume the headers required for C89 freestanding compilers.
64031         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
64032         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
64033         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
64034         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
64035         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
64036         define, since <limits.h> is guaranteed to do that.
64037         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
64038         * lib/exclude.c: Include <stdbool.h> unconditionally.
64039         * lib/tempname.c: Include <stddef.h> unconditionally.
64040         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
64041         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
64042         <stddef.h> does that.
64043         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
64044         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
64045         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
64046         needed.
64047         * lib/xstrtol.c: Likewise.
64048         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
64049         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
64050
64051         * lib/addext.c (addext): Use assignment rather than cast, to avoid
64052         warnings on some platforms.
64053
64054         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
64055         arbitrarily.
64056
64057 2003-05-26  Jim Meyering  <jim@meyering.net>
64058
64059         Merge in a change from coreutils:
64060         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
64061         that is guaranteed to be `no'.  Use `no_such_member' to indicate
64062         that condition, rather than `-1' which is slightly misleading.
64063         Change the name of the cache variable to have the gl_ prefix.
64064         Prompted by a patch from Richard Dawe for DJGPP.
64065
64066 2003-05-24  Karl Berry  <karl@gnu.org>
64067
64068         * config/config.guess: update from prep.
64069
64070 2003-05-22  Karl Berry  <karl@gnu.org>
64071
64072         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
64073
64074 2003-05-20  Karl Berry  <karl@gnu.org>
64075
64076         * config/config.guess: update from prep.
64077
64078 2003-05-18  Karl Berry  <karl@gnu.org>
64079
64080         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
64081         might actually be set by the user.
64082
64083         * config/depcomp, install-sh, mdate-sh: update from automake.
64084
64085 2003-05-17  Bruno Haible  <bruno@clisp.org>
64086
64087         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
64088         invalid expansion for AC_EGREP_CPP.
64089         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
64090         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
64091         Suggested by Akim Demaille <akim@epita.fr> in
64092         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
64093
64094 2003-05-12  Jim Meyering  <jim@meyering.net>
64095
64096         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
64097         the space-padded-by-default conversion specifiers, %e, %k, %l.
64098
64099 2003-05-12  Bruno Haible  <bruno@clisp.org>
64100
64101         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
64102         the string is longer than 4 KB.
64103
64104 2003-05-11  Karl Berry  <karl@gnu.org>
64105
64106         * config/config.{guess,sub}: update from prep.
64107
64108 2003-05-09  Bruno Haible  <bruno@clisp.org>
64109
64110         * modules/error: Add m4/strerror_r.m4 to file list.
64111
64112 2003-05-03  Bruno Haible  <bruno@clisp.org>
64113
64114         Upgrade to Unicode-4.0.
64115         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
64116         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
64117         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
64118         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
64119         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
64120         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
64121         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
64122         Change width of U+E0100..U+E01EF from 1 to 0.
64123
64124 2003-04-25  Jim Meyering  <jim@meyering.net>
64125
64126         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
64127         of type size_t, not int.
64128
64129 2003-04-25  Bruno Haible  <bruno@clisp.org>
64130
64131         * lib/copy-file.c: Include <stddef.h>, for size_t.
64132
64133 2003-04-21  Paul Eggert  <eggert@twinsun.com>
64134
64135         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
64136         code which expansion is under static control.  Patch imported from
64137         Akim Demaille's patch to Bison; see
64138         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
64139
64140 2003-04-14  Bruno Haible  <bruno@clisp.org>
64141
64142         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
64143
64144 2003-04-11  Jim Meyering  <jim@meyering.net>
64145
64146         Merge changes from Coreutils.
64147
64148         2003-03-22  Jim Meyering  <jim@meyering.net>
64149
64150         * lib/strftime.c (widen): Cast alloca return value to proper type.
64151
64152         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
64153
64154         From GNU libc.
64155         * lib/strftime.c (my_strftime): Handle very large width
64156         specifications for numeric values correctly.  Improve checks for
64157         overflow.
64158
64159         2003-01-19  Jim Meyering  <jim@meyering.net>
64160
64161         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
64162         definitions.
64163         (nl_get_alt_digit) [! defined my_strftime]: Define.
64164         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
64165         _nl_get_alt_digit and _nl_get_walt_digit.
64166
64167         * lib/strftime.c (my_strftime): Merge in locale-related changes from
64168         libc. These changes have no effect outside of _LIBC.
64169
64170 2003-04-10  Bruno Haible  <bruno@clisp.org>
64171
64172         * modules/findprog: New file.
64173         * MODULES.html.sh (func_all_modules): Add it.
64174
64175 2003-04-10  Bruno Haible  <bruno@clisp.org>
64176
64177         * m4/findprog.m4: New file.
64178         * m4/eaccess.m4: New file.
64179
64180 2003-04-10  Bruno Haible  <bruno@clisp.org>
64181
64182         * lib/findprog.h: New file, from GNU gettext.
64183         * lib/findprog.c: New file, from GNU gettext.
64184
64185 2003-04-05  Jim Meyering  <jim@meyering.net>
64186
64187         Merge changes from Coreutils.
64188
64189         * lib/exclude.h (PARAMS): Remove definition and uses.
64190         * lib/exclude.c: Remove uses of `PARAMS'.
64191
64192         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
64193         Add test-cases for DOS filenames. Declare program_name.
64194         (main): Set up program_name.  Patch by Rich Dawe.
64195
64196         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
64197         error from mntctl.
64198         Use mntctl's return value to drive the entry-processing loop, since
64199         we can't rely on the value of the vmt_length member in the last
64200         entry.  On some systems doing so could result in exhausting
64201         virtual memory.  Based in part on a patch from Mike Jetzer.
64202
64203 2003-04-04  Bruno Haible  <bruno@clisp.org>
64204
64205         * modules/linebreak: New file.
64206         * MODULES.html.sh (func_all_modules): Add it.
64207
64208 2003-04-04  Bruno Haible  <bruno@clisp.org>
64209
64210         * m4/linebreak.m4: New file.
64211
64212 2003-04-04  Bruno Haible  <bruno@clisp.org>
64213
64214         * lib/linebreak.h: New file, from GNU gettext.
64215         * lib/linebreak.c: New file, from GNU gettext with slight
64216         modifications.
64217         * lib/lbrkprop.h: New file, from GNU gettext.
64218
64219 2003-04-03  Bruno Haible  <bruno@clisp.org>
64220
64221         * modules/utf8-ucs4: New file.
64222         * modules/utf16-ucs4: New file.
64223         * modules/ucs4-utf8: New file.
64224         * modules/ucs4-utf16: New file.
64225         * MODULES.html.sh (func_all_modules): Add them.
64226
64227 2003-04-03  Bruno Haible  <bruno@clisp.org>
64228
64229         * m4/utf-ucs4.m4: New file.
64230         * m4/ucs4-utf.m4: New file.
64231
64232 2003-04-03  Bruno Haible  <bruno@clisp.org>
64233
64234         * lib/utf8-ucs4.h: New file, from GNU gettext.
64235         * lib/utf16-ucs4.h: New file, from GNU gettext.
64236         * lib/ucs4-utf8.h: New file, from GNU gettext.
64237         * lib/ucs4-utf16.h: New file, from GNU gettext.
64238
64239 2003-04-02  Bruno Haible  <bruno@clisp.org>
64240
64241         * modules/binary-io: New file.
64242         * MODULES.html.sh (func_all_modules): Add it.
64243
64244 2003-04-02  Bruno Haible  <bruno@clisp.org>
64245
64246         * lib/binary-io.h: New file, from GNU gettext.
64247
64248 2003-04-01  Bruno Haible  <bruno@clisp.org>
64249
64250         * modules/pathname: New file.
64251         * MODULES.html.sh (func_all_modules): Add it.
64252
64253 2003-04-01  Bruno Haible  <bruno@clisp.org>
64254
64255         * lib/pathname.h: New file, from GNU gettext.
64256         * lib/concatpath.c: New file, from GNU gettext.
64257
64258 2003-03-30  Bruno Haible  <bruno@clisp.org>
64259
64260         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
64261
64262 2003-03-30  Bruno Haible  <bruno@clisp.org>
64263
64264         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
64265         function chown() doesn't exist.
64266
64267 2003-03-28  Bruno Haible  <bruno@clisp.org>
64268
64269         * modules/copy-file: New file.
64270         * MODULES.html.sh (func_all_modules): Add it.
64271
64272 2003-03-28  Bruno Haible  <bruno@clisp.org>
64273
64274         * m4/copy-file.m4: New file.
64275
64276 2003-03-28  Bruno Haible  <bruno@clisp.org>
64277
64278         * lib/copy-file.h: New file, from GNU gettext.
64279         * lib/copy-file.c: New file, from GNU gettext.
64280
64281 2003-03-18  Jim Meyering  <jim@meyering.net>
64282
64283         * lib/quote.c (quote_n): Fix typo in comment.
64284
64285 2003-03-18  Bruno Haible  <bruno@clisp.org>
64286
64287         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
64288         checking.
64289         * m4/onceonly_2_57.m4: Likewise.
64290
64291 2003-03-17  Bruno Haible  <bruno@clisp.org>
64292
64293         * m4/onceonly.m4: Require autoconf 2.54 or newer.
64294         (m4_quote): Remove macro.
64295         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
64296
64297 2003-03-14  Jim Meyering  <jim@meyering.net>
64298
64299         Merge changes from Coreutils.
64300         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
64301         to be const, in order to avoid warnings.
64302         (obstack_room): Likewise.
64303         (obstack_empty_p): Likewise.
64304
64305 2003-03-14  Bruno Haible  <bruno@clisp.org>
64306
64307         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
64308         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
64309
64310 2003-03-13  Paul Eggert  <eggert@twinsun.com>
64311
64312         Merge changes from Bison.
64313         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
64314         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
64315         when compiling Bison 1.875's `bitset bset = obstack_alloc
64316         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
64317         * lib/hash.c: Include <stdbool.h> unconditionally.
64318
64319 2003-03-13  Paul Eggert  <eggert@twinsun.com>
64320
64321         * m4/onceonly.m4 (m4_quote): New macro.
64322         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
64323         Quote AC_FOREACH variable-expansions properly.
64324
64325 2003-03-13  Paul Eggert  <eggert@twinsun.com>
64326
64327         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
64328
64329 2003-03-09  Paul Eggert  <eggert@twinsun.com>
64330
64331         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
64332         Reported by Bruce Becker; see:
64333         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
64334
64335 2003-03-03  Paul Eggert  <eggert@twinsun.com>
64336             Bruno Haible  <bruno@clisp.org>
64337
64338         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
64339         Reported by John Hughes, see
64340         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
64341
64342 2003-02-20  Bruno Haible  <bruno@clisp.org>
64343
64344         * MODULES.html.sh (func_all_modules): Add poll.
64345
64346 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
64347
64348         * modules/poll: New file.
64349
64350 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
64351
64352         * lib/poll_.h: New file.
64353         * lib/poll.c: New file.
64354
64355 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
64356
64357         * m4/poll.m4: New file.
64358
64359 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
64360
64361         * modules/mathl: New file.
64362
64363 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
64364
64365         * lib/mathl.h: New file.
64366         * lib/acosl.c: New file.
64367         * lib/asinl.c: New file.
64368         * lib/atanl.c: New file.
64369         * lib/ceill.c: New file.
64370         * lib/cosl.c: New file.
64371         * lib/expl.c: New file.
64372         * lib/floorl.c: New file.
64373         * lib/frexpl.c: New file.
64374         * lib/ldexpl.c: New file.
64375         * lib/logl.c: New file.
64376         * lib/sincosl.c: New file.
64377         * lib/sinl.c: New file.
64378         * lib/sqrtl.c: New file.
64379         * lib/tanl.c: New file.
64380         * lib/trigl.c: New file.
64381         * lib/trigl.h: New file.
64382
64383 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
64384
64385         * m4/mathl.m4: New file.
64386
64387 2003-02-18  Bruno Haible  <bruno@clisp.org>
64388
64389         * MODULES.html.sh (func_all_modules): Add mathl.
64390
64391 2003-02-17  Bruno Haible  <bruno@clisp.org>
64392
64393         * modules/mkdtemp: New module.
64394         * MODULES.html.sh (func_all_modules): Add it.
64395
64396 2003-02-17  Bruno Haible  <bruno@clisp.org>
64397
64398         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
64399
64400 2003-02-17  Bruno Haible  <bruno@clisp.org>
64401
64402         * lib/mkdtemp.h: New file, from GNU gettext.
64403         * lib/mkdtemp.c: New file, from GNU gettext.
64404
64405 2003-02-02  Jim Meyering  <jim@meyering.net>
64406
64407         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
64408         e.g. glibc-2.2.93.
64409
64410 2003-01-31  Bruno Haible  <bruno@clisp.org>
64411
64412         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
64413         'rpl_rename'.
64414         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
64415         'rpl_strnlen'.
64416         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
64417         'rpl_strtod'.
64418         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
64419         'rpl_utime'.
64420
64421 2003-01-31  Bruno Haible  <bruno@clisp.org>
64422
64423         * lib/rename.c: #undef rename before defining rpl_rename.
64424         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
64425
64426 2003-01-30  Bruno Haible  <bruno@clisp.org>
64427
64428         * modules/vasnprintf, modules/vasprintf: New modules.
64429         * MODULES.html.sh (func_all_modules): Add them.
64430
64431 2003-01-30  Bruno Haible  <bruno@clisp.org>
64432
64433         * m4/signed.m4: New file, from GNU gettext.
64434         * m4/longdouble.m4: New file, from GNU gettext.
64435         * m4/wchar_t.m4: New file, from GNU gettext.
64436         * m4/wint_t.m4: New file, from GNU gettext.
64437         * m4/vasnprintf.m4: New file.
64438         * m4/vasprintf.m4: New file.
64439
64440 2003-01-30  Bruno Haible  <bruno@clisp.org>
64441
64442         * lib/printf-args.h: New file, from GNU gettext.
64443         * lib/printf-args.c: New file, from GNU gettext.
64444         * lib/printf-parse.h: New file, from GNU gettext.
64445         * lib/printf-parse.c: New file, from GNU gettext.
64446         * lib/vasnprintf.h: New file, from GNU gettext.
64447         * lib/vasnprintf.c: New file, from GNU gettext.
64448         * lib/asnprintf.c: New file, from GNU gettext.
64449         * lib/vasprintf.h: New file, from GNU gettext with modifications.
64450         * lib/vasprintf.c: New file, from GNU gettext.
64451         * lib/asprintf.c: New file, from GNU gettext.
64452
64453 2003-01-29  Bruno Haible  <bruno@clisp.org>
64454
64455         * modules/stpncpy: New module.
64456         * MODULES.html.sh (func_all_modules): Add it.
64457
64458 2003-01-29  Bruno Haible  <bruno@clisp.org>
64459
64460         * m4/stpncpy.m4: New file.
64461
64462 2003-01-29  Bruno Haible  <bruno@clisp.org>
64463
64464         * lib/stpncpy.h: New file, from GNU gettext with modifications.
64465         * lib/stpncpy.c: New file, from GNU gettext with modifications.
64466
64467 2003-01-28  Bruno Haible  <bruno@clisp.org>
64468
64469         * modules/c-ctype: New module.
64470         * MODULES.html.sh (func_all_modules): Add it.
64471
64472 2003-01-28  Bruno Haible  <bruno@clisp.org>
64473
64474         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
64475         Paul Eggert.
64476         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
64477         Paul Eggert.
64478
64479 2003-01-27  Bruno Haible  <bruno@clisp.org>
64480
64481         * modules/xsetenv: New module.
64482         * MODULES.html.sh (func_all_modules): Add it.
64483
64484 2003-01-27  Bruno Haible  <bruno@clisp.org>
64485
64486         * lib/xsetenv.h: New file, from GNU gettext.
64487         * lib/xsetenv.c: New file, from GNU gettext.
64488
64489 2003-01-23  Jim Meyering  <jim@meyering.net>
64490
64491         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
64492         from working on systems without dirfd (at least Irix and OSF1/Tru64).
64493
64494 2003-01-23  Bruno Haible  <bruno@clisp.org>
64495
64496         * modules/minmax: New module.
64497         * MODULES.html.sh (func_all_modules): Add it.
64498
64499 2003-01-23  Bruno Haible  <bruno@clisp.org>
64500
64501         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
64502         Eggert.
64503
64504 2003-01-22  Bruno Haible  <bruno@clisp.org>
64505
64506         * modules/exit: New module.
64507         * MODULES.html.sh (func_all_modules): Add it.
64508
64509 2003-01-22  Bruno Haible  <bruno@clisp.org>
64510
64511         * lib/exit.h: New file, from GNU gettext.
64512
64513 2003-01-19  Bruno Haible  <bruno@clisp.org>
64514
64515         * gnulib-tool: Recognize option --extract-maintainer.
64516         (func_get_maintainer): New function.
64517         * modules/*: Add Maintainer entry.
64518
64519 2003-01-16  Jim Meyering  <jim@meyering.net>
64520
64521         * m4/regex.m4: The `regex' struct is both input and output.
64522         Initialize it before each use.  Patch by Tim Waugh.
64523
64524 2003-01-16  Bruno Haible  <bruno@clisp.org>
64525
64526         * MODULES.html.sh: Add a table of contents. Add the module name as
64527         leftmost column. Add hyperlinks.
64528
64529 2003-01-15  Bruno Haible  <bruno@clisp.org>
64530
64531         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
64532
64533 2003-01-15  Bruno Haible  <bruno@clisp.org>
64534
64535         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
64536         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
64537         suffix.
64538
64539 2003-01-15  Bruno Haible  <bruno@clisp.org>
64540
64541         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
64542
64543 2003-01-15  Bruno Haible  <bruno@clisp.org>
64544
64545         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
64546         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
64547
64548 2003-01-14  Jim Meyering  <jim@meyering.net>
64549
64550         * lib/same.c (same_name): Tweak a comment.
64551
64552 2003-01-14  Bruno Haible  <bruno@clisp.org>
64553
64554         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
64555         when a string comparison is sufficient.
64556
64557 2003-01-14  Bruno Haible  <bruno@clisp.org>
64558
64559         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
64560         'unsigned int'.
64561
64562 2003-01-14  Bruno Haible  <bruno@clisp.org>
64563
64564         * lib/hash-pjw.c: Add comment about low quality of this function.
64565
64566 2003-01-13  Bruno Haible  <bruno@clisp.org>
64567
64568         * modules/stpcpy: Distribute lib/stpcpy.h.
64569         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
64570
64571 2003-01-13  Bruno Haible  <bruno@clisp.org>
64572
64573         * modules/*: Add a description.
64574         * modules/strpbrk: Fix Makefile.am snippet.
64575         * modules/strtoimax: Fix dependencies.
64576         * modules/strtoumax: Likewise.
64577
64578 2003-01-13  Bruno Haible  <bruno@clisp.org>
64579
64580         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
64581         * modules/alloca (Makefile.am): All object files depend on alloca.h.
64582         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
64583
64584 2003-01-13  Bruno Haible  <bruno@clisp.org>
64585
64586         * gnulib-tool (func_create_testdir): Store config/* files in the main
64587         directory.
64588         * config.rpath: Move to ...
64589         * config/config.rpath: ... here.
64590         * modules/gettext: Contains config/config.rpath, not config.rpath.
64591         * modules/iconv: Likewise.
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
64598         * m4/getstr.m4: Remove.
64599         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
64600
64601 2003-01-12  Paul Eggert  <eggert@twinsun.com>
64602
64603         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
64604         to avoid collisions with libcurses and libreadline.
64605
64606         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
64607         * lib/getstr.h, getstr.c: Remove.
64608         * lib/getline.c: Include "getline.h", to check interface.
64609         Move body of old getstr.c here: this defines MIN_CHUNK and
64610         declares getdelim2, which is renamed from getstr.
64611         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
64612
64613         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
64614         All uses changed.
64615         * lib/linebuffer.h: Likewise.
64616         (readline): Remove backward-compatibility macro.
64617
64618 2003-01-12  Paul Eggert  <eggert@twinsun.com>
64619
64620         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
64621         to avoid collisions with libcurses and libreadline.
64622         * getstr: Remove.
64623         * MODULES.html.sh: Remove getstr.
64624         * modules/getline: Depend on unlocked-io, not getstr.
64625
64626 2003-01-12  Jim Meyering  <jim@meyering.net>
64627
64628         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
64629
64630 2003-01-10  Bruno Haible  <bruno@clisp.org>
64631
64632         * modules/alloca: Change Makefile.am requirements. Simplify Include
64633         requirements. Add lib/alloca_.h to file list.
64634
64635 2003-01-10  Bruno Haible  <bruno@clisp.org>
64636
64637         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
64638
64639 2003-01-10  Bruno Haible  <bruno@clisp.org>
64640
64641         * lib/alloca_.h: New file.
64642         * lib/getdate.y: Unconditionally include alloca.h.
64643         * lib/makepath.c: Likewise.
64644         * lib/setenv.c: Likewise.
64645         * lib/userspec.c: Likewise.
64646
64647 2003-01-09  Karl Berry  <karl@gnu.org>
64648
64649         * MODULES.html.sh: include `dirname $0` in PATH, to find
64650         gnulib-tool.
64651
64652 2003-01-09  Bruno Haible  <bruno@clisp.org>
64653
64654         * modules/stdbool: Change configure.ac, Makefile.am requirements.
64655         Simplify Include requirements. Add lib/stdbool.h.in to file list.
64656
64657 2003-01-09  Bruno Haible  <bruno@clisp.org>
64658
64659         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
64660
64661 2003-01-09  Bruno Haible  <bruno@clisp.org>
64662
64663         * lib/stdbool.h.in: New file.
64664
64665 2003-01-09  Bruno Haible  <bruno@clisp.org>
64666
64667         * gnulib-tool (func_all_modules): Ignore files ending in ~.
64668         * MODULES.html.sh: Likewise.
64669
64670 2003-01-08  Jim Meyering  <jim@meyering.net>
64671
64672         * lib/full-write.c: Undefine and define-away `const' after inclusion
64673         of errno.h, not before.  Suggestion from Bruno Haible.
64674
64675 2003-01-08  Bruno Haible  <bruno@clisp.org>
64676
64677         * modules/full-read: Depend on full-write.
64678
64679 2003-01-08  Bruno Haible  <bruno@clisp.org>
64680
64681         * lib/safe-read.c: Include specification header first, to ensure its
64682         selfcontainedness.
64683         * lib/full-write.c: Likewise.
64684
64685 2003-01-07  Jim Meyering  <jim@meyering.net>
64686
64687         * lib/full-write.c: Rework so that it may serve to define full_read,
64688         too.
64689         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
64690
64691 2003-01-07  Bruno Haible  <bruno@clisp.org>
64692
64693         * lib/strtoimax.c: Include <stdint.h> as an alternative to
64694         <inttypes.h>.
64695         * lib/xstrtol.h: Likewise.
64696         * lib/xstrtoimax.c: Likewise.
64697         * lib/xstrtoumax.c: Likewise.
64698         * lib/human.h: Likewise.
64699
64700         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
64701         on systems that have <inttypes.h> but not <stdint.h>.
64702
64703 2003-01-07  Bruno Haible  <bruno@clisp.org>
64704
64705         * MODULES.html.sh: Add copyright notice.
64706         (missed_files): Omit CVS directory entries.
64707         (func_module): Make it work with sed-3.02.
64708         * MODULES.txt: Remove file.
64709
64710 2003-01-06  Jim Meyering  <jim@meyering.net>
64711
64712         * lib/version-etc.c: Update year in translatable copyright string.
64713
64714 2003-01-03  Karl Berry  <karl@gnu.org>
64715
64716         * config/config.{guess,sub}: update from prep.
64717
64718 2003-01-02  Karl Berry  <karl@gnu.org>
64719
64720         * doc/COPYING.DOC: belatedly updated to 1.2.
64721
64722 2003-01-01  Karl Berry  <karl@gnu.org>
64723
64724         * gnulib-tool (func_verify_module): report module name $module in
64725         error message, not $1.
64726         * gnulib-tool (create-testdir): don't complain if destdir couldn't
64727         be created, only if it doesn't exist.
64728         * gnulib-tool (last_checkin_date): don't expand the $Date here.
64729
64730 2002-12-31  Paul Eggert  <eggert@twinsun.com>
64731
64732         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
64733
64734 2002-12-31  Paul Eggert  <eggert@twinsun.com>
64735
64736         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
64737         memcmp if strcoll doesn't work.
64738
64739 2002-12-31  Bruno Haible  <bruno@clisp.org>
64740
64741         * lib/utime.c (utime_null): No need to call ftruncate if the file was
64742         nonempty.
64743
64744 2002-12-31  Bruno Haible  <bruno@clisp.org>
64745
64746         * lib/memcoll.c (STRCOLL): New macro.
64747         (memcoll): Use it.
64748
64749 2002-12-31  Bruno Haible  <bruno@clisp.org>
64750
64751         * lib/localcharset.h: New file.
64752         * lib/localcharset.c: Include it.
64753         * lib/unicodeio.c: Likewise.
64754
64755 2002-12-31  Bruno Haible  <bruno@clisp.org>
64756
64757         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
64758         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
64759
64760 2002-12-31  Bruno Haible  <bruno@clisp.org>
64761
64762         * lib/getline.h: Include <stddef.h>, for size_t.
64763
64764         * lib/unicodeio.h: Include <stddef.h>, for size_t.
64765         * lib/unicodeio.c: Don't include <stddef.h>.
64766
64767 2002-12-31  Bruno Haible  <bruno@clisp.org>
64768
64769         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
64770         HAVE_TM_ZONE.
64771
64772 2002-12-24  Karl Berry  <karl@gnu.org>
64773
64774         * config/config.guess: update from prep.
64775
64776 2002-12-24  Bruno Haible  <bruno@clisp.org>
64777
64778         General infrasructure.
64779         * m4/README: Rewritten.
64780         * m4/onceonly.m4: New file.
64781         * m4/onceonly_2_57.m4: New file.
64782
64783         Module atexit.
64784         * m4/atexit.m4: New file.
64785
64786         Module strtod.
64787         * m4/strtod.m4: New file.
64788
64789         Module strtol.
64790         * m4/strtol.m4: New file.
64791
64792         Module strtoul.
64793         * m4/strtoul.m4: New file.
64794
64795         Module memchr.
64796         * m4/memchr.m4: New file.
64797
64798         Module memcmp.
64799         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
64800         (jm_FUNC_MEMCMP): Invoke it.
64801
64802         Module memcpy.
64803         * m4/memcpy.m4: New file.
64804
64805         Module memmove.
64806         * m4/memmove.m4: New file.
64807
64808         Module memset.
64809         * m4/memset.m4: New file.
64810
64811         Module strcspn.
64812         * m4/strcspn.m4: New file.
64813
64814         Module strpbrk.
64815         * m4/strpbrk.m4: New file.
64816
64817         Module strstr.
64818         * m4/strstr.m4: New file.
64819
64820         Module strerror.
64821         * m4/strerror.m4: New file.
64822
64823         Module mktime.
64824         * m4/mktime.m4: Renamed from jm-mktime.m4.
64825         (gl_PREREQ_MKTIME): New macro.
64826         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
64827
64828         Module malloc.
64829         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
64830         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
64831         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
64832
64833         Module realloc.
64834         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
64835         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
64836         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
64837
64838         Module strftime.
64839         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
64840         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
64841         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
64842         gl_TM_GMTOFF.
64843         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
64844
64845         Module xalloc.
64846         * m4/xalloc.m4: New file.
64847
64848         Module alloca.
64849         * m4/alloca.m4: New file.
64850
64851         Module putenv.
64852         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
64853         (jm_FUNC_PUTENV): Invoke it.
64854
64855         Module setenv.
64856         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
64857         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
64858         when invoked twice.
64859         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
64860         gt_FUNC_SETENV.
64861
64862         Module memrchr.
64863         * m4/memrchr.m4: New file.
64864
64865         Module stpcpy.
64866         * m4/stpcpy.m4: New file.
64867
64868         Module strcase.
64869         * m4/strcase.m4: New file.
64870
64871         Module strdup.
64872         * m4/strdup.m4: New file.
64873
64874         Module strnlen.
64875         * m4/strnlen.m4: New file.
64876
64877         Module strndup.
64878         * m4/strndup.m4: New file.
64879
64880         Module xstrtod.
64881         * m4/xstrtod.m4: New file.
64882
64883         Module xstrtol.
64884         * m4/xstrtol.m4: New file.
64885
64886         Module getdate.
64887         * m4/getdate.m4: New file.
64888
64889         Module unlocked-io.
64890         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
64891         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
64892         * m4/jm-glibc-io.m4n: Remove file.
64893
64894         Module long-options.
64895         * m4/long-options.m4: New file.
64896
64897         Module md5.
64898         * m4/md5.m4: New file.
64899
64900         Module sha.
64901         * m4/sha.m4: New file.
64902
64903         Module getstr.
64904         * m4/getstr.m4: New file.
64905
64906         Module getline.
64907         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
64908         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
64909         <sys/types.h>, for size_t. Use the function name gnu_getline, not
64910         simply getline. Infoke gl_PREREQ_GETLINE.
64911
64912         Module obstack.
64913         * m4/obstack.m4: New file.
64914
64915         Module hash.
64916         * m4/hash.m4: New file.
64917
64918         Module readtokens.
64919         * m4/readtokens.m4: New file.
64920
64921         Module strverscmp.
64922         * m4/strverscmp.m4: New file.
64923
64924         Module stdbool.
64925         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
64926         OSF/1.
64927
64928         Module strtoll.
64929         * m4/strtoll.m4: New file.
64930
64931         Module strtoull.
64932         * m4/strtoull.m4: New file.
64933
64934         Module strtoimax.
64935         * m4/strtoimax.m4: New file.
64936
64937         Module strtoumax.
64938         * m4/strtoumax.m4: New file.
64939
64940         Module xstrtoimax.
64941         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
64942         jm_AC_PREREQ_XSTRTOIMAX.
64943         Moved the strtol prerequisites to strtol.m4.
64944         Moved the strtoll prerequisites to strtoll.m4.
64945         Moved the strtoimax prerequisites to strtoimax.m4.
64946
64947         Module xstrtoumax.
64948         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
64949         jm_AC_PREREQ_XSTRTOUMAX.
64950         Moved the strtoul prerequisites to strtoul.m4.
64951         Moved the strtoull prerequisites to strtoull.m4.
64952         Moved the strtoumax prerequisites to strtoumax.m4.
64953
64954         Module chown.
64955         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
64956         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
64957
64958         Module dup2.
64959         * m4/dup2.m4: New file.
64960
64961         Module ftruncate.
64962         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
64963         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
64964
64965         Module getgroups.
64966         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
64967         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
64968
64969         Module gettimeofday.
64970         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
64971         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
64972         gl_PREREQ_GETTIMEOFDAY.
64973
64974         Module mkdir.
64975         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
64976         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
64977
64978         Module mkstemp.
64979         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
64980         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
64981         jm_AC_TYPE_UINTMAX_T.
64982         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
64983
64984         Module stat.
64985         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
64986         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
64987
64988         Module lstat.
64989         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
64990         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
64991
64992         Module timespec.
64993         * m4/timespec.m4 (gl_TIMESPEC): New macro.
64994         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
64995         * m4/st_mtim.m4: Indentation.
64996
64997         Module nanosleep.
64998         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
64999         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
65000         gl_PREREQ_NANOSLEEP.
65001
65002         Module regex.
65003         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
65004         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
65005         (gl_REGEX): New macro.
65006
65007         Module rename.
65008         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
65009         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
65010
65011         Module rmdir.
65012         * m4/rmdir.m4: New file.
65013
65014         Module utime.
65015         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
65016         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
65017         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
65018
65019         Module dirname.
65020         * m4/dirname.m4: New file.
65021
65022         Module getopt.
65023         * m4/getopt.m4: New file.
65024
65025         Module unistd-safer.
65026         * m4/unistd-safer.m4: New file.
65027
65028         Module fnmatch.
65029         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
65030         declaration.
65031         (gl_PREREQ_FNMATCH_EXTRA): New macro.
65032         (gl_FUNC_FNMATCH_POSIX): New macro.
65033         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
65034         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
65035         simply fnmatch.
65036
65037         Module exclude.
65038         * m4/exclude.m4: New file.
65039
65040         Module human.
65041         * m4/human.m4: New file.
65042
65043         Module acl.
65044         * m4/acl.m4: Nop.
65045
65046         Module backupfile.
65047         * m4/backupfile.m4: New file.
65048         * m4/d-ino.m4: Indentation.
65049
65050         Module fsusage.
65051         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
65052         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
65053         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
65054
65055         Module dirfd.
65056         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
65057         requirements.
65058
65059         Module euidaccess.
65060         * m4/euidaccess.m4: New file.
65061
65062         Module file-type.
65063         * m4/file-type.m4: New file.
65064
65065         Module fileblocks.
65066         * m4/fileblocks.m4: New file.
65067
65068         Module filemode.
65069         * m4/filemode.m4: New file.
65070
65071         Module isdir.
65072         * m4/isdir.m4: New file.
65073
65074         Module lchown.
65075         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
65076         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
65077
65078         Module makepath.
65079         * m4/makepath.m4: New file.
65080
65081         Module modechange.
65082         * m4/modechange.m4: New file.
65083
65084         Module mountlist.
65085         * m4/mountlist.m4: New file.
65086         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
65087         Indentation.
65088
65089         Module path-concat.
65090         * m4/path-concat.m4: New file.
65091
65092         Module pathmax.
65093         * m4/pathmax.m4: New file.
65094
65095         Module same.
65096         * m4/same.m4: New file.
65097
65098         Module save-cwd.
65099         * m4/save-cwd.m4: New file.
65100
65101         Module savedir.
65102         * m4/savedir.m4: New file.
65103
65104         Module xgetcwd.
65105         * m4/xgetcwd.m4: New file.
65106         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
65107
65108         Module xreadlink.
65109         * m4/xreadlink.m4: New file.
65110
65111         Module safe-read.
65112         * m4/safe-read.m4: New file.
65113
65114         Module safe-write.
65115         * m4/safe-write.m4: New file.
65116
65117         Module closeout.
65118         * m4/closeout.m4: New file.
65119
65120         Module stdio-safer.
65121         * m4/stdio-safer.m4: New file.
65122
65123         Module getpass.
65124         * m4/getpass.m4: New file.
65125
65126         Module getugroups.
65127         * m4/getugroups.m4: New file.
65128
65129         Module group-member.
65130         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
65131         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
65132
65133         Module idcache.
65134         * m4/idcache.m4: New file.
65135
65136         Module userspec.
65137         * m4/userspec.m4: New file.
65138
65139         Module gettime.
65140         * m4/clock_time.m4: New file.
65141         * m4/gettime.m4: New file.
65142
65143         Module settime.
65144         * m4/settime.m4: New file.
65145
65146         Module posixtm.
65147         * m4/posixtm.m4: New file.
65148
65149         Module gethostname.
65150         * m4/gethostname.m4: New file.
65151
65152         Module canon-host.
65153         * m4/canon-host.m4: New file.
65154
65155         Module gettext.
65156         * m4/codeset.m4: New file, from gettext-0.11.5.
65157         * m4/gettext.m4: New file, from gettext-0.11.5.
65158         * m4/glibc21.m4: New file, from gettext-0.11.5.
65159         * m4/iconv.m4: New file, from gettext-0.11.5.
65160         * m4/intdiv0.m4: New file, from gettext-0.11.5.
65161         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
65162         * m4/inttypes.m4: New file, from gettext-0.11.5.
65163         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
65164         * m4/isc-posix.m4: New file, from gettext-0.11.5.
65165         * m4/lcmessage.m4: New file, from gettext-0.11.5.
65166         * m4/lib-ld.m4: New file, from gettext-0.11.5.
65167         * m4/lib-link.m4: New file, from gettext-0.11.5.
65168         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
65169         * m4/progtest.m4: New file, from gettext-0.11.5.
65170         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
65171         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
65172         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
65173
65174         Module localcharset.
65175         * m4/localcharset.m4: New file.
65176
65177         Module hard-locale.
65178         * m4/hard-locale.m4: New file.
65179
65180         Module mbswidth.
65181         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
65182         onceonly macros.
65183         * m4/mbrtowc.m4: Add comment.
65184
65185         Module memcasecmp.
65186         * m4/memcasecmp.m4: New file.
65187
65188         Module memcoll.
65189         * m4/memcoll.m4: New file.
65190
65191         Module unicodeio.
65192         * m4/unicodeio.m4: New file.
65193
65194         Module rpmatch.
65195         * m4/rpmatch.m4: New file.
65196
65197         Module yesno.
65198         * m4/yesno.m4: New file.
65199
65200         Module exitfail.
65201         * m4/exitfail.m4: New file.
65202
65203         Module c-stack.
65204         * m4/c-stack.m4 (gl_C_STACK): New macro.
65205         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
65206
65207         Module error.
65208         * m4/error.m4 (gl_ERROR): New macro.
65209         (jm_PREREQ_ERROR): Use onceonly macros.
65210
65211         Module fatal.
65212         * m4/fatal.m4: New file.
65213
65214         Module getloadavg.
65215         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
65216         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
65217
65218         Module getpagesize.
65219         * m4/getpagesize.m4: New file.
65220
65221         Module getusershell.
65222         * m4/getusershell.m4: New file.
65223
65224         Module physmem.
65225         * m4/physmem.m4: New file.
65226
65227         Module posixver.
65228         * m4/posixver.m4: New file.
65229
65230         Module quotearg.
65231         * m4/quotearg.m4: New file.
65232
65233         Module quote.
65234         * m4/quote.m4: New file.
65235
65236         Module readutmp.
65237         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
65238
65239         Module sig2str.
65240         * m4/sig2str.m4: New file.
65241
65242         Other.
65243         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
65244         ulonglong.m4.
65245         * m4/intmax_t.m4: New file.
65246         * m4/d-type.m4: Indentation.
65247         * m4/jm-macros.m4: Update.
65248         * m4/prereq.m4 (jm_PREREQ): Update.
65249         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
65250         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
65251         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
65252         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
65253         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
65254         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
65255         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
65256         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
65257         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
65258         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
65259         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
65260         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
65261         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
65262         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
65263         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
65264         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
65265         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
65266         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
65267         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
65268
65269 2002-12-24  Bruno Haible  <bruno@clisp.org>
65270
65271         * MODULES.txt: Update according to m4/ changes.
65272
65273         Module gettext.
65274         * config.rpath: New file, from gettext-0.11.5.
65275
65276         * modules/*: New module descriptions.
65277         * gnulib-tool: New file.
65278         * MODULES.html.sh: New file.
65279
65280 2002-12-21  Karl Berry  <karl@gnu.org>
65281
65282         * doc/fdl.texi: update to version 1.2.
65283
65284 2002-12-19  Karl Berry  <karl@gnu.org>
65285
65286         * config/config.guess: update from prep.
65287
65288 2002-12-18  Bruno Haible  <bruno@clisp.org>
65289
65290         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
65291         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
65292
65293 2002-12-17  Bruno Haible  <bruno@clisp.org>
65294
65295         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
65296         stdlib.h, string.h.
65297
65298 2002-12-17  Bruno Haible  <bruno@clisp.org>
65299
65300         * lib/canon-host.c (strdup): Remove unused declaration.
65301
65302         * lib/fsusage.c: Include full_read.h.
65303         (get_fs_usage): Use full_read instead of safe_read.
65304
65305         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
65306
65307 2002-12-12  Karl Berry  <karl@gnu.org>
65308
65309         * config/config.guess: update from prep.
65310
65311 2002-12-11  Bruno Haible  <bruno@clisp.org>
65312
65313         * m4/setenv.m4: New file, from gettext-0.11.5.
65314
65315 2002-12-11  Bruno Haible  <bruno@clisp.org>
65316
65317         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
65318         not unsetenv().
65319         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
65320         modifications:
65321
65322         2002-12-11  Bruno Haible  <bruno@clisp.org>
65323
65324                 * setenv.c (alloca): Fall back to malloc.
65325                 (freea): New macro.
65326                 (setenv): Use freea() to free memory allocated with alloca().
65327
65328         2002-11-13  Bruno Haible  <bruno@clisp.org>
65329
65330                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
65331                 function declarations.
65332                 * unsetenv.c (unsetenv): Likewise.
65333
65334         2002-03-04  Bruno Haible  <bruno@clisp.org>
65335
65336                 Portability to AIX 4.3.3.
65337                 * unsetenv.c: New file, extracted from setenv.c.
65338                 * setenv.c: Move the unsetenv() function to unsetenv.c.
65339
65340         2001-12-20  Bruno Haible  <bruno@clisp.org>
65341
65342                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
65343                 use malloc instead. For SunOS 4.
65344
65345         2001-12-11  Bruno Haible  <bruno@clisp.org>
65346
65347                 * setenv.c: Declare alloca.
65348                 (compar_fn_t): New typedef.
65349                 (KNOWN_VALUE, STORE_VALUE): Use it.
65350
65351         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
65352         setenv.h.
65353
65354 2002-12-10  Paul Eggert  <eggert@twinsun.com>
65355
65356         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
65357         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
65358         Choose values that are less likely to collide with system fnmatch
65359         options.
65360         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
65361         defined (e.g., a pure POSIX system).
65362         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
65363         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
65364
65365 2002-12-06  Paul Eggert  <eggert@twinsun.com>
65366
65367         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
65368         a pain in practice to deal with generated m4 files.  This change
65369         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
65370
65371         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
65372         and jm-glibc-io.m4, as they are no longer a special case.
65373         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
65374         kludge and the auto-generation stuff.  Check only whether the
65375         functions are declared, not whether they exist, since older hosts
65376         that don't declare the functions can't use the optimization anyway.
65377
65378 2002-12-06  Jim Meyering  <jim@meyering.net>
65379
65380         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
65381
65382         Merge in changes from libc's misc/error.c, in preparation
65383         for the merge of gnulib's changes back into libc.
65384
65385         * lib/error.c (_): Define only if not already defined.
65386         Move definition to follow all #include directives.
65387         Include unlocked-io.h only if !_LIBC.
65388         [_LIBC]: Include <libio/libioP.h>.
65389         [USE_IN_LIBIO]: Include <libio/iolibio.h>
65390         (fflush): Tweak definition to use INTUSE.
65391         (putc): Define.
65392
65393 2002-12-05  Paul Eggert  <eggert@twinsun.com>
65394
65395         * lib/alloca.c [defined emacs]: Include "lisp.h".
65396         (xalloc_die) [defined emacs]: New macro.
65397         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
65398         [! defined emacs]: Include <xalloc.h>.
65399         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
65400         (pointer): Typedef to POINTER_TYPE *.
65401         (malloc): Remove decl; we now always use xmalloc.
65402         (alloca): Use old-style definition, since Emacs needs this.
65403         Check for arithmetic overflow when computing combined size.
65404
65405 2002-12-04  Paul Eggert  <eggert@twinsun.com>
65406
65407         Do not generate unlocked-io.h automatically, since it's easier to
65408         maintain it by hand.
65409
65410         * lib/unlocked-io.h: New file, from GNU diffutils,
65411         but with proper copyright notice and attribution.
65412         * lib/gen-uio: Remove.
65413         * lib/Makefile.am: Add copyright notice.
65414         (libfetish_a_SOURCES): Add unlocked-io.h.
65415         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
65416         (DISTCLEANFILES, io_functions): Remove macros.
65417         (EXTRA_DIST): Remove gen_uio.
65418         (unlocked-io.h): Remove rule.
65419
65420 2002-12-04  Jim Meyering  <jim@meyering.net>
65421
65422         Reflect the fact that stat.c and lstat.c are no longer generated.
65423         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
65424         (DISTCLEANFILES): Likewise.
65425         (EXTRA_DIST): Likewise.
65426         (all_local): Don't depend on stat.c or lstat.c.
65427         (stat.c, lstat.c): Remove rules.
65428         (EXTRA_DIST): Remove xstat.in.
65429
65430         * lib/xstat.in: Remove file.  Contents moved into stat.c.
65431         * lib/stat.c: New file.  Contents mostly from xstat.in.
65432         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
65433         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
65434
65435         * lib/safe-read.c: Rework so that it may serve to define safe_write,
65436         too.
65437         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
65438
65439 2002-12-03  Jim Meyering  <jim@meyering.net>
65440
65441         * lib/safe-read.c, safe-write.c: Change variable names and comments,
65442         but not semantics, to minimize the differences between these two files.
65443         (safe_read): Change comment to mention SAFE_READ_ERROR.
65444
65445         * lib/safe-read.c (IS_EINTR): Define.
65446         (safe_read): Use IS_EINTR in place of in-function cpp directives.
65447
65448 2002-12-02  Jim Meyering  <jim@meyering.net>
65449
65450         * lib/safe-read.c (EINTR): Define.
65451         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
65452         (INT_MAX): Provide fallback.
65453         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
65454
65455         * lib/safe-read.h (SAFE_READ_ERROR): Define.
65456
65457 2002-12-02  Bruno Haible  <bruno@clisp.org>
65458
65459         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
65460         Define, taken from safe-read.c.
65461         (INT_MAX): Provide fallback.
65462         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
65463         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
65464
65465         * lib/safe-read.c (EINTR): Remove definition.
65466         (safe_read): Don't use EINTR if it is absent.
65467
65468 2002-12-01  Jim Meyering  <jim@meyering.net>
65469
65470         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
65471         zero.
65472         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
65473
65474 2002-11-27  Paul Eggert  <eggert@twinsun.com>
65475
65476         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
65477         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
65478         with `if (! (value < limit)) abort ();', for readability.
65479
65480 2002-11-26  Karl Berry  <karl@gnu.org>
65481
65482         * lib/strdup.c: copy from libc again, with jim's ok.
65483         * lib/.cppi-disable: re-add strdup.c
65484
65485 2002-11-25  Karl Berry  <karl@gnu.org>
65486
65487         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
65488         instead of "strtol.c".
65489
65490 2002-11-25  Karl Berry  <karl@gnu.org>
65491
65492         * config/install-sh: update from automake for variable quoting, $0 in
65493         error msgs, etc.
65494
65495         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
65496         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
65497         entry.
65498
65499 2002-11-25  Jim Meyering  <jim@meyering.net>
65500
65501         * lib/mktime.c: Sync from libc, now that it has the latest fix.
65502
65503 2002-11-24  Karl Berry  <karl@gnu.org>
65504
65505         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
65506         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
65507
65508 2002-11-24  Jim Meyering  <jim@meyering.net>
65509
65510         Update from coreutils:
65511
65512         * lib/mktime.c: Merge in changes from libc.
65513
65514         Avoid a link-time failure on some Linux systems.
65515         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
65516         (otherwise).
65517         (__mon_yday): Declare with the STATIC attribute.
65518         (__mktime_internal): Likewise.
65519         Based on a report from Greg Schafer.
65520
65521 2002-11-23  Jim Meyering  <jim@meyering.net>
65522
65523         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
65524         Use `unsigned', not `int', as type of index.
65525
65526         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
65527
65528         * lib/fsusage.c: Remove unneeded parentheses around operands of
65529         `defined'.
65530
65531 2002-11-22  Paul Eggert  <eggert@twinsun.com>
65532
65533         * lib/quotearg.h: Allow multiple inclusion by surrounding with
65534         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
65535         so that we can be included first.
65536         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
65537         * lib/quotearg.c: Include quotearg.h immediately after config.h.
65538         No need to include stddef.h or sys/types.h any more.
65539         Surround local include files with "", not "<>".
65540         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
65541         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
65542         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
65543         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
65544         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
65545         (ISPRINT): Remove; no longer needed now that we assume C89.
65546
65547         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
65548         Preserve errno.
65549
65550         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
65551         quotearg_char): Use SIZE_MAX rather than
65552         (size_t) -1 when we are talking about "infinity".
65553
65554         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
65555
65556 2002-11-22  Paul Eggert  <eggert@twinsun.com>
65557
65558         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
65559         hint that one should use `if (! x) abort ();' rather than `assert
65560         (x);', and anyway it's one less thing to worry about configuring.
65561         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
65562         hash_rehash, hash_insert): Use abort rather than assert.
65563
65564 2002-11-22  Bruno Haible  <bruno@clisp.org>
65565
65566         * lib/safe-read.h: Assume C89. Add comments.
65567         (safe_read): Change return type to size_t.
65568         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
65569         byte counts > SSIZE_MAX correctly.
65570         * lib/safe-write.h: New file.
65571         * lib/safe-write.c: New file.
65572         * lib/full-read.h: New file.
65573         * lib/full-read.c: New file.
65574         * lib/full-write.h: Assume C89. Add comments.
65575         * lib/full-write.c: Include safe-write.h.
65576         (full_write): Rewritten to use safe_write.
65577         Suggested by Jim Meyering and Paul Eggert.
65578
65579 2002-11-21  Jim Meyering  <jim@meyering.net>
65580
65581         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
65582
65583         Merge in changes from the coreutils.
65584
65585         2002-09-25  Paul Eggert  <eggert@twinsun.com>
65586         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
65587         <stdint.h>.
65588         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
65589         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
65590         int.  Work more efficiently if X is the same width as uintmax_t.
65591         Do not compare X to -1, to avoid bogus compiler warning.
65592         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
65593         Don't assume that f_frsize and f_bsize are the same type.
65594
65595         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
65596         warning on FreeBSD.
65597
65598         * lib/makepath.c (make_path): Restore umask *before* creating the final
65599         component.
65600         (make_path): Minor reformatting.
65601
65602         * lib/xmalloc.c: Adjust to work with new autoconf macros,
65603         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
65604         HAVE_MALLOC/HAVE_REALLOC.
65605
65606         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
65607         dummy ones.  At least on GNU/Linux systems, `auto' means something
65608         else.
65609         From Michael Stone.
65610
65611 2002-11-21  Bruno Haible  <bruno@clisp.org>
65612
65613         Remove case insensitive option matching.
65614         * lib/argmatch.h (argcasematch): Remove declaration.
65615         (ARGCASEMATCH): Remove macro.
65616         (__xargmatch_internal): Remove case_sensitive argument.
65617         (XARGMATCH): Update.
65618         (XARGCASEMATCH): Remove macro.
65619         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
65620         case_sensitive argument.
65621         (argcasematch): Remove function.
65622         (__xargmatch_internal): Remove case_sensitive argument.
65623         (main): Use XARGMATCH instead of XARGCASEMATCH.
65624
65625         * lib/xmalloc.c: Change compile-time error message. Add comment about
65626         required autoconf version.
65627
65628 2002-11-20  Paul Eggert  <eggert@twinsun.com>
65629
65630         Merge argmatch cleanups from Bison.  Assume C89.
65631
65632         * lib/argmatch.c: Include config.h here, not in argmatch.h.
65633         Include stdlib.h, for EXIT_FAILURE.
65634         Always include <string.h>, since we assume C89.
65635         (EXIT_FAILURE): Remove pre-C89 bug workaround.
65636         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
65637         Include <stddef.h> instead, since it's all we need for size_t.
65638         (PARAMS): Remove.  All uses removed.
65639         (ARRAY_CARDINALITY): Do not bother to #undef.
65640         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
65641         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
65642         Remove unnecessary parentheses.
65643         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
65644         Insert necessary parentheses.
65645         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
65646         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
65647
65648 2002-11-19  Bruno Haible  <bruno@clisp.org>
65649
65650         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
65651         * lib/mbswidth.h: Include <stddef.h>, for size_t.
65652
65653         * lib/mbswidth.h (PARAMS): Remove macro.
65654         (mbswidth, mbsnwidth): Use ANSI C function declarations.
65655         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
65656
65657         * lib/gcd.h (PARAMS): Remove macro.
65658         (gcd): Use ANSI C function declarations.
65659         * lib/gcd.c (gcd): Likewise.
65660
65661 2002-11-15  Bruno Haible  <bruno@clisp.org>
65662
65663         * lib/strcspn.c: Include <stddef.h>.
65664         (strcspn): Use ANSI C function declaration. Change return type to
65665         size_t. Use NULL.
65666         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
65667         (strpbrk): Use NULL.
65668         * lib/strpbrk.h (PARAMS): Remove macro.
65669         (strpbrk): Use ANSI C function declaration.
65670         * lib/strstr.c: Don't include <sys/types.h>.
65671         * lib/strstr.h (PARAMS): Remove macro.
65672         (strstr): Use ANSI C function declarations.
65673
65674 2002-11-14  Karl Berry  <karl@gnu.org>
65675
65676         * config/mkinstalldirs: `do' on separate line, instead of
65677         `for var; do'.
65678
65679 2002-11-06  Bruno Haible  <bruno@clisp.org>
65680
65681         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
65682         * lib/gcd.c (gcd): Likewise.
65683
65684 2002-11-05  Bruno Haible  <bruno@clisp.org>
65685
65686         * lib/gcd.h: New file, from gettext-0.11.5.
65687         * lib/gcd.c: New file, from gettext-0.11.5.
65688
65689 2002-11-05  Bruno Haible  <bruno@clisp.org>
65690
65691         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65692         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65693         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65694         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65695
65696         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
65697         <libintl.h>.
65698         * lib/makepath.c: Include gettext.h instead of <locale.h> and
65699         <libintl.h>.
65700
65701         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
65702         * lib/human.c: Include gettext.h instead of <libintl.h>.
65703         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
65704         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
65705         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
65706         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
65707         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
65708         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
65709         (textdomain): Remove definition.
65710         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
65711
65712         * lib/long-options.c: Remove include of <libintl.h> and definition of
65713         _.
65714         * lib/same.c: Remove include of <libintl.h> and definition of _.
65715
65716 2002-11-04  Owen Taylor  <otaylor@redhat.com>
65717
65718         * lib/config.charset: A few additions for Solaris.
65719
65720 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
65721
65722         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
65723         * lib/localcharset.c (locale_charset): Declare as extern "C".
65724
65725 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
65726
65727         * lib/config.charset: msdos in uk_UA uses CP1125.
65728
65729 2002-11-04  Bruno Haible  <bruno@clisp.org>
65730
65731         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
65732         * lib/strcase.h: New file, from GNU gettext-0.11.5.
65733         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
65734         * lib/strstr.h: New file, from GNU gettext-0.11.5.
65735         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
65736
65737 2002-11-04  Bruno Haible  <bruno@clisp.org>
65738
65739         * lib/localcharset.c (locale_charset): Don't return an empty string.
65740
65741 2002-11-04  Bruno Haible  <bruno@clisp.org>
65742
65743         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
65744         aliases.
65745
65746 2002-11-04  Bruno Haible  <bruno@clisp.org>
65747
65748         * lib/config.charset: Update for newest glibc. Add canonical names
65749         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
65750
65751 2002-11-04  Bruno Haible  <bruno@clisp.org>
65752
65753         * lib/config.charset: Add support for NetBSD.
65754
65755 2002-11-04  Bruno Haible  <bruno@clisp.org>
65756
65757         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
65758
65759 2002-11-01  Bruno Haible  <bruno@clisp.org>
65760
65761         * configure.in: Add AC_CONFIG_AUX_DIR call.
65762         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
65763         test/Makefile.
65764         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
65765
65766 2002-09-28  Karl Berry  <karl@gnu.org>
65767
65768         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
65769         installed automake until the next release, since changes have been
65770         made.
65771
65772 2002-09-25  Karl Berry  <karl@gnu.org>
65773
65774         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
65775         * lib/getopt*: copy from libc/posix.
65776         * lib/gettext.h: copy from gettext.
65777         * lib/.cppi-disable: add strdup.c, gettext.h.
65778
65779 2002-09-25  Karl Berry  <karl@gnu.org>
65780
65781         * config/srclist.txt: enable gettext.h check.
65782         * config/config.{guess,sub}: update from prep.
65783         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
65784                 from automake 1.6.3.
65785         See srclist*.
65786
65787 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
65788
65789         * regex.c (PATFETCH): Remove the translating fetch.
65790         (PATFETCH_RAW): Rename to PATFETCH.
65791         (set_image_of_range): New fun.
65792         (SET_RANGE_TABLE_WORK_AREA): Use it.
65793         (regex_compile): Don't translate the pattern chars so eagerly.
65794         Only do it when inserting an `exactn' bytecode or when handling
65795         a char-range.
65796         (mutually_exclusive_p): Avoid empty statement.
65797
65798 2002-07-06  Jim Meyering  <meyering@lucent.com>
65799
65800         * m4/README: Don't mention Makefile.am.in.
65801         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
65802
65803 2002-07-01  Jim Meyering  <meyering@lucent.com>
65804
65805         * lib/c-stack.c: Include sys/time.h.
65806         From Volker Borchert.
65807
65808 2002-06-26  Paul Eggert  <eggert@twinsun.com>
65809
65810         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
65811
65812 2002-06-26  Paul Eggert  <eggert@twinsun.com>
65813
65814         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
65815         New macro.  Use it uniformly instead of
65816         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
65817         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
65818         reported by Vin Shelton.
65819
65820 2002-06-22  Paul Eggert  <eggert@twinsun.com>
65821
65822         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
65823         Do not assume SA_SIGINFO behavior.
65824         Bug reported by Jim Meyering on NetBSD 1.5.2.
65825
65826 2002-06-22  Jim Meyering  <meyering@lucent.com>
65827
65828         * m4/c-stack.m4: New file, from diffutils-2.8.2.
65829         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
65830
65831         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
65832         now that configure.ac uses AC_GNU_SOURCE.
65833         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
65834         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
65835
65836         Update to latest tools.  Suggestions from Paul Eggert.
65837         * m4/stdbool.m4: New file, from diffutils-2.8.2.
65838         * m4/gnu-source.m4: Update from diffutils-2.8.2.
65839         * m4/fnmatch.m4: Likewise.
65840         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
65841         to AC_HEADER_STDBOOL
65842
65843 2002-06-22  Jim Meyering  <meyering@lucent.com>
65844
65845         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
65846         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
65847
65848 2002-06-22  Jim Meyering  <meyering@lucent.com>
65849
65850         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
65851
65852         * lib/exitfail.c, exitfail.h: Likewise.
65853         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
65854
65855         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
65856         of fnmatch.h.
65857         (EXTRA_DIST): Add fnmatch_loop.c.
65858         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
65859
65860         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
65861         * lib/fnmatch.c: Update from diffutils-2.8.2.
65862         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
65863         * lib/fnmatch.h: Remove file.
65864
65865 2002-06-21  Jim Meyering  <meyering@lucent.com>
65866
65867         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
65868         * m4/mbrtowc.m4: Likewise.
65869
65870         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
65871         * m4/mbswidth.m4: Reflect name change:
65872         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
65873         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
65874
65875         * m4/lib-link.m4: Update from gettext-0.11.2.
65876         * m4/gettext.m4: Likewise.
65877
65878         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
65879         From Alfred M. Szmidt.
65880
65881 2002-06-18  Paul Eggert  <eggert@twinsun.com>
65882
65883         * lib/file-type.h: Report an error if neither S_ISREG nor
65884         S_IFREG is defined, instead of using a test specific to glibc
65885         2.2.  This should be safe, since POSIX requires S_ISREG and
65886         Unix Version 7 had S_IFREG.  We don't need to check for
65887         <sys/types.h> since we don't use any symbols that it defines.
65888
65889 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
65890
65891         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
65892         $@-t, so that each temporary file name is unique and valid in the first
65893         8 characters, for operation under DOS.
65894
65895 2002-06-15  Paul Eggert  <eggert@twinsun.com>
65896
65897         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
65898
65899 2002-06-15  Jim Meyering  <meyering@lucent.com>
65900
65901         Work even with DJGPP 2.03, which lacks support for symlinks.
65902         From Richard Dawe.
65903         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
65904         is defined.
65905         * lib/lchown.c (S_ISLNK): Likewise.
65906
65907 2002-06-15  Jim Meyering  <meyering@lucent.com>
65908
65909         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
65910         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
65911         have been included before this file.
65912
65913 2002-06-14  Jim Meyering  <meyering@lucent.com>
65914
65915         * lib/file-type.h: Use the version from diffutils-2.8.2.
65916         * lib/file-type.c: Likewise.
65917
65918 2002-06-07  Jim Meyering  <meyering@lucent.com>
65919
65920         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
65921         They're needed at least for NetBSD 1.5.2.
65922         ($statxfs_includes): Include those same headers.
65923         ($statxfs_includes): Include sys/vfs.h if available.
65924         ($statxfs_includes): Likewise for sys/statvfs.h.
65925         Check for the following members in both structs statfs and statvfs:
65926         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
65927
65928 2002-06-01  Jim Meyering  <meyering@lucent.com>
65929
65930         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
65931         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
65932
65933 2002-05-28  Jim Meyering  <meyering@lucent.com>
65934
65935         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
65936         Reported by Volker Borchert.
65937
65938 2002-05-27  Jim Meyering  <meyering@lucent.com>
65939
65940         Fix a problem seen only on nonconforming systems whereby ls.c's
65941         use of localtime, and then of gettimeofday would cause trouble:
65942         the localtime call used to initialize rpl_gettimeofday's save
65943         mechanism would clobber ls's current local time information so
65944         that in any long listing the first file would always be listed
65945         with date 1970-01-01.  Analysis by Volker Borchert.
65946
65947         * lib/gettimeofday.c (localtime): Undefine.
65948         (rpl_localtime): New function.
65949
65950 2002-05-27  Jim Meyering  <meyering@lucent.com>
65951
65952         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
65953         localtime.
65954
65955         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
65956         use the replacement function; it wouldn't resolve at link time.
65957         Reported by Volker Borchert.
65958
65959 2002-05-22  Jim Meyering  <meyering@lucent.com>
65960
65961         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
65962         file-type.h.
65963         * lib/file-type.h: New file.
65964         * lib/file-type.c (file_type): New file/function.  Extracted from
65965         diffutils.
65966
65967 2002-04-30  Jim Meyering  <meyering@lucent.com>
65968
65969         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
65970
65971 2002-04-29  Paul Eggert  <eggert@twinsun.com>
65972
65973         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
65974
65975 2002-04-29  Paul Eggert  <eggert@twinsun.com>
65976
65977         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
65978         Do not check for alloca.h (no longer used) or stdbool.h (was never
65979         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
65980
65981 2002-04-29  Paul Eggert  <eggert@twinsun.com>
65982
65983         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
65984
65985 2002-04-29  Jim Meyering  <meyering@lucent.com>
65986
65987         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
65988         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
65989         Use AC_FUNC_STRNLEN here instead.
65990
65991         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
65992         With autoconf-2.53a, it's part of AC_PROG_CC.
65993
65994 2002-04-28  Paul Eggert  <eggert@twinsun.com>
65995
65996         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
65997         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
65998
65999 2002-04-28  Paul Eggert  <eggert@twinsun.com>
66000
66001         * lib/sig2str.h, lib/sig2str.c: New files.
66002         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
66003
66004 2002-04-28  Paul Eggert  <eggert@twinsun.com>
66005
66006         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
66007         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
66008         of 127, since 64 is the largest conceivable number for ancient
66009         nonstandard hosts.
66010         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
66011
66012 2002-04-28  Jim Meyering  <meyering@lucent.com>
66013
66014         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
66015
66016 2002-04-24  Jim Meyering  <meyering@lucent.com>
66017
66018         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
66019         (jm_PREREQ): Use it.
66020
66021         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
66022         mach/mach.h fcntl.h.
66023         Check for this function: setlocale.
66024
66025 2002-04-24  Jim Meyering  <meyering@lucent.com>
66026
66027         * lib/gettext.h: New file, from Gettext.
66028         * lib/Makefile.am (INCLUDES): Remove -I../intl.
66029         (libfetish_a_SOURCES): Add gettext.h.
66030
66031 2002-04-16  Jim Meyering  <meyering@lucent.com>
66032
66033         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
66034         ut_pid, ut_id, ut_exit.
66035
66036 2002-04-16  Jim Meyering  <meyering@lucent.com>
66037
66038         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
66039         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
66040         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
66041
66042 2002-04-12  Jim Meyering  <meyering@lucent.com>
66043
66044         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
66045         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
66046         existence of the getmntinfo function.  Needed for Darwin 5.3.
66047
66048         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
66049         This is necessary at least on Darwin 5.3.
66050
66051         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
66052         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
66053         strnlen.o in the library, and that makes some versions of ranlib
66054         object.
66055
66056 2002-04-12  Jim Meyering  <meyering@lucent.com>
66057
66058         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
66059
66060 2002-04-09  Jim Meyering  <meyering@lucent.com>
66061
66062         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
66063         to be more precise.  Rather than saying we're checking whether the
66064         function `works', say what we're testing.
66065         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
66066         Reported by Bruno Haible.
66067
66068 2002-03-10  Jim Meyering  <meyering@lucent.com>
66069
66070         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
66071         Suggestion from Santiago Vila.
66072
66073 2002-03-08  Jim Meyering  <meyering@lucent.com>
66074
66075         * lib/rename.c: Mention that this wrapper is needed also on
66076         mips-dec-ultrix4.4 systems.
66077
66078 2002-03-02  Jim Meyering  <meyering@lucent.com>
66079
66080         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
66081         not HAVE_CLOCK_SETTIME.
66082
66083 2002-02-27  Paul Eggert  <eggert@twinsun.com>
66084
66085         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
66086         Check for clock_settime.
66087
66088 2002-02-27  Paul Eggert  <eggert@twinsun.com>
66089
66090         * lib/nanosleep.h: Rename to....
66091         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
66092
66093         * lib/gettime.c: New file.
66094         * lib/settime.c: New file.
66095         * lib/stime.c: Remove.
66096
66097         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
66098         timespec.h.  Remove nanosleep.h.
66099
66100 2002-02-25  Paul Eggert  <eggert@twinsun.com>
66101
66102         * m4/acl.m4: New file.
66103         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
66104         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
66105
66106 2002-02-25  Paul Eggert  <eggert@twinsun.com>
66107
66108         * lib/acl.c, lib/acl.h: New files.
66109         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
66110
66111 2002-02-24  Jim Meyering  <meyering@lucent.com>
66112
66113         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
66114         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
66115         cause trouble.  Reported by Nelson Beebe.
66116
66117 2002-02-23  Paul Eggert  <eggert@twinsun.com>
66118
66119         * lib/path-concat.c (xpath_concat): Reorder code to pacify
66120         compilers that don't know that xalloc_die never returns.
66121
66122 2002-02-20  Jim Meyering  <meyering@lucent.com>
66123
66124         * lib/getdate.c: Regenerate using bison-1.33.
66125
66126 2002-02-17  Jim Meyering  <meyering@lucent.com>
66127
66128         * config/config.guess (main): Don't use `head -1'; it's no longer
66129         portable. Use `sed 1q' instead.
66130
66131 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
66132
66133         * m4/codeset.m4: Upgrade to gettext-0.11.
66134         * m4/gettext.m4: Upgrade to gettext-0.11.
66135         * m4/glibc21.m4: Upgrade to gettext-0.11.
66136         * m4/iconv.m4: Upgrade to gettext-0.11.
66137         * m4/isc-posix.m4: Upgrade to gettext-0.11.
66138         * m4/lcmessage.m4: Upgrade to gettext-0.11.
66139         * m4/lib-ld.m4: New file, from gettext-0.11.
66140         * m4/lib-link.m4: New file, from gettext-0.11.
66141         * m4/lib-prefix.m4: New file, from gettext-0.11.
66142         * m4/progtest.m4: Upgrade to gettext-0.11.
66143
66144 2002-02-15  Paul Eggert  <eggert@twinsun.com>
66145
66146         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
66147         (jm_PREREQ): Use it.
66148
66149 2002-02-15  Paul Eggert  <eggert@twinsun.com>
66150
66151         * lib/posixver.c, lib/posixver.h: New files.
66152         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
66153
66154 2002-02-02  Paul Eggert  <eggert@twinsun.com>
66155             Bruno Haible  <bruno@clisp.org>
66156
66157         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
66158         (fwrite_success_callback): New declaration.
66159         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
66160         print_unicode_char. Call failure callback instead of error.
66161         (fwrite_success_callback): New function.
66162         (exit_failure_callback): New function.
66163         (fallback_failure_callback): New function.
66164         (print_unicode_char): Call unicode_to_mb.
66165
66166 2002-01-26  Jim Meyering  <meyering@lucent.com>
66167
66168         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
66169         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
66170
66171 2002-01-26  Jim Meyering  <meyering@lucent.com>
66172
66173         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
66174
66175 2002-01-22  Paul Eggert  <eggert@twinsun.com>
66176
66177         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
66178
66179 2002-01-22  Jim Meyering  <meyering@lucent.com>
66180
66181         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
66182         Otherwise, some versions of automake would omit the rule that makes
66183         Makefile from Makefile.in.
66184
66185 2002-01-21  Paul Eggert  <eggert@twinsun.com>
66186
66187         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
66188         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
66189         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
66190         (memcoll): Set errno to zero if there is no error.
66191
66192         * lib/quotearg.c (quotearg_buffer_restyled):
66193         Fix bug with quoting buffers containing NUL when backslashing escapes.
66194         This bug was exposed by the other changes in this patch.
66195         (quotearg_n_options): New arg ARGSIZE.
66196         All callers changed.
66197         (quoting_options_from_style): New function.
66198         (quotearg_n_style): Use it.
66199         (quotearg_n_style_mem): New function.
66200
66201         * lib/quotearg.h (quotearg_n_style_mem): New function.
66202
66203 2002-01-19  Jim Meyering  <meyering@lucent.com>
66204
66205         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
66206         Remove useless quotes: DF_PROG="df".
66207         * m4/strnlen.m4: New file.
66208
66209 2002-01-16  Paul Eggert  <eggert@twinsun.com>
66210
66211         * lib/backupfile.c (ISDIGIT): Comment fix.
66212         * lib/getdate.y (ISDIGIT): Likewise.
66213         * lib/posixtm.c (ISDIGIT, year): Likewise.
66214         * lib/strverscmp.c (ISDIGIT): Likewise.
66215         * lib/userspec.c (ISDIGIT): Likewise.
66216
66217 2002-01-16  Jim Meyering  <meyering@lucent.com>
66218
66219         * lib/getdate.y: Add three semicolons, each just before a closing
66220         brace. Bison (as of version 1.31) no longer papers over that mistake.
66221
66222 2002-01-05  Jim Meyering  <meyering@lucent.com>
66223
66224         * lib/version-etc.c (version_etc_copyright): Update copyright year.
66225
66226 2001-12-19  Paul Eggert  <eggert@twinsun.com>
66227
66228         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
66229         not silently exit merely because the output buffer happens to
66230         have nothing pending.
66231
66232 2001-12-18  Paul Eggert  <eggert@twinsun.com>
66233
66234         See the big note in ../ChangeLog.
66235         * lib/human.c (suffixes): Prefer K to k for 1024.
66236         (generate_suffix_backwards): New function.
66237         (human_readable_inexact): Use it.
66238         * lib/xstrtol.c (__xstrtol): If there is no number but there
66239         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
66240         Accept 'K' as well as 'k'.
66241
66242 2001-12-15  Jim Meyering  <meyering@lucent.com>
66243
66244         * lib/regex.h (__restrict_arr): Update from libc.
66245
66246         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
66247         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
66248         (STREQ): Define.
66249
66250 2001-12-14  Jim Meyering  <meyering@lucent.com>
66251
66252         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
66253         Suggestion from Bruno Haible.
66254
66255 2001-12-10  Jim Meyering  <meyering@lucent.com>
66256
66257         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
66258         xrealloc, Instead, include "xalloc.h".
66259         (initbuffer): Don't cast xmalloc return value to char*.
66260         (readline): Reword comment.
66261         Don't cast xrealloc return value to char*
66262         Return NULL, not 0.
66263
66264 2001-12-09  Jim Meyering  <meyering@lucent.com>
66265
66266         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
66267         about `signed and unsigned type in conditional expression'.
66268         * lib/posixtm.c (posix_time_parse): Likewise.
66269
66270         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
66271
66272         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
66273         to avoid a pedantic warning.
66274
66275         * lib/getstr.c: Don't include assert.h.
66276         (getstr): Remove warning-evoking assertions.
66277         Return -1 if offset parameter is out of bounds.
66278         Change the type of a local from int to size_t.
66279
66280         * lib/strftime.c (my_strftime_localtime_r): Include this function
66281         definition in the `#if ! HAVE_TM_GMTOFF' block.
66282
66283         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
66284         Include xalloc.h instead.
66285
66286 2001-12-02  Jim Meyering  <meyering@lucent.com>
66287
66288         * lib/tempname.c: Don't declare getenv, thus reverting the change of
66289         2001-11-18.  It's no longer necessary, now that stdlib.h is always
66290         included.
66291
66292         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
66293         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
66294
66295 2001-11-30  Akim Demaille  <akim@epita.fr>
66296
66297         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
66298         before being defined.
66299
66300 2001-11-27  Paul Eggert  <eggert@twinsun.com>
66301
66302         * lib/quotearg.h (quotearg_n, quotearg_n_style):
66303         First arg is int, not unsigned.
66304         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
66305         (SIZE_MAX, UINT_MAX): New macros.
66306         (quotearg_n_options): Abort if N is negative.
66307         Avoid overflow check on hosts where size_t is 64 bits and int
66308         is 32 bits, as overflow is impossible there.
66309         Fix off-by-one typo that caused unnecessary reallocation.
66310
66311 2001-11-27  Jim Meyering  <meyering@lucent.com>
66312
66313         * lib/tempname.c: Merge with version from libc.
66314         * lib/regex.c: Likewise.
66315
66316         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
66317         systems for which STDC_HEADERS is 0, it was not included, resulting in
66318         a warning about an integer-to-pointer conversion problem with getenv.
66319         Reported by Volker Borchert.
66320
66321 2001-11-26  Jim Meyering  <meyering@lucent.com>
66322
66323         * lib/gtod.h: Remove file.
66324         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
66325         * lib/gettimeofday.c: Don't include gtod.h.
66326         (GTOD_init): Remove function.
66327         (rpl_gettimeofday): Do its job here instead, rather than aborting.
66328         Suggestion from Volker Borchert.
66329
66330 2001-11-23  Jim Meyering  <meyering@lucent.com>
66331
66332         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
66333         it.
66334         * lib/hash.c (struct hash_table): Define it here instead.
66335
66336 2001-11-22  Jim Meyering  <meyering@lucent.com>
66337
66338         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
66339
66340 2001-11-20  Jim Meyering  <meyering@lucent.com>
66341
66342         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
66343         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
66344
66345 2001-11-19  Jim Meyering  <meyering@lucent.com>
66346
66347         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
66348         directory.  Use "conftestXXXXXX" as the template.
66349         Suggestion from Paul Eggert.
66350
66351         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
66352         immediately, so the test doesn't mistakenly hit the max-open-files
66353         limit.
66354
66355 2001-11-18  Paul Eggert  <eggert@twinsun.com>
66356
66357         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
66358         (TEMPORARIES): New macro.
66359         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
66360         removes an artificial limitation (e.g. HP-UX 10.20, where
66361         TMP_MAX is 17576).
66362
66363 2001-11-18  Jim Meyering  <meyering@lucent.com>
66364
66365         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
66366
66367 2001-11-18  Jim Meyering  <meyering@lucent.com>
66368
66369         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
66370         on SunOS 4.
66371
66372         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
66373         files will be created before anything else.
66374
66375 2001-11-17  Paul Eggert  <eggert@twinsun.com>
66376
66377         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
66378         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
66379
66380 2001-11-17  Jim Meyering  <meyering@lucent.com>
66381
66382         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
66383         Prompted by a report from Bob Proulx.
66384
66385         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
66386         Instead, require UTILS_FUNC_MKSTEMP.
66387
66388 2001-11-17  Jim Meyering  <meyering@lucent.com>
66389
66390         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
66391         Now, that's done as part of AC_FUNC_STRTOD.
66392
66393 2001-11-17  Jim Meyering  <meyering@lucent.com>
66394
66395         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
66396         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
66397         rather than group writable.  Patch by Juan F. Codagnone.
66398
66399         * lib/readtokens.c: Remove explicit declarations of xmalloc and
66400         xrealloc, Instead, include "xalloc.h".
66401
66402         * lib/mountlist.c: Include unlocked-io.h after all system headers.
66403         Remove explicit declarations of xmalloc, xrealloc,
66404         and xstrdup.  Instead, include "xalloc.h".
66405
66406         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
66407         unlocked-io.h.
66408         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
66409         Likewise.
66410         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
66411
66412         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
66413         Reported by Padraig Brady.
66414
66415         * lib/mkstemp.c: #undef mkstemp.
66416         Include config.h.
66417         (rpl_mkstemp): Rename from mkstemp.
66418         Protoize.
66419
66420 2001-11-16  Jim Meyering  <meyering@lucent.com>
66421
66422         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
66423         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
66424         determine the amount of total physical memory, use pstat_getstatic.
66425         HPUX-11 doesn't define _SC_PHYS_PAGES.
66426         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
66427         If sysconf couldn't be used to determine the amount of available
66428         physical memory, use both pstat_getstatic and pstat_getdynamic.
66429         Based on a patch from Bob Proulx.
66430
66431 2001-11-10  Jim Meyering  <meyering@lucent.com>
66432
66433         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
66434         (jm_PREREQ): Use it.
66435
66436 2001-11-09  Jim Meyering  <meyering@lucent.com>
66437
66438         * m4/jm-macros.m4: Require autoconf-2.52f.
66439         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
66440         Use these AC_-prefixed names, not the AM_-prefixed ones.
66441
66442         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
66443
66444 2001-11-05  Jim Meyering  <meyering@lucent.com>
66445
66446         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
66447
66448 2001-11-04  Jim Meyering  <meyering@lucent.com>
66449
66450         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
66451         $DEFS.
66452
66453 2001-11-03  Jim Meyering  <meyering@lucent.com>
66454
66455         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
66456         of AC_DEFUN.
66457
66458         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
66459         know the name of the variable in the macro definition.
66460
66461 2001-11-03  Jim Meyering  <meyering@lucent.com>
66462
66463         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
66464         in argmatch_to_argument call.
66465
66466         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
66467         argument.
66468
66469         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
66470         e.g., a fault due to an attempt to free a NULL pointer.
66471
66472 2001-11-01  Jim Meyering  <meyering@lucent.com>
66473
66474         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
66475         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
66476
66477 2001-11-01  Jim Meyering  <meyering@lucent.com>
66478
66479         * lib/dirfd.c, lib/dirfd.h: New files.
66480         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
66481
66482         * lib/hash.c (hash_print) [TESTING]: Clean up.
66483
66484 2001-10-22  Paul Eggert  <eggert@twinsun.com>
66485
66486         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
66487         to avoid a warning if -Wall.
66488
66489 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
66490
66491         * README: New file
66492         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
66493         (per RMS's instructions, this is now the canonical source)
66494         * lgpl/, gpl/: New directories.
66495
66496 2001-10-21  Paul Eggert  <eggert@twinsun.com>
66497
66498         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
66499
66500 2001-10-21  Jim Meyering  <meyering@lucent.com>
66501
66502         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
66503         this code would end up calling gettext even in packages built
66504         with --disable-nls.
66505         * lib/getopt.c (_): Likewise.
66506         * lib/regex.c (_): Likewise.
66507
66508 2001-10-20  Paul Eggert  <eggert@twinsun.com>
66509
66510         * m4/error.m4 (jm_PREREQ_ERROR):
66511         Do not invoke AC_CHECK_FUNCS with strerror_r, as
66512         AC_FUNC_STRERROR_R does that.
66513         Check for strerror declaration.
66514
66515         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
66516         are supposed to have them these days.
66517         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
66518         Merge changes from latest Autoconf CVS.
66519         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
66520         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
66521         POSIX decided to standardize on the int flavor of strerror_r.
66522
66523 2001-10-20  Paul Eggert  <eggert@twinsun.com>
66524
66525         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
66526         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
66527         Use strerror_r that is only a macro, even if it is not a function.
66528         (strerror): Check for HAVE_DECL_STRERROR before declaring.
66529         (private_strerror): Use prototypes, not old-style function definition.
66530         (print_errno_message): New function.
66531         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
66532         char*-flavored one.
66533         (error_tail, error, error_at_line): Use it.
66534
66535 2001-10-11  Jim Meyering  <meyering@lucent.com>
66536
66537         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
66538         and quote_n (1, ... to avoid clobbering a buffer.
66539
66540 2001-10-05  Jim Meyering  <meyering@lucent.com>
66541
66542         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
66543         hash-pjw.h.
66544         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
66545         * lib/hash-pjw.h: New file.
66546
66547 2001-09-30  Jim Meyering  <meyering@lucent.com>
66548
66549         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
66550         `struct fsstat' has the `f_fstypename' member.
66551         Use that to define FS_TYPE, which is now used to make
66552         the getfsstat link test tighter.
66553
66554 2001-09-30  Jim Meyering  <meyering@lucent.com>
66555
66556         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
66557         Include <sys/ucred.h>, for Apple Darwin.
66558         Include sys/mount.h and sys/fs_types.h only if available.
66559         (FS_TYPE): Define.
66560         (read_filesystem_list): Use FS_TYPE.
66561
66562 2001-09-29  Paul Eggert  <eggert@twinsun.com>
66563
66564         * lib/exclude.c (excluded_filename): 0 -> false, since it's
66565         a boolean context.
66566
66567 2001-09-29  Jim Meyering  <meyering@lucent.com>
66568
66569         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
66570         [one-argument getmntent function]): Include stdio.h before mntent.h.
66571         SunOS 4.1.x needs it for the declaration of `FILE'.
66572         Patch by Volker Borchert.
66573
66574         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
66575         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
66576         sys/fs_types.h, and make the link-test for getfsstat guard #include
66577         directives with appropriate #if HAVE_*_H tests so that we can
66578         detect getfsstat on Apple Darwin1.3.7 systems.
66579         Reported by Nelson Beebe.
66580         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
66581
66582 2001-09-28  Paul Eggert  <eggert@twinsun.com>
66583
66584         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
66585         #defines strtoimax.  Also treat the other strto* functions
66586         like strtoimax.
66587
66588         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
66589         Check for strtoul and strtoumax,
66590         as those declarations are made even in the signed case.
66591         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
66592         Likewise, for strtol and strtoimax.
66593
66594 2001-09-28  Paul Eggert  <eggert@twinsun.com>
66595
66596         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
66597         #defines strtoimax.  Also treat the other strto* functions
66598         like strtoimax.
66599
66600         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
66601         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
66602         (strtoimax, strtoumax): Do not declare if already defined as a macro.
66603
66604 2001-09-26  Jim Meyering  <meyering@lucent.com>
66605
66606         Most macros in unlocked-io.h had the wrong number of arguments.
66607         * lib/gen-uio: New script.
66608         (USE_UNLOCKED_IO): Define to 1 if not already defined.
66609         * lib/unlocked-io.hin: Remove file.
66610         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
66611         rather than trying to embed it here.
66612         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
66613         Reported by Padraig Brady.
66614
66615 2001-09-25  Volker Borchert  <bt@teknon.de>
66616
66617         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
66618         `result'.
66619
66620 2001-09-24  Jim Meyering  <meyering@lucent.com>
66621
66622         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
66623
66624 2001-09-23  Jim Meyering  <meyering@lucent.com>
66625
66626         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
66627         instead of the mere test for existence of mntent.h.  The latter
66628         would get a false-positive on AIX 3.4 systems.
66629         In the outer getmntent if-block, don't die if neither of the getmntent
66630         tests succeeds.  Instead, just fall through and continue with the
66631         remaining tests.
66632
66633 2001-09-23  Jim Meyering  <meyering@lucent.com>
66634
66635         * lib/mountlist.c: Remove useless parentheses in #if directives.
66636         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
66637         the deprecated MOUNTED symbol is no longer defined in mntent.h.
66638
66639 2001-09-22  Jim Meyering  <meyering@lucent.com>
66640
66641         * m4/gettext.m4: New file.  From gettext.
66642         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
66643         * m4/progtest.m4: Likewise
66644         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
66645         * m4/glibc21.m4: Likewise.
66646
66647         * m4/libintl.m4: Remove.  No longer used.
66648
66649 2001-09-22  Jim Meyering  <meyering@lucent.com>
66650
66651         * lib/localcharset.c: Update from latest gettext.
66652         * lib/config.charset: Likewise.
66653
66654 2001-09-20  Jim Meyering  <meyering@lucent.com>
66655
66656         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
66657         strtoimax.
66658         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
66659         strtoumax.
66660
66661 2001-09-20  Jim Meyering  <meyering@lucent.com>
66662
66663         * lib/xstrtol.c (strtoimax): Guard declaration with
66664         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
66665         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
66666         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
66667         (strtoumax): Likewise, for completeness (it wasn't necessary).
66668
66669 2001-09-17  Paul Eggert  <eggert@twinsun.com>
66670
66671         * lib/strtoimax.c (HAVE_LONG_LONG):
66672         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
66673         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
66674         to work around bug in IBM C compiler.
66675
66676 2001-09-17  Jim Meyering  <meyering@lucent.com>
66677
66678         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
66679         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
66680         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
66681         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
66682         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
66683         whenever the right hand side need not be expanded by the shell.
66684
66685 2001-09-16  Paul Eggert  <eggert@twinsun.com>
66686
66687         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
66688         library.  It's not correct, as some older glibcs are buggy.
66689         fnmatch wasn't fixed until glibc 2.2.
66690
66691         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
66692         special shell magic here.
66693
66694 2001-09-16  Jim Meyering  <meyering@lucent.com>
66695
66696         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
66697         * m4/jm-macros.m4: Require it.
66698
66699 2001-09-16  Jim Meyering  <meyering@lucent.com>
66700
66701         * lib/mkdir.c: New file.
66702
66703 2001-09-15  Jim Meyering  <meyering@lucent.com>
66704
66705         * m4/jm-macros.m4: Check for help2man.
66706
66707 2001-09-11  Jim Meyering  <meyering@lucent.com>
66708
66709         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
66710         The body, by Paul Eggert, was moved here from configure.in.
66711         * m4/jm-macros.m4: Require UTILS_HOST_OS.
66712
66713 2001-09-04  Paul Eggert  <eggert@twinsun.com>
66714
66715         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
66716         (jm_PREREQ): Use it.
66717
66718 2001-09-04  Paul Eggert  <eggert@twinsun.com>
66719
66720         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
66721         Use ssize_t, not int, to store result of readlink.
66722         Check for ssize_t overflow as well as size_t overflow,
66723         as POSIX says the result of readlink is implementation-defined
66724         when ssize_t overflows.
66725         Remove unnecessary cast to char*.
66726         Use free+malloc instead of realloc, as the storage doesn't need
66727         to be preserved and it's clearer and can be more efficient that way.
66728         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
66729         * lib/xreadlink.h (xreadlink): Update prototype.
66730
66731 2001-09-04  Paul Eggert  <eggert@twinsun.com>
66732
66733         * lib/xgetcwd.c: Revert some of the previous change; intead,
66734         fix the HAVE_GETCWD_NULL code to behave more like the
66735         !HAVE_GETCWD_NULL code used to.
66736
66737         Include "xalloc.h".
66738         (xgetcwd): Do not return NULL when memory is exhausted; instead,
66739         invoke xalloc_die.
66740
66741 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66742
66743         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
66744         sys/param.h, as pathmax.h includes them.
66745
66746 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66747
66748         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
66749         (jm_PREREQ_XGETCWD): New macro.
66750
66751         * m4/getcwd.m4: New file.
66752
66753 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66754
66755         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
66756         like the HAVE_GETCWD_NULL code.
66757         Include pathmax.h if not HAVE_GETCWD.
66758         Do not include xalloc.h.
66759         (INITIAL_BUFFER_SIZE): New symbol.
66760         Do not use xmalloc / xrealloc, since the caller is responsible for
66761         handling errors.  Preserve errno around `free' during failure.
66762         Do not overrun buffer when using getwd.
66763
66764 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66765
66766         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
66767         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
66768         getcwd (NULL, 0).
66769
66770 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66771
66772         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
66773         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
66774         spotted by Jim Meyering.
66775
66776 2001-09-03  Jim Meyering  <meyering@lucent.com>
66777
66778         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
66779         failure.
66780
66781 2001-09-02  Jim Meyering  <meyering@lucent.com>
66782
66783         * lib/error.c: Update from GNU libc.
66784
66785 2001-09-01  Jim Meyering  <meyering@lucent.com>
66786
66787         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
66788         Used by df.
66789
66790 2001-09-01  Jim Meyering  <meyering@lucent.com>
66791
66792         * lib/xreadlink.c: New file.
66793         * lib/xreadlink.h: New file.
66794         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
66795         xreadlink.h.
66796
66797         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
66798         doesn't conflict with sparc Solaris 7's definition in
66799         /usr/include/sys/int_types.h.
66800
66801         * lib/exclude.c: Use `""', not `<>' to #include non-system header
66802         files.
66803         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
66804         and strncasecmp as r-values.  Unixware didn't have declarations.
66805
66806 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66807
66808         * lib/xstrtol.h: Add copyright notice.
66809         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
66810         LONGINT_INVALID_SUFFIX_CHAR.
66811
66812 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66813
66814         * lib/xstrtol.c (strtoimax): New decl.
66815
66816 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66817
66818         * lib/xgetcwd.c: Don't include pathmax.h.
66819         Include stdlib.h and unistd.h if available.
66820         Include xalloc.h.
66821         (xmalloc, xstrdup, free): Remove decls.
66822         (xgetcwd): Don't assume sizes fit in unsigned.
66823         Check for overflow when computing sizes.
66824         Simplify reallocation code.
66825
66826 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66827
66828         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
66829         a directory's st_size can have an arbitrary value, so the old
66830         usage could waste an arbitrary amount of memory.  All uses
66831         changed.
66832         * lib/savedir.h: Update prototype.
66833
66834 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66835
66836         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
66837
66838         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
66839         old strtoimax.c.
66840
66841         Also, make the following further changes to make this file's
66842         configuration more similar to that of strtol.c:
66843         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
66844         (strtoumax, uintmax_t, strtoull, strtol): Remove.
66845         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
66846         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
66847         changed to signed values.
66848
66849         And make the following changes as well:
66850         Fix copyright notice, as 1999 was missing.
66851         (verify): New macro.
66852         (strtoimax): Check sizes at compile-time, not run-time.
66853         Prefer strtol to strtoll if both work.
66854         (main): Remove; it was not that useful and was a pain to maintain.
66855
66856         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
66857
66858 2001-08-31  Jim Meyering  <meyering@lucent.com>
66859
66860         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
66861         Use an initial, malloc'd, buffer of length 128 rather than
66862         a statically allocated one of length 1024.
66863
66864 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66865
66866         Simplify code, partly by assuming autoconf 2.52 semantics.
66867
66868         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
66869
66870         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
66871         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
66872         All uses removed.
66873         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
66874         Move AC_REQUIRE to next-to-top level, to avoid confusion.
66875         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
66876         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
66877         jm_AC_HEADER_INTTYPES_H.
66878         * m4/jm-macros.m4 (jm_MACROS): Likewise.
66879
66880         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
66881
66882         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
66883         Quote first arg of AC_DEFUN.
66884         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
66885         since they are needed to parse the include file even if we need
66886         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
66887         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
66888         but with opposite signedness.
66889
66890 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66891
66892         Merge 'exclude' changes from tar 1.13.22.
66893         This fixes one or two unlikely storage allocation overflow bugs,
66894         but doesn't change user-visible behavior otherwise.
66895
66896 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66897
66898         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
66899         (jm_PREREQ_EXCLUDE): New macro.
66900
66901 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66902
66903         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
66904         tm to be declared.
66905
66906 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66907
66908         * lib/hash.c: Remove '2001' from copyright notice.
66909
66910 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66911
66912         * lib/full-write.h: New file.
66913         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
66914         * lib/full-write.c: Correct credits, as cccp.c no longer
66915         exists and anyway it was so heavily changed from the old cccp
66916         code as to be unrecognizable.  Include full-write.h.
66917         (full_write) Return size_t, with short writes meaning failure.
66918         All callers changed.  This fixes a bug with large buffers
66919         on 64-bit hosts.
66920         * lib/utime.c: Include full-write.h.
66921
66922 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66923
66924         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
66925         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
66926         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
66927         Include if available.
66928         (<xalloc.h>): Include
66929         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
66930         (verify): New macro.  Use it to verify that EXCLUDE macros do not
66931         collide with FNM macros.
66932         (struct patopts): New struct.
66933         (struct exclude): Use it, as exclude patterns now come with options.
66934         (new_exclude): Support above changes.
66935         (new_exclude, add_exclude_file):
66936         Initial size must now be a power of two to simplify overflow checking.
66937         (free_exclude, fnmatch_no_wildcards): New function.
66938         (excluded_filename): No longer requires options arg, as the options
66939         are determined by add_exclude.  Now returns bool, not int.
66940         (excluded_filename, add_exclude):
66941         Add support for the fancy new exclusion options.
66942         (add_exclude, add_exclude_file): Now takes int options arg.
66943         Check for arithmetic overflow when computing sizes.
66944         (add_exclude_file): xrealloc might modify errno, so don't
66945         realloc until after errno might be used.
66946
66947         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
66948         New macros.
66949         (free_exclude): New decl.
66950         (add_exclude, add_exclude_file): Now takes int options arg.
66951         (excluded_filename): No longer requires options arg, as the options
66952         are determined by add_exclude.  Now returns bool, not int.
66953
66954 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66955
66956         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
66957
66958 2001-08-27  Jim Meyering  <meyering@lucent.com>
66959
66960         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
66961
66962         * lib/version-etc.c (N_): Remove definition.
66963         Revert most of last change.
66964         Instead, simply don't mark the `Copyright...' string for translation.
66965         Based on advice from Paul Eggert.
66966
66967         * lib/strtoxmax.c: Tweak comment.
66968
66969 2001-08-26  Jim Meyering  <meyering@lucent.com>
66970
66971         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
66972
66973         * m4/xstrtoimax.m4: New file.
66974         * m4/xstrtoumax.m4: Add comments explaining why we
66975         AC_REPLACE_FUNCS(strtol).
66976
66977 2001-08-26  Jim Meyering  <meyering@lucent.com>
66978
66979         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
66980         of copyright with `%s' so translators don't get an untranslated
66981         message in 2002.
66982         (COPYRIGHT_YEAR): Define.
66983         (version_etc): Use fprintf rather than fputs.
66984         Suggestion from Ulrich Drepper.
66985
66986         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
66987
66988         * lib/strtoll.c: New file, from GNU libc.
66989         * lib/xstrtoimax.c: New file.
66990
66991         * lib/xstrtol.h: Add xstrtoimax.
66992         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
66993         * lib/strtoimax.c: New file.  Likewise, but first define
66994         STRTOUXMAX_SIGNED.
66995
66996         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
66997         ...
66998         * lib/strtoxmax.c: ... then renamed to this.
66999
67000 2001-08-18  Paul Eggert  <eggert@twinsun.com>
67001
67002         * m4/inttypes.m4: Add AC_PREREQ(2.13).
67003         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
67004         (jm_AC_TYPE_INTMAX_T): New macro.
67005         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
67006
67007         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
67008
67009         * m4/longlong.m4: Renamed from ulonglong.m4.
67010         * m4/inttypes.m4: Renamed from inttypes_h.m4.
67011         * m4/uintmax_t.m4: Removed.
67012
67013 2001-08-13  Paul Eggert  <eggert@twinsun.com>
67014
67015         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
67016         Port to Solaris 8, where 'sed' requires a space after the 'r'
67017         command, and where sh dislikes "$/".  Clean up the spacing a bit.
67018         Redirect output to $tmp just once.
67019
67020 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
67021
67022         * lib/addext.c (<errno.h>): Include.
67023         (errno): Declare if not defined.
67024         (addext): Work correctly when pathconf returns -1 and leaves
67025         errno alone because there is no limit.  Also, work even if
67026         pathconf returns a value greater than SIZE_MAX.
67027
67028 2001-08-12  Jim Meyering  <meyering@lucent.com>
67029
67030         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
67031         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
67032         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
67033         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
67034         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
67035         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
67036         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
67037         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
67038         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
67039         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
67040         utime.m4, utimes.m4, xstrtoumax.m4:
67041         Quote the first argument in each use of AC_DEFUN.
67042
67043 2001-08-12  Jim Meyering  <meyering@lucent.com>
67044
67045         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
67046         Simply `return getcwd (NULL, 0);'.
67047         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
67048         Use 1300 as initial value for length, not PATH_MAX.
67049
67050         * lib/pathmax.h: Clean up cpp syntax.
67051
67052 2001-08-12  Jim Meyering  <meyering@lucent.com>
67053
67054         * lib/gettimeofday.c: New file.
67055         * lib/gtod.h: New file.
67056         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
67057
67058 2001-08-05  Jim Meyering  <meyering@lucent.com>
67059
67060         * m4/jm-macros.m4: Require autoconf-2.52.
67061
67062 2001-08-04  Jim Meyering  <meyering@lucent.com>
67063
67064         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
67065         stmt, to get in sync with glibc.
67066
67067 2001-08-03  Paul Eggert  <eggert@twinsun.com>
67068
67069         The following changes are from gettext 0.10.39 as maintained by
67070         Bruno Haible.
67071
67072         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
67073         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
67074         with inverted sense.  All uses changed.
67075
67076         * lib/mbswidth.c: Don't include <limits.h>.
67077         Include <stdlib.h> and <string.h> unconditionally.
67078         (iswcntrl, mbsinit, ISCNTRL): New macros.
67079         (mbsnwidth): Use K&R style function declarations.
67080         Don't bother checking for MB_LEN_MAX == 1, since the compiler
67081         can optimize it when MB_CUR_MAX == 1.
67082         The width of control characters is zero, not 1.
67083
67084 2001-08-03  Paul Eggert  <eggert@twinsun.com>
67085
67086         The following changes are from gettext 0.10.39 as maintained by
67087         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
67088
67089         * m4/codeset.m4: Upgrade to serial AM1.
67090         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
67091         all uses changed.  Quote first arg of AC_DEFUN.
67092         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
67093
67094         * m4/iconv.m4: Upgrade to serial AM2.
67095         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
67096         Add --with-libconv-prefix.
67097         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
67098         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
67099         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
67100         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
67101         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
67102
67103         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
67104         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
67105         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
67106         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
67107         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
67108         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
67109         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
67110         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
67111         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
67112
67113         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
67114         string.h any more.
67115
67116         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
67117         not the default value.
67118
67119         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
67120         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
67121         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
67122         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
67123         Also check for iswcntrl, used for wcwidth fallback.
67124         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
67125         to Autoconf 2.13.
67126
67127 2001-08-03  Jim Meyering  <meyering@lucent.com>
67128
67129         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
67130         as it was in the original.  Reported by Paul Eggert.
67131
67132 2001-07-16  Jim Meyering  <meyering@lucent.com>
67133
67134         * m4/gettimeofday.m4: New file.
67135         Prompted by a report from Bernhard Baehr.
67136
67137 2001-07-15  Jim Meyering  <meyering@lucent.com>
67138
67139         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
67140         stuff. Now it's in ../Makefile.cfg.
67141
67142 2001-07-15  Jim Meyering  <meyering@lucent.com>
67143
67144         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
67145         (BUILT_SOURCES): Add unlocked-io.h.
67146         (io_functions): Define.
67147         (unlocked-io.h): New rule.
67148         (DISTCLEANFILES): Add unlocked-io.h.
67149         (all-local): Depend on unlocked-io.h, to ensure it is created.
67150
67151         * lib/unlocked-io.hin: New file
67152
67153         * lib/regex.c: Update from glibc.
67154
67155 2001-07-05  Jim Meyering  <meyering@lucent.com>
67156
67157         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
67158         recommendation.
67159         (libfetish_a_SOURCES): Put all .h files here instead.
67160         Remove a thus-exposed (better checks in automake) duplicate and
67161         two unnecessary .h files.
67162
67163 2001-07-04  Jim Meyering  <meyering@lucent.com>
67164
67165         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
67166         that generates jm-glibc-io.m4 so that it doesn't trigger any make
67167         distcheck failure.
67168
67169 2001-07-02  Jim Meyering  <meyering@lucent.com>
67170
67171         The following changes were prompted by suggestions from Bruno Haible.
67172
67173         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
67174         is now generated.
67175         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
67176         definition of EXTRA_DIST.
67177         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
67178         ensure that the generated file is created/updated whenever the list
67179         of $(unlocked_functions) is changed.
67180         (jm-glibc-io.m4): New rule.
67181         (unlocked-io.h): New rule -- currently unused.
67182
67183 2001-06-24  Jim Meyering  <meyering@lucent.com>
67184
67185         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
67186         unmatched right bracket, rather than kludging it with an extra,
67187         falsely-matching quote in a comment.  Patch by Akim Demaille.
67188
67189 2001-06-11  Jim Meyering  <meyering@lucent.com>
67190
67191         * lib/regex.c: Update from GNU libc.
67192
67193 2001-05-27  Jim Meyering  <meyering@lucent.com>
67194
67195         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
67196         Check for ut_type in struct utmp.
67197
67198 2001-05-27  Jim Meyering  <meyering@lucent.com>
67199
67200         * lib/readutmp.h (UT_TYPE): Define.
67201
67202 2001-05-24  Jim Meyering  <meyering@lucent.com>
67203
67204         * lib/argmatch.c: Include "quote.h".
67205         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
67206         quote function.  Reported by Göran Uddeborg.
67207
67208 2001-05-22  Jim Meyering  <meyering@lucent.com>
67209
67210         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
67211         now that we use the package-supplied version unconditionally.
67212         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
67213
67214 2001-05-21  Jim Meyering  <meyering@lucent.com>
67215
67216         * m4/regex.m4: Change a couple backticks to single quotes to avoid
67217         shell syntax errors.
67218
67219 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
67220
67221         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
67222
67223 2001-05-20  Paul Eggert  <eggert@twinsun.com>
67224
67225         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
67226         Don't bother to check library strftime, since
67227         we'll be using our own my_strftime function anyway.
67228         Define my_strftime instead of strftime.
67229
67230 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
67231
67232         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
67233         which is not yet declared.
67234
67235 2001-05-15  Jim Meyering  <meyering@lucent.com>
67236
67237         * m4/regex.m4: Use proper quoting so brackets appear in the test
67238         program.
67239         Reported by, and with help from, Bruno Haible.
67240
67241 2001-05-13  Jim Meyering  <meyering@lucent.com>
67242
67243         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
67244         undefined.
67245
67246 2001-05-11  Paul Eggert  <eggert@twinsun.com>
67247
67248         dirname code cleanup.  base_name now behaves more compatibly
67249         with POSIX basename when given file names that have trailing
67250         slashes, and similarly for dir_name.  Add new primitives
67251         base_len and dir_len.  Put the directory-name-related decls
67252         into dirname.h.
67253
67254         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
67255         * lib/backupfile.c (base_name): Likewise.
67256         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
67257         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
67258         * lib/makepath.c (strip_trailing_slashes): Likewise.
67259         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
67260         ISSLASH): Likewise.
67261         * lib/rename.c (strip_trailing_slashes): Likewise.
67262         * lib/same.c (base_name): Likewise.
67263         * lib/stripslash.c (ISSLASH): Likewise.
67264
67265         * lib/addext.c: Include <dirname.h> after size_t is defined.
67266         * lib/backupfile.c: Likewise.
67267
67268         * lib/addext.c (addext): Use base_len to trim redundant
67269         trailing slashes instead of doing it ourselves.
67270         But do not trim the last slash if it is not redundant.
67271
67272         * lib/backupfile.c (find_backup_file_name,
67273         max_backup_version): Use base_len instead of rolling it ourselves.
67274         Handle the case of "" and (on DOS) "C:" correctly.
67275
67276         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
67277         needed. Include <string.h>, <dirname.h>.
67278         (base_name): Allow file names ending in slashes, other than names
67279         that are all slashes.  In this case, return the basename followed
67280         by the slashes.  This is more general, and can be used in places
67281         where the original base_name purposely had an assertion failure.
67282         (base_len): New function.
67283
67284         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
67285         Do not include <assert.h>; no longer needed.
67286         Include xalloc.h.
67287         (memrchr): Remove decl.
67288         (dir_name_r): Remove.
67289         (dir_len): Renamed from dirlen.  All callers changed.
67290         Rewrite in terms of base_name, for simplicity and consistency.
67291         (dir_name): Never return NULL.  All callers changed.
67292         Do not include <stdlib.h> in test program; no longer needed.
67293         return 0; is fine for test program.
67294
67295         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
67296         New macros.
67297         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
67298
67299         * lib/path-concat.c (path_concat): Use base_len to compute
67300         base length, not strlen; this means we cannot rely on memcpy
67301         to null-terminate.
67302
67303         * lib/same.c (STREQ): Remove.
67304         (same_name): Handle the case where the basename ends in trailing '/'.
67305
67306         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
67307         a slash was stripped.  Do not strip the last slash after a
67308         file system prefix.
67309
67310 2001-05-11  Paul Eggert  <eggert@twinsun.com>
67311
67312         * lib/Makefile.am (libfetish_a_SOURCES):
67313         Add strftime.c, since we now compile it on all hosts.
67314
67315         * lib/strftime.c (my_strftime):
67316         Define to nstrftime if emacs, but only if my_strftime is not defined.
67317         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
67318         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
67319         Add one more extra argument: a nanoseconds value.
67320         All uses changed.
67321         (ns): New macro.
67322         (my_strftime function): Add %N format.
67323         (emacs_strftimeu): Renamed from emacs_strftime,
67324         with extra ut argument.
67325
67326 2001-05-09  Paul Eggert  <eggert@twinsun.com>
67327
67328         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
67329
67330 2001-04-21  Jim Meyering  <meyering@lucent.com>
67331
67332         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
67333         doesn't interfere.
67334
67335 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
67336
67337         * m4/ftruncate.m4: Check for chsize.
67338         Link with ftruncate.o unconditionally if ftruncate is missing.
67339         This was required when cross-compiling to i586-mingw32msvc.
67340
67341 2001-04-08  Jim Meyering  <meyering@lucent.com>
67342
67343         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
67344         recomputed; that's necessary when the offset spans a DST transition.
67345         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
67346
67347 2001-04-02  Jim Meyering  <meyering@lucent.com>
67348
67349         * lib/regex.h, regex.c: Update from GNU libc.
67350
67351 2001-03-24  Jim Meyering  <meyering@lucent.com>
67352
67353         * m4/jm-macros.m4: Require autoconf-2.49d.
67354
67355 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
67356
67357         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
67358
67359 2001-03-19  Paul Eggert  <eggert@twinsun.com>
67360
67361         * lib/version-etc.c (version_etc_copyright): Update to 2001.
67362
67363 2001-03-17  Jim Meyering  <meyering@lucent.com>
67364
67365         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
67366         now that the version in autoconf is equivalent.
67367         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
67368
67369         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
67370         Suggestion from Akim Demaille.
67371
67372         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
67373         (jm_PREREQ_TEMPNAME): New function.
67374
67375 2001-03-16  Paul Eggert  <eggert@twinsun.com>
67376
67377         * lib/tempname.c (uint64_t): Define to uintmax_t if
67378         not defined, and if UINT64_MAX is not defined.
67379         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
67380         Reported by John David Anglin.
67381
67382 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
67383
67384         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
67385         resolve alias if codeset is empty.
67386         * lib/config.charset (BeOS): Use wildcard syntax.
67387
67388 2001-03-13  Jim Meyering  <meyering@lucent.com>
67389
67390         * lib/path-concat.c (path_concat)
67391         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
67392         concatenating e.g., `C:' and `foo'.
67393         From Bruno Haible.
67394
67395 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
67396
67397         * lib/localcharset.c (locale_charset): Don't use
67398         setlocale(LC_CTYPE,NULL). Don't return NULL.
67399         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
67400
67401 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
67402
67403         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
67404         support for DOS/DJGPP.
67405
67406 2001-03-01  Paul Eggert  <eggert@twinsun.com>
67407
67408         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
67409         lacks mkstemp.  Compile our own tempname.c if we compile our own
67410         mkstemp.c, as mkstemp relies on tempname.
67411
67412 2001-03-01  Jim Meyering  <meyering@lucent.com>
67413
67414         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
67415         AH_VERBATIM really does output its argument verbatim.
67416
67417 2001-02-28  Paul Eggert  <eggert@twinsun.com>
67418
67419         * lib/Makefile.am (libfetish_a_SOURCES):
67420         Add dup-safer.c, fopen-safer.c.
67421         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
67422
67423         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
67424         * lib/unistd-safer.h: New files.
67425
67426 2001-02-25  Paul Eggert  <eggert@twinsun.com>
67427
67428         The mkstemp replacement is taken from glibc 2.2.2, with some
67429         portability fixes for use outside glibc, as follows:
67430
67431         * lib/tempname.c (struct_stat64): New macro.
67432         (direxists, __gen_tempname): Use it.
67433         This avoids a portability problem with Solaris 8.
67434
67435         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
67436         (<stddef.h>, <stdint.h>, <string.h>):
67437         Include only if STDC_HEADERS || _LIBC.
67438         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
67439         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
67440         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
67441         (__set_errno): Define this macro if <errno.h> doesn't.
67442         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
67443         Define these macros if <stdio.h> doesn't.
67444         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
67445         Define these macros if <sys/stat.h>
67446         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
67447         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
67448         __xstat64): Define if not _LIBC.
67449         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
67450         (__gen_tempname): Invoke gettimeofday only if
67451         HAVE_GETTIMEOFDAY || _LIBC;
67452         otherwise, fall back on plain "time".
67453         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
67454
67455         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
67456
67457         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
67458
67459 2001-02-18  Paul Eggert  <eggert@twinsun.com>
67460
67461         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
67462
67463 2001-02-17  Paul Eggert  <eggert@twinsun.com>
67464
67465         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
67466         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
67467         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
67468         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
67469
67470 2001-02-17  Paul Eggert  <eggert@twinsun.com>
67471
67472         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
67473         Remove workaround macros for hosts that have mbrtowc but not
67474         mbstate_t, as we now insist on proper declarations for both
67475         before using mbrtowc.
67476
67477 2001-02-17  Jim Meyering  <meyering@lucent.com>
67478
67479         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
67480         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
67481         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
67482         UnixWare 7.1.1.
67483
67484         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
67485         rather than AC_CACHE_VAL.
67486
67487 2001-02-17  Jim Meyering  <meyering@lucent.com>
67488
67489         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
67490         around included file name.
67491
67492         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
67493
67494         * lib/strftime.c: Update from GNU libc (the only changes were to
67495         comments).
67496
67497 2001-02-17  Jim Meyering  <meyering@lucent.com>
67498
67499         * lib/regex.c: Update from libc.
67500
67501 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
67502
67503         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
67504         clash.
67505
67506 2001-02-16  Paul Eggert  <eggert@twinsun.com>
67507
67508         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
67509         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
67510         Reported by Mark Hounschell via Paul Eggert.
67511
67512 2001-02-07  Jim Meyering  <meyering@lucent.com>
67513
67514         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
67515
67516 2001-02-05  Jim Meyering  <meyering@lucent.com>
67517
67518         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
67519         it includes the patch required for `large file' support with at least
67520         HP-UX's 10.20 /bin/cc.
67521
67522 2001-02-03  Jim Meyering  <meyering@lucent.com>
67523
67524         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
67525         AS_IF, now that it works once again (mysteriously).
67526         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
67527
67528 2001-01-30  Jim Meyering  <meyering@lucent.com>
67529
67530         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
67531         * m4/chown.m4: Rename conftestchown to conftest.chown.
67532         * m4/rename.m4: s/conftestdir/conftest.d1/ and
67533         s/conftestdir2/conftest.d2/.
67534         * m4/utimes.m4: s/conftestdata/conftest.data/
67535         Inspired by Pavel Roskin's change in autoconf.
67536
67537 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
67538
67539         * lib/config.charset: Update for FreeBSD 4.2.
67540
67541 2001-01-27  Jim Meyering  <meyering@lucent.com>
67542
67543         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
67544         a use of AS_IF.
67545         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
67546
67547 2001-01-26  Jim Meyering  <meyering@lucent.com>
67548
67549         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
67550         quotearg.c includes it.
67551
67552 2001-01-26  Jim Meyering  <meyering@lucent.com>
67553
67554         * lib/quotearg.c: Include stddef.h.
67555         * lib/quote.c: Include stddef.h.
67556         Reported by Axel Kittenberger.
67557
67558         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
67559         line in double quotes so that it evokes a better diagnostic.
67560         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
67561         Reported by Axel Kittenberger.
67562
67563 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
67564
67565         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
67566         as if it was a `charset'.
67567
67568 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
67569
67570         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
67571         has const.
67572
67573 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
67574
67575         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
67576         to avoid a warning.  Add back 'const' to inptr.
67577
67578 2001-01-20  Jim Meyering  <meyering@lucent.com>
67579
67580         Be sure that headers are checked before used in code compiled
67581         for the type checks.
67582         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
67583         In place of that, invoke jm_CHECK_ALL_TYPES.
67584         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
67585         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
67586         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
67587         The check for ssize_t was mistakenly run before the test for unistd.h.
67588
67589         The configure-time check for stdbool.h was missing.
67590         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
67591         (jm_PREREQ_HASH): New function.
67592
67593 2001-01-17  Jim Meyering  <meyering@lucent.com>
67594
67595         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
67596         for autoconf-2.49c.
67597         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
67598
67599 2001-01-16  Jim Meyering  <meyering@lucent.com>
67600
67601         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
67602         From Bruno Haible.
67603
67604 2001-01-14  Jim Meyering  <meyering@lucent.com>
67605
67606         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
67607         foo and bar.  Create conftestdir/ in the script, not in the C code.
67608         Remove directories in the script, not in the C code.
67609         Remove conftestdir{,2} before trying to create the directory.
67610         Make the entire configure script fail if the mkdir fails.
67611
67612 2001-01-14  Jim Meyering  <meyering@lucent.com>
67613
67614         * lib/rename.c: New file.  From Volker Borchert.
67615         Include stdlib.h, string.h or strings.h, and xalloc.h.
67616         Use strip_trailing_slashes rather than open-coding it.
67617
67618 2001-01-03  Paul Eggert  <eggert@twinsun.com>
67619
67620         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
67621
67622 2001-01-03  Jim Meyering  <meyering@lucent.com>
67623
67624         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
67625         of local `inptr' to avoid warning with some system declarations of
67626         iconv.
67627
67628 2001-01-02  Volker Borchert  <bt@teknon.de>
67629
67630         * m4/rename.m4: New file.
67631         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
67632
67633 2001-01-01  Jim Meyering  <meyering@lucent.com>
67634
67635         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
67636         even on systems with utmpx.h.  It's necessary for the declaration of
67637         utmp's ut_user member.  Reported by Andreas Jaeger.
67638
67639         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
67640         available. They are required for the declarations of getgrgid and
67641         getpwuid resp.
67642         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
67643         Reported by Andreas Jaeger.
67644
67645 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
67646
67647         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
67648         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
67649         so `make install' also works in VPATH builds.
67650
67651 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
67652
67653         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
67654         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
67655         can be used in subdirectories.
67656
67657 2000-12-29  Paul Eggert  <eggert@twinsun.com>
67658
67659         * lib/modechange.c: Do not assume that mode_t uses the
67660         traditional octal encoding.  E.g. "chmod 1 FOO" should set
67661         the other-execute bit of FOO even if S_IXOTH != 1.
67662
67663         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
67664         WOTH, XOTH, ALLM): New macros.
67665         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
67666          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
67667         Use them.
67668         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
67669         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
67670         (mode_compile):
67671         No need to use uintmax_t; unsigned long is long enough.
67672         Don't bother to get suffix since we don't use it.
67673
67674 2000-12-26  Jim Meyering  <meyering@lucent.com>
67675
67676         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
67677         better with autoheader.
67678
67679 2000-12-24  Jim Meyering  <meyering@lucent.com>
67680
67681         * lib/hash.c (is_prime): Return explicit boolean values.
67682         (hash_get_first): Return NULL to appease Irix5.6's 89.
67683         Reported by Nelson Beebe.
67684
67685 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
67686
67687         * lib/localcharset.c (locale_charset): Add support for Win32.
67688
67689 2000-12-18  Paul Eggert  <eggert@twinsun.com>
67690
67691         * lib/physmem.h, lib/physmem.c: New files.
67692
67693         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
67694         (noinst_HEADERS): Add physmem.h.
67695
67696         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
67697         't' for compatibility with Solaris 8 sort.
67698
67699 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
67700
67701         * lib/config.charset: Add support for BeOS.
67702
67703 2000-12-17  Jim Meyering  <meyering@lucent.com>
67704
67705         * m4/dos.m4 (jm_AC_DOS): New file and macro.
67706         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
67707
67708 2000-12-16  Jim Meyering  <meyering@lucent.com>
67709
67710         This bug had a serious impact on chown: `chown N:M FILE' (for integer
67711         N and M) would have treated it like `chown N:N FILE'.
67712
67713         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
67714
67715 2000-12-16  Jim Meyering  <meyering@lucent.com>
67716
67717         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
67718         SHELLS_FILE to a file name that's useful on djgpp systems.
67719         Include stdlib.h.
67720         (ADDITIONAL_DEFAULT_SHELLS): Define.
67721         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
67722         Based mostly on a patch from Prashant TR.
67723
67724 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
67725
67726         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
67727         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
67728         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
67729
67730 2000-12-08  Andreas Schwab  <schwab@suse.de>
67731
67732         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
67733         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
67734
67735 2000-12-07  Jim Meyering  <meyering@lucent.com>
67736
67737         * lib/stripslash.c (ISSLASH): Define.
67738         (strip_trailing_slashes): Use ISSLASH rather than comparing against
67739         `/'.
67740         From Prashant TR.
67741
67742         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
67743         (dir_name_r): Declare this function as static.
67744         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
67745         manifest itself on a name containing a mix of slashes and
67746         backslashes.
67747         Make this function work with names starting with a DOS-style
67748         drive letter and colon prefix.
67749         (dir_name): Append `.' if necessary.
67750         Based mostly on patches from Prashant TR and Eli Zaretskii.
67751
67752         * lib/dirname.h (dir_name_r): Remove prototype.
67753
67754 2000-12-06  Paul Eggert  <eggert@twinsun.com>
67755
67756         * m4/off_t-format.m4: Remove this file.
67757         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
67758
67759 2000-12-06  Jim Meyering  <meyering@lucent.com>
67760
67761         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
67762         replacement strtoull, we may well need the replacement strtoul, too.
67763         Check for declarations of strtoul and strtoull.
67764         Check for strtol.  Mainly as a cue to cause automake to include
67765         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
67766         Check for limits.h -- strtol.c needs it.
67767
67768 2000-12-05  Jim Meyering  <meyering@lucent.com>
67769
67770         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
67771
67772 2000-12-04  Jim Meyering  <meyering@lucent.com>
67773
67774         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
67775         Also include memory.h, stdlib.h, unistd.h if appropriate.
67776         Reported by Andreas Jaeger (conflicting declaration of malloc).
67777
67778 2000-12-02  Jim Meyering  <meyering@lucent.com>
67779
67780         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
67781         * m4/jm-macros.m4 (jm_MACROS): require it.
67782
67783 2000-12-02  Jim Meyering  <meyering@lucent.com>
67784
67785         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
67786
67787 2000-12-01  Paul Eggert  <eggert@twinsun.com>
67788
67789         * lib/memrchr.c: Include <config.h> before any system include file.
67790
67791 2000-11-30  Jim Meyering  <meyering@lucent.com>
67792
67793         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
67794
67795 2000-11-30  Jim Meyering  <meyering@lucent.com>
67796
67797         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
67798
67799 2000-11-29  Paul Eggert  <eggert@twinsun.com>
67800
67801         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
67802
67803 2000-11-26  Jim Meyering  <meyering@lucent.com>
67804
67805         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
67806
67807 2000-11-22  Paul Eggert  <eggert@twinsun.com>
67808
67809         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
67810         size of (size_t) -1; it's not portable.
67811
67812 2000-11-17  Jim Meyering  <meyering@lucent.com>
67813
67814         * lib/strstr.c: Update from GNU libc.
67815
67816 2000-11-17  Akim Demaille  <akim@epita.fr>
67817
67818         * lib/obstack.h: Formatting changes.
67819         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
67820         prevent type checking.
67821         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
67822         cast the value to (void *): assigning a `foo *' to a `void *'
67823         variable is valid.
67824         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
67825
67826 2000-11-16  Jim Meyering  <meyering@lucent.com>
67827
67828         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
67829
67830 2000-11-11  Jim Meyering  <meyering@lucent.com>
67831
67832         * lib/error.c: Add a couple #includes, merging from GNU libc version.
67833
67834 2000-11-10  Jim Meyering  <meyering@lucent.com>
67835
67836         * lib/obstack.h: Update from GNU libc.
67837         * lib/obstack.c: Likewise.
67838
67839 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
67840
67841         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
67842
67843 2000-11-06  Paul Eggert  <eggert@twinsun.com>
67844
67845         * lib/getusershell.c (setusershell): Use rewind rather than
67846         fseek/fseeko, to avoid configuration hassles with fseeko.
67847         Don't bother opening SHELLS_FILE if shellstream is NULL;
67848         it's not necessary.
67849
67850 2000-11-05  Jim Meyering  <meyering@lucent.com>
67851
67852         * lib/makepath.h (make_dir): Declare.
67853         * lib/makepath.c (make_dir): Remove `static' attribute.
67854         Tweak a comment.
67855
67856 2000-11-04  Jim Meyering  <meyering@lucent.com>
67857
67858         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
67859
67860 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
67861
67862         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
67863         last one in a bucket, advance to the next bucket.
67864
67865 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
67866
67867         * lib/fnmatch.c: Do not comment out all the code if we are using
67868         the GNU C library, because in some cases we are replacing buggy
67869         code in the GNU C library itself.
67870
67871 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
67872
67873         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
67874         (regex_compile): Catch bogus \(\1\).
67875
67876 2000-10-30  Paul Eggert  <eggert@twinsun.com>
67877
67878         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
67879         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
67880         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
67881
67882 2000-10-30  Paul Eggert  <eggert@twinsun.com>
67883
67884         * lib/error.h, getline.h, modechange.h:
67885         Remove "2000" from Copyright line, as the file hasn't been
67886         changed this year other than in the copyright notice.
67887
67888         * lib/xalloc.h: Add "2000" to Copyright line, as this file
67889         was changed this year.
67890
67891 2000-10-29  Jim Meyering  <meyering@lucent.com>
67892
67893         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
67894         renaming.
67895         * m4/ls-mntd-fs.m4: Likewise
67896
67897 2000-10-29  Jim Meyering  <meyering@lucent.com>
67898
67899         * lib/xstat.in: Fix grammar in comment.
67900
67901 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
67902
67903         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
67904         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
67905         doesn't define __restrict_arr.
67906
67907 2000-10-28  Jim Meyering  <meyering@lucent.com>
67908
67909         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
67910         (jm_PREREQ_MEMCHR): New function.
67911
67912 2000-10-28  Jim Meyering  <meyering@lucent.com>
67913
67914         * lib/memchr.c: Update from libc.
67915         Adjust for portability:
67916         [HAVE_STDLIB_H]: Include stdlib.h.
67917         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
67918         Undef __memchr, too.
67919         [!weak_alias]: Define __memchr to memchr.
67920
67921         * lib/regex.c: Update from libc.
67922         * lib/regex.h: Likewise.
67923         * lib/getopt1.c: Likewise.
67924         * lib/memcmp.c: Likewise.
67925
67926         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
67927         Avoid using fseek, when possible -- it's broken by design.
67928         Patch by Ulrich Drepper.
67929
67930 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
67931
67932         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
67933         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
67934         Giving in to popular pressure to shut up the compiler with casts.
67935
67936 2000-10-26  Jim Meyering  <meyering@lucent.com>
67937
67938         * lib/strftime.c: Update from libc.
67939
67940 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
67941
67942         * regex.c: More `unsigned char' -> `re_char' changes.
67943         Also change several `int' into `re_wchar_t'.
67944         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
67945         (PUSH_FAILURE_POINTER): Don't cast any more.
67946         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
67947         We want GCC to complain, since this piece of code makes
67948         re_match non-reentrant, which *should* be fixed.
67949         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
67950         (EXTEND_BUFFER): Use RETALLOC.
67951         (SET_LIST_BIT): Don't cast.
67952         (re_wchar_t): New type.
67953         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
67954         that those two functions will always properly return.
67955         (IMMEDIATE_QUIT_CHECK): Cast to void.
67956         (analyse_first): Use recursion rather than an explicit stack.
67957         (re_compile_fastmap): Can't fail anymore.
67958         (re_search_2): Don't check re_compile_fastmap for failure.
67959         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
67960         Now also sets the new value (passed in a new argument).
67961         (re_match_2_internal): Use it.
67962         Also, use a new var `reg' of type size_t when looping through regs
67963         rather than reuse the inappropriate `mcnt'.
67964
67965 2000-10-25  Jim Meyering  <meyering@lucent.com>
67966
67967         * lib/obstack.c: Update from libc.
67968
67969 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
67970
67971         * regex.c (regex_compile): Change the way of handling a range from
67972         a char less than 256 to a char not less than 256.
67973
67974 2000-10-24  Andrew Innes  <andrewi@gnu.org>
67975
67976         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
67977         NT-Emacs only.
67978         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
67979         so that re_search functions only quit when callers expect them to.
67980
67981 2000-10-23  Jim Meyering  <meyering@lucent.com>
67982
67983         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
67984         wrong.  That set_locale call must not have any side effects.
67985         From Paul Eggert.
67986
67987 2000-10-22  Jim Meyering  <meyering@lucent.com>
67988
67989         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
67990         [CYCLIC]: Remove now-unused definition.
67991
67992         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
67993         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
67994         Suggestion from Ulrich Drepper.
67995
67996 2000-10-21  Jim Meyering  <meyering@lucent.com>
67997
67998         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
67999         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
68000         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
68001
68002 2000-10-21  Jim Meyering  <meyering@lucent.com>
68003
68004         * lib/dirname.c (memrchr): Declare if necessary.
68005         (dir_name): Remove the restriction that there be no
68006         trailing slashes.  Now, this code skips past them, effectively
68007         ignoring them.
68008         [TEST_DIRNAME] (main): New unit tests.
68009
68010         * lib/memrchr.c: New file from GNU libc.
68011         Undef __memrchr, too.
68012         [!weak_alias]: Define __memrchr to memrchr.
68013         Guard weak_alias use with `#ifdef weak_alias'.
68014
68015 2000-10-21  Jim Meyering  <meyering@lucent.com>
68016
68017         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
68018         (dir_name): Use dir_name_r.
68019         * lib/dirname.h (dir_name_r): Declare it.
68020
68021 2000-10-17  Jim Meyering  <meyering@lucent.com>
68022
68023         * lib/quote.h (PARAMS): Define and use.
68024         Reported by Akim Demaille.
68025
68026         * lib/getopt.c: Update from libc.
68027
68028 2000-10-16  Jim Meyering  <meyering@lucent.com>
68029
68030         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
68031         setlocale.
68032         From Jan Fedak.
68033
68034 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
68035
68036         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
68037
68038 2000-09-25  Jim Meyering  <meyering@lucent.com>
68039
68040         * lib/md5.h (rol): Define (from GnuPG).
68041
68042         * lib/sha.c: Give credit (GnuPG) where due.
68043         (M): Use rol rather than open-coding it.
68044         Add a FIXME comment.
68045
68046 2000-09-21  Jim Meyering  <meyering@lucent.com>
68047
68048         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
68049         Reported by Michael Stone.
68050
68051 2000-09-20  Jim Meyering  <meyering@lucent.com>
68052
68053         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
68054         (noinst_HEADERS): Add sha.h.
68055         Based on code from Scott G. Miller and from GnuPG.
68056
68057 2000-09-18  Jim Meyering  <meyering@lucent.com>
68058
68059         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
68060         LIBS. Otherwise, everyone ends up linking with -lelf for some
68061         configurations.
68062         Reported by Mike Stone.
68063
68064 2000-09-15  Jim Meyering  <meyering@lucent.com>
68065
68066         * lib/regex.c: Update from libc.
68067
68068 2000-09-10  Jim Meyering  <meyering@lucent.com>
68069
68070         * lib/getopt.c (_getopt_internal): Update from glibc.
68071
68072 2000-09-09  Jim Meyering  <meyering@lucent.com>
68073
68074         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
68075         think it should be used as a general replacement for isascii.
68076         * lib/fnmatch.c: Likewise.
68077         * lib/mbswidth.c: Likewise
68078         * lib/regex.c: Likewise.
68079
68080         Don't use atoi.
68081         * lib/userspec.c: Include sys/param.h and limits.h.
68082         Include xstrtol.h.
68083         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
68084         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
68085         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
68086         UID, GID.  Check range.
68087
68088 2000-09-06  Jim Meyering  <meyering@lucent.com>
68089
68090         * lib/getopt.c (_getopt_internal): Update from glibc.
68091
68092 2000-08-30  Jim Meyering  <meyering@lucent.com>
68093
68094         * lib/strftime.c: Merge in changes from GNU libc.
68095
68096 2000-08-26  Jim Meyering  <meyering@lucent.com>
68097
68098         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
68099         * m4/fpending.m4: New file.
68100
68101 2000-08-26  Jim Meyering  <meyering@lucent.com>
68102
68103         * lib/closeout.c: Include "__fpending.h".
68104         (close_stdout_status): Return right away if there's nothing to flush.
68105
68106         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
68107         * lib/__fpending.c: New file.
68108         * lib/__fpending.h: New file.
68109
68110 2000-08-20  Jim Meyering  <meyering@lucent.com>
68111
68112         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
68113         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
68114         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
68115
68116 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
68117
68118         Improve fileutils installation on systems where running
68119         programs (like install) can't be unlinked.
68120         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
68121         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
68122
68123 2000-08-07  Paul Eggert  <eggert@twinsun.com>
68124
68125         Standardize on "memory exhausted" instead of "Memory exhausted"
68126         or "virtual memory exhausted".
68127         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
68128         "virtual memory exhausted".
68129         * lib/same.c (same_name): Invoke xalloc_die instead of printing
68130         our own message.
68131         * lib/userspec.c (parse_user_spec): Likewise.
68132         * lib/bumpalloc.h: comment fix
68133         * lib/same.c, userspec.c: Include xalloc.h.
68134
68135         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
68136         not char *const and pointing to a constant array.
68137         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
68138         (xrealloc): Comment fix.
68139
68140         * lib/userspec.c (parse_user_spec):
68141         Don't translate a message until just before returning,
68142         to avoid unnecessary translation.
68143
68144 2000-08-07  Jim Meyering  <meyering@lucent.com>
68145
68146         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
68147         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
68148         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
68149         getgroups.c, gethostname.c, getopt.h, group-member.c,
68150         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
68151         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
68152         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
68153         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
68154         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
68155         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
68156         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
68157         yesno.c: Back out Copyright date changes for each file with no change
68158         this year.  This eases coordination with other programs using the same
68159         source code modules.  From Paul Eggert.
68160
68161 2000-08-06  Paul Eggert  <eggert@twinsun.com>
68162
68163         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
68164         not char, for compatibility with glibc 2.1.3 strftime.c.
68165
68166 2000-08-03  Greg McGary  <greg@mcgary.org>
68167
68168         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
68169         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
68170         (EXTEND_BUFFER): Use them.
68171
68172 2000-08-01  Jim Meyering  <meyering@lucent.com>
68173
68174         * lib/dirname.c (ISSLASH): Define.
68175         (BACKSLASH_IS_PATH_SEPARATOR): Define.
68176         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
68177         both `\' and `/' may be use as path separators.
68178         Based on a patch from Prashant TR.
68179
68180 2000-07-31  Paul Eggert  <eggert@twinsun.com>
68181
68182         * lib/quotearg.c (quotearg_n_options): Don't make the initial
68183         slot vector a constant, since it might get modified.
68184
68185 2000-07-31  Jim Meyering  <meyering@lucent.com>
68186
68187         * lib/xmalloc.c: Use `virtual memory exhausted', not
68188         `Memory exhausted'.
68189         * lib/obstack.c (print_and_abort): Likewise.
68190
68191 2000-07-30  Paul Eggert  <eggert@twinsun.com>
68192
68193         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
68194         buffer, so that the caller can always quote one small
68195         component of a "memory exhausted" message in slot 0.
68196         From a suggestion by Jim Meyering.
68197
68198 2000-07-30  Jim Meyering  <meyering@lucent.com>
68199
68200         * lib/makepath.c (make_path): Quote the other instance, too.
68201
68202         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
68203         (STATIC_BUF_SIZE): Define.
68204         (quotearg_n_options): Use only statically allocated storage when
68205         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
68206         than STATIC_BUF_SIZE.
68207
68208 2000-07-29  Jim Meyering  <meyering@lucent.com>
68209
68210         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
68211         * lib/dirname.c (dir_name): Likewise.
68212
68213         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
68214         `/'.
68215
68216         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
68217         (dir_name): Assert that there are no trailing slashes.
68218
68219 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
68220
68221         * lib/mbswidth.h (mbswidth): Add a flags argument.
68222         (mbswidth): New declaration.
68223         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
68224         * lib/mbswidth.c (mbswidth): Add a flags argument.
68225         (mbsnwidth): New function.
68226
68227 2000-07-24  Jim Meyering  <meyering@lucent.com>
68228
68229         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
68230
68231 2000-07-23  Paul Eggert  <eggert@twinsun.com>
68232
68233         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
68234
68235 2000-07-23  Paul Eggert  <eggert@twinsun.com>
68236
68237         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
68238         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
68239         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
68240         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
68241         invoke multibyte primitives.
68242
68243 2000-07-23  Paul Eggert  <eggert@twinsun.com>
68244
68245         * lib/quotearg.c:
68246         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
68247         so that mbstate_t is always defined.
68248
68249         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
68250         be 1 in at least one GCC installation, and this configuration
68251         error is likely to be common.  Ignoring MB_LEN_MAX hurts
68252         performance on hosts that have mbrtowc but have only unibyte
68253         locales, but I assume these hosts are rare.
68254
68255 2000-07-23  Paul Eggert  <eggert@twinsun.com>
68256
68257         * lib/mbswidth.c (_XOPEN_SOURCE):
68258         Don't define; this causes problems on Solaris 7.
68259         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
68260
68261 2000-07-23  Jim Meyering  <meyering@lucent.com>
68262
68263         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
68264         too: getgrgid, getpwuid, getuid.
68265
68266 2000-07-23  Jim Meyering  <meyering@lucent.com>
68267
68268         * lib/basename.c (base_name): Add an assertion.
68269
68270 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
68271
68272         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
68273         shadow its mbsinit function.
68274
68275 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
68276
68277         * lib/mbswidth.h: New file.
68278         * lib/mbswidth.c: New file.
68279         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
68280         (noinst_HEADERS): Add mbswidth.h.
68281
68282 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
68283
68284         * lib/config.charset: Add support for FreeBSD. Improve support for
68285         HP-UX and IRIX 6.
68286
68287 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
68288
68289         * m4/mbswidth.m4: New file.
68290         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
68291
68292 2000-07-15  Jim Meyering  <meyering@lucent.com>
68293
68294         * lib/makepath.c: Include quote.h.
68295         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
68296         corresponding argument in a `quote (...)' call.
68297         Give better diagnostics.
68298
68299         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
68300         (noinst_HEADERS): Add quote.h.
68301
68302         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
68303         from tar's src/misc.c.
68304         * lib/quote.h: New file.  Prototypes for same.
68305
68306 2000-07-14  Paul Eggert  <eggert@twinsun.com>
68307
68308         From a suggestion by Bruno Haible.
68309         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
68310         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
68311         to decide whether to define the BeOS workaround macro;
68312         this adjusts to the change to AC_MBSTATE_T.
68313
68314 2000-07-14  Jim Meyering  <meyering@lucent.com>
68315
68316         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
68317         jm_AC_TYPE_UINTMAX_T.
68318
68319 2000-07-13  Paul Eggert  <eggert@twinsun.com>
68320
68321         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
68322
68323         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
68324         quotearg_buffer_restyled): Add support for
68325         clocale_quoting_style.  Undo previous change to
68326         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
68327         and "{RIGHT QUOTATION MARK}" msgids.
68328
68329 2000-07-10  Paul Eggert  <eggert@twinsun.com>
68330
68331         From a suggestion by Bruno Haible.
68332         * m4/mbstate_t.m4 (AC_MBSTATE_T):
68333         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
68334         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
68335         and mbstate_t, to a single-part test that simply defines mbstate_t.
68336         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
68337         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
68338
68339 2000-07-10  Jim Meyering  <meyering@lucent.com>
68340
68341         * m4/strerror_r.m4: Mirror the correction made in autoconf.
68342
68343         * m4/gnu-source.m4: Output to confdefs.h directly.
68344         Suggestion from Akim Demaille.
68345
68346 2000-07-09  Paul Eggert  <eggert@twinsun.com>
68347
68348         The old behavior of quoting `like this' doesn't look good with
68349         newer, ISO-style fonts.  See:
68350         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
68351
68352         Instead, quote "like this" by default.  Let the translator
68353         tailor the locale-specific quoting behavior by providing
68354         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
68355
68356         * lib/quotearg.c (N_): New macro.
68357         (gettext_default): New function.
68358         (quotearg_buffer_restyled): Use
68359         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
68360         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
68361
68362 2000-07-09  Jim Meyering  <meyering@lucent.com>
68363
68364         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
68365         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
68366
68367         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
68368         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
68369
68370 2000-07-09  Jim Meyering  <meyering@lucent.com>
68371
68372         * lib/Most files: Update copyright dates to include 2000.
68373
68374 2000-07-08  Jim Meyering  <meyering@lucent.com>
68375
68376         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
68377         if not defined.
68378         (xgethostname): Remove now-unnecessary #ifdef.
68379         Move declaration of `err' into loop where it's used.
68380
68381 2000-07-05  Paul Eggert  <eggert@twinsun.com>
68382         and Bruno Haible  <haible@clisp.cons.org>
68383
68384         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
68385         only if the test for an object-type mbstate_t fails.  This
68386         prevents us from mistakenly reporting that mbstate_t is a
68387         system object type after we "#define mbstate_t int" to work
68388         around its lack.
68389
68390 2000-07-05  Paul Eggert  <eggert@twinsun.com>
68391         and Bruno Haible  <haible@clisp.cons.org>
68392
68393         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
68394
68395 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
68396
68397         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
68398         to strerror_r.
68399         Include <ctype.h> for use of isalpha.
68400
68401 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
68402
68403         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
68404         by allocating a larger buffer. Test the gethostname return value for
68405         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
68406         returns an error and ENAMETOOLONG isn't defined.
68407
68408 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
68409
68410         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
68411         dimension.
68412
68413 2000-07-04  Jim Meyering  <meyering@lucent.com>
68414
68415         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
68416         of the deprecated AC_CHECKING.
68417
68418 2000-07-04  Jim Meyering  <meyering@lucent.com>
68419
68420         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
68421         Reported by Bruno Haible.
68422
68423 2000-07-04  Jim Meyering  <meyering@lucent.com>
68424
68425         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
68426         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
68427         lacks mbrtowc.
68428
68429 2000-07-03  Paul Eggert  <eggert@twinsun.com>
68430
68431         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
68432         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
68433
68434 2000-07-03  Paul Eggert  <eggert@twinsun.com>
68435         and Bruno Haible  <haible@clisp.cons.org>
68436
68437         * lib/quotearg.c (mbrtowc):
68438         Assign to *pwc, and return 1 only if result is nonzero.
68439         (iswprint): Use ISPRINT when substituting our own mbrtowc.
68440
68441 2000-07-03  Jim Meyering  <meyering@lucent.com>
68442
68443         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
68444
68445 2000-07-03  Jim Meyering  <meyering@lucent.com>
68446
68447         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
68448         This is necessary to get a definition of e.g., UTMP_FILE on
68449         HP-UX 10.20.
68450         From Bob Proulx.
68451
68452 2000-07-02  Jim Meyering  <meyering@lucent.com>
68453
68454         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
68455
68456         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
68457         AC_LIBOBJ(function_name).
68458         * m4/chown.m4: Likewise.
68459         * m4/fnmatch.m4: Likewise.
68460         * m4/ftruncate.m4: Likewise.
68461         * m4/getgroups.m4: Likewise.
68462         * m4/getline.m4: Likewise.
68463         * m4/group-member.m4: Likewise.
68464         * m4/jm-macros.m4: Likewise.
68465         * m4/lstat.m4: Likewise.
68466         * m4/malloc.m4: Likewise.
68467         * m4/memcmp.m4: Likewise.
68468         * m4/nanosleep.m4: Likewise.
68469         * m4/putenv.m4: Likewise.
68470         * m4/realloc.m4: Likewise.
68471         * m4/regex.m4: Likewise.
68472         * m4/stat.m4: Likewise.
68473         * m4/strftime.m4: Likewise.
68474
68475 2000-07-02  Jim Meyering  <meyering@lucent.com>
68476
68477         * lib/quotearg.c (mbstate_t): Don't define here.
68478
68479 2000-07-02  Jim Meyering  <meyering@lucent.com>
68480
68481         * lib/nanosleep.c (SIGCONT): Define if not already defined.
68482
68483 2000-07-01  Jim Meyering  <meyering@lucent.com>
68484
68485         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
68486
68487 2000-07-01  Jim Meyering  <meyering@lucent.com>
68488
68489         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
68490         problem.
68491
68492 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
68493
68494         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
68495         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
68496
68497 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
68498
68499         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
68500         per change in ../m4/ls-mntd-fs.m4.
68501         (read_filesystem_list): Ignore symbolic links.
68502
68503 2000-06-29  Jim Meyering  <meyering@lucent.com>
68504
68505         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
68506         for declaration of strcmp.
68507
68508         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
68509
68510         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
68511         Avoid warning by casting result to `char *' to remove `const'.
68512
68513 2000-06-28  Jim Meyering  <meyering@lucent.com>
68514
68515         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
68516         included by quotearg.c, for which we perform this test.  From
68517         Bruno Haible.
68518
68519 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
68520
68521         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
68522         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
68523         <utmpx.h> exists, put readutmp.o into LIBOBJS.
68524
68525 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
68526
68527         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
68528
68529 2000-06-26  Paul Eggert  <eggert@twinsun.com>
68530
68531         savedir now sets errno on failure and invokes xmalloc to get memory.
68532         Fix a couple of other minor bugs while we're at it.
68533
68534         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
68535         (NAMLEN): Remove macro.
68536         (malloc, realloc): Remove decls.
68537         (stpcpy): Likewise.
68538         ("xalloc.h"): Include.
68539         (NAME_SIZE_DEFAULT): New macro.
68540         (savedir): Use xmalloc / xrealloc to allocate memory.
68541         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
68542         Skip "" directory entries.
68543         Use strlen to calculate directory entry length, since the old method
68544         is rarely used these days and isn't worth supporting.
68545         Don't use a pointer after freeing it.
68546         Check for integer overflow when calculating allocation size.
68547         Use memcpy to copy entries, instead of stpcpy.
68548         Set errno properly when returning NULL.
68549         Check for readdir error.
68550
68551 2000-06-26  Jim Meyering  <meyering@lucent.com>
68552
68553         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
68554
68555 2000-06-25  Jim Meyering  <meyering@lucent.com>
68556
68557         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
68558         Linux header bug when _XOPEN_SOURCE is defined to 500.
68559
68560 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
68561
68562         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
68563         deficiency.
68564
68565 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
68566
68567         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
68568         Include xalloc.h.
68569         Don't include <stdlib.h>.  Don't declare malloc, realloc.
68570
68571 2000-06-24  Jim Meyering  <meyering@lucent.com>
68572
68573         * m4/strerror_r.m4: Revive this file -- to try out an experimental
68574         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
68575         for which strerror does return char*, but which lacks a conveniently
68576         accessible declaration of the function.  If the compile-test says
68577         strerror_r doesn't work, then resort to a `run'-test that works on
68578         BeOS and segfaults on DEC Unix.
68579
68580 2000-06-24  Jim Meyering  <meyering@lucent.com>
68581
68582         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
68583
68584 2000-06-23  Paul Eggert  <eggert@twinsun.com>
68585
68586         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
68587         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
68588
68589 2000-06-23  Paul Eggert  <eggert@twinsun.com>
68590
68591         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
68592         (mbrtowc, mbstate_t): Define substitutes if
68593         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
68594         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
68595         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
68596
68597 2000-06-23  Jim Meyering  <meyering@lucent.com>
68598
68599         * m4/afs.m4: Add missing AC_MSG_RESULT.
68600         Reported by Bruno Haible.
68601
68602         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
68603         Suggestion from Bruno Haible.
68604
68605 2000-06-23  Jim Meyering  <meyering@lucent.com>
68606
68607         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
68608
68609 2000-06-21  Jim Meyering  <meyering@lucent.com>
68610
68611         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
68612
68613 2000-06-21  Jim Meyering  <meyering@lucent.com>
68614
68615         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
68616         (noinst_HEADERS): Add getstr.h.
68617
68618         * lib/getline.c (getstr): Move into a separate file.
68619         * lib/getstr.c (getstr): New file, extracted from getline.c, with
68620         the following changes: new parameter, delim2; both delim[12]
68621         parameters have type `int', not `char'.  The latter would lose
68622         with 8-bit delimiters.
68623         * lib/getstr.h: New file.
68624
68625 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
68626
68627         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
68628         than 1024, return a memory chunk of least possible size, instead
68629         of size PATH_MAX + 2. In the loop, increment the size proportionally.
68630         Use free/xmalloc instead of xrealloc to avoid copying for very long
68631         paths.
68632
68633 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
68634
68635         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
68636         the empty string.
68637
68638 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
68639
68640         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
68641         address, not strdup.  Include <stdlib.h> and don't declare free().
68642
68643 2000-06-19  Jim Meyering  <meyering@lucent.com>
68644
68645         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
68646
68647 2000-06-18  Jim Meyering  <meyering@lucent.com>
68648
68649         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
68650
68651         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
68652         `checking whether...' message to be consistent with that of the
68653         lstat test.
68654
68655 2000-06-18  Jim Meyering  <meyering@lucent.com>
68656
68657         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
68658         Besides, these days every porting target provides a mkdir function.
68659
68660         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
68661         needed. (this snippet comes from src/system.h).
68662
68663 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
68664
68665         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
68666
68667 2000-06-15  Paul Eggert  <eggert@twinsun.com>
68668
68669         * lib/human.c (adjust_value): New function.
68670         (human_readable_inexact): Apply rounding style even when
68671         printing approximate values.
68672
68673 2000-06-14  Paul Eggert  <eggert@twinsun.com>
68674
68675         * lib/human.c (human_readable_inexact): Allow an input block
68676         size that is not a multiple of the output block size, and vice versa.
68677         Reported by Piergiorgio Sartor.
68678
68679 2000-06-14  Paul Eggert  <eggert@twinsun.com>
68680
68681         * lib/getdate.y (get_date): Apply relative times after time
68682         zone indicator, not before.  Reported by Todd A. Jacobs.
68683
68684 2000-06-13  Jim Meyering  <meyering@lucent.com>
68685
68686         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
68687
68688         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
68689
68690 2000-06-12  Paul Eggert  <eggert@twinsun.com>
68691
68692         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
68693
68694 2000-06-12  Jim Meyering  <meyering@lucent.com>
68695
68696         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
68697         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
68698         optional argument.
68699         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
68700         the optional argument, `lib'.
68701
68702 2000-06-08  Jim Meyering  <meyering@lucent.com>
68703
68704         * m4/largefile.m4: Remove file (now that it's part of autoconf).
68705
68706 2000-06-04  Paul Eggert  <eggert@twinsun.com>
68707
68708         Rewrite largefile configuration so that we don't need to run
68709         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
68710         AC_CANONICAL_HOST in configure.in -- jmm]
68711
68712         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
68713         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
68714         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
68715         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
68716         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
68717         All uses changed.
68718         Instead of inspecting the output of getconf, try to compile the
68719         test program without and with the macro definition.
68720         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
68721         for getconf.  Instead, check for the needed flags by compiling
68722         test programs.
68723
68724 2000-06-04  Paul Eggert  <eggert@twinsun.com>
68725
68726         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
68727
68728 2000-06-04  Jim Meyering  <meyering@lucent.com>
68729
68730         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
68731         SunOS 4.1.4 for which gid_t is an unsigned type.
68732
68733 2000-06-03  Jim Meyering  <meyering@lucent.com>
68734
68735         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
68736         now that autoconf requires that.
68737
68738         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
68739         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
68740         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
68741
68742 2000-06-03  Jim Meyering  <meyering@lucent.com>
68743
68744         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
68745
68746 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
68747
68748         * m4/glibc21.m4: New file.
68749         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
68750
68751 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
68752
68753         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
68754         newer, don't install charset.alias.
68755         * lib/config.charset: Change the Linux/glibc rules so they become empty
68756         on glibc-2.1 or newer.
68757
68758 2000-06-02  Jim Meyering  <meyering@lucent.com>
68759
68760         * lib/mountlist.c: Back out last change.  Instead, do this...
68761         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
68762         me_dummy member using the same `ignore'-testing code.
68763         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
68764         fs_type strings.
68765         From Mark D. Roth.
68766
68767 2000-05-29  Jim Meyering  <meyering@lucent.com>
68768
68769         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
68770         mounts with the `ignore' attribute.  Based on a patch from
68771         Mark D. Roth.
68772
68773 2000-05-28  Jim Meyering  <meyering@lucent.com>
68774
68775         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
68776         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68777         * m4/stat.m4: Likewise.
68778         * m4/lstat.m4: Likewise.
68779         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
68780
68781         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
68782         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
68783
68784 2000-05-26  Jim Meyering  <meyering@lucent.com>
68785
68786         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
68787
68788 2000-05-24  Jim Meyering  <meyering@lucent.com>
68789
68790         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
68791         autoconf requires that.
68792         * m4/lib-check.m4: Likewise.
68793         * m4/jm-macros.m4: Likewise.
68794         * m4/strftime.m4: Likewise.
68795
68796         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
68797         AC_CHECK_DECLS, now that autoconf requires that.
68798
68799 2000-05-22  Jim Meyering  <meyering@lucent.com>
68800
68801         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68802         * m4/lstat.m4: Likewise.
68803
68804 2000-05-22  Jim Meyering  <meyering@lucent.com>
68805
68806         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
68807
68808 2000-05-20  Jim Meyering  <meyering@lucent.com>
68809
68810         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
68811         (jm_PREREQ): Use it.
68812
68813 2000-05-18  Jim Meyering  <meyering@lucent.com>
68814
68815         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
68816         back, too, since it may have been modified by allocate_entry.
68817         (hash_delete): Rewrite to use neither the assignment operator
68818         nor the comma operator in an if-expression.
68819
68820 2000-05-15  Paul Eggert  <eggert@twinsun.com>
68821
68822         * lib/closeout.c:
68823         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
68824         Remove; no longer needed.
68825         "quotearg.h": Add include.
68826         (file_name): Do not bother to explicitly initialize to NULL; it's less
68827         efficient on some hosts.
68828         (close_stdout_status): Remove test as to whether stdout was already
68829         closed; it breaks for the case "echo x | sort >&-".
68830         Quote file name colons.
68831         Do not assume that _("write error") lacks format strings.
68832
68833 2000-05-15  Jim Meyering  <meyering@lucent.com>
68834
68835         * lib/version-etc.c (version_etc_copyright): Update the copyright
68836         string used in all --version output.
68837
68838 2000-05-14  Jim Meyering  <meyering@lucent.com>
68839
68840         * lib/closeout.c (close_stdout_set_file_name): New function.
68841         (close_stdout_status): Use new file-scoped global.
68842         Return right away if fstat says the stdout file descriptor is invalid.
68843         * lib/closeout.h (close_stdout_set_file_name): Declare.
68844
68845 2000-05-10  Jim Meyering  <meyering@lucent.com>
68846
68847         * lib/closeout.c [default_exit_status]: New file-scoped variable.
68848         (close_stdout_set_status): New function.
68849         * lib/closeout.h (close_stdout_set_status): Declare.
68850
68851 2000-05-09  Jim Meyering  <meyering@lucent.com>
68852
68853         * m4/gettext.m4: Rename this...
68854         * m4/libintl.m4: ...to this.
68855
68856 2000-05-08  Jim Meyering  <meyering@lucent.com>
68857
68858         * lib/long-options.c: Don't include closeout.h.
68859         (parse_long_options): Don't call close_stdout for --version.
68860
68861 2000-05-06  Paul Eggert  <eggert@twinsun.com>
68862
68863         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
68864         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
68865         2.1.3 bug.  This avoids a clash when files like regex.c define
68866         _GNU_SOURCE.
68867
68868 2000-05-06  Jim Meyering  <meyering@lucent.com>
68869
68870         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
68871         (AC_REPLACE_FUNCS): Add strnlen.
68872
68873         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
68874         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
68875
68876         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
68877         AC_SEARCH_LIBS call for nanosleep.
68878         (LIB_NANOSLEEP): Set and AC_SUBST.
68879
68880 2000-05-06  Jim Meyering  <meyering@lucent.com>
68881
68882         * lib/strnlen.c: Undefine __strnlen and strnlen.
68883         [!weak_alias]: Define __strnlen to strnlen.
68884
68885         * lib/atexit.c: New file, from libiberty.
68886
68887 2000-05-06  Jim Meyering  <meyering@lucent.com>
68888
68889         * lib/closeout.c (close_stdout_status): Also check for errors on the
68890         stderr stream.
68891
68892 2000-05-05  Jim Meyering  <meyering@lucent.com>
68893
68894         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
68895         AC_SEARCH_LIBS call for clock_gettime.
68896         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
68897
68898         * m4/search-libs.m4: Update from autoconf.
68899
68900         su doesn't work on Solaris 2.6.
68901         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
68902         <shadow.h>.  Reported by Dragos Harabor.
68903
68904 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
68905
68906         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
68907         memcpy instead of xmalloc, xrealloc, path_concat.
68908         (locale_charset): Treat empty environment variables as absent.
68909         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
68910
68911 2000-05-04  Jim Meyering  <meyering@lucent.com>
68912
68913         * lib/getopt.c: Update from glibc.
68914         * lib/obstack.c: Likewise.
68915         * lib/obstack.h: Likewise.
68916         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
68917         file
68918
68919         * lib/regex.h: Likewise.
68920         * lib/strndup.c: Likewise.
68921         * lib/strnlen.c: New file, from glibc.
68922
68923 2000-05-03  Jim Meyering  <meyering@lucent.com>
68924
68925         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
68926
68927 2000-05-02  Paul Eggert  <eggert@twinsun.com>
68928
68929         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
68930         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
68931         compile-time test, rather than inspecting host and OS, to
68932         decide whether to define _LARGEFILE_SOURCE.
68933
68934 2000-05-01  Jim Meyering  <meyering@lucent.com>
68935
68936         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
68937
68938         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
68939         Based on a patch from Bruno Haible.
68940
68941 2000-05-01  Jim Meyering  <meyering@lucent.com>
68942
68943         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
68944
68945 2000-04-29  Jim Meyering  <meyering@lucent.com>
68946
68947         * lib/path-concat.c: Declare strdup only if it's not defined.
68948         * lib/canon-host.c: Likewise.
68949
68950 2000-04-28  Jim Meyering  <meyering@lucent.com>
68951
68952         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
68953         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
68954         is included first, then limits.h is included by locale.h by libintl.h.
68955         From John David Anglin.
68956
68957 2000-04-25  Jim Meyering  <meyering@lucent.com>
68958
68959         * lib/makepath.c (S_IRWXUGO): Define.
68960         (make_path): Always perform explicit chmod if MODE specifies any
68961         of the `special' permission bits.  Prompted by a bug report against
68962         install from Mate Wierdl and Joost van Baal.
68963
68964 2000-04-18  Jim Meyering  <meyering@lucent.com>
68965
68966         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
68967         (jm_PREREQ): Use it.
68968
68969 2000-04-18  Jim Meyering  <meyering@lucent.com>
68970
68971         * lib/README: New file.
68972
68973         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
68974         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
68975
68976 2000-04-17  Jim Meyering  <meyering@lucent.com>
68977
68978         Get it right :-)
68979         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
68980         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
68981         Suggestion from Akim Demaille.
68982
68983 2000-04-17  Jim Meyering  <meyering@lucent.com>
68984
68985         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
68986         the definition of it to rpl_strftime also defined-away the system's
68987         declaration.
68988
68989 2000-04-15  Jim Meyering  <meyering@lucent.com>
68990
68991         Use `C' to denote so-called `contiguous' files, the same way
68992         that tar does.
68993         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
68994         (ftypelet): Use S_ISCTG.
68995         From Michael Deutschmann.
68996
68997 2000-04-14  Jim Meyering  <meyering@lucent.com>
68998
68999         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
69000         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
69001         clobbered.
69002
69003 2000-04-14  Jim Meyering  <meyering@lucent.com>
69004
69005         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
69006
69007 2000-04-13  Jim Meyering  <meyering@lucent.com>
69008
69009         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
69010         AH_VERBATIM to insert required #ifndef into config.h.in.
69011         Suggestion from Akim Demaille.
69012
69013 2000-04-12  Jim Meyering  <meyering@lucent.com>
69014
69015         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
69016         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
69017         Christian Krackowizer.
69018
69019         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
69020         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
69021         (AC_SYS_LARGEFILE): Require.
69022         (AM_C_PROTOTYPES): Require.
69023
69024 2000-04-08  Jim Meyering  <meyering@lucent.com>
69025
69026         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
69027         names don't conflict.  Reported by Eli Zaretskii.
69028
69029 2000-04-07  Jim Meyering  <meyering@lucent.com>
69030
69031         * lib/putenv.c: Move inclusion of errno.h so it follows that of
69032         sys/types.h, to work around system header problems on AIX 3.2.5.
69033         From Bruno Haible.
69034
69035 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
69036
69037         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
69038         bug.  Deal with the different error behavior of Irix iconv.
69039
69040 2000-04-05  Paul Eggert  <eggert@twinsun.com>
69041
69042         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
69043         IRIX if the installer said otherwise.
69044
69045 2000-04-05  Jim Meyering  <meyering@lucent.com>
69046
69047         Portability tweaks required for ultrix4.3.
69048         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
69049         (jm_CHECK_DECLS): Add getutent to the list of functions.
69050         (_jm_DECL_HEADERS): Add utmpx.h.
69051         From John David Anglin.
69052
69053         * m4/strftime.m4: Back out the 2000-04-02 change.
69054         Instead of that change, simply undefine putenv in the test program.
69055
69056 2000-04-05  Jim Meyering  <meyering@lucent.com>
69057
69058         Portability tweaks required for ultrix4.3.
69059         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
69060         getutent.
69061         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
69062         * lib/canon-host.c: Declare strdup.
69063         * lib/path-concat.c: Likewise.
69064         From John David Anglin.
69065
69066 2000-04-04  Jim Meyering  <meyering@lucent.com>
69067
69068         Be more DOS 8.3-friendly.
69069         * lib/ref-add.sin: Renamed from ref-add.sed.in.
69070         * lib/ref-del.sin: Renamed from ref-del.sed.in.
69071         * lib/Makefile.am: Reflect renaming.
69072         Reported by Eli Zaretskii.
69073
69074         Use a temporary file name that won't clash with `charset.alias'
69075         in the DOS 8.3 name space.
69076         * lib/Makefile.am (charset_tmp): Define.
69077         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
69078         (uninstall-local): Likewise.
69079         Reported by Eli Zaretskii.
69080
69081 2000-04-03  Jim Meyering  <meyering@lucent.com>
69082
69083         * m4/gettext.m4: Fix typo in comment.
69084
69085         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
69086         textutils/configure.in).  Suggestion from Paul Eggert.
69087         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
69088
69089 2000-04-02  Paul Eggert  <eggert@twinsun.com>
69090
69091         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
69092         variable in the shell rather than using putenv, which isn't
69093         portable.  This avoids the configure-time inter-test dependency
69094         on the potentially-renamed putenv function.
69095
69096 2000-03-30  Paul Eggert  <eggert@twinsun.com>
69097
69098         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
69099         before checking struct stat.st_blksize, so that
69100         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
69101
69102 2000-03-29  Paul Eggert  <eggert@twinsun.com>
69103
69104         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
69105         since strftime.c uses HAVE_STRFTIME to decide whether to use
69106         the underlying strftime.
69107
69108 2000-03-29  Paul Eggert  <eggert@twinsun.com>
69109
69110         * lib/time/strftime.c (my_strftime): Make sure we call the system
69111         strftime, not ourselves, when invoking the underlying strftime.
69112
69113 2000-03-24  Jim Meyering  <meyering@lucent.com>
69114
69115         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
69116         (charset_alias): Define.
69117         (install-exec-local): Factor out common code.
69118         (uninstall-local): Split lines longer than 80.
69119         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
69120         (SUFFIXES): Define.
69121         (.sed.in.sed): New rule.  Don't redirect directly to $@.
69122         (CLEANFILES): Add ref-add.sed and ref-del.sed.
69123
69124 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
69125
69126         * lib/config.charset: Output a line containing "Packages using this
69127         file".
69128         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
69129         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
69130         ref-del.sed): New rules.
69131
69132 2000-03-17  Jim Meyering  <meyering@lucent.com>
69133
69134         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
69135         Otherwise, include <strings.h>
69136
69137 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
69138
69139         * lib/unicodeio.c (utf8_wctomb): New function.
69140         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
69141         format instead of in UCS-4 with platform dependent endianness.
69142
69143 2000-03-10  Jim Meyering  <meyering@lucent.com>
69144
69145         * m4/lib-check.m4: Look for getspnam in -lgen, too.
69146         From Marco Franzen.
69147
69148 2000-03-07  Paul Eggert  <eggert@twinsun.com>
69149
69150         * lib/savedir.c (savedir): Work even if directory size is
69151         negative; this can happen with some screwy NFS configurations.
69152
69153 2000-03-06  Jim Meyering  <meyering@lucent.com>
69154
69155         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
69156         if it's NULL (because we ran out of memory).  From Bruno Haible.
69157
69158 2000-03-05  Jim Meyering  <meyering@lucent.com>
69159
69160         * lib/localcharset.c ("path-concat.h"): Include.
69161         (get_charset_aliases): Use path_concat instead of ANSI string
69162         concatenation.
69163
69164         * lib/unicodeio.h (PARAMS): Define.
69165         Use it to guard prototype.
69166
69167 2000-03-04  Jim Meyering  <meyering@lucent.com>
69168
69169         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
69170         for lib/localcharset.c.
69171
69172 2000-03-04  Jim Meyering  <meyering@lucent.com>
69173
69174         * lib/Makefile.am (install-exec-local): Create $(libdir) before
69175         installing into it.
69176         (uninstall-local): Uncomment this rule so `make distcheck' works
69177         once again.
69178
69179         * lib/unicodeio.c (<errno.h>): Include it.
69180         (errno): Declare if not defined.
69181
69182         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
69183
69184         * lib/config.charset: New version, incorporating remarks from a linux
69185         i18n mailing list.  From Bruno Haible.
69186
69187 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
69188
69189         * m4/codeset.m4: New file.
69190         * m4/iconv.m4: New file.
69191         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
69192
69193 2000-03-03  Jim Meyering  <meyering@lucent.com>
69194
69195         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
69196
69197 2000-03-02  Jim Meyering  <meyering@lucent.com>
69198
69199         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
69200         the messages come out on separate lines.
69201
69202         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
69203         rather than jm_CHECK_DECLARATIONS.
69204         * m4/decl.m4: Remove now-unused file.
69205
69206         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
69207         geteuid.
69208
69209 2000-03-02  Jim Meyering  <meyering@lucent.com>
69210
69211         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
69212
69213 2000-03-01  Jim Meyering  <meyering@lucent.com>
69214
69215         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
69216         * lib/unicodeio.c: Likewise.
69217
69218 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
69219
69220         * lib/config.charset: New file.
69221         * lib/localcharset.c: New file.
69222         * lib/unicodeio.h, lib/unicodeio.c: New files.
69223         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
69224         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
69225         (noinst_HEADERS): Add unicodeio.h.
69226         (all-local, install-exec-local, charset.alias): New targets.
69227
69228 2000-02-28  Paul Eggert  <eggert@twinsun.com>
69229
69230         * lib/quotearg.c (ALERT_CHAR): New macro.
69231         (quotearg_buffer_restyled): Use it.
69232
69233 2000-02-27  Jim Meyering  <meyering@lucent.com>
69234
69235         * m4/check-decl.m4: Add getenv to the list.
69236
69237 2000-02-27  Jim Meyering  <meyering@lucent.com>
69238
69239         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
69240         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
69241
69242         * lib/backupfile.c: Guard inclusion of stdlib.h with
69243         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
69244         Declare malloc if needed.
69245
69246         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
69247         `#ifndef HAVE_DECL..'
69248         now that autoconf always defines the HAVE_DECL_ symbols.
69249         * lib/human.c: Likewise.
69250         * lib/same.c: Likewise.
69251         * lib/strtoumax.c: Likewise.
69252
69253         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
69254         declaration check was not run.
69255         * lib/hash.c: Likewise.
69256         * lib/human.c: Likewise.
69257         * lib/same.c: Likewise.
69258         * lib/strtoumax.c: Likewise.
69259
69260         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
69261         `.', then first look up the entire `.'-containing string as a login
69262         name.
69263
69264 2000-02-23  Jim Meyering  <meyering@lucent.com>
69265
69266         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
69267         in place of my hack.
69268
69269 2000-02-18  Paul Eggert  <eggert@twinsun.com>
69270
69271         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
69272         (textint): New typedef.
69273         (parser_control): Member year changed from int to textint.
69274         All uses changed.
69275         (YYSTYPE): Removed; replaced by %union with int and textint members.
69276         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
69277         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
69278         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
69279         (tSNUMBER, tUNUMBER): Now of type <textintval>.
69280         (date, number, to_year): Use width of number in digits, not its value,
69281         to determine whether it's a 2-digit year, or a 2-digit time.
69282         (yylex): Store number of digits of numeric tokens.
69283         Reported by John Kendall.
69284
69285         (parser_control): Changed from struct parser_control to typedef (for
69286         consistency).  All uses changed.
69287
69288         (tID): Removed; not used.
69289         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
69290
69291 2000-02-14  Paul Eggert  <eggert@twinsun.com>
69292
69293         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
69294         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
69295
69296 2000-02-12  Jim Meyering  <meyering@lucent.com>
69297
69298         * lib/userspec.c (ISDIGIT): Define it.
69299         (isdigit): Remove definition.
69300         (is_number): Use ISDIGIT, not isdigit.
69301         <libintl.h>: Include.
69302         (_ and N_): Define.
69303         (parse_user_spec): Mark translatable strings.
69304
69305 2000-02-10  Jim Meyering  <meyering@lucent.com>
69306
69307         With these changes, nanosleep.[ch] are finally enough like the other
69308         lib/* replacement files to compile on a few more losing systems.
69309
69310         * lib/nanosleep.h: Don't include config.h.
69311         Remove prototype from declaration of nanosleep.
69312         (PARAMS): Remove now-unneeded definition.
69313         * lib/nanosleep.c: #undef nanosleep.
69314         (rpl_nanosleep): Rename from nanosleep.
69315
69316 2000-02-10  Jim Meyering  <meyering@lucent.com>
69317
69318         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
69319         gnu_nanosleep to rpl_nanosleep.
69320
69321 2000-02-09  Jim Meyering  <meyering@lucent.com>
69322
69323         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
69324         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
69325
69326 2000-02-08  Akim Demaille  <akim@epita.fr>
69327
69328         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
69329         `[' and `]' and remove uses of `changequote'.
69330         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
69331         (AC_SYS_LARGEFILE): Likewise.
69332         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
69333         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
69334         of changequote.
69335         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
69336         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
69337         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
69338         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
69339
69340 2000-02-05  Jim Meyering  <meyering@lucent.com>
69341
69342         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
69343         Remove explicit use of AC_HEADER_TIME.  It is required by
69344         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
69345         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
69346         in autoconf whereby the expansion of the latter ended up preceding
69347         the expansion of its prerequisite, AC_HEADER_TIME.
69348         Reported by Volker Borchert.
69349
69350 2000-02-03  Jim Meyering  <meyering@lucent.com>
69351
69352         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
69353
69354 2000-02-03  Jim Meyering  <meyering@lucent.com>
69355
69356         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
69357         rather than with `#if HAVE_UTMPNAME'.
69358
69359 2000-02-02  Jim Meyering  <meyering@lucent.com>
69360
69361         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
69362         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
69363         Reported by Eli Zaretskii.
69364
69365 2000-02-01  Jim Meyering  <meyering@lucent.com>
69366
69367         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
69368
69369 2000-01-31  Jim Meyering  <meyering@lucent.com>
69370
69371         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
69372         functions.  Add the time.h and sys/time.h headers along with the
69373         AC_REQUIRE'ment of AC_HEADER_TIME.
69374
69375 2000-01-31  Jim Meyering  <meyering@lucent.com>
69376
69377         * lib/nanosleep.h (nanosleep): Guard declaration with
69378         `#if ! HAVE_DECL_NANOSLEEP'.
69379         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
69380         the declaration in that vendor's sys/timers.h.
69381         Reported by Christian Krackowizer.
69382
69383         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
69384         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
69385         (ISPRINT): Likewise.
69386         Reported by Tom Tromey.
69387
69388 2000-01-30  Jim Meyering  <meyering@lucent.com>
69389
69390         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
69391
69392         * m4/prereq.m4 (utmp_includes): Define.
69393         Check for ut_user and ut_name members in both struct utmpx
69394         and struct utmp.
69395
69396 2000-01-30  Jim Meyering  <meyering@lucent.com>
69397
69398         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
69399         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
69400         header files where only utmpx.ut_user is declared.
69401
69402         * lib/readutmp.h (UT_USER): Define.
69403
69404 2000-01-29  Jim Meyering  <meyering@lucent.com>
69405
69406         * m4/lib-check.m4: New file containing library-related checks from
69407         fileutils and sh-utils (textutils had none).
69408
69409 2000-01-28  Jim Meyering  <meyering@lucent.com>
69410
69411         * m4/perl.m4: Change format of warning message to look more like that
69412         from the missing script.  Suggestion from François Pinard.
69413
69414 2000-01-25  Jim Meyering  <meyering@lucent.com>
69415
69416         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
69417         well as time.h in the compile check.
69418         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
69419         Fix typo in cross-compiling case: s/yes/no/.
69420
69421 2000-01-23  Jim Meyering  <meyering@lucent.com>
69422
69423         * m4/jm-macros.m4: Move df-related tests here from
69424         fileutils/configure.in
69425
69426         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
69427         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
69428
69429         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
69430         s/space/ac_fsusage_space/.
69431         (jm_FILE_SYSTEM_USAGE): Take two parameters.
69432
69433         * m4/ftruncate.m4: New file (derived from part of
69434         fileutils/configure.in).
69435         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
69436         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
69437
69438         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
69439         AC_SUBST these here, rather than just in sh-util/configure.in, so
69440         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
69441         all the same.
69442         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
69443         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
69444         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
69445         (AC_SUBST(POW_LIBM)): Likewise.
69446         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
69447
69448 2000-01-23  Jim Meyering  <meyering@lucent.com>
69449
69450         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
69451         obstack.c.
69452
69453 2000-01-22  Jim Meyering  <meyering@lucent.com>
69454
69455         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
69456
69457         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
69458
69459         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
69460         configure.in
69461         (AC_CHECK_HEADERS): Likewise for sh-utils.
69462         (AC_CHECK_HEADERS): Likewise for textutils.
69463         Merge the three lists of headers.
69464
69465         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
69466         from fileutils' configure.in.
69467
69468         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
69469         code. Moved tests into their own function (_jm_DECL_HEADERS) in
69470         check-decl.m4.
69471
69472         * m4/check-decl.m4: Use #if rather than #ifdef.
69473         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
69474         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
69475         (_jm_DECL_HEADERS): Define new function.
69476         (jm_CHECK_DECLARATIONS): Require it.
69477
69478 2000-01-22  Jim Meyering  <meyering@lucent.com>
69479
69480         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
69481         [! HAVE_DECL_STRTOULL]: Declare strtoull.
69482         Required for some AIX systems.  Reported by Christian Krackowizer.
69483         [TESTING] (main): New function.
69484
69485         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
69486         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
69487         letters.
69488
69489         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
69490         iswprint.
69491
69492         * lib/strverscmp.c (ISDIGIT): Define.
69493         (strverscmp): Use ISDIGIT, not isdigit.
69494
69495 2000-01-19  Jim Meyering  <meyering@lucent.com>
69496
69497         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
69498         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
69499         defines `struct timespec' in <sys/time.h>
69500
69501         * m4/c-bs-a.m4: Remove uses of changequote altogether.
69502         Thanks to Akim for explaining.
69503
69504 2000-01-17  Paul Eggert  <eggert@twinsun.com>
69505
69506         * lib/nanosleep.c (nanosleep):
69507         Don't use SA_INTERRUPT to decide whether to call sigaction, as
69508         POSIX.1 doesn't require SA_INTERRUPT and some systems
69509         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
69510         it's been part of POSIX.1 since day 1 (in 1988).
69511
69512 2000-01-17  Jim Meyering  <meyering@lucent.com>
69513
69514         * lib/interlock: Remove unused file.  Reported by François Pinard.
69515
69516 2000-01-16  Paul Eggert  <eggert@twinsun.com>
69517
69518         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
69519         alert, backslash, formfeed, and vertical tab unnecessarily in
69520         shell quoting style.
69521
69522 2000-01-16  Jim Meyering  <meyering@lucent.com>
69523
69524         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
69525         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
69526         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
69527         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
69528
69529 2000-01-16  Jim Meyering  <meyering@lucent.com>
69530
69531         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
69532         because the latter didn't work.
69533
69534 2000-01-15  Jim Meyering  <meyering@lucent.com>
69535
69536         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
69537         (AC_REPLACE_FUNCS): Add memcpy and memset.
69538         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
69539         Add strpbrk.
69540         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
69541
69542 2000-01-12  Jim Meyering  <meyering@lucent.com>
69543
69544         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
69545         (jm_PREREQ): Use it.
69546         (jm_PREREQ_READUTMP): New macro.
69547         (jm_PREREQ): Use it.
69548
69549 2000-01-11  Paul Eggert  <eggert@twinsun.com>
69550
69551         Quote multibyte characters correctly.
69552         * m4/c-bs-a.m4: New file.
69553         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
69554         (jm_PREREQ): Use it.
69555
69556 2000-01-11  Paul Eggert  <eggert@twinsun.com>
69557
69558         * m4/uintmax_t.m4: Port to autoconf 2.13.
69559
69560 2000-01-08  Jim Meyering  <meyering@ascend.com>
69561
69562         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
69563         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
69564
69565 2000-01-04  Jim Meyering  <meyering@ascend.com>
69566
69567         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
69568         jm_STRUCT_DIRENT_D_TYPE.
69569         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
69570         jm_STRUCT_DIRENT_D_INO.
69571         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
69572         jm_STRUCT_UTIMBUF.
69573         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
69574         renamings.
69575         * m4/utime.m4: Likewise.
69576
69577         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
69578         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
69579
69580 2000-01-03  Paul Eggert  <eggert@twinsun.com>
69581
69582         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
69583         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
69584
69585 2000-01-02  Jim Meyering  <meyering@ascend.com>
69586
69587         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
69588         remember if this is necessary.
69589
69590 1999-12-26  Jim Meyering  <meyering@ascend.com>
69591
69592         * m4/jm-macros.m4: Use it here.
69593         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
69594
69595 1999-12-23  Jim Meyering  <meyering@ascend.com>
69596
69597         * m4/jm-macros.m4: Check for clock_gettime (moved from
69598         fileutils/configure.in)
69599         Check for gettimeofday.
69600
69601 1999-12-20  Jim Meyering  <meyering@ascend.com>
69602
69603         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
69604         autoconf-2.14a-1999-12-20.
69605
69606 1999-12-19  Jim Meyering  <meyering@ascend.com>
69607
69608         * m4/lstat-slash.m4: New file.
69609         * m4/jm-macros.m4: Use the new macro:
69610         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69611
69612 1999-12-07  Jim Meyering  <meyering@ascend.com>
69613
69614         * m4/perl.m4: Require that File::Compare be available, too.
69615         Too many systems seem to lack it.
69616
69617         * m4/strftime.m4: Add checks for most of the cpp macros tested in
69618         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
69619
69620 1999-11-18  Paul Eggert  <eggert@twinsun.com>
69621
69622         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
69623         problem with the QNX 4.25 shell, which doesn't propagate exit
69624         status of failed commands inside shell assignments.
69625
69626 1999-11-17  Jim Meyering  <meyering@ascend.com>
69627
69628         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
69629
69630 1999-11-07  Jim Meyering  <meyering@ascend.com>
69631
69632         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
69633
69634 1999-11-06  Jim Meyering  <meyering@ascend.com>
69635
69636         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
69637         * m4/jm-macros.m4 (jm_MACROS): Use it here.
69638
69639 1999-11-05  Jim Meyering  <meyering@ascend.com>
69640
69641         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
69642         configure.in of textutils, fileutils, and sh-utils into this one
69643         (shared between those packages) file.
69644         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
69645         AC_STRUCT_ST_BLKSIZE.
69646
69647 1999-11-03  Jim Meyering  <meyering@ascend.com>
69648
69649         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
69650         of AC_CHECK_TYPE checks includes unistd.h.
69651         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
69652         Suggestion from Akim Demaille.
69653
69654 1999-10-30  Jim Meyering  <meyering@ascend.com>
69655
69656         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
69657         m4-quoted string.
69658         * m4/ls-mntd-fs.m4: Likewise.
69659         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
69660         * m4/jm-winsz1.m4: Likewise.
69661
69662         * m4/const.m4: Remove file, since the fix made it into the experimental
69663         version of autoconf.
69664         * m4/mktime.m4: Likewise.
69665
69666         * m4/check-type.m4: Remove file, now that the latest version of
69667         AC_CHECK_TYPE takes a third arg to specify additional #includes.
69668
69669         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
69670         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
69671         AC_CHECK_TYPE.
69672
69673 1999-10-04  Jim Meyering  <meyering@ascend.com>
69674
69675         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
69676
69677 1999-09-22  Paul Eggert  <eggert@twinsun.com>
69678
69679         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
69680         2.95.1 bug with HP-UX 10.20.
69681
69682 1999-09-17  Jim Meyering  <meyering@ascend.com>
69683
69684         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
69685         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
69686         due to missing strdup (against sh-utils-2.0).
69687
69688 1999-08-29  Jim Meyering  <meyering@ascend.com>
69689
69690         * m4/jm-macros.m4: Require jm_BISON.
69691         * m4/bison.m4: New file.
69692
69693 1999-08-17  Paul Eggert  <eggert@twinsun.com>
69694
69695         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
69696         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
69697
69698 1999-08-05  Jim Meyering  <meyering@ascend.com>
69699
69700         * m4/getline.m4: Rename test file from conftestdata to conftest.data
69701         to avoid conflicts with `conftest' on 8+3 filesystems.
69702         Suggestion from Eli Zaretskii.
69703
69704 1999-08-04  Jim Meyering  <meyering@ascend.com>
69705
69706         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
69707         fileutils and sh-utils (textutils's getline test was inadequate).
69708         (AM_FUNC_GETLINE): Run this test.
69709         (AC_CHECK_FUNCS): Check for getdelim.
69710         Reported by Bob Proulx.
69711
69712 1999-08-02  Jim Meyering  <meyering@ascend.com>
69713
69714         * m4/jm-macros.m4: Add a comment.
69715
69716 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69717
69718         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
69719         <inttypes.h> defines strtoumax as a macro (and not as a
69720         function).
69721
69722 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69723
69724         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
69725         that we can shift, multiply and divide unsigned long long
69726         values; Ultrix cc can't do it.
69727
69728 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69729
69730         * m4/mktime.m4: New file, which is a preview of what should appear
69731         in the next public autoconf release.
69732
69733 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69734
69735         * m4/lfs.m4: Remove this file.
69736         * m4/largefile.m4: New file.  It contains the old contents of
69737         lfs.m4, except that all names with prefix AC_LFS have been
69738         changed to use the prefix AC_SYS_LARGEFILE instead, to be
69739         compatible with future autoconf versions.  Also, some minor m4
69740         quoting problems have been fixed.
69741
69742 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69743
69744         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
69745         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
69746         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
69747         and simplify the shell code.
69748
69749 1999-08-01  Jim Meyering  <meyering@ascend.com>
69750
69751         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
69752         m4.
69753
69754 1999-07-20  Jim Meyering  <meyering@ascend.com>
69755
69756         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
69757
69758 1999-07-15  Jim Meyering  <meyering@ascend.com>
69759
69760         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
69761
69762 1999-05-22  Jim Meyering  <meyering@ascend.com>
69763
69764         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
69765
69766 1999-05-20  Jim Meyering  <meyering@ascend.com>
69767
69768         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
69769         Add a colon after each `then' in case $4 is empty.
69770
69771 1999-05-16  Jim Meyering  <meyering@ascend.com>
69772
69773         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
69774
69775 1999-05-10  Jim Meyering  <meyering@ascend.com>
69776
69777         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
69778
69779         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
69780         AC_FUNC_MKTIME.
69781
69782 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
69783
69784         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
69785
69786 1999-05-04  Paul Eggert  <eggert@twinsun.com>
69787
69788         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
69789         not CPPFLAGS, so that linking works correctly in IRIX.
69790
69791 1999-04-30  Paul Eggert  <eggert@twinsun.com>
69792
69793         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
69794
69795 1999-04-20  Paul Eggert  <eggert@twinsun.com>
69796
69797         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
69798         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
69799         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
69800         jm_AC_TYPE_UNSIGNED_LONG_LONG.
69801         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
69802
69803         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
69804
69805 1999-04-20  Jim Meyering  <meyering@ascend.com>
69806
69807         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
69808         AC_REPLACE xstroull if necessary.  From Paul Eggert.
69809         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
69810
69811 1999-04-18  Jim Meyering  <meyering@ascend.com>
69812
69813         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
69814         * m4/jm-macros.m4: Use it.
69815
69816 1999-04-06  Jim Meyering  <meyering@ascend.com>
69817
69818         * m4/strftime.m4: Remove test for %f.
69819
69820 1999-03-29  Jim Meyering  <meyering@ascend.com>
69821
69822         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
69823         superset of the AC_TYPE_* checks in the textutils, fileutils,
69824         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
69825         AC_TYPE_PID_T.
69826
69827 1999-03-28  Jim Meyering  <meyering@ascend.com>
69828
69829         * m4/jm-macros.m4: Define GNU_PACKAGE here.
69830         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
69831         replaced e.g., in the *.sh files of the sh-utils.
69832
69833 1999-03-20  Jim Meyering  <meyering@ascend.com>
69834
69835         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
69836         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
69837         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
69838
69839 1999-03-19  Jim Meyering  <meyering@ascend.com>
69840
69841         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
69842
69843 1999-03-12  Jim Meyering  <meyering@ascend.com>
69844
69845         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
69846
69847 1999-03-07  Jim Meyering  <meyering@ascend.com>
69848
69849         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
69850         declared.
69851
69852 1999-02-17  Jim Meyering  <meyering@ascend.com>
69853
69854         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
69855         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
69856
69857 1999-02-07  Jim Meyering  <meyering@ascend.com>
69858
69859         * m4/group-member.m4: New file -- extracted from sh-utils'
69860         configure.in.
69861
69862         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
69863         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
69864
69865 1999-02-06  Jim Meyering  <meyering@ascend.com>
69866
69867         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
69868         * m4/fnmatch.m4: Likewise.
69869         * m4/getgroups.m4: Likewise.
69870         * m4/lstat.m4: Likewise.
69871         * m4/malloc.m4: Likewise.
69872         * m4/putenv.m4: Likewise.
69873         * m4/realloc.m4: Likewise.
69874         * m4/regex.m4: Likewise.
69875         * m4/stat.m4: Likewise.
69876         * m4/strftime.m4: Likewise.
69877         Suggestion from Alain Magloire.
69878
69879         * m4/chown.m4: Use `.$ac_objext', not `.o'.
69880         * m4/fnmatch.m4: Likewise.
69881         * m4/getgroups.m4: Likewise.
69882         * m4/getline.m4: Likewise.
69883         * m4/lstat.m4: Likewise.
69884         * m4/malloc.m4: Likewise.
69885         * m4/memcmp.m4: Likewise.
69886         * m4/putenv.m4: Likewise.
69887         * m4/realloc.m4: Likewise.
69888         * m4/regex.m4: Likewise.
69889         * m4/stat.m4: Likewise.
69890         * m4/strftime.m4: Likewise.
69891         Suggestion from Alain Magloire.
69892
69893         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
69894         an argument.
69895
69896         * m4/regex.m4: Add a run-time Test for proper operation of
69897         re_compile_pattern.
69898
69899 1999-01-31  Jim Meyering  <meyering@ascend.com>
69900
69901         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
69902
69903 1999-01-30  Jim Meyering  <meyering@ascend.com>
69904
69905         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
69906
69907         * m4/jm-mktime.m4: Make this a wrapper around the official
69908         AM_FUNC_MKTIME rather than my private copy, now that the official one
69909         is up to date.
69910         * m4/mktime.m4: Remove file.
69911
69912         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
69913         * m4/uptime.m4: Likewise.
69914         * m4/uintmax_t.m4: Likewise.
69915
69916 1999-01-28  Jim Meyering  <meyering@ascend.com>
69917
69918         * m4/jm-macros.m4: Use jm_AFS.
69919         * m4/afs.m4: New file (from fileutils' configure.in).
69920
69921         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
69922         * m4/chown.m4: Likewise.
69923         * m4/d-ino.m4: Likewise.
69924         * m4/d-type.m4: Likewise.
69925         * m4/fnmatch.m4: Likewise.
69926         * m4/getgroups.m4: Likewise.
69927         * m4/gettext.m4: Likewise.
69928         * m4/jm-mktime.m4: Likewise.
69929         * m4/jm-winsz2.m4: Likewise.
69930         * m4/lcmessage.m4: Likewise.
69931         * m4/ls-mntd-fs.m4: Likewise.
69932         * m4/malloc.m4: Likewise.
69933         * m4/memcmp.m4: Likewise.
69934         * m4/putenv.m4: Likewise.
69935         * m4/realloc.m4: Likewise.
69936         * m4/st_mtim.m4: Likewise.
69937         * m4/strftime.m4: Likewise.
69938
69939 1999-01-16  Jim Meyering  <meyering@ascend.com>
69940
69941         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
69942         (ARGMATCH_DIE_DECL): Define.
69943
69944 1999-01-12  Jim Meyering  <meyering@ascend.com>
69945
69946         * m4/Makefile.am.in: Rewrite to avoid using fmt.
69947         Reported by Lars Hecking.
69948
69949 1999-01-10  Jim Meyering  <meyering@ascend.com>
69950
69951         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
69952         gross kludge.
69953         * m4/inttypes_h.m4: Likewise.
69954         * m4/lstat.m4: Likewise.
69955         * m4/malloc.m4: Likewise.
69956         * m4/readdir.m4: Likewise.
69957         * m4/realloc.m4: Likewise.
69958         * m4/st_dm_mode.m4: Likewise.
69959         * m4/stat.m4: Likewise.
69960         * m4/utimbuf.m4: Likewise.
69961         * m4/utimes.m4: Likewise.
69962
69963         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
69964         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
69965         comments in config.h.in are meaningful.
69966
69967         * m4/jm-macros.m4: Require autoconf-2.13 here.
69968
69969         * m4/regex.m4: By default, don't use the included regex.c on systems
69970         with glibc 2.  Suggestion from Uli Drepper.
69971
69972 1999-01-02  Jim Meyering  <meyering@ascend.com>
69973
69974         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
69975
69976 1998-12-18  Jim Meyering  <meyering@ascend.com>
69977
69978         * m4/Makefile.am.in (Makefile.am): Simplify rule.
69979         Based on a suggestion from Lars Hecking.
69980
69981 1998-11-16  Paul Eggert  <eggert@twinsun.com>
69982
69983         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
69984
69985 1998-11-16  Jim Meyering  <meyering@ascend.com>
69986
69987         * m4/lfs.m4: Double-quote the `uname...` expression.
69988
69989 1998-11-14  Jim Meyering  <meyering@ascend.com>
69990
69991         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
69992         * m4/stat.m4: Likewise.
69993
69994 1998-11-03  Jim Meyering  <meyering@ascend.com>
69995
69996         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
69997         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
69998
69999 1998-10-18  Jim Meyering  <meyering@ascend.com>
70000
70001         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
70002
70003 1998-10-17  Jim Meyering  <meyering@ascend.com>
70004
70005         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
70006         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
70007         calls for those previously hard-coded headers.  Instead, take a new
70008         parameter.
70009         (jm_CHECK_DECLARATIONS): Reflect interface change.
70010         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
70011         (jm_CHECK_DECL_LOCALTIME_R): New macro.
70012
70013         * m4/mktime.m4: Test for spring-forward gap before long-running test.
70014
70015 1998-10-14  Jim Meyering  <meyering@ascend.com>
70016
70017         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
70018         instead of "TZ=America/Vancouver".  From Paul Eggert.
70019
70020 1998-10-11  Jim Meyering  <meyering@ascend.com>
70021
70022         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
70023         This adds a test for a recently added compatibility fix for mktime.c.
70024         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
70025
70026 1998-09-27  Jim Meyering  <meyering@ascend.com>
70027
70028         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
70029
70030         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
70031         ../configure.in, including a change from Gordon Matzigkeit to allow
70032         cross-compiling for the Hurd.
70033
70034         * m4/glibc.m4: New file/macro to test for the GNU C Library
70035         versions 1 and 2.  From Gordon Matzigkeit.
70036         Indent.
70037
70038 1998-09-21  Jim Meyering  <meyering@ascend.com>
70039
70040         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
70041
70042 1998-08-18  Paul Eggert  <eggert@twinsun.com>
70043
70044         Port nanosecond-resolution times to UnixWare 2.1.2 and
70045         pedantic Solaris 2.6.
70046
70047         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
70048         AC_STRUCT_ST_MTIM.
70049         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
70050         Generate name of ns member, instead of just 1 or undef.
70051         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
70052
70053 1998-08-15  Jim Meyering  <meyering@ascend.com>
70054
70055         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
70056         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
70057         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
70058         instead of jm_TYPE_SSIZE_T.
70059
70060 1998-08-12  Jim Meyering  <meyering@ascend.com>
70061
70062         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
70063
70064 1998-08-02  Jim Meyering  <meyering@ascend.com>
70065
70066         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
70067         in acconfig.h manually.
70068
70069 1998-07-31  Paul Eggert  <eggert@twinsun.com>
70070
70071         * m4/st_mtim.m4: New file.
70072
70073 1998-07-28  Jim Meyering  <meyering@ascend.com>
70074
70075         * m4/utimes.m4: Undef stat.
70076
70077 1998-07-25  Jim Meyering  <meyering@ascend.com>
70078
70079         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
70080         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
70081
70082 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
70083
70084         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
70085         uid and gid actually remain unchanged.
70086
70087 1998-07-07  Jim Meyering  <meyering@ascend.com>
70088
70089         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
70090
70091 1998-07-04  Jim Meyering  <meyering@ascend.com>
70092
70093         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
70094         to prove that this macro can be used in packages without regex.c.
70095
70096 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
70097
70098         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
70099         is to be used.
70100
70101 1998-07-03  Jim Meyering  <meyering@ascend.com>
70102
70103         * m4/gettext.m4: Add -lintl if it's found to be necessary.
70104
70105         * m4/gettext.m4: New file -- from gettext-0.10.35.
70106         * m4/lcmessage.m4: Likewise.
70107         * m4/progtest.m4: Likewise.
70108
70109         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
70110         * m4/jm-macros.m4: Require the new macro.
70111
70112 1998-06-29  Jim Meyering  <meyering@ascend.com>
70113
70114         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
70115         for the definition of NGROUPS (used in a system header included
70116         by sys/mount.h).
70117
70118 1998-06-28  Jim Meyering  <meyering@ascend.com>
70119
70120         * m4/ls-mntd-fs.m4: New file.
70121         * m4/fstypename.m4: New file.
70122
70123         * m4/jm-macros.m4: Require the new macro.
70124         * m4/jm-glibc-io.m4: New file.
70125
70126 1998-05-19  Jim Meyering  <meyering@ascend.com>
70127
70128         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
70129         * m4/lchown.m4: New file.
70130
70131         * m4/Makefile.am.in: New file.
70132         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
70133
70134 1998-05-14  Jim Meyering  <meyering@ascend.com>
70135
70136         * m4/Makefile.am (EXTRA_DIST): Add them.
70137         * m4/jm-macros.m4: New file.
70138         * m4/utimbuf.m4: New file.
70139
70140 1998-05-12  Jim Meyering  <meyering@ascend.com>
70141
70142         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
70143
70144 1998-05-11  Jim Meyering  <meyering@ascend.com>
70145
70146         * m4/isc-posix.m4: New file.
70147
70148 1998-05-10  Jim Meyering  <meyering@ascend.com>
70149
70150         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
70151
70152 1998-05-09  Jim Meyering  <meyering@ascend.com>
70153
70154         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
70155         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
70156         with automake.
70157
70158         * m4/ssize_t.m4: New file.
70159         * m4/mktime.m4: Remove file -- the new automake has this now.
70160
70161 1998-04-26  Jim Meyering  <meyering@ascend.com>
70162
70163         * m4/assert.m4: New file.
70164         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
70165
70166 1998-04-05  Jim Meyering  <meyering@ascend.com>
70167
70168         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
70169         (jm_PREREQ): Use it here.
70170
70171 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
70172
70173         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
70174         in acconfig.h.
70175
70176 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
70177
70178         * m4/prereq.m4: New file.
70179         * m4/error.m4: New file.
70180         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
70181
70182 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
70183
70184         * m4/getline.m4: Don't set am_cv_func_working_getline before the
70185         cache-check for the same variable -- that defeated the purpose of
70186         the test; the test program was never run.  This was a problem only
70187         on systems with losing getline functions -- HP-UX 10.20 is one.
70188         Reported by Bjorn Helgaas.
70189
70190 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
70191
70192         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
70193
70194 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
70195
70196         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
70197
70198         * m4/const.m4: New file.  Use an initializer in this declaration
70199         typedef int charset[2]; const charset x;
70200         Reported by Bob Glickstein.
70201
70202 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
70203
70204         * m4/chown.m4: Fix reversed types on -1 args to chown.
70205         From Kaveh Ghazi.
70206
70207 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
70208
70209         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
70210         Add lseek and memchr.
70211
70212         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
70213         T.E.Dickey <dickey@clark.net> said that some older preprocessors
70214         have a 20-character limit on names.
70215
70216 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
70217
70218         * m4/inttypes_h.m4: New file.
70219         * m4/uintmax_t.m4: New file.
70220         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
70221
70222
70223         -----
70224
70225         Local Variables:
70226         coding: utf-8
70227         End:
70228
70229         Copyright (C) 1997-2010 Free Software Foundation, Inc.
70230
70231         Copying and distribution of this file, with or without
70232         modification, are permitted provided the copyright notice
70233         and this notice are preserved.